"use strict";exports.init=void 0,exports.parse=parse;var A,Q,B=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse(Q,g){if(void 0===g&&(g="@"),!A)return init.then((function(){return parse(Q)}));var I=Q.length+1,D=(A.__heap_base.value||A.__heap_base)+4*I-A.memory.buffer.byteLength;D>0&&A.memory.grow(Math.ceil(D/65536));var J=A.sa(I-1);if((B?E:C)(Q,new Uint16Array(A.memory.buffer,J,I)),!A.parse())throw Object.assign(new Error("Parse error ".concat(g,":").concat(Q.slice(0,A.e()).split("\n").length,":").concat(A.e()-Q.lastIndexOf("\n",A.e()-1))),{idx:A.e()});for(var w=[],k=[];A.ri();){var o=A.is(),L=A.ie(),i=A.ai(),N=A.id(),U=A.ss(),F=A.se(),S=void 0;A.ip()&&(S=R(Q.slice(-1===N?o-1:o,-1===N?L+1:L))),w.push({n:S,s:o,e:L,ss:U,se:F,d:N,a:i})}for(;A.re();){o=A.es(),L=A.ee();var h=A.els(),G=A.ele(),s=(S=Q.slice(o,L))[0],Y=h<0?void 0:Q.slice(h,G),a=Y?Y[0]:"";k.push({s:o,e:L,ls:h,le:G,n:'"'===s||"'"===s?R(S):S,ln:'"'===a||"'"===a?R(Y):Y})}function R(A){try{return(0,eval)(A)}catch(A){}}return[w,k,!!A.f()]}function C(A,Q){for(var B=A.length,C=0;C>>8}}function E(A,Q){for(var B=A.length,C=0;C