{"version":3,"sources":["../src/static.ts"],"sourcesContent":["import cst from './cst';\nconst { chaosGl, ANOOP, NOOP } = cst;\n\nimport { CowErr } from './CowErr';\nimport { CowObj, CowObject } from './CowObj'\nimport eobj from './eobj'\n\nclass CML_Static {\n  static CML_Static = CML_Static\n  CML_Static = CML_Static\n\n  static errorList = {\n    // For Params: %lol=haha=asd => split at each `=` => greater than 3? => error.\n    eqspl3: new CowErr([\n      `You can't have 3 Equals characters (\\`=\\`)!`,\n      `Try to shorten it please, use \\`|e\\``,\n      `it is the escaped version of \\`=\\`.`,\n      ,\n      `Use: \"meta %name=viewport %content=width|edevice-width;\"`,\n      `=> \\`|e\\` replaced with \\`=\\``,\n      `=> \"meta %name=viewport %content=width=device-width;\"`\n    ]),\n\n    scripterror: new CowErr([\n      `Apparently, you made an error loading or executing your script.`,\n      `Look back and take a gander.`,\n      ,\n      `Potentially:`,\n      `=> Check if you loaded the right file.`,\n      `=> Check if you made a typo.`,\n      `=> Check if you did not add the directory to the file.`,\n      `=> Check if you did every thing else right.`,\n      ,\n      `=> If all else.cry :(`\n    ]),\n\n  }\n\n  static DisplayErrors = {\n    noBeam: `\n  c;\n    beam;\n      \"Beam Failed!\n      <br>\n      Try to fix the simple Fetch error.\n      <br>\n      Shouldn't take long.\";\n    `,\n  }\n\n  static Rexps = {\n    quoteExept: /\\n(?=(?:(?:[^\"]*\"){2})*[^\"]*$)/gm,\n    colExept: /\\n(?=(?:(?:[^:]*:){2})*[^:]*$)/gm,\n\n    betweenQuote: /\"([a-zA-Z\\s\\S]+)\"/gm,\n    betweenCol: /^:([a-zA-Z\\S\\s]+):/gm,\n\n    script: /\\{\\=([a-zA-Z\\S\\s][^;]+)\\=\\}/gm,\n    comment: /\\/\\/(.*)\\n{0,1}/gm,\n    lineWithComment: /[^a-zA-Z0-9:-■\\n]+((?:[\\t ]{0,})\\/\\/(?:.*)\\n{0,1})/gm,\n\n    formatspace1: /\\n{1,}/gm,\n    formatspace2: /\\n[\\t \\n]{0,}\\n/gm,\n  }\n\n  $<T extends Element>(a: string) {\n    return document.querySelector<T>(a)\n  }\n\n  arrMatch(str: string | any[], arr: string | any[]) {\n    let count = 0;\n    let list = [];\n\n    for (let i = 0; i < arr.length; i++) if (str.includes(arr[i])) {\n      count++;\n      list.push(arr[i])\n    }\n    return { count, list };\n  }\n}\n\nexport default eobj(CML_Static).default;"],"mappings":"yFACA,GAAM,CAAE,QAAAA,EAAS,MAAAC,EAAO,KAAAC,CAAK,EAAIC,EAM3BC,EAAN,MAAMC,CAAW,CACf,OAAO,WAAaA,EACpB,WAAaA,EAEb,OAAO,UAAY,CAEjB,OAAQ,IAAIC,EAAO,CACjB,4CACA,qCACA,oCACA,CACA,2DACA,4BACA,uDACF,CAAC,EAED,YAAa,IAAIA,EAAO,CACtB,kEACA,+BACA,CACA,eACA,yCACA,+BACA,yDACA,8CACA,CACA,uBACF,CAAC,CAEH,EAEA,OAAO,cAAgB,CACrB,OAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,KASV,EAEA,OAAO,MAAQ,CACb,WAAY,mCACZ,SAAU,mCAEV,aAAc,sBACd,WAAY,uBAEZ,OAAQ,gCACR,QAAS,oBACT,gBAAiB,uDAEjB,aAAc,WACd,aAAc,mBAChB,EAEA,EAAqBC,EAAW,CAC9B,OAAO,SAAS,cAAiBA,CAAC,CACpC,CAEA,SAASC,EAAqBC,EAAqB,CACjD,IAAIC,EAAQ,EACRC,EAAO,CAAC,EAEZ,QAASC,EAAI,EAAGA,EAAIH,EAAI,OAAQG,IAASJ,EAAI,SAASC,EAAIG,CAAC,CAAC,IAC1DF,IACAC,EAAK,KAAKF,EAAIG,CAAC,CAAC,GAElB,MAAO,CAAE,MAAAF,EAAO,KAAAC,CAAK,CACvB,CACF,EAEOE,EAAQC,EAAKV,CAAU,EAAE","names":["chaosGl","ANOOP","NOOP","cst_default","CML_Static","_CML_Static","CowErr","a","str","arr","count","list","i","static_default","eobj_default"]}