@mediapipe/tasks-audio
Version:
MediaPipe Audio Tasks
1 lines • 50.6 kB
JavaScript
"use strict";function t(t){if(t&&t.__esModule)return t;var n=Object.create(null);return t&&Object.keys(t).forEach((function(e){if("default"!==e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}})),n.default=t,Object.freeze(n)}Object.defineProperty(exports,"__esModule",{value:!0});var n="undefined"!=typeof self?self:{};function e(t,e){t:{for(var r=["CLOSURE_FLAGS"],i=n,o=0;o<r.length;o++)if(null==(i=i[r[o]])){r=null;break t}r=i}return null!=(t=r&&r[t])?t:e}function r(){throw Error("Invalid UTF8")}function i(t,n){return n=String.fromCharCode.apply(null,n),null==t?n:t+n}let o,s;const a="undefined"!=typeof TextDecoder;let u;const c="undefined"!=typeof TextEncoder;function l(t){if(c)t=(u||=new TextEncoder).encode(t);else{let e=0;const r=new Uint8Array(3*t.length);for(let i=0;i<t.length;i++){var n=t.charCodeAt(i);if(n<128)r[e++]=n;else{if(n<2048)r[e++]=n>>6|192;else{if(n>=55296&&n<=57343){if(n<=56319&&i<t.length){const o=t.charCodeAt(++i);if(o>=56320&&o<=57343){n=1024*(n-55296)+o-56320+65536,r[e++]=n>>18|240,r[e++]=n>>12&63|128,r[e++]=n>>6&63|128,r[e++]=63&n|128;continue}i--}n=65533}r[e++]=n>>12|224,r[e++]=n>>6&63|128}r[e++]=63&n|128}}t=e===r.length?r:r.subarray(0,e)}return t}var h,f=e(610401301,!1),d=e(748402147,!0);function g(){var t=n.navigator;return t&&(t=t.userAgent)?t:""}const p=n.navigator;function v(t){return v[" "](t),t}h=p&&p.userAgentData||null,v[" "]=function(){};const y={};let m=null;function b(t){const n=t.length;let e=3*n/4;e%3?e=Math.floor(e):-1!="=.".indexOf(t[n-1])&&(e=-1!="=.".indexOf(t[n-2])?e-2:e-1);const r=new Uint8Array(e);let i=0;return function(t,n){function e(n){for(;r<t.length;){const n=t.charAt(r++),e=m[n];if(null!=e)return e;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return n}w();let r=0;for(;;){const t=e(-1),r=e(0),i=e(64),o=e(64);if(64===o&&-1===t)break;n(t<<2|r>>4),64!=i&&(n(r<<4&240|i>>2),64!=o&&n(i<<6&192|o))}}(t,(function(t){r[i++]=t})),i!==e?r.subarray(0,i):r}function w(){if(!m){m={};var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),n=["+/=","+/","-_=","-_.","-_"];for(let e=0;e<5;e++){const r=t.concat(n[e].split(""));y[e]=r;for(let t=0;t<r.length;t++){const n=r[t];void 0===m[n]&&(m[n]=t)}}}}var _="undefined"!=typeof Uint8Array,S=!(!(f&&h&&h.brands.length>0)&&(-1!=g().indexOf("Trident")||-1!=g().indexOf("MSIE")))&&"function"==typeof btoa;const A=/[-_.]/g,I={"-":"+",_:"/",".":"="};function E(t){return I[t]||""}function T(t){if(!S)return b(t);t=A.test(t)?t.replace(A,E):t,t=atob(t);const n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var B={};function U(){return j||=new O(null,B)}function P(t){N(B);var n=t.g;return null==(n=null==n||_&&null!=n&&n instanceof Uint8Array?n:"string"==typeof n?T(n):null)?n:t.g=n}var O=class{constructor(t,n){if(N(n),this.g=t,null!=t&&0===t.length)throw Error("ByteString should be constructed with non-empty values")}};let j,L;function N(t){if(t!==B)throw Error("illegal external caller")}function V(t,n){t.__closure__error__context__984382||(t.__closure__error__context__984382={}),t.__closure__error__context__984382.severity=n}function x(){const t=Error("int32");return V(t,"warning"),t}function k(t,e){if(null!=t){var r=L??={},i=r[t]||0;i>=e||(r[t]=i+1,V(t=Error(),"incident"),function(t){n.setTimeout((()=>{throw t}),0)}(t))}}function F(){return"function"==typeof BigInt}var M="function"==typeof Symbol&&"symbol"==typeof Symbol();function D(t,n,e=!1){return"function"==typeof Symbol&&"symbol"==typeof Symbol()?e&&Symbol.for&&t?Symbol.for(t):null!=t?Symbol(t):Symbol():n}var G=D("jas",void 0,!0),C=D(void 0,"1oa"),R=D(void 0,Symbol()),W=D(void 0,"0ubs"),$=D(void 0,"0ubsb"),H=D(void 0,"0actk"),z=D("m_m","O",!0);const K={J:{value:0,configurable:!0,writable:!0,enumerable:!1}},J=Object.defineProperties,X=M?G:"J";var Y;const q=[];function Q(t,n){M||X in t||J(t,K),t[X]|=n}function Z(t,n){M||X in t||J(t,K),t[X]=n}Z(q,7),Y=Object.freeze(q);var tt={};function nt(t,n){return void 0===n?t.g!==et&&!!(2&(0|t.l[X])):!!(2&n)&&t.g!==et}const et={};function rt(t,n){if(null!=t)if("string"==typeof t)t=t?new O(t,B):U();else if(t.constructor!==O)if(_&&null!=t&&t instanceof Uint8Array)t=t.length?new O(new Uint8Array(t),B):U();else{if(!n)throw Error();t=void 0}return t}var it=Object.freeze({});function ot(t,n,e){const r=128&n?0:-1,i=t.length;var o;(o=!!i)&&(o=null!=(o=t[i-1])&&"object"==typeof o&&o.constructor===Object);const s=i+(o?-1:0);for(n=128&n?1:0;n<s;n++)e(n-r,t[n]);if(o){t=t[i-1];for(const n in t)!isNaN(n)&&e(+n,t[n])}}var st={};function at(t){return 128&t?st:void 0}function ut(t){return t.M=!0,t}var ct=ut((t=>"number"==typeof t)),lt=ut((t=>"string"==typeof t)),ht=ut((t=>"boolean"==typeof t)),ft="function"==typeof n.BigInt&&"bigint"==typeof n.BigInt(0);function dt(t){var n=t;if(lt(n)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(n))throw Error(String(n))}else if(ct(n)&&!Number.isSafeInteger(n))throw Error(String(n));return ft?BigInt(t):t=ht(t)?t?"1":"0":lt(t)?t.trim()||"0":String(t)}var gt=ut((t=>ft?t>=vt&&t<=mt:"-"===t[0]?bt(t,pt):bt(t,yt)));const pt=Number.MIN_SAFE_INTEGER.toString(),vt=ft?BigInt(Number.MIN_SAFE_INTEGER):void 0,yt=Number.MAX_SAFE_INTEGER.toString(),mt=ft?BigInt(Number.MAX_SAFE_INTEGER):void 0;function bt(t,n){if(t.length>n.length)return!1;if(t.length<n.length||t===n)return!0;for(let e=0;e<t.length;e++){const r=t[e],i=n[e];if(r>i)return!1;if(r<i)return!0}}const wt="function"==typeof Uint8Array.prototype.slice;let _t,St=0,At=0;function It(t){const n=t>>>0;St=n,At=(t-n)/4294967296>>>0}function Et(t){if(t<0){It(-t);const[n,e]=Nt(St,At);St=n>>>0,At=e>>>0}else It(t)}function Tt(t,n){const e=4294967296*n+(t>>>0);return Number.isSafeInteger(e)?e:Pt(t,n)}function Bt(t,n){return dt(F()?BigInt.asUintN(64,(BigInt(n>>>0)<<BigInt(32))+BigInt(t>>>0)):Pt(t,n))}function Ut(t,n){return F()?dt(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(n))<<BigInt(32))+BigInt.asUintN(32,BigInt(t)))):dt(jt(t,n))}function Pt(t,n){if(t>>>=0,(n>>>=0)<=2097151)var e=""+(4294967296*n+t);else F()?e=""+(BigInt(n)<<BigInt(32)|BigInt(t)):(t=(16777215&t)+6777216*(e=16777215&(t>>>24|n<<8))+6710656*(n=n>>16&65535),e+=8147497*n,n*=2,t>=1e7&&(e+=t/1e7>>>0,t%=1e7),e>=1e7&&(n+=e/1e7>>>0,e%=1e7),e=n+Ot(e)+Ot(t));return e}function Ot(t){return t=String(t),"0000000".slice(t.length)+t}function jt(t,n){if(2147483648&n)if(F())t=""+(BigInt(0|n)<<BigInt(32)|BigInt(t>>>0));else{const[e,r]=Nt(t,n);t="-"+Pt(e,r)}else t=Pt(t,n);return t}function Lt(t){if(t.length<16)Et(Number(t));else if(F())t=BigInt(t),St=Number(t&BigInt(4294967295))>>>0,At=Number(t>>BigInt(32)&BigInt(4294967295));else{const n=+("-"===t[0]);At=St=0;const e=t.length;for(let r=n,i=(e-n)%6+n;i<=e;r=i,i+=6){const n=Number(t.slice(r,i));At*=1e6,St=1e6*St+n,St>=4294967296&&(At+=Math.trunc(St/4294967296),At>>>=0,St>>>=0)}if(n){const[t,n]=Nt(St,At);St=t,At=n}}}function Nt(t,n){return n=~n,t?t=1+~t:n+=1,[t,n]}function Vt(t){return Array.prototype.slice.call(t)}const xt="function"==typeof BigInt?BigInt.asIntN:void 0,kt="function"==typeof BigInt?BigInt.asUintN:void 0,Ft=Number.isSafeInteger,Mt=Number.isFinite,Dt=Math.trunc;function Gt(t){return null==t||"number"==typeof t?t:"NaN"===t||"Infinity"===t||"-Infinity"===t?Number(t):void 0}const Ct=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function Rt(t){switch(typeof t){case"bigint":return!0;case"number":return Mt(t);case"string":return Ct.test(t);default:return!1}}function Wt(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Mt(t)?0|t:void 0}function $t(t){const n=t.length;return("-"===t[0]?n<20||20===n&&t<="-9223372036854775808":n<19||19===n&&t<="9223372036854775807")?t:(Lt(t),jt(St,At))}function Ht(t){if(t=Dt(t),!Ft(t)){Et(t);var n=St,e=At;(t=2147483648&e)&&(e=~e>>>0,0==(n=1+~n>>>0)&&(e=e+1>>>0)),t="number"==typeof(n=Tt(n,e))?t?-n:n:t?"-"+n:n}return t}function zt(t){var n=Dt(Number(t));return Ft(n)?String(n):(-1!==(n=t.indexOf("."))&&(t=t.substring(0,n)),$t(t))}function Kt(t){var n=typeof t;return null==t?t:"bigint"===n?dt(xt(64,t)):Rt(t)?("string"===n?(n=Dt(Number(t)),Ft(n)?t=dt(n):(-1!==(n=t.indexOf("."))&&(t=t.substring(0,n)),t=F()?dt(xt(64,BigInt(t))):dt($t(t)))):Ft(t)?t=dt(Ht(t)):(t=Dt(t),Ft(t)?t=String(t):(Et(t),t=jt(St,At)),t=dt(t)),t):void 0}function Jt(t){if("string"!=typeof t)throw Error();return t}function Xt(t){if(null!=t&&"string"!=typeof t)throw Error();return t}function Yt(t){return null==t||"string"==typeof t?t:void 0}function qt(t,n,e){if(null!=t&&t[z]===tt)return t;if(Array.isArray(t)){var r=0|t[X];return(e=r|32&e|2&e)!==r&&Z(t,e),new n(t)}}function Qt(t){return R?t[R]:void 0}function Zt(t,n){for(const e in t)!isNaN(e)&&n(t,+e,t[e])}var tn=class{};function nn(t,n){n<100||k(W,1)}function en(t,n,e,r){const i=void 0!==r;r=!!r;var o,s=R;!i&&M&&s&&(o=t[s])&&Zt(o,nn),s=[];var a=t.length;let u;o=4294967295;let c=!1;const l=!!(64&n),h=l?128&n?0:-1:void 0;1&n||(u=a&&t[a-1],null!=u&&"object"==typeof u&&u.constructor===Object?o=--a:u=void 0,!l||128&n||i||(c=!0,o=o-h+h)),n=void 0;for(var f=0;f<a;f++){let i=t[f];if(null!=i&&null!=(i=e(i,r)))if(l&&f>=o){const t=f-h;(n??={})[t]=i}else s[f]=i}if(u)for(let t in u){if(null==(a=u[t])||null==(a=e(a,r)))continue;let i;f=+t,l&&!Number.isNaN(f)&&(i=f+h)<o?s[i]=a:(n??={})[t]=a}return n&&(c?s.push(n):s[o]=n),i&&R&&(t=Qt(t))&&t instanceof tn&&(s[R]=function(t){const n=new tn;return Zt(t,((t,e,r)=>{n[e]=Vt(r)})),n.g=t.g,n}(t)),s}function rn(t){switch(typeof t){case"number":return Number.isFinite(t)?t:""+t;case"bigint":return gt(t)?Number(t):""+t;case"boolean":return t?1:0;case"object":if(Array.isArray(t)){var n=0|t[X];return 0===t.length&&1&n?void 0:en(t,n,rn)}if(null!=t&&t[z]===tt)return an(t);if(t instanceof O){if(null==(n=t.g))t="";else if("string"==typeof n)t=n;else{if(S){for(var e="",r=0,i=n.length-10240;r<i;)e+=String.fromCharCode.apply(null,n.subarray(r,r+=10240));e+=String.fromCharCode.apply(null,r?n.subarray(r):n),n=btoa(e)}else{void 0===e&&(e=0),w(),e=y[e],r=Array(Math.floor(n.length/3)),i=e[64]||"";let t=0,c=0;for(;t<n.length-2;t+=3){var o=n[t],s=n[t+1],a=n[t+2],u=e[o>>2];o=e[(3&o)<<4|s>>4],s=e[(15&s)<<2|a>>6],a=e[63&a],r[c++]=u+o+s+a}switch(u=0,a=i,n.length-t){case 2:a=e[(15&(u=n[t+1]))<<2]||i;case 1:n=n[t],r[c]=e[n>>2]+e[(3&n)<<4|u>>4]+a+i}n=r.join("")}t=t.g=n}return t}return}return t}let on,sn;function an(t){return en(t=t.l,0|t[X],rn)}function un(t,n){return cn(t,n[0],n[1])}function cn(t,n,e,r=0){if(null==t){var i=32;e?(t=[e],i|=128):t=[],n&&(i=-16760833&i|(1023&n)<<14)}else{if(!Array.isArray(t))throw Error("narr");if(i=0|t[X],d&&1&i)throw Error("rfarr");if(2048&i&&!(2&i)&&function(){if(d)throw Error("carr");k(H,5)}(),256&i)throw Error("farr");if(64&i)return(i|r)!==i&&Z(t,i|r),t;if(e&&(i|=128,e!==t[0]))throw Error("mid");t:{i|=64;var o=(e=t).length;if(o){var s=o-1;const t=e[s];if(null!=t&&"object"==typeof t&&t.constructor===Object){if((s-=n=128&i?0:-1)>=1024)throw Error("pvtlmt");for(var a in t)(o=+a)<s&&(e[o+n]=t[a],delete t[a]);i=-16760833&i|(1023&s)<<14;break t}}if(n){if((a=Math.max(n,o-(128&i?0:-1)))>1024)throw Error("spvt");i=-16760833&i|(1023&a)<<14}}}return Z(t,64|i|r),t}function ln(t,n){if("object"!=typeof t)return t;if(Array.isArray(t)){var e=0|t[X];return 0===t.length&&1&e?t=void 0:2&e||(!n||4096&e||16&e?t=fn(t,e,!1,n&&!(16&e)):(Q(t,34),4&e&&Object.freeze(t))),t}return null!=t&&t[z]===tt?nt(t,e=0|(n=t.l)[X])?t:yn(t,n,e)?hn(t,n):fn(n,e):t instanceof O?t:void 0}function hn(t,n,e){return t=new t.constructor(n),e&&(t.g=et),t.m=et,t}function fn(t,n,e,r){return r??=!!(34&n),t=en(t,n,ln,r),r=32,e&&(r|=2),Z(t,n=16769217&n|r),t}function dn(t){const n=t.l,e=0|n[X];return nt(t,e)?yn(t,n,e)?hn(t,n,!0):new t.constructor(fn(n,e,!1)):t}function gn(t){if(t.g!==et)return!1;var n=t.l;return Q(n=fn(n,0|n[X]),2048),t.l=n,t.g=void 0,t.m=void 0,!0}function pn(t){if(!gn(t)&&nt(t,0|t.l[X]))throw Error()}function vn(t,n){void 0===n&&(n=0|t[X]),32&n&&!(4096&n)&&Z(t,4096|n)}function yn(t,n,e){return!!(2&e)||!(!(32&e)||4096&e)&&(Z(n,2|e),t.g=et,!0)}const mn=dt(0);function bn(t,n,e,r){if(null!==(t=wn(t.l,n,e,r)))return t}function wn(t,n,e,r){if(-1===n)return null;const i=n+(e?0:-1),o=t.length-1;let s,a;if(!(o<1+(e?0:-1))){if(i>=o)if(s=t[o],null!=s&&"object"==typeof s&&s.constructor===Object)e=s[n],a=!0;else{if(i!==o)return;e=s}else e=t[i];if(r&&null!=e){if(null==(r=r(e)))return r;if(!Object.is(r,e))return a?s[n]=r:t[i]=r,r}return e}}function _n(t,n,e,r){pn(t),Sn(t=t.l,0|t[X],n,e,r)}function Sn(t,n,e,r,i){const o=e+(i?0:-1);var s=t.length-1;if(s>=1+(i?0:-1)&&o>=s){const i=t[s];if(null!=i&&"object"==typeof i&&i.constructor===Object)return i[e]=r,n}return o<=s?(t[o]=r,n):(void 0!==r&&(e>=(s=(n??=0|t[X])>>14&1023||536870912)?null!=r&&(t[s+(i?0:-1)]={[e]:r}):t[o]=r),n)}function An(t,n,e,r,i,o,s,a){let u=n;return 1===o||4===o&&(2&n||!(16&n)&&32&r)?Tn(n)||((n|=!t.length||s&&!(4096&n)||32&r&&!(4096&n||16&n)?2:256)!==u&&Z(t,n),Object.freeze(t)):(2===o&&Tn(n)&&(t=Vt(t),u=0,n=Gn(n,r),r=Sn(e,r,i,t)),Tn(n)||(a||(n|=16),n!==u&&Z(t,n))),2&n||!(4096&n||16&n)||vn(e,r),t}function In(t,n,e){return t=wn(t,n,e),Array.isArray(t)?t:Y}function En(t,n){return 2&n&&(t|=2),1|t}function Tn(t){return!!(2&t)&&!!(4&t)||!!(256&t)}function Bn(t){return rt(t,!0)}function Un(t,n,e){pn(t);let r=0|(t=t.l)[X];if(null==e)Sn(t,r,n);else{var i=e===Y?7:0|e[X],o=i,s=Tn(i),a=s||Object.isFrozen(e);for(s||(i=0),a||(e=Vt(e),o=0,i=Gn(i,r),a=!1),i|=5,i|=(4&i?512&i?512:1024&i?1024:0:void 0)??1024,s=0;s<e.length;s++){const t=e[s],n=Jt(t);Object.is(t,n)||(a&&(e=Vt(e),o=0,i=Gn(i,r),a=!1),e[s]=n)}i!==o&&(a&&(e=Vt(e),i=Gn(i,r)),Z(e,i)),Sn(t,r,n,e)}}function Pn(t,n,e){if(2&n)throw Error();const r=at(n);let i=In(t,e,r),o=i===Y?7:0|i[X],s=En(o,n);return(2&s||Tn(s)||16&s)&&(s===o||Tn(s)||Z(i,s),i=Vt(i),o=0,s=Gn(s,n),Sn(t,n,e,i,r)),s&=-13,s!==o&&Z(i,s),i}function On(t){if(M)return t[C]??(t[C]=new Map);if(C in t)return t[C];const n=new Map;return Object.defineProperty(t,C,{value:n}),n}function jn(t,n,e,r,i){const o=On(t),s=Ln(o,t,n,e,i);return s!==r&&(s&&(n=Sn(t,n,s,void 0,i)),o.set(e,r)),n}function Ln(t,n,e,r,i){let o=t.get(r);if(null!=o)return o;o=0;for(let t=0;t<r.length;t++){const s=r[t];null!=wn(n,s,i)&&(0!==o&&(e=Sn(n,e,o,void 0,i)),o=s)}return t.set(r,o),o}function Nn(t,n,e){let r=0|t[X];const i=at(r),o=wn(t,e,i);let s;if(null!=o&&o[z]===tt){if(!nt(o))return gn(o),o.l;s=o.l}else Array.isArray(o)&&(s=o);if(s){const t=0|s[X];2&t&&(s=fn(s,t))}return s=un(s,n),s!==o&&Sn(t,r,e,s,i),s}function Vn(t,n,e){let r=t.l,i=0|r[X];if(n=function(t,n,e,r){let i=!1;if(null!=(r=wn(t,r,void 0,(t=>{const r=qt(t,e,n);return i=r!==t&&null!=r,r}))))return i&&!nt(r)&&vn(t,n),r}(r,i,n,e),null==n)return n;if(i=0|r[X],!nt(t,i)){const o=dn(n);o!==n&&(gn(t)&&(r=t.l,i=0|r[X]),i=Sn(r,i,e,n=o),vn(r,i))}return n}function xn(t,n,e,r,i,o,s){var a=nt(t,e);i=a?1:i,o=!!o||3===i,a=s&&!a,(2===i||a)&&gn(t)&&(e=0|(n=t.l)[X]);var u=(t=In(n,1))===Y?7:0|t[X],c=En(u,e);if(s=!(4&c)){var l=t,h=e;const n=!!(2&c);n&&(h|=2);let i=!n,o=!0,s=0,a=0;for(;s<l.length;s++){const t=qt(l[s],r,h);if(t instanceof r){if(!n){const n=nt(t);i&&=!n,o&&=n}l[a++]=t}}a<s&&(l.length=a),c|=4,c=o?-4097&c:4096|c,c=i?8|c:-9&c}if(c!==u&&(Z(t,c),2&c&&Object.freeze(t)),a&&!(8&c||!t.length&&(1===i||4===i&&(2&c||!(16&c)&&32&e)))){for(Tn(c)&&(t=Vt(t),c=Gn(c,e),e=Sn(n,e,1,t)),r=t,a=c,u=0;u<r.length;u++)(l=r[u])!==(c=dn(l))&&(r[u]=c);a|=8,Z(t,c=a=r.length?4096|a:-4097&a)}return An(t,c,n,e,1,i,s,o)}function kn(t,n){const e=t.l;return xn(t,e,0|e[X],n,void 0===it?2:4,!1,!0)}function Fn(t){return null==t&&(t=void 0),t}function Mn(t,n,e,r,i){return _n(t,e,r=Fn(r),i),r&&!nt(r)&&vn(t.l),t}function Dn(t,n,e){var r=hi;t:{var i=e=Fn(e);pn(t);const o=t.l;let s=0|o[X];if(null==i){const t=On(o);if(Ln(t,o,s,r)!==n)break t;t.set(r,0)}else s=jn(o,s,r,n);Sn(o,s,n,i)}e&&!nt(e)&&vn(t.l)}function Gn(t,n){return-273&(t=2&n?2|t:-3&t)}function Cn(t,n,e){pn(t);let r=t.l,i=0|r[X];const o=nt(t,i)?1:2;2===o&&gn(t)&&(r=t.l,i=0|r[X]);let s=(t=In(r,n))===Y?7:0|t[X];var a=En(s,i);const u=!(4&a);if(u){4&a&&(t=Vt(t),s=0,a=Gn(a,i),i=Sn(r,i,n,t));let e=0,o=0;for(;e<t.length;e++){const n=Yt(t[e]);null!=n&&(t[o++]=n)}o<e&&(t.length=o),a=-513&(4|a),a&=-1025,a&=-4097}a!==s&&(Z(t,a),2&a&&Object.freeze(t)),(t=An(t,a,r,i,n,o,u,!0)).push(Jt(e))}var Rn=class{constructor(t,n,e){if(this.buffer=t,e&&!n)throw Error();this.g=n}};function Wn(t,n){if("string"==typeof t)return new Rn(T(t),n);if(Array.isArray(t))return new Rn(new Uint8Array(t),n);if(t.constructor===Uint8Array)return new Rn(t,!1);if(t.constructor===ArrayBuffer)return t=new Uint8Array(t),new Rn(t,!1);if(t.constructor===O)return n=P(t)||new Uint8Array(0),new Rn(n,!0,t);if(t instanceof Uint8Array)return t=t.constructor===Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Rn(t,!1);throw Error()}function $n(t,n){let e,r=0,i=0,o=0;const s=t.i;let a=t.g;do{e=s[a++],r|=(127&e)<<o,o+=7}while(o<32&&128&e);if(o>32)for(i|=(127&e)>>4,o=3;o<32&&128&e;o+=7)e=s[a++],i|=(127&e)<<o;if(Xn(t,a),!(128&e))return n(r>>>0,i>>>0);throw Error()}function Hn(t){let n=0,e=t.g;const r=e+10,i=t.i;for(;e<r;){const r=i[e++];if(n|=r,0==(128&r))return Xn(t,e),!!(127&n)}throw Error()}function zn(t){const n=t.i;let e=t.g,r=n[e++],i=127&r;if(128&r&&(r=n[e++],i|=(127&r)<<7,128&r&&(r=n[e++],i|=(127&r)<<14,128&r&&(r=n[e++],i|=(127&r)<<21,128&r&&(r=n[e++],i|=r<<28,128&r&&128&n[e++]&&128&n[e++]&&128&n[e++]&&128&n[e++]&&128&n[e++])))))throw Error();return Xn(t,e),i}function Kn(t){var n=t.i;const e=t.g,r=n[e],i=n[e+1],o=n[e+2];return n=n[e+3],Xn(t,t.g+4),(r<<0|i<<8|o<<16|n<<24)>>>0}function Jn(t){return zn(t)}function Xn(t,n){if(t.g=n,n>t.j)throw Error()}function Yn(t,n){if(n<0)throw Error();const e=t.g;if((n=e+n)>t.j)throw Error();return t.g=n,e}function qn(t,n){if(0==n)return U();var e=Yn(t,n);return t.A&&t.u?e=t.i.subarray(e,e+n):(t=t.i,e=e===(n=e+n)?new Uint8Array(0):wt?t.slice(e,n):new Uint8Array(t.subarray(e,n))),0==e.length?U():new O(e,B)}var Qn=[];function Zn(t,n,e,r){if(ue.length){const i=ue.pop();return i.o(r),i.g.init(t,n,e,r),i}return new ae(t,n,e,r)}function te(t){t.g.clear(),t.j=-1,t.i=-1,ue.length<100&&ue.push(t)}function ne(t){var n=t.g;if(n.g==n.j)return!1;t.m=t.g.g;var e=zn(t.g)>>>0;if(n=e>>>3,!((e&=7)>=0&&e<=5))throw Error();if(n<1)throw Error();return t.j=n,t.i=e,!0}function ee(t){switch(t.i){case 0:0!=t.i?ee(t):Hn(t.g);break;case 1:Xn(t=t.g,t.g+8);break;case 2:if(2!=t.i)ee(t);else{var n=zn(t.g)>>>0;Xn(t=t.g,t.g+n)}break;case 5:Xn(t=t.g,t.g+4);break;case 3:for(n=t.j;;){if(!ne(t))throw Error();if(4==t.i){if(t.j!=n)throw Error();break}ee(t)}break;default:throw Error()}}function re(t,n,e){const r=t.g.j;var i=zn(t.g)>>>0;let o=(i=t.g.g+i)-r;if(o<=0&&(t.g.j=i,e(n,t,void 0,void 0,void 0),o=i-t.g.g),o)throw Error();t.g.g=i,t.g.j=r}function ie(t){var n=zn(t.g)>>>0,e=Yn(t=t.g,n);if(t=t.i,a){var u,c=t;(u=s)||(u=s=new TextDecoder("utf-8",{fatal:!0})),n=e+n,c=0===e&&n===c.length?c:c.subarray(e,n);try{var l=u.decode(c)}catch(t){if(void 0===o){try{u.decode(new Uint8Array([128]))}catch(t){}try{u.decode(new Uint8Array([97])),o=!0}catch(t){o=!1}}throw!o&&(s=void 0),t}}else{n=(l=e)+n,e=[];let o,s=null;for(;l<n;){var h=t[l++];h<128?e.push(h):h<224?l>=n?r():(o=t[l++],h<194||128!=(192&o)?(l--,r()):e.push((31&h)<<6|63&o)):h<240?l>=n-1?r():(o=t[l++],128!=(192&o)||224===h&&o<160||237===h&&o>=160||128!=(192&(u=t[l++]))?(l--,r()):e.push((15&h)<<12|(63&o)<<6|63&u)):h<=244?l>=n-2?r():(o=t[l++],128!=(192&o)||o-144+(h<<28)>>30!=0||128!=(192&(u=t[l++]))||128!=(192&(c=t[l++]))?(l--,r()):(h=(7&h)<<18|(63&o)<<12|(63&u)<<6|63&c,h-=65536,e.push(55296+(h>>10&1023),56320+(1023&h)))):r(),e.length>=8192&&(s=i(s,e),e.length=0)}l=i(s,e)}return l}function oe(t){const n=zn(t.g)>>>0;return qn(t.g,n)}function se(t,n,e){var r=zn(t.g)>>>0;for(r=t.g.g+r;t.g.g<r;)e.push(n(t.g))}var ae=class{constructor(t,n,e,r){if(Qn.length){const i=Qn.pop();i.init(t,n,e,r),t=i}else t=new class{constructor(t,n,e,r){this.i=null,this.u=!1,this.g=this.j=this.m=0,this.init(t,n,e,r)}init(t,n,e,{A:r=!1,C:i=!1}={}){this.A=r,this.C=i,t&&(t=Wn(t,this.C),this.i=t.buffer,this.u=t.g,this.m=n||0,this.j=void 0!==e?this.m+e:this.i.length,this.g=this.m)}clear(){this.i=null,this.u=!1,this.g=this.j=this.m=0,this.A=!1}}(t,n,e,r);this.g=t,this.m=this.g.g,this.i=this.j=-1,this.o(r)}o({D:t=!1}={}){this.D=t}},ue=[];function ce(t){return t?/^\d+$/.test(t)?(Lt(t),new le(St,At)):null:he||=new le(0,0)}var le=class{constructor(t,n){this.i=t>>>0,this.g=n>>>0}};let he;function fe(t){return t?/^-?\d+$/.test(t)?(Lt(t),new de(St,At)):null:ge||=new de(0,0)}var de=class{constructor(t,n){this.i=t>>>0,this.g=n>>>0}};let ge;function pe(t,n,e){for(;e>0||n>127;)t.g.push(127&n|128),n=(n>>>7|e<<25)>>>0,e>>>=7;t.g.push(n)}function ve(t,n){for(;n>127;)t.g.push(127&n|128),n>>>=7;t.g.push(n)}function ye(t,n){if(n>=0)ve(t,n);else{for(let e=0;e<9;e++)t.g.push(127&n|128),n>>=7;t.g.push(1)}}function me(t,n){t.g.push(n>>>0&255),t.g.push(n>>>8&255),t.g.push(n>>>16&255),t.g.push(n>>>24&255)}function be(t,n){0!==n.length&&(t.j.push(n),t.i+=n.length)}function we(t,n,e){ve(t.g,8*n+e)}function _e(t,n){return we(t,n,2),n=t.g.end(),be(t,n),n.push(t.i),n}function Se(t,n){var e=n.pop();for(e=t.i+t.g.length()-e;e>127;)n.push(127&e|128),e>>>=7,t.i++;n.push(e),t.i++}function Ae(t,n,e){we(t,n,2),ve(t.g,e.length),be(t,t.g.end()),be(t,e)}function Ie(){const t=class{constructor(){throw Error()}};return Object.setPrototypeOf(t,t.prototype),t}var Ee=Ie(),Te=Ie(),Be=Ie(),Ue=Ie(),Pe=Ie(),Oe=Ie(),je=Ie(),Le=Ie(),Ne=Ie(),Ve=Ie(),xe=Ie();var ke=class{constructor(t,n){this.l=cn(t,n,void 0,2048)}toJSON(){return an(this)}};ke.prototype[z]=tt,ke.prototype.toString=function(){return this.l.toString()};var Fe=class{constructor(t,n,e){this.g=t,this.i=n,t=Ee,this.j=!!t&&e===t||!1}};function Me(t,n){return new Fe(t,n,Ee)}function De(t,n,e,r,i){null!=(n=qe(n,r))&&(e=_e(t,e),i(n,t),Se(t,e))}const Ge=Me((function(t,n,e,r,i){return 2===t.i&&(re(t,Nn(n,r,e),i),!0)}),De),Ce=Me((function(t,n,e,r,i){return 2===t.i&&(re(t,Nn(n,r,e),i),!0)}),De);var Re=Symbol(),We=Symbol(),$e=Symbol(),He=Symbol(),ze=Symbol();let Ke,Je;function Xe(t,n,e,r){var i=r[t];if(i)return i;(i={}).H=r,i.v=function(t){switch(typeof t){case"boolean":return on||=[0,void 0,!0];case"number":return t>0?void 0:0===t?sn||=[0,void 0]:[-t,void 0];case"string":return[0,t];case"object":return t}}(r[0]);var o=r[1];let s=1;o&&o.constructor===Object&&(i.B=o,"function"==typeof(o=r[++s])&&(i.F=!0,Ke??=o,Je??=r[s+1],o=r[s+=2]));const a={};for(;o&&Array.isArray(o)&&o.length&&"number"==typeof o[0]&&o[0]>0;){for(var u=0;u<o.length;u++)a[o[u]]=o;o=r[++s]}for(u=1;void 0!==o;){let t;"number"==typeof o&&(u+=o,o=r[++s]);var c=void 0;if(o instanceof Fe?t=o:(t=Ge,s--),t?.j){o=r[++s],c=r;var l=s;"function"==typeof o&&(o=o(),c[l]=o),c=o}for(l=u+1,"number"==typeof(o=r[++s])&&o<0&&(l-=o,o=r[++s]);u<l;u++){const r=a[u];c?e(i,u,t,c,r):n(i,u,t,r)}}return r[t]=i}function Ye(t){return Array.isArray(t)?t[0]instanceof Fe?t:[Ce,t]:[t,void 0]}function qe(t,n){return t instanceof ke?t.l:Array.isArray(t)?un(t,n):void 0}function Qe(t,n,e,r){const i=e.g;t[n]=r?(t,n,e)=>i(t,n,e,r):i}function Ze(t,n,e,r,i){const o=e.g;let s,a;t[n]=(t,n,e)=>o(t,n,e,a||=Xe(We,Qe,Ze,r).v,s||=tr(r),i)}function tr(t){let n=t[$e];if(null!=n)return n;const e=Xe(We,Qe,Ze,t);return n=e.F?(t,n)=>Ke(t,n,e):(t,n)=>{for(;ne(n)&&4!=n.i;){var r=n.j,i=e[r];if(null==i){var o=e.B;o&&(o=o[r])&&(null!=(o=er(o))&&(i=e[r]=o))}if(null==i||!i(n,t,r)){if(i=(o=n).m,ee(o),o.D)var s=void 0;else s=o.g.g-i,o.g.g=i,s=qn(o.g,s);i=void 0,o=t,s&&((i=o[R]??(o[R]=new tn))[r]??(i[r]=[])).push(s)}}return(t=Qt(t))&&(t.g=e.H[ze]),!0},t[$e]=n,t[ze]=nr.bind(t),n}function nr(t,n,e,r){var i=this[We];const o=this[$e],s=un(void 0,i.v),a=Qt(t);if(a){var u=!1,c=i.B;if(c){if(i=(n,e,i)=>{if(0!==i.length)if(c[e])for(const t of i){n=Zn(t);try{u=!0,o(s,n)}finally{te(n)}}else r?.(t,e,i)},null==n)Zt(a,i);else if(null!=a){const t=a[n];t&&i(a,n,t)}if(u){let r=0|t[X];if(2&r&&2048&r&&!e?.R)throw Error();const i=at(r),o=(n,o)=>{if(null!=wn(t,n,i)){if(1===e?.P)return;throw Error()}null!=o&&(r=Sn(t,r,n,o,i)),delete a[n]};null==n?ot(s,0|s[X],((t,n)=>{o(t,n)})):o(n,wn(s,n,i))}}}}function er(t){const n=(t=Ye(t))[0].g;if(t=t[1]){const e=tr(t),r=Xe(We,Qe,Ze,t).v;return(t,i,o)=>n(t,i,o,r,e)}return n}function rr(t,n,e){t[n]=e.i}function ir(t,n,e,r){let i,o;const s=e.i;t[n]=(t,n,e)=>s(t,n,e,o||=Xe(Re,rr,ir,r).v,i||=or(r))}function or(t){let n=t[He];if(!n){const e=Xe(Re,rr,ir,t);n=(t,n)=>sr(t,n,e),t[He]=n}return n}function sr(t,n,e){ot(t,0|t[X],((t,r)=>{if(null!=r){var i=function(t,n){var e=t[n];if(e)return e;if((e=t.B)&&(e=e[n])){var r=(e=Ye(e))[0].i;if(e=e[1]){const n=or(e),i=Xe(Re,rr,ir,e).v;e=t.F?Je(i,n):(t,e,o)=>r(t,e,o,i,n)}else e=r;return t[n]=e}}(e,t);i?i(n,r,t):t<500||k($,3)}})),(t=Qt(t))&&Zt(t,((t,e,r)=>{for(be(n,n.g.end()),t=0;t<r.length;t++)be(n,P(r[t])||new Uint8Array(0))}))}const ar=dt(0);function ur(t,n){if(Array.isArray(n)){var e=0|n[X];if(4&e)return n;for(var r=0,i=0;r<n.length;r++){const e=t(n[r]);null!=e&&(n[i++]=e)}return i<r&&(n.length=i),(t=-1537&(5|e))!==e&&Z(n,t),2&t&&Object.freeze(n),n}}function cr(t,n,e){return new Fe(t,n,e)}function lr(t,n,e){return new Fe(t,n,e)}function hr(t,n,e){Sn(t,0|t[X],n,e,at(0|t[X]))}function fr(t,n,e){if(n=function(t){if(null==t)return t;const n=typeof t;if("bigint"===n)return String(xt(64,t));if(Rt(t)){if("string"===n)return zt(t);if("number"===n)return Ht(t)}}(n),null!=n){if("string"==typeof n)fe(n);if(null!=n)switch(we(t,e,0),typeof n){case"number":t=t.g,Et(n),pe(t,St,At);break;case"bigint":e=BigInt.asUintN(64,n),e=new de(Number(e&BigInt(4294967295)),Number(e>>BigInt(32))),pe(t.g,e.i,e.g);break;default:e=fe(n),pe(t.g,e.i,e.g)}}}function dr(t,n,e){null!=(n=Wt(n))&&null!=n&&(we(t,e,0),ye(t.g,n))}function gr(t,n,e){null!=(n=null==n||"boolean"==typeof n?n:"number"==typeof n?!!n:void 0)&&(we(t,e,0),t.g.g.push(n?1:0))}function pr(t,n,e){null!=(n=Yt(n))&&Ae(t,e,l(n))}function vr(t,n,e,r,i){null!=(n=qe(n,r))&&(e=_e(t,e),i(n,t),Se(t,e))}function yr(t,n,e){null!=(n=null==n||"string"==typeof n||n instanceof O?n:void 0)&&Ae(t,e,Wn(n,!0).buffer)}function mr(t,n,e){n=function(t){if(null==t)return t;if("string"==typeof t&&t)t=+t;else if("number"!=typeof t)return;return Mt(t)?t>>>0:void 0}(n),null!=n&&null!=n&&(we(t,e,0),ve(t.g,n))}var br=cr((function(t,n,e){if(1!==t.i)return!1;var r=t.g;t=Kn(r);const i=Kn(r);r=2*(i>>31)+1;const o=i>>>20&2047;return t=4294967296*(1048575&i)+t,hr(n,e,2047==o?t?NaN:r*(1/0):0==o?5e-324*r*t:r*Math.pow(2,o-1075)*(t+4503599627370496)),!0}),(function(t,n,e){null!=(n=Gt(n))&&(we(t,e,1),t=t.g,(e=_t||=new DataView(new ArrayBuffer(8))).setFloat64(0,+n,!0),St=e.getUint32(0,!0),At=e.getUint32(4,!0),me(t,St),me(t,At))}),Ne),wr=cr((function(t,n,e){if(5!==t.i)return!1;var r=Kn(t.g);t=2*(r>>31)+1;const i=r>>>23&255;return r&=8388607,hr(n,e,255==i?r?NaN:t*(1/0):0==i?1401298464324817e-60*t*r:t*Math.pow(2,i-150)*(r+8388608)),!0}),(function(t,n,e){null!=(n=Gt(n))&&(we(t,e,5),t=t.g,(e=_t||=new DataView(new ArrayBuffer(8))).setFloat32(0,+n,!0),At=0,St=e.getUint32(0,!0),me(t,St))}),Le),_r=cr((function(t,n,e){return 0!==t.i?t=!1:(hr(n,e,$n(t.g,Ut)),t=!0),t}),fr,Oe),Sr=cr((function(t,n,e){return 0!==t.i?n=!1:(hr(n,e,(t=$n(t.g,Ut))===ar?void 0:t),n=!0),n}),fr,Oe),Ar=cr((function(t,n,e){return 0!==t.i?t=!1:(hr(n,e,$n(t.g,Bt)),t=!0),t}),(function(t,n,e){if(n=function(t){if(null==t)return t;var n=typeof t;if("bigint"===n)return String(kt(64,t));if(Rt(t)){if("string"===n)return n=Dt(Number(t)),Ft(n)&&n>=0?t=String(n):(-1!==(n=t.indexOf("."))&&(t=t.substring(0,n)),(n="-"!==t[0]&&((n=t.length)<20||20===n&&t<="18446744073709551615"))||(Lt(t),t=Pt(St,At))),t;if("number"===n)return(t=Dt(t))>=0&&Ft(t)||(Et(t),t=Tt(St,At)),t}}(n),null!=n){if("string"==typeof n)ce(n);if(null!=n)switch(we(t,e,0),typeof n){case"number":t=t.g,Et(n),pe(t,St,At);break;case"bigint":e=BigInt.asUintN(64,n),e=new le(Number(e&BigInt(4294967295)),Number(e>>BigInt(32))),pe(t.g,e.i,e.g);break;default:e=ce(n),pe(t.g,e.i,e.g)}}}),je),Ir=cr((function(t,n,e){return 0===t.i&&(hr(n,e,zn(t.g)),!0)}),dr,Ue),Er=lr((function(t,n,e){return(0===t.i||2===t.i)&&(n=Pn(n,0|n[X],e),2==t.i?se(t,zn,n):n.push(zn(t.g)),!0)}),(function(t,n,e){if(null!=(n=ur(Wt,n))&&n.length){e=_e(t,e);for(let e=0;e<n.length;e++)ye(t.g,n[e]);Se(t,e)}}),Ue),Tr=cr((function(t,n,e){return 0===t.i&&(hr(n,e,0===(t=zn(t.g))?void 0:t),!0)}),dr,Ue),Br=cr((function(t,n,e){return 0===t.i&&(hr(n,e,Hn(t.g)),!0)}),gr,Te),Ur=cr((function(t,n,e){return 0===t.i&&(hr(n,e,!1===(t=Hn(t.g))?void 0:t),!0)}),gr,Te),Pr=lr((function(t,n,e){return 2===t.i&&(t=ie(t),Pn(n,0|n[X],e).push(t),!0)}),(function(t,n,e){if(null!=(n=ur(Yt,n)))for(let s=0;s<n.length;s++){var r=t,i=e,o=n[s];null!=o&&Ae(r,i,l(o))}}),Be),Or=cr((function(t,n,e){return 2===t.i&&(hr(n,e,""===(t=ie(t))?void 0:t),!0)}),pr,Be),jr=cr((function(t,n,e){return 2===t.i&&(hr(n,e,ie(t)),!0)}),pr,Be),Lr=function(t,n,e=Ee){return new Fe(t,n,e)}((function(t,n,e,r,i){return 2===t.i&&(r=un(void 0,r),Pn(n,0|n[X],e).push(r),re(t,r,i),!0)}),(function(t,n,e,r,i){if(Array.isArray(n)){for(let o=0;o<n.length;o++)vr(t,n[o],e,r,i);1&(t=0|n[X])||Z(n,1|t)}})),Nr=Me((function(t,n,e,r,i,o){if(2!==t.i)return!1;let s=0|n[X];return jn(n,s,o,e,at(s)),re(t,n=Nn(n,r,e),i),!0}),vr),Vr=cr((function(t,n,e){return 2===t.i&&(hr(n,e,oe(t)),!0)}),yr,Ve),xr=cr((function(t,n,e){return 0===t.i&&(hr(n,e,0===(t=zn(t.g)>>>0)?void 0:t),!0)}),mr,Pe),kr=cr((function(t,n,e){return 0===t.i&&(hr(n,e,zn(t.g)),!0)}),(function(t,n,e){null!=(n=Wt(n))&&(n=parseInt(n,10),we(t,e,0),ye(t.g,n))}),xe);var Fr=[0,Or,cr((function(t,n,e){return 2===t.i&&(hr(n,e,(t=oe(t))===U()?void 0:t),!0)}),(function(t,n,e){if(null!=n){if(n instanceof ke){const r=n.S;return void(r?(n=r(n),null!=n&&Ae(t,e,Wn(n,!0).buffer)):k($,3))}if(Array.isArray(n))return void k($,3)}yr(t,n,e)}),Ve)];let Mr,Dr=globalThis.trustedTypes;function Gr(t){var n;return void 0===Mr&&(Mr=function(){let t=null;if(!Dr)return t;try{const n=t=>t;t=Dr.createPolicy("goog#html",{createHTML:n,createScript:n,createScriptURL:n})}catch(t){}return t}()),t=(n=Mr)?n.createScriptURL(t):t,new class{constructor(t){this.g=t}toString(){return this.g+""}}(t)}function Cr(t,...n){if(0===n.length)return Gr(t[0]);let e=t[0];for(let r=0;r<n.length;r++)e+=encodeURIComponent(n[r])+t[r+1];return Gr(e)}var Rr=[0,Ir,kr,Br,-1,Er,kr,-1,Br],Wr=class extends ke{constructor(t){super(t)}},$r=[0,Br,jr,Br,kr,-1,lr((function(t,n,e){return(0===t.i||2===t.i)&&(n=Pn(n,0|n[X],e),2==t.i?se(t,Jn,n):n.push(zn(t.g)),!0)}),(function(t,n,e){if(null!=(n=ur(Wt,n))&&n.length){e=_e(t,e);for(let e=0;e<n.length;e++)ye(t.g,n[e]);Se(t,e)}}),xe),jr,-1,[0,Br,-1],kr,Br,-1],Hr=[0,3,Br,-1,2,[0,[2],Ir,Nr,[0,cr((function(t,n,e){return 0===t.i&&(hr(n,e,zn(t.g)>>>0),!0)}),mr,Pe)]],[0,kr,Br,kr,Br,kr,Br,jr,-1],[0,[3,4],jr,-1,Nr,[0,Ir],Nr,[0,kr]],[0]],zr=[0,jr,-2],Kr=class extends ke{constructor(t){super(t)}},Jr=[0],Xr=[0,Ir,Br,1,Br,-4],Yr=class extends ke{constructor(t){super(t,2)}},qr={};qr[336783863]=[0,jr,Br,-1,Ir,[0,[1,2,3,4,5,6,7,8,9],Nr,Jr,Nr,$r,Nr,zr,Nr,Xr,Nr,Rr,Nr,[0,jr,-2],Nr,[0,jr,kr],Nr,Hr,Nr,[0,kr,-1,Br]],[0,jr],Br,[0,[1,3],[2,4],Nr,[0,Er],-1,Nr,[0,Pr],-1,Lr,[0,jr,-1]],jr];var Qr,Zr=[0,Sr,-1,Ur,-3,Sr,Er,Or,Tr,Sr,-1,Ur,Tr,Ur,-2,Or],ti=class extends ke{constructor(t){super(t,500)}o(t){return Mn(this,0,7,t)}},ni=[-1,{}],ei=[0,jr,1,ni],ri=[0,jr,Pr,ni],ii=class extends ke{constructor(t){super(t,500)}o(t){return Mn(this,0,1001,t)}};ii.prototype.i=(Qr=[-500,Lr,[-500,Or,-1,Pr,-3,[-2,qr,Br],Lr,Fr,Tr,-1,ei,ri,Lr,[0,Or,Ur],Or,Zr,Tr,Pr,987,Pr],4,Lr,[-500,jr,-1,[-1,{}],998,jr],Lr,[-500,jr,Pr,-1,[-2,{},Br],997,Pr,-1],Tr,Lr,[-500,jr,Pr,ni,998,Pr],Pr,Tr,ei,ri,Lr,[0,Or,-1,ni],Pr,-2,Zr,Or,-1,Ur,[0,Ur,xr],978,ni,Lr,Fr],function(){const t=new class{constructor(){this.j=[],this.i=0,this.g=new class{constructor(){this.g=[]}length(){return this.g.length}end(){const t=this.g;return this.g=[],t}}}};sr(this.l,t,Xe(Re,rr,ir,Qr)),be(t,t.g.end());const n=new Uint8Array(t.i),e=t.j,r=e.length;let i=0;for(let t=0;t<r;t++){const r=e[t];n.set(r,i),i+=r.length}return t.j=[n],n});var oi,si=class extends ke{constructor(t){super(t)}},ai=class extends ke{constructor(t){super(t)}i(){return kn(this,si)}},ui=[0,Lr,[0,Ir,wr,jr,-1]],ci=class extends ke{constructor(t){super(t)}},li=class extends ke{constructor(t){super(t)}},hi=[1,2,3,4,5,6],fi=class extends ke{constructor(t){super(t)}i(){return null!=bn(this,1,void 0,Bn)}j(){return null!=Yt(bn(this,2))}},di=class extends ke{constructor(t){super(t)}},gi=class extends ke{constructor(t){super(t)}};oi=new class{constructor(){var t=Yr;this.g=gi,this.j=Mn,this.defaultValue=void 0,this.i=null!=t.N?st:void 0}register(){v(this)}},qr[451755788]=[0,[0,[0,Vr,jr,[0,Ir,_r,-1],[0,Ar,_r]],Br,[0,hi,Nr,Xr,Nr,$r,Nr,Rr,Nr,Jr,Nr,zr,Nr,Hr],kr],[0,jr,Ir,wr,Pr,-1],br];var pi=class extends ke{constructor(t){super(t)}},vi=function(t,n){return(e,r)=>{{const o={C:!0};r&&Object.assign(o,r),e=Zn(e,void 0,void 0,o);try{const r=new t,o=r.l;tr(n)(o,e);var i=r}finally{te(e)}}return i}}(class extends ke{constructor(t){super(t)}},[0,Lr,[0,1,Ir,jr,ui],_r]);function yi(){var t=navigator;return"undefined"!=typeof OffscreenCanvas&&(!function(t=navigator){return(t=t.userAgent).includes("Safari")&&!t.includes("Chrome")}(t)||!!((t=t.userAgent.match(/Version\/([\d]+).*Safari/))&&t.length>=1&&Number(t[1])>=17))}async function mi(n){if("function"!=typeof importScripts){const t=document.createElement("script");return t.src=n.toString(),t.crossOrigin="anonymous",new Promise(((n,e)=>{t.addEventListener("load",(()=>{n()}),!1),t.addEventListener("error",(t=>{e(t)}),!1),document.body.appendChild(t)}))}try{importScripts(n.toString())}catch(r){if(!(r instanceof TypeError))throw r;{const r=self.import;r?await r(n.toString()):await(e=n.toString(),Promise.resolve().then((function(){return t(require(e))})))}}var e}function bi(t,n,e){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"),e(n=t.h.stringToNewUTF8(n)),t.h._free(n)}function wi(t,n,e){t.m||console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");const r=new Uint32Array(n.length);for(let e=0;e<n.length;e++)r[e]=t.h.stringToNewUTF8(n[e]);n=t.h._malloc(4*r.length),t.h.HEAPU32.set(r,n>>2),e(n);for(const n of r)t.h._free(n);t.h._free(n)}function _i(t,n,e){t.h.simpleListeners=t.h.simpleListeners||{},t.h.simpleListeners[n]=e}function Si(t,n,e){let r=[];t.h.simpleListeners=t.h.simpleListeners||{},t.h.simpleListeners[n]=(t,n,i)=>{n?(e(r,i),r=[]):r.push(t)}}const Ai=function(t){return class extends t{K(){this.h._registerModelResourcesGraphService()}}}(class{constructor(t,n){this.j=!0,this.h=t,this.g=null,this.i=0,this.m="function"==typeof this.h._addIntToInputStream,void 0!==n?this.h.canvas=n:yi()?this.h.canvas=new OffscreenCanvas(1,1):(console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."),this.h.canvas=document.createElement("canvas"))}async initializeGraph(t){const n=await(await fetch(t)).arrayBuffer();t=!(t.endsWith(".pbtxt")||t.endsWith(".textproto")),this.setGraph(new Uint8Array(n),t)}setGraphFromString(t){this.setGraph((new TextEncoder).encode(t),!1)}setGraph(t,n){const e=t.length,r=this.h._malloc(e);this.h.HEAPU8.set(t,r),n?this.h._changeBinaryGraph(e,r):this.h._changeTextGraph(e,r),this.h._free(r)}configureAudio(t,n,e,r,i){this.h._configureAudio||console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'),bi(this,r||"input_audio",(r=>{bi(this,i=i||"audio_header",(i=>{this.h._configureAudio(r,i,t,n??0,e)}))}))}setAutoResizeCanvas(t){this.j=t}setAutoRenderToScreen(t){this.h._setAutoRenderToScreen(t)}setGpuBufferVerticalFlip(t){this.h.gpuOriginForWebTexturesIsBottomLeft=t}attachErrorListener(t){this.h.errorListener=t}attachEmptyPacketListener(t,n){this.h.emptyPacketListeners=this.h.emptyPacketListeners||{},this.h.emptyPacketListeners[t]=n}addAudioToStream(t,n,e){this.addAudioToStreamWithShape(t,0,0,n,e)}addAudioToStreamWithShape(t,n,e,r,i){const o=4*t.length;this.i!==o&&(this.g&&this.h._free(this.g),this.g=this.h._malloc(o),this.i=o),this.h.HEAPF32.set(t,this.g/4),bi(this,r,(t=>{this.h._addAudioToInputStream(this.g,n,e,t,i)}))}addGpuBufferToStream(t,n,e){bi(this,n,(n=>{if(!this.h.canvas)throw Error("No OpenGL canvas configured.");n?this.h._bindTextureToStream(n):this.h._bindTextureToCanvas();const r=this.h.canvas.getContext("webgl2")||this.h.canvas.getContext("webgl");if(!r)throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");this.h.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!0),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,t),this.h.gpuOriginForWebTexturesIsBottomLeft&&r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);const[i,o]=void 0!==t.videoWidth?[t.videoWidth,t.videoHeight]:void 0!==t.naturalWidth?[t.naturalWidth,t.naturalHeight]:void 0!==t.displayWidth?[t.displayWidth,t.displayHeight]:[t.width,t.height];!this.j||i===this.h.canvas.width&&o===this.h.canvas.height||(this.h.canvas.width=i,this.h.canvas.height=o);const[s,a]=[i,o];this.h._addBoundTextureToStream(n,s,a,e)}))}addBoolToStream(t,n,e){bi(this,n,(n=>{this.h._addBoolToInputStream(t,n,e)}))}addDoubleToStream(t,n,e){bi(this,n,(n=>{this.h._addDoubleToInputStream(t,n,e)}))}addFloatToStream(t,n,e){bi(this,n,(n=>{this.h._addFloatToInputStream(t,n,e)}))}addIntToStream(t,n,e){bi(this,n,(n=>{this.h._addIntToInputStream(t,n,e)}))}addUintToStream(t,n,e){bi(this,n,(n=>{this.h._addUintToInputStream(t,n,e)}))}addStringToStream(t,n,e){bi(this,n,(n=>{bi(this,t,(t=>{this.h._addStringToInputStream(t,n,e)}))}))}addStringRecordToStream(t,n,e){bi(this,n,(n=>{wi(this,Object.keys(t),(r=>{wi(this,Object.values(t),(i=>{this.h._addFlatHashMapToInputStream(r,i,Object.keys(t).length,n,e)}))}))}))}addProtoToStream(t,n,e,r){bi(this,e,(e=>{bi(this,n,(n=>{const i=this.h._malloc(t.length);this.h.HEAPU8.set(t,i),this.h._addProtoToInputStream(i,t.length,n,e,r),this.h._free(i)}))}))}addEmptyPacketToStream(t,n){bi(this,t,(t=>{this.h._addEmptyPacketToInputStream(t,n)}))}addBoolVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateBoolVector(t.length);if(!r)throw Error("Unable to allocate new bool vector on heap.");for(const n of t)this.h._addBoolVectorEntry(r,n);this.h._addBoolVectorToInputStream(r,n,e)}))}addDoubleVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateDoubleVector(t.length);if(!r)throw Error("Unable to allocate new double vector on heap.");for(const n of t)this.h._addDoubleVectorEntry(r,n);this.h._addDoubleVectorToInputStream(r,n,e)}))}addFloatVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateFloatVector(t.length);if(!r)throw Error("Unable to allocate new float vector on heap.");for(const n of t)this.h._addFloatVectorEntry(r,n);this.h._addFloatVectorToInputStream(r,n,e)}))}addIntVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateIntVector(t.length);if(!r)throw Error("Unable to allocate new int vector on heap.");for(const n of t)this.h._addIntVectorEntry(r,n);this.h._addIntVectorToInputStream(r,n,e)}))}addUintVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateUintVector(t.length);if(!r)throw Error("Unable to allocate new unsigned int vector on heap.");for(const n of t)this.h._addUintVectorEntry(r,n);this.h._addUintVectorToInputStream(r,n,e)}))}addStringVectorToStream(t,n,e){bi(this,n,(n=>{const r=this.h._allocateStringVector(t.length);if(!r)throw Error("Unable to allocate new string vector on heap.");for(const n of t)bi(this,n,(t=>{this.h._addStringVectorEntry(r,t)}));this.h._addStringVectorToInputStream(r,n,e)}))}addBoolToInputSidePacket(t,n){bi(this,n,(n=>{this.h._addBoolToInputSidePacket(t,n)}))}addDoubleToInputSidePacket(t,n){bi(this,n,(n=>{this.h._addDoubleToInputSidePacket(t,n)}))}addFloatToInputSidePacket(t,n){bi(this,n,(n=>{this.h._addFloatToInputSidePacket(t,n)}))}addIntToInputSidePacket(t,n){bi(this,n,(n=>{this.h._addIntToInputSidePacket(t,n)}))}addUintToInputSidePacket(t,n){bi(this,n,(n=>{this.h._addUintToInputSidePacket(t,n)}))}addStringToInputSidePacket(t,n){bi(this,n,(n=>{bi(this,t,(t=>{this.h._addStringToInputSidePacket(t,n)}))}))}addProtoToInputSidePacket(t,n,e){bi(this,e,(e=>{bi(this,n,(n=>{const r=this.h._malloc(t.length);this.h.HEAPU8.set(t,r),this.h._addProtoToInputSidePacket(r,t.length,n,e),this.h._free(r)}))}))}addBoolVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateBoolVector(t.length);if(!e)throw Error("Unable to allocate new bool vector on heap.");for(const n of t)this.h._addBoolVectorEntry(e,n);this.h._addBoolVectorToInputSidePacket(e,n)}))}addDoubleVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateDoubleVector(t.length);if(!e)throw Error("Unable to allocate new double vector on heap.");for(const n of t)this.h._addDoubleVectorEntry(e,n);this.h._addDoubleVectorToInputSidePacket(e,n)}))}addFloatVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateFloatVector(t.length);if(!e)throw Error("Unable to allocate new float vector on heap.");for(const n of t)this.h._addFloatVectorEntry(e,n);this.h._addFloatVectorToInputSidePacket(e,n)}))}addIntVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateIntVector(t.length);if(!e)throw Error("Unable to allocate new int vector on heap.");for(const n of t)this.h._addIntVectorEntry(e,n);this.h._addIntVectorToInputSidePacket(e,n)}))}addUintVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateUintVector(t.length);if(!e)throw Error("Unable to allocate new unsigned int vector on heap.");for(const n of t)this.h._addUintVectorEntry(e,n);this.h._addUintVectorToInputSidePacket(e,n)}))}addStringVectorToInputSidePacket(t,n){bi(this,n,(n=>{const e=this.h._allocateStringVector(t.length);if(!e)throw Error("Unable to allocate new string vector on heap.");for(const n of t)bi(this,n,(t=>{this.h._addStringVectorEntry(e,t)}));this.h._addStringVectorToInputSidePacket(e,n)}))}attachBoolListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachBoolListener(t)}))}attachBoolVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachBoolVectorListener(t)}))}attachIntListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachIntListener(t)}))}attachIntVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachIntVectorListener(t)}))}attachUintListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachUintListener(t)}))}attachUintVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachUintVectorListener(t)}))}attachDoubleListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachDoubleListener(t)}))}attachDoubleVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachDoubleVectorListener(t)}))}attachFloatListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachFloatListener(t)}))}attachFloatVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachFloatVectorListener(t)}))}attachStringListener(t,n){_i(this,t,n),bi(this,t,(t=>{this.h._attachStringListener(t)}))}attachStringVectorListener(t,n){Si(this,t,n),bi(this,t,(t=>{this.h._attachStringVectorListener(t)}))}attachProtoListener(t,n,e){_i(this,t,n),bi(this,t,(t=>{this.h._attachProtoListener(t,e||!1)}))}attachProtoVectorListener(t,n,e){Si(this,t,n),bi(this,t,(t=>{this.h._attachProtoVectorListener(t,e||!1)}))}attachAudioListener(t,n,e){this.h._attachAudioListener||console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'),_i(this,t,((t,e)=>{t=new Float32Array(t.buffer,t.byteOffset,t.length/4),n(t,e)})),bi(this,t,(t=>{this.h._attachAudioListener(t,e||!1)}))}finishProcessing(){this.h._waitUntilIdle()}closeGraph(){this.h._closeGraph(),this.h.simpleListeners=void 0,this.h.emptyPacketListeners=void 0}});var Ii=class extends Ai{};async function Ei(t,n){const e=await(async(t,n,e)=>{var r=xi;if(t&&await mi(t),!self.ModuleFactory)throw Error("ModuleFactory not set.");if(n&&(await mi(n),!self.ModuleFactory))throw Error("ModuleFactory not set.");return self.Module&&e&&((t=self.Module).locateFile=e.locateFile,e.mainScriptUrlOrBlob&&(t.mainScriptUrlOrBlob=e.mainScriptUrlOrBlob)),e=await self.ModuleFactory(self.Module||e),self.ModuleFactory=self.Module=void 0,new r(e,null)})(t.wasmLoaderPath,t.assetLoaderPath,{locateFile:n=>n.endsWith(".wasm")?t.wasmBinaryPath.toString():t.assetBinaryPath&&n.endsWith(".data")?t.assetBinaryPath.toString():n});return await e.o(n),e}async function Ti(t,n){return Ei(t,n)}function Bi(t,n){const e=Vn(t.baseOptions,fi,1)||new fi;"string"==typeof n?(_n(e,2,Xt(n)),_n(e,1)):n instanceof Uint8Array&&(_n(e,1,rt(n,!1)),_n(e,2)),Mn(t.baseOptions,0,1,e)}function Ui(t,n){const e=n.baseOptions||{};if(n.baseOptions?.modelAssetBuffer&&n.baseOptions?.modelAssetPath)throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");if(!(Vn(t.baseOptions,fi,1)?.i()||Vn(t.baseOptions,fi,1)?.j()||n.baseOptions?.modelAssetBuffer||n.baseOptions?.modelAssetPath))throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");if(function(t,n){let e=Vn(t.baseOptions,li,3);if(!e){var r=e=new li;Dn(r,4,new Kr)}"delegate"in n&&("GPU"===n.delegate?Dn(n=e,2,r=new Wr):Dn(n=e,4,r=new Kr)),Mn(t.baseOptions,0,3,e)}(t,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((n=>{try{t.g.h.FS_unlink("/model.dat")}catch{}t.g.h.FS_createDataFile("/","model.dat",new Uint8Array(n),!0,!1,!1),Bi(t,"/model.dat"),Vi(t)}));if(e.modelAssetBuffer instanceof Uint8Array)Bi(t,e.modelAssetBuffer);else if(e.modelAssetBuffer)return async function(t){const n=[];for(var e=0;;){const{done:r,value:i}=await t.read();if(r)break;n.push(i),e+=i.length}if(0===n.length)return new Uint8Array(0);if(1===n.length)return n[0];t=new Uint8Array(e),e=0;for(const r of n)t.set(r,e),e+=r.length;return t}(e.modelAssetBuffer).then((n=>{Bi(t,n),Vi(t)}));return Vi(t),Promise.resolve()}function Pi(t){try{const n=t.m.length;if(1===n)throw Error(t.m[0].message);if(n>1)throw Error("Encountered multiple errors: "+t.m.map((t=>t.message)).join(", "))}finally{t.m=[]}}var Oi=class{constructor(t){this.g=t,this.m=[],this.j=0,this.g.setAutoRenderToScreen(!1)}setGraph(t,n){this.g.attachErrorListener(((t,n)=>{this.m.push(Error(n))})),this.g.K(),this.g.setGraph(t,n),Pi(this)}finishProcessing(){this.g.finishProcessing(),Pi(this)}close(){this.g.closeGraph()}};async function ji(t,n){return Ti(t,n)}Oi.prototype.close=Oi.prototype.close;var Li=class extends Oi{constructor(){super(...arguments),this.G=48e3}L(t){this.G=t}};function Ni(t){const n={classifications:kn(t,pi).map((t=>function(t,n=-1,e=""){return{categories:t.map((t=>({index:Wt(bn(t,1))??0??-1,score:bn(t,2,void 0,Gt)??0??0,categoryName:Yt(bn(t,3))??""??"",displayName:Yt(bn(t,4))??""??""}))),headIndex:n,headName:e}}(Vn(t,ai,4)?.i()??[],Wt(bn(t,2))??0,Yt(bn(t,3))??"")))};return null!=function(t){return null==t?t:"bigint"==typeof t?(gt(t)?t=Number(t):(t=xt(64,t),t=gt(t)?Number(t):String(t)),t):Rt(t)?"number"==typeof t?Ht(t):zt(t):void 0}(bn(t,2,void 0,Kt))&&(n.timestampMs=function(t){const n=Number(t);return Number.isSafeInteger(n)?n:String(t)}(bn(t,2,void 0,Kt)??mn)),n}function Vi(t){var n=new ii;Cn(n,10,"audio_in"),Cn(n,10,"sample_rate"),Cn(n,15,"timestamped_classifications");const e=new Yr;!function(t,n){var e=oi,r=t.l;R&&R in r&&(r=r[R])&&delete r[451755788],e.g?e.j(t,e.g,451755788,n,e.i):e.j(t,451755788,n,e.i)}(e,t.i);const r=new ti;!function(t){var n=Xt("mediapipe.tasks.audio.audio_classifier.AudioClassifierGraph");pn(t),Sn(t=t.l,0|t[X],2,""===n?void 0:n)}(r),Cn(r,3,"AUDIO:audio_in"),Cn(r,3,"SAMPLE_RATE:sample_rate"),Cn(r,4,"TIMESTAMPED_CLASSIFICATIONS:timestamped_classifications"),r.o(e),function(t,n){var e=ti;pn(t);const r=t.l;t=xn(t,r,0|r[X],e,2,!0),n=null!=n?n:new e,t.push(n);const i=e=t===Y?7:0|t[X];(n=nt(n))?(e&=-9,1===t.length&&(e&=-4097)):e|=4096,e!==i&&Z(t,e),n||vn(r)}(n,r),t.g.attachProtoVectorListener("timestamped_classifications",((n,e)=>{!function(t,n){n.forEach((n=>{n=vi(n),t.u.push(Ni(n))}))}(t,n),t.j=Math.max(t.j,e)})),t.g.attachEmptyPacketListener("timestamped_classifications",(n=>{t.j=Math.max(t.j,n)})),n=n.i(),t.setGraph(new Uint8Array(n),!0)}Li.prototype.setDefaultSampleRate=Li.prototype.L;var xi=class extends Li{constructor(t,n){super(new Ii(t,n)),this.u=[],Mn(t=this.i=new gi,0,1,n=new di)}get baseOptions(){return Vn(this.i,di,1)}set baseOptions(t){Mn(this.i,0,1,t)}o(t){var n=this.i,e=Vn(this.i,ci,2);if(e){var r=e.l;const t=0|r[X];e=yn(e,r,t)?hn(e,r,!0):new e.constructor(fn(r,t,!1))}else e=new ci;if(void 0!==t.displayNamesLocale?_n(e,1,Xt(t.displayNamesLocale)):void 0===t.displayNamesLocale&&_n(e,1),void 0!==t.maxResults){if(null!=(r=t.maxResults)){if("number"!=typeof r)throw x();if(!Mt(r))throw x();r|=0}_n(e,2,r)}else"maxResults"in t&&_n(e,2);if(void 0!==t.scoreThreshold){if(null!=(r=t.scoreThreshold)&&"number"!=typeof r)throw Error(`Value of float/double field must be a number, found ${typeof r}: ${r}`);_n(e,3,r)}else"scoreThreshold"in t&&_n(e,3);return void 0!==t.categoryAllowlist?Un(e,4,t.categoryAllowlist):"categoryAllowlist"in t&&_n(e,4),void 0!==t.categoryDenylist?Un(e,5,t.categoryDenylist):"categoryDenylist"in t&&_n(e,5),Mn(n,0,2,e),Ui(this,t)}I(t,n){var e=this.j+1;return this.g.addDoubleToStream(n??this.G,"sample_rate",e),this.g.addAudioToStreamWithShape(t,1,t.length,"audio_in",e),this.u=[],this.finishProcessing(),[...this.u]}};let ki;xi.prototype.classify=xi.prototype.I,xi.prototype.setOptions=xi.prototype.o,xi.createFromModelPath=function(t,n){return Ti(t,{baseOptions:{modelAssetPath:n}})},xi.createFromModelBuffer=function(t,n){return ji(t,{baseOptions:{modelAssetBuffer:n}})},xi.createFromOptions=function(t,n){return ji(t,n)};const Fi=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 Mi(t){if(t)return!0;if(void 0===ki)try{await WebAssembly.instantiate(Fi),ki=!0}catch{ki=!1}return ki}async function Di(t,n,e){retur