arquero
Version:
Query processing and transformation of array-backed data tables.
1 lines • 236 kB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).aq={})}(this,(function(t){"use strict";const e=2147483648;class n{constructor(t){this._size=t,this._bits=new Uint32Array(Math.ceil(t/32))}get length(){return this._size}count(){const t=this._bits.length;let e=0;for(let n=0;n<t;++n)for(let t=this._bits[n];t;++e)t&=t-1;return e}get(t){return this._bits[t>>5]&e>>>t}set(t){this._bits[t>>5]|=e>>>t}clear(t){this._bits[t>>5]&=~(e>>>t)}scan(t){for(let e=this.next(0);e>=0;e=this.next(e+1))t(e)}next(t){const e=this._bits,n=e.length;let s=t>>5,r=e[s]&4294967295>>>t;for(;s<n;r=e[++s])if(0!==r)return(s<<5)+Math.clz32(r);return-1}nth(t){let e=this.next(0);for(;t--&&e>=0;)e=this.next(e+1);return e}not(){const t=this._bits,n=t.length;for(let e=0;e<n;++e)t[e]=~t[e];const s=this._size%32;return s&&(t[n-1]&=e>>s-1),this}and(t){if(t){const e=this._bits,n=t._bits,s=e.length;for(let t=0;t<s;++t)e[t]&=n[t]}return this}or(t){if(t){const e=this._bits,n=t._bits,s=e.length;for(let t=0;t<s;++t)e[t]|=n[t]}return this}}function s(t){return t instanceof Date}function r(t){return t instanceof RegExp}function i(t){return t===Object(t)}function a(t,e){return null!=t&&null!=e&&t==t&&e==e&&(t===e||(s(t)||s(e)?+t==+e:r(t)&&r(e)?t+""==e+"":!(!i(t)||!i(e))&&function(t,e){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;if(t.length||e.length)return o(t,e);const n=Object.keys(t),s=Object.keys(e);if(n.length!==s.length)return!1;if(n.sort(),s.sort(),!o(n,s,((t,e)=>t===e)))return!1;const r=n.length;for(let s=0;s<r;++s){const r=n[s];if(!a(t[r],e[r]))return!1}return!0}(t,e)))}function o(t,e,n=a){const s=t.length;if(s!==e.length)return!1;for(let r=0;r<s;++r)if(!n(t[r],e[r]))return!1;return!0}function c(t,e,n){let s=arguments.length;t=+t,e=+e,n=s<2?(e=t,t=0,1):s<3?1:+n,s=0|Math.max(0,Math.ceil((e-t)/n));const r=new Array(s);for(let e=0;e<s;++e)r[e]=t+e*n;return r}const u=void 0;function h(t){return Array.isArray(t)}const l=Object.getPrototypeOf(Int8Array);function p(t){return t instanceof l}function d(t){return h(t)||p(t)}function f(t){return"string"==typeof t}function m(t){return null!=t&&t==t}const g=t=>d(t)||f(t);var y=Object.freeze({__proto__:null,compact:function(t){return d(t)?t.filter((t=>m(t))):t},concat:function(...t){return[].concat(...t)},includes:function(t,e,n){return!!g(t)&&t.includes(e,n)},indexof:function(t,e){return g(t)?t.indexOf(e):-1},join:function(t,e){return d(t)?t.join(e):u},lastindexof:function(t,e){return g(t)?t.lastIndexOf(e):-1},length:function(t){return g(t)?t.length:0},pluck:function(t,e){return d(t)?t.map((t=>m(t)?t[e]:u)):u},reverse:function(t){return d(t)?t.slice().reverse():f(t)?t.split("").reverse().join(""):u},slice:function(t,e,n){return g(t)?t.slice(e,n):u}});function v(t,e,n="0"){const s=t+"",r=s.length;return r<e?Array(e-r+1).join(n)+s:s}const x=t=>(t<10?"0":"")+t,b=t=>t<0?"-"+v(-t,6):t>9999?"+"+v(t,6):v(t,4);function w(t,e,n,s,r,i,a,o,c){const u=o?"Z":"";return b(t)+"-"+x(e+1)+"-"+x(n)+(!c||a?"T"+x(s)+":"+x(r)+":"+x(i)+"."+v(a,3)+u:i?"T"+x(s)+":"+x(r)+":"+x(i)+u:r||s||!o?"T"+x(s)+":"+x(r)+u:"")}function _(t,e){return isNaN(t)?"Invalid Date":w(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds(),!1,e)}function S(t,e){return isNaN(t)?"Invalid Date":w(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds(),!0,e)}const k=/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/;function E(t){return t.match(k)&&!isNaN(Date.parse(t))}const I=864e5,C=6048e5,A=new Date,N=new Date,O=t=>(A.setTime("string"==typeof t?function(t,e=Date.parse){return E(t)?e(t):t}(t):t),A);var T=Object.freeze({__proto__:null,date:function(t){return O(t).getDate()},datetime:function(t,e,n,s,r,i,a){return arguments.length?new Date(t,e||0,null==n?1:n,s||0,r||0,i||0,a||0):new Date(Date.now())},dayofweek:function(t){return O(t).getDay()},dayofyear:function(t){N.setTime(+t),N.setHours(0,0,0,0),A.setTime(+N),A.setMonth(0),A.setDate(1);const e=6e4*(N.getTimezoneOffset()-A.getTimezoneOffset());return Math.floor(1+(+N-+A-e)/I)},format_date:function(t,e){return _(O(t),!e)},format_utcdate:function(t,e){return S(O(t),!e)},hours:function(t){return O(t).getHours()},milliseconds:function(t){return O(t).getMilliseconds()},minutes:function(t){return O(t).getMinutes()},month:function(t){return O(t).getMonth()},now:function(){return Date.now()},quarter:function(t){return Math.floor(O(t).getMonth()/3)},seconds:function(t){return O(t).getSeconds()},timestamp:function(t){return+O(t)},utcdate:function(t){return O(t).getUTCDate()},utcdatetime:function(t,e,n,s,r,i,a){return arguments.length?new Date(Date.UTC(t,e||0,null==n?1:n,s||0,r||0,i||0,a||0)):new Date(Date.now())},utcdayofweek:function(t){return O(t).getUTCDay()},utcdayofyear:function(t){N.setTime(+t),N.setUTCHours(0,0,0,0);const e=Date.UTC(N.getUTCFullYear(),0,1);return Math.floor(1+(+N-e)/I)},utchours:function(t){return O(t).getUTCHours()},utcmilliseconds:function(t){return O(t).getUTCMilliseconds()},utcminutes:function(t){return O(t).getUTCMinutes()},utcmonth:function(t){return O(t).getUTCMonth()},utcquarter:function(t){return Math.floor(O(t).getUTCMonth()/3)},utcseconds:function(t){return O(t).getUTCSeconds()},utcweek:function(t,e){const n=e||0;return N.setTime(+t),N.setUTCDate(N.getUTCDate()-(N.getUTCDay()+7-n)%7),N.setUTCHours(0,0,0,0),A.setTime(+t),A.setUTCMonth(0),A.setUTCDate(1),A.setUTCDate(1-(A.getUTCDay()+7-n)%7),A.setUTCHours(0,0,0,0),Math.floor((+N-+A+1)/C)},utcyear:function(t){return O(t).getUTCFullYear()},week:function(t,e){const n=e||0;N.setTime(+t),N.setDate(N.getDate()-(N.getDay()+7-n)%7),N.setHours(0,0,0,0),A.setTime(+t),A.setMonth(0),A.setDate(1),A.setDate(1-(A.getDay()+7-n)%7),A.setHours(0,0,0,0);const s=6e4*(N.getTimezoneOffset()-A.getTimezoneOffset());return Math.floor((+N-+A+1-s)/C)},year:function(t){return O(t).getFullYear()}});var L=Object.freeze({__proto__:null,parse_json:function(t){return JSON.parse(t)},to_json:function(t){return JSON.stringify(t)}});let M=Math.random;function P(){return M()}var V=Object.freeze({__proto__:null,abs:function(t){return Math.abs(t)},acos:function(t){return Math.acos(t)},acosh:function(t){return Math.acosh(t)},asin:function(t){return Math.asin(t)},asinh:function(t){return Math.asinh(t)},atan:function(t){return Math.atan(t)},atan2:function(t,e){return Math.atan2(t,e)},atanh:function(t){return Math.atanh(t)},cbrt:function(t){return Math.cbrt(t)},ceil:function(t){return Math.ceil(t)},clz32:function(t){return Math.clz32(t)},cos:function(t){return Math.cos(t)},cosh:function(t){return Math.cosh(t)},degrees:function(t){return 180*t/Math.PI},exp:function(t){return Math.exp(t)},expm1:function(t){return Math.expm1(t)},floor:function(t){return Math.floor(t)},fround:function(t){return Math.fround(t)},greatest:function(...t){return Math.max(...t)},is_finite:function(t){return Number.isFinite(t)},is_nan:function(t){return Number.isNaN(t)},least:function(...t){return Math.min(...t)},log:function(t){return Math.log(t)},log10:function(t){return Math.log10(t)},log1p:function(t){return Math.log1p(t)},log2:function(t){return Math.log2(t)},pow:function(t,e){return Math.pow(t,e)},radians:function(t){return Math.PI*t/180},random:function(){return P()},round:function(t){return Math.round(t)},sign:function(t){return Math.sign(t)},sin:function(t){return Math.sin(t)},sinh:function(t){return Math.sinh(t)},sqrt:function(t){return Math.sqrt(t)},tan:function(t){return Math.tan(t)},tanh:function(t){return Math.tanh(t)},trunc:function(t){return Math.trunc(t)}});function D(t){return t instanceof Map}function R(t){return D(t)||function(t){return t instanceof Set}(t)}function B(t){return Array.from(t)}var j=Object.freeze({__proto__:null,entries:function(t){return R(t)?B(t.entries()):null!=t?Object.entries(t):[]},has:function(t,e){return R(t)?t.has(e):null!=t&&Object.hasOwn(t,`${e}`)},keys:function(t){return D(t)?B(t.keys()):null!=t?Object.keys(t):[]},object:function(t){return t?Object.fromEntries(t):u},values:function(t){return R(t)?B(t.values()):null!=t?Object.values(t):[]}});var F=Object.freeze({__proto__:null,endswith:function(t,e,n){return null!=t&&String(t).endsWith(e,n)},lower:function(t){return null==t?t:String(t).toLowerCase()},match:function(t,e,n){const s=null==t?t:String(t).match(e);return null==n||null==s?s:"number"==typeof n?s[n]:s.groups?s.groups[n]:null},normalize:function(t,e){return null==t?t:String(t).normalize(e)},padend:function(t,e,n){return null==t?t:String(t).padEnd(e,n)},padstart:function(t,e,n){return null==t?t:String(t).padStart(e,n)},parse_date:function(t){return null==t?t:new Date(t)},parse_float:function(t){return null==t?t:Number.parseFloat(t)},parse_int:function(t,e){return null==t?t:Number.parseInt(t,e)},repeat:function(t,e){return null==t?t:String(t).repeat(e)},replace:function(t,e,n){return null==t?t:String(t).replace(e,String(n))},split:function(t,e,n){return null==t?[]:String(t).split(e,n)},startswith:function(t,e,n){return null!=t&&String(t).startsWith(e,n)},substring:function(t,e,n){return null==t?t:String(t).substring(e,n)},trim:function(t){return null==t?t:String(t).trim()},upper:function(t){return null==t?t:String(t).toUpperCase()}});const U={bin:function(t,e,n,s,r){return null==t?null:t<e?-1/0:t>n?1/0:(t=Math.max(e,Math.min(t,n)),e+s*Math.floor(1e-14+(t-e)/s+(r||0)))},equal:a,recode:function(t,e,n){if(e instanceof Map){if(e.has(t))return e.get(t)}else{const n=`${t}`;if(Object.hasOwn(e,n))return e[n]}return void 0!==n?n:t},sequence:c,...y,...T,...L,...V,...j,...F};function $(t){return null!=t?h(t)?t:[t]:[]}function z(t){return"bigint"==typeof t}function q(t){return void 0===t?t+"":z(t)?t+"n":JSON.stringify(t)}let G=class{constructor(t,e,n){this.name=t,this.fields=e,this.params=n}toString(){const t=[...this.fields.map((t=>`d[${q(t)}]`)),...this.params.map(q)];return`d => op.${this.name}(${t})`}toObject(){return{expr:this.toString(),func:!0}}};function H(t,e=[],n=[]){return new G(t,$(e),$(n))}const W=t=>H("any",t),Y=()=>H("count"),Q=t=>H("array_agg",t),K=t=>H("array_agg_distinct",t),J=(t,e)=>H("map_agg",[t,e]),Z=(t,e)=>H("object_agg",[t,e]),X=(t,e)=>H("entries_agg",[t,e]),tt={...U,row_object:(...t)=>H("row_object",null,t.flat()),count:Y,any:W,array_agg:Q,array_agg_distinct:K,object_agg:Z,map_agg:J,entries_agg:X,valid:t=>H("valid",t),invalid:t=>H("invalid",t),distinct:t=>H("distinct",t),mode:t=>H("mode",t),sum:t=>H("sum",t),product:t=>H("product",t),mean:t=>H("mean",t),average:t=>H("average",t),variance:t=>H("variance",t),variancep:t=>H("variancep",t),stdev:t=>H("stdev",t),stdevp:t=>H("stdevp",t),min:t=>H("min",t),max:t=>H("max",t),quantile:(t,e)=>H("quantile",t,e),median:t=>H("median",t),covariance:(t,e)=>H("covariance",[t,e]),covariancep:(t,e)=>H("covariancep",[t,e]),corr:(t,e)=>H("corr",[t,e]),bins:(t,e,n,s,r)=>H("bins",t,[e,n,s,r]),row_number:()=>H("row_number"),rank:()=>H("rank"),avg_rank:()=>H("avg_rank"),dense_rank:()=>H("dense_rank"),percent_rank:()=>H("percent_rank"),cume_dist:()=>H("cume_dist"),ntile:t=>H("ntile",null,t),lag:(t,e,n)=>H("lag",t,[e,n]),lead:(t,e,n)=>H("lead",t,[e,n]),first_value:t=>H("first_value",t),last_value:t=>H("last_value",t),nth_value:(t,e)=>H("nth_value",t,e),fill_down:(t,e)=>H("fill_down",t,e),fill_up:(t,e)=>H("fill_up",t,e)};function et(t,e){throw Error(t,{cause:e})}function nt(t){return"function"==typeof t}function st(t,e){const n=Array(t);if(nt(e))for(let s=0;s<t;++s)n[s]=e(s);else n.fill(e);return n}function rt(t){const e=typeof t;return"string"===e?`"${t}"`:"object"===e&&t?s(t)?+t:h(t)||p(t)?`[${t.map(rt)}]`:r(t)?t+"":function(t){let e="{",n=-1;for(const s in t)++n>0&&(e+=","),e+=`"${s}":${rt(t[s])}`;return e+="}",e}(t):t}function it(t,e){const n=t.length;return 1===n?(e,n)=>rt(t[0](e,n)):(s,r)=>{let i="";for(let a=0;a<n;++a){a>0&&(i+="|");const n=t[a](s,r);if(e&&(null==n||n!=n))return null;i+=rt(n)}return i}}function at(){}function ot(t){return t.init=t.init||at,t.add=t.add||at,t.rem=t.rem||at,t}function ct(t,e){return t.product_v=!1,t.product=e}const ut={count:{create:()=>ot({value:t=>t.count}),param:[]},array_agg:{create:()=>ot({init:t=>t.values=!0,value:t=>t.list.values(t.stream)}),param:[1]},object_agg:{create:()=>ot({init:t=>t.values=!0,value:t=>Object.fromEntries(t.list.values())}),param:[2]},map_agg:{create:()=>ot({init:t=>t.values=!0,value:t=>new Map(t.list.values())}),param:[2]},entries_agg:{create:()=>ot({init:t=>t.values=!0,value:t=>t.list.values(t.stream)}),param:[2]},any:{create:()=>ot({add:(t,e)=>{null==t.any&&(t.any=e)},value:t=>t.valid?t.any:u}),param:[1]},valid:{create:()=>ot({value:t=>t.valid}),param:[1]},invalid:{create:()=>ot({value:t=>t.count-t.valid}),param:[1]},distinct:{create:()=>({init:t=>t.distinct=function(){const t=new Map;return{count:()=>t.size,values:()=>Array.from(t.values(),(t=>t.v)),increment(e){const n=rt(e),s=t.get(n);s?++s.n:t.set(n,{v:e,n:1})},decrement(e){const n=rt(e),s=t.get(n);1===s.n?t.delete(n):--s.n},forEach(e){t.forEach((({v:t,n})=>e(t,n)))}}}(),value:t=>t.distinct.count()+(t.valid===t.count?0:1),add:(t,e)=>t.distinct.increment(e),rem:(t,e)=>t.distinct.decrement(e)}),param:[1]},array_agg_distinct:{create:()=>ot({value:t=>t.distinct.values()}),param:[1],req:["distinct"]},mode:{create:()=>ot({value:t=>{let e=u,n=0;return t.distinct.forEach(((t,s)=>{s>n&&(n=s,e=t)})),e}}),param:[1],req:["distinct"]},sum:{create:()=>({init:t=>t.sum=0,value:t=>t.valid?t.sum:u,add:(t,e)=>z(e)?0===t.sum?t.sum=e:t.sum+=e:t.sum+=+e,rem:(t,e)=>t.sum-=e}),param:[1]},product:{create:()=>({init:t=>ct(t,1),value:t=>t.valid?t.product_v?ct(t,function(t,e=0,n=t.length){let s=t[e++];for(let r=e;r<n;++r)s*=t[r];return s}(t.list.values())):t.product:void 0,add:(t,e)=>z(e)&&1===t.product?t.product=e:t.product*=e,rem:(t,e)=>0==e||e===1/0||e===-1/0?t.product_v=!0:t.product/=e}),param:[1],stream:["array_agg"]},mean:{create:()=>({init:t=>t.mean=0,value:t=>t.valid?t.mean:u,add:(t,e)=>{t.mean_d=e-t.mean,t.mean+=t.mean_d/t.valid},rem:(t,e)=>{t.mean_d=e-t.mean,t.mean-=t.valid?t.mean_d/t.valid:t.mean}}),param:[1]},average:{create:()=>ot({value:t=>t.valid?t.mean:u}),param:[1],req:["mean"]},variance:{create:()=>({init:t=>t.dev=0,value:t=>t.valid>1?t.dev/(t.valid-1):u,add:(t,e)=>t.dev+=t.mean_d*(e-t.mean),rem:(t,e)=>t.dev-=t.mean_d*(e-t.mean)}),param:[1],req:["mean"]},variancep:{create:()=>ot({value:t=>t.valid>1?t.dev/t.valid:u}),param:[1],req:["variance"]},stdev:{create:()=>ot({value:t=>t.valid>1?Math.sqrt(t.dev/(t.valid-1)):u}),param:[1],req:["variance"]},stdevp:{create:()=>ot({value:t=>t.valid>1?Math.sqrt(t.dev/t.valid):u}),param:[1],req:["variance"]},min:{create:()=>({init:t=>t.min=u,value:t=>t.min=Number.isNaN(t.min)?t.list.min():t.min,add:(t,e)=>{(e<t.min||t.min===u)&&(t.min=e)},rem:(t,e)=>{e<=t.min&&(t.min=NaN)}}),param:[1],stream:["array_agg"]},max:{create:()=>({init:t=>t.max=u,value:t=>t.max=Number.isNaN(t.max)?t.list.max():t.max,add:(t,e)=>{(e>t.max||t.max===u)&&(t.max=e)},rem:(t,e)=>{e>=t.max&&(t.max=NaN)}}),param:[1],stream:["array_agg"]},quantile:{create:t=>ot({value:e=>e.list.quantile(t)}),param:[1,1],req:["array_agg"]},median:{create:()=>ot({value:t=>t.list.quantile(.5)}),param:[1],req:["array_agg"]},covariance:{create:()=>({init:t=>{t.cov=t.mean_x=t.mean_y=t.dev_x=t.dev_y=0},value:t=>t.valid>1?t.cov/(t.valid-1):u,add:(t,e,n)=>{const s=e-t.mean_x,r=n-t.mean_y;t.mean_x+=s/t.valid,t.mean_y+=r/t.valid;const i=n-t.mean_y;t.dev_x+=s*(e-t.mean_x),t.dev_y+=r*i,t.cov+=s*i},rem:(t,e,n)=>{const s=e-t.mean_x,r=n-t.mean_y;t.mean_x-=t.valid?s/t.valid:t.mean_x,t.mean_y-=t.valid?r/t.valid:t.mean_y;const i=n-t.mean_y;t.dev_x-=s*(e-t.mean_x),t.dev_y-=r*i,t.cov-=s*i}}),param:[2]},covariancep:{create:()=>ot({value:t=>t.valid>1?t.cov/t.valid:u}),param:[2],req:["covariance"]},corr:{create:()=>ot({value:t=>t.valid>1?t.cov/(Math.sqrt(t.dev_x)*Math.sqrt(t.dev_y)):u}),param:[2],req:["covariance"]},bins:{create:(t,e,n,s)=>ot({value:r=>function(t,e,n=15,s=!0,r=0,i){const a=Math.LN10;if(null==i){const s=Math.ceil(Math.log(n)/a),o=e-t||Math.abs(t)||1,c=[5,2];for(i=Math.max(r,Math.pow(10,Math.round(Math.log(o)/a)-s));Math.ceil(o/i)>n;)i*=10;const u=c.length;for(let t=0;t<u;++t){const e=i/c[t];e>=r&&o/e<=n&&(i=e)}}if(s){let n=Math.log(i);const s=n>=0?0:1+~~(-n/a),r=Math.pow(10,-s-1);n=Math.floor(t/i+r)*i,t=t<n?n-i:n,e=Math.ceil(e/i)*i}return[t,e===t?t+i:e,i]}(r.min,r.max,t,e,n,s)}),param:[1,4],req:["min","max"]}},ht={create(){let t;return{init:()=>t=1,value:e=>{const n=e.index;return n&&!e.peer(n)?t=n+1:t}}},param:[]},lt={create(){let t;return{init:()=>t=0,value:e=>{const{index:n,peer:s,size:r}=e;let i=n;if(t<i){for(;i+1<r&&s(i+1);)++i;t=i}return(1+t)/r}}},param:[]},pt={row_number:{create:()=>({init:at,value:t=>t.index+1}),param:[]},rank:ht,avg_rank:{create(){let t,e;return{init:()=>(t=-1,e=1),value:n=>{const s=n.index;if(s>=t){for(e=t=s+1;n.peer(t);e+=++t);e/=t-s}return e}}},param:[]},dense_rank:{create(){let t;return{init:()=>t=1,value:e=>{const n=e.index;return n&&!e.peer(n)?++t:t}}},param:[]},percent_rank:{create(){const{init:t,value:e}=ht.create();return{init:t,value:t=>(e(t)-1)/(t.size-1)}},param:[]},cume_dist:lt,ntile:{create(t){(t=+t)>0||et("ntile num must be greater than zero.");const{init:e,value:n}=lt.create();return{init:e,value:e=>Math.ceil(t*n(e))}},param:[0,1]},lag:{create:(t,e=u)=>(t=+t||1,{init:at,value:(n,s)=>{const r=n.index-t;return r>=0?n.value(r,s):e}}),param:[1,2]},lead:{create:(t,e=u)=>(t=+t||1,{init:at,value:(n,s)=>{const r=n.index+t;return r<n.size?n.value(r,s):e}}),param:[1,2]},first_value:{create:()=>({init:at,value:(t,e)=>t.value(t.i0,e)}),param:[1]},last_value:{create:()=>({init:at,value:(t,e)=>t.value(t.i1-1,e)}),param:[1]},nth_value:{create:t=>((t=+t)>0||et("nth_value nth must be greater than zero."),{init:at,value:(e,n)=>{const s=e.i0+(t-1);return s<e.i1?e.value(s,n):u}}),param:[1,1]},fill_down:{create(t=u){let e;return{init:()=>e=t,value:(t,n)=>{const s=t.value(t.index,n);return m(s)?e=s:e}}},param:[1,1]},fill_up:{create(t=u){let e,n;return{init:()=>(e=t,n=-1),value:(s,r)=>s.index<=n?e:(n=function(t,e,n){for(const s=t.size;n<s;++n)if(m(t.value(n,e)))return n;return-1}(s,r,s.index))>=0?e=s.value(n,r):(n=s.size,e=t)}},param:[1,1]}};function dt(t){return Object.hasOwn(ut,t)}function ft(t){return Object.hasOwn(pt,t)}function mt(t){return Object.hasOwn(U,t)||"row_object"===t}function gt(t){return dt(t)&&ut[t]}function yt(t){return ft(t)&&pt[t]}function vt(t,e=((t,e)=>t),n=""){const s=t.length;if(!s)return"";let r=e(t[0],0);for(let i=1;i<s;++i)r+=n+e(t[i],i);return r}function xt(t,e,...n){const s=["_","$"],r=s.slice(0,n.length);return r.push('"use strict"; const '+n.map(((t,e)=>t.map(((t,n)=>`${s[e]}${n} = ${s[e]}[${n}]`)).join(", "))).join(", ")+`; return (${t}) => ${e};`),Function(...r)(...n)}function bt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function wt(t){return z(t)?t:+t}class _t{constructor(t){this._values=t||[],this._sorted=null,this._start=0}values(t){return this._start&&(this._values=this._values.slice(this._start),this._start=0),t?this._values.slice():this._values}add(t){this._values.push(t),this._sorted=null}rem(){this._start+=1,this._sorted=null}min(){return this._sorted&&this._sorted.length?this._sorted[0]:function(t,e=0,n=t.length){let s=n?t[e++]:u;for(let r=e;r<n;++r)s>t[r]&&(s=t[r]);return s}(this._values,this._start)}max(){return this._sorted&&this._sorted.length?this._sorted[this._sorted.length-1]:function(t,e=0,n=t.length){let s=n?t[e++]:u;for(let r=e;r<n;++r)s<t[r]&&(s=t[r]);return s}(this._values,this._start)}quantile(t){return this._sorted||(this._sorted=this.values(!0),this._sorted.sort(bt)),function(t,e){const n=t.length;if(!n)return u;if((e=+e)<=0||n<2)return wt(t[0]);if(e>=1)return wt(t[n-1]);const s=(n-1)*e,r=Math.floor(s),i=wt(t[r]);return z(i)?i:i+(wt(t[r+1])-i)*(s-r)}(this._sorted,t)}}class St{constructor(t){this._outputs=t}size(){return this._outputs.length}outputs(){return this._outputs}init(t){return{}}add(t,e,n){}rem(t,e,n){}write(t,e,n){}}const kt=(t,e,n)=>xt(e,"{"+vt(t,((t,s)=>`_${s}.${n}(${e});`))+"}",t);function Et(t,e){const{ops:n,output:s}=function(t,e){const n={},s=[];function r(t,i=[]){const a=t+":"+i;if(n[a])return n[a];const o=gt(t),c=o.create(...i);return e<0&&o.stream&&o.stream.forEach((t=>r(t,[]))),o.req&&o.req.forEach((t=>r(t,[]))),n[a]=c,s.push(c),c}const i=t.map((t=>{const e=r(t.name,t.params);return e.output=t.id,e}));return{ops:s,output:i}}(t,e),r=t[0].fields,i=r.length;return new(0===i?It:1===i?Ct:2===i?At:et("Unsupported field count: "+i))(r,n,s,e)}class It extends St{constructor(t,e,n,s){super(n),this._op=e,this._fields=t,this._stream=!!s}init(){const t={count:0,valid:0,stream:this._stream};return this._op.forEach((e=>e.init(t))),t.values&&(t.list=new _t),t}write(t,e,n){const s=this._outputs,r=s.length;for(let i=0;i<r;++i)e[s[i].output][n]=s[i].value(t);return 1}_add(){}_rem(){}add(t){++t.count}rem(t){--t.count}}class Ct extends It{constructor(t,e,n,s){super(t,e,n,s);const r=["state","v1","v2"];this._add=kt(e,r,"add"),this._rem=kt(e,r,"rem")}add(t,e,n){const s=this._fields[0](e,n);++t.count,m(s)&&(++t.valid,t.list&&t.list.add(s),this._add(t,s))}rem(t,e,n){const s=this._fields[0](e,n);--t.count,m(s)&&(--t.valid,t.list&&t.list.rem(),this._rem(t,s))}}class At extends It{constructor(t,e,n,s){super(t,e,n,s);const r=["state","v1","v2"];this._add=kt(e,r,"add"),this._rem=kt(e,r,"rem")}add(t,e,n){const s=this._fields[0](e,n),r=this._fields[1](e,n);++t.count,m(s)&&m(r)&&(++t.valid,t.list&&t.list.add([s,r]),this._add(t,s,r))}rem(t,e,n){const s=this._fields[0](e,n),r=this._fields[1](e,n);--t.count,m(s)&&m(r)&&(--t.valid,t.list&&t.list.rem(),this._rem(t,s,r))}}function Nt(t,e,n){if(e.length){const s=t.data(),{keys:r}=t.groups()||{},i=Ot(t,e),a=r?(t,e)=>i[t][r[e]]:t=>i[t][0];n=n.map((t=>e=>t(e,s,a)))}return n}function Ot(t,e,n){if(!e.length)return n;const s=Tt(e),r=t.groups(),i=r?r.size:1;return n=n||st(e.length,(()=>Array(i))),i>1?s.forEach((e=>{const s=Mt(t,e,r);for(let t=0;t<i;++t)e.write(s[t],n,t)})):s.forEach((e=>{const s=Lt(t,e);e.write(s,n,0)})),n}function Tt(t,e){const n=[],s={};for(const e of t){const t=e.fields.map((t=>t+"")).join(",");(s[t]||(s[t]=[])).push(e)}for(const t in s)n.push(Et(s[t],e));return n}function Lt(t,e){const n=e.init(),s=t.totalRows(),r=t.data(),i=t.mask();if(t.isOrdered()){const i=t.indices();for(let t=0;t<s;++t)e.add(n,i[t],r)}else if(i)for(let t=i.next(0);t>=0;t=i.next(t+1))e.add(n,t,r);else for(let t=0;t<s;++t)e.add(n,t,r);return n}function Mt(t,e,n){const{keys:s,size:r}=n,i=st(r,(()=>e.init())),a=t.data();if(t.isOrdered()){const n=t.indices(),r=n.length;for(let t=0;t<r;++t){const r=n[t];e.add(i[s[r]],r,a)}}else if(t.isFiltered()){const n=t.mask();for(let t=n.next(0);t>=0;t=n.next(t+1))e.add(i[s[t]],t,a)}else{const n=t.totalRows();for(let t=0;t<n;++t)e.add(i[s[t]],t,a)}return i}function Pt(t,e){const{get:n,names:s,rows:r,size:i}=e,a=s.length;for(let e=0;e<a;++e){const a=t.add(s[e],Array(i)),o=n[e];for(let t=0;t<i;++t)a[t]=o(r[t])}}function Vt(t){return h(t)?t:D(t)?t.entries():t?Object.entries(t):[]}const Dt="ArrowFunctionExpression",Rt="FunctionExpression",Bt="Identifier",jt="Literal",Ft="MemberExpression",Ut="ObjectExpression",$t="ObjectPattern",zt="Property",qt="Column",Gt="Constant",Ht="Dictionary",Wt="Parameter";function Yt(t,e,n,s){const r=n[t.type]||n.Default;if(r&&!1===r(t,e,s))return;const i=ee[t.type];i&&i(t,e,n)}const Qt=(t,e,n)=>{Yt(t.argument,e,n,t)},Kt=(t,e,n)=>{Yt(t.left,e,n,t),Yt(t.right,e,n,t)},Jt=(t,e,n)=>{Yt(t.test,e,n,t),Yt(t.consequent,e,n,t),t.alternate&&Yt(t.alternate,e,n,t)},Zt=(t,e,n)=>{te(t.params,e,n,t),Yt(t.body,e,n,t)},Xt=(t,e,n)=>{Yt(t.callee,e,n,t),te(t.arguments,e,n,t)},te=(t,e,n,s)=>{t.forEach((t=>Yt(t,e,n,s)))},ee={TemplateLiteral:(t,e,n)=>{te(t.expressions,e,n,t),te(t.quasis,e,n,t)},MemberExpression:(t,e,n)=>{Yt(t.object,e,n,t),Yt(t.property,e,n,t)},CallExpression:Xt,NewExpression:Xt,ArrayExpression:(t,e,n)=>{te(t.elements,e,n,t)},AssignmentExpression:Kt,AwaitExpression:Qt,BinaryExpression:Kt,LogicalExpression:Kt,UnaryExpression:Qt,UpdateExpression:Qt,ConditionalExpression:Jt,ObjectExpression:(t,e,n)=>{te(t.properties,e,n,t)},Property:(t,e,n)=>{Yt(t.key,e,n,t),Yt(t.value,e,n,t)},ArrowFunctionExpression:Zt,FunctionExpression:Zt,FunctionDeclaration:Zt,VariableDeclaration:(t,e,n)=>{te(t.declarations,e,n,t)},VariableDeclarator:(t,e,n)=>{Yt(t.id,e,n,t),Yt(t.init,e,n,t)},SpreadElement:(t,e,n)=>{Yt(t.argument,e,n,t)},BlockStatement:(t,e,n)=>{te(t.body,e,n,t)},ExpressionStatement:(t,e,n)=>{Yt(t.expression,e,n,t)},IfStatement:Jt,ForStatement:(t,e,n)=>{Yt(t.init,e,n,t),Yt(t.test,e,n,t),Yt(t.update,e,n,t),Yt(t.body,e,n,t)},WhileStatement:(t,e,n)=>{Yt(t.test,e,n,t),Yt(t.body,e,n,t)},DoWhileStatement:(t,e,n)=>{Yt(t.body,e,n,t),Yt(t.test,e,n,t)},SwitchStatement:(t,e,n)=>{Yt(t.discriminant,e,n,t),te(t.cases,e,n,t)},SwitchCase:(t,e,n)=>{t.test&&Yt(t.test,e,n,t),te(t.consequent,e,n,t)},ReturnStatement:Qt,Program:(t,e,n)=>{Yt(t.body[0],e,n,t)}};function ne(t){delete t.start,delete t.end,delete t.optional}function se(t){ne(t),delete t.object,delete t.property,delete t.computed,t.table||delete t.table}function re(t,e){return e&&e.type===t}const ie=(t,e)=>{const n=pe[t.type];return n?n(t,e):et(`Unsupported expression construct: ${t.type}`)},ae=(t,e)=>"("+ie(t.left,e)+" "+t.operator+" "+ie(t.right,e)+")",oe=(t,e)=>"("+ue(t.params,e)+")=>"+ie(t.body,e),ce=(t,e)=>ie(t.callee,e)+"("+ue(t.arguments,e)+")",ue=(t,e,n=",")=>t.map((t=>ie(t,e))).join(n),he=t=>t.computed?`[${q(t.name)}]`:`.${t.name}`,le=(t,e,n)=>{const s=t.table||"";return`data${s}${he(t)}.${n}(${e.index}${s})`},pe={Constant:t=>t.raw,Column:(t,e)=>t.array?((t,e)=>{const n=t.table||"";return`data${n}${he(t)}[${e.index}${n}]`})(t,e):le(t,e,"at"),Dictionary:(t,e)=>le(t,e,"key"),Function:t=>`fn.${t.name}`,Parameter:t=>`$${he(t)}`,Op:(t,e)=>`op(${q(t.name)},${e.op||e.index})`,Literal:t=>t.raw,Identifier:t=>t.name,TemplateLiteral:(t,e)=>{const{quasis:n,expressions:s}=t,r=s.length;let i=n[0].value.raw;for(let t=0;t<r;)i+="${"+ie(s[t],e)+"}"+n[++t].value.raw;return"`"+i+"`"},MemberExpression:(t,e)=>{const n=!t.computed,s=ie(t.object,e),r=ie(t.property,e);return s+(n?"."+r:"["+r+"]")},CallExpression:ce,NewExpression:(t,e)=>"new "+ce(t,e),ArrayExpression:(t,e)=>"["+ue(t.elements,e)+"]",AssignmentExpression:ae,BinaryExpression:ae,LogicalExpression:ae,UnaryExpression:(t,e)=>"("+t.operator+ie(t.argument,e)+")",ConditionalExpression:(t,e)=>"("+ie(t.test,e)+"?"+ie(t.consequent,e)+":"+ie(t.alternate,e)+")",ObjectExpression:(t,e)=>"({"+ue(t.properties,e)+"})",Property:(t,e)=>{const n=ie(t.key,e);return(t.computed?`[${n}]`:n)+":"+ie(t.value,e)},ArrowFunctionExpression:oe,FunctionExpression:oe,FunctionDeclaration:oe,ArrayPattern:(t,e)=>"["+ue(t.elements,e)+"]",ObjectPattern:(t,e)=>"{"+ue(t.properties,e)+"}",VariableDeclaration:(t,e)=>t.kind+" "+ue(t.declarations,e,","),VariableDeclarator:(t,e)=>ie(t.id,e)+"="+ie(t.init,e),SpreadElement:(t,e)=>"..."+ie(t.argument,e),BlockStatement:(t,e)=>"{"+ue(t.body,e,";")+";}",BreakStatement:()=>"break",ExpressionStatement:(t,e)=>ie(t.expression,e),IfStatement:(t,e)=>"if ("+ie(t.test,e)+")"+ie(t.consequent,e)+(t.alternate?" else "+ie(t.alternate,e):""),SwitchStatement:(t,e)=>"switch ("+ie(t.discriminant,e)+") {"+ue(t.cases,e,"")+"}",SwitchCase:(t,e)=>(t.test?"case "+ie(t.test,e):"default")+": "+ue(t.consequent,e,";")+";",ReturnStatement:(t,e)=>"return "+ie(t.argument,e),Program:(t,e)=>ie(t.body[0],e)};function de(t,e={index:"row"}){return ie(t,e)}function fe(t,e,n){return t=`"use strict"; return ${t};`,Function("fn","$",t)(e,n)}const me={escape:(t,e,n)=>fe(t,e,n),expr:(t,e)=>fe(`(row,data,op)=>${t}`,U,e),expr2:(t,e)=>fe(`(row0,data0,row,data)=>${t}`,U,e),join:(t,e)=>fe(`(row1,data1,row2,data2)=>${t}`,U,e),param:(t,e)=>fe(t,U,e)},ge={"==":1,"!=":1,"===":1,"!==":1};function ye(t,e,n=0,s=void 0,r=void 0){if(t.type=qt,t.name=e,t.table=n,d(s)&&(t.array=!0),r&&s&&nt(s.keyFor)){const e=ge[r.operator]?r.left===t?r.right:r.left:r.callee&&"equal"===r.callee.name?r.arguments[r.arguments[0]===t?1:0]:null;e&&e.type===jt&&function(t,e,n,s){s<0?(t.type=jt,t.value=!1,t.raw="false"):(e.type=Ht,n.value=s,n.raw=s+"")}(r,t,e,s.keyFor(e.value))}return t}const ve="row_object";function xe(t,e,n=e.columnNames()){t.type=Ut;const s=t.properties=[];for(const t of Vt(n)){const[n,r]=h(t)?t:[t,t];s.push({type:zt,key:{type:jt,raw:q(r)},value:ye({computed:!0},n,0,e.column(n))})}return t}function be(t,e){return de(xe({},t,e))}function we(t,e){return me.expr(be(t,e))}const _e="Escaped functions are not valid as rollup or pivot values.";function Se(t,e,n){t.aggronly&&et(_e);const s=`(row,data)=>fn(${be(t.table)},$)`;return{escape:me.escape(s,(r=e.expr,nt(r)?r:()=>r),n)};var r}var ke=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],Ee=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ie="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Ce={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Ae="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Ne={5:Ae,"5module":Ae+" export import",6:Ae+" const class extends export import super"},Oe=/^in(stanceof)?$/,Te=new RegExp("["+Ie+"]"),Le=new RegExp("["+Ie+"·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function Me(t,e){for(var n=65536,s=0;s<e.length;s+=2){if((n+=e[s])>t)return!1;if((n+=e[s+1])>=t)return!0}return!1}function Pe(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&Te.test(String.fromCharCode(t)):!1!==e&&Me(t,Ee)))}function Ve(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&Le.test(String.fromCharCode(t)):!1!==e&&(Me(t,Ee)||Me(t,ke)))))}var De=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function Re(t,e){return new De(t,{beforeExpr:!0,binop:e})}var Be={beforeExpr:!0},je={startsExpr:!0},Fe={};function Ue(t,e){return void 0===e&&(e={}),e.keyword=t,Fe[t]=new De(t,e)}var $e={num:new De("num",je),regexp:new De("regexp",je),string:new De("string",je),name:new De("name",je),privateId:new De("privateId",je),eof:new De("eof"),bracketL:new De("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new De("]"),braceL:new De("{",{beforeExpr:!0,startsExpr:!0}),braceR:new De("}"),parenL:new De("(",{beforeExpr:!0,startsExpr:!0}),parenR:new De(")"),comma:new De(",",Be),semi:new De(";",Be),colon:new De(":",Be),dot:new De("."),question:new De("?",Be),questionDot:new De("?."),arrow:new De("=>",Be),template:new De("template"),invalidTemplate:new De("invalidTemplate"),ellipsis:new De("...",Be),backQuote:new De("`",je),dollarBraceL:new De("${",{beforeExpr:!0,startsExpr:!0}),eq:new De("=",{beforeExpr:!0,isAssign:!0}),assign:new De("_=",{beforeExpr:!0,isAssign:!0}),incDec:new De("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new De("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Re("||",1),logicalAND:Re("&&",2),bitwiseOR:Re("|",3),bitwiseXOR:Re("^",4),bitwiseAND:Re("&",5),equality:Re("==/!=/===/!==",6),relational:Re("</>/<=/>=",7),bitShift:Re("<</>>/>>>",8),plusMin:new De("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Re("%",10),star:Re("*",10),slash:Re("/",10),starstar:new De("**",{beforeExpr:!0}),coalesce:Re("??",1),_break:Ue("break"),_case:Ue("case",Be),_catch:Ue("catch"),_continue:Ue("continue"),_debugger:Ue("debugger"),_default:Ue("default",Be),_do:Ue("do",{isLoop:!0,beforeExpr:!0}),_else:Ue("else",Be),_finally:Ue("finally"),_for:Ue("for",{isLoop:!0}),_function:Ue("function",je),_if:Ue("if"),_return:Ue("return",Be),_switch:Ue("switch"),_throw:Ue("throw",Be),_try:Ue("try"),_var:Ue("var"),_const:Ue("const"),_while:Ue("while",{isLoop:!0}),_with:Ue("with"),_new:Ue("new",{beforeExpr:!0,startsExpr:!0}),_this:Ue("this",je),_super:Ue("super",je),_class:Ue("class",je),_extends:Ue("extends",Be),_export:Ue("export"),_import:Ue("import",je),_null:Ue("null",je),_true:Ue("true",je),_false:Ue("false",je),_in:Ue("in",{beforeExpr:!0,binop:7}),_instanceof:Ue("instanceof",{beforeExpr:!0,binop:7}),_typeof:Ue("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Ue("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Ue("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ze=/\r\n?|\n|\u2028|\u2029/,qe=new RegExp(ze.source,"g");function Ge(t){return 10===t||13===t||8232===t||8233===t}function He(t,e,n){void 0===n&&(n=t.length);for(var s=e;s<n;s++){var r=t.charCodeAt(s);if(Ge(r))return s<n-1&&13===r&&10===t.charCodeAt(s+1)?s+2:s+1}return-1}var We=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ye=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Qe=Object.prototype,Ke=Qe.hasOwnProperty,Je=Qe.toString,Ze=Object.hasOwn||function(t,e){return Ke.call(t,e)},Xe=Array.isArray||function(t){return"[object Array]"===Je.call(t)},tn=Object.create(null);function en(t){return tn[t]||(tn[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function nn(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}var sn=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,rn=function(t,e){this.line=t,this.column=e};rn.prototype.offset=function(t){return new rn(this.line,this.column+t)};var an=function(t,e,n){this.start=e,this.end=n,null!==t.sourceFile&&(this.source=t.sourceFile)};function on(t,e){for(var n=1,s=0;;){var r=He(t,s,e);if(r<0)return new rn(n,e-s);++n,s=r}}var cn={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},un=!1;function hn(t){var e={};for(var n in cn)e[n]=t&&Ze(t,n)?t[n]:cn[n];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!un&&"object"==typeof console&&console.warn&&(un=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),t&&null!=t.allowHashBang||(e.allowHashBang=e.ecmaVersion>=14),Xe(e.onToken)){var s=e.onToken;e.onToken=function(t){return s.push(t)}}return Xe(e.onComment)&&(e.onComment=function(t,e){return function(n,s,r,i,a,o){var c={type:n?"Block":"Line",value:s,start:r,end:i};t.locations&&(c.loc=new an(this,a,o)),t.ranges&&(c.range=[r,i]),e.push(c)}}(e,e.onComment)),e}var ln=256;function pn(t,e){return 2|(t?4:0)|(e?8:0)}var dn=function(t,e,n){this.options=t=hn(t),this.sourceFile=t.sourceFile,this.keywords=en(Ne[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var s="";!0!==t.allowReserved&&(s=Ce[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(s+=" await")),this.reservedWords=en(s);var r=(s?s+" ":"")+Ce.strict;this.reservedWordsStrict=en(r),this.reservedWordsStrictBind=en(r+" "+Ce.strictBind),this.input=String(e),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ze).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=$e.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},fn={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};dn.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},fn.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},fn.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},fn.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},fn.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||e.flags&ln)return!1;if(2&e.flags)return(4&e.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},fn.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,n=t.inClassFieldInit;return(64&e)>0||n||this.options.allowSuperOutsideMethod},fn.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},fn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},fn.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,n=t.inClassFieldInit;return(258&e)>0||n},fn.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ln)>0},dn.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=this,s=0;s<t.length;s++)n=t[s](n);return n},dn.parse=function(t,e){return new this(e,t).parse()},dn.parseExpressionAt=function(t,e,n){var s=new this(n,t,e);return s.nextToken(),s.parseExpression()},dn.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(dn.prototype,fn);var mn=dn.prototype,gn=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;mn.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){Ye.lastIndex=t,t+=Ye.exec(this.input)[0].length;var e=gn.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){Ye.lastIndex=t+e[0].length;var n=Ye.exec(this.input),s=n.index+n[0].length,r=this.input.charAt(s);return";"===r||"}"===r||ze.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}t+=e[0].length,Ye.lastIndex=t,t+=Ye.exec(this.input)[0].length,";"===this.input[t]&&t++}},mn.eat=function(t){return this.type===t&&(this.next(),!0)},mn.isContextual=function(t){return this.type===$e.name&&this.value===t&&!this.containsEsc},mn.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},mn.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},mn.canInsertSemicolon=function(){return this.type===$e.eof||this.type===$e.braceR||ze.test(this.input.slice(this.lastTokEnd,this.start))},mn.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},mn.semicolon=function(){this.eat($e.semi)||this.insertSemicolon()||this.unexpected()},mn.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},mn.expect=function(t){this.eat(t)||this.unexpected()},mn.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var yn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};mn.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var n=e?t.parenthesizedAssign:t.parenthesizedBind;n>-1&&this.raiseRecoverable(n,e?"Assigning to rvalue":"Parenthesized pattern")}},mn.checkExpressionErrors=function(t,e){if(!t)return!1;var n=t.shorthandAssign,s=t.doubleProto;if(!e)return n>=0||s>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},mn.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},mn.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var vn=dn.prototype;vn.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==$e.eof;){var n=this.parseStatement(null,!0,e);t.body.push(n)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var i=r[s];this.raiseRecoverable(this.undefinedExports[i].start,"Export '"+i+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};var xn={kind:"loop"},bn={kind:"switch"};vn.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Ye.lastIndex=this.pos;var e=Ye.exec(this.input),n=this.pos+e[0].length,s=this.input.charCodeAt(n);if(91===s||92===s)return!0;if(t)return!1;if(123===s||s>55295&&s<56320)return!0;if(Pe(s,!0)){for(var r=n+1;Ve(s=this.input.charCodeAt(r),!0);)++r;if(92===s||s>55295&&s<56320)return!0;var i=this.input.slice(n,r);if(!Oe.test(i))return!0}return!1},vn.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Ye.lastIndex=this.pos;var t,e=Ye.exec(this.input),n=this.pos+e[0].length;return!(ze.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(Ve(t=this.input.charCodeAt(n+8))||t>55295&&t<56320))},vn.parseStatement=function(t,e,n){var s,r=this.type,i=this.startNode();switch(this.isLet(t)&&(r=$e._var,s="let"),r){case $e._break:case $e._continue:return this.parseBreakContinueStatement(i,r.keyword);case $e._debugger:return this.parseDebuggerStatement(i);case $e._do:return this.parseDoStatement(i);case $e._for:return this.parseForStatement(i);case $e._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!t);case $e._class:return t&&this.unexpected(),this.parseClass(i,!0);case $e._if:return this.parseIfStatement(i);case $e._return:return this.parseReturnStatement(i);case $e._switch:return this.parseSwitchStatement(i);case $e._throw:return this.parseThrowStatement(i);case $e._try:return this.parseTryStatement(i);case $e._const:case $e._var:return s=s||this.value,t&&"var"!==s&&this.unexpected(),this.parseVarStatement(i,s);case $e._while:return this.parseWhileStatement(i);case $e._with:return this.parseWithStatement(i);case $e.braceL:return this.parseBlock(!0,i);case $e.semi:return this.parseEmptyStatement(i);case $e._export:case $e._import:if(this.options.ecmaVersion>10&&r===$e._import){Ye.lastIndex=this.pos;var a=Ye.exec(this.input),o=this.pos+a[0].length,c=this.input.charCodeAt(o);if(40===c||46===c)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===$e._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!t);var u=this.value,h=this.parseExpression();return r===$e.name&&"Identifier"===h.type&&this.eat($e.colon)?this.parseLabeledStatement(i,u,h,t):this.parseExpressionStatement(i,h)}},vn.parseBreakContinueStatement=function(t,e){var n="break"===e;this.next(),this.eat($e.semi)||this.insertSemicolon()?t.label=null:this.type!==$e.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(n||"loop"===r.kind))break;if(t.label&&n)break}}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,n?"BreakStatement":"ContinueStatement")},vn.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},vn.parseDoStatement=function(t){return this.next(),this.labels.push(xn),t.body=this.parseStatement("do"),this.labels.pop(),this.expect($e._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat($e.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},vn.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(xn),this.enterScope(0),this.expect($e.parenL),this.type===$e.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var n=this.isLet();if(this.type===$e._var||this.type===$e._const||n){var s=this.startNode(),r=n?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),(this.type===$e._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===s.declarations.length?(this.options.ecmaVersion>=9&&(this.type===$e._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,s)):(e>-1&&this.unexpected(e),this.parseFor(t,s))}var i=this.isContextual("let"),a=!1,o=this.containsEsc,c=new yn,u=this.start,h=e>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);return this.type===$e._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===$e._in&&this.unexpected(e),t.await=!0):a&&this.options.ecmaVersion>=8&&(h.start!==u||o||"Identifier"!==h.type||"as