(function(p,w){typeofexports=="object"&&typeofmodule<"u"?w(exports):typeofdefine=="function"&&define.amd?define(["exports"],w):(p=typeofglobalThis<"u"?globalThis:p||self,w(p["ff-request"]={}))})(this,function(p){"use strict";varye=Object.defineProperty;varbe=(p,w,_)=>winp?ye(p,w,{enumerable:!0,configurable:!0,writable:!0,value:_}):p[w]=_;varP=(p,w,_)=>(be(p,typeofw!="symbol"?w+"":w,_),_),le=(p,w,_)=>{if(!w.has(p))throwTypeError("Cannot "+_)};varh=(p,w,_)=>(le(p,w,"read from private field"),_?_.call(p):w.get(p)),N=(p,w,_)=>{if(w.has(p))throwTypeError("Cannot add the same private member more than once");winstanceofWeakSet?w.add(p):w.set(p,_)},D=(p,w,_,Y)=>(le(p,w,"write to private field"),Y?Y.call(p,_):w.set(p,_),_);varG,B,J,q,Q,W,L,X,Z,H,K,k,I,m;functionw(t){returnt&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function_(t){if(t.length>=255)thrownewTypeError("Alphabet too long");for(vare=newUint8Array(256),r=0;r<e.length;r++)e[r]=255;for(vari=0;i<t.length;i++){varl=t.charAt(i),y=l.charCodeAt(0);if(e[y]!==255)thrownewTypeError(l+" is ambiguous");e[y]=i}varc=t.length,$=t.charAt(0),V=Math.log(c)/Math.log(256),z=Math.log(256)/Math.log(c);functionF(f){if(finstanceofUint8Array||(ArrayBuffer.isView(f)?f=newUint8Array(f.buffer,f.byteOffset,f.byteLength):Array.isArray(f)&&(f=Uint8Array.from(f))),!(finstanceofUint8Array))thrownewTypeError("Expected Uint8Array");if(f.length===0)return"";for(vars=0,o=0,g=0,a=f.length;g!==a&&f[g]===0;)g++,s++;for(varu=(a-g)*z+1>>>0,d=newUint8Array(u);g!==a;){for(varA=f[g],T=0,b=u-1;(A!==0||T<o)&&b!==-1;b--,T++)A+=256*d[b]>>>0,d[b]=A%c>>>0,A=A/c>>>0;if(A!==0)thrownewError("Non-zero carry");o=T,g++}for(varn=u-o;n!==u&&d[n]===0;)n++;for(varE=$.repeat(s);n<u;++n)E+=t.charAt(d[n]);returnE}functionM(f){if(typeoff!="string")thrownewTypeError("Expected String");if(f.length===0)returnnewUint8Array;for(vars=0,o=0,g=0;f[s]===$;)o++,s++;for(vara=(f.length-s)*V+1>>>0,u=newUint8Array(a);f[s];){vard=e[f.charCodeAt(s)];if(d===255)return;for(varA=0,T=a-1;(d!==0||A<g)&&T!==-1;T--,A++)d+=c*u[T]>>>0,u[T]=d%256>>>0,d=d/256>>>0;if(d!==0)thrownewError("Non-zero carry");g=A,s++}for(varb=a-g;b!==a&&u[b]===0;)b++;for(varn=newUint8Array(o+(a-b)),E=o;b!==a;)n[E++]=u[b++];returnn}functionv(f){vars=M(f);if(s)returns;thrownewError("Non-base"+c+" character")}return{encode:F,decodeUnsafe:M,decode:v}}varY=_;constce=w(Y);varne={};(function(t){(function(e){e([],function(){varr=-1,i=-2,l=-3,y=-4,c=-5,$=function(s,o){o=o||{};varg=o.verbose||!1;g&&console.log("Normalize the JSON Object"),s=typeofs=="string"?this.JSON.parse(s):s,g&&console.log("Creating a empty dictionary");vara={strings:[],integers:[],floats:[]};g&&console.log("Creating the AST");varu=functionb(n){g&&console.log("Calling recursiveAstBuilder with "+this.JSON.stringify(n));varE=typeofn;if(n===null)return{type:"null",index:l};if(typeofn>"u")return{type:"undefined",index:c};if(ninstanceofArray){varU=["@"];for(varSinn)n.hasOwnProperty(S)&&U.push(b(n[S]));returnU}if(E==="object"){varU=["$"];for(varjinn)n.hasOwnProperty(j)&&(U.push(b(j)),U.push(b(n[j])));returnU}if(n==="")return{type:"empty",index:y};if(E==="string"){varC=f.call(a.strings,n);returnC==-1&&(a.strings.push(z(n)),C=a.strings.length-1),{type:"strings",index:C}}if(E==="number"&&n%1===0){varC=f.call(a.integers,n);returnC==-1&&(a.integers.push(M(n)),C=a.integers.length-1),{type:"integers",index:C}}if(E==="number"){varC=f.call(a.floats,n);returnC==-1&&(a.floats.push(n),C=a.floats.length-1),{type:"floats",index:C}}if(E==="boolean")return{type:"boolean",index:n?r:i};thrownewError("Unexpected argument of type "+typeofn)}(s),d=a.strings.length,A=a.integers.length;a.floats.length,g&&console.log("Parsing the dictionary");varT=a.strings.join("|");returnT+="^"+a.integers.join("|"),T+="^"+a.floats.join("|"),g&&console.log("Parsing the structure"),T+="^"+functionb(n){if(g&&console.log("Calling a recursiveParser with "+this.JSON.stringify(n)),ninstanceofArray){varE=n.shift();for(varUinn)n.hasOw