{"version":3,"sources":["../src/extractQueryParams.js"],"names":["extractQueryParams","src","split","url","query","params","map","x","key","val","decodeURIComponent","reduce","obj"],"mappings":";;;;;;;;;;;;;;;;;;;AAAe,SAASA,kBAAT,CAA4BC,GAA5B,EAAiC;AAAA,mBACzBA,GAAG,CAACC,KAAJ,CAAU,GAAV,CADyB;AAAA;AAAA,MACvCC,GADuC;AAAA,MAClCC,KADkC;;AAE9C,MAAMC,MAAM,GAAGD,KAAK,GAChBA,KAAK,CACFF,KADH,CACS,GADT,EAEGI,GAFH,CAEO,UAAAC,CAAC,EAAI;AAAA,mBACWA,CAAC,CAACL,KAAF,CAAQ,GAAR,CADX;AAAA;AAAA,QACDM,GADC;AAAA,QACIC,GADJ;;AAER,WAAO,CAACD,GAAD,EAAME,kBAAkB,CAACD,GAAD,CAAxB,CAAP;AACD,GALH,EAMGE,MANH,CAMU,UAACC,GAAD;AAAA;AAAA,QAAOJ,GAAP;AAAA,QAAYC,GAAZ;;AAAA,WAAqB,SAAcG,GAAd,sBAAsBJ,GAAtB,EAA4BC,GAA5B,EAArB;AAAA,GANV,EAMmE,EANnE,CADgB,GAQhB,EARJ;AASA,SAAO,CAACN,GAAD,EAAME,MAAN,CAAP;AACD","sourcesContent":["export default function extractQueryParams(src) {\n const [url, query] = src.split(\"?\");\n const params = query\n ? query\n .split(\"&\")\n .map(x => {\n const [key, val] = x.split(\"=\");\n return [key, decodeURIComponent(val)];\n })\n .reduce((obj, [key, val]) => Object.assign(obj, { [key]: val }), {})\n : {};\n return [url, params];\n}\n"],"file":"extractQueryParams.js"}