mode-csp-51530766.js.map 3.6 KB

1
  1. {"version":3,"file":"mode-csp-51530766.js","sources":["../../node_modules/ace-builds/src-noconflict/mode-csp.js"],"sourcesContent":["ace.define(\"ace/mode/csp_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\"], function(require, exports, module){/*\n EXPLANATION\n\n This highlight rules were created to help developer spot typos when working\n with Content-Security-Policy (CSP). See:\n https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/\n */\n\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextHighlightRules = require(\"./text_highlight_rules\").TextHighlightRules;\nvar CspHighlightRules = function () {\n var keywordMapper = this.createKeywordMapper({\n \"constant.language\": \"child-src|connect-src|default-src|font-src|frame-src|img-src|manifest-src|media-src|object-src\"\n + \"|script-src|style-src|worker-src|base-uri|plugin-types|sandbox|disown-opener|form-action|frame-ancestors|report-uri\"\n + \"|report-to|upgrade-insecure-requests|block-all-mixed-content|require-sri-for|reflected-xss|referrer|policy-uri\",\n \"variable\": \"'none'|'self'|'unsafe-inline'|'unsafe-eval'|'strict-dynamic'|'unsafe-hashed-attributes'\"\n }, \"identifier\", true);\n this.$rules = {\n start: [{\n token: \"string.link\",\n regex: /https?:[^;\\s]*/\n }, {\n token: \"operator.punctuation\",\n regex: /;/\n }, {\n token: keywordMapper,\n regex: /[^\\s;]+/\n }]\n };\n};\noop.inherits(CspHighlightRules, TextHighlightRules);\nexports.CspHighlightRules = CspHighlightRules;\n\n});\n\nace.define(\"ace/mode/csp\",[\"require\",\"exports\",\"module\",\"ace/mode/text\",\"ace/mode/csp_highlight_rules\",\"ace/lib/oop\"], function(require, exports, module){/*\n THIS FILE WAS AUTOGENERATED BY mode.tmpl.js\n*/\n\"use strict\";\nvar TextMode = require(\"./text\").Mode;\nvar CspHighlightRules = require(\"./csp_highlight_rules\").CspHighlightRules;\nvar oop = require(\"../lib/oop\");\nvar Mode = function () {\n this.HighlightRules = CspHighlightRules;\n};\noop.inherits(Mode, TextMode);\n(function () {\n this.$id = \"ace/mode/csp\";\n}).call(Mode.prototype);\nexports.Mode = Mode;\n\n}); (function() {\n ace.require([\"ace/mode/csp\"], function(m) {\n if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n module.exports = m;\n }\n });\n })();\n "],"names":["require","exports","module","oop","TextHighlightRules","CspHighlightRules","keywordMapper","TextMode","Mode","m"],"mappings":"gaAAA,IAAI,OAAO,+BAA+B,CAAC,UAAU,UAAU,SAAS,cAAc,+BAA+B,EAAG,SAASA,EAASC,EAASC,EAAO,CAQ1J,IAAIC,EAAMH,EAAQ,YAAY,EAC1BI,EAAqBJ,EAAQ,wBAAwB,EAAE,mBACvDK,EAAoB,UAAY,CAChC,IAAIC,EAAgB,KAAK,oBAAoB,CACzC,oBAAqB,kUAGrB,SAAY,yFACpB,EAAO,aAAc,EAAI,EACrB,KAAK,OAAS,CACV,MAAO,CAAC,CACA,MAAO,cACP,MAAO,gBACvB,EAAe,CACC,MAAO,uBACP,MAAO,GACvB,EAAe,CACC,MAAOA,EACP,MAAO,SACvB,CAAa,CACb,CACA,EACAH,EAAI,SAASE,EAAmBD,CAAkB,EAClDH,EAAQ,kBAAoBI,CAE5B,CAAC,EAED,IAAI,OAAO,eAAe,CAAC,UAAU,UAAU,SAAS,gBAAgB,+BAA+B,aAAa,EAAG,SAASL,EAASC,EAASC,EAAO,CAIzJ,IAAIK,EAAWP,EAAQ,QAAQ,EAAE,KAC7BK,EAAoBL,EAAQ,uBAAuB,EAAE,kBACrDG,EAAMH,EAAQ,YAAY,EAC1BQ,EAAO,UAAY,CACnB,KAAK,eAAiBH,CAC1B,EACAF,EAAI,SAASK,EAAMD,CAAQ,EAC1B,UAAY,CACT,KAAK,IAAM,cACf,EAAG,KAAKC,EAAK,SAAS,EACtBP,EAAQ,KAAOO,CAEf,CAAC,EAAmB,UAAW,CACX,IAAI,QAAQ,CAAC,cAAc,EAAG,SAASC,EAAG,CACyBP,IAC3DA,EAAA,QAAiBO,EAE7C,CAAqB,CACrB","x_google_ignoreList":[0]}