{"version":3,"file":"main.mjs","sources":["../lib/main.ts"],"sourcesContent":["export const isNode =\n  typeof process !== \"undefined\" &&\n  typeof process.versions.node !== \"undefined\";\n\nlet currentData;\nif (!isNode) {\n  const els = document.getElementsByClassName(\"sosse-html-data\");\n  if (els.length > 0) {\n    currentData = JSON.parse(els[0].innerHTML);\n  }\n}\n\nexport const htmlData = function (newData?) {\n  if (newData !== undefined) {\n    currentData = newData;\n  }\n\n  return currentData;\n};\n"],"names":["isNode","currentData","process","versions","node","els","document","getElementsByClassName","length","JSON","parse","innerHTML","htmlData","newData","undefined"],"mappings":"AAAaA,IAITC,EAJSD,EACQ,oBAAZE,cAC0B,IAA1BA,QAAQC,SAASC,KAG1B,IAAKJ,EAAQ,CACX,IAAMK,EAAMC,SAASC,uBAAuB,mBACxCF,EAAIG,OAAS,IACfP,EAAcQ,KAAKC,MAAML,EAAI,GAAGM,YAIvBC,IAAAA,EAAW,SAAUC,GAKhC,YAJgBC,IAAZD,IACFZ,EAAcY,GAGTZ"}