(function(c,d){typeofexports=="object"&&typeofmodule<"u"?d(exports):typeofdefine=="function"&&define.amd?define(["exports"],d):(c=typeofglobalThis<"u"?globalThis:c||self,d(c["ff-request"]={}))})(this,function(c){"use strict";varSe=Object.defineProperty;varxe=(c,d,b)=>dinc?Se(c,d,{enumerable:!0,configurable:!0,writable:!0,value:b}):c[d]=b;varw=(c,d,b)=>(xe(c,typeofd!="symbol"?d+"":d,b),b),he=(c,d,b)=>{if(!d.has(c))throwTypeError("Cannot "+b)};varo=(c,d,b)=>(he(c,d,"read from private field"),b?b.call(c):d.get(c)),P=(c,d,b)=>{if(d.has(c))throwTypeError("Cannot add the same private member more than once");dinstanceofWeakSet?d.add(c):d.set(c,b)},N=(c,d,b,H)=>(he(c,d,"write to private field"),H?H.call(c,b):d.set(c,b),b);varG,J,D,j,X,Z,L,k,ee,z,V,Y,K,te,$,I;functiond(r){returnr&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}varb={};(function(r){(function(e){e([],function(){vart=-1,n=-2,s=-3,l=-4,u=-5,M=function(f,i){i=i||{};varp=i.verbose||!1;p&&console.log("Normalize the JSON Object"),f=typeoff=="string"?this.JSON.parse(f):f,p&&console.log("Creating a empty dictionary");varg={strings:[],integers:[],floats:[]};p&&console.log("Creating the AST");varv=function_(a){p&&console.log("Calling recursiveAstBuilder with "+this.JSON.stringify(a));varE=typeofa;if(a===null)return{type:"null",index:s};if(typeofa>"u")return{type:"undefined",index:u};if(ainstanceofArray){varC=["@"];for(varTina)a.hasOwnProperty(T)&&C.push(_(a[T]));returnC}if(E==="object"){varC=["$"];for(varFina)a.hasOwnProperty(F)&&(C.push(_(F)),C.push(_(a[F])));returnC}if(a==="")return{type:"empty",index:l};if(E==="string"){varS=x.call(g.strings,a);returnS==-1&&(g.strings.push(Q(a)),S=g.strings.length-1),{type:"strings",index:S}}if(E==="number"&&a%1===0){varS=x.call(g.integers,a);returnS==-1&&(g.integers.push(B(a)),S=g.integers.length-1),{type:"integers",index:S}}if(E==="number"){varS=x.call(g.floats,a);returnS==-1&&(g.floats.push(a),S=g.floats.length-1),{type:"floats",index:S}}if(E==="boolean")return{type:"boolean",index:a?t:n};thrownewError("Unexpected argument of type "+typeofa)}(f),O=g.strings.length,q=g.integers.length;g.floats.length,p&&console.log("Parsing the dictionary");varU=g.strings.join("|");returnU+="^"+g.integers.join("|"),U+="^"+g.floats.join("|"),p&&console.log("Parsing the structure"),U+="^"+function_(a){if(p&&console.log("Calling a recursiveParser with "+this.JSON.stringify(a)),ainstanceofArray){varE=a.shift();for(varCina)a.hasOwnProperty(C)&&(E+=_(a[C])+"|");return(E[E.length-1]==="|"?E.slice(0,-1):E)+"]"}varT=a.type,F=a.index;if(T==="strings")returnB(F);if(T==="integers")returnB(O+F);if(T==="floats")returnB(O+q+F);if(T==="boolean")returna.index;if(T==="null")returns;if(T==="undefined")returnu;if(T==="empty")returnl;thrownewTypeError("The item is alien!")}(v),p&&console.log("Ending parser"),i.debug?{dictionary:g,ast:v,packed:U}:U},R=function(f,i){i=i||{};varp=f.split("^");i.verbose&&console.log("Building dictionary");varg=[],v=p[0];if(v!==""){v=v.split("|"),i.verbose&&console.log("Parse the strings dictionary");for(varO=0,q=v.length;O<q;O++)g.push(re(v[O]))}if(v=p[1],v!==""){v=v.split("|"),i.verbose&&console.log("Parse the integers dictionary");for(varO=0,q=v.length;O<q;O++)g.push(h(v[O]))}if(v=p[2],v!==""){v=v.split("|"),i.verbose&&console.log("Parse the floats dictionary");for(varO=0,q=v.length;O<q;O++)g.push(parseFloat(v[O]))}v=null,i.verbose&&console.log("Tokenizing the structure");for(varU="",_=[],a=p[3].length,O=0;O<a;O++){varE=p[3].charAt(O);E==="|"||E==="$"||E==="@"||E==="]"?(U&&(_.push(h(U)),U=""),E!=="|"&&_.push(E)):U+=E}varC=_.length,T=0;returni.verbose&&console.log("Starting recursive parser"),functionF(){varS=_[T++];if(i.verbose&&console.log("Reading collection type "+(S==="$"?"object":"Array")),S==="@"){for(vary=[];T<C;T++){varm=_[T];if(i.verbose&&console.log("Read "+m+" symbol"),m==="]")returny;if(m==="@"||m==="$")y.push(F());elseswitch(m){caset:y.push(!0);break;casen:y.push(!1);break;cases:y.push(null);break;caseu:y.push(void