Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- vlmpy310/lib/python3.10/site-packages/notebook/static/1088.47e247a20947f628f48f.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/114.3735fbb3fc442d926d2b.js +71 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/1169.365e20294ad65df62bb4.js +11 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/1495.41f3debb92dfdd91c6da.js +0 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/1542.8f0b79431f7af2f43f1e.js.map +0 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/1601.4154c4f9ed460feae33b.js +1455 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/1618.da67fb30732c49b969ba.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/1650.8d7f95fed9378b01c97b.js +110 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/1837.6bbfd9967be58e1325f1.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/1869.c994a53965ffbc5a22b5.js +59 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/2188.8a4dbc0baaccf031e5c4.js +188 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/2343.76b08c834d1f3e6c0655.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/2520.ade7434a32fdecec9d43.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/2816.03541f3103bf4c09e591.js +2454 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/306.dd9ffcf982b0c863872b.js +0 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/311.d6a177e2f8f1b1690911.js +262 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/311.d6a177e2f8f1b1690911.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/3230.25e2cf51e31209917c87.js +444 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/3336.1430b8576b899f650fb9.js +139 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/3462.0383dfd16602627036bd.js.map +0 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/3488.405b2a619b7b87fc6f6b.js +2100 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/35.f6fa52ab6b731d9db35b.js +3087 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/3700.b937e669a5feb21ccb06.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/4038.edb04f3d9d68204491ba.js +197 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/417.29f636ec8be265b7e480.js +0 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/4498.4d8665e22c39c0b3f329.js +266 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/4588.4861d03d604fd2f43df9.js +488 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/4588.4861d03d604fd2f43df9.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/4630.64ab2753f3286b5a778b.js.map +0 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/4670.093ce3330683cb042686.js +131 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/4965.591924d7805c15261494.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/4971.e850b0a1dcb6d3fce7a4.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/5019.48f595eb3007a3ca0f91.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/5061.aede931a61d7ce87ee23.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/5135.398f538011f4562d1fae.js +985 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/5261.570ec78f80a112aa7d5d.js +1292 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/5573.fadd0e2001b2575ccb0f.js +665 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/5601.3e30eb7d151dda3b25ed.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/632.c59cde46a58f6dac3b70.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/67.9cbc679ecb920dd7951b.js +177 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/6972.4f4bba5ad7b70084412f.js +221 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/7022.ada0a27a1f0d61d90ee8.js +364 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/7054.093d48fae797c6c33872.js +293 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/7054.093d48fae797c6c33872.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/7153.e0fe24c9b8309e3171da.js.map +1 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/7154.1ab03d07151bbd0aad06.js.map +0 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/7179.f2b34daff5c4cb9957d6.js +140 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/7259.d6bc83da737d12fb13e7.js +0 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/7302.8dfb32b083b16efa038a.js +446 -0
- vlmpy310/lib/python3.10/site-packages/notebook/static/7360.85741af6d388bbd1f63d.js +244 -0
vlmpy310/lib/python3.10/site-packages/notebook/static/1088.47e247a20947f628f48f.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"1088.47e247a20947f628f48f.js?v=47e247a20947f628f48f","mappings":";;;;;;;;;;AAAA;AACA;AACA,0BAA0B,sBAAsB;AAChD,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI;AAC/E,iCAAiC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,IAAI;AAC3D,4BAA4B,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,IAAI;AACrD,mCAAmC,EAAE;AACrC;AACA,kCAAkC,EAAE;AACpC;AACA,uCAAuC,EAAE;AACzC,yCAAyC,EAAE;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA,6BAA6B,SAAS;AACtC;AACA;AACA;AACA;AACA;AACA,qCAAqC,eAAe;AACpD,2BAA2B,kCAAkC;AACtD;AACP;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/q.js"],"sourcesContent":["var curPunc,\n keywords=buildRE([\"abs\",\"acos\",\"aj\",\"aj0\",\"all\",\"and\",\"any\",\"asc\",\"asin\",\"asof\",\"atan\",\"attr\",\"avg\",\"avgs\",\"bin\",\"by\",\"ceiling\",\"cols\",\"cor\",\"cos\",\"count\",\"cov\",\"cross\",\"csv\",\"cut\",\"delete\",\"deltas\",\"desc\",\"dev\",\"differ\",\"distinct\",\"div\",\"do\",\"each\",\"ej\",\"enlist\",\"eval\",\"except\",\"exec\",\"exit\",\"exp\",\"fby\",\"fills\",\"first\",\"fkeys\",\"flip\",\"floor\",\"from\",\"get\",\"getenv\",\"group\",\"gtime\",\"hclose\",\"hcount\",\"hdel\",\"hopen\",\"hsym\",\"iasc\",\"idesc\",\"if\",\"ij\",\"in\",\"insert\",\"inter\",\"inv\",\"key\",\"keys\",\"last\",\"like\",\"list\",\"lj\",\"load\",\"log\",\"lower\",\"lsq\",\"ltime\",\"ltrim\",\"mavg\",\"max\",\"maxs\",\"mcount\",\"md5\",\"mdev\",\"med\",\"meta\",\"min\",\"mins\",\"mmax\",\"mmin\",\"mmu\",\"mod\",\"msum\",\"neg\",\"next\",\"not\",\"null\",\"or\",\"over\",\"parse\",\"peach\",\"pj\",\"plist\",\"prd\",\"prds\",\"prev\",\"prior\",\"rand\",\"rank\",\"ratios\",\"raze\",\"read0\",\"read1\",\"reciprocal\",\"reverse\",\"rload\",\"rotate\",\"rsave\",\"rtrim\",\"save\",\"scan\",\"select\",\"set\",\"setenv\",\"show\",\"signum\",\"sin\",\"sqrt\",\"ss\",\"ssr\",\"string\",\"sublist\",\"sum\",\"sums\",\"sv\",\"system\",\"tables\",\"tan\",\"til\",\"trim\",\"txf\",\"type\",\"uj\",\"ungroup\",\"union\",\"update\",\"upper\",\"upsert\",\"value\",\"var\",\"view\",\"views\",\"vs\",\"wavg\",\"where\",\"where\",\"while\",\"within\",\"wj\",\"wj1\",\"wsum\",\"xasc\",\"xbar\",\"xcol\",\"xcols\",\"xdesc\",\"xexp\",\"xgroup\",\"xkey\",\"xlog\",\"xprev\",\"xrank\"]),\n E=/[|/&^!+:\\\\\\-*%$=~#;@><,?_\\'\\\"\\[\\(\\]\\)\\s{}]/;\nfunction buildRE(w){return new RegExp(\"^(\"+w.join(\"|\")+\")$\");}\nfunction tokenBase(stream,state){\n var sol=stream.sol(),c=stream.next();\n curPunc=null;\n if(sol)\n if(c==\"/\")\n return(state.tokenize=tokenLineComment)(stream,state);\n else if(c==\"\\\\\"){\n if(stream.eol()||/\\s/.test(stream.peek()))\n return stream.skipToEnd(),/^\\\\\\s*$/.test(stream.current())?(state.tokenize=tokenCommentToEOF)(stream):state.tokenize=tokenBase,\"comment\";\n else\n return state.tokenize=tokenBase,\"builtin\";\n }\n if(/\\s/.test(c))\n return stream.peek()==\"/\"?(stream.skipToEnd(),\"comment\"):\"null\";\n if(c=='\"')\n return(state.tokenize=tokenString)(stream,state);\n if(c=='`')\n return stream.eatWhile(/[A-Za-z\\d_:\\/.]/),\"macroName\";\n if((\".\"==c&&/\\d/.test(stream.peek()))||/\\d/.test(c)){\n var t=null;\n stream.backUp(1);\n if(stream.match(/^\\d{4}\\.\\d{2}(m|\\.\\d{2}([DT](\\d{2}(:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?)?)?)?)/)\n || stream.match(/^\\d+D(\\d{2}(:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?)?)/)\n || stream.match(/^\\d{2}:\\d{2}(:\\d{2}(\\.\\d{1,9})?)?/)\n || stream.match(/^\\d+[ptuv]{1}/))\n t=\"temporal\";\n else if(stream.match(/^0[NwW]{1}/)\n || stream.match(/^0x[\\da-fA-F]*/)\n || stream.match(/^[01]+[b]{1}/)\n || stream.match(/^\\d+[chijn]{1}/)\n || stream.match(/-?\\d*(\\.\\d*)?(e[+\\-]?\\d+)?(e|f)?/))\n t=\"number\";\n return(t&&(!(c=stream.peek())||E.test(c)))?t:(stream.next(),\"error\");\n }\n if(/[A-Za-z]|\\./.test(c))\n return stream.eatWhile(/[A-Za-z._\\d]/),keywords.test(stream.current())?\"keyword\":\"variable\";\n if(/[|/&^!+:\\\\\\-*%$=~#;@><\\.,?_\\']/.test(c))\n return null;\n if(/[{}\\(\\[\\]\\)]/.test(c))\n return null;\n return\"error\";\n}\nfunction tokenLineComment(stream,state){\n return stream.skipToEnd(),/\\/\\s*$/.test(stream.current())?(state.tokenize=tokenBlockComment)(stream,state):(state.tokenize=tokenBase),\"comment\";\n}\nfunction tokenBlockComment(stream,state){\n var f=stream.sol()&&stream.peek()==\"\\\\\";\n stream.skipToEnd();\n if(f&&/^\\\\\\s*$/.test(stream.current()))\n state.tokenize=tokenBase;\n return\"comment\";\n}\nfunction tokenCommentToEOF(stream){return stream.skipToEnd(),\"comment\";}\nfunction tokenString(stream,state){\n var escaped=false,next,end=false;\n while((next=stream.next())){\n if(next==\"\\\"\"&&!escaped){end=true;break;}\n escaped=!escaped&&next==\"\\\\\";\n }\n if(end)state.tokenize=tokenBase;\n return\"string\";\n}\nfunction pushContext(state,type,col){state.context={prev:state.context,indent:state.indent,col:col,type:type};}\nfunction popContext(state){state.indent=state.context.indent;state.context=state.context.prev;}\nexport const q = {\n name: \"q\",\n startState:function(){\n return{tokenize:tokenBase,\n context:null,\n indent:0,\n col:0};\n },\n token:function(stream,state){\n if(stream.sol()){\n if(state.context&&state.context.align==null)\n state.context.align=false;\n state.indent=stream.indentation();\n }\n //if (stream.eatSpace()) return null;\n var style=state.tokenize(stream,state);\n if(style!=\"comment\"&&state.context&&state.context.align==null&&state.context.type!=\"pattern\"){\n state.context.align=true;\n }\n if(curPunc==\"(\")pushContext(state,\")\",stream.column());\n else if(curPunc==\"[\")pushContext(state,\"]\",stream.column());\n else if(curPunc==\"{\")pushContext(state,\"}\",stream.column());\n else if(/[\\]\\}\\)]/.test(curPunc)){\n while(state.context&&state.context.type==\"pattern\")popContext(state);\n if(state.context&&curPunc==state.context.type)popContext(state);\n }\n else if(curPunc==\".\"&&state.context&&state.context.type==\"pattern\")popContext(state);\n else if(/atom|string|variable/.test(style)&&state.context){\n if(/[\\}\\]]/.test(state.context.type))\n pushContext(state,\"pattern\",stream.column());\n else if(state.context.type==\"pattern\"&&!state.context.align){\n state.context.align=true;\n state.context.col=stream.column();\n }\n }\n return style;\n },\n indent:function(state,textAfter,cx){\n var firstChar=textAfter&&textAfter.charAt(0);\n var context=state.context;\n if(/[\\]\\}]/.test(firstChar))\n while (context&&context.type==\"pattern\")context=context.prev;\n var closing=context&&firstChar==context.type;\n if(!context)\n return 0;\n else if(context.type==\"pattern\")\n return context.col;\n else if(context.align)\n return context.col+(closing?0:1);\n else\n return context.indent+(closing?0:cx.unit);\n }\n};\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/114.3735fbb3fc442d926d2b.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[114],{
|
| 3 |
+
|
| 4 |
+
/***/ 40114:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ protobuf: () => (/* binding */ protobuf)
|
| 10 |
+
/* harmony export */ });
|
| 11 |
+
function wordRegexp(words) {
|
| 12 |
+
return new RegExp("^((" + words.join(")|(") + "))\\b", "i");
|
| 13 |
+
};
|
| 14 |
+
|
| 15 |
+
var keywordArray = [
|
| 16 |
+
"package", "message", "import", "syntax",
|
| 17 |
+
"required", "optional", "repeated", "reserved", "default", "extensions", "packed",
|
| 18 |
+
"bool", "bytes", "double", "enum", "float", "string",
|
| 19 |
+
"int32", "int64", "uint32", "uint64", "sint32", "sint64", "fixed32", "fixed64", "sfixed32", "sfixed64",
|
| 20 |
+
"option", "service", "rpc", "returns"
|
| 21 |
+
];
|
| 22 |
+
var keywords = wordRegexp(keywordArray);
|
| 23 |
+
|
| 24 |
+
var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*");
|
| 25 |
+
|
| 26 |
+
function tokenBase(stream) {
|
| 27 |
+
// whitespaces
|
| 28 |
+
if (stream.eatSpace()) return null;
|
| 29 |
+
|
| 30 |
+
// Handle one line Comments
|
| 31 |
+
if (stream.match("//")) {
|
| 32 |
+
stream.skipToEnd();
|
| 33 |
+
return "comment";
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
// Handle Number Literals
|
| 37 |
+
if (stream.match(/^[0-9\.+-]/, false)) {
|
| 38 |
+
if (stream.match(/^[+-]?0x[0-9a-fA-F]+/))
|
| 39 |
+
return "number";
|
| 40 |
+
if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))
|
| 41 |
+
return "number";
|
| 42 |
+
if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))
|
| 43 |
+
return "number";
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
// Handle Strings
|
| 47 |
+
if (stream.match(/^"([^"]|(""))*"/)) { return "string"; }
|
| 48 |
+
if (stream.match(/^'([^']|(''))*'/)) { return "string"; }
|
| 49 |
+
|
| 50 |
+
// Handle words
|
| 51 |
+
if (stream.match(keywords)) { return "keyword"; }
|
| 52 |
+
if (stream.match(identifiers)) { return "variable"; } ;
|
| 53 |
+
|
| 54 |
+
// Handle non-detected items
|
| 55 |
+
stream.next();
|
| 56 |
+
return null;
|
| 57 |
+
};
|
| 58 |
+
|
| 59 |
+
const protobuf = {
|
| 60 |
+
name: "protobuf",
|
| 61 |
+
token: tokenBase,
|
| 62 |
+
languageData: {
|
| 63 |
+
autocomplete: keywordArray
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
/***/ })
|
| 69 |
+
|
| 70 |
+
}]);
|
| 71 |
+
//# sourceMappingURL=114.3735fbb3fc442d926d2b.js.map?v=3735fbb3fc442d926d2b
|
vlmpy310/lib/python3.10/site-packages/notebook/static/1169.365e20294ad65df62bb4.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[1169],{
|
| 3 |
+
|
| 4 |
+
/***/ 21169:
|
| 5 |
+
/***/ ((module) => {
|
| 6 |
+
|
| 7 |
+
module.exports = JSON.parse('{"name":"mermaid","version":"10.7.0","description":"Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.","type":"module","module":"./dist/mermaid.core.mjs","types":"./dist/mermaid.d.ts","exports":{".":{"types":"./dist/mermaid.d.ts","import":"./dist/mermaid.core.mjs","default":"./dist/mermaid.core.mjs"},"./*":"./*"},"keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],"repository":{"type":"git","url":"https://github.com/mermaid-js/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^6.0.1","@types/d3-scale":"^4.0.3","@types/d3-scale-chromatic":"^3.0.0","cytoscape":"^3.23.0","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.1.0","d3":"^7.4.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.10","dayjs":"^1.11.7","dompurify":"^3.0.5","elkjs":"^0.9.0","khroma":"^2.0.0","lodash-es":"^4.17.21","mdast-util-from-markdown":"^1.3.0","non-layered-tidy-tree-layout":"^2.0.2","stylis":"^4.1.3","ts-dedent":"^2.2.0","uuid":"^9.0.0","web-worker":"^1.2.0"},"devDependencies":{"@adobe/jsonschema2md":"^7.1.4","@types/cytoscape":"^3.19.9","@types/d3":"^7.4.0","@types/d3-sankey":"^0.12.1","@types/d3-scale":"^4.0.3","@types/d3-selection":"^3.0.5","@types/d3-shape":"^3.1.1","@types/dompurify":"^3.0.2","@types/jsdom":"^21.1.1","@types/lodash-es":"^4.17.7","@types/micromatch":"^4.0.2","@types/prettier":"^2.7.2","@types/stylis":"^4.0.2","@types/uuid":"^9.0.1","@typescript-eslint/eslint-plugin":"^5.59.0","@typescript-eslint/parser":"^5.59.0","ajv":"^8.11.2","chokidar":"^3.5.3","concurrently":"^8.0.1","cpy-cli":"^4.2.0","cspell":"^6.31.1","csstree-validator":"^3.0.0","globby":"^13.1.4","jison":"^0.4.18","js-base64":"^3.7.5","jsdom":"^22.0.0","json-schema-to-typescript":"^11.0.3","micromatch":"^4.0.5","path-browserify":"^1.0.1","prettier":"^2.8.8","remark":"^14.0.2","remark-frontmatter":"^4.0.1","remark-gfm":"^3.0.1","rimraf":"^5.0.0","start-server-and-test":"^2.0.0","type-fest":"^4.1.0","typedoc":"^0.25.0","typedoc-plugin-markdown":"^3.15.2","typescript":"^5.0.4","unist-util-flatmap":"^1.0.0","unist-util-visit":"^4.1.2","vitepress":"^1.0.0-alpha.72","vitepress-plugin-search":"^1.0.4-alpha.20"},"files":["dist/","README.md"],"sideEffects":false,"publishConfig":{"access":"public"},"scripts":{"clean":"rimraf dist","dev":"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaidAPI.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:spellcheck && pnpm docs:code && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:spellcheck && pnpm docs:code && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":"pnpm docs:pre:vitepress && concurrently \\"pnpm --filter ./src/vitepress dev\\" \\"tsx scripts/docs.cli.mts --watch --vitepress\\"","docs:dev:docker":"pnpm docs:pre:vitepress && concurrently \\"pnpm --filter ./src/vitepress dev:docker\\" \\"tsx scripts/docs.cli.mts --watch --vitepress\\"","docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":"cspell --config ../../cSpell.json \\"src/docs/**/*.md\\"","docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify","checkCircle":"npx madge --circular ./src","release":"pnpm build"}}');
|
| 8 |
+
|
| 9 |
+
/***/ })
|
| 10 |
+
|
| 11 |
+
}]);
|
vlmpy310/lib/python3.10/site-packages/notebook/static/1495.41f3debb92dfdd91c6da.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlmpy310/lib/python3.10/site-packages/notebook/static/1542.8f0b79431f7af2f43f1e.js.map
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlmpy310/lib/python3.10/site-packages/notebook/static/1601.4154c4f9ed460feae33b.js
ADDED
|
@@ -0,0 +1,1455 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[1601,661],{
|
| 3 |
+
|
| 4 |
+
/***/ 70661:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ javascript: () => (/* binding */ javascript),
|
| 10 |
+
/* harmony export */ json: () => (/* binding */ json),
|
| 11 |
+
/* harmony export */ jsonld: () => (/* binding */ jsonld),
|
| 12 |
+
/* harmony export */ typescript: () => (/* binding */ typescript)
|
| 13 |
+
/* harmony export */ });
|
| 14 |
+
function mkJavaScript(parserConfig) {
|
| 15 |
+
var statementIndent = parserConfig.statementIndent;
|
| 16 |
+
var jsonldMode = parserConfig.jsonld;
|
| 17 |
+
var jsonMode = parserConfig.json || jsonldMode;
|
| 18 |
+
var isTS = parserConfig.typescript;
|
| 19 |
+
var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;
|
| 20 |
+
|
| 21 |
+
// Tokenizer
|
| 22 |
+
|
| 23 |
+
var keywords = function(){
|
| 24 |
+
function kw(type) {return {type: type, style: "keyword"};}
|
| 25 |
+
var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"), D = kw("keyword d");
|
| 26 |
+
var operator = kw("operator"), atom = {type: "atom", style: "atom"};
|
| 27 |
+
|
| 28 |
+
return {
|
| 29 |
+
"if": kw("if"), "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B,
|
| 30 |
+
"return": D, "break": D, "continue": D, "new": kw("new"), "delete": C, "void": C, "throw": C,
|
| 31 |
+
"debugger": kw("debugger"), "var": kw("var"), "const": kw("var"), "let": kw("var"),
|
| 32 |
+
"function": kw("function"), "catch": kw("catch"),
|
| 33 |
+
"for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
|
| 34 |
+
"in": operator, "typeof": operator, "instanceof": operator,
|
| 35 |
+
"true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom,
|
| 36 |
+
"this": kw("this"), "class": kw("class"), "super": kw("atom"),
|
| 37 |
+
"yield": C, "export": kw("export"), "import": kw("import"), "extends": C,
|
| 38 |
+
"await": C
|
| 39 |
+
};
|
| 40 |
+
}();
|
| 41 |
+
|
| 42 |
+
var isOperatorChar = /[+\-*&%=<>!?|~^@]/;
|
| 43 |
+
var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
|
| 44 |
+
|
| 45 |
+
function readRegexp(stream) {
|
| 46 |
+
var escaped = false, next, inSet = false;
|
| 47 |
+
while ((next = stream.next()) != null) {
|
| 48 |
+
if (!escaped) {
|
| 49 |
+
if (next == "/" && !inSet) return;
|
| 50 |
+
if (next == "[") inSet = true;
|
| 51 |
+
else if (inSet && next == "]") inSet = false;
|
| 52 |
+
}
|
| 53 |
+
escaped = !escaped && next == "\\";
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
// Used as scratch variables to communicate multiple values without
|
| 58 |
+
// consing up tons of objects.
|
| 59 |
+
var type, content;
|
| 60 |
+
function ret(tp, style, cont) {
|
| 61 |
+
type = tp; content = cont;
|
| 62 |
+
return style;
|
| 63 |
+
}
|
| 64 |
+
function tokenBase(stream, state) {
|
| 65 |
+
var ch = stream.next();
|
| 66 |
+
if (ch == '"' || ch == "'") {
|
| 67 |
+
state.tokenize = tokenString(ch);
|
| 68 |
+
return state.tokenize(stream, state);
|
| 69 |
+
} else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) {
|
| 70 |
+
return ret("number", "number");
|
| 71 |
+
} else if (ch == "." && stream.match("..")) {
|
| 72 |
+
return ret("spread", "meta");
|
| 73 |
+
} else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
| 74 |
+
return ret(ch);
|
| 75 |
+
} else if (ch == "=" && stream.eat(">")) {
|
| 76 |
+
return ret("=>", "operator");
|
| 77 |
+
} else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) {
|
| 78 |
+
return ret("number", "number");
|
| 79 |
+
} else if (/\d/.test(ch)) {
|
| 80 |
+
stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);
|
| 81 |
+
return ret("number", "number");
|
| 82 |
+
} else if (ch == "/") {
|
| 83 |
+
if (stream.eat("*")) {
|
| 84 |
+
state.tokenize = tokenComment;
|
| 85 |
+
return tokenComment(stream, state);
|
| 86 |
+
} else if (stream.eat("/")) {
|
| 87 |
+
stream.skipToEnd();
|
| 88 |
+
return ret("comment", "comment");
|
| 89 |
+
} else if (expressionAllowed(stream, state, 1)) {
|
| 90 |
+
readRegexp(stream);
|
| 91 |
+
stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
|
| 92 |
+
return ret("regexp", "string.special");
|
| 93 |
+
} else {
|
| 94 |
+
stream.eat("=");
|
| 95 |
+
return ret("operator", "operator", stream.current());
|
| 96 |
+
}
|
| 97 |
+
} else if (ch == "`") {
|
| 98 |
+
state.tokenize = tokenQuasi;
|
| 99 |
+
return tokenQuasi(stream, state);
|
| 100 |
+
} else if (ch == "#" && stream.peek() == "!") {
|
| 101 |
+
stream.skipToEnd();
|
| 102 |
+
return ret("meta", "meta");
|
| 103 |
+
} else if (ch == "#" && stream.eatWhile(wordRE)) {
|
| 104 |
+
return ret("variable", "property")
|
| 105 |
+
} else if (ch == "<" && stream.match("!--") ||
|
| 106 |
+
(ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start)))) {
|
| 107 |
+
stream.skipToEnd()
|
| 108 |
+
return ret("comment", "comment")
|
| 109 |
+
} else if (isOperatorChar.test(ch)) {
|
| 110 |
+
if (ch != ">" || !state.lexical || state.lexical.type != ">") {
|
| 111 |
+
if (stream.eat("=")) {
|
| 112 |
+
if (ch == "!" || ch == "=") stream.eat("=")
|
| 113 |
+
} else if (/[<>*+\-|&?]/.test(ch)) {
|
| 114 |
+
stream.eat(ch)
|
| 115 |
+
if (ch == ">") stream.eat(ch)
|
| 116 |
+
}
|
| 117 |
+
}
|
| 118 |
+
if (ch == "?" && stream.eat(".")) return ret(".")
|
| 119 |
+
return ret("operator", "operator", stream.current());
|
| 120 |
+
} else if (wordRE.test(ch)) {
|
| 121 |
+
stream.eatWhile(wordRE);
|
| 122 |
+
var word = stream.current()
|
| 123 |
+
if (state.lastType != ".") {
|
| 124 |
+
if (keywords.propertyIsEnumerable(word)) {
|
| 125 |
+
var kw = keywords[word]
|
| 126 |
+
return ret(kw.type, kw.style, word)
|
| 127 |
+
}
|
| 128 |
+
if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false))
|
| 129 |
+
return ret("async", "keyword", word)
|
| 130 |
+
}
|
| 131 |
+
return ret("variable", "variable", word)
|
| 132 |
+
}
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
function tokenString(quote) {
|
| 136 |
+
return function(stream, state) {
|
| 137 |
+
var escaped = false, next;
|
| 138 |
+
if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)){
|
| 139 |
+
state.tokenize = tokenBase;
|
| 140 |
+
return ret("jsonld-keyword", "meta");
|
| 141 |
+
}
|
| 142 |
+
while ((next = stream.next()) != null) {
|
| 143 |
+
if (next == quote && !escaped) break;
|
| 144 |
+
escaped = !escaped && next == "\\";
|
| 145 |
+
}
|
| 146 |
+
if (!escaped) state.tokenize = tokenBase;
|
| 147 |
+
return ret("string", "string");
|
| 148 |
+
};
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
function tokenComment(stream, state) {
|
| 152 |
+
var maybeEnd = false, ch;
|
| 153 |
+
while (ch = stream.next()) {
|
| 154 |
+
if (ch == "/" && maybeEnd) {
|
| 155 |
+
state.tokenize = tokenBase;
|
| 156 |
+
break;
|
| 157 |
+
}
|
| 158 |
+
maybeEnd = (ch == "*");
|
| 159 |
+
}
|
| 160 |
+
return ret("comment", "comment");
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
function tokenQuasi(stream, state) {
|
| 164 |
+
var escaped = false, next;
|
| 165 |
+
while ((next = stream.next()) != null) {
|
| 166 |
+
if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
|
| 167 |
+
state.tokenize = tokenBase;
|
| 168 |
+
break;
|
| 169 |
+
}
|
| 170 |
+
escaped = !escaped && next == "\\";
|
| 171 |
+
}
|
| 172 |
+
return ret("quasi", "string.special", stream.current());
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
var brackets = "([{}])";
|
| 176 |
+
// This is a crude lookahead trick to try and notice that we're
|
| 177 |
+
// parsing the argument patterns for a fat-arrow function before we
|
| 178 |
+
// actually hit the arrow token. It only works if the arrow is on
|
| 179 |
+
// the same line as the arguments and there's no strange noise
|
| 180 |
+
// (comments) in between. Fallback is to only notice when we hit the
|
| 181 |
+
// arrow, and not declare the arguments as locals for the arrow
|
| 182 |
+
// body.
|
| 183 |
+
function findFatArrow(stream, state) {
|
| 184 |
+
if (state.fatArrowAt) state.fatArrowAt = null;
|
| 185 |
+
var arrow = stream.string.indexOf("=>", stream.start);
|
| 186 |
+
if (arrow < 0) return;
|
| 187 |
+
|
| 188 |
+
if (isTS) { // Try to skip TypeScript return type declarations after the arguments
|
| 189 |
+
var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow))
|
| 190 |
+
if (m) arrow = m.index
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
var depth = 0, sawSomething = false;
|
| 194 |
+
for (var pos = arrow - 1; pos >= 0; --pos) {
|
| 195 |
+
var ch = stream.string.charAt(pos);
|
| 196 |
+
var bracket = brackets.indexOf(ch);
|
| 197 |
+
if (bracket >= 0 && bracket < 3) {
|
| 198 |
+
if (!depth) { ++pos; break; }
|
| 199 |
+
if (--depth == 0) { if (ch == "(") sawSomething = true; break; }
|
| 200 |
+
} else if (bracket >= 3 && bracket < 6) {
|
| 201 |
+
++depth;
|
| 202 |
+
} else if (wordRE.test(ch)) {
|
| 203 |
+
sawSomething = true;
|
| 204 |
+
} else if (/["'\/`]/.test(ch)) {
|
| 205 |
+
for (;; --pos) {
|
| 206 |
+
if (pos == 0) return
|
| 207 |
+
var next = stream.string.charAt(pos - 1)
|
| 208 |
+
if (next == ch && stream.string.charAt(pos - 2) != "\\") { pos--; break }
|
| 209 |
+
}
|
| 210 |
+
} else if (sawSomething && !depth) {
|
| 211 |
+
++pos;
|
| 212 |
+
break;
|
| 213 |
+
}
|
| 214 |
+
}
|
| 215 |
+
if (sawSomething && !depth) state.fatArrowAt = pos;
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
// Parser
|
| 219 |
+
|
| 220 |
+
var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true,
|
| 221 |
+
"regexp": true, "this": true, "import": true, "jsonld-keyword": true};
|
| 222 |
+
|
| 223 |
+
function JSLexical(indented, column, type, align, prev, info) {
|
| 224 |
+
this.indented = indented;
|
| 225 |
+
this.column = column;
|
| 226 |
+
this.type = type;
|
| 227 |
+
this.prev = prev;
|
| 228 |
+
this.info = info;
|
| 229 |
+
if (align != null) this.align = align;
|
| 230 |
+
}
|
| 231 |
+
|
| 232 |
+
function inScope(state, varname) {
|
| 233 |
+
for (var v = state.localVars; v; v = v.next)
|
| 234 |
+
if (v.name == varname) return true;
|
| 235 |
+
for (var cx = state.context; cx; cx = cx.prev) {
|
| 236 |
+
for (var v = cx.vars; v; v = v.next)
|
| 237 |
+
if (v.name == varname) return true;
|
| 238 |
+
}
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
function parseJS(state, style, type, content, stream) {
|
| 242 |
+
var cc = state.cc;
|
| 243 |
+
// Communicate our context to the combinators.
|
| 244 |
+
// (Less wasteful than consing up a hundred closures on every call.)
|
| 245 |
+
cx.state = state; cx.stream = stream; cx.marked = null; cx.cc = cc; cx.style = style;
|
| 246 |
+
|
| 247 |
+
if (!state.lexical.hasOwnProperty("align"))
|
| 248 |
+
state.lexical.align = true;
|
| 249 |
+
|
| 250 |
+
while(true) {
|
| 251 |
+
var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
|
| 252 |
+
if (combinator(type, content)) {
|
| 253 |
+
while(cc.length && cc[cc.length - 1].lex)
|
| 254 |
+
cc.pop()();
|
| 255 |
+
if (cx.marked) return cx.marked;
|
| 256 |
+
if (type == "variable" && inScope(state, content)) return "variableName.local";
|
| 257 |
+
return style;
|
| 258 |
+
}
|
| 259 |
+
}
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
// Combinator utils
|
| 263 |
+
|
| 264 |
+
var cx = {state: null, column: null, marked: null, cc: null};
|
| 265 |
+
function pass() {
|
| 266 |
+
for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
|
| 267 |
+
}
|
| 268 |
+
function cont() {
|
| 269 |
+
pass.apply(null, arguments);
|
| 270 |
+
return true;
|
| 271 |
+
}
|
| 272 |
+
function inList(name, list) {
|
| 273 |
+
for (var v = list; v; v = v.next) if (v.name == name) return true
|
| 274 |
+
return false;
|
| 275 |
+
}
|
| 276 |
+
function register(varname) {
|
| 277 |
+
var state = cx.state;
|
| 278 |
+
cx.marked = "def";
|
| 279 |
+
if (state.context) {
|
| 280 |
+
if (state.lexical.info == "var" && state.context && state.context.block) {
|
| 281 |
+
// FIXME function decls are also not block scoped
|
| 282 |
+
var newContext = registerVarScoped(varname, state.context)
|
| 283 |
+
if (newContext != null) {
|
| 284 |
+
state.context = newContext
|
| 285 |
+
return
|
| 286 |
+
}
|
| 287 |
+
} else if (!inList(varname, state.localVars)) {
|
| 288 |
+
state.localVars = new Var(varname, state.localVars)
|
| 289 |
+
return
|
| 290 |
+
}
|
| 291 |
+
}
|
| 292 |
+
// Fall through means this is global
|
| 293 |
+
if (parserConfig.globalVars && !inList(varname, state.globalVars))
|
| 294 |
+
state.globalVars = new Var(varname, state.globalVars)
|
| 295 |
+
}
|
| 296 |
+
function registerVarScoped(varname, context) {
|
| 297 |
+
if (!context) {
|
| 298 |
+
return null
|
| 299 |
+
} else if (context.block) {
|
| 300 |
+
var inner = registerVarScoped(varname, context.prev)
|
| 301 |
+
if (!inner) return null
|
| 302 |
+
if (inner == context.prev) return context
|
| 303 |
+
return new Context(inner, context.vars, true)
|
| 304 |
+
} else if (inList(varname, context.vars)) {
|
| 305 |
+
return context
|
| 306 |
+
} else {
|
| 307 |
+
return new Context(context.prev, new Var(varname, context.vars), false)
|
| 308 |
+
}
|
| 309 |
+
}
|
| 310 |
+
|
| 311 |
+
function isModifier(name) {
|
| 312 |
+
return name == "public" || name == "private" || name == "protected" || name == "abstract" || name == "readonly"
|
| 313 |
+
}
|
| 314 |
+
|
| 315 |
+
// Combinators
|
| 316 |
+
|
| 317 |
+
function Context(prev, vars, block) { this.prev = prev; this.vars = vars; this.block = block }
|
| 318 |
+
function Var(name, next) { this.name = name; this.next = next }
|
| 319 |
+
|
| 320 |
+
var defaultVars = new Var("this", new Var("arguments", null))
|
| 321 |
+
function pushcontext() {
|
| 322 |
+
cx.state.context = new Context(cx.state.context, cx.state.localVars, false)
|
| 323 |
+
cx.state.localVars = defaultVars
|
| 324 |
+
}
|
| 325 |
+
function pushblockcontext() {
|
| 326 |
+
cx.state.context = new Context(cx.state.context, cx.state.localVars, true)
|
| 327 |
+
cx.state.localVars = null
|
| 328 |
+
}
|
| 329 |
+
pushcontext.lex = pushblockcontext.lex = true
|
| 330 |
+
function popcontext() {
|
| 331 |
+
cx.state.localVars = cx.state.context.vars
|
| 332 |
+
cx.state.context = cx.state.context.prev
|
| 333 |
+
}
|
| 334 |
+
popcontext.lex = true
|
| 335 |
+
function pushlex(type, info) {
|
| 336 |
+
var result = function() {
|
| 337 |
+
var state = cx.state, indent = state.indented;
|
| 338 |
+
if (state.lexical.type == "stat") indent = state.lexical.indented;
|
| 339 |
+
else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
|
| 340 |
+
indent = outer.indented;
|
| 341 |
+
state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
|
| 342 |
+
};
|
| 343 |
+
result.lex = true;
|
| 344 |
+
return result;
|
| 345 |
+
}
|
| 346 |
+
function poplex() {
|
| 347 |
+
var state = cx.state;
|
| 348 |
+
if (state.lexical.prev) {
|
| 349 |
+
if (state.lexical.type == ")")
|
| 350 |
+
state.indented = state.lexical.indented;
|
| 351 |
+
state.lexical = state.lexical.prev;
|
| 352 |
+
}
|
| 353 |
+
}
|
| 354 |
+
poplex.lex = true;
|
| 355 |
+
|
| 356 |
+
function expect(wanted) {
|
| 357 |
+
function exp(type) {
|
| 358 |
+
if (type == wanted) return cont();
|
| 359 |
+
else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass();
|
| 360 |
+
else return cont(exp);
|
| 361 |
+
};
|
| 362 |
+
return exp;
|
| 363 |
+
}
|
| 364 |
+
|
| 365 |
+
function statement(type, value) {
|
| 366 |
+
if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
|
| 367 |
+
if (type == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
|
| 368 |
+
if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
|
| 369 |
+
if (type == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);
|
| 370 |
+
if (type == "debugger") return cont(expect(";"));
|
| 371 |
+
if (type == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext);
|
| 372 |
+
if (type == ";") return cont();
|
| 373 |
+
if (type == "if") {
|
| 374 |
+
if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex)
|
| 375 |
+
cx.state.cc.pop()();
|
| 376 |
+
return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse);
|
| 377 |
+
}
|
| 378 |
+
if (type == "function") return cont(functiondef);
|
| 379 |
+
if (type == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex);
|
| 380 |
+
if (type == "class" || (isTS && value == "interface")) {
|
| 381 |
+
cx.marked = "keyword"
|
| 382 |
+
return cont(pushlex("form", type == "class" ? type : value), className, poplex)
|
| 383 |
+
}
|
| 384 |
+
if (type == "variable") {
|
| 385 |
+
if (isTS && value == "declare") {
|
| 386 |
+
cx.marked = "keyword"
|
| 387 |
+
return cont(statement)
|
| 388 |
+
} else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
|
| 389 |
+
cx.marked = "keyword"
|
| 390 |
+
if (value == "enum") return cont(enumdef);
|
| 391 |
+
else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";"));
|
| 392 |
+
else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex)
|
| 393 |
+
} else if (isTS && value == "namespace") {
|
| 394 |
+
cx.marked = "keyword"
|
| 395 |
+
return cont(pushlex("form"), expression, statement, poplex)
|
| 396 |
+
} else if (isTS && value == "abstract") {
|
| 397 |
+
cx.marked = "keyword"
|
| 398 |
+
return cont(statement)
|
| 399 |
+
} else {
|
| 400 |
+
return cont(pushlex("stat"), maybelabel);
|
| 401 |
+
}
|
| 402 |
+
}
|
| 403 |
+
if (type == "switch") return cont(pushlex("form"), parenExpr, expect("{"), pushlex("}", "switch"), pushblockcontext,
|
| 404 |
+
block, poplex, poplex, popcontext);
|
| 405 |
+
if (type == "case") return cont(expression, expect(":"));
|
| 406 |
+
if (type == "default") return cont(expect(":"));
|
| 407 |
+
if (type == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext);
|
| 408 |
+
if (type == "export") return cont(pushlex("stat"), afterExport, poplex);
|
| 409 |
+
if (type == "import") return cont(pushlex("stat"), afterImport, poplex);
|
| 410 |
+
if (type == "async") return cont(statement)
|
| 411 |
+
if (value == "@") return cont(expression, statement)
|
| 412 |
+
return pass(pushlex("stat"), expression, expect(";"), poplex);
|
| 413 |
+
}
|
| 414 |
+
function maybeCatchBinding(type) {
|
| 415 |
+
if (type == "(") return cont(funarg, expect(")"))
|
| 416 |
+
}
|
| 417 |
+
function expression(type, value) {
|
| 418 |
+
return expressionInner(type, value, false);
|
| 419 |
+
}
|
| 420 |
+
function expressionNoComma(type, value) {
|
| 421 |
+
return expressionInner(type, value, true);
|
| 422 |
+
}
|
| 423 |
+
function parenExpr(type) {
|
| 424 |
+
if (type != "(") return pass()
|
| 425 |
+
return cont(pushlex(")"), maybeexpression, expect(")"), poplex)
|
| 426 |
+
}
|
| 427 |
+
function expressionInner(type, value, noComma) {
|
| 428 |
+
if (cx.state.fatArrowAt == cx.stream.start) {
|
| 429 |
+
var body = noComma ? arrowBodyNoComma : arrowBody;
|
| 430 |
+
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext);
|
| 431 |
+
else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
|
| 432 |
+
}
|
| 433 |
+
|
| 434 |
+
var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
|
| 435 |
+
if (atomicTypes.hasOwnProperty(type)) return cont(maybeop);
|
| 436 |
+
if (type == "function") return cont(functiondef, maybeop);
|
| 437 |
+
if (type == "class" || (isTS && value == "interface")) { cx.marked = "keyword"; return cont(pushlex("form"), classExpression, poplex); }
|
| 438 |
+
if (type == "keyword c" || type == "async") return cont(noComma ? expressionNoComma : expression);
|
| 439 |
+
if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop);
|
| 440 |
+
if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression);
|
| 441 |
+
if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
|
| 442 |
+
if (type == "{") return contCommasep(objprop, "}", null, maybeop);
|
| 443 |
+
if (type == "quasi") return pass(quasi, maybeop);
|
| 444 |
+
if (type == "new") return cont(maybeTarget(noComma));
|
| 445 |
+
return cont();
|
| 446 |
+
}
|
| 447 |
+
function maybeexpression(type) {
|
| 448 |
+
if (type.match(/[;\}\)\],]/)) return pass();
|
| 449 |
+
return pass(expression);
|
| 450 |
+
}
|
| 451 |
+
|
| 452 |
+
function maybeoperatorComma(type, value) {
|
| 453 |
+
if (type == ",") return cont(maybeexpression);
|
| 454 |
+
return maybeoperatorNoComma(type, value, false);
|
| 455 |
+
}
|
| 456 |
+
function maybeoperatorNoComma(type, value, noComma) {
|
| 457 |
+
var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
|
| 458 |
+
var expr = noComma == false ? expression : expressionNoComma;
|
| 459 |
+
if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
|
| 460 |
+
if (type == "operator") {
|
| 461 |
+
if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me);
|
| 462 |
+
if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false))
|
| 463 |
+
return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me);
|
| 464 |
+
if (value == "?") return cont(expression, expect(":"), expr);
|
| 465 |
+
return cont(expr);
|
| 466 |
+
}
|
| 467 |
+
if (type == "quasi") { return pass(quasi, me); }
|
| 468 |
+
if (type == ";") return;
|
| 469 |
+
if (type == "(") return contCommasep(expressionNoComma, ")", "call", me);
|
| 470 |
+
if (type == ".") return cont(property, me);
|
| 471 |
+
if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
|
| 472 |
+
if (isTS && value == "as") { cx.marked = "keyword"; return cont(typeexpr, me) }
|
| 473 |
+
if (type == "regexp") {
|
| 474 |
+
cx.state.lastType = cx.marked = "operator"
|
| 475 |
+
cx.stream.backUp(cx.stream.pos - cx.stream.start - 1)
|
| 476 |
+
return cont(expr)
|
| 477 |
+
}
|
| 478 |
+
}
|
| 479 |
+
function quasi(type, value) {
|
| 480 |
+
if (type != "quasi") return pass();
|
| 481 |
+
if (value.slice(value.length - 2) != "${") return cont(quasi);
|
| 482 |
+
return cont(maybeexpression, continueQuasi);
|
| 483 |
+
}
|
| 484 |
+
function continueQuasi(type) {
|
| 485 |
+
if (type == "}") {
|
| 486 |
+
cx.marked = "string.special";
|
| 487 |
+
cx.state.tokenize = tokenQuasi;
|
| 488 |
+
return cont(quasi);
|
| 489 |
+
}
|
| 490 |
+
}
|
| 491 |
+
function arrowBody(type) {
|
| 492 |
+
findFatArrow(cx.stream, cx.state);
|
| 493 |
+
return pass(type == "{" ? statement : expression);
|
| 494 |
+
}
|
| 495 |
+
function arrowBodyNoComma(type) {
|
| 496 |
+
findFatArrow(cx.stream, cx.state);
|
| 497 |
+
return pass(type == "{" ? statement : expressionNoComma);
|
| 498 |
+
}
|
| 499 |
+
function maybeTarget(noComma) {
|
| 500 |
+
return function(type) {
|
| 501 |
+
if (type == ".") return cont(noComma ? targetNoComma : target);
|
| 502 |
+
else if (type == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma)
|
| 503 |
+
else return pass(noComma ? expressionNoComma : expression);
|
| 504 |
+
};
|
| 505 |
+
}
|
| 506 |
+
function target(_, value) {
|
| 507 |
+
if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
|
| 508 |
+
}
|
| 509 |
+
function targetNoComma(_, value) {
|
| 510 |
+
if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorNoComma); }
|
| 511 |
+
}
|
| 512 |
+
function maybelabel(type) {
|
| 513 |
+
if (type == ":") return cont(poplex, statement);
|
| 514 |
+
return pass(maybeoperatorComma, expect(";"), poplex);
|
| 515 |
+
}
|
| 516 |
+
function property(type) {
|
| 517 |
+
if (type == "variable") {cx.marked = "property"; return cont();}
|
| 518 |
+
}
|
| 519 |
+
function objprop(type, value) {
|
| 520 |
+
if (type == "async") {
|
| 521 |
+
cx.marked = "property";
|
| 522 |
+
return cont(objprop);
|
| 523 |
+
} else if (type == "variable" || cx.style == "keyword") {
|
| 524 |
+
cx.marked = "property";
|
| 525 |
+
if (value == "get" || value == "set") return cont(getterSetter);
|
| 526 |
+
var m // Work around fat-arrow-detection complication for detecting typescript typed arrow params
|
| 527 |
+
if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false)))
|
| 528 |
+
cx.state.fatArrowAt = cx.stream.pos + m[0].length
|
| 529 |
+
return cont(afterprop);
|
| 530 |
+
} else if (type == "number" || type == "string") {
|
| 531 |
+
cx.marked = jsonldMode ? "property" : (cx.style + " property");
|
| 532 |
+
return cont(afterprop);
|
| 533 |
+
} else if (type == "jsonld-keyword") {
|
| 534 |
+
return cont(afterprop);
|
| 535 |
+
} else if (isTS && isModifier(value)) {
|
| 536 |
+
cx.marked = "keyword"
|
| 537 |
+
return cont(objprop)
|
| 538 |
+
} else if (type == "[") {
|
| 539 |
+
return cont(expression, maybetype, expect("]"), afterprop);
|
| 540 |
+
} else if (type == "spread") {
|
| 541 |
+
return cont(expressionNoComma, afterprop);
|
| 542 |
+
} else if (value == "*") {
|
| 543 |
+
cx.marked = "keyword";
|
| 544 |
+
return cont(objprop);
|
| 545 |
+
} else if (type == ":") {
|
| 546 |
+
return pass(afterprop)
|
| 547 |
+
}
|
| 548 |
+
}
|
| 549 |
+
function getterSetter(type) {
|
| 550 |
+
if (type != "variable") return pass(afterprop);
|
| 551 |
+
cx.marked = "property";
|
| 552 |
+
return cont(functiondef);
|
| 553 |
+
}
|
| 554 |
+
function afterprop(type) {
|
| 555 |
+
if (type == ":") return cont(expressionNoComma);
|
| 556 |
+
if (type == "(") return pass(functiondef);
|
| 557 |
+
}
|
| 558 |
+
function commasep(what, end, sep) {
|
| 559 |
+
function proceed(type, value) {
|
| 560 |
+
if (sep ? sep.indexOf(type) > -1 : type == ",") {
|
| 561 |
+
var lex = cx.state.lexical;
|
| 562 |
+
if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
|
| 563 |
+
return cont(function(type, value) {
|
| 564 |
+
if (type == end || value == end) return pass()
|
| 565 |
+
return pass(what)
|
| 566 |
+
}, proceed);
|
| 567 |
+
}
|
| 568 |
+
if (type == end || value == end) return cont();
|
| 569 |
+
if (sep && sep.indexOf(";") > -1) return pass(what)
|
| 570 |
+
return cont(expect(end));
|
| 571 |
+
}
|
| 572 |
+
return function(type, value) {
|
| 573 |
+
if (type == end || value == end) return cont();
|
| 574 |
+
return pass(what, proceed);
|
| 575 |
+
};
|
| 576 |
+
}
|
| 577 |
+
function contCommasep(what, end, info) {
|
| 578 |
+
for (var i = 3; i < arguments.length; i++)
|
| 579 |
+
cx.cc.push(arguments[i]);
|
| 580 |
+
return cont(pushlex(end, info), commasep(what, end), poplex);
|
| 581 |
+
}
|
| 582 |
+
function block(type) {
|
| 583 |
+
if (type == "}") return cont();
|
| 584 |
+
return pass(statement, block);
|
| 585 |
+
}
|
| 586 |
+
function maybetype(type, value) {
|
| 587 |
+
if (isTS) {
|
| 588 |
+
if (type == ":") return cont(typeexpr);
|
| 589 |
+
if (value == "?") return cont(maybetype);
|
| 590 |
+
}
|
| 591 |
+
}
|
| 592 |
+
function maybetypeOrIn(type, value) {
|
| 593 |
+
if (isTS && (type == ":" || value == "in")) return cont(typeexpr)
|
| 594 |
+
}
|
| 595 |
+
function mayberettype(type) {
|
| 596 |
+
if (isTS && type == ":") {
|
| 597 |
+
if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr)
|
| 598 |
+
else return cont(typeexpr)
|
| 599 |
+
}
|
| 600 |
+
}
|
| 601 |
+
function isKW(_, value) {
|
| 602 |
+
if (value == "is") {
|
| 603 |
+
cx.marked = "keyword"
|
| 604 |
+
return cont()
|
| 605 |
+
}
|
| 606 |
+
}
|
| 607 |
+
function typeexpr(type, value) {
|
| 608 |
+
if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
|
| 609 |
+
cx.marked = "keyword"
|
| 610 |
+
return cont(value == "typeof" ? expressionNoComma : typeexpr)
|
| 611 |
+
}
|
| 612 |
+
if (type == "variable" || value == "void") {
|
| 613 |
+
cx.marked = "type"
|
| 614 |
+
return cont(afterType)
|
| 615 |
+
}
|
| 616 |
+
if (value == "|" || value == "&") return cont(typeexpr)
|
| 617 |
+
if (type == "string" || type == "number" || type == "atom") return cont(afterType);
|
| 618 |
+
if (type == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType)
|
| 619 |
+
if (type == "{") return cont(pushlex("}"), typeprops, poplex, afterType)
|
| 620 |
+
if (type == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType)
|
| 621 |
+
if (type == "<") return cont(commasep(typeexpr, ">"), typeexpr)
|
| 622 |
+
if (type == "quasi") return pass(quasiType, afterType)
|
| 623 |
+
}
|
| 624 |
+
function maybeReturnType(type) {
|
| 625 |
+
if (type == "=>") return cont(typeexpr)
|
| 626 |
+
}
|
| 627 |
+
function typeprops(type) {
|
| 628 |
+
if (type.match(/[\}\)\]]/)) return cont()
|
| 629 |
+
if (type == "," || type == ";") return cont(typeprops)
|
| 630 |
+
return pass(typeprop, typeprops)
|
| 631 |
+
}
|
| 632 |
+
function typeprop(type, value) {
|
| 633 |
+
if (type == "variable" || cx.style == "keyword") {
|
| 634 |
+
cx.marked = "property"
|
| 635 |
+
return cont(typeprop)
|
| 636 |
+
} else if (value == "?" || type == "number" || type == "string") {
|
| 637 |
+
return cont(typeprop)
|
| 638 |
+
} else if (type == ":") {
|
| 639 |
+
return cont(typeexpr)
|
| 640 |
+
} else if (type == "[") {
|
| 641 |
+
return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop)
|
| 642 |
+
} else if (type == "(") {
|
| 643 |
+
return pass(functiondecl, typeprop)
|
| 644 |
+
} else if (!type.match(/[;\}\)\],]/)) {
|
| 645 |
+
return cont()
|
| 646 |
+
}
|
| 647 |
+
}
|
| 648 |
+
function quasiType(type, value) {
|
| 649 |
+
if (type != "quasi") return pass();
|
| 650 |
+
if (value.slice(value.length - 2) != "${") return cont(quasiType);
|
| 651 |
+
return cont(typeexpr, continueQuasiType);
|
| 652 |
+
}
|
| 653 |
+
function continueQuasiType(type) {
|
| 654 |
+
if (type == "}") {
|
| 655 |
+
cx.marked = "string.special";
|
| 656 |
+
cx.state.tokenize = tokenQuasi;
|
| 657 |
+
return cont(quasiType);
|
| 658 |
+
}
|
| 659 |
+
}
|
| 660 |
+
function typearg(type, value) {
|
| 661 |
+
if (type == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg)
|
| 662 |
+
if (type == ":") return cont(typeexpr)
|
| 663 |
+
if (type == "spread") return cont(typearg)
|
| 664 |
+
return pass(typeexpr)
|
| 665 |
+
}
|
| 666 |
+
function afterType(type, value) {
|
| 667 |
+
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
|
| 668 |
+
if (value == "|" || type == "." || value == "&") return cont(typeexpr)
|
| 669 |
+
if (type == "[") return cont(typeexpr, expect("]"), afterType)
|
| 670 |
+
if (value == "extends" || value == "implements") { cx.marked = "keyword"; return cont(typeexpr) }
|
| 671 |
+
if (value == "?") return cont(typeexpr, expect(":"), typeexpr)
|
| 672 |
+
}
|
| 673 |
+
function maybeTypeArgs(_, value) {
|
| 674 |
+
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
|
| 675 |
+
}
|
| 676 |
+
function typeparam() {
|
| 677 |
+
return pass(typeexpr, maybeTypeDefault)
|
| 678 |
+
}
|
| 679 |
+
function maybeTypeDefault(_, value) {
|
| 680 |
+
if (value == "=") return cont(typeexpr)
|
| 681 |
+
}
|
| 682 |
+
function vardef(_, value) {
|
| 683 |
+
if (value == "enum") {cx.marked = "keyword"; return cont(enumdef)}
|
| 684 |
+
return pass(pattern, maybetype, maybeAssign, vardefCont);
|
| 685 |
+
}
|
| 686 |
+
function pattern(type, value) {
|
| 687 |
+
if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(pattern) }
|
| 688 |
+
if (type == "variable") { register(value); return cont(); }
|
| 689 |
+
if (type == "spread") return cont(pattern);
|
| 690 |
+
if (type == "[") return contCommasep(eltpattern, "]");
|
| 691 |
+
if (type == "{") return contCommasep(proppattern, "}");
|
| 692 |
+
}
|
| 693 |
+
function proppattern(type, value) {
|
| 694 |
+
if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
|
| 695 |
+
register(value);
|
| 696 |
+
return cont(maybeAssign);
|
| 697 |
+
}
|
| 698 |
+
if (type == "variable") cx.marked = "property";
|
| 699 |
+
if (type == "spread") return cont(pattern);
|
| 700 |
+
if (type == "}") return pass();
|
| 701 |
+
if (type == "[") return cont(expression, expect(']'), expect(':'), proppattern);
|
| 702 |
+
return cont(expect(":"), pattern, maybeAssign);
|
| 703 |
+
}
|
| 704 |
+
function eltpattern() {
|
| 705 |
+
return pass(pattern, maybeAssign)
|
| 706 |
+
}
|
| 707 |
+
function maybeAssign(_type, value) {
|
| 708 |
+
if (value == "=") return cont(expressionNoComma);
|
| 709 |
+
}
|
| 710 |
+
function vardefCont(type) {
|
| 711 |
+
if (type == ",") return cont(vardef);
|
| 712 |
+
}
|
| 713 |
+
function maybeelse(type, value) {
|
| 714 |
+
if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
|
| 715 |
+
}
|
| 716 |
+
function forspec(type, value) {
|
| 717 |
+
if (value == "await") return cont(forspec);
|
| 718 |
+
if (type == "(") return cont(pushlex(")"), forspec1, poplex);
|
| 719 |
+
}
|
| 720 |
+
function forspec1(type) {
|
| 721 |
+
if (type == "var") return cont(vardef, forspec2);
|
| 722 |
+
if (type == "variable") return cont(forspec2);
|
| 723 |
+
return pass(forspec2)
|
| 724 |
+
}
|
| 725 |
+
function forspec2(type, value) {
|
| 726 |
+
if (type == ")") return cont()
|
| 727 |
+
if (type == ";") return cont(forspec2)
|
| 728 |
+
if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression, forspec2) }
|
| 729 |
+
return pass(expression, forspec2)
|
| 730 |
+
}
|
| 731 |
+
function functiondef(type, value) {
|
| 732 |
+
if (value == "*") {cx.marked = "keyword"; return cont(functiondef);}
|
| 733 |
+
if (type == "variable") {register(value); return cont(functiondef);}
|
| 734 |
+
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
|
| 735 |
+
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef)
|
| 736 |
+
}
|
| 737 |
+
function functiondecl(type, value) {
|
| 738 |
+
if (value == "*") {cx.marked = "keyword"; return cont(functiondecl);}
|
| 739 |
+
if (type == "variable") {register(value); return cont(functiondecl);}
|
| 740 |
+
if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
|
| 741 |
+
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl)
|
| 742 |
+
}
|
| 743 |
+
function typename(type, value) {
|
| 744 |
+
if (type == "keyword" || type == "variable") {
|
| 745 |
+
cx.marked = "type"
|
| 746 |
+
return cont(typename)
|
| 747 |
+
} else if (value == "<") {
|
| 748 |
+
return cont(pushlex(">"), commasep(typeparam, ">"), poplex)
|
| 749 |
+
}
|
| 750 |
+
}
|
| 751 |
+
function funarg(type, value) {
|
| 752 |
+
if (value == "@") cont(expression, funarg)
|
| 753 |
+
if (type == "spread") return cont(funarg);
|
| 754 |
+
if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(funarg); }
|
| 755 |
+
if (isTS && type == "this") return cont(maybetype, maybeAssign)
|
| 756 |
+
return pass(pattern, maybetype, maybeAssign);
|
| 757 |
+
}
|
| 758 |
+
function classExpression(type, value) {
|
| 759 |
+
// Class expressions may have an optional name.
|
| 760 |
+
if (type == "variable") return className(type, value);
|
| 761 |
+
return classNameAfter(type, value);
|
| 762 |
+
}
|
| 763 |
+
function className(type, value) {
|
| 764 |
+
if (type == "variable") {register(value); return cont(classNameAfter);}
|
| 765 |
+
}
|
| 766 |
+
function classNameAfter(type, value) {
|
| 767 |
+
if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter)
|
| 768 |
+
if (value == "extends" || value == "implements" || (isTS && type == ",")) {
|
| 769 |
+
if (value == "implements") cx.marked = "keyword";
|
| 770 |
+
return cont(isTS ? typeexpr : expression, classNameAfter);
|
| 771 |
+
}
|
| 772 |
+
if (type == "{") return cont(pushlex("}"), classBody, poplex);
|
| 773 |
+
}
|
| 774 |
+
function classBody(type, value) {
|
| 775 |
+
if (type == "async" ||
|
| 776 |
+
(type == "variable" &&
|
| 777 |
+
(value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
|
| 778 |
+
cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/, false))) {
|
| 779 |
+
cx.marked = "keyword";
|
| 780 |
+
return cont(classBody);
|
| 781 |
+
}
|
| 782 |
+
if (type == "variable" || cx.style == "keyword") {
|
| 783 |
+
cx.marked = "property";
|
| 784 |
+
return cont(classfield, classBody);
|
| 785 |
+
}
|
| 786 |
+
if (type == "number" || type == "string") return cont(classfield, classBody);
|
| 787 |
+
if (type == "[")
|
| 788 |
+
return cont(expression, maybetype, expect("]"), classfield, classBody)
|
| 789 |
+
if (value == "*") {
|
| 790 |
+
cx.marked = "keyword";
|
| 791 |
+
return cont(classBody);
|
| 792 |
+
}
|
| 793 |
+
if (isTS && type == "(") return pass(functiondecl, classBody)
|
| 794 |
+
if (type == ";" || type == ",") return cont(classBody);
|
| 795 |
+
if (type == "}") return cont();
|
| 796 |
+
if (value == "@") return cont(expression, classBody)
|
| 797 |
+
}
|
| 798 |
+
function classfield(type, value) {
|
| 799 |
+
if (value == "!" || value == "?") return cont(classfield)
|
| 800 |
+
if (type == ":") return cont(typeexpr, maybeAssign)
|
| 801 |
+
if (value == "=") return cont(expressionNoComma)
|
| 802 |
+
var context = cx.state.lexical.prev, isInterface = context && context.info == "interface"
|
| 803 |
+
return pass(isInterface ? functiondecl : functiondef)
|
| 804 |
+
}
|
| 805 |
+
function afterExport(type, value) {
|
| 806 |
+
if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
|
| 807 |
+
if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
|
| 808 |
+
if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
|
| 809 |
+
return pass(statement);
|
| 810 |
+
}
|
| 811 |
+
function exportField(type, value) {
|
| 812 |
+
if (value == "as") { cx.marked = "keyword"; return cont(expect("variable")); }
|
| 813 |
+
if (type == "variable") return pass(expressionNoComma, exportField);
|
| 814 |
+
}
|
| 815 |
+
function afterImport(type) {
|
| 816 |
+
if (type == "string") return cont();
|
| 817 |
+
if (type == "(") return pass(expression);
|
| 818 |
+
if (type == ".") return pass(maybeoperatorComma);
|
| 819 |
+
return pass(importSpec, maybeMoreImports, maybeFrom);
|
| 820 |
+
}
|
| 821 |
+
function importSpec(type, value) {
|
| 822 |
+
if (type == "{") return contCommasep(importSpec, "}");
|
| 823 |
+
if (type == "variable") register(value);
|
| 824 |
+
if (value == "*") cx.marked = "keyword";
|
| 825 |
+
return cont(maybeAs);
|
| 826 |
+
}
|
| 827 |
+
function maybeMoreImports(type) {
|
| 828 |
+
if (type == ",") return cont(importSpec, maybeMoreImports)
|
| 829 |
+
}
|
| 830 |
+
function maybeAs(_type, value) {
|
| 831 |
+
if (value == "as") { cx.marked = "keyword"; return cont(importSpec); }
|
| 832 |
+
}
|
| 833 |
+
function maybeFrom(_type, value) {
|
| 834 |
+
if (value == "from") { cx.marked = "keyword"; return cont(expression); }
|
| 835 |
+
}
|
| 836 |
+
function arrayLiteral(type) {
|
| 837 |
+
if (type == "]") return cont();
|
| 838 |
+
return pass(commasep(expressionNoComma, "]"));
|
| 839 |
+
}
|
| 840 |
+
function enumdef() {
|
| 841 |
+
return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex)
|
| 842 |
+
}
|
| 843 |
+
function enummember() {
|
| 844 |
+
return pass(pattern, maybeAssign);
|
| 845 |
+
}
|
| 846 |
+
|
| 847 |
+
function isContinuedStatement(state, textAfter) {
|
| 848 |
+
return state.lastType == "operator" || state.lastType == "," ||
|
| 849 |
+
isOperatorChar.test(textAfter.charAt(0)) ||
|
| 850 |
+
/[,.]/.test(textAfter.charAt(0));
|
| 851 |
+
}
|
| 852 |
+
|
| 853 |
+
function expressionAllowed(stream, state, backUp) {
|
| 854 |
+
return state.tokenize == tokenBase &&
|
| 855 |
+
/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) ||
|
| 856 |
+
(state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0))))
|
| 857 |
+
}
|
| 858 |
+
|
| 859 |
+
// Interface
|
| 860 |
+
|
| 861 |
+
return {
|
| 862 |
+
name: parserConfig.name,
|
| 863 |
+
|
| 864 |
+
startState: function(indentUnit) {
|
| 865 |
+
var state = {
|
| 866 |
+
tokenize: tokenBase,
|
| 867 |
+
lastType: "sof",
|
| 868 |
+
cc: [],
|
| 869 |
+
lexical: new JSLexical(-indentUnit, 0, "block", false),
|
| 870 |
+
localVars: parserConfig.localVars,
|
| 871 |
+
context: parserConfig.localVars && new Context(null, null, false),
|
| 872 |
+
indented: 0
|
| 873 |
+
};
|
| 874 |
+
if (parserConfig.globalVars && typeof parserConfig.globalVars == "object")
|
| 875 |
+
state.globalVars = parserConfig.globalVars;
|
| 876 |
+
return state;
|
| 877 |
+
},
|
| 878 |
+
|
| 879 |
+
token: function(stream, state) {
|
| 880 |
+
if (stream.sol()) {
|
| 881 |
+
if (!state.lexical.hasOwnProperty("align"))
|
| 882 |
+
state.lexical.align = false;
|
| 883 |
+
state.indented = stream.indentation();
|
| 884 |
+
findFatArrow(stream, state);
|
| 885 |
+
}
|
| 886 |
+
if (state.tokenize != tokenComment && stream.eatSpace()) return null;
|
| 887 |
+
var style = state.tokenize(stream, state);
|
| 888 |
+
if (type == "comment") return style;
|
| 889 |
+
state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
|
| 890 |
+
return parseJS(state, style, type, content, stream);
|
| 891 |
+
},
|
| 892 |
+
|
| 893 |
+
indent: function(state, textAfter, cx) {
|
| 894 |
+
if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return null;
|
| 895 |
+
if (state.tokenize != tokenBase) return 0;
|
| 896 |
+
var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top
|
| 897 |
+
// Kludge to prevent 'maybelse' from blocking lexical scope pops
|
| 898 |
+
if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
|
| 899 |
+
var c = state.cc[i];
|
| 900 |
+
if (c == poplex) lexical = lexical.prev;
|
| 901 |
+
else if (c != maybeelse && c != popcontext) break;
|
| 902 |
+
}
|
| 903 |
+
while ((lexical.type == "stat" || lexical.type == "form") &&
|
| 904 |
+
(firstChar == "}" || ((top = state.cc[state.cc.length - 1]) &&
|
| 905 |
+
(top == maybeoperatorComma || top == maybeoperatorNoComma) &&
|
| 906 |
+
!/^[,\.=+\-*:?[\(]/.test(textAfter))))
|
| 907 |
+
lexical = lexical.prev;
|
| 908 |
+
if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat")
|
| 909 |
+
lexical = lexical.prev;
|
| 910 |
+
var type = lexical.type, closing = firstChar == type;
|
| 911 |
+
|
| 912 |
+
if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0);
|
| 913 |
+
else if (type == "form" && firstChar == "{") return lexical.indented;
|
| 914 |
+
else if (type == "form") return lexical.indented + cx.unit;
|
| 915 |
+
else if (type == "stat")
|
| 916 |
+
return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || cx.unit : 0);
|
| 917 |
+
else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false)
|
| 918 |
+
return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? cx.unit : 2 * cx.unit);
|
| 919 |
+
else if (lexical.align) return lexical.column + (closing ? 0 : 1);
|
| 920 |
+
else return lexical.indented + (closing ? 0 : cx.unit);
|
| 921 |
+
},
|
| 922 |
+
|
| 923 |
+
languageData: {
|
| 924 |
+
indentOnInput: /^\s*(?:case .*?:|default:|\{|\})$/,
|
| 925 |
+
commentTokens: jsonMode ? undefined : {line: "//", block: {open: "/*", close: "*/"}},
|
| 926 |
+
closeBrackets: {brackets: ["(", "[", "{", "'", '"', "`"]},
|
| 927 |
+
wordChars: "$"
|
| 928 |
+
}
|
| 929 |
+
};
|
| 930 |
+
};
|
| 931 |
+
|
| 932 |
+
const javascript = mkJavaScript({name: "javascript"})
|
| 933 |
+
const json = mkJavaScript({name: "json", json: true})
|
| 934 |
+
const jsonld = mkJavaScript({name: "json", jsonld: true})
|
| 935 |
+
const typescript = mkJavaScript({name: "typescript", typescript: true})
|
| 936 |
+
|
| 937 |
+
|
| 938 |
+
/***/ }),
|
| 939 |
+
|
| 940 |
+
/***/ 51601:
|
| 941 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 942 |
+
|
| 943 |
+
__webpack_require__.r(__webpack_exports__);
|
| 944 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 945 |
+
/* harmony export */ pug: () => (/* binding */ pug)
|
| 946 |
+
/* harmony export */ });
|
| 947 |
+
/* harmony import */ var _javascript_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70661);
|
| 948 |
+
|
| 949 |
+
|
| 950 |
+
var ATTRS_NEST = {
|
| 951 |
+
'{': '}',
|
| 952 |
+
'(': ')',
|
| 953 |
+
'[': ']'
|
| 954 |
+
}
|
| 955 |
+
|
| 956 |
+
function defaultCopyState(state) {
|
| 957 |
+
if (typeof state != "object") return state
|
| 958 |
+
let newState = {}
|
| 959 |
+
for (let prop in state) {
|
| 960 |
+
let val = state[prop]
|
| 961 |
+
newState[prop] = val instanceof Array ? val.slice() : val
|
| 962 |
+
}
|
| 963 |
+
return newState
|
| 964 |
+
}
|
| 965 |
+
|
| 966 |
+
class State {
|
| 967 |
+
constructor(indentUnit) {
|
| 968 |
+
this.indentUnit = indentUnit
|
| 969 |
+
|
| 970 |
+
this.javaScriptLine = false
|
| 971 |
+
this.javaScriptLineExcludesColon = false
|
| 972 |
+
|
| 973 |
+
this.javaScriptArguments = false
|
| 974 |
+
this.javaScriptArgumentsDepth = 0
|
| 975 |
+
|
| 976 |
+
this.isInterpolating = false
|
| 977 |
+
this.interpolationNesting = 0
|
| 978 |
+
|
| 979 |
+
this.jsState = _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.startState(indentUnit)
|
| 980 |
+
|
| 981 |
+
this.restOfLine = ''
|
| 982 |
+
|
| 983 |
+
this.isIncludeFiltered = false
|
| 984 |
+
this.isEach = false
|
| 985 |
+
|
| 986 |
+
this.lastTag = ''
|
| 987 |
+
|
| 988 |
+
// Attributes Mode
|
| 989 |
+
this.isAttrs = false
|
| 990 |
+
this.attrsNest = []
|
| 991 |
+
this.inAttributeName = true
|
| 992 |
+
this.attributeIsType = false
|
| 993 |
+
this.attrValue = ''
|
| 994 |
+
|
| 995 |
+
// Indented Mode
|
| 996 |
+
this.indentOf = Infinity
|
| 997 |
+
this.indentToken = ''
|
| 998 |
+
}
|
| 999 |
+
|
| 1000 |
+
copy() {
|
| 1001 |
+
var res = new State(this.indentUnit)
|
| 1002 |
+
res.javaScriptLine = this.javaScriptLine
|
| 1003 |
+
res.javaScriptLineExcludesColon = this.javaScriptLineExcludesColon
|
| 1004 |
+
res.javaScriptArguments = this.javaScriptArguments
|
| 1005 |
+
res.javaScriptArgumentsDepth = this.javaScriptArgumentsDepth
|
| 1006 |
+
res.isInterpolating = this.isInterpolating
|
| 1007 |
+
res.interpolationNesting = this.interpolationNesting
|
| 1008 |
+
|
| 1009 |
+
res.jsState = (_javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.copyState || defaultCopyState)(this.jsState)
|
| 1010 |
+
|
| 1011 |
+
res.restOfLine = this.restOfLine
|
| 1012 |
+
|
| 1013 |
+
res.isIncludeFiltered = this.isIncludeFiltered
|
| 1014 |
+
res.isEach = this.isEach
|
| 1015 |
+
res.lastTag = this.lastTag
|
| 1016 |
+
res.isAttrs = this.isAttrs
|
| 1017 |
+
res.attrsNest = this.attrsNest.slice()
|
| 1018 |
+
res.inAttributeName = this.inAttributeName
|
| 1019 |
+
res.attributeIsType = this.attributeIsType
|
| 1020 |
+
res.attrValue = this.attrValue
|
| 1021 |
+
res.indentOf = this.indentOf
|
| 1022 |
+
res.indentToken = this.indentToken
|
| 1023 |
+
|
| 1024 |
+
return res
|
| 1025 |
+
}
|
| 1026 |
+
}
|
| 1027 |
+
|
| 1028 |
+
function javaScript(stream, state) {
|
| 1029 |
+
if (stream.sol()) {
|
| 1030 |
+
// if javaScriptLine was set at end of line, ignore it
|
| 1031 |
+
state.javaScriptLine = false
|
| 1032 |
+
state.javaScriptLineExcludesColon = false
|
| 1033 |
+
}
|
| 1034 |
+
if (state.javaScriptLine) {
|
| 1035 |
+
if (state.javaScriptLineExcludesColon && stream.peek() === ':') {
|
| 1036 |
+
state.javaScriptLine = false
|
| 1037 |
+
state.javaScriptLineExcludesColon = false
|
| 1038 |
+
return
|
| 1039 |
+
}
|
| 1040 |
+
var tok = _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.token(stream, state.jsState)
|
| 1041 |
+
if (stream.eol()) state.javaScriptLine = false
|
| 1042 |
+
return tok || true
|
| 1043 |
+
}
|
| 1044 |
+
}
|
| 1045 |
+
function javaScriptArguments(stream, state) {
|
| 1046 |
+
if (state.javaScriptArguments) {
|
| 1047 |
+
if (state.javaScriptArgumentsDepth === 0 && stream.peek() !== '(') {
|
| 1048 |
+
state.javaScriptArguments = false
|
| 1049 |
+
return
|
| 1050 |
+
}
|
| 1051 |
+
if (stream.peek() === '(') {
|
| 1052 |
+
state.javaScriptArgumentsDepth++
|
| 1053 |
+
} else if (stream.peek() === ')') {
|
| 1054 |
+
state.javaScriptArgumentsDepth--
|
| 1055 |
+
}
|
| 1056 |
+
if (state.javaScriptArgumentsDepth === 0) {
|
| 1057 |
+
state.javaScriptArguments = false
|
| 1058 |
+
return
|
| 1059 |
+
}
|
| 1060 |
+
|
| 1061 |
+
var tok = _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.token(stream, state.jsState)
|
| 1062 |
+
return tok || true
|
| 1063 |
+
}
|
| 1064 |
+
}
|
| 1065 |
+
|
| 1066 |
+
function yieldStatement(stream) {
|
| 1067 |
+
if (stream.match(/^yield\b/)) {
|
| 1068 |
+
return 'keyword'
|
| 1069 |
+
}
|
| 1070 |
+
}
|
| 1071 |
+
|
| 1072 |
+
function doctype(stream) {
|
| 1073 |
+
if (stream.match(/^(?:doctype) *([^\n]+)?/)) return 'meta'
|
| 1074 |
+
}
|
| 1075 |
+
|
| 1076 |
+
function interpolation(stream, state) {
|
| 1077 |
+
if (stream.match('#{')) {
|
| 1078 |
+
state.isInterpolating = true
|
| 1079 |
+
state.interpolationNesting = 0
|
| 1080 |
+
return 'punctuation'
|
| 1081 |
+
}
|
| 1082 |
+
}
|
| 1083 |
+
|
| 1084 |
+
function interpolationContinued(stream, state) {
|
| 1085 |
+
if (state.isInterpolating) {
|
| 1086 |
+
if (stream.peek() === '}') {
|
| 1087 |
+
state.interpolationNesting--
|
| 1088 |
+
if (state.interpolationNesting < 0) {
|
| 1089 |
+
stream.next()
|
| 1090 |
+
state.isInterpolating = false
|
| 1091 |
+
return 'punctuation'
|
| 1092 |
+
}
|
| 1093 |
+
} else if (stream.peek() === '{') {
|
| 1094 |
+
state.interpolationNesting++
|
| 1095 |
+
}
|
| 1096 |
+
return _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.token(stream, state.jsState) || true
|
| 1097 |
+
}
|
| 1098 |
+
}
|
| 1099 |
+
|
| 1100 |
+
function caseStatement(stream, state) {
|
| 1101 |
+
if (stream.match(/^case\b/)) {
|
| 1102 |
+
state.javaScriptLine = true
|
| 1103 |
+
return 'keyword'
|
| 1104 |
+
}
|
| 1105 |
+
}
|
| 1106 |
+
|
| 1107 |
+
function when(stream, state) {
|
| 1108 |
+
if (stream.match(/^when\b/)) {
|
| 1109 |
+
state.javaScriptLine = true
|
| 1110 |
+
state.javaScriptLineExcludesColon = true
|
| 1111 |
+
return 'keyword'
|
| 1112 |
+
}
|
| 1113 |
+
}
|
| 1114 |
+
|
| 1115 |
+
function defaultStatement(stream) {
|
| 1116 |
+
if (stream.match(/^default\b/)) {
|
| 1117 |
+
return 'keyword'
|
| 1118 |
+
}
|
| 1119 |
+
}
|
| 1120 |
+
|
| 1121 |
+
function extendsStatement(stream, state) {
|
| 1122 |
+
if (stream.match(/^extends?\b/)) {
|
| 1123 |
+
state.restOfLine = 'string'
|
| 1124 |
+
return 'keyword'
|
| 1125 |
+
}
|
| 1126 |
+
}
|
| 1127 |
+
|
| 1128 |
+
function append(stream, state) {
|
| 1129 |
+
if (stream.match(/^append\b/)) {
|
| 1130 |
+
state.restOfLine = 'variable'
|
| 1131 |
+
return 'keyword'
|
| 1132 |
+
}
|
| 1133 |
+
}
|
| 1134 |
+
function prepend(stream, state) {
|
| 1135 |
+
if (stream.match(/^prepend\b/)) {
|
| 1136 |
+
state.restOfLine = 'variable'
|
| 1137 |
+
return 'keyword'
|
| 1138 |
+
}
|
| 1139 |
+
}
|
| 1140 |
+
function block(stream, state) {
|
| 1141 |
+
if (stream.match(/^block\b *(?:(prepend|append)\b)?/)) {
|
| 1142 |
+
state.restOfLine = 'variable'
|
| 1143 |
+
return 'keyword'
|
| 1144 |
+
}
|
| 1145 |
+
}
|
| 1146 |
+
|
| 1147 |
+
function include(stream, state) {
|
| 1148 |
+
if (stream.match(/^include\b/)) {
|
| 1149 |
+
state.restOfLine = 'string'
|
| 1150 |
+
return 'keyword'
|
| 1151 |
+
}
|
| 1152 |
+
}
|
| 1153 |
+
|
| 1154 |
+
function includeFiltered(stream, state) {
|
| 1155 |
+
if (stream.match(/^include:([a-zA-Z0-9\-]+)/, false) && stream.match('include')) {
|
| 1156 |
+
state.isIncludeFiltered = true
|
| 1157 |
+
return 'keyword'
|
| 1158 |
+
}
|
| 1159 |
+
}
|
| 1160 |
+
|
| 1161 |
+
function includeFilteredContinued(stream, state) {
|
| 1162 |
+
if (state.isIncludeFiltered) {
|
| 1163 |
+
var tok = filter(stream, state)
|
| 1164 |
+
state.isIncludeFiltered = false
|
| 1165 |
+
state.restOfLine = 'string'
|
| 1166 |
+
return tok
|
| 1167 |
+
}
|
| 1168 |
+
}
|
| 1169 |
+
|
| 1170 |
+
function mixin(stream, state) {
|
| 1171 |
+
if (stream.match(/^mixin\b/)) {
|
| 1172 |
+
state.javaScriptLine = true
|
| 1173 |
+
return 'keyword'
|
| 1174 |
+
}
|
| 1175 |
+
}
|
| 1176 |
+
|
| 1177 |
+
function call(stream, state) {
|
| 1178 |
+
if (stream.match(/^\+([-\w]+)/)) {
|
| 1179 |
+
if (!stream.match(/^\( *[-\w]+ *=/, false)) {
|
| 1180 |
+
state.javaScriptArguments = true
|
| 1181 |
+
state.javaScriptArgumentsDepth = 0
|
| 1182 |
+
}
|
| 1183 |
+
return 'variable'
|
| 1184 |
+
}
|
| 1185 |
+
if (stream.match('+#{', false)) {
|
| 1186 |
+
stream.next()
|
| 1187 |
+
state.mixinCallAfter = true
|
| 1188 |
+
return interpolation(stream, state)
|
| 1189 |
+
}
|
| 1190 |
+
}
|
| 1191 |
+
function callArguments(stream, state) {
|
| 1192 |
+
if (state.mixinCallAfter) {
|
| 1193 |
+
state.mixinCallAfter = false
|
| 1194 |
+
if (!stream.match(/^\( *[-\w]+ *=/, false)) {
|
| 1195 |
+
state.javaScriptArguments = true
|
| 1196 |
+
state.javaScriptArgumentsDepth = 0
|
| 1197 |
+
}
|
| 1198 |
+
return true
|
| 1199 |
+
}
|
| 1200 |
+
}
|
| 1201 |
+
|
| 1202 |
+
function conditional(stream, state) {
|
| 1203 |
+
if (stream.match(/^(if|unless|else if|else)\b/)) {
|
| 1204 |
+
state.javaScriptLine = true
|
| 1205 |
+
return 'keyword'
|
| 1206 |
+
}
|
| 1207 |
+
}
|
| 1208 |
+
|
| 1209 |
+
function each(stream, state) {
|
| 1210 |
+
if (stream.match(/^(- *)?(each|for)\b/)) {
|
| 1211 |
+
state.isEach = true
|
| 1212 |
+
return 'keyword'
|
| 1213 |
+
}
|
| 1214 |
+
}
|
| 1215 |
+
function eachContinued(stream, state) {
|
| 1216 |
+
if (state.isEach) {
|
| 1217 |
+
if (stream.match(/^ in\b/)) {
|
| 1218 |
+
state.javaScriptLine = true
|
| 1219 |
+
state.isEach = false
|
| 1220 |
+
return 'keyword'
|
| 1221 |
+
} else if (stream.sol() || stream.eol()) {
|
| 1222 |
+
state.isEach = false
|
| 1223 |
+
} else if (stream.next()) {
|
| 1224 |
+
while (!stream.match(/^ in\b/, false) && stream.next()) {}
|
| 1225 |
+
return 'variable'
|
| 1226 |
+
}
|
| 1227 |
+
}
|
| 1228 |
+
}
|
| 1229 |
+
|
| 1230 |
+
function whileStatement(stream, state) {
|
| 1231 |
+
if (stream.match(/^while\b/)) {
|
| 1232 |
+
state.javaScriptLine = true
|
| 1233 |
+
return 'keyword'
|
| 1234 |
+
}
|
| 1235 |
+
}
|
| 1236 |
+
|
| 1237 |
+
function tag(stream, state) {
|
| 1238 |
+
var captures
|
| 1239 |
+
if (captures = stream.match(/^(\w(?:[-:\w]*\w)?)\/?/)) {
|
| 1240 |
+
state.lastTag = captures[1].toLowerCase()
|
| 1241 |
+
return 'tag'
|
| 1242 |
+
}
|
| 1243 |
+
}
|
| 1244 |
+
|
| 1245 |
+
function filter(stream, state) {
|
| 1246 |
+
if (stream.match(/^:([\w\-]+)/)) {
|
| 1247 |
+
setStringMode(stream, state)
|
| 1248 |
+
return 'atom'
|
| 1249 |
+
}
|
| 1250 |
+
}
|
| 1251 |
+
|
| 1252 |
+
function code(stream, state) {
|
| 1253 |
+
if (stream.match(/^(!?=|-)/)) {
|
| 1254 |
+
state.javaScriptLine = true
|
| 1255 |
+
return 'punctuation'
|
| 1256 |
+
}
|
| 1257 |
+
}
|
| 1258 |
+
|
| 1259 |
+
function id(stream) {
|
| 1260 |
+
if (stream.match(/^#([\w-]+)/)) {
|
| 1261 |
+
return 'builtin'
|
| 1262 |
+
}
|
| 1263 |
+
}
|
| 1264 |
+
|
| 1265 |
+
function className(stream) {
|
| 1266 |
+
if (stream.match(/^\.([\w-]+)/)) {
|
| 1267 |
+
return 'className'
|
| 1268 |
+
}
|
| 1269 |
+
}
|
| 1270 |
+
|
| 1271 |
+
function attrs(stream, state) {
|
| 1272 |
+
if (stream.peek() == '(') {
|
| 1273 |
+
stream.next()
|
| 1274 |
+
state.isAttrs = true
|
| 1275 |
+
state.attrsNest = []
|
| 1276 |
+
state.inAttributeName = true
|
| 1277 |
+
state.attrValue = ''
|
| 1278 |
+
state.attributeIsType = false
|
| 1279 |
+
return 'punctuation'
|
| 1280 |
+
}
|
| 1281 |
+
}
|
| 1282 |
+
|
| 1283 |
+
function attrsContinued(stream, state) {
|
| 1284 |
+
if (state.isAttrs) {
|
| 1285 |
+
if (ATTRS_NEST[stream.peek()]) {
|
| 1286 |
+
state.attrsNest.push(ATTRS_NEST[stream.peek()])
|
| 1287 |
+
}
|
| 1288 |
+
if (state.attrsNest[state.attrsNest.length - 1] === stream.peek()) {
|
| 1289 |
+
state.attrsNest.pop()
|
| 1290 |
+
} else if (stream.eat(')')) {
|
| 1291 |
+
state.isAttrs = false
|
| 1292 |
+
return 'punctuation'
|
| 1293 |
+
}
|
| 1294 |
+
if (state.inAttributeName && stream.match(/^[^=,\)!]+/)) {
|
| 1295 |
+
if (stream.peek() === '=' || stream.peek() === '!') {
|
| 1296 |
+
state.inAttributeName = false
|
| 1297 |
+
state.jsState = _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.startState(2)
|
| 1298 |
+
if (state.lastTag === 'script' && stream.current().trim().toLowerCase() === 'type') {
|
| 1299 |
+
state.attributeIsType = true
|
| 1300 |
+
} else {
|
| 1301 |
+
state.attributeIsType = false
|
| 1302 |
+
}
|
| 1303 |
+
}
|
| 1304 |
+
return 'attribute'
|
| 1305 |
+
}
|
| 1306 |
+
|
| 1307 |
+
var tok = _javascript_js__WEBPACK_IMPORTED_MODULE_0__.javascript.token(stream, state.jsState)
|
| 1308 |
+
if (state.attrsNest.length === 0 && (tok === 'string' || tok === 'variable' || tok === 'keyword')) {
|
| 1309 |
+
try {
|
| 1310 |
+
Function('', 'var x ' + state.attrValue.replace(/,\s*$/, '').replace(/^!/, ''))
|
| 1311 |
+
state.inAttributeName = true
|
| 1312 |
+
state.attrValue = ''
|
| 1313 |
+
stream.backUp(stream.current().length)
|
| 1314 |
+
return attrsContinued(stream, state)
|
| 1315 |
+
} catch (ex) {
|
| 1316 |
+
//not the end of an attribute
|
| 1317 |
+
}
|
| 1318 |
+
}
|
| 1319 |
+
state.attrValue += stream.current()
|
| 1320 |
+
return tok || true
|
| 1321 |
+
}
|
| 1322 |
+
}
|
| 1323 |
+
|
| 1324 |
+
function attributesBlock(stream, state) {
|
| 1325 |
+
if (stream.match(/^&attributes\b/)) {
|
| 1326 |
+
state.javaScriptArguments = true
|
| 1327 |
+
state.javaScriptArgumentsDepth = 0
|
| 1328 |
+
return 'keyword'
|
| 1329 |
+
}
|
| 1330 |
+
}
|
| 1331 |
+
|
| 1332 |
+
function indent(stream) {
|
| 1333 |
+
if (stream.sol() && stream.eatSpace()) {
|
| 1334 |
+
return 'indent'
|
| 1335 |
+
}
|
| 1336 |
+
}
|
| 1337 |
+
|
| 1338 |
+
function comment(stream, state) {
|
| 1339 |
+
if (stream.match(/^ *\/\/(-)?([^\n]*)/)) {
|
| 1340 |
+
state.indentOf = stream.indentation()
|
| 1341 |
+
state.indentToken = 'comment'
|
| 1342 |
+
return 'comment'
|
| 1343 |
+
}
|
| 1344 |
+
}
|
| 1345 |
+
|
| 1346 |
+
function colon(stream) {
|
| 1347 |
+
if (stream.match(/^: */)) {
|
| 1348 |
+
return 'colon'
|
| 1349 |
+
}
|
| 1350 |
+
}
|
| 1351 |
+
|
| 1352 |
+
function text(stream, state) {
|
| 1353 |
+
if (stream.match(/^(?:\| ?| )([^\n]+)/)) {
|
| 1354 |
+
return 'string'
|
| 1355 |
+
}
|
| 1356 |
+
if (stream.match(/^(<[^\n]*)/, false)) {
|
| 1357 |
+
// html string
|
| 1358 |
+
setStringMode(stream, state)
|
| 1359 |
+
stream.skipToEnd()
|
| 1360 |
+
return state.indentToken
|
| 1361 |
+
}
|
| 1362 |
+
}
|
| 1363 |
+
|
| 1364 |
+
function dot(stream, state) {
|
| 1365 |
+
if (stream.eat('.')) {
|
| 1366 |
+
setStringMode(stream, state)
|
| 1367 |
+
return 'dot'
|
| 1368 |
+
}
|
| 1369 |
+
}
|
| 1370 |
+
|
| 1371 |
+
function fail(stream) {
|
| 1372 |
+
stream.next()
|
| 1373 |
+
return null
|
| 1374 |
+
}
|
| 1375 |
+
|
| 1376 |
+
|
| 1377 |
+
function setStringMode(stream, state) {
|
| 1378 |
+
state.indentOf = stream.indentation()
|
| 1379 |
+
state.indentToken = 'string'
|
| 1380 |
+
}
|
| 1381 |
+
function restOfLine(stream, state) {
|
| 1382 |
+
if (stream.sol()) {
|
| 1383 |
+
// if restOfLine was set at end of line, ignore it
|
| 1384 |
+
state.restOfLine = ''
|
| 1385 |
+
}
|
| 1386 |
+
if (state.restOfLine) {
|
| 1387 |
+
stream.skipToEnd()
|
| 1388 |
+
var tok = state.restOfLine
|
| 1389 |
+
state.restOfLine = ''
|
| 1390 |
+
return tok
|
| 1391 |
+
}
|
| 1392 |
+
}
|
| 1393 |
+
|
| 1394 |
+
|
| 1395 |
+
function startState(indentUnit) {
|
| 1396 |
+
return new State(indentUnit)
|
| 1397 |
+
}
|
| 1398 |
+
function copyState(state) {
|
| 1399 |
+
return state.copy()
|
| 1400 |
+
}
|
| 1401 |
+
function nextToken(stream, state) {
|
| 1402 |
+
var tok = restOfLine(stream, state)
|
| 1403 |
+
|| interpolationContinued(stream, state)
|
| 1404 |
+
|| includeFilteredContinued(stream, state)
|
| 1405 |
+
|| eachContinued(stream, state)
|
| 1406 |
+
|| attrsContinued(stream, state)
|
| 1407 |
+
|| javaScript(stream, state)
|
| 1408 |
+
|| javaScriptArguments(stream, state)
|
| 1409 |
+
|| callArguments(stream, state)
|
| 1410 |
+
|
| 1411 |
+
|| yieldStatement(stream)
|
| 1412 |
+
|| doctype(stream)
|
| 1413 |
+
|| interpolation(stream, state)
|
| 1414 |
+
|| caseStatement(stream, state)
|
| 1415 |
+
|| when(stream, state)
|
| 1416 |
+
|| defaultStatement(stream)
|
| 1417 |
+
|| extendsStatement(stream, state)
|
| 1418 |
+
|| append(stream, state)
|
| 1419 |
+
|| prepend(stream, state)
|
| 1420 |
+
|| block(stream, state)
|
| 1421 |
+
|| include(stream, state)
|
| 1422 |
+
|| includeFiltered(stream, state)
|
| 1423 |
+
|| mixin(stream, state)
|
| 1424 |
+
|| call(stream, state)
|
| 1425 |
+
|| conditional(stream, state)
|
| 1426 |
+
|| each(stream, state)
|
| 1427 |
+
|| whileStatement(stream, state)
|
| 1428 |
+
|| tag(stream, state)
|
| 1429 |
+
|| filter(stream, state)
|
| 1430 |
+
|| code(stream, state)
|
| 1431 |
+
|| id(stream)
|
| 1432 |
+
|| className(stream)
|
| 1433 |
+
|| attrs(stream, state)
|
| 1434 |
+
|| attributesBlock(stream, state)
|
| 1435 |
+
|| indent(stream)
|
| 1436 |
+
|| text(stream, state)
|
| 1437 |
+
|| comment(stream, state)
|
| 1438 |
+
|| colon(stream)
|
| 1439 |
+
|| dot(stream, state)
|
| 1440 |
+
|| fail(stream)
|
| 1441 |
+
|
| 1442 |
+
return tok === true ? null : tok
|
| 1443 |
+
}
|
| 1444 |
+
|
| 1445 |
+
const pug = {
|
| 1446 |
+
startState: startState,
|
| 1447 |
+
copyState: copyState,
|
| 1448 |
+
token: nextToken
|
| 1449 |
+
}
|
| 1450 |
+
|
| 1451 |
+
|
| 1452 |
+
/***/ })
|
| 1453 |
+
|
| 1454 |
+
}]);
|
| 1455 |
+
//# sourceMappingURL=1601.4154c4f9ed460feae33b.js.map?v=4154c4f9ed460feae33b
|
vlmpy310/lib/python3.10/site-packages/notebook/static/1618.da67fb30732c49b969ba.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"1618.da67fb30732c49b969ba.js?v=da67fb30732c49b969ba","mappings":";;;;;;;;;;AAAA;AACA;AACA,kBAAkB,kBAAkB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,MAAM;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,+CAA+C;AAC/C;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,4BAA4B,UAAU;AACtC;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA,GAAG;;AAEH;AACA,6BAA6B;AAC7B,oBAAoB,oBAAoB,yBAAyB;AACjE,oBAAoB,uBAAuB;AAC3C;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/swift.js"],"sourcesContent":["function wordSet(words) {\n var set = {}\n for (var i = 0; i < words.length; i++) set[words[i]] = true\n return set\n}\n\nvar keywords = wordSet([\"_\",\"var\",\"let\",\"actor\",\"class\",\"enum\",\"extension\",\"import\",\"protocol\",\"struct\",\"func\",\"typealias\",\"associatedtype\",\n \"open\",\"public\",\"internal\",\"fileprivate\",\"private\",\"deinit\",\"init\",\"new\",\"override\",\"self\",\"subscript\",\"super\",\n \"convenience\",\"dynamic\",\"final\",\"indirect\",\"lazy\",\"required\",\"static\",\"unowned\",\"unowned(safe)\",\"unowned(unsafe)\",\"weak\",\"as\",\"is\",\n \"break\",\"case\",\"continue\",\"default\",\"else\",\"fallthrough\",\"for\",\"guard\",\"if\",\"in\",\"repeat\",\"switch\",\"where\",\"while\",\n \"defer\",\"return\",\"inout\",\"mutating\",\"nonmutating\",\"isolated\",\"nonisolated\",\"catch\",\"do\",\"rethrows\",\"throw\",\"throws\",\"async\",\"await\",\"try\",\"didSet\",\"get\",\"set\",\"willSet\",\n \"assignment\",\"associativity\",\"infix\",\"left\",\"none\",\"operator\",\"postfix\",\"precedence\",\"precedencegroup\",\"prefix\",\"right\",\n \"Any\",\"AnyObject\",\"Type\",\"dynamicType\",\"Self\",\"Protocol\",\"__COLUMN__\",\"__FILE__\",\"__FUNCTION__\",\"__LINE__\"])\nvar definingKeywords = wordSet([\"var\",\"let\",\"actor\",\"class\",\"enum\",\"extension\",\"import\",\"protocol\",\"struct\",\"func\",\"typealias\",\"associatedtype\",\"for\"])\nvar atoms = wordSet([\"true\",\"false\",\"nil\",\"self\",\"super\",\"_\"])\nvar types = wordSet([\"Array\",\"Bool\",\"Character\",\"Dictionary\",\"Double\",\"Float\",\"Int\",\"Int8\",\"Int16\",\"Int32\",\"Int64\",\"Never\",\"Optional\",\"Set\",\"String\",\n \"UInt8\",\"UInt16\",\"UInt32\",\"UInt64\",\"Void\"])\nvar operators = \"+-/*%=|&<>~^?!\"\nvar punc = \":;,.(){}[]\"\nvar binary = /^\\-?0b[01][01_]*/\nvar octal = /^\\-?0o[0-7][0-7_]*/\nvar hexadecimal = /^\\-?0x[\\dA-Fa-f][\\dA-Fa-f_]*(?:(?:\\.[\\dA-Fa-f][\\dA-Fa-f_]*)?[Pp]\\-?\\d[\\d_]*)?/\nvar decimal = /^\\-?\\d[\\d_]*(?:\\.\\d[\\d_]*)?(?:[Ee]\\-?\\d[\\d_]*)?/\nvar identifier = /^\\$\\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\\1/\nvar property = /^\\.(?:\\$\\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\\1)/\nvar instruction = /^\\#[A-Za-z]+/\nvar attribute = /^@(?:\\$\\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\\1)/\n//var regexp = /^\\/(?!\\s)(?:\\/\\/)?(?:\\\\.|[^\\/])+\\//\n\nfunction tokenBase(stream, state, prev) {\n if (stream.sol()) state.indented = stream.indentation()\n if (stream.eatSpace()) return null\n\n var ch = stream.peek()\n if (ch == \"/\") {\n if (stream.match(\"//\")) {\n stream.skipToEnd()\n return \"comment\"\n }\n if (stream.match(\"/*\")) {\n state.tokenize.push(tokenComment)\n return tokenComment(stream, state)\n }\n }\n if (stream.match(instruction)) return \"builtin\"\n if (stream.match(attribute)) return \"attribute\"\n if (stream.match(binary)) return \"number\"\n if (stream.match(octal)) return \"number\"\n if (stream.match(hexadecimal)) return \"number\"\n if (stream.match(decimal)) return \"number\"\n if (stream.match(property)) return \"property\"\n if (operators.indexOf(ch) > -1) {\n stream.next()\n return \"operator\"\n }\n if (punc.indexOf(ch) > -1) {\n stream.next()\n stream.match(\"..\")\n return \"punctuation\"\n }\n var stringMatch\n if (stringMatch = stream.match(/(\"\"\"|\"|')/)) {\n var tokenize = tokenString.bind(null, stringMatch[0])\n state.tokenize.push(tokenize)\n return tokenize(stream, state)\n }\n\n if (stream.match(identifier)) {\n var ident = stream.current()\n if (types.hasOwnProperty(ident)) return \"type\"\n if (atoms.hasOwnProperty(ident)) return \"atom\"\n if (keywords.hasOwnProperty(ident)) {\n if (definingKeywords.hasOwnProperty(ident))\n state.prev = \"define\"\n return \"keyword\"\n }\n if (prev == \"define\") return \"def\"\n return \"variable\"\n }\n\n stream.next()\n return null\n}\n\nfunction tokenUntilClosingParen() {\n var depth = 0\n return function(stream, state, prev) {\n var inner = tokenBase(stream, state, prev)\n if (inner == \"punctuation\") {\n if (stream.current() == \"(\") ++depth\n else if (stream.current() == \")\") {\n if (depth == 0) {\n stream.backUp(1)\n state.tokenize.pop()\n return state.tokenize[state.tokenize.length - 1](stream, state)\n }\n else --depth\n }\n }\n return inner\n }\n}\n\nfunction tokenString(openQuote, stream, state) {\n var singleLine = openQuote.length == 1\n var ch, escaped = false\n while (ch = stream.peek()) {\n if (escaped) {\n stream.next()\n if (ch == \"(\") {\n state.tokenize.push(tokenUntilClosingParen())\n return \"string\"\n }\n escaped = false\n } else if (stream.match(openQuote)) {\n state.tokenize.pop()\n return \"string\"\n } else {\n stream.next()\n escaped = ch == \"\\\\\"\n }\n }\n if (singleLine) {\n state.tokenize.pop()\n }\n return \"string\"\n}\n\nfunction tokenComment(stream, state) {\n var ch\n while (ch = stream.next()) {\n if (ch === \"/\" && stream.eat(\"*\")) {\n state.tokenize.push(tokenComment)\n } else if (ch === \"*\" && stream.eat(\"/\")) {\n state.tokenize.pop()\n break\n }\n }\n return \"comment\"\n}\n\nfunction Context(prev, align, indented) {\n this.prev = prev\n this.align = align\n this.indented = indented\n}\n\nfunction pushContext(state, stream) {\n var align = stream.match(/^\\s*($|\\/[\\/\\*]|[)}\\]])/, false) ? null : stream.column() + 1\n state.context = new Context(state.context, align, state.indented)\n}\n\nfunction popContext(state) {\n if (state.context) {\n state.indented = state.context.indented\n state.context = state.context.prev\n }\n}\n\nexport const swift = {\n name: \"swift\",\n startState: function() {\n return {\n prev: null,\n context: null,\n indented: 0,\n tokenize: []\n }\n },\n\n token: function(stream, state) {\n var prev = state.prev\n state.prev = null\n var tokenize = state.tokenize[state.tokenize.length - 1] || tokenBase\n var style = tokenize(stream, state, prev)\n if (!style || style == \"comment\") state.prev = prev\n else if (!state.prev) state.prev = style\n\n if (style == \"punctuation\") {\n var bracket = /[\\(\\[\\{]|([\\]\\)\\}])/.exec(stream.current())\n if (bracket) (bracket[1] ? popContext : pushContext)(state, stream)\n }\n\n return style\n },\n\n indent: function(state, textAfter, iCx) {\n var cx = state.context\n if (!cx) return 0\n var closing = /^[\\]\\}\\)]/.test(textAfter)\n if (cx.align != null) return cx.align - (closing ? 1 : 0)\n return cx.indented + (closing ? 0 : iCx.unit)\n },\n\n languageData: {\n indentOnInput: /^\\s*[\\)\\}\\]]$/,\n commentTokens: {line: \"//\", block: {open: \"/*\", close: \"*/\"}},\n closeBrackets: {brackets: [\"(\", \"[\", \"{\", \"'\", '\"', \"`\"]}\n }\n}\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/1650.8d7f95fed9378b01c97b.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[1650,8875],{
|
| 3 |
+
|
| 4 |
+
/***/ 71650:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
| 10 |
+
/* harmony export */ });
|
| 11 |
+
/* harmony import */ var _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(76107);
|
| 12 |
+
/* harmony import */ var _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__);
|
| 13 |
+
/* harmony import */ var _jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89598);
|
| 14 |
+
/* harmony import */ var _jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_1__);
|
| 15 |
+
/* harmony import */ var _jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87362);
|
| 16 |
+
/* harmony import */ var _jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2__);
|
| 17 |
+
/* harmony import */ var _lumino_signaling__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2159);
|
| 18 |
+
/* harmony import */ var _lumino_signaling__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_lumino_signaling__WEBPACK_IMPORTED_MODULE_3__);
|
| 19 |
+
// Copyright (c) Jupyter Development Team.
|
| 20 |
+
// Distributed under the terms of the Modified BSD License.
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
/**
|
| 26 |
+
* A plugin to open documents in a new browser tab.
|
| 27 |
+
*
|
| 28 |
+
*/
|
| 29 |
+
const opener = {
|
| 30 |
+
id: '@jupyter-notebook/docmanager-extension:opener',
|
| 31 |
+
autoStart: true,
|
| 32 |
+
optional: [_jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2__.INotebookPathOpener, _jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2__.INotebookShell],
|
| 33 |
+
provides: _jupyterlab_docmanager__WEBPACK_IMPORTED_MODULE_1__.IDocumentWidgetOpener,
|
| 34 |
+
description: 'Open documents in a new browser tab',
|
| 35 |
+
activate: (app, notebookPathOpener, notebookShell) => {
|
| 36 |
+
const baseUrl = _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__.PageConfig.getBaseUrl();
|
| 37 |
+
const docRegistry = app.docRegistry;
|
| 38 |
+
const pathOpener = notebookPathOpener !== null && notebookPathOpener !== void 0 ? notebookPathOpener : _jupyter_notebook_application__WEBPACK_IMPORTED_MODULE_2__.defaultNotebookPathOpener;
|
| 39 |
+
let id = 0;
|
| 40 |
+
return new (class {
|
| 41 |
+
constructor() {
|
| 42 |
+
this._opened = new _lumino_signaling__WEBPACK_IMPORTED_MODULE_3__.Signal(this);
|
| 43 |
+
}
|
| 44 |
+
async open(widget, options) {
|
| 45 |
+
var _a, _b, _c;
|
| 46 |
+
const widgetName = (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : '';
|
| 47 |
+
const ref = options === null || options === void 0 ? void 0 : options.ref;
|
| 48 |
+
// check if there is an setting override and if it would add the widget in the main area
|
| 49 |
+
const userLayoutArea = (_c = (_b = notebookShell === null || notebookShell === void 0 ? void 0 : notebookShell.userLayout) === null || _b === void 0 ? void 0 : _b[widgetName]) === null || _c === void 0 ? void 0 : _c.area;
|
| 50 |
+
if (ref !== '_noref' && userLayoutArea === undefined) {
|
| 51 |
+
const path = widget.context.path;
|
| 52 |
+
const ext = _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__.PathExt.extname(path);
|
| 53 |
+
let route = 'edit';
|
| 54 |
+
if ((widgetName === 'default' && ext === '.ipynb') ||
|
| 55 |
+
widgetName.includes('Notebook')) {
|
| 56 |
+
// make sure to save the notebook before opening it in a new tab
|
| 57 |
+
// so the kernel info is saved (if created from the New dropdown)
|
| 58 |
+
if (widget.context.sessionContext.kernelPreference.name) {
|
| 59 |
+
await widget.context.save();
|
| 60 |
+
}
|
| 61 |
+
route = 'notebooks';
|
| 62 |
+
}
|
| 63 |
+
// append ?factory only if it's not the default
|
| 64 |
+
const defaultFactory = docRegistry.defaultWidgetFactory(path);
|
| 65 |
+
let searchParams = undefined;
|
| 66 |
+
if (widgetName !== defaultFactory.name) {
|
| 67 |
+
searchParams = new URLSearchParams({
|
| 68 |
+
factory: widgetName,
|
| 69 |
+
});
|
| 70 |
+
}
|
| 71 |
+
pathOpener.open({
|
| 72 |
+
prefix: _jupyterlab_coreutils__WEBPACK_IMPORTED_MODULE_0__.URLExt.join(baseUrl, route),
|
| 73 |
+
path,
|
| 74 |
+
searchParams,
|
| 75 |
+
});
|
| 76 |
+
// dispose the widget since it is not used on this page
|
| 77 |
+
widget.dispose();
|
| 78 |
+
return;
|
| 79 |
+
}
|
| 80 |
+
// otherwise open the document on the current page
|
| 81 |
+
if (!widget.id) {
|
| 82 |
+
widget.id = `document-manager-${++id}`;
|
| 83 |
+
}
|
| 84 |
+
widget.title.dataset = {
|
| 85 |
+
type: 'document-title',
|
| 86 |
+
...widget.title.dataset,
|
| 87 |
+
};
|
| 88 |
+
if (!widget.isAttached) {
|
| 89 |
+
app.shell.add(widget, 'main', options || {});
|
| 90 |
+
}
|
| 91 |
+
app.shell.activateById(widget.id);
|
| 92 |
+
this._opened.emit(widget);
|
| 93 |
+
}
|
| 94 |
+
get opened() {
|
| 95 |
+
return this._opened;
|
| 96 |
+
}
|
| 97 |
+
})();
|
| 98 |
+
},
|
| 99 |
+
};
|
| 100 |
+
/**
|
| 101 |
+
* Export the plugins as default.
|
| 102 |
+
*/
|
| 103 |
+
const plugins = [opener];
|
| 104 |
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (plugins);
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
/***/ })
|
| 108 |
+
|
| 109 |
+
}]);
|
| 110 |
+
//# sourceMappingURL=1650.8d7f95fed9378b01c97b.js.map?v=8d7f95fed9378b01c97b
|
vlmpy310/lib/python3.10/site-packages/notebook/static/1837.6bbfd9967be58e1325f1.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"1837.6bbfd9967be58e1325f1.js?v=6bbfd9967be58e1325f1","mappings":";;;;;;;;;;AAAA;AACA;AACA,oCAAoC;AACpC;AACA;;AAEA,yBAAyB,IAAI;AAC7B,gCAAgC,IAAI;AACpC;AACA;;AAEA;AACA;AACA,OAAO,IAAI;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,QAAQ;AAC7B;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,mCAAmC;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,uBAAuB,GAAG;AAC1B;AACA,IAAI,0BAA0B,IAAI;AAClC;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iEAAiE;AACjE;AACA;AACA;AACA;;AAEA;AACA,iEAAiE;AACjE;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,wBAAwB,GAAG,GAAG;AAC9B;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA,0CAA0C,wBAAwB;AAClE,sCAAsC,wBAAwB;AAC9D,uCAAuC,wBAAwB;AAC/D;AACA,uHAAuH;AACvH,oDAAoD,wBAAwB;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,2BAA2B;AAC3B,qBAAqB;AACrB;AACA,IAAI,wBAAwB;AAC5B;AACA;AACA;AACA,yBAAyB,EAAE;AAC3B,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI,4CAA4C,IAAI;AACpD;AACA,4CAA4C;AAC5C;AACA;AACA;AACA,IAAI,+CAA+C,IAAI;AACvD;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC;AACtC,2BAA2B;AAC3B;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,oBAAoB,mBAAmB,yBAAyB;AAChE,oBAAoB,uBAAuB,QAAQ;AACnD;AACA;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/julia.js"],"sourcesContent":["function wordRegexp(words, end, pre) {\n if (typeof pre === \"undefined\") pre = \"\";\n if (typeof end === \"undefined\") { end = \"\\\\b\"; }\n return new RegExp(\"^\" + pre + \"((\" + words.join(\")|(\") + \"))\" + end);\n}\n\nvar octChar = \"\\\\\\\\[0-7]{1,3}\";\nvar hexChar = \"\\\\\\\\x[A-Fa-f0-9]{1,2}\";\nvar sChar = \"\\\\\\\\[abefnrtv0%?'\\\"\\\\\\\\]\";\nvar uChar = \"([^\\\\u0027\\\\u005C\\\\uD800-\\\\uDFFF]|[\\\\uD800-\\\\uDFFF][\\\\uDC00-\\\\uDFFF])\";\n\nvar asciiOperatorsList = [\n \"[<>]:\", \"[<>=]=\", \"<<=?\", \">>>?=?\", \"=>\", \"--?>\", \"<--[->]?\", \"\\\\/\\\\/\",\n \"\\\\.{2,3}\", \"[\\\\.\\\\\\\\%*+\\\\-<>!\\\\/^|&]=?\", \"\\\\?\", \"\\\\$\", \"~\", \":\"\n];\nvar operators = wordRegexp([\n \"[<>]:\", \"[<>=]=\", \"[!=]==\", \"<<=?\", \">>>?=?\", \"=>?\", \"--?>\", \"<--[->]?\", \"\\\\/\\\\/\",\n \"[\\\\\\\\%*+\\\\-<>!\\\\/^|&\\\\u00F7\\\\u22BB]=?\", \"\\\\?\", \"\\\\$\", \"~\", \":\",\n \"\\\\u00D7\", \"\\\\u2208\", \"\\\\u2209\", \"\\\\u220B\", \"\\\\u220C\", \"\\\\u2218\",\n \"\\\\u221A\", \"\\\\u221B\", \"\\\\u2229\", \"\\\\u222A\", \"\\\\u2260\", \"\\\\u2264\",\n \"\\\\u2265\", \"\\\\u2286\", \"\\\\u2288\", \"\\\\u228A\", \"\\\\u22C5\",\n \"\\\\b(in|isa)\\\\b(?!\\.?\\\\()\"\n], \"\");\nvar delimiters = /^[;,()[\\]{}]/;\nvar identifiers = /^[_A-Za-z\\u00A1-\\u2217\\u2219-\\uFFFF][\\w\\u00A1-\\u2217\\u2219-\\uFFFF]*!*/;\n\nvar chars = wordRegexp([octChar, hexChar, sChar, uChar], \"'\");\n\nvar openersList = [\"begin\", \"function\", \"type\", \"struct\", \"immutable\", \"let\",\n \"macro\", \"for\", \"while\", \"quote\", \"if\", \"else\", \"elseif\", \"try\",\n \"finally\", \"catch\", \"do\"];\n\nvar closersList = [\"end\", \"else\", \"elseif\", \"catch\", \"finally\"];\n\nvar keywordsList = [\"if\", \"else\", \"elseif\", \"while\", \"for\", \"begin\", \"let\",\n \"end\", \"do\", \"try\", \"catch\", \"finally\", \"return\", \"break\", \"continue\",\n \"global\", \"local\", \"const\", \"export\", \"import\", \"importall\", \"using\",\n \"function\", \"where\", \"macro\", \"module\", \"baremodule\", \"struct\", \"type\",\n \"mutable\", \"immutable\", \"quote\", \"typealias\", \"abstract\", \"primitive\",\n \"bitstype\"];\n\nvar builtinsList = [\"true\", \"false\", \"nothing\", \"NaN\", \"Inf\"];\n\nvar openers = wordRegexp(openersList);\nvar closers = wordRegexp(closersList);\nvar keywords = wordRegexp(keywordsList);\nvar builtins = wordRegexp(builtinsList);\n\nvar macro = /^@[_A-Za-z\\u00A1-\\uFFFF][\\w\\u00A1-\\uFFFF]*!*/;\nvar symbol = /^:[_A-Za-z\\u00A1-\\uFFFF][\\w\\u00A1-\\uFFFF]*!*/;\nvar stringPrefixes = /^(`|([_A-Za-z\\u00A1-\\uFFFF]*\"(\"\")?))/;\n\nvar macroOperators = wordRegexp(asciiOperatorsList, \"\", \"@\");\nvar symbolOperators = wordRegexp(asciiOperatorsList, \"\", \":\");\n\nfunction inArray(state) {\n return (state.nestedArrays > 0);\n}\n\nfunction inGenerator(state) {\n return (state.nestedGenerators > 0);\n}\n\nfunction currentScope(state, n) {\n if (typeof(n) === \"undefined\") { n = 0; }\n if (state.scopes.length <= n) {\n return null;\n }\n return state.scopes[state.scopes.length - (n + 1)];\n}\n\n// tokenizers\nfunction tokenBase(stream, state) {\n // Handle multiline comments\n if (stream.match('#=', false)) {\n state.tokenize = tokenComment;\n return state.tokenize(stream, state);\n }\n\n // Handle scope changes\n var leavingExpr = state.leavingExpr;\n if (stream.sol()) {\n leavingExpr = false;\n }\n state.leavingExpr = false;\n\n if (leavingExpr) {\n if (stream.match(/^'+/)) {\n return \"operator\";\n }\n }\n\n if (stream.match(/\\.{4,}/)) {\n return \"error\";\n } else if (stream.match(/\\.{1,3}/)) {\n return \"operator\";\n }\n\n if (stream.eatSpace()) {\n return null;\n }\n\n var ch = stream.peek();\n\n // Handle single line comments\n if (ch === '#') {\n stream.skipToEnd();\n return \"comment\";\n }\n\n if (ch === '[') {\n state.scopes.push('[');\n state.nestedArrays++;\n }\n\n if (ch === '(') {\n state.scopes.push('(');\n state.nestedGenerators++;\n }\n\n if (inArray(state) && ch === ']') {\n while (state.scopes.length && currentScope(state) !== \"[\") { state.scopes.pop(); }\n state.scopes.pop();\n state.nestedArrays--;\n state.leavingExpr = true;\n }\n\n if (inGenerator(state) && ch === ')') {\n while (state.scopes.length && currentScope(state) !== \"(\") { state.scopes.pop(); }\n state.scopes.pop();\n state.nestedGenerators--;\n state.leavingExpr = true;\n }\n\n if (inArray(state)) {\n if (state.lastToken == \"end\" && stream.match(':')) {\n return \"operator\";\n }\n if (stream.match('end')) {\n return \"number\";\n }\n }\n\n var match;\n if (match = stream.match(openers, false)) {\n state.scopes.push(match[0]);\n }\n\n if (stream.match(closers, false)) {\n state.scopes.pop();\n }\n\n // Handle type annotations\n if (stream.match(/^::(?![:\\$])/)) {\n state.tokenize = tokenAnnotation;\n return state.tokenize(stream, state);\n }\n\n // Handle symbols\n if (!leavingExpr && (stream.match(symbol) || stream.match(symbolOperators))) {\n return \"builtin\";\n }\n\n // Handle parametric types\n //if (stream.match(/^{[^}]*}(?=\\()/)) {\n // return \"builtin\";\n //}\n\n // Handle operators and Delimiters\n if (stream.match(operators)) {\n return \"operator\";\n }\n\n // Handle Number Literals\n if (stream.match(/^\\.?\\d/, false)) {\n var imMatcher = RegExp(/^im\\b/);\n var numberLiteral = false;\n if (stream.match(/^0x\\.[0-9a-f_]+p[\\+\\-]?[_\\d]+/i)) { numberLiteral = true; }\n // Integers\n if (stream.match(/^0x[0-9a-f_]+/i)) { numberLiteral = true; } // Hex\n if (stream.match(/^0b[01_]+/i)) { numberLiteral = true; } // Binary\n if (stream.match(/^0o[0-7_]+/i)) { numberLiteral = true; } // Octal\n // Floats\n if (stream.match(/^(?:(?:\\d[_\\d]*)?\\.(?!\\.)(?:\\d[_\\d]*)?|\\d[_\\d]*\\.(?!\\.)(?:\\d[_\\d]*))?([Eef][\\+\\-]?[_\\d]+)?/i)) { numberLiteral = true; }\n if (stream.match(/^\\d[_\\d]*(e[\\+\\-]?\\d+)?/i)) { numberLiteral = true; } // Decimal\n if (numberLiteral) {\n // Integer literals may be \"long\"\n stream.match(imMatcher);\n state.leavingExpr = true;\n return \"number\";\n }\n }\n\n // Handle Chars\n if (stream.match(\"'\")) {\n state.tokenize = tokenChar;\n return state.tokenize(stream, state);\n }\n\n // Handle Strings\n if (stream.match(stringPrefixes)) {\n state.tokenize = tokenStringFactory(stream.current());\n return state.tokenize(stream, state);\n }\n\n if (stream.match(macro) || stream.match(macroOperators)) {\n return \"meta\";\n }\n\n if (stream.match(delimiters)) {\n return null;\n }\n\n if (stream.match(keywords)) {\n return \"keyword\";\n }\n\n if (stream.match(builtins)) {\n return \"builtin\";\n }\n\n var isDefinition = state.isDefinition || state.lastToken == \"function\" ||\n state.lastToken == \"macro\" || state.lastToken == \"type\" ||\n state.lastToken == \"struct\" || state.lastToken == \"immutable\";\n\n if (stream.match(identifiers)) {\n if (isDefinition) {\n if (stream.peek() === '.') {\n state.isDefinition = true;\n return \"variable\";\n }\n state.isDefinition = false;\n return \"def\";\n }\n state.leavingExpr = true;\n return \"variable\";\n }\n\n // Handle non-detected items\n stream.next();\n return \"error\";\n}\n\nfunction tokenAnnotation(stream, state) {\n stream.match(/.*?(?=[,;{}()=\\s]|$)/);\n if (stream.match('{')) {\n state.nestedParameters++;\n } else if (stream.match('}') && state.nestedParameters > 0) {\n state.nestedParameters--;\n }\n if (state.nestedParameters > 0) {\n stream.match(/.*?(?={|})/) || stream.next();\n } else if (state.nestedParameters == 0) {\n state.tokenize = tokenBase;\n }\n return \"builtin\";\n}\n\nfunction tokenComment(stream, state) {\n if (stream.match('#=')) {\n state.nestedComments++;\n }\n if (!stream.match(/.*?(?=(#=|=#))/)) {\n stream.skipToEnd();\n }\n if (stream.match('=#')) {\n state.nestedComments--;\n if (state.nestedComments == 0)\n state.tokenize = tokenBase;\n }\n return \"comment\";\n}\n\nfunction tokenChar(stream, state) {\n var isChar = false, match;\n if (stream.match(chars)) {\n isChar = true;\n } else if (match = stream.match(/\\\\u([a-f0-9]{1,4})(?=')/i)) {\n var value = parseInt(match[1], 16);\n if (value <= 55295 || value >= 57344) { // (U+0,U+D7FF), (U+E000,U+FFFF)\n isChar = true;\n stream.next();\n }\n } else if (match = stream.match(/\\\\U([A-Fa-f0-9]{5,8})(?=')/)) {\n var value = parseInt(match[1], 16);\n if (value <= 1114111) { // U+10FFFF\n isChar = true;\n stream.next();\n }\n }\n if (isChar) {\n state.leavingExpr = true;\n state.tokenize = tokenBase;\n return \"string\";\n }\n if (!stream.match(/^[^']+(?=')/)) { stream.skipToEnd(); }\n if (stream.match(\"'\")) { state.tokenize = tokenBase; }\n return \"error\";\n}\n\nfunction tokenStringFactory(delimiter) {\n if (delimiter.substr(-3) === '\"\"\"') {\n delimiter = '\"\"\"';\n } else if (delimiter.substr(-1) === '\"') {\n delimiter = '\"';\n }\n function tokenString(stream, state) {\n if (stream.eat('\\\\')) {\n stream.next();\n } else if (stream.match(delimiter)) {\n state.tokenize = tokenBase;\n state.leavingExpr = true;\n return \"string\";\n } else {\n stream.eat(/[`\"]/);\n }\n stream.eatWhile(/[^\\\\`\"]/);\n return \"string\";\n }\n return tokenString;\n}\n\nexport const julia = {\n name: \"julia\",\n startState: function() {\n return {\n tokenize: tokenBase,\n scopes: [],\n lastToken: null,\n leavingExpr: false,\n isDefinition: false,\n nestedArrays: 0,\n nestedComments: 0,\n nestedGenerators: 0,\n nestedParameters: 0,\n firstParenPos: -1\n };\n },\n\n token: function(stream, state) {\n var style = state.tokenize(stream, state);\n var current = stream.current();\n\n if (current && style) {\n state.lastToken = current;\n }\n\n return style;\n },\n\n indent: function(state, textAfter, cx) {\n var delta = 0;\n if ( textAfter === ']' || textAfter === ')' || /^end\\b/.test(textAfter) ||\n /^else/.test(textAfter) || /^catch\\b/.test(textAfter) || /^elseif\\b/.test(textAfter) ||\n /^finally/.test(textAfter) ) {\n delta = -1;\n }\n return (state.scopes.length + delta) * cx.unit;\n },\n\n languageData: {\n indentOnInput: /^\\s*(end|else|catch|finally)\\b$/,\n commentTokens: {line: \"#\", block: {open: \"#=\", close: \"=#\"}},\n closeBrackets: {brackets: [\"(\", \"[\", \"{\", '\"']},\n autocomplete: keywordsList.concat(builtinsList)\n }\n};\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/1869.c994a53965ffbc5a22b5.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[1869],{
|
| 3 |
+
|
| 4 |
+
/***/ 81869:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ mangle: () => (/* binding */ mangle)
|
| 10 |
+
/* harmony export */ });
|
| 11 |
+
function mangle() {
|
| 12 |
+
return {
|
| 13 |
+
mangle: false, // remove this once mangle option is removed
|
| 14 |
+
walkTokens(token) {
|
| 15 |
+
if (token.type !== 'link') {
|
| 16 |
+
return;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
if (!token.href.startsWith('mailto:')) {
|
| 20 |
+
return;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
const email = token.href.substring(7);
|
| 24 |
+
const mangledEmail = mangleEmail(email);
|
| 25 |
+
|
| 26 |
+
token.href = `mailto:${mangledEmail}`;
|
| 27 |
+
|
| 28 |
+
if (token.tokens.length !== 1 || token.tokens[0].type !== 'text' || token.tokens[0].text !== email) {
|
| 29 |
+
return;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
token.text = mangledEmail;
|
| 33 |
+
token.tokens[0].text = mangledEmail;
|
| 34 |
+
}
|
| 35 |
+
};
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
function mangleEmail(text) {
|
| 39 |
+
let out = '',
|
| 40 |
+
i,
|
| 41 |
+
ch;
|
| 42 |
+
|
| 43 |
+
const l = text.length;
|
| 44 |
+
for (i = 0; i < l; i++) {
|
| 45 |
+
ch = text.charCodeAt(i);
|
| 46 |
+
if (Math.random() > 0.5) {
|
| 47 |
+
ch = 'x' + ch.toString(16);
|
| 48 |
+
}
|
| 49 |
+
out += '&#' + ch + ';';
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
return out;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
/***/ })
|
| 57 |
+
|
| 58 |
+
}]);
|
| 59 |
+
//# sourceMappingURL=1869.c994a53965ffbc5a22b5.js.map?v=c994a53965ffbc5a22b5
|
vlmpy310/lib/python3.10/site-packages/notebook/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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[2188],{
|
| 3 |
+
|
| 4 |
+
/***/ 42188:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ r: () => (/* binding */ r)
|
| 10 |
+
/* harmony export */ });
|
| 11 |
+
function wordObj(words) {
|
| 12 |
+
var res = {};
|
| 13 |
+
for (var i = 0; i < words.length; ++i) res[words[i]] = true;
|
| 14 |
+
return res;
|
| 15 |
+
}
|
| 16 |
+
var commonAtoms = ["NULL", "NA", "Inf", "NaN", "NA_integer_", "NA_real_", "NA_complex_", "NA_character_", "TRUE", "FALSE"];
|
| 17 |
+
var commonBuiltins = ["list", "quote", "bquote", "eval", "return", "call", "parse", "deparse"];
|
| 18 |
+
var commonKeywords = ["if", "else", "repeat", "while", "function", "for", "in", "next", "break"];
|
| 19 |
+
var commonBlockKeywords = ["if", "else", "repeat", "while", "function", "for"];
|
| 20 |
+
|
| 21 |
+
var atoms = wordObj(commonAtoms);
|
| 22 |
+
var builtins = wordObj(commonBuiltins);
|
| 23 |
+
var keywords = wordObj(commonKeywords);
|
| 24 |
+
var blockkeywords = wordObj(commonBlockKeywords);
|
| 25 |
+
var opChars = /[+\-*\/^<>=!&|~$:]/;
|
| 26 |
+
var curPunc;
|
| 27 |
+
|
| 28 |
+
function tokenBase(stream, state) {
|
| 29 |
+
curPunc = null;
|
| 30 |
+
var ch = stream.next();
|
| 31 |
+
if (ch == "#") {
|
| 32 |
+
stream.skipToEnd();
|
| 33 |
+
return "comment";
|
| 34 |
+
} else if (ch == "0" && stream.eat("x")) {
|
| 35 |
+
stream.eatWhile(/[\da-f]/i);
|
| 36 |
+
return "number";
|
| 37 |
+
} else if (ch == "." && stream.eat(/\d/)) {
|
| 38 |
+
stream.match(/\d*(?:e[+\-]?\d+)?/);
|
| 39 |
+
return "number";
|
| 40 |
+
} else if (/\d/.test(ch)) {
|
| 41 |
+
stream.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/);
|
| 42 |
+
return "number";
|
| 43 |
+
} else if (ch == "'" || ch == '"') {
|
| 44 |
+
state.tokenize = tokenString(ch);
|
| 45 |
+
return "string";
|
| 46 |
+
} else if (ch == "`") {
|
| 47 |
+
stream.match(/[^`]+`/);
|
| 48 |
+
return "string.special";
|
| 49 |
+
} else if (ch == "." && stream.match(/.(?:[.]|\d+)/)) {
|
| 50 |
+
return "keyword";
|
| 51 |
+
} else if (/[a-zA-Z\.]/.test(ch)) {
|
| 52 |
+
stream.eatWhile(/[\w\.]/);
|
| 53 |
+
var word = stream.current();
|
| 54 |
+
if (atoms.propertyIsEnumerable(word)) return "atom";
|
| 55 |
+
if (keywords.propertyIsEnumerable(word)) {
|
| 56 |
+
// Block keywords start new blocks, except 'else if', which only starts
|
| 57 |
+
// one new block for the 'if', no block for the 'else'.
|
| 58 |
+
if (blockkeywords.propertyIsEnumerable(word) &&
|
| 59 |
+
!stream.match(/\s*if(\s+|$)/, false))
|
| 60 |
+
curPunc = "block";
|
| 61 |
+
return "keyword";
|
| 62 |
+
}
|
| 63 |
+
if (builtins.propertyIsEnumerable(word)) return "builtin";
|
| 64 |
+
return "variable";
|
| 65 |
+
} else if (ch == "%") {
|
| 66 |
+
if (stream.skipTo("%")) stream.next();
|
| 67 |
+
return "variableName.special";
|
| 68 |
+
} else if (
|
| 69 |
+
(ch == "<" && stream.eat("-")) ||
|
| 70 |
+
(ch == "<" && stream.match("<-")) ||
|
| 71 |
+
(ch == "-" && stream.match(/>>?/))
|
| 72 |
+
) {
|
| 73 |
+
return "operator";
|
| 74 |
+
} else if (ch == "=" && state.ctx.argList) {
|
| 75 |
+
return "operator";
|
| 76 |
+
} else if (opChars.test(ch)) {
|
| 77 |
+
if (ch == "$") return "operator";
|
| 78 |
+
stream.eatWhile(opChars);
|
| 79 |
+
return "operator";
|
| 80 |
+
} else if (/[\(\){}\[\];]/.test(ch)) {
|
| 81 |
+
curPunc = ch;
|
| 82 |
+
if (ch == ";") return "punctuation";
|
| 83 |
+
return null;
|
| 84 |
+
} else {
|
| 85 |
+
return null;
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
function tokenString(quote) {
|
| 90 |
+
return function(stream, state) {
|
| 91 |
+
if (stream.eat("\\")) {
|
| 92 |
+
var ch = stream.next();
|
| 93 |
+
if (ch == "x") stream.match(/^[a-f0-9]{2}/i);
|
| 94 |
+
else if ((ch == "u" || ch == "U") && stream.eat("{") && stream.skipTo("}")) stream.next();
|
| 95 |
+
else if (ch == "u") stream.match(/^[a-f0-9]{4}/i);
|
| 96 |
+
else if (ch == "U") stream.match(/^[a-f0-9]{8}/i);
|
| 97 |
+
else if (/[0-7]/.test(ch)) stream.match(/^[0-7]{1,2}/);
|
| 98 |
+
return "string.special";
|
| 99 |
+
} else {
|
| 100 |
+
var next;
|
| 101 |
+
while ((next = stream.next()) != null) {
|
| 102 |
+
if (next == quote) { state.tokenize = tokenBase; break; }
|
| 103 |
+
if (next == "\\") { stream.backUp(1); break; }
|
| 104 |
+
}
|
| 105 |
+
return "string";
|
| 106 |
+
}
|
| 107 |
+
};
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
var ALIGN_YES = 1, ALIGN_NO = 2, BRACELESS = 4
|
| 111 |
+
|
| 112 |
+
function push(state, type, stream) {
|
| 113 |
+
state.ctx = {type: type,
|
| 114 |
+
indent: state.indent,
|
| 115 |
+
flags: 0,
|
| 116 |
+
column: stream.column(),
|
| 117 |
+
prev: state.ctx};
|
| 118 |
+
}
|
| 119 |
+
function setFlag(state, flag) {
|
| 120 |
+
var ctx = state.ctx
|
| 121 |
+
state.ctx = {type: ctx.type,
|
| 122 |
+
indent: ctx.indent,
|
| 123 |
+
flags: ctx.flags | flag,
|
| 124 |
+
column: ctx.column,
|
| 125 |
+
prev: ctx.prev}
|
| 126 |
+
}
|
| 127 |
+
function pop(state) {
|
| 128 |
+
state.indent = state.ctx.indent;
|
| 129 |
+
state.ctx = state.ctx.prev;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
const r = {
|
| 133 |
+
name: "r",
|
| 134 |
+
startState: function(indentUnit) {
|
| 135 |
+
return {tokenize: tokenBase,
|
| 136 |
+
ctx: {type: "top",
|
| 137 |
+
indent: -indentUnit,
|
| 138 |
+
flags: ALIGN_NO},
|
| 139 |
+
indent: 0,
|
| 140 |
+
afterIdent: false};
|
| 141 |
+
},
|
| 142 |
+
|
| 143 |
+
token: function(stream, state) {
|
| 144 |
+
if (stream.sol()) {
|
| 145 |
+
if ((state.ctx.flags & 3) == 0) state.ctx.flags |= ALIGN_NO
|
| 146 |
+
if (state.ctx.flags & BRACELESS) pop(state)
|
| 147 |
+
state.indent = stream.indentation();
|
| 148 |
+
}
|
| 149 |
+
if (stream.eatSpace()) return null;
|
| 150 |
+
var style = state.tokenize(stream, state);
|
| 151 |
+
if (style != "comment" && (state.ctx.flags & ALIGN_NO) == 0) setFlag(state, ALIGN_YES)
|
| 152 |
+
|
| 153 |
+
if ((curPunc == ";" || curPunc == "{" || curPunc == "}") && state.ctx.type == "block") pop(state);
|
| 154 |
+
if (curPunc == "{") push(state, "}", stream);
|
| 155 |
+
else if (curPunc == "(") {
|
| 156 |
+
push(state, ")", stream);
|
| 157 |
+
if (state.afterIdent) state.ctx.argList = true;
|
| 158 |
+
}
|
| 159 |
+
else if (curPunc == "[") push(state, "]", stream);
|
| 160 |
+
else if (curPunc == "block") push(state, "block", stream);
|
| 161 |
+
else if (curPunc == state.ctx.type) pop(state);
|
| 162 |
+
else if (state.ctx.type == "block" && style != "comment") setFlag(state, BRACELESS)
|
| 163 |
+
state.afterIdent = style == "variable" || style == "keyword";
|
| 164 |
+
return style;
|
| 165 |
+
},
|
| 166 |
+
|
| 167 |
+
indent: function(state, textAfter, cx) {
|
| 168 |
+
if (state.tokenize != tokenBase) return 0;
|
| 169 |
+
var firstChar = textAfter && textAfter.charAt(0), ctx = state.ctx,
|
| 170 |
+
closing = firstChar == ctx.type;
|
| 171 |
+
if (ctx.flags & BRACELESS) ctx = ctx.prev
|
| 172 |
+
if (ctx.type == "block") return ctx.indent + (firstChar == "{" ? 0 : cx.unit);
|
| 173 |
+
else if (ctx.flags & ALIGN_YES) return ctx.column + (closing ? 0 : 1);
|
| 174 |
+
else return ctx.indent + (closing ? 0 : cx.unit);
|
| 175 |
+
},
|
| 176 |
+
|
| 177 |
+
languageData: {
|
| 178 |
+
wordChars: ".",
|
| 179 |
+
commentTokens: {line: "#"},
|
| 180 |
+
autocomplete: commonAtoms.concat(commonBuiltins, commonKeywords)
|
| 181 |
+
}
|
| 182 |
+
};
|
| 183 |
+
|
| 184 |
+
|
| 185 |
+
/***/ })
|
| 186 |
+
|
| 187 |
+
}]);
|
| 188 |
+
//# sourceMappingURL=2188.8a4dbc0baaccf031e5c4.js.map?v=8a4dbc0baaccf031e5c4
|
vlmpy310/lib/python3.10/site-packages/notebook/static/2343.76b08c834d1f3e6c0655.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"2343.76b08c834d1f3e6c0655.js?v=76b08c834d1f3e6c0655","mappings":";;;;;;;;;;;AAA2C;;AAE3C;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEO,mBAAmB,oEAAU;AACpC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB;AACpB;AACA,CAAC;;;;;;;;;;;;ACpMM;AACP;AACA,kBAAkB,kCAAkC;AACpD;AACA;AACA,oBAAoB,iBAAiB;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc;AACd,KAAK;AACL;AACA,eAAe;AACf;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB,gBAAgB;AAClC;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,oBAAoB,qBAAqB;AACzC;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,oBAAoB;AAC9C;AACA,kCAAkC,2CAA2C;AAC7E;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,iBAAiB;AACjB,sBAAsB,kBAAkB;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/dockerfile.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/simple-mode.js"],"sourcesContent":["import {simpleMode} from \"./simple-mode.js\"\n\nvar from = \"from\";\nvar fromRegex = new RegExp(\"^(\\\\s*)\\\\b(\" + from + \")\\\\b\", \"i\");\n\nvar shells = [\"run\", \"cmd\", \"entrypoint\", \"shell\"];\nvar shellsAsArrayRegex = new RegExp(\"^(\\\\s*)(\" + shells.join('|') + \")(\\\\s+\\\\[)\", \"i\");\n\nvar expose = \"expose\";\nvar exposeRegex = new RegExp(\"^(\\\\s*)(\" + expose + \")(\\\\s+)\", \"i\");\n\nvar others = [\n \"arg\", \"from\", \"maintainer\", \"label\", \"env\",\n \"add\", \"copy\", \"volume\", \"user\",\n \"workdir\", \"onbuild\", \"stopsignal\", \"healthcheck\", \"shell\"\n];\n\n// Collect all Dockerfile directives\nvar instructions = [from, expose].concat(shells).concat(others),\n instructionRegex = \"(\" + instructions.join('|') + \")\",\n instructionOnlyLine = new RegExp(\"^(\\\\s*)\" + instructionRegex + \"(\\\\s*)(#.*)?$\", \"i\"),\n instructionWithArguments = new RegExp(\"^(\\\\s*)\" + instructionRegex + \"(\\\\s+)\", \"i\");\n\nexport const dockerFile = simpleMode({\n start: [\n // Block comment: This is a line starting with a comment\n {\n regex: /^\\s*#.*$/,\n sol: true,\n token: \"comment\"\n },\n {\n regex: fromRegex,\n token: [null, \"keyword\"],\n sol: true,\n next: \"from\"\n },\n // Highlight an instruction without any arguments (for convenience)\n {\n regex: instructionOnlyLine,\n token: [null, \"keyword\", null, \"error\"],\n sol: true\n },\n {\n regex: shellsAsArrayRegex,\n token: [null, \"keyword\", null],\n sol: true,\n next: \"array\"\n },\n {\n regex: exposeRegex,\n token: [null, \"keyword\", null],\n sol: true,\n next: \"expose\"\n },\n // Highlight an instruction followed by arguments\n {\n regex: instructionWithArguments,\n token: [null, \"keyword\", null],\n sol: true,\n next: \"arguments\"\n },\n {\n regex: /./,\n token: null\n }\n ],\n from: [\n {\n regex: /\\s*$/,\n token: null,\n next: \"start\"\n },\n {\n // Line comment without instruction arguments is an error\n regex: /(\\s*)(#.*)$/,\n token: [null, \"error\"],\n next: \"start\"\n },\n {\n regex: /(\\s*\\S+\\s+)(as)/i,\n token: [null, \"keyword\"],\n next: \"start\"\n },\n // Fail safe return to start\n {\n token: null,\n next: \"start\"\n }\n ],\n single: [\n {\n regex: /(?:[^\\\\']|\\\\.)/,\n token: \"string\"\n },\n {\n regex: /'/,\n token: \"string\",\n pop: true\n }\n ],\n double: [\n {\n regex: /(?:[^\\\\\"]|\\\\.)/,\n token: \"string\"\n },\n {\n regex: /\"/,\n token: \"string\",\n pop: true\n }\n ],\n array: [\n {\n regex: /\\]/,\n token: null,\n next: \"start\"\n },\n {\n regex: /\"(?:[^\\\\\"]|\\\\.)*\"?/,\n token: \"string\"\n }\n ],\n expose: [\n {\n regex: /\\d+$/,\n token: \"number\",\n next: \"start\"\n },\n {\n regex: /[^\\d]+$/,\n token: null,\n next: \"start\"\n },\n {\n regex: /\\d+/,\n token: \"number\"\n },\n {\n regex: /[^\\d]+/,\n token: null\n },\n // Fail safe return to start\n {\n token: null,\n next: \"start\"\n }\n ],\n arguments: [\n {\n regex: /^\\s*#.*$/,\n sol: true,\n token: \"comment\"\n },\n {\n regex: /\"(?:[^\\\\\"]|\\\\.)*\"?$/,\n token: \"string\",\n next: \"start\"\n },\n {\n regex: /\"/,\n token: \"string\",\n push: \"double\"\n },\n {\n regex: /'(?:[^\\\\']|\\\\.)*'?$/,\n token: \"string\",\n next: \"start\"\n },\n {\n regex: /'/,\n token: \"string\",\n push: \"single\"\n },\n {\n regex: /[^#\"']+[\\\\`]$/,\n token: null\n },\n {\n regex: /[^#\"']+$/,\n token: null,\n next: \"start\"\n },\n {\n regex: /[^#\"']+/,\n token: null\n },\n // Fail safe return to start\n {\n token: null,\n next: \"start\"\n }\n ],\n languageData: {\n commentTokens: {line: \"#\"}\n }\n});\n\n","export function simpleMode(states) {\n ensureState(states, \"start\");\n var states_ = {}, meta = states.languageData || {}, hasIndentation = false;\n for (var state in states) if (state != meta && states.hasOwnProperty(state)) {\n var list = states_[state] = [], orig = states[state];\n for (var i = 0; i < orig.length; i++) {\n var data = orig[i];\n list.push(new Rule(data, states));\n if (data.indent || data.dedent) hasIndentation = true;\n }\n }\n return {\n name: meta.name,\n startState: function() {\n return {state: \"start\", pending: null, indent: hasIndentation ? [] : null};\n },\n copyState: function(state) {\n var s = {state: state.state, pending: state.pending, indent: state.indent && state.indent.slice(0)};\n if (state.stack)\n s.stack = state.stack.slice(0);\n return s;\n },\n token: tokenFunction(states_),\n indent: indentFunction(states_, meta),\n languageData: meta\n }\n};\n\nfunction ensureState(states, name) {\n if (!states.hasOwnProperty(name))\n throw new Error(\"Undefined state \" + name + \" in simple mode\");\n}\n\nfunction toRegex(val, caret) {\n if (!val) return /(?:)/;\n var flags = \"\";\n if (val instanceof RegExp) {\n if (val.ignoreCase) flags = \"i\";\n val = val.source;\n } else {\n val = String(val);\n }\n return new RegExp((caret === false ? \"\" : \"^\") + \"(?:\" + val + \")\", flags);\n}\n\nfunction asToken(val) {\n if (!val) return null;\n if (val.apply) return val\n if (typeof val == \"string\") return val.replace(/\\./g, \" \");\n var result = [];\n for (var i = 0; i < val.length; i++)\n result.push(val[i] && val[i].replace(/\\./g, \" \"));\n return result;\n}\n\nfunction Rule(data, states) {\n if (data.next || data.push) ensureState(states, data.next || data.push);\n this.regex = toRegex(data.regex);\n this.token = asToken(data.token);\n this.data = data;\n}\n\nfunction tokenFunction(states) {\n return function(stream, state) {\n if (state.pending) {\n var pend = state.pending.shift();\n if (state.pending.length == 0) state.pending = null;\n stream.pos += pend.text.length;\n return pend.token;\n }\n\n var curState = states[state.state];\n for (var i = 0; i < curState.length; i++) {\n var rule = curState[i];\n var matches = (!rule.data.sol || stream.sol()) && stream.match(rule.regex);\n if (matches) {\n if (rule.data.next) {\n state.state = rule.data.next;\n } else if (rule.data.push) {\n (state.stack || (state.stack = [])).push(state.state);\n state.state = rule.data.push;\n } else if (rule.data.pop && state.stack && state.stack.length) {\n state.state = state.stack.pop();\n }\n\n if (rule.data.indent)\n state.indent.push(stream.indentation() + stream.indentUnit);\n if (rule.data.dedent)\n state.indent.pop();\n var token = rule.token\n if (token && token.apply) token = token(matches)\n if (matches.length > 2 && rule.token && typeof rule.token != \"string\") {\n state.pending = [];\n for (var j = 2; j < matches.length; j++)\n if (matches[j])\n state.pending.push({text: matches[j], token: rule.token[j - 1]});\n stream.backUp(matches[0].length - (matches[1] ? matches[1].length : 0));\n return token[0];\n } else if (token && token.join) {\n return token[0];\n } else {\n return token;\n }\n }\n }\n stream.next();\n return null;\n };\n}\n\nfunction indentFunction(states, meta) {\n return function(state, textAfter) {\n if (state.indent == null || meta.dontIndentStates && meta.doneIndentState.indexOf(state.state) > -1)\n return null\n\n var pos = state.indent.length - 1, rules = states[state.state];\n scan: for (;;) {\n for (var i = 0; i < rules.length; i++) {\n var rule = rules[i];\n if (rule.data.dedent && rule.data.dedentIfLineStart !== false) {\n var m = rule.regex.exec(textAfter);\n if (m && m[0]) {\n pos--;\n if (rule.next || rule.push) rules = states[rule.next || rule.push];\n textAfter = textAfter.slice(m[0].length);\n continue scan;\n }\n }\n }\n break;\n }\n return pos < 0 ? 0 : state.indent[pos];\n };\n}\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/2520.ade7434a32fdecec9d43.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"2520.ade7434a32fdecec9d43.js?v=ade7434a32fdecec9d43","mappings":";;;;;;;;;;;;;;;;AAAqS;AAC5P;AACtB;AACJ;AACkB;AACd;AACH;AACc;AACF;AACZ;AACc;AAC9B;AACA;AACA,sBAAsB,gBAAgB,KAAK;AAC3C;AACA;AACA,GAAG;AACH;AACA;AACA,KAAK;AACL,UAAU;AACV,gBAAgB,8yBAA8yB;AAC9zB,kBAAkB,qlBAAqlB;AACvmB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL,cAAc,uDAAuD,IAAI,QAAQ,IAAI,uDAAuD,IAAI,uDAAuD,mBAAmB,OAAO,wDAAwD,WAAW,IAAI,WAAW,gBAAgB,iSAAiS,qBAAqB,kCAAkC,gBAAgB,+QAA+Q,uDAAuD,aAAa,IAAI,aAAa,IAAI,aAAa,sCAAsC,qIAAqI,IAAI,qIAAqI,IAAI,qIAAqI,IAAI,qIAAqI,IAAI,qIAAqI,IAAI,qIAAqI,IAAI,iJAAiJ,qVAAqV,iJAAiJ,qBAAqB,iJAAiJ,qBAAqB,oIAAoI,qBAAqB,oIAAoI,qBAAqB,oIAAoI,qBAAqB,oIAAoI,KAAK,aAAa,wFAAwF,qIAAqI,qBAAqB,qIAAqI,KAAK,aAAa,oBAAoB,oIAAoI,qBAAqB,oIAAoI;AACz8H,sBAAsB,sBAAsB;AAC5C;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,0BAA0B;AAC1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C;AAC9C;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,kBAAkB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA,gBAAgB;AAChB;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,WAAW;AACX;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP,4DAA4D;AAC5D;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA,OAAO;AACP,iBAAiB,0BAA0B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP,0BAA0B,qBAAqB,iNAAiN,gBAAgB,eAAe,ijBAAijB;AACh1B,oBAAoB,aAAa,mCAAmC,eAAe,mCAAmC,mBAAmB,uCAAuC,2BAA2B,uCAAuC,iBAAiB,kCAAkC,iBAAiB,kCAAkC,aAAa,kCAAkC,iBAAiB,uCAAuC,cAAc,uCAAuC,eAAe;AACngB;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,8BAA8B,uDAAiB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAA0B,mDAAa;AACvC,yBAAyB,mDAAa;AACtC,2BAA2B,mDAAa;AACxC,4BAA4B,mDAAa;AACzC,8BAA8B,mDAAa;AAC3C,gCAAgC,mDAAa;AAC7C,gCAAgC,mDAAa;AAC7C,iCAAiC,mDAAa;AAC9C,iCAAiC,mDAAa;AAC9C,oCAAoC,mDAAa;AACjD,qCAAqC,mDAAa;AAClD,+BAA+B,mDAAa;AAC5C,iCAAiC,mDAAa;AAC9C,0BAA0B,mDAAa;AACvC,4BAA4B,mDAAa;AACzC,4BAA4B,mDAAa;AACzC,gDAAgD,mDAAa;AAC7D,gDAAgD,mDAAa;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,mDAAG;AACP;AACA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA,IAAI,mDAAG;AACP,oBAAoB;AACpB;AACA;AACA,IAAI,mDAAG;AACP,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,4BAA4B;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA,YAAY,gBAAgB;AAC5B,YAAY,mEAAmE;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,gBAAgB;AAC5B,YAAY,2DAA2D;AACvE,kBAAkB,0DAAW;AAC7B,kBAAkB,0DAAW;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,YAAY,gBAAgB;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,uDAAS;AACxB;AACA,SAAS,uDAAY;AACrB;AACA;AACA;AACA,4BAA4B,4CAA4C;AACxE;AACA;AACA,4BAA4B,4CAA4C;AACxE;AACA;AACA,4BAA4B,4CAA4C;AACxE;AACA;AACA,4BAA4B,4CAA4C;AACxE;AACA;AACA,4BAA4B,4CAA4C;AACxE;AACA;AACA,4BAA4B,6CAA6C;AACzE;AACA;AACA,4BAA4B,2CAA2C;AACvE;AACA;AACA,4BAA4B,8CAA8C;AAC1E;AACA;AACA,+BAA+B,yCAAyC;AACxE;AACA;AACA,8BAA8B,mBAAmB;AACjD;AACA;AACA,8BAA8B,qBAAqB;AACnD;AACA;AACA,kBAAkB,uDAAS;AAC3B,UAAU,qDAAqD;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,4BAA4B,WAAW,uDAAe,IAAI;AAC1D;AACA;AACA;AACA;AACA,EAAE,uDAAO;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,aAAa;AACb,iBAAiB;AACjB,iBAAiB;AACjB,mBAAmB;AACnB,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,OAAO,IAAI,OAAO,WAAW,mBAAmB;AACxE;AACA,eAAe,uDAAS;AACxB,EAAE,mDAAG;AACL;AACA;AACA;AACA,qBAAqB,oDAAM;AAC3B;AACA,6CAA6C,oDAAM,mDAAmD,oDAAM;AAC5G,kCAAkC,GAAG;AACrC;AACA;AACA;AACA,EAAE,uDAAgB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGE","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/mermaid/dist/quadrantDiagram-d70906b3.js"],"sourcesContent":["import { D as getThemeVariables, A as defaultConfig, l as log, s as setAccTitle, g as getAccTitle, q as setDiagramTitle, r as getDiagramTitle, a as getAccDescription, b as setAccDescription, c as getConfig, t as clear$1, d as sanitizeText, i as configureSvgSize } from \"./mermaid-04fb0060.js\";\nimport { scaleLinear, select } from \"d3\";\nimport \"ts-dedent\";\nimport \"dayjs\";\nimport \"@braintree/sanitize-url\";\nimport \"dompurify\";\nimport \"khroma\";\nimport \"lodash-es/memoize.js\";\nimport \"lodash-es/merge.js\";\nimport \"stylis\";\nimport \"lodash-es/isEmpty.js\";\nvar parser = function() {\n var o = function(k, v, o2, l) {\n for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)\n ;\n return o2;\n }, $V0 = [1, 3], $V1 = [1, 4], $V2 = [1, 5], $V3 = [1, 6], $V4 = [1, 7], $V5 = [1, 5, 13, 15, 17, 19, 20, 25, 27, 28, 29, 30, 31, 32, 33, 34, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], $V6 = [1, 5, 6, 13, 15, 17, 19, 20, 25, 27, 28, 29, 30, 31, 32, 33, 34, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], $V7 = [32, 33, 34], $V8 = [2, 7], $V9 = [1, 13], $Va = [1, 17], $Vb = [1, 18], $Vc = [1, 19], $Vd = [1, 20], $Ve = [1, 21], $Vf = [1, 22], $Vg = [1, 23], $Vh = [1, 24], $Vi = [1, 25], $Vj = [1, 26], $Vk = [1, 27], $Vl = [1, 30], $Vm = [1, 31], $Vn = [1, 32], $Vo = [1, 33], $Vp = [1, 34], $Vq = [1, 35], $Vr = [1, 36], $Vs = [1, 37], $Vt = [1, 38], $Vu = [1, 39], $Vv = [1, 40], $Vw = [1, 41], $Vx = [1, 42], $Vy = [1, 57], $Vz = [1, 58], $VA = [5, 22, 26, 32, 33, 34, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51];\n var parser2 = {\n trace: function trace() {\n },\n yy: {},\n symbols_: { \"error\": 2, \"start\": 3, \"eol\": 4, \"SPACE\": 5, \"QUADRANT\": 6, \"document\": 7, \"line\": 8, \"statement\": 9, \"axisDetails\": 10, \"quadrantDetails\": 11, \"points\": 12, \"title\": 13, \"title_value\": 14, \"acc_title\": 15, \"acc_title_value\": 16, \"acc_descr\": 17, \"acc_descr_value\": 18, \"acc_descr_multiline_value\": 19, \"section\": 20, \"text\": 21, \"point_start\": 22, \"point_x\": 23, \"point_y\": 24, \"X-AXIS\": 25, \"AXIS-TEXT-DELIMITER\": 26, \"Y-AXIS\": 27, \"QUADRANT_1\": 28, \"QUADRANT_2\": 29, \"QUADRANT_3\": 30, \"QUADRANT_4\": 31, \"NEWLINE\": 32, \"SEMI\": 33, \"EOF\": 34, \"alphaNumToken\": 35, \"textNoTagsToken\": 36, \"STR\": 37, \"MD_STR\": 38, \"alphaNum\": 39, \"PUNCTUATION\": 40, \"AMP\": 41, \"NUM\": 42, \"ALPHA\": 43, \"COMMA\": 44, \"PLUS\": 45, \"EQUALS\": 46, \"MULT\": 47, \"DOT\": 48, \"BRKT\": 49, \"UNDERSCORE\": 50, \"MINUS\": 51, \"$accept\": 0, \"$end\": 1 },\n terminals_: { 2: \"error\", 5: \"SPACE\", 6: \"QUADRANT\", 13: \"title\", 14: \"title_value\", 15: \"acc_title\", 16: \"acc_title_value\", 17: \"acc_descr\", 18: \"acc_descr_value\", 19: \"acc_descr_multiline_value\", 20: \"section\", 22: \"point_start\", 23: \"point_x\", 24: \"point_y\", 25: \"X-AXIS\", 26: \"AXIS-TEXT-DELIMITER\", 27: \"Y-AXIS\", 28: \"QUADRANT_1\", 29: \"QUADRANT_2\", 30: \"QUADRANT_3\", 31: \"QUADRANT_4\", 32: \"NEWLINE\", 33: \"SEMI\", 34: \"EOF\", 37: \"STR\", 38: \"MD_STR\", 40: \"PUNCTUATION\", 41: \"AMP\", 42: \"NUM\", 43: \"ALPHA\", 44: \"COMMA\", 45: \"PLUS\", 46: \"EQUALS\", 47: \"MULT\", 48: \"DOT\", 49: \"BRKT\", 50: \"UNDERSCORE\", 51: \"MINUS\" },\n productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [9, 0], [9, 2], [9, 1], [9, 1], [9, 1], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [12, 4], [10, 4], [10, 3], [10, 2], [10, 4], [10, 3], [10, 2], [11, 2], [11, 2], [11, 2], [11, 2], [4, 1], [4, 1], [4, 1], [21, 1], [21, 2], [21, 1], [21, 1], [39, 1], [39, 2], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [35, 1], [36, 1], [36, 1], [36, 1]],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {\n var $0 = $$.length - 1;\n switch (yystate) {\n case 12:\n this.$ = $$[$0].trim();\n yy.setDiagramTitle(this.$);\n break;\n case 13:\n this.$ = $$[$0].trim();\n yy.setAccTitle(this.$);\n break;\n case 14:\n case 15:\n this.$ = $$[$0].trim();\n yy.setAccDescription(this.$);\n break;\n case 16:\n yy.addSection($$[$0].substr(8));\n this.$ = $$[$0].substr(8);\n break;\n case 17:\n yy.addPoint($$[$0 - 3], $$[$0 - 1], $$[$0]);\n break;\n case 18:\n yy.setXAxisLeftText($$[$0 - 2]);\n yy.setXAxisRightText($$[$0]);\n break;\n case 19:\n $$[$0 - 1].text += \" ⟶ \";\n yy.setXAxisLeftText($$[$0 - 1]);\n break;\n case 20:\n yy.setXAxisLeftText($$[$0]);\n break;\n case 21:\n yy.setYAxisBottomText($$[$0 - 2]);\n yy.setYAxisTopText($$[$0]);\n break;\n case 22:\n $$[$0 - 1].text += \" ⟶ \";\n yy.setYAxisBottomText($$[$0 - 1]);\n break;\n case 23:\n yy.setYAxisBottomText($$[$0]);\n break;\n case 24:\n yy.setQuadrant1Text($$[$0]);\n break;\n case 25:\n yy.setQuadrant2Text($$[$0]);\n break;\n case 26:\n yy.setQuadrant3Text($$[$0]);\n break;\n case 27:\n yy.setQuadrant4Text($$[$0]);\n break;\n case 31:\n this.$ = { text: $$[$0], type: \"text\" };\n break;\n case 32:\n this.$ = { text: $$[$0 - 1].text + \"\" + $$[$0], type: $$[$0 - 1].type };\n break;\n case 33:\n this.$ = { text: $$[$0], type: \"text\" };\n break;\n case 34:\n this.$ = { text: $$[$0], type: \"markdown\" };\n break;\n case 35:\n this.$ = $$[$0];\n break;\n case 36:\n this.$ = $$[$0 - 1] + \"\" + $$[$0];\n break;\n }\n },\n table: [{ 3: 1, 4: 2, 5: $V0, 6: $V1, 32: $V2, 33: $V3, 34: $V4 }, { 1: [3] }, { 3: 8, 4: 2, 5: $V0, 6: $V1, 32: $V2, 33: $V3, 34: $V4 }, { 3: 9, 4: 2, 5: $V0, 6: $V1, 32: $V2, 33: $V3, 34: $V4 }, o($V5, [2, 4], { 7: 10 }), o($V6, [2, 28]), o($V6, [2, 29]), o($V6, [2, 30]), { 1: [2, 1] }, { 1: [2, 2] }, o($V7, $V8, { 8: 11, 9: 12, 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 1: [2, 3], 5: $V9, 13: $Va, 15: $Vb, 17: $Vc, 19: $Vd, 20: $Ve, 25: $Vf, 27: $Vg, 28: $Vh, 29: $Vi, 30: $Vj, 31: $Vk, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), o($V5, [2, 5]), { 4: 43, 32: $V2, 33: $V3, 34: $V4 }, o($V7, $V8, { 10: 14, 11: 15, 12: 16, 21: 28, 35: 29, 9: 44, 5: $V9, 13: $Va, 15: $Vb, 17: $Vc, 19: $Vd, 20: $Ve, 25: $Vf, 27: $Vg, 28: $Vh, 29: $Vi, 30: $Vj, 31: $Vk, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), o($V7, [2, 9]), o($V7, [2, 10]), o($V7, [2, 11]), { 14: [1, 45] }, { 16: [1, 46] }, { 18: [1, 47] }, o($V7, [2, 15]), o($V7, [2, 16]), { 21: 48, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 49, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 50, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 51, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 52, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 21: 53, 35: 29, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }, { 5: $Vy, 22: [1, 54], 35: 56, 36: 55, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }, o($VA, [2, 31]), o($VA, [2, 33]), o($VA, [2, 34]), o($VA, [2, 37]), o($VA, [2, 38]), o($VA, [2, 39]), o($VA, [2, 40]), o($VA, [2, 41]), o($VA, [2, 42]), o($VA, [2, 43]), o($VA, [2, 44]), o($VA, [2, 45]), o($VA, [2, 46]), o($VA, [2, 47]), o($V5, [2, 6]), o($V7, [2, 8]), o($V7, [2, 12]), o($V7, [2, 13]), o($V7, [2, 14]), o($V7, [2, 20], { 36: 55, 35: 56, 5: $Vy, 26: [1, 59], 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 23], { 36: 55, 35: 56, 5: $Vy, 26: [1, 60], 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 24], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 25], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 26], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 27], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), { 23: [1, 61] }, o($VA, [2, 32]), o($VA, [2, 48]), o($VA, [2, 49]), o($VA, [2, 50]), o($V7, [2, 19], { 35: 29, 21: 62, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), o($V7, [2, 22], { 35: 29, 21: 63, 37: $Vl, 38: $Vm, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx }), { 24: [1, 64] }, o($V7, [2, 18], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 21], { 36: 55, 35: 56, 5: $Vy, 40: $Vn, 41: $Vo, 42: $Vp, 43: $Vq, 44: $Vr, 45: $Vs, 46: $Vt, 47: $Vu, 48: $Vv, 49: $Vw, 50: $Vx, 51: $Vz }), o($V7, [2, 17])],\n defaultActions: { 8: [2, 1], 9: [2, 2] },\n parseError: function parseError(str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n },\n parse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = \"\", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer2 = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer2.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer2;\n sharedState.yy.parser = this;\n if (typeof lexer2.yylloc == \"undefined\") {\n lexer2.yylloc = {};\n }\n var yyloc = lexer2.yylloc;\n lstack.push(yyloc);\n var ranges = lexer2.options && lexer2.options.ranges;\n if (typeof sharedState.yy.parseError === \"function\") {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer2.lex() || EOF;\n if (typeof token !== \"number\") {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, state, action, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == \"undefined\") {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === \"undefined\" || !action.length || !action[0]) {\n var errStr = \"\";\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push(\"'\" + this.terminals_[p] + \"'\");\n }\n }\n if (lexer2.showPosition) {\n errStr = \"Parse error on line \" + (yylineno + 1) + \":\\n\" + lexer2.showPosition() + \"\\nExpecting \" + expected.join(\", \") + \", got '\" + (this.terminals_[symbol] || symbol) + \"'\";\n } else {\n errStr = \"Parse error on line \" + (yylineno + 1) + \": Unexpected \" + (symbol == EOF ? \"end of input\" : \"'\" + (this.terminals_[symbol] || symbol) + \"'\");\n }\n this.parseError(errStr, {\n text: lexer2.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer2.yylineno,\n loc: yyloc,\n expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error(\"Parse Error: multiple actions possible at state: \" + state + \", token: \" + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer2.yytext);\n lstack.push(lexer2.yylloc);\n stack.push(action[1]);\n symbol = null;\n {\n yyleng = lexer2.yyleng;\n yytext = lexer2.yytext;\n yylineno = lexer2.yylineno;\n yyloc = lexer2.yylloc;\n }\n break;\n case 2:\n len = this.productions_[action[1]][1];\n yyval.$ = vstack[vstack.length - len];\n yyval._$ = {\n first_line: lstack[lstack.length - (len || 1)].first_line,\n last_line: lstack[lstack.length - 1].last_line,\n first_column: lstack[lstack.length - (len || 1)].first_column,\n last_column: lstack[lstack.length - 1].last_column\n };\n if (ranges) {\n yyval._$.range = [\n lstack[lstack.length - (len || 1)].range[0],\n lstack[lstack.length - 1].range[1]\n ];\n }\n r = this.performAction.apply(yyval, [\n yytext,\n yyleng,\n yylineno,\n sharedState.yy,\n action[1],\n vstack,\n lstack\n ].concat(args));\n if (typeof r !== \"undefined\") {\n return r;\n }\n if (len) {\n stack = stack.slice(0, -1 * len * 2);\n vstack = vstack.slice(0, -1 * len);\n lstack = lstack.slice(0, -1 * len);\n }\n stack.push(this.productions_[action[1]][0]);\n vstack.push(yyval.$);\n lstack.push(yyval._$);\n newState = table[stack[stack.length - 2]][stack[stack.length - 1]];\n stack.push(newState);\n break;\n case 3:\n return true;\n }\n }\n return true;\n }\n };\n var lexer = function() {\n var lexer2 = {\n EOF: 1,\n parseError: function parseError(str, hash) {\n if (this.yy.parser) {\n this.yy.parser.parseError(str, hash);\n } else {\n throw new Error(str);\n }\n },\n // resets the lexer, sets new input\n setInput: function(input, yy) {\n this.yy = yy || this.yy || {};\n this._input = input;\n this._more = this._backtrack = this.done = false;\n this.yylineno = this.yyleng = 0;\n this.yytext = this.matched = this.match = \"\";\n this.conditionStack = [\"INITIAL\"];\n this.yylloc = {\n first_line: 1,\n first_column: 0,\n last_line: 1,\n last_column: 0\n };\n if (this.options.ranges) {\n this.yylloc.range = [0, 0];\n }\n this.offset = 0;\n return this;\n },\n // consumes and returns one char from the input\n input: function() {\n var ch = this._input[0];\n this.yytext += ch;\n this.yyleng++;\n this.offset++;\n this.match += ch;\n this.matched += ch;\n var lines = ch.match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno++;\n this.yylloc.last_line++;\n } else {\n this.yylloc.last_column++;\n }\n if (this.options.ranges) {\n this.yylloc.range[1]++;\n }\n this._input = this._input.slice(1);\n return ch;\n },\n // unshifts one char (or a string) into the input\n unput: function(ch) {\n var len = ch.length;\n var lines = ch.split(/(?:\\r\\n?|\\n)/g);\n this._input = ch + this._input;\n this.yytext = this.yytext.substr(0, this.yytext.length - len);\n this.offset -= len;\n var oldLines = this.match.split(/(?:\\r\\n?|\\n)/g);\n this.match = this.match.substr(0, this.match.length - 1);\n this.matched = this.matched.substr(0, this.matched.length - 1);\n if (lines.length - 1) {\n this.yylineno -= lines.length - 1;\n }\n var r = this.yylloc.range;\n this.yylloc = {\n first_line: this.yylloc.first_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.first_column,\n last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len\n };\n if (this.options.ranges) {\n this.yylloc.range = [r[0], r[0] + this.yyleng - len];\n }\n this.yyleng = this.yytext.length;\n return this;\n },\n // When called from action, caches matched text and appends it on next action\n more: function() {\n this._more = true;\n return this;\n },\n // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.\n reject: function() {\n if (this.options.backtrack_lexer) {\n this._backtrack = true;\n } else {\n return this.parseError(\"Lexical error on line \" + (this.yylineno + 1) + \". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\n\" + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n return this;\n },\n // retain first n characters of the match\n less: function(n) {\n this.unput(this.match.slice(n));\n },\n // displays already matched input, i.e. for error messages\n pastInput: function() {\n var past = this.matched.substr(0, this.matched.length - this.match.length);\n return (past.length > 20 ? \"...\" : \"\") + past.substr(-20).replace(/\\n/g, \"\");\n },\n // displays upcoming input, i.e. for error messages\n upcomingInput: function() {\n var next = this.match;\n if (next.length < 20) {\n next += this._input.substr(0, 20 - next.length);\n }\n return (next.substr(0, 20) + (next.length > 20 ? \"...\" : \"\")).replace(/\\n/g, \"\");\n },\n // displays the character position where the lexing error occurred, i.e. for error messages\n showPosition: function() {\n var pre = this.pastInput();\n var c = new Array(pre.length + 1).join(\"-\");\n return pre + this.upcomingInput() + \"\\n\" + c + \"^\";\n },\n // test the lexed token: return FALSE when not a match, otherwise return token\n test_match: function(match, indexed_rule) {\n var token, lines, backup;\n if (this.options.backtrack_lexer) {\n backup = {\n yylineno: this.yylineno,\n yylloc: {\n first_line: this.yylloc.first_line,\n last_line: this.last_line,\n first_column: this.yylloc.first_column,\n last_column: this.yylloc.last_column\n },\n yytext: this.yytext,\n match: this.match,\n matches: this.matches,\n matched: this.matched,\n yyleng: this.yyleng,\n offset: this.offset,\n _more: this._more,\n _input: this._input,\n yy: this.yy,\n conditionStack: this.conditionStack.slice(0),\n done: this.done\n };\n if (this.options.ranges) {\n backup.yylloc.range = this.yylloc.range.slice(0);\n }\n }\n lines = match[0].match(/(?:\\r\\n?|\\n).*/g);\n if (lines) {\n this.yylineno += lines.length;\n }\n this.yylloc = {\n first_line: this.yylloc.last_line,\n last_line: this.yylineno + 1,\n first_column: this.yylloc.last_column,\n last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\\r?\\n?/)[0].length : this.yylloc.last_column + match[0].length\n };\n this.yytext += match[0];\n this.match += match[0];\n this.matches = match;\n this.yyleng = this.yytext.length;\n if (this.options.ranges) {\n this.yylloc.range = [this.offset, this.offset += this.yyleng];\n }\n this._more = false;\n this._backtrack = false;\n this._input = this._input.slice(match[0].length);\n this.matched += match[0];\n token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);\n if (this.done && this._input) {\n this.done = false;\n }\n if (token) {\n return token;\n } else if (this._backtrack) {\n for (var k in backup) {\n this[k] = backup[k];\n }\n return false;\n }\n return false;\n },\n // return next match in input\n next: function() {\n if (this.done) {\n return this.EOF;\n }\n if (!this._input) {\n this.done = true;\n }\n var token, match, tempMatch, index;\n if (!this._more) {\n this.yytext = \"\";\n this.match = \"\";\n }\n var rules = this._currentRules();\n for (var i = 0; i < rules.length; i++) {\n tempMatch = this._input.match(this.rules[rules[i]]);\n if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {\n match = tempMatch;\n index = i;\n if (this.options.backtrack_lexer) {\n token = this.test_match(tempMatch, rules[i]);\n if (token !== false) {\n return token;\n } else if (this._backtrack) {\n match = false;\n continue;\n } else {\n return false;\n }\n } else if (!this.options.flex) {\n break;\n }\n }\n }\n if (match) {\n token = this.test_match(match, rules[index]);\n if (token !== false) {\n return token;\n }\n return false;\n }\n if (this._input === \"\") {\n return this.EOF;\n } else {\n return this.parseError(\"Lexical error on line \" + (this.yylineno + 1) + \". Unrecognized text.\\n\" + this.showPosition(), {\n text: \"\",\n token: null,\n line: this.yylineno\n });\n }\n },\n // return next match that has a token\n lex: function lex() {\n var r = this.next();\n if (r) {\n return r;\n } else {\n return this.lex();\n }\n },\n // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)\n begin: function begin(condition) {\n this.conditionStack.push(condition);\n },\n // pop the previously active lexer condition state off the condition stack\n popState: function popState() {\n var n = this.conditionStack.length - 1;\n if (n > 0) {\n return this.conditionStack.pop();\n } else {\n return this.conditionStack[0];\n }\n },\n // produce the lexer rule set which is active for the currently active lexer condition state\n _currentRules: function _currentRules() {\n if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {\n return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;\n } else {\n return this.conditions[\"INITIAL\"].rules;\n }\n },\n // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available\n topState: function topState(n) {\n n = this.conditionStack.length - 1 - Math.abs(n || 0);\n if (n >= 0) {\n return this.conditionStack[n];\n } else {\n return \"INITIAL\";\n }\n },\n // alias for begin(condition)\n pushState: function pushState(condition) {\n this.begin(condition);\n },\n // return the number of states currently on the stack\n stateStackSize: function stateStackSize() {\n return this.conditionStack.length;\n },\n options: { \"case-insensitive\": true },\n performAction: function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {\n switch ($avoiding_name_collisions) {\n case 0:\n break;\n case 1:\n break;\n case 2:\n return 32;\n case 3:\n break;\n case 4:\n this.begin(\"title\");\n return 13;\n case 5:\n this.popState();\n return \"title_value\";\n case 6:\n this.begin(\"acc_title\");\n return 15;\n case 7:\n this.popState();\n return \"acc_title_value\";\n case 8:\n this.begin(\"acc_descr\");\n return 17;\n case 9:\n this.popState();\n return \"acc_descr_value\";\n case 10:\n this.begin(\"acc_descr_multiline\");\n break;\n case 11:\n this.popState();\n break;\n case 12:\n return \"acc_descr_multiline_value\";\n case 13:\n return 25;\n case 14:\n return 27;\n case 15:\n return 26;\n case 16:\n return 28;\n case 17:\n return 29;\n case 18:\n return 30;\n case 19:\n return 31;\n case 20:\n this.begin(\"md_string\");\n break;\n case 21:\n return \"MD_STR\";\n case 22:\n this.popState();\n break;\n case 23:\n this.begin(\"string\");\n break;\n case 24:\n this.popState();\n break;\n case 25:\n return \"STR\";\n case 26:\n this.begin(\"point_start\");\n return 22;\n case 27:\n this.begin(\"point_x\");\n return 23;\n case 28:\n this.popState();\n break;\n case 29:\n this.popState();\n this.begin(\"point_y\");\n break;\n case 30:\n this.popState();\n return 24;\n case 31:\n return 6;\n case 32:\n return 43;\n case 33:\n return \"COLON\";\n case 34:\n return 45;\n case 35:\n return 44;\n case 36:\n return 46;\n case 37:\n return 46;\n case 38:\n return 47;\n case 39:\n return 49;\n case 40:\n return 50;\n case 41:\n return 48;\n case 42:\n return 41;\n case 43:\n return 51;\n case 44:\n return 42;\n case 45:\n return 5;\n case 46:\n return 33;\n case 47:\n return 40;\n case 48:\n return 34;\n }\n },\n rules: [/^(?:%%(?!\\{)[^\\n]*)/i, /^(?:[^\\}]%%[^\\n]*)/i, /^(?:[\\n\\r]+)/i, /^(?:%%[^\\n]*)/i, /^(?:title\\b)/i, /^(?:(?!\\n||)*[^\\n]*)/i, /^(?:accTitle\\s*:\\s*)/i, /^(?:(?!\\n||)*[^\\n]*)/i, /^(?:accDescr\\s*:\\s*)/i, /^(?:(?!\\n||)*[^\\n]*)/i, /^(?:accDescr\\s*\\{\\s*)/i, /^(?:[\\}])/i, /^(?:[^\\}]*)/i, /^(?: *x-axis *)/i, /^(?: *y-axis *)/i, /^(?: *--+> *)/i, /^(?: *quadrant-1 *)/i, /^(?: *quadrant-2 *)/i, /^(?: *quadrant-3 *)/i, /^(?: *quadrant-4 *)/i, /^(?:[\"][`])/i, /^(?:[^`\"]+)/i, /^(?:[`][\"])/i, /^(?:[\"])/i, /^(?:[\"])/i, /^(?:[^\"]*)/i, /^(?:\\s*:\\s*\\[\\s*)/i, /^(?:(1)|(0(.\\d+)?))/i, /^(?:\\s*\\] *)/i, /^(?:\\s*,\\s*)/i, /^(?:(1)|(0(.\\d+)?))/i, /^(?: *quadrantChart *)/i, /^(?:[A-Za-z]+)/i, /^(?::)/i, /^(?:\\+)/i, /^(?:,)/i, /^(?:=)/i, /^(?:=)/i, /^(?:\\*)/i, /^(?:#)/i, /^(?:[\\_])/i, /^(?:\\.)/i, /^(?:&)/i, /^(?:-)/i, /^(?:[0-9]+)/i, /^(?:\\s)/i, /^(?:;)/i, /^(?:[!\"#$%&'*+,-.`?\\\\_/])/i, /^(?:$)/i],\n conditions: { \"point_y\": { \"rules\": [30], \"inclusive\": false }, \"point_x\": { \"rules\": [29], \"inclusive\": false }, \"point_start\": { \"rules\": [27, 28], \"inclusive\": false }, \"acc_descr_multiline\": { \"rules\": [11, 12], \"inclusive\": false }, \"acc_descr\": { \"rules\": [9], \"inclusive\": false }, \"acc_title\": { \"rules\": [7], \"inclusive\": false }, \"title\": { \"rules\": [5], \"inclusive\": false }, \"md_string\": { \"rules\": [21, 22], \"inclusive\": false }, \"string\": { \"rules\": [24, 25], \"inclusive\": false }, \"INITIAL\": { \"rules\": [0, 1, 2, 3, 4, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 23, 26, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], \"inclusive\": true } }\n };\n return lexer2;\n }();\n parser2.lexer = lexer;\n function Parser() {\n this.yy = {};\n }\n Parser.prototype = parser2;\n parser2.Parser = Parser;\n return new Parser();\n}();\nparser.parser = parser;\nconst parser$1 = parser;\nconst defaultThemeVariables = getThemeVariables();\nclass QuadrantBuilder {\n constructor() {\n this.config = this.getDefaultConfig();\n this.themeConfig = this.getDefaultThemeConfig();\n this.data = this.getDefaultData();\n }\n getDefaultData() {\n return {\n titleText: \"\",\n quadrant1Text: \"\",\n quadrant2Text: \"\",\n quadrant3Text: \"\",\n quadrant4Text: \"\",\n xAxisLeftText: \"\",\n xAxisRightText: \"\",\n yAxisBottomText: \"\",\n yAxisTopText: \"\",\n points: []\n };\n }\n getDefaultConfig() {\n var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;\n return {\n showXAxis: true,\n showYAxis: true,\n showTitle: true,\n chartHeight: ((_a = defaultConfig.quadrantChart) == null ? void 0 : _a.chartWidth) || 500,\n chartWidth: ((_b = defaultConfig.quadrantChart) == null ? void 0 : _b.chartHeight) || 500,\n titlePadding: ((_c = defaultConfig.quadrantChart) == null ? void 0 : _c.titlePadding) || 10,\n titleFontSize: ((_d = defaultConfig.quadrantChart) == null ? void 0 : _d.titleFontSize) || 20,\n quadrantPadding: ((_e = defaultConfig.quadrantChart) == null ? void 0 : _e.quadrantPadding) || 5,\n xAxisLabelPadding: ((_f = defaultConfig.quadrantChart) == null ? void 0 : _f.xAxisLabelPadding) || 5,\n yAxisLabelPadding: ((_g = defaultConfig.quadrantChart) == null ? void 0 : _g.yAxisLabelPadding) || 5,\n xAxisLabelFontSize: ((_h = defaultConfig.quadrantChart) == null ? void 0 : _h.xAxisLabelFontSize) || 16,\n yAxisLabelFontSize: ((_i = defaultConfig.quadrantChart) == null ? void 0 : _i.yAxisLabelFontSize) || 16,\n quadrantLabelFontSize: ((_j = defaultConfig.quadrantChart) == null ? void 0 : _j.quadrantLabelFontSize) || 16,\n quadrantTextTopPadding: ((_k = defaultConfig.quadrantChart) == null ? void 0 : _k.quadrantTextTopPadding) || 5,\n pointTextPadding: ((_l = defaultConfig.quadrantChart) == null ? void 0 : _l.pointTextPadding) || 5,\n pointLabelFontSize: ((_m = defaultConfig.quadrantChart) == null ? void 0 : _m.pointLabelFontSize) || 12,\n pointRadius: ((_n = defaultConfig.quadrantChart) == null ? void 0 : _n.pointRadius) || 5,\n xAxisPosition: ((_o = defaultConfig.quadrantChart) == null ? void 0 : _o.xAxisPosition) || \"top\",\n yAxisPosition: ((_p = defaultConfig.quadrantChart) == null ? void 0 : _p.yAxisPosition) || \"left\",\n quadrantInternalBorderStrokeWidth: ((_q = defaultConfig.quadrantChart) == null ? void 0 : _q.quadrantInternalBorderStrokeWidth) || 1,\n quadrantExternalBorderStrokeWidth: ((_r = defaultConfig.quadrantChart) == null ? void 0 : _r.quadrantExternalBorderStrokeWidth) || 2\n };\n }\n getDefaultThemeConfig() {\n return {\n quadrant1Fill: defaultThemeVariables.quadrant1Fill,\n quadrant2Fill: defaultThemeVariables.quadrant2Fill,\n quadrant3Fill: defaultThemeVariables.quadrant3Fill,\n quadrant4Fill: defaultThemeVariables.quadrant4Fill,\n quadrant1TextFill: defaultThemeVariables.quadrant1TextFill,\n quadrant2TextFill: defaultThemeVariables.quadrant2TextFill,\n quadrant3TextFill: defaultThemeVariables.quadrant3TextFill,\n quadrant4TextFill: defaultThemeVariables.quadrant4TextFill,\n quadrantPointFill: defaultThemeVariables.quadrantPointFill,\n quadrantPointTextFill: defaultThemeVariables.quadrantPointTextFill,\n quadrantXAxisTextFill: defaultThemeVariables.quadrantXAxisTextFill,\n quadrantYAxisTextFill: defaultThemeVariables.quadrantYAxisTextFill,\n quadrantTitleFill: defaultThemeVariables.quadrantTitleFill,\n quadrantInternalBorderStrokeFill: defaultThemeVariables.quadrantInternalBorderStrokeFill,\n quadrantExternalBorderStrokeFill: defaultThemeVariables.quadrantExternalBorderStrokeFill\n };\n }\n clear() {\n this.config = this.getDefaultConfig();\n this.themeConfig = this.getDefaultThemeConfig();\n this.data = this.getDefaultData();\n log.info(\"clear called\");\n }\n setData(data) {\n this.data = { ...this.data, ...data };\n }\n addPoints(points) {\n this.data.points = [...points, ...this.data.points];\n }\n setConfig(config2) {\n log.trace(\"setConfig called with: \", config2);\n this.config = { ...this.config, ...config2 };\n }\n setThemeConfig(themeConfig) {\n log.trace(\"setThemeConfig called with: \", themeConfig);\n this.themeConfig = { ...this.themeConfig, ...themeConfig };\n }\n calculateSpace(xAxisPosition, showXAxis, showYAxis, showTitle) {\n const xAxisSpaceCalculation = this.config.xAxisLabelPadding * 2 + this.config.xAxisLabelFontSize;\n const xAxisSpace = {\n top: xAxisPosition === \"top\" && showXAxis ? xAxisSpaceCalculation : 0,\n bottom: xAxisPosition === \"bottom\" && showXAxis ? xAxisSpaceCalculation : 0\n };\n const yAxisSpaceCalculation = this.config.yAxisLabelPadding * 2 + this.config.yAxisLabelFontSize;\n const yAxisSpace = {\n left: this.config.yAxisPosition === \"left\" && showYAxis ? yAxisSpaceCalculation : 0,\n right: this.config.yAxisPosition === \"right\" && showYAxis ? yAxisSpaceCalculation : 0\n };\n const titleSpaceCalculation = this.config.titleFontSize + this.config.titlePadding * 2;\n const titleSpace = {\n top: showTitle ? titleSpaceCalculation : 0\n };\n const quadrantLeft = this.config.quadrantPadding + yAxisSpace.left;\n const quadrantTop = this.config.quadrantPadding + xAxisSpace.top + titleSpace.top;\n const quadrantWidth = this.config.chartWidth - this.config.quadrantPadding * 2 - yAxisSpace.left - yAxisSpace.right;\n const quadrantHeight = this.config.chartHeight - this.config.quadrantPadding * 2 - xAxisSpace.top - xAxisSpace.bottom - titleSpace.top;\n const quadrantHalfWidth = quadrantWidth / 2;\n const quadrantHalfHeight = quadrantHeight / 2;\n const quadrantSpace = {\n quadrantLeft,\n quadrantTop,\n quadrantWidth,\n quadrantHalfWidth,\n quadrantHeight,\n quadrantHalfHeight\n };\n return {\n xAxisSpace,\n yAxisSpace,\n titleSpace,\n quadrantSpace\n };\n }\n getAxisLabels(xAxisPosition, showXAxis, showYAxis, spaceData) {\n const { quadrantSpace, titleSpace } = spaceData;\n const {\n quadrantHalfHeight,\n quadrantHeight,\n quadrantLeft,\n quadrantHalfWidth,\n quadrantTop,\n quadrantWidth\n } = quadrantSpace;\n const drawXAxisLabelsInMiddle = Boolean(this.data.xAxisRightText);\n const drawYAxisLabelsInMiddle = Boolean(this.data.yAxisTopText);\n const axisLabels = [];\n if (this.data.xAxisLeftText && showXAxis) {\n axisLabels.push({\n text: this.data.xAxisLeftText,\n fill: this.themeConfig.quadrantXAxisTextFill,\n x: quadrantLeft + (drawXAxisLabelsInMiddle ? quadrantHalfWidth / 2 : 0),\n y: xAxisPosition === \"top\" ? this.config.xAxisLabelPadding + titleSpace.top : this.config.xAxisLabelPadding + quadrantTop + quadrantHeight + this.config.quadrantPadding,\n fontSize: this.config.xAxisLabelFontSize,\n verticalPos: drawXAxisLabelsInMiddle ? \"center\" : \"left\",\n horizontalPos: \"top\",\n rotation: 0\n });\n }\n if (this.data.xAxisRightText && showXAxis) {\n axisLabels.push({\n text: this.data.xAxisRightText,\n fill: this.themeConfig.quadrantXAxisTextFill,\n x: quadrantLeft + quadrantHalfWidth + (drawXAxisLabelsInMiddle ? quadrantHalfWidth / 2 : 0),\n y: xAxisPosition === \"top\" ? this.config.xAxisLabelPadding + titleSpace.top : this.config.xAxisLabelPadding + quadrantTop + quadrantHeight + this.config.quadrantPadding,\n fontSize: this.config.xAxisLabelFontSize,\n verticalPos: drawXAxisLabelsInMiddle ? \"center\" : \"left\",\n horizontalPos: \"top\",\n rotation: 0\n });\n }\n if (this.data.yAxisBottomText && showYAxis) {\n axisLabels.push({\n text: this.data.yAxisBottomText,\n fill: this.themeConfig.quadrantYAxisTextFill,\n x: this.config.yAxisPosition === \"left\" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + quadrantLeft + quadrantWidth + this.config.quadrantPadding,\n y: quadrantTop + quadrantHeight - (drawYAxisLabelsInMiddle ? quadrantHalfHeight / 2 : 0),\n fontSize: this.config.yAxisLabelFontSize,\n verticalPos: drawYAxisLabelsInMiddle ? \"center\" : \"left\",\n horizontalPos: \"top\",\n rotation: -90\n });\n }\n if (this.data.yAxisTopText && showYAxis) {\n axisLabels.push({\n text: this.data.yAxisTopText,\n fill: this.themeConfig.quadrantYAxisTextFill,\n x: this.config.yAxisPosition === \"left\" ? this.config.yAxisLabelPadding : this.config.yAxisLabelPadding + quadrantLeft + quadrantWidth + this.config.quadrantPadding,\n y: quadrantTop + quadrantHalfHeight - (drawYAxisLabelsInMiddle ? quadrantHalfHeight / 2 : 0),\n fontSize: this.config.yAxisLabelFontSize,\n verticalPos: drawYAxisLabelsInMiddle ? \"center\" : \"left\",\n horizontalPos: \"top\",\n rotation: -90\n });\n }\n return axisLabels;\n }\n getQuadrants(spaceData) {\n const { quadrantSpace } = spaceData;\n const { quadrantHalfHeight, quadrantLeft, quadrantHalfWidth, quadrantTop } = quadrantSpace;\n const quadrants = [\n {\n text: {\n text: this.data.quadrant1Text,\n fill: this.themeConfig.quadrant1TextFill,\n x: 0,\n y: 0,\n fontSize: this.config.quadrantLabelFontSize,\n verticalPos: \"center\",\n horizontalPos: \"middle\",\n rotation: 0\n },\n x: quadrantLeft + quadrantHalfWidth,\n y: quadrantTop,\n width: quadrantHalfWidth,\n height: quadrantHalfHeight,\n fill: this.themeConfig.quadrant1Fill\n },\n {\n text: {\n text: this.data.quadrant2Text,\n fill: this.themeConfig.quadrant2TextFill,\n x: 0,\n y: 0,\n fontSize: this.config.quadrantLabelFontSize,\n verticalPos: \"center\",\n horizontalPos: \"middle\",\n rotation: 0\n },\n x: quadrantLeft,\n y: quadrantTop,\n width: quadrantHalfWidth,\n height: quadrantHalfHeight,\n fill: this.themeConfig.quadrant2Fill\n },\n {\n text: {\n text: this.data.quadrant3Text,\n fill: this.themeConfig.quadrant3TextFill,\n x: 0,\n y: 0,\n fontSize: this.config.quadrantLabelFontSize,\n verticalPos: \"center\",\n horizontalPos: \"middle\",\n rotation: 0\n },\n x: quadrantLeft,\n y: quadrantTop + quadrantHalfHeight,\n width: quadrantHalfWidth,\n height: quadrantHalfHeight,\n fill: this.themeConfig.quadrant3Fill\n },\n {\n text: {\n text: this.data.quadrant4Text,\n fill: this.themeConfig.quadrant4TextFill,\n x: 0,\n y: 0,\n fontSize: this.config.quadrantLabelFontSize,\n verticalPos: \"center\",\n horizontalPos: \"middle\",\n rotation: 0\n },\n x: quadrantLeft + quadrantHalfWidth,\n y: quadrantTop + quadrantHalfHeight,\n width: quadrantHalfWidth,\n height: quadrantHalfHeight,\n fill: this.themeConfig.quadrant4Fill\n }\n ];\n for (const quadrant of quadrants) {\n quadrant.text.x = quadrant.x + quadrant.width / 2;\n if (this.data.points.length === 0) {\n quadrant.text.y = quadrant.y + quadrant.height / 2;\n quadrant.text.horizontalPos = \"middle\";\n } else {\n quadrant.text.y = quadrant.y + this.config.quadrantTextTopPadding;\n quadrant.text.horizontalPos = \"top\";\n }\n }\n return quadrants;\n }\n getQuadrantPoints(spaceData) {\n const { quadrantSpace } = spaceData;\n const { quadrantHeight, quadrantLeft, quadrantTop, quadrantWidth } = quadrantSpace;\n const xAxis = scaleLinear().domain([0, 1]).range([quadrantLeft, quadrantWidth + quadrantLeft]);\n const yAxis = scaleLinear().domain([0, 1]).range([quadrantHeight + quadrantTop, quadrantTop]);\n const points = this.data.points.map((point) => {\n const props = {\n x: xAxis(point.x),\n y: yAxis(point.y),\n fill: this.themeConfig.quadrantPointFill,\n radius: this.config.pointRadius,\n text: {\n text: point.text,\n fill: this.themeConfig.quadrantPointTextFill,\n x: xAxis(point.x),\n y: yAxis(point.y) + this.config.pointTextPadding,\n verticalPos: \"center\",\n horizontalPos: \"top\",\n fontSize: this.config.pointLabelFontSize,\n rotation: 0\n }\n };\n return props;\n });\n return points;\n }\n getBorders(spaceData) {\n const halfExternalBorderWidth = this.config.quadrantExternalBorderStrokeWidth / 2;\n const { quadrantSpace } = spaceData;\n const {\n quadrantHalfHeight,\n quadrantHeight,\n quadrantLeft,\n quadrantHalfWidth,\n quadrantTop,\n quadrantWidth\n } = quadrantSpace;\n const borderLines = [\n // top border\n {\n strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,\n strokeWidth: this.config.quadrantExternalBorderStrokeWidth,\n x1: quadrantLeft - halfExternalBorderWidth,\n y1: quadrantTop,\n x2: quadrantLeft + quadrantWidth + halfExternalBorderWidth,\n y2: quadrantTop\n },\n // right border\n {\n strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,\n strokeWidth: this.config.quadrantExternalBorderStrokeWidth,\n x1: quadrantLeft + quadrantWidth,\n y1: quadrantTop + halfExternalBorderWidth,\n x2: quadrantLeft + quadrantWidth,\n y2: quadrantTop + quadrantHeight - halfExternalBorderWidth\n },\n // bottom border\n {\n strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,\n strokeWidth: this.config.quadrantExternalBorderStrokeWidth,\n x1: quadrantLeft - halfExternalBorderWidth,\n y1: quadrantTop + quadrantHeight,\n x2: quadrantLeft + quadrantWidth + halfExternalBorderWidth,\n y2: quadrantTop + quadrantHeight\n },\n // left border\n {\n strokeFill: this.themeConfig.quadrantExternalBorderStrokeFill,\n strokeWidth: this.config.quadrantExternalBorderStrokeWidth,\n x1: quadrantLeft,\n y1: quadrantTop + halfExternalBorderWidth,\n x2: quadrantLeft,\n y2: quadrantTop + quadrantHeight - halfExternalBorderWidth\n },\n // vertical inner border\n {\n strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,\n strokeWidth: this.config.quadrantInternalBorderStrokeWidth,\n x1: quadrantLeft + quadrantHalfWidth,\n y1: quadrantTop + halfExternalBorderWidth,\n x2: quadrantLeft + quadrantHalfWidth,\n y2: quadrantTop + quadrantHeight - halfExternalBorderWidth\n },\n // horizontal inner border\n {\n strokeFill: this.themeConfig.quadrantInternalBorderStrokeFill,\n strokeWidth: this.config.quadrantInternalBorderStrokeWidth,\n x1: quadrantLeft + halfExternalBorderWidth,\n y1: quadrantTop + quadrantHalfHeight,\n x2: quadrantLeft + quadrantWidth - halfExternalBorderWidth,\n y2: quadrantTop + quadrantHalfHeight\n }\n ];\n return borderLines;\n }\n getTitle(showTitle) {\n if (showTitle) {\n return {\n text: this.data.titleText,\n fill: this.themeConfig.quadrantTitleFill,\n fontSize: this.config.titleFontSize,\n horizontalPos: \"top\",\n verticalPos: \"center\",\n rotation: 0,\n y: this.config.titlePadding,\n x: this.config.chartWidth / 2\n };\n }\n return;\n }\n build() {\n const showXAxis = this.config.showXAxis && !!(this.data.xAxisLeftText || this.data.xAxisRightText);\n const showYAxis = this.config.showYAxis && !!(this.data.yAxisTopText || this.data.yAxisBottomText);\n const showTitle = this.config.showTitle && !!this.data.titleText;\n const xAxisPosition = this.data.points.length > 0 ? \"bottom\" : this.config.xAxisPosition;\n const calculatedSpace = this.calculateSpace(xAxisPosition, showXAxis, showYAxis, showTitle);\n return {\n points: this.getQuadrantPoints(calculatedSpace),\n quadrants: this.getQuadrants(calculatedSpace),\n axisLabels: this.getAxisLabels(xAxisPosition, showXAxis, showYAxis, calculatedSpace),\n borderLines: this.getBorders(calculatedSpace),\n title: this.getTitle(showTitle)\n };\n }\n}\nconst config = getConfig();\nfunction textSanitizer(text) {\n return sanitizeText(text.trim(), config);\n}\nconst quadrantBuilder = new QuadrantBuilder();\nfunction setQuadrant1Text(textObj) {\n quadrantBuilder.setData({ quadrant1Text: textSanitizer(textObj.text) });\n}\nfunction setQuadrant2Text(textObj) {\n quadrantBuilder.setData({ quadrant2Text: textSanitizer(textObj.text) });\n}\nfunction setQuadrant3Text(textObj) {\n quadrantBuilder.setData({ quadrant3Text: textSanitizer(textObj.text) });\n}\nfunction setQuadrant4Text(textObj) {\n quadrantBuilder.setData({ quadrant4Text: textSanitizer(textObj.text) });\n}\nfunction setXAxisLeftText(textObj) {\n quadrantBuilder.setData({ xAxisLeftText: textSanitizer(textObj.text) });\n}\nfunction setXAxisRightText(textObj) {\n quadrantBuilder.setData({ xAxisRightText: textSanitizer(textObj.text) });\n}\nfunction setYAxisTopText(textObj) {\n quadrantBuilder.setData({ yAxisTopText: textSanitizer(textObj.text) });\n}\nfunction setYAxisBottomText(textObj) {\n quadrantBuilder.setData({ yAxisBottomText: textSanitizer(textObj.text) });\n}\nfunction addPoint(textObj, x, y) {\n quadrantBuilder.addPoints([{ x, y, text: textSanitizer(textObj.text) }]);\n}\nfunction setWidth(width) {\n quadrantBuilder.setConfig({ chartWidth: width });\n}\nfunction setHeight(height) {\n quadrantBuilder.setConfig({ chartHeight: height });\n}\nfunction getQuadrantData() {\n const config2 = getConfig();\n const { themeVariables, quadrantChart: quadrantChartConfig } = config2;\n if (quadrantChartConfig) {\n quadrantBuilder.setConfig(quadrantChartConfig);\n }\n quadrantBuilder.setThemeConfig({\n quadrant1Fill: themeVariables.quadrant1Fill,\n quadrant2Fill: themeVariables.quadrant2Fill,\n quadrant3Fill: themeVariables.quadrant3Fill,\n quadrant4Fill: themeVariables.quadrant4Fill,\n quadrant1TextFill: themeVariables.quadrant1TextFill,\n quadrant2TextFill: themeVariables.quadrant2TextFill,\n quadrant3TextFill: themeVariables.quadrant3TextFill,\n quadrant4TextFill: themeVariables.quadrant4TextFill,\n quadrantPointFill: themeVariables.quadrantPointFill,\n quadrantPointTextFill: themeVariables.quadrantPointTextFill,\n quadrantXAxisTextFill: themeVariables.quadrantXAxisTextFill,\n quadrantYAxisTextFill: themeVariables.quadrantYAxisTextFill,\n quadrantExternalBorderStrokeFill: themeVariables.quadrantExternalBorderStrokeFill,\n quadrantInternalBorderStrokeFill: themeVariables.quadrantInternalBorderStrokeFill,\n quadrantTitleFill: themeVariables.quadrantTitleFill\n });\n quadrantBuilder.setData({ titleText: getDiagramTitle() });\n return quadrantBuilder.build();\n}\nconst clear = function() {\n quadrantBuilder.clear();\n clear$1();\n};\nconst db = {\n setWidth,\n setHeight,\n setQuadrant1Text,\n setQuadrant2Text,\n setQuadrant3Text,\n setQuadrant4Text,\n setXAxisLeftText,\n setXAxisRightText,\n setYAxisTopText,\n setYAxisBottomText,\n addPoint,\n getQuadrantData,\n clear,\n setAccTitle,\n getAccTitle,\n setDiagramTitle,\n getDiagramTitle,\n getAccDescription,\n setAccDescription\n};\nconst draw = (txt, id, _version, diagObj) => {\n var _a, _b, _c;\n function getDominantBaseLine(horizontalPos) {\n return horizontalPos === \"top\" ? \"hanging\" : \"middle\";\n }\n function getTextAnchor(verticalPos) {\n return verticalPos === \"left\" ? \"start\" : \"middle\";\n }\n function getTransformation(data) {\n return `translate(${data.x}, ${data.y}) rotate(${data.rotation || 0})`;\n }\n const conf = getConfig();\n log.debug(\"Rendering quadrant chart\\n\" + txt);\n const securityLevel = conf.securityLevel;\n let sandboxElement;\n if (securityLevel === \"sandbox\") {\n sandboxElement = select(\"#i\" + id);\n }\n const root = securityLevel === \"sandbox\" ? select(sandboxElement.nodes()[0].contentDocument.body) : select(\"body\");\n const svg = root.select(`[id=\"${id}\"]`);\n const group = svg.append(\"g\").attr(\"class\", \"main\");\n const width = ((_a = conf.quadrantChart) == null ? void 0 : _a.chartWidth) || 500;\n const height = ((_b = conf.quadrantChart) == null ? void 0 : _b.chartHeight) || 500;\n configureSvgSize(svg, height, width, ((_c = conf.quadrantChart) == null ? void 0 : _c.useMaxWidth) || true);\n svg.attr(\"viewBox\", \"0 0 \" + width + \" \" + height);\n diagObj.db.setHeight(height);\n diagObj.db.setWidth(width);\n const quadrantData = diagObj.db.getQuadrantData();\n const quadrantsGroup = group.append(\"g\").attr(\"class\", \"quadrants\");\n const borderGroup = group.append(\"g\").attr(\"class\", \"border\");\n const dataPointGroup = group.append(\"g\").attr(\"class\", \"data-points\");\n const labelGroup = group.append(\"g\").attr(\"class\", \"labels\");\n const titleGroup = group.append(\"g\").attr(\"class\", \"title\");\n if (quadrantData.title) {\n titleGroup.append(\"text\").attr(\"x\", 0).attr(\"y\", 0).attr(\"fill\", quadrantData.title.fill).attr(\"font-size\", quadrantData.title.fontSize).attr(\"dominant-baseline\", getDominantBaseLine(quadrantData.title.horizontalPos)).attr(\"text-anchor\", getTextAnchor(quadrantData.title.verticalPos)).attr(\"transform\", getTransformation(quadrantData.title)).text(quadrantData.title.text);\n }\n if (quadrantData.borderLines) {\n borderGroup.selectAll(\"line\").data(quadrantData.borderLines).enter().append(\"line\").attr(\"x1\", (data) => data.x1).attr(\"y1\", (data) => data.y1).attr(\"x2\", (data) => data.x2).attr(\"y2\", (data) => data.y2).style(\"stroke\", (data) => data.strokeFill).style(\"stroke-width\", (data) => data.strokeWidth);\n }\n const quadrants = quadrantsGroup.selectAll(\"g.quadrant\").data(quadrantData.quadrants).enter().append(\"g\").attr(\"class\", \"quadrant\");\n quadrants.append(\"rect\").attr(\"x\", (data) => data.x).attr(\"y\", (data) => data.y).attr(\"width\", (data) => data.width).attr(\"height\", (data) => data.height).attr(\"fill\", (data) => data.fill);\n quadrants.append(\"text\").attr(\"x\", 0).attr(\"y\", 0).attr(\"fill\", (data) => data.text.fill).attr(\"font-size\", (data) => data.text.fontSize).attr(\n \"dominant-baseline\",\n (data) => getDominantBaseLine(data.text.horizontalPos)\n ).attr(\"text-anchor\", (data) => getTextAnchor(data.text.verticalPos)).attr(\"transform\", (data) => getTransformation(data.text)).text((data) => data.text.text);\n const labels = labelGroup.selectAll(\"g.label\").data(quadrantData.axisLabels).enter().append(\"g\").attr(\"class\", \"label\");\n labels.append(\"text\").attr(\"x\", 0).attr(\"y\", 0).text((data) => data.text).attr(\"fill\", (data) => data.fill).attr(\"font-size\", (data) => data.fontSize).attr(\"dominant-baseline\", (data) => getDominantBaseLine(data.horizontalPos)).attr(\"text-anchor\", (data) => getTextAnchor(data.verticalPos)).attr(\"transform\", (data) => getTransformation(data));\n const dataPoints = dataPointGroup.selectAll(\"g.data-point\").data(quadrantData.points).enter().append(\"g\").attr(\"class\", \"data-point\");\n dataPoints.append(\"circle\").attr(\"cx\", (data) => data.x).attr(\"cy\", (data) => data.y).attr(\"r\", (data) => data.radius).attr(\"fill\", (data) => data.fill);\n dataPoints.append(\"text\").attr(\"x\", 0).attr(\"y\", 0).text((data) => data.text.text).attr(\"fill\", (data) => data.text.fill).attr(\"font-size\", (data) => data.text.fontSize).attr(\n \"dominant-baseline\",\n (data) => getDominantBaseLine(data.text.horizontalPos)\n ).attr(\"text-anchor\", (data) => getTextAnchor(data.text.verticalPos)).attr(\"transform\", (data) => getTransformation(data.text));\n};\nconst renderer = {\n draw\n};\nconst diagram = {\n parser: parser$1,\n db,\n renderer,\n styles: () => \"\"\n};\nexport {\n diagram\n};\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/2816.03541f3103bf4c09e591.js
ADDED
|
@@ -0,0 +1,2454 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[2816],{
|
| 3 |
+
|
| 4 |
+
/***/ 92816:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
// ESM COMPAT FLAG
|
| 8 |
+
__webpack_require__.r(__webpack_exports__);
|
| 9 |
+
|
| 10 |
+
// EXPORTS
|
| 11 |
+
__webpack_require__.d(__webpack_exports__, {
|
| 12 |
+
Accordion: () => (/* reexport */ Accordion),
|
| 13 |
+
AccordionItem: () => (/* reexport */ AccordionItem),
|
| 14 |
+
Anchor: () => (/* reexport */ Anchor),
|
| 15 |
+
AnchoredRegion: () => (/* reexport */ AnchoredRegion),
|
| 16 |
+
Avatar: () => (/* reexport */ Avatar),
|
| 17 |
+
Badge: () => (/* reexport */ Badge),
|
| 18 |
+
Breadcrumb: () => (/* reexport */ Breadcrumb),
|
| 19 |
+
BreadcrumbItem: () => (/* reexport */ BreadcrumbItem),
|
| 20 |
+
Button: () => (/* reexport */ Button),
|
| 21 |
+
Card: () => (/* reexport */ Card),
|
| 22 |
+
Checkbox: () => (/* reexport */ Checkbox),
|
| 23 |
+
Combobox: () => (/* reexport */ Combobox),
|
| 24 |
+
DataGrid: () => (/* reexport */ DataGrid),
|
| 25 |
+
DataGridCell: () => (/* reexport */ DataGridCell),
|
| 26 |
+
DataGridRow: () => (/* reexport */ DataGridRow),
|
| 27 |
+
DateField: () => (/* reexport */ DateField),
|
| 28 |
+
Dialog: () => (/* reexport */ Dialog),
|
| 29 |
+
Disclosure: () => (/* reexport */ Disclosure),
|
| 30 |
+
Divider: () => (/* reexport */ Divider),
|
| 31 |
+
Listbox: () => (/* reexport */ Listbox),
|
| 32 |
+
Menu: () => (/* reexport */ Menu),
|
| 33 |
+
MenuItem: () => (/* reexport */ MenuItem),
|
| 34 |
+
NumberField: () => (/* reexport */ NumberField),
|
| 35 |
+
Option: () => (/* reexport */ Option),
|
| 36 |
+
Picker: () => (/* reexport */ Picker),
|
| 37 |
+
PickerList: () => (/* reexport */ PickerList),
|
| 38 |
+
PickerListItem: () => (/* reexport */ PickerListItem),
|
| 39 |
+
PickerMenu: () => (/* reexport */ PickerMenu),
|
| 40 |
+
PickerMenuOption: () => (/* reexport */ PickerMenuOption),
|
| 41 |
+
Progress: () => (/* reexport */ Progress),
|
| 42 |
+
ProgressRing: () => (/* reexport */ ProgressRing),
|
| 43 |
+
Radio: () => (/* reexport */ Radio),
|
| 44 |
+
RadioGroup: () => (/* reexport */ RadioGroup),
|
| 45 |
+
Search: () => (/* reexport */ Search),
|
| 46 |
+
Select: () => (/* reexport */ Select),
|
| 47 |
+
Skeleton: () => (/* reexport */ Skeleton),
|
| 48 |
+
Slider: () => (/* reexport */ Slider),
|
| 49 |
+
SliderLabel: () => (/* reexport */ SliderLabel),
|
| 50 |
+
Switch: () => (/* reexport */ Switch),
|
| 51 |
+
Tab: () => (/* reexport */ Tab),
|
| 52 |
+
TabPanel: () => (/* reexport */ TabPanel),
|
| 53 |
+
Tabs: () => (/* reexport */ Tabs),
|
| 54 |
+
TextArea: () => (/* reexport */ TextArea),
|
| 55 |
+
TextField: () => (/* reexport */ TextField),
|
| 56 |
+
Toolbar: () => (/* reexport */ Toolbar),
|
| 57 |
+
Tooltip: () => (/* reexport */ Tooltip),
|
| 58 |
+
TreeItem: () => (/* reexport */ TreeItem),
|
| 59 |
+
TreeView: () => (/* reexport */ TreeView)
|
| 60 |
+
});
|
| 61 |
+
|
| 62 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyter/web-components@~0.16.7 (singleton) (fallback: ../node_modules/@jupyter/web-components/dist/esm/index.js)
|
| 63 |
+
var index_js_ = __webpack_require__(83074);
|
| 64 |
+
// EXTERNAL MODULE: consume shared module (default) react@~18.2.0 (singleton) (fallback: ../node_modules/react/index.js)
|
| 65 |
+
var react_index_js_ = __webpack_require__(78156);
|
| 66 |
+
var react_index_js_default = /*#__PURE__*/__webpack_require__.n(react_index_js_);
|
| 67 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/react-utils.js
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
function useProperties(targetElement, propName, value) {
|
| 71 |
+
(0,react_index_js_.useEffect)(() => {
|
| 72 |
+
if (
|
| 73 |
+
value !== undefined &&
|
| 74 |
+
targetElement.current &&
|
| 75 |
+
targetElement.current[propName] !== value
|
| 76 |
+
) {
|
| 77 |
+
// add try catch to avoid errors when setting read-only properties
|
| 78 |
+
try {
|
| 79 |
+
targetElement.current[propName] = value;
|
| 80 |
+
} catch (e) {
|
| 81 |
+
console.warn(e);
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
}, [value, targetElement.current]);
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
function useEventListener(targetElement, eventName, eventHandler) {
|
| 88 |
+
(0,react_index_js_.useLayoutEffect)(() => {
|
| 89 |
+
if (eventHandler !== undefined) {
|
| 90 |
+
targetElement?.current?.addEventListener(eventName, eventHandler);
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
return () => {
|
| 94 |
+
if (eventHandler?.cancel) {
|
| 95 |
+
eventHandler.cancel();
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
targetElement?.current?.removeEventListener(eventName, eventHandler);
|
| 99 |
+
};
|
| 100 |
+
}, [eventName, eventHandler, targetElement.current]);
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Accordion.js
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpAccordion)());
|
| 108 |
+
|
| 109 |
+
const Accordion = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 110 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 111 |
+
const { className, expandMode, ...filteredProps } = props;
|
| 112 |
+
|
| 113 |
+
/** Event listeners - run once */
|
| 114 |
+
useEventListener(ref, 'change', props.onChange);
|
| 115 |
+
|
| 116 |
+
/** Properties - run whenever a property has changed */
|
| 117 |
+
|
| 118 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 119 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 120 |
+
|
| 121 |
+
return react_index_js_default().createElement(
|
| 122 |
+
'jp-accordion',
|
| 123 |
+
{
|
| 124 |
+
ref,
|
| 125 |
+
...filteredProps,
|
| 126 |
+
'expand-mode': props.expandMode || props['expand-mode'],
|
| 127 |
+
class: props.className,
|
| 128 |
+
exportparts: props.exportparts,
|
| 129 |
+
for: props.htmlFor,
|
| 130 |
+
part: props.part,
|
| 131 |
+
tabindex: props.tabIndex,
|
| 132 |
+
style: { ...props.style }
|
| 133 |
+
},
|
| 134 |
+
props.children
|
| 135 |
+
);
|
| 136 |
+
});
|
| 137 |
+
|
| 138 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/AccordionItem.js
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpAccordionItem)());
|
| 143 |
+
|
| 144 |
+
const AccordionItem = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 145 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 146 |
+
const { className, headingLevel, id, expanded, ...filteredProps } = props;
|
| 147 |
+
|
| 148 |
+
/** Event listeners - run once */
|
| 149 |
+
useEventListener(ref, 'change', props.onChange);
|
| 150 |
+
|
| 151 |
+
/** Properties - run whenever a property has changed */
|
| 152 |
+
useProperties(ref, 'expanded', props.expanded);
|
| 153 |
+
|
| 154 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 155 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 156 |
+
|
| 157 |
+
return react_index_js_default().createElement(
|
| 158 |
+
'jp-accordion-item',
|
| 159 |
+
{
|
| 160 |
+
ref,
|
| 161 |
+
...filteredProps,
|
| 162 |
+
'heading-level': props.headingLevel || props['heading-level'],
|
| 163 |
+
id: props.id,
|
| 164 |
+
class: props.className,
|
| 165 |
+
exportparts: props.exportparts,
|
| 166 |
+
for: props.htmlFor,
|
| 167 |
+
part: props.part,
|
| 168 |
+
tabindex: props.tabIndex,
|
| 169 |
+
style: { ...props.style }
|
| 170 |
+
},
|
| 171 |
+
props.children
|
| 172 |
+
);
|
| 173 |
+
});
|
| 174 |
+
|
| 175 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/AnchoredRegion.js
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpAnchoredRegion)());
|
| 180 |
+
|
| 181 |
+
const AnchoredRegion = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 182 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 183 |
+
const {
|
| 184 |
+
className,
|
| 185 |
+
horizontalViewportLock,
|
| 186 |
+
horizontalInset,
|
| 187 |
+
verticalViewportLock,
|
| 188 |
+
verticalInset,
|
| 189 |
+
fixedPlacement,
|
| 190 |
+
anchor,
|
| 191 |
+
viewport,
|
| 192 |
+
horizontalPositioningMode,
|
| 193 |
+
horizontalDefaultPosition,
|
| 194 |
+
horizontalThreshold,
|
| 195 |
+
horizontalScaling,
|
| 196 |
+
verticalPositioningMode,
|
| 197 |
+
verticalDefaultPosition,
|
| 198 |
+
verticalThreshold,
|
| 199 |
+
verticalScaling,
|
| 200 |
+
autoUpdateMode,
|
| 201 |
+
anchorElement,
|
| 202 |
+
viewportElement,
|
| 203 |
+
verticalPosition,
|
| 204 |
+
horizontalPosition,
|
| 205 |
+
update,
|
| 206 |
+
...filteredProps
|
| 207 |
+
} = props;
|
| 208 |
+
|
| 209 |
+
/** Event listeners - run once */
|
| 210 |
+
useEventListener(ref, 'loaded', props.onLoaded);
|
| 211 |
+
useEventListener(ref, 'positionchange', props.onPositionchange);
|
| 212 |
+
|
| 213 |
+
/** Properties - run whenever a property has changed */
|
| 214 |
+
useProperties(ref, 'anchorElement', props.anchorElement);
|
| 215 |
+
useProperties(ref, 'viewportElement', props.viewportElement);
|
| 216 |
+
useProperties(ref, 'verticalPosition', props.verticalPosition);
|
| 217 |
+
useProperties(ref, 'horizontalPosition', props.horizontalPosition);
|
| 218 |
+
useProperties(ref, 'update', props.update);
|
| 219 |
+
|
| 220 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 221 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 222 |
+
|
| 223 |
+
return react_index_js_default().createElement(
|
| 224 |
+
'jp-anchored-region',
|
| 225 |
+
{
|
| 226 |
+
ref,
|
| 227 |
+
...filteredProps,
|
| 228 |
+
anchor: props.anchor,
|
| 229 |
+
viewport: props.viewport,
|
| 230 |
+
'horizontal-positioning-mode':
|
| 231 |
+
props.horizontalPositioningMode || props['horizontal-positioning-mode'],
|
| 232 |
+
'horizontal-default-position':
|
| 233 |
+
props.horizontalDefaultPosition || props['horizontal-default-position'],
|
| 234 |
+
'horizontal-threshold':
|
| 235 |
+
props.horizontalThreshold || props['horizontal-threshold'],
|
| 236 |
+
'horizontal-scaling':
|
| 237 |
+
props.horizontalScaling || props['horizontal-scaling'],
|
| 238 |
+
'vertical-positioning-mode':
|
| 239 |
+
props.verticalPositioningMode || props['vertical-positioning-mode'],
|
| 240 |
+
'vertical-default-position':
|
| 241 |
+
props.verticalDefaultPosition || props['vertical-default-position'],
|
| 242 |
+
'vertical-threshold':
|
| 243 |
+
props.verticalThreshold || props['vertical-threshold'],
|
| 244 |
+
'vertical-scaling': props.verticalScaling || props['vertical-scaling'],
|
| 245 |
+
'auto-update-mode': props.autoUpdateMode || props['auto-update-mode'],
|
| 246 |
+
class: props.className,
|
| 247 |
+
exportparts: props.exportparts,
|
| 248 |
+
for: props.htmlFor,
|
| 249 |
+
part: props.part,
|
| 250 |
+
tabindex: props.tabIndex,
|
| 251 |
+
'horizontal-viewport-lock': props.horizontalViewportLock ? '' : undefined,
|
| 252 |
+
'horizontal-inset': props.horizontalInset ? '' : undefined,
|
| 253 |
+
'vertical-viewport-lock': props.verticalViewportLock ? '' : undefined,
|
| 254 |
+
'vertical-inset': props.verticalInset ? '' : undefined,
|
| 255 |
+
'fixed-placement': props.fixedPlacement ? '' : undefined,
|
| 256 |
+
style: { ...props.style }
|
| 257 |
+
},
|
| 258 |
+
props.children
|
| 259 |
+
);
|
| 260 |
+
});
|
| 261 |
+
|
| 262 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Anchor.js
|
| 263 |
+
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpAnchor)());
|
| 267 |
+
|
| 268 |
+
const Anchor = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 269 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 270 |
+
const {
|
| 271 |
+
className,
|
| 272 |
+
appearance,
|
| 273 |
+
download,
|
| 274 |
+
href,
|
| 275 |
+
hreflang,
|
| 276 |
+
ping,
|
| 277 |
+
referrerpolicy,
|
| 278 |
+
rel,
|
| 279 |
+
target,
|
| 280 |
+
type,
|
| 281 |
+
control,
|
| 282 |
+
...filteredProps
|
| 283 |
+
} = props;
|
| 284 |
+
|
| 285 |
+
/** Properties - run whenever a property has changed */
|
| 286 |
+
useProperties(ref, 'control', props.control);
|
| 287 |
+
|
| 288 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 289 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 290 |
+
|
| 291 |
+
return react_index_js_default().createElement(
|
| 292 |
+
'jp-anchor',
|
| 293 |
+
{
|
| 294 |
+
ref,
|
| 295 |
+
...filteredProps,
|
| 296 |
+
appearance: props.appearance,
|
| 297 |
+
download: props.download,
|
| 298 |
+
href: props.href,
|
| 299 |
+
hreflang: props.hreflang,
|
| 300 |
+
ping: props.ping,
|
| 301 |
+
referrerpolicy: props.referrerpolicy,
|
| 302 |
+
rel: props.rel,
|
| 303 |
+
target: props.target,
|
| 304 |
+
type: props.type,
|
| 305 |
+
class: props.className,
|
| 306 |
+
exportparts: props.exportparts,
|
| 307 |
+
for: props.htmlFor,
|
| 308 |
+
part: props.part,
|
| 309 |
+
tabindex: props.tabIndex,
|
| 310 |
+
style: { ...props.style }
|
| 311 |
+
},
|
| 312 |
+
props.children
|
| 313 |
+
);
|
| 314 |
+
});
|
| 315 |
+
|
| 316 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Avatar.js
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpAvatar)());
|
| 321 |
+
|
| 322 |
+
const Avatar = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 323 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 324 |
+
const { className, src, alt, fill, color, link, shape, ...filteredProps } =
|
| 325 |
+
props;
|
| 326 |
+
|
| 327 |
+
/** Properties - run whenever a property has changed */
|
| 328 |
+
|
| 329 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 330 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 331 |
+
|
| 332 |
+
return react_index_js_default().createElement(
|
| 333 |
+
'jp-avatar',
|
| 334 |
+
{
|
| 335 |
+
ref,
|
| 336 |
+
...filteredProps,
|
| 337 |
+
src: props.src,
|
| 338 |
+
alt: props.alt,
|
| 339 |
+
fill: props.fill,
|
| 340 |
+
color: props.color,
|
| 341 |
+
link: props.link,
|
| 342 |
+
shape: props.shape,
|
| 343 |
+
class: props.className,
|
| 344 |
+
exportparts: props.exportparts,
|
| 345 |
+
for: props.htmlFor,
|
| 346 |
+
part: props.part,
|
| 347 |
+
tabindex: props.tabIndex,
|
| 348 |
+
style: { ...props.style }
|
| 349 |
+
},
|
| 350 |
+
props.children
|
| 351 |
+
);
|
| 352 |
+
});
|
| 353 |
+
|
| 354 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Badge.js
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
|
| 358 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpBadge)());
|
| 359 |
+
|
| 360 |
+
const Badge = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 361 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 362 |
+
const { className, fill, color, circular, ...filteredProps } = props;
|
| 363 |
+
|
| 364 |
+
/** Properties - run whenever a property has changed */
|
| 365 |
+
useProperties(ref, 'circular', props.circular);
|
| 366 |
+
|
| 367 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 368 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 369 |
+
|
| 370 |
+
return react_index_js_default().createElement(
|
| 371 |
+
'jp-badge',
|
| 372 |
+
{
|
| 373 |
+
ref,
|
| 374 |
+
...filteredProps,
|
| 375 |
+
fill: props.fill,
|
| 376 |
+
color: props.color,
|
| 377 |
+
class: props.className,
|
| 378 |
+
exportparts: props.exportparts,
|
| 379 |
+
for: props.htmlFor,
|
| 380 |
+
part: props.part,
|
| 381 |
+
tabindex: props.tabIndex,
|
| 382 |
+
style: { ...props.style }
|
| 383 |
+
},
|
| 384 |
+
props.children
|
| 385 |
+
);
|
| 386 |
+
});
|
| 387 |
+
|
| 388 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Breadcrumb.js
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
|
| 392 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpBreadcrumb)());
|
| 393 |
+
|
| 394 |
+
const Breadcrumb = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 395 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 396 |
+
const { className, ...filteredProps } = props;
|
| 397 |
+
|
| 398 |
+
/** Properties - run whenever a property has changed */
|
| 399 |
+
|
| 400 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 401 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 402 |
+
|
| 403 |
+
return react_index_js_default().createElement(
|
| 404 |
+
'jp-breadcrumb',
|
| 405 |
+
{
|
| 406 |
+
ref,
|
| 407 |
+
...filteredProps,
|
| 408 |
+
class: props.className,
|
| 409 |
+
exportparts: props.exportparts,
|
| 410 |
+
for: props.htmlFor,
|
| 411 |
+
part: props.part,
|
| 412 |
+
tabindex: props.tabIndex,
|
| 413 |
+
style: { ...props.style }
|
| 414 |
+
},
|
| 415 |
+
props.children
|
| 416 |
+
);
|
| 417 |
+
});
|
| 418 |
+
|
| 419 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/BreadcrumbItem.js
|
| 420 |
+
|
| 421 |
+
|
| 422 |
+
|
| 423 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpBreadcrumbItem)());
|
| 424 |
+
|
| 425 |
+
const BreadcrumbItem = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 426 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 427 |
+
const {
|
| 428 |
+
className,
|
| 429 |
+
download,
|
| 430 |
+
href,
|
| 431 |
+
hreflang,
|
| 432 |
+
ping,
|
| 433 |
+
referrerpolicy,
|
| 434 |
+
rel,
|
| 435 |
+
target,
|
| 436 |
+
type,
|
| 437 |
+
control,
|
| 438 |
+
...filteredProps
|
| 439 |
+
} = props;
|
| 440 |
+
|
| 441 |
+
/** Properties - run whenever a property has changed */
|
| 442 |
+
useProperties(ref, 'control', props.control);
|
| 443 |
+
|
| 444 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 445 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 446 |
+
|
| 447 |
+
return react_index_js_default().createElement(
|
| 448 |
+
'jp-breadcrumb-item',
|
| 449 |
+
{
|
| 450 |
+
ref,
|
| 451 |
+
...filteredProps,
|
| 452 |
+
download: props.download,
|
| 453 |
+
href: props.href,
|
| 454 |
+
hreflang: props.hreflang,
|
| 455 |
+
ping: props.ping,
|
| 456 |
+
referrerpolicy: props.referrerpolicy,
|
| 457 |
+
rel: props.rel,
|
| 458 |
+
target: props.target,
|
| 459 |
+
type: props.type,
|
| 460 |
+
class: props.className,
|
| 461 |
+
exportparts: props.exportparts,
|
| 462 |
+
for: props.htmlFor,
|
| 463 |
+
part: props.part,
|
| 464 |
+
tabindex: props.tabIndex,
|
| 465 |
+
style: { ...props.style }
|
| 466 |
+
},
|
| 467 |
+
props.children
|
| 468 |
+
);
|
| 469 |
+
});
|
| 470 |
+
|
| 471 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Button.js
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
|
| 475 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpButton)());
|
| 476 |
+
|
| 477 |
+
const Button = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 478 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 479 |
+
const {
|
| 480 |
+
className,
|
| 481 |
+
minimal,
|
| 482 |
+
appearance,
|
| 483 |
+
form,
|
| 484 |
+
formaction,
|
| 485 |
+
formenctype,
|
| 486 |
+
formmethod,
|
| 487 |
+
formtarget,
|
| 488 |
+
type,
|
| 489 |
+
autofocus,
|
| 490 |
+
formnovalidate,
|
| 491 |
+
defaultSlottedContent,
|
| 492 |
+
disabled,
|
| 493 |
+
required,
|
| 494 |
+
...filteredProps
|
| 495 |
+
} = props;
|
| 496 |
+
|
| 497 |
+
/** Properties - run whenever a property has changed */
|
| 498 |
+
useProperties(ref, 'autofocus', props.autofocus);
|
| 499 |
+
useProperties(ref, 'formnovalidate', props.formnovalidate);
|
| 500 |
+
useProperties(ref, 'defaultSlottedContent', props.defaultSlottedContent);
|
| 501 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 502 |
+
useProperties(ref, 'required', props.required);
|
| 503 |
+
|
| 504 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 505 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 506 |
+
|
| 507 |
+
return react_index_js_default().createElement(
|
| 508 |
+
'jp-button',
|
| 509 |
+
{
|
| 510 |
+
ref,
|
| 511 |
+
...filteredProps,
|
| 512 |
+
appearance: props.appearance,
|
| 513 |
+
form: props.form,
|
| 514 |
+
formaction: props.formaction,
|
| 515 |
+
formenctype: props.formenctype,
|
| 516 |
+
formmethod: props.formmethod,
|
| 517 |
+
formtarget: props.formtarget,
|
| 518 |
+
type: props.type,
|
| 519 |
+
class: props.className,
|
| 520 |
+
exportparts: props.exportparts,
|
| 521 |
+
for: props.htmlFor,
|
| 522 |
+
part: props.part,
|
| 523 |
+
tabindex: props.tabIndex,
|
| 524 |
+
minimal: props.minimal ? '' : undefined,
|
| 525 |
+
style: { ...props.style }
|
| 526 |
+
},
|
| 527 |
+
props.children
|
| 528 |
+
);
|
| 529 |
+
});
|
| 530 |
+
|
| 531 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Card.js
|
| 532 |
+
|
| 533 |
+
|
| 534 |
+
|
| 535 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpCard)());
|
| 536 |
+
|
| 537 |
+
const Card = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 538 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 539 |
+
const { className, ...filteredProps } = props;
|
| 540 |
+
|
| 541 |
+
/** Properties - run whenever a property has changed */
|
| 542 |
+
|
| 543 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 544 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 545 |
+
|
| 546 |
+
return react_index_js_default().createElement(
|
| 547 |
+
'jp-card',
|
| 548 |
+
{
|
| 549 |
+
ref,
|
| 550 |
+
...filteredProps,
|
| 551 |
+
class: props.className,
|
| 552 |
+
exportparts: props.exportparts,
|
| 553 |
+
for: props.htmlFor,
|
| 554 |
+
part: props.part,
|
| 555 |
+
tabindex: props.tabIndex,
|
| 556 |
+
style: { ...props.style }
|
| 557 |
+
},
|
| 558 |
+
props.children
|
| 559 |
+
);
|
| 560 |
+
});
|
| 561 |
+
|
| 562 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Checkbox.js
|
| 563 |
+
|
| 564 |
+
|
| 565 |
+
|
| 566 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpCheckbox)());
|
| 567 |
+
|
| 568 |
+
const Checkbox = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 569 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 570 |
+
const {
|
| 571 |
+
className,
|
| 572 |
+
readonly,
|
| 573 |
+
readOnly,
|
| 574 |
+
indeterminate,
|
| 575 |
+
checked,
|
| 576 |
+
disabled,
|
| 577 |
+
required,
|
| 578 |
+
...filteredProps
|
| 579 |
+
} = props;
|
| 580 |
+
|
| 581 |
+
/** Event listeners - run once */
|
| 582 |
+
useEventListener(ref, 'change', props.onChange);
|
| 583 |
+
|
| 584 |
+
/** Properties - run whenever a property has changed */
|
| 585 |
+
useProperties(ref, 'readOnly', props.readOnly);
|
| 586 |
+
useProperties(ref, 'indeterminate', props.indeterminate);
|
| 587 |
+
useProperties(ref, 'checked', props.checked);
|
| 588 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 589 |
+
useProperties(ref, 'required', props.required);
|
| 590 |
+
|
| 591 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 592 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 593 |
+
|
| 594 |
+
// Add web component internal classes on top of `className`
|
| 595 |
+
let allClasses = className ?? '';
|
| 596 |
+
if (ref.current?.indeterminate) {
|
| 597 |
+
allClasses += ' indeterminate';
|
| 598 |
+
}
|
| 599 |
+
|
| 600 |
+
return react_index_js_default().createElement(
|
| 601 |
+
'jp-checkbox',
|
| 602 |
+
{
|
| 603 |
+
ref,
|
| 604 |
+
...filteredProps,
|
| 605 |
+
class: allClasses.trim(),
|
| 606 |
+
exportparts: props.exportparts,
|
| 607 |
+
for: props.htmlFor,
|
| 608 |
+
part: props.part,
|
| 609 |
+
tabindex: props.tabIndex,
|
| 610 |
+
readonly: props.readonly ? '' : undefined,
|
| 611 |
+
style: { ...props.style }
|
| 612 |
+
},
|
| 613 |
+
props.children
|
| 614 |
+
);
|
| 615 |
+
});
|
| 616 |
+
|
| 617 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Combobox.js
|
| 618 |
+
|
| 619 |
+
|
| 620 |
+
|
| 621 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpCombobox)());
|
| 622 |
+
|
| 623 |
+
const Combobox = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 624 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 625 |
+
const {
|
| 626 |
+
className,
|
| 627 |
+
autowidth,
|
| 628 |
+
minimal,
|
| 629 |
+
open,
|
| 630 |
+
autocomplete,
|
| 631 |
+
placeholder,
|
| 632 |
+
position,
|
| 633 |
+
autoWidth,
|
| 634 |
+
filteredOptions,
|
| 635 |
+
options,
|
| 636 |
+
value,
|
| 637 |
+
length,
|
| 638 |
+
disabled,
|
| 639 |
+
selectedIndex,
|
| 640 |
+
selectedOptions,
|
| 641 |
+
required,
|
| 642 |
+
...filteredProps
|
| 643 |
+
} = props;
|
| 644 |
+
|
| 645 |
+
/** Event listeners - run once */
|
| 646 |
+
useEventListener(ref, 'input', props.onInput);
|
| 647 |
+
useEventListener(ref, 'change', props.onChange);
|
| 648 |
+
|
| 649 |
+
/** Properties - run whenever a property has changed */
|
| 650 |
+
useProperties(ref, 'autoWidth', props.autoWidth);
|
| 651 |
+
useProperties(ref, 'filteredOptions', props.filteredOptions);
|
| 652 |
+
useProperties(ref, 'options', props.options);
|
| 653 |
+
useProperties(ref, 'value', props.value);
|
| 654 |
+
useProperties(ref, 'length', props.length);
|
| 655 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 656 |
+
useProperties(ref, 'selectedIndex', props.selectedIndex);
|
| 657 |
+
useProperties(ref, 'selectedOptions', props.selectedOptions);
|
| 658 |
+
useProperties(ref, 'required', props.required);
|
| 659 |
+
|
| 660 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 661 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 662 |
+
|
| 663 |
+
return react_index_js_default().createElement(
|
| 664 |
+
'jp-combobox',
|
| 665 |
+
{
|
| 666 |
+
ref,
|
| 667 |
+
...filteredProps,
|
| 668 |
+
autocomplete: props.autocomplete,
|
| 669 |
+
placeholder: props.placeholder,
|
| 670 |
+
position: props.position,
|
| 671 |
+
class: props.className,
|
| 672 |
+
exportparts: props.exportparts,
|
| 673 |
+
for: props.htmlFor,
|
| 674 |
+
part: props.part,
|
| 675 |
+
tabindex: props.tabIndex,
|
| 676 |
+
autowidth: props.autowidth ? '' : undefined,
|
| 677 |
+
minimal: props.minimal ? '' : undefined,
|
| 678 |
+
open: props.open ? '' : undefined,
|
| 679 |
+
style: { ...props.style }
|
| 680 |
+
},
|
| 681 |
+
props.children
|
| 682 |
+
);
|
| 683 |
+
});
|
| 684 |
+
|
| 685 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/DateField.js
|
| 686 |
+
|
| 687 |
+
|
| 688 |
+
|
| 689 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDateField)());
|
| 690 |
+
|
| 691 |
+
const DateField = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 692 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 693 |
+
const {
|
| 694 |
+
className,
|
| 695 |
+
autofocus,
|
| 696 |
+
step,
|
| 697 |
+
max,
|
| 698 |
+
min,
|
| 699 |
+
disabled,
|
| 700 |
+
required,
|
| 701 |
+
...filteredProps
|
| 702 |
+
} = props;
|
| 703 |
+
|
| 704 |
+
/** Event listeners - run once */
|
| 705 |
+
useEventListener(ref, 'input', props.onInput);
|
| 706 |
+
useEventListener(ref, 'change', props.onChange);
|
| 707 |
+
|
| 708 |
+
/** Properties - run whenever a property has changed */
|
| 709 |
+
useProperties(ref, 'autofocus', props.autofocus);
|
| 710 |
+
useProperties(ref, 'step', props.step);
|
| 711 |
+
useProperties(ref, 'max', props.max);
|
| 712 |
+
useProperties(ref, 'min', props.min);
|
| 713 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 714 |
+
useProperties(ref, 'required', props.required);
|
| 715 |
+
|
| 716 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 717 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 718 |
+
|
| 719 |
+
return react_index_js_default().createElement(
|
| 720 |
+
'jp-date-field',
|
| 721 |
+
{
|
| 722 |
+
ref,
|
| 723 |
+
...filteredProps,
|
| 724 |
+
class: props.className,
|
| 725 |
+
exportparts: props.exportparts,
|
| 726 |
+
for: props.htmlFor,
|
| 727 |
+
part: props.part,
|
| 728 |
+
tabindex: props.tabIndex,
|
| 729 |
+
style: { ...props.style }
|
| 730 |
+
},
|
| 731 |
+
props.children
|
| 732 |
+
);
|
| 733 |
+
});
|
| 734 |
+
|
| 735 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/DataGridCell.js
|
| 736 |
+
|
| 737 |
+
|
| 738 |
+
|
| 739 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDataGridCell)());
|
| 740 |
+
|
| 741 |
+
const DataGridCell = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 742 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 743 |
+
const {
|
| 744 |
+
className,
|
| 745 |
+
cellType,
|
| 746 |
+
gridColumn,
|
| 747 |
+
rowData,
|
| 748 |
+
columnDefinition,
|
| 749 |
+
...filteredProps
|
| 750 |
+
} = props;
|
| 751 |
+
|
| 752 |
+
/** Event listeners - run once */
|
| 753 |
+
useEventListener(ref, 'cell-focused', props.onCellFocused);
|
| 754 |
+
|
| 755 |
+
/** Properties - run whenever a property has changed */
|
| 756 |
+
useProperties(ref, 'rowData', props.rowData);
|
| 757 |
+
useProperties(ref, 'columnDefinition', props.columnDefinition);
|
| 758 |
+
|
| 759 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 760 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 761 |
+
|
| 762 |
+
// Add web component internal classes on top of `className`
|
| 763 |
+
let allClasses = className ?? '';
|
| 764 |
+
if (ref.current?.cellType === 'columnheader') {
|
| 765 |
+
allClasses += ' column-header';
|
| 766 |
+
}
|
| 767 |
+
|
| 768 |
+
return react_index_js_default().createElement(
|
| 769 |
+
'jp-data-grid-cell',
|
| 770 |
+
{
|
| 771 |
+
ref,
|
| 772 |
+
...filteredProps,
|
| 773 |
+
'cell-type': props.cellType || props['cell-type'],
|
| 774 |
+
'grid-column': props.gridColumn || props['grid-column'],
|
| 775 |
+
class: allClasses.trim(),
|
| 776 |
+
exportparts: props.exportparts,
|
| 777 |
+
for: props.htmlFor,
|
| 778 |
+
part: props.part,
|
| 779 |
+
tabindex: props.tabIndex,
|
| 780 |
+
style: { ...props.style }
|
| 781 |
+
},
|
| 782 |
+
props.children
|
| 783 |
+
);
|
| 784 |
+
});
|
| 785 |
+
|
| 786 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/DataGridRow.js
|
| 787 |
+
|
| 788 |
+
|
| 789 |
+
|
| 790 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDataGridRow)());
|
| 791 |
+
|
| 792 |
+
const DataGridRow = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 793 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 794 |
+
const {
|
| 795 |
+
className,
|
| 796 |
+
gridTemplateColumns,
|
| 797 |
+
rowType,
|
| 798 |
+
rowData,
|
| 799 |
+
columnDefinitions,
|
| 800 |
+
cellItemTemplate,
|
| 801 |
+
headerCellItemTemplate,
|
| 802 |
+
rowIndex,
|
| 803 |
+
...filteredProps
|
| 804 |
+
} = props;
|
| 805 |
+
|
| 806 |
+
/** Event listeners - run once */
|
| 807 |
+
useEventListener(ref, 'row-focused', props.onRowFocused);
|
| 808 |
+
|
| 809 |
+
/** Properties - run whenever a property has changed */
|
| 810 |
+
useProperties(ref, 'rowData', props.rowData);
|
| 811 |
+
useProperties(ref, 'columnDefinitions', props.columnDefinitions);
|
| 812 |
+
useProperties(ref, 'cellItemTemplate', props.cellItemTemplate);
|
| 813 |
+
useProperties(ref, 'headerCellItemTemplate', props.headerCellItemTemplate);
|
| 814 |
+
useProperties(ref, 'rowIndex', props.rowIndex);
|
| 815 |
+
|
| 816 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 817 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 818 |
+
|
| 819 |
+
// Add web component internal classes on top of `className`
|
| 820 |
+
let allClasses = className ?? '';
|
| 821 |
+
if (ref.current) {
|
| 822 |
+
if (ref.current.rowType !== 'default') {
|
| 823 |
+
allClasses += ` ${ref.current.rowType}`;
|
| 824 |
+
}
|
| 825 |
+
}
|
| 826 |
+
|
| 827 |
+
return react_index_js_default().createElement(
|
| 828 |
+
'jp-data-grid-row',
|
| 829 |
+
{
|
| 830 |
+
ref,
|
| 831 |
+
...filteredProps,
|
| 832 |
+
'grid-template-columns':
|
| 833 |
+
props.gridTemplateColumns || props['grid-template-columns'],
|
| 834 |
+
'row-type': props.rowType || props['row-type'],
|
| 835 |
+
class: allClasses.trim(),
|
| 836 |
+
exportparts: props.exportparts,
|
| 837 |
+
for: props.htmlFor,
|
| 838 |
+
part: props.part,
|
| 839 |
+
tabindex: props.tabIndex,
|
| 840 |
+
style: { ...props.style }
|
| 841 |
+
},
|
| 842 |
+
props.children
|
| 843 |
+
);
|
| 844 |
+
});
|
| 845 |
+
|
| 846 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/DataGrid.js
|
| 847 |
+
|
| 848 |
+
|
| 849 |
+
|
| 850 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDataGrid)());
|
| 851 |
+
|
| 852 |
+
const DataGrid = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 853 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 854 |
+
const {
|
| 855 |
+
className,
|
| 856 |
+
noTabbing,
|
| 857 |
+
generateHeader,
|
| 858 |
+
gridTemplateColumns,
|
| 859 |
+
rowsData,
|
| 860 |
+
columnDefinitions,
|
| 861 |
+
rowItemTemplate,
|
| 862 |
+
cellItemTemplate,
|
| 863 |
+
headerCellItemTemplate,
|
| 864 |
+
focusRowIndex,
|
| 865 |
+
focusColumnIndex,
|
| 866 |
+
rowElementTag,
|
| 867 |
+
...filteredProps
|
| 868 |
+
} = props;
|
| 869 |
+
|
| 870 |
+
/** Properties - run whenever a property has changed */
|
| 871 |
+
useProperties(ref, 'rowsData', props.rowsData);
|
| 872 |
+
useProperties(ref, 'columnDefinitions', props.columnDefinitions);
|
| 873 |
+
useProperties(ref, 'rowItemTemplate', props.rowItemTemplate);
|
| 874 |
+
useProperties(ref, 'cellItemTemplate', props.cellItemTemplate);
|
| 875 |
+
useProperties(ref, 'headerCellItemTemplate', props.headerCellItemTemplate);
|
| 876 |
+
useProperties(ref, 'focusRowIndex', props.focusRowIndex);
|
| 877 |
+
useProperties(ref, 'focusColumnIndex', props.focusColumnIndex);
|
| 878 |
+
useProperties(ref, 'rowElementTag', props.rowElementTag);
|
| 879 |
+
|
| 880 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 881 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 882 |
+
|
| 883 |
+
return react_index_js_default().createElement(
|
| 884 |
+
'jp-data-grid',
|
| 885 |
+
{
|
| 886 |
+
ref,
|
| 887 |
+
...filteredProps,
|
| 888 |
+
'generate-header': props.generateHeader || props['generate-header'],
|
| 889 |
+
'grid-template-columns':
|
| 890 |
+
props.gridTemplateColumns || props['grid-template-columns'],
|
| 891 |
+
class: props.className,
|
| 892 |
+
exportparts: props.exportparts,
|
| 893 |
+
for: props.htmlFor,
|
| 894 |
+
part: props.part,
|
| 895 |
+
tabindex: props.tabIndex,
|
| 896 |
+
'no-tabbing': props.noTabbing ? '' : undefined,
|
| 897 |
+
style: { ...props.style }
|
| 898 |
+
},
|
| 899 |
+
props.children
|
| 900 |
+
);
|
| 901 |
+
});
|
| 902 |
+
|
| 903 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Dialog.js
|
| 904 |
+
|
| 905 |
+
|
| 906 |
+
|
| 907 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDialog)());
|
| 908 |
+
|
| 909 |
+
const Dialog = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 910 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 911 |
+
const {
|
| 912 |
+
className,
|
| 913 |
+
trapFocus,
|
| 914 |
+
ariaDescribedby,
|
| 915 |
+
ariaLabelledby,
|
| 916 |
+
ariaLabel,
|
| 917 |
+
modal,
|
| 918 |
+
hidden,
|
| 919 |
+
...filteredProps
|
| 920 |
+
} = props;
|
| 921 |
+
|
| 922 |
+
/** Event listeners - run once */
|
| 923 |
+
useEventListener(ref, 'cancel', props.onCancel);
|
| 924 |
+
useEventListener(ref, 'close', props.onClose);
|
| 925 |
+
|
| 926 |
+
/** Properties - run whenever a property has changed */
|
| 927 |
+
useProperties(ref, 'modal', props.modal);
|
| 928 |
+
useProperties(ref, 'hidden', props.hidden);
|
| 929 |
+
|
| 930 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 931 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ({
|
| 932 |
+
show: () => ref.current.show(),
|
| 933 |
+
hide: () => ref.current.hide(),
|
| 934 |
+
compose: (this_, elementDefinition) =>
|
| 935 |
+
ref.current.compose(this_, elementDefinition)
|
| 936 |
+
}));
|
| 937 |
+
|
| 938 |
+
return react_index_js_default().createElement(
|
| 939 |
+
'jp-dialog',
|
| 940 |
+
{
|
| 941 |
+
ref,
|
| 942 |
+
...filteredProps,
|
| 943 |
+
'aria-describedby': props.ariaDescribedby || props['aria-describedby'],
|
| 944 |
+
'aria-labelledby': props.ariaLabelledby || props['aria-labelledby'],
|
| 945 |
+
'aria-label': props.ariaLabel || props['aria-label'],
|
| 946 |
+
class: props.className,
|
| 947 |
+
exportparts: props.exportparts,
|
| 948 |
+
for: props.htmlFor,
|
| 949 |
+
part: props.part,
|
| 950 |
+
tabindex: props.tabIndex,
|
| 951 |
+
'trap-focus': props.trapFocus ? '' : undefined,
|
| 952 |
+
style: { ...props.style }
|
| 953 |
+
},
|
| 954 |
+
props.children
|
| 955 |
+
);
|
| 956 |
+
});
|
| 957 |
+
|
| 958 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Disclosure.js
|
| 959 |
+
|
| 960 |
+
|
| 961 |
+
|
| 962 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDisclosure)());
|
| 963 |
+
|
| 964 |
+
const Disclosure = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 965 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 966 |
+
const { className, appearance, title, expanded, ...filteredProps } = props;
|
| 967 |
+
|
| 968 |
+
/** Event listeners - run once */
|
| 969 |
+
useEventListener(ref, 'toggle', props.onToggle);
|
| 970 |
+
|
| 971 |
+
/** Properties - run whenever a property has changed */
|
| 972 |
+
useProperties(ref, 'expanded', props.expanded);
|
| 973 |
+
|
| 974 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 975 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 976 |
+
|
| 977 |
+
return react_index_js_default().createElement(
|
| 978 |
+
'jp-disclosure',
|
| 979 |
+
{
|
| 980 |
+
ref,
|
| 981 |
+
...filteredProps,
|
| 982 |
+
appearance: props.appearance,
|
| 983 |
+
title: props.title,
|
| 984 |
+
class: props.className,
|
| 985 |
+
exportparts: props.exportparts,
|
| 986 |
+
for: props.htmlFor,
|
| 987 |
+
part: props.part,
|
| 988 |
+
tabindex: props.tabIndex,
|
| 989 |
+
style: { ...props.style }
|
| 990 |
+
},
|
| 991 |
+
props.children
|
| 992 |
+
);
|
| 993 |
+
});
|
| 994 |
+
|
| 995 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Divider.js
|
| 996 |
+
|
| 997 |
+
|
| 998 |
+
|
| 999 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpDivider)());
|
| 1000 |
+
|
| 1001 |
+
const Divider = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1002 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1003 |
+
const { className, role, orientation, ...filteredProps } = props;
|
| 1004 |
+
|
| 1005 |
+
/** Properties - run whenever a property has changed */
|
| 1006 |
+
|
| 1007 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1008 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1009 |
+
|
| 1010 |
+
return react_index_js_default().createElement(
|
| 1011 |
+
'jp-divider',
|
| 1012 |
+
{
|
| 1013 |
+
ref,
|
| 1014 |
+
...filteredProps,
|
| 1015 |
+
role: props.role,
|
| 1016 |
+
orientation: props.orientation,
|
| 1017 |
+
class: props.className,
|
| 1018 |
+
exportparts: props.exportparts,
|
| 1019 |
+
for: props.htmlFor,
|
| 1020 |
+
part: props.part,
|
| 1021 |
+
tabindex: props.tabIndex,
|
| 1022 |
+
style: { ...props.style }
|
| 1023 |
+
},
|
| 1024 |
+
props.children
|
| 1025 |
+
);
|
| 1026 |
+
});
|
| 1027 |
+
|
| 1028 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Listbox.js
|
| 1029 |
+
|
| 1030 |
+
|
| 1031 |
+
|
| 1032 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpListbox)());
|
| 1033 |
+
|
| 1034 |
+
const Listbox = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1035 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1036 |
+
const {
|
| 1037 |
+
className,
|
| 1038 |
+
multiple,
|
| 1039 |
+
size,
|
| 1040 |
+
length,
|
| 1041 |
+
options,
|
| 1042 |
+
disabled,
|
| 1043 |
+
selectedIndex,
|
| 1044 |
+
selectedOptions,
|
| 1045 |
+
...filteredProps
|
| 1046 |
+
} = props;
|
| 1047 |
+
|
| 1048 |
+
/** Event listeners - run once */
|
| 1049 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1050 |
+
|
| 1051 |
+
/** Properties - run whenever a property has changed */
|
| 1052 |
+
useProperties(ref, 'multiple', props.multiple);
|
| 1053 |
+
useProperties(ref, 'size', props.size);
|
| 1054 |
+
useProperties(ref, 'length', props.length);
|
| 1055 |
+
useProperties(ref, 'options', props.options);
|
| 1056 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1057 |
+
useProperties(ref, 'selectedIndex', props.selectedIndex);
|
| 1058 |
+
useProperties(ref, 'selectedOptions', props.selectedOptions);
|
| 1059 |
+
|
| 1060 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1061 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1062 |
+
|
| 1063 |
+
return react_index_js_default().createElement(
|
| 1064 |
+
'jp-listbox',
|
| 1065 |
+
{
|
| 1066 |
+
ref,
|
| 1067 |
+
...filteredProps,
|
| 1068 |
+
class: props.className,
|
| 1069 |
+
exportparts: props.exportparts,
|
| 1070 |
+
for: props.htmlFor,
|
| 1071 |
+
part: props.part,
|
| 1072 |
+
tabindex: props.tabIndex,
|
| 1073 |
+
style: { ...props.style }
|
| 1074 |
+
},
|
| 1075 |
+
props.children
|
| 1076 |
+
);
|
| 1077 |
+
});
|
| 1078 |
+
|
| 1079 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/MenuItem.js
|
| 1080 |
+
|
| 1081 |
+
|
| 1082 |
+
|
| 1083 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpMenuItem)());
|
| 1084 |
+
|
| 1085 |
+
const MenuItem = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1086 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1087 |
+
const { className, role, disabled, expanded, checked, ...filteredProps } =
|
| 1088 |
+
props;
|
| 1089 |
+
|
| 1090 |
+
/** Event listeners - run once */
|
| 1091 |
+
useEventListener(ref, 'expanded-change', props.onExpand);
|
| 1092 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1093 |
+
|
| 1094 |
+
/** Properties - run whenever a property has changed */
|
| 1095 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1096 |
+
useProperties(ref, 'expanded', props.expanded);
|
| 1097 |
+
useProperties(ref, 'checked', props.checked);
|
| 1098 |
+
|
| 1099 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1100 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1101 |
+
|
| 1102 |
+
// Add web component internal classes on top of `className`
|
| 1103 |
+
let allClasses = className ?? '';
|
| 1104 |
+
if (ref.current) {
|
| 1105 |
+
allClasses += ` indent-${ref.current.startColumnCount}`;
|
| 1106 |
+
if (ref.current.expanded) {
|
| 1107 |
+
allClasses += ' expanded';
|
| 1108 |
+
}
|
| 1109 |
+
}
|
| 1110 |
+
|
| 1111 |
+
return react_index_js_default().createElement(
|
| 1112 |
+
'jp-menu-item',
|
| 1113 |
+
{
|
| 1114 |
+
ref,
|
| 1115 |
+
...filteredProps,
|
| 1116 |
+
role: props.role,
|
| 1117 |
+
class: allClasses.trim(),
|
| 1118 |
+
exportparts: props.exportparts,
|
| 1119 |
+
for: props.htmlFor,
|
| 1120 |
+
part: props.part,
|
| 1121 |
+
tabindex: props.tabIndex,
|
| 1122 |
+
style: { ...props.style }
|
| 1123 |
+
},
|
| 1124 |
+
props.children
|
| 1125 |
+
);
|
| 1126 |
+
});
|
| 1127 |
+
|
| 1128 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Menu.js
|
| 1129 |
+
|
| 1130 |
+
|
| 1131 |
+
|
| 1132 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpMenu)());
|
| 1133 |
+
|
| 1134 |
+
const Menu = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1135 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1136 |
+
const { className, ...filteredProps } = props;
|
| 1137 |
+
|
| 1138 |
+
/** Properties - run whenever a property has changed */
|
| 1139 |
+
|
| 1140 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1141 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1142 |
+
|
| 1143 |
+
return react_index_js_default().createElement(
|
| 1144 |
+
'jp-menu',
|
| 1145 |
+
{
|
| 1146 |
+
ref,
|
| 1147 |
+
...filteredProps,
|
| 1148 |
+
class: props.className,
|
| 1149 |
+
exportparts: props.exportparts,
|
| 1150 |
+
for: props.htmlFor,
|
| 1151 |
+
part: props.part,
|
| 1152 |
+
tabindex: props.tabIndex,
|
| 1153 |
+
style: { ...props.style }
|
| 1154 |
+
},
|
| 1155 |
+
props.children
|
| 1156 |
+
);
|
| 1157 |
+
});
|
| 1158 |
+
|
| 1159 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/NumberField.js
|
| 1160 |
+
|
| 1161 |
+
|
| 1162 |
+
|
| 1163 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpNumberField)());
|
| 1164 |
+
|
| 1165 |
+
const NumberField = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1166 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1167 |
+
const {
|
| 1168 |
+
className,
|
| 1169 |
+
readonly,
|
| 1170 |
+
hideStep,
|
| 1171 |
+
appearance,
|
| 1172 |
+
placeholder,
|
| 1173 |
+
list,
|
| 1174 |
+
readOnly,
|
| 1175 |
+
autofocus,
|
| 1176 |
+
maxlength,
|
| 1177 |
+
minlength,
|
| 1178 |
+
size,
|
| 1179 |
+
step,
|
| 1180 |
+
max,
|
| 1181 |
+
min,
|
| 1182 |
+
disabled,
|
| 1183 |
+
required,
|
| 1184 |
+
...filteredProps
|
| 1185 |
+
} = props;
|
| 1186 |
+
|
| 1187 |
+
/** Event listeners - run once */
|
| 1188 |
+
useEventListener(ref, 'input', props.onInput);
|
| 1189 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1190 |
+
|
| 1191 |
+
/** Properties - run whenever a property has changed */
|
| 1192 |
+
useProperties(ref, 'readOnly', props.readOnly);
|
| 1193 |
+
useProperties(ref, 'autofocus', props.autofocus);
|
| 1194 |
+
useProperties(ref, 'maxlength', props.maxlength);
|
| 1195 |
+
useProperties(ref, 'minlength', props.minlength);
|
| 1196 |
+
useProperties(ref, 'size', props.size);
|
| 1197 |
+
useProperties(ref, 'step', props.step);
|
| 1198 |
+
useProperties(ref, 'max', props.max);
|
| 1199 |
+
useProperties(ref, 'min', props.min);
|
| 1200 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1201 |
+
useProperties(ref, 'required', props.required);
|
| 1202 |
+
|
| 1203 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1204 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1205 |
+
|
| 1206 |
+
return react_index_js_default().createElement(
|
| 1207 |
+
'jp-number-field',
|
| 1208 |
+
{
|
| 1209 |
+
ref,
|
| 1210 |
+
...filteredProps,
|
| 1211 |
+
appearance: props.appearance,
|
| 1212 |
+
placeholder: props.placeholder,
|
| 1213 |
+
list: props.list,
|
| 1214 |
+
class: props.className,
|
| 1215 |
+
exportparts: props.exportparts,
|
| 1216 |
+
for: props.htmlFor,
|
| 1217 |
+
part: props.part,
|
| 1218 |
+
tabindex: props.tabIndex,
|
| 1219 |
+
readonly: props.readonly ? '' : undefined,
|
| 1220 |
+
'hide-step': props.hideStep ? '' : undefined,
|
| 1221 |
+
style: { ...props.style }
|
| 1222 |
+
},
|
| 1223 |
+
props.children
|
| 1224 |
+
);
|
| 1225 |
+
});
|
| 1226 |
+
|
| 1227 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Option.js
|
| 1228 |
+
|
| 1229 |
+
|
| 1230 |
+
|
| 1231 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpOption)());
|
| 1232 |
+
|
| 1233 |
+
const Option = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1234 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1235 |
+
const {
|
| 1236 |
+
className,
|
| 1237 |
+
selected,
|
| 1238 |
+
value,
|
| 1239 |
+
checked,
|
| 1240 |
+
content,
|
| 1241 |
+
defaultSelected,
|
| 1242 |
+
disabled,
|
| 1243 |
+
selectedAttribute,
|
| 1244 |
+
dirtyValue,
|
| 1245 |
+
...filteredProps
|
| 1246 |
+
} = props;
|
| 1247 |
+
|
| 1248 |
+
/** Properties - run whenever a property has changed */
|
| 1249 |
+
useProperties(ref, 'checked', props.checked);
|
| 1250 |
+
useProperties(ref, 'content', props.content);
|
| 1251 |
+
useProperties(ref, 'defaultSelected', props.defaultSelected);
|
| 1252 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1253 |
+
useProperties(ref, 'selectedAttribute', props.selectedAttribute);
|
| 1254 |
+
useProperties(ref, 'dirtyValue', props.dirtyValue);
|
| 1255 |
+
|
| 1256 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1257 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1258 |
+
|
| 1259 |
+
return react_index_js_default().createElement(
|
| 1260 |
+
'jp-option',
|
| 1261 |
+
{
|
| 1262 |
+
ref,
|
| 1263 |
+
...filteredProps,
|
| 1264 |
+
value: props.value,
|
| 1265 |
+
class: props.className,
|
| 1266 |
+
exportparts: props.exportparts,
|
| 1267 |
+
for: props.htmlFor,
|
| 1268 |
+
part: props.part,
|
| 1269 |
+
tabindex: props.tabIndex,
|
| 1270 |
+
selected: props.selected ? '' : undefined,
|
| 1271 |
+
style: { ...props.style }
|
| 1272 |
+
},
|
| 1273 |
+
props.children
|
| 1274 |
+
);
|
| 1275 |
+
});
|
| 1276 |
+
|
| 1277 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/ProgressRing.js
|
| 1278 |
+
|
| 1279 |
+
|
| 1280 |
+
|
| 1281 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpProgressRing)());
|
| 1282 |
+
|
| 1283 |
+
const ProgressRing = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1284 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1285 |
+
const { className, value, min, max, paused, ...filteredProps } = props;
|
| 1286 |
+
|
| 1287 |
+
/** Properties - run whenever a property has changed */
|
| 1288 |
+
useProperties(ref, 'value', props.value);
|
| 1289 |
+
useProperties(ref, 'min', props.min);
|
| 1290 |
+
useProperties(ref, 'max', props.max);
|
| 1291 |
+
useProperties(ref, 'paused', props.paused);
|
| 1292 |
+
|
| 1293 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1294 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1295 |
+
|
| 1296 |
+
return react_index_js_default().createElement(
|
| 1297 |
+
'jp-progress-ring',
|
| 1298 |
+
{
|
| 1299 |
+
ref,
|
| 1300 |
+
...filteredProps,
|
| 1301 |
+
class: props.className,
|
| 1302 |
+
exportparts: props.exportparts,
|
| 1303 |
+
for: props.htmlFor,
|
| 1304 |
+
part: props.part,
|
| 1305 |
+
tabindex: props.tabIndex,
|
| 1306 |
+
style: { ...props.style }
|
| 1307 |
+
},
|
| 1308 |
+
props.children
|
| 1309 |
+
);
|
| 1310 |
+
});
|
| 1311 |
+
|
| 1312 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Progress.js
|
| 1313 |
+
|
| 1314 |
+
|
| 1315 |
+
|
| 1316 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpProgress)());
|
| 1317 |
+
|
| 1318 |
+
const Progress = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1319 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1320 |
+
const { className, value, min, max, paused, ...filteredProps } = props;
|
| 1321 |
+
|
| 1322 |
+
/** Properties - run whenever a property has changed */
|
| 1323 |
+
useProperties(ref, 'value', props.value);
|
| 1324 |
+
useProperties(ref, 'min', props.min);
|
| 1325 |
+
useProperties(ref, 'max', props.max);
|
| 1326 |
+
useProperties(ref, 'paused', props.paused);
|
| 1327 |
+
|
| 1328 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1329 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1330 |
+
|
| 1331 |
+
return react_index_js_default().createElement(
|
| 1332 |
+
'jp-progress',
|
| 1333 |
+
{
|
| 1334 |
+
ref,
|
| 1335 |
+
...filteredProps,
|
| 1336 |
+
class: props.className,
|
| 1337 |
+
exportparts: props.exportparts,
|
| 1338 |
+
for: props.htmlFor,
|
| 1339 |
+
part: props.part,
|
| 1340 |
+
tabindex: props.tabIndex,
|
| 1341 |
+
style: { ...props.style }
|
| 1342 |
+
},
|
| 1343 |
+
props.children
|
| 1344 |
+
);
|
| 1345 |
+
});
|
| 1346 |
+
|
| 1347 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Radio.js
|
| 1348 |
+
|
| 1349 |
+
|
| 1350 |
+
|
| 1351 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpRadio)());
|
| 1352 |
+
|
| 1353 |
+
const Radio = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1354 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1355 |
+
const {
|
| 1356 |
+
className,
|
| 1357 |
+
readonly,
|
| 1358 |
+
readOnly,
|
| 1359 |
+
name,
|
| 1360 |
+
checked,
|
| 1361 |
+
disabled,
|
| 1362 |
+
required,
|
| 1363 |
+
...filteredProps
|
| 1364 |
+
} = props;
|
| 1365 |
+
|
| 1366 |
+
/** Event listeners - run once */
|
| 1367 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1368 |
+
|
| 1369 |
+
/** Properties - run whenever a property has changed */
|
| 1370 |
+
useProperties(ref, 'readOnly', props.readOnly);
|
| 1371 |
+
useProperties(ref, 'name', props.name);
|
| 1372 |
+
useProperties(ref, 'checked', props.checked);
|
| 1373 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1374 |
+
useProperties(ref, 'required', props.required);
|
| 1375 |
+
|
| 1376 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1377 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1378 |
+
|
| 1379 |
+
return react_index_js_default().createElement(
|
| 1380 |
+
'jp-radio',
|
| 1381 |
+
{
|
| 1382 |
+
ref,
|
| 1383 |
+
...filteredProps,
|
| 1384 |
+
class: props.className,
|
| 1385 |
+
exportparts: props.exportparts,
|
| 1386 |
+
for: props.htmlFor,
|
| 1387 |
+
part: props.part,
|
| 1388 |
+
tabindex: props.tabIndex,
|
| 1389 |
+
readonly: props.readonly ? '' : undefined,
|
| 1390 |
+
style: { ...props.style }
|
| 1391 |
+
},
|
| 1392 |
+
props.children
|
| 1393 |
+
);
|
| 1394 |
+
});
|
| 1395 |
+
|
| 1396 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/RadioGroup.js
|
| 1397 |
+
|
| 1398 |
+
|
| 1399 |
+
|
| 1400 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpRadioGroup)());
|
| 1401 |
+
|
| 1402 |
+
const RadioGroup = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1403 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1404 |
+
const {
|
| 1405 |
+
className,
|
| 1406 |
+
readonly,
|
| 1407 |
+
disabled,
|
| 1408 |
+
name,
|
| 1409 |
+
value,
|
| 1410 |
+
orientation,
|
| 1411 |
+
readOnly,
|
| 1412 |
+
...filteredProps
|
| 1413 |
+
} = props;
|
| 1414 |
+
|
| 1415 |
+
/** Event listeners - run once */
|
| 1416 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1417 |
+
|
| 1418 |
+
/** Properties - run whenever a property has changed */
|
| 1419 |
+
useProperties(ref, 'readOnly', props.readOnly);
|
| 1420 |
+
|
| 1421 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1422 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1423 |
+
|
| 1424 |
+
return react_index_js_default().createElement(
|
| 1425 |
+
'jp-radio-group',
|
| 1426 |
+
{
|
| 1427 |
+
ref,
|
| 1428 |
+
...filteredProps,
|
| 1429 |
+
name: props.name,
|
| 1430 |
+
value: props.value,
|
| 1431 |
+
orientation: props.orientation,
|
| 1432 |
+
class: props.className,
|
| 1433 |
+
exportparts: props.exportparts,
|
| 1434 |
+
for: props.htmlFor,
|
| 1435 |
+
part: props.part,
|
| 1436 |
+
tabindex: props.tabIndex,
|
| 1437 |
+
readonly: props.readonly ? '' : undefined,
|
| 1438 |
+
disabled: props.disabled ? '' : undefined,
|
| 1439 |
+
style: { ...props.style }
|
| 1440 |
+
},
|
| 1441 |
+
props.children
|
| 1442 |
+
);
|
| 1443 |
+
});
|
| 1444 |
+
|
| 1445 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Search.js
|
| 1446 |
+
|
| 1447 |
+
|
| 1448 |
+
|
| 1449 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSearch)());
|
| 1450 |
+
|
| 1451 |
+
const Search = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1452 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1453 |
+
const {
|
| 1454 |
+
className,
|
| 1455 |
+
readonly,
|
| 1456 |
+
appearance,
|
| 1457 |
+
placeholder,
|
| 1458 |
+
list,
|
| 1459 |
+
pattern,
|
| 1460 |
+
readOnly,
|
| 1461 |
+
autofocus,
|
| 1462 |
+
maxlength,
|
| 1463 |
+
minlength,
|
| 1464 |
+
size,
|
| 1465 |
+
spellcheck,
|
| 1466 |
+
disabled,
|
| 1467 |
+
required,
|
| 1468 |
+
...filteredProps
|
| 1469 |
+
} = props;
|
| 1470 |
+
|
| 1471 |
+
/** Event listeners - run once */
|
| 1472 |
+
useEventListener(ref, 'input', props.onInput);
|
| 1473 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1474 |
+
|
| 1475 |
+
/** Properties - run whenever a property has changed */
|
| 1476 |
+
useProperties(ref, 'readOnly', props.readOnly);
|
| 1477 |
+
useProperties(ref, 'autofocus', props.autofocus);
|
| 1478 |
+
useProperties(ref, 'maxlength', props.maxlength);
|
| 1479 |
+
useProperties(ref, 'minlength', props.minlength);
|
| 1480 |
+
useProperties(ref, 'size', props.size);
|
| 1481 |
+
useProperties(ref, 'spellcheck', props.spellcheck);
|
| 1482 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1483 |
+
useProperties(ref, 'required', props.required);
|
| 1484 |
+
|
| 1485 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1486 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1487 |
+
|
| 1488 |
+
return react_index_js_default().createElement(
|
| 1489 |
+
'jp-search',
|
| 1490 |
+
{
|
| 1491 |
+
ref,
|
| 1492 |
+
...filteredProps,
|
| 1493 |
+
appearance: props.appearance,
|
| 1494 |
+
placeholder: props.placeholder,
|
| 1495 |
+
list: props.list,
|
| 1496 |
+
pattern: props.pattern,
|
| 1497 |
+
class: props.className,
|
| 1498 |
+
exportparts: props.exportparts,
|
| 1499 |
+
for: props.htmlFor,
|
| 1500 |
+
part: props.part,
|
| 1501 |
+
tabindex: props.tabIndex,
|
| 1502 |
+
readonly: props.readonly ? '' : undefined,
|
| 1503 |
+
style: { ...props.style }
|
| 1504 |
+
},
|
| 1505 |
+
props.children
|
| 1506 |
+
);
|
| 1507 |
+
});
|
| 1508 |
+
|
| 1509 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Select.js
|
| 1510 |
+
|
| 1511 |
+
|
| 1512 |
+
|
| 1513 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSelect)());
|
| 1514 |
+
|
| 1515 |
+
const Select = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1516 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1517 |
+
const {
|
| 1518 |
+
className,
|
| 1519 |
+
autowidth,
|
| 1520 |
+
minimal,
|
| 1521 |
+
open,
|
| 1522 |
+
position,
|
| 1523 |
+
autoWidth,
|
| 1524 |
+
value,
|
| 1525 |
+
displayValue,
|
| 1526 |
+
multiple,
|
| 1527 |
+
size,
|
| 1528 |
+
length,
|
| 1529 |
+
options,
|
| 1530 |
+
disabled,
|
| 1531 |
+
selectedIndex,
|
| 1532 |
+
selectedOptions,
|
| 1533 |
+
required,
|
| 1534 |
+
...filteredProps
|
| 1535 |
+
} = props;
|
| 1536 |
+
|
| 1537 |
+
/** Event listeners - run once */
|
| 1538 |
+
useEventListener(ref, 'input', props.onInput);
|
| 1539 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1540 |
+
|
| 1541 |
+
/** Properties - run whenever a property has changed */
|
| 1542 |
+
useProperties(ref, 'autoWidth', props.autoWidth);
|
| 1543 |
+
useProperties(ref, 'value', props.value);
|
| 1544 |
+
useProperties(ref, 'displayValue', props.displayValue);
|
| 1545 |
+
useProperties(ref, 'multiple', props.multiple);
|
| 1546 |
+
useProperties(ref, 'size', props.size);
|
| 1547 |
+
useProperties(ref, 'length', props.length);
|
| 1548 |
+
useProperties(ref, 'options', props.options);
|
| 1549 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1550 |
+
useProperties(ref, 'selectedIndex', props.selectedIndex);
|
| 1551 |
+
useProperties(ref, 'selectedOptions', props.selectedOptions);
|
| 1552 |
+
useProperties(ref, 'required', props.required);
|
| 1553 |
+
|
| 1554 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1555 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1556 |
+
|
| 1557 |
+
return react_index_js_default().createElement(
|
| 1558 |
+
'jp-select',
|
| 1559 |
+
{
|
| 1560 |
+
ref,
|
| 1561 |
+
...filteredProps,
|
| 1562 |
+
position: props.position,
|
| 1563 |
+
class: props.className,
|
| 1564 |
+
exportparts: props.exportparts,
|
| 1565 |
+
for: props.htmlFor,
|
| 1566 |
+
part: props.part,
|
| 1567 |
+
tabindex: props.tabIndex,
|
| 1568 |
+
autowidth: props.autowidth ? '' : undefined,
|
| 1569 |
+
minimal: props.minimal ? '' : undefined,
|
| 1570 |
+
open: props.open ? '' : undefined,
|
| 1571 |
+
style: { ...props.style }
|
| 1572 |
+
},
|
| 1573 |
+
props.children
|
| 1574 |
+
);
|
| 1575 |
+
});
|
| 1576 |
+
|
| 1577 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Skeleton.js
|
| 1578 |
+
|
| 1579 |
+
|
| 1580 |
+
|
| 1581 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSkeleton)());
|
| 1582 |
+
|
| 1583 |
+
const Skeleton = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1584 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1585 |
+
const { className, fill, shape, pattern, shimmer, ...filteredProps } = props;
|
| 1586 |
+
|
| 1587 |
+
/** Properties - run whenever a property has changed */
|
| 1588 |
+
useProperties(ref, 'shimmer', props.shimmer);
|
| 1589 |
+
|
| 1590 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1591 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1592 |
+
|
| 1593 |
+
return react_index_js_default().createElement(
|
| 1594 |
+
'jp-skeleton',
|
| 1595 |
+
{
|
| 1596 |
+
ref,
|
| 1597 |
+
...filteredProps,
|
| 1598 |
+
fill: props.fill,
|
| 1599 |
+
shape: props.shape,
|
| 1600 |
+
pattern: props.pattern,
|
| 1601 |
+
class: props.className,
|
| 1602 |
+
exportparts: props.exportparts,
|
| 1603 |
+
for: props.htmlFor,
|
| 1604 |
+
part: props.part,
|
| 1605 |
+
tabindex: props.tabIndex,
|
| 1606 |
+
style: { ...props.style }
|
| 1607 |
+
},
|
| 1608 |
+
props.children
|
| 1609 |
+
);
|
| 1610 |
+
});
|
| 1611 |
+
|
| 1612 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Slider.js
|
| 1613 |
+
|
| 1614 |
+
|
| 1615 |
+
|
| 1616 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSlider)());
|
| 1617 |
+
|
| 1618 |
+
const Slider = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1619 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1620 |
+
const {
|
| 1621 |
+
className,
|
| 1622 |
+
readonly,
|
| 1623 |
+
orientation,
|
| 1624 |
+
mode,
|
| 1625 |
+
readOnly,
|
| 1626 |
+
valueAsNumber,
|
| 1627 |
+
valueTextFormatter,
|
| 1628 |
+
min,
|
| 1629 |
+
max,
|
| 1630 |
+
step,
|
| 1631 |
+
disabled,
|
| 1632 |
+
required,
|
| 1633 |
+
...filteredProps
|
| 1634 |
+
} = props;
|
| 1635 |
+
|
| 1636 |
+
/** Event listeners - run once */
|
| 1637 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1638 |
+
|
| 1639 |
+
/** Properties - run whenever a property has changed */
|
| 1640 |
+
useProperties(ref, 'readOnly', props.readOnly);
|
| 1641 |
+
useProperties(ref, 'valueAsNumber', props.valueAsNumber);
|
| 1642 |
+
useProperties(ref, 'valueTextFormatter', props.valueTextFormatter);
|
| 1643 |
+
useProperties(ref, 'min', props.min);
|
| 1644 |
+
useProperties(ref, 'max', props.max);
|
| 1645 |
+
useProperties(ref, 'step', props.step);
|
| 1646 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1647 |
+
useProperties(ref, 'required', props.required);
|
| 1648 |
+
|
| 1649 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1650 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1651 |
+
|
| 1652 |
+
return react_index_js_default().createElement(
|
| 1653 |
+
'jp-slider',
|
| 1654 |
+
{
|
| 1655 |
+
ref,
|
| 1656 |
+
...filteredProps,
|
| 1657 |
+
orientation: props.orientation,
|
| 1658 |
+
mode: props.mode,
|
| 1659 |
+
class: props.className,
|
| 1660 |
+
exportparts: props.exportparts,
|
| 1661 |
+
for: props.htmlFor,
|
| 1662 |
+
part: props.part,
|
| 1663 |
+
tabindex: props.tabIndex,
|
| 1664 |
+
readonly: props.readonly ? '' : undefined,
|
| 1665 |
+
style: { ...props.style }
|
| 1666 |
+
},
|
| 1667 |
+
props.children
|
| 1668 |
+
);
|
| 1669 |
+
});
|
| 1670 |
+
|
| 1671 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/SliderLabel.js
|
| 1672 |
+
|
| 1673 |
+
|
| 1674 |
+
|
| 1675 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSliderLabel)());
|
| 1676 |
+
|
| 1677 |
+
const SliderLabel = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1678 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1679 |
+
const { className, hideMark, disabled, position, ...filteredProps } = props;
|
| 1680 |
+
|
| 1681 |
+
/** Properties - run whenever a property has changed */
|
| 1682 |
+
|
| 1683 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1684 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1685 |
+
|
| 1686 |
+
// Add web component internal classes on top of `className`
|
| 1687 |
+
let allClasses = className ?? '';
|
| 1688 |
+
if (ref.current?.disabled) {
|
| 1689 |
+
allClasses += ' disabled';
|
| 1690 |
+
}
|
| 1691 |
+
|
| 1692 |
+
return react_index_js_default().createElement(
|
| 1693 |
+
'jp-slider-label',
|
| 1694 |
+
{
|
| 1695 |
+
ref,
|
| 1696 |
+
...filteredProps,
|
| 1697 |
+
position: props.position,
|
| 1698 |
+
class: allClasses.trim(),
|
| 1699 |
+
exportparts: props.exportparts,
|
| 1700 |
+
for: props.htmlFor,
|
| 1701 |
+
part: props.part,
|
| 1702 |
+
tabindex: props.tabIndex,
|
| 1703 |
+
'hide-mark': props.hideMark ? '' : undefined,
|
| 1704 |
+
disabled: props.disabled ? '' : undefined,
|
| 1705 |
+
style: { ...props.style }
|
| 1706 |
+
},
|
| 1707 |
+
props.children
|
| 1708 |
+
);
|
| 1709 |
+
});
|
| 1710 |
+
|
| 1711 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Switch.js
|
| 1712 |
+
|
| 1713 |
+
|
| 1714 |
+
|
| 1715 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpSwitch)());
|
| 1716 |
+
|
| 1717 |
+
const Switch = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1718 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1719 |
+
const {
|
| 1720 |
+
className,
|
| 1721 |
+
readonly,
|
| 1722 |
+
readOnly,
|
| 1723 |
+
checked,
|
| 1724 |
+
disabled,
|
| 1725 |
+
required,
|
| 1726 |
+
...filteredProps
|
| 1727 |
+
} = props;
|
| 1728 |
+
|
| 1729 |
+
/** Event listeners - run once */
|
| 1730 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1731 |
+
|
| 1732 |
+
/** Properties - run whenever a property has changed */
|
| 1733 |
+
useProperties(ref, 'readOnly', props.readOnly);
|
| 1734 |
+
useProperties(ref, 'checked', props.checked);
|
| 1735 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1736 |
+
useProperties(ref, 'required', props.required);
|
| 1737 |
+
|
| 1738 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1739 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1740 |
+
|
| 1741 |
+
return react_index_js_default().createElement(
|
| 1742 |
+
'jp-switch',
|
| 1743 |
+
{
|
| 1744 |
+
ref,
|
| 1745 |
+
...filteredProps,
|
| 1746 |
+
class: props.className,
|
| 1747 |
+
exportparts: props.exportparts,
|
| 1748 |
+
for: props.htmlFor,
|
| 1749 |
+
part: props.part,
|
| 1750 |
+
tabindex: props.tabIndex,
|
| 1751 |
+
readonly: props.readonly ? '' : undefined,
|
| 1752 |
+
style: { ...props.style }
|
| 1753 |
+
},
|
| 1754 |
+
props.children
|
| 1755 |
+
);
|
| 1756 |
+
});
|
| 1757 |
+
|
| 1758 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Tab.js
|
| 1759 |
+
|
| 1760 |
+
|
| 1761 |
+
|
| 1762 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTab)());
|
| 1763 |
+
|
| 1764 |
+
const Tab = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1765 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1766 |
+
const { className, disabled, ...filteredProps } = props;
|
| 1767 |
+
|
| 1768 |
+
/** Properties - run whenever a property has changed */
|
| 1769 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1770 |
+
|
| 1771 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1772 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1773 |
+
|
| 1774 |
+
// Add web component internal classes on top of `className`
|
| 1775 |
+
let allClasses = className ?? '';
|
| 1776 |
+
if (ref.current?.classList.contains('vertical')) {
|
| 1777 |
+
allClasses += ' vertical';
|
| 1778 |
+
}
|
| 1779 |
+
|
| 1780 |
+
return react_index_js_default().createElement(
|
| 1781 |
+
'jp-tab',
|
| 1782 |
+
{
|
| 1783 |
+
ref,
|
| 1784 |
+
...filteredProps,
|
| 1785 |
+
class: allClasses.trim(),
|
| 1786 |
+
exportparts: props.exportparts,
|
| 1787 |
+
for: props.htmlFor,
|
| 1788 |
+
part: props.part,
|
| 1789 |
+
tabindex: props.tabIndex,
|
| 1790 |
+
style: { ...props.style }
|
| 1791 |
+
},
|
| 1792 |
+
props.children
|
| 1793 |
+
);
|
| 1794 |
+
});
|
| 1795 |
+
|
| 1796 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/TabPanel.js
|
| 1797 |
+
|
| 1798 |
+
|
| 1799 |
+
|
| 1800 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTabPanel)());
|
| 1801 |
+
|
| 1802 |
+
const TabPanel = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1803 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1804 |
+
const { className, ...filteredProps } = props;
|
| 1805 |
+
|
| 1806 |
+
/** Properties - run whenever a property has changed */
|
| 1807 |
+
|
| 1808 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1809 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1810 |
+
|
| 1811 |
+
return react_index_js_default().createElement(
|
| 1812 |
+
'jp-tab-panel',
|
| 1813 |
+
{
|
| 1814 |
+
ref,
|
| 1815 |
+
...filteredProps,
|
| 1816 |
+
class: props.className,
|
| 1817 |
+
exportparts: props.exportparts,
|
| 1818 |
+
for: props.htmlFor,
|
| 1819 |
+
part: props.part,
|
| 1820 |
+
tabindex: props.tabIndex,
|
| 1821 |
+
style: { ...props.style }
|
| 1822 |
+
},
|
| 1823 |
+
props.children
|
| 1824 |
+
);
|
| 1825 |
+
});
|
| 1826 |
+
|
| 1827 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Tabs.js
|
| 1828 |
+
|
| 1829 |
+
|
| 1830 |
+
|
| 1831 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTabs)());
|
| 1832 |
+
|
| 1833 |
+
const Tabs = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1834 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1835 |
+
const {
|
| 1836 |
+
className,
|
| 1837 |
+
orientation,
|
| 1838 |
+
activeid,
|
| 1839 |
+
activeindicator,
|
| 1840 |
+
activetab,
|
| 1841 |
+
...filteredProps
|
| 1842 |
+
} = props;
|
| 1843 |
+
|
| 1844 |
+
/** Event listeners - run once */
|
| 1845 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1846 |
+
|
| 1847 |
+
/** Properties - run whenever a property has changed */
|
| 1848 |
+
useProperties(ref, 'activeindicator', props.activeindicator);
|
| 1849 |
+
useProperties(ref, 'activetab', props.activetab);
|
| 1850 |
+
|
| 1851 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1852 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1853 |
+
|
| 1854 |
+
return react_index_js_default().createElement(
|
| 1855 |
+
'jp-tabs',
|
| 1856 |
+
{
|
| 1857 |
+
ref,
|
| 1858 |
+
...filteredProps,
|
| 1859 |
+
orientation: props.orientation,
|
| 1860 |
+
activeid: props.activeid,
|
| 1861 |
+
class: props.className,
|
| 1862 |
+
exportparts: props.exportparts,
|
| 1863 |
+
for: props.htmlFor,
|
| 1864 |
+
part: props.part,
|
| 1865 |
+
tabindex: props.tabIndex,
|
| 1866 |
+
style: { ...props.style }
|
| 1867 |
+
},
|
| 1868 |
+
props.children
|
| 1869 |
+
);
|
| 1870 |
+
});
|
| 1871 |
+
|
| 1872 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/TextArea.js
|
| 1873 |
+
|
| 1874 |
+
|
| 1875 |
+
|
| 1876 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTextArea)());
|
| 1877 |
+
|
| 1878 |
+
const TextArea = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1879 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1880 |
+
const {
|
| 1881 |
+
className,
|
| 1882 |
+
appearance,
|
| 1883 |
+
resize,
|
| 1884 |
+
form,
|
| 1885 |
+
list,
|
| 1886 |
+
name,
|
| 1887 |
+
placeholder,
|
| 1888 |
+
readOnly,
|
| 1889 |
+
autofocus,
|
| 1890 |
+
maxlength,
|
| 1891 |
+
minlength,
|
| 1892 |
+
cols,
|
| 1893 |
+
rows,
|
| 1894 |
+
spellcheck,
|
| 1895 |
+
disabled,
|
| 1896 |
+
required,
|
| 1897 |
+
...filteredProps
|
| 1898 |
+
} = props;
|
| 1899 |
+
|
| 1900 |
+
/** Event listeners - run once */
|
| 1901 |
+
useEventListener(ref, 'select', props.onSelect);
|
| 1902 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1903 |
+
|
| 1904 |
+
/** Properties - run whenever a property has changed */
|
| 1905 |
+
useProperties(ref, 'readOnly', props.readOnly);
|
| 1906 |
+
useProperties(ref, 'autofocus', props.autofocus);
|
| 1907 |
+
useProperties(ref, 'maxlength', props.maxlength);
|
| 1908 |
+
useProperties(ref, 'minlength', props.minlength);
|
| 1909 |
+
useProperties(ref, 'cols', props.cols);
|
| 1910 |
+
useProperties(ref, 'rows', props.rows);
|
| 1911 |
+
useProperties(ref, 'spellcheck', props.spellcheck);
|
| 1912 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1913 |
+
useProperties(ref, 'required', props.required);
|
| 1914 |
+
|
| 1915 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1916 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1917 |
+
|
| 1918 |
+
return react_index_js_default().createElement(
|
| 1919 |
+
'jp-text-area',
|
| 1920 |
+
{
|
| 1921 |
+
ref,
|
| 1922 |
+
...filteredProps,
|
| 1923 |
+
appearance: props.appearance,
|
| 1924 |
+
resize: props.resize,
|
| 1925 |
+
form: props.form,
|
| 1926 |
+
list: props.list,
|
| 1927 |
+
name: props.name,
|
| 1928 |
+
placeholder: props.placeholder,
|
| 1929 |
+
class: props.className,
|
| 1930 |
+
exportparts: props.exportparts,
|
| 1931 |
+
for: props.htmlFor,
|
| 1932 |
+
part: props.part,
|
| 1933 |
+
tabindex: props.tabIndex,
|
| 1934 |
+
style: { ...props.style }
|
| 1935 |
+
},
|
| 1936 |
+
props.children
|
| 1937 |
+
);
|
| 1938 |
+
});
|
| 1939 |
+
|
| 1940 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/TextField.js
|
| 1941 |
+
|
| 1942 |
+
|
| 1943 |
+
|
| 1944 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTextField)());
|
| 1945 |
+
|
| 1946 |
+
const TextField = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 1947 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 1948 |
+
const {
|
| 1949 |
+
className,
|
| 1950 |
+
readonly,
|
| 1951 |
+
appearance,
|
| 1952 |
+
placeholder,
|
| 1953 |
+
type,
|
| 1954 |
+
list,
|
| 1955 |
+
pattern,
|
| 1956 |
+
readOnly,
|
| 1957 |
+
autofocus,
|
| 1958 |
+
maxlength,
|
| 1959 |
+
minlength,
|
| 1960 |
+
size,
|
| 1961 |
+
spellcheck,
|
| 1962 |
+
disabled,
|
| 1963 |
+
required,
|
| 1964 |
+
...filteredProps
|
| 1965 |
+
} = props;
|
| 1966 |
+
|
| 1967 |
+
/** Event listeners - run once */
|
| 1968 |
+
useEventListener(ref, 'change', props.onChange);
|
| 1969 |
+
useEventListener(ref, 'input', props.onInput);
|
| 1970 |
+
|
| 1971 |
+
/** Properties - run whenever a property has changed */
|
| 1972 |
+
useProperties(ref, 'readOnly', props.readOnly);
|
| 1973 |
+
useProperties(ref, 'autofocus', props.autofocus);
|
| 1974 |
+
useProperties(ref, 'maxlength', props.maxlength);
|
| 1975 |
+
useProperties(ref, 'minlength', props.minlength);
|
| 1976 |
+
useProperties(ref, 'size', props.size);
|
| 1977 |
+
useProperties(ref, 'spellcheck', props.spellcheck);
|
| 1978 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 1979 |
+
useProperties(ref, 'required', props.required);
|
| 1980 |
+
|
| 1981 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 1982 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 1983 |
+
|
| 1984 |
+
return react_index_js_default().createElement(
|
| 1985 |
+
'jp-text-field',
|
| 1986 |
+
{
|
| 1987 |
+
ref,
|
| 1988 |
+
...filteredProps,
|
| 1989 |
+
appearance: props.appearance,
|
| 1990 |
+
placeholder: props.placeholder,
|
| 1991 |
+
type: props.type,
|
| 1992 |
+
list: props.list,
|
| 1993 |
+
pattern: props.pattern,
|
| 1994 |
+
class: props.className,
|
| 1995 |
+
exportparts: props.exportparts,
|
| 1996 |
+
for: props.htmlFor,
|
| 1997 |
+
part: props.part,
|
| 1998 |
+
tabindex: props.tabIndex,
|
| 1999 |
+
readonly: props.readonly ? '' : undefined,
|
| 2000 |
+
style: { ...props.style }
|
| 2001 |
+
},
|
| 2002 |
+
props.children
|
| 2003 |
+
);
|
| 2004 |
+
});
|
| 2005 |
+
|
| 2006 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Toolbar.js
|
| 2007 |
+
|
| 2008 |
+
|
| 2009 |
+
|
| 2010 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpToolbar)());
|
| 2011 |
+
|
| 2012 |
+
const Toolbar = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 2013 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 2014 |
+
const { className, ...filteredProps } = props;
|
| 2015 |
+
|
| 2016 |
+
/** Properties - run whenever a property has changed */
|
| 2017 |
+
|
| 2018 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 2019 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 2020 |
+
|
| 2021 |
+
return react_index_js_default().createElement(
|
| 2022 |
+
'jp-toolbar',
|
| 2023 |
+
{
|
| 2024 |
+
ref,
|
| 2025 |
+
...filteredProps,
|
| 2026 |
+
class: props.className,
|
| 2027 |
+
exportparts: props.exportparts,
|
| 2028 |
+
for: props.htmlFor,
|
| 2029 |
+
part: props.part,
|
| 2030 |
+
tabindex: props.tabIndex,
|
| 2031 |
+
style: { ...props.style }
|
| 2032 |
+
},
|
| 2033 |
+
props.children
|
| 2034 |
+
);
|
| 2035 |
+
});
|
| 2036 |
+
|
| 2037 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Tooltip.js
|
| 2038 |
+
|
| 2039 |
+
|
| 2040 |
+
|
| 2041 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTooltip)());
|
| 2042 |
+
|
| 2043 |
+
const Tooltip = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 2044 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 2045 |
+
const {
|
| 2046 |
+
className,
|
| 2047 |
+
horizontalViewportLock,
|
| 2048 |
+
verticalViewportLock,
|
| 2049 |
+
anchor,
|
| 2050 |
+
delay,
|
| 2051 |
+
position,
|
| 2052 |
+
autoUpdateMode,
|
| 2053 |
+
visible,
|
| 2054 |
+
anchorElement,
|
| 2055 |
+
...filteredProps
|
| 2056 |
+
} = props;
|
| 2057 |
+
|
| 2058 |
+
/** Event listeners - run once */
|
| 2059 |
+
useEventListener(ref, 'dismiss', props.onDismiss);
|
| 2060 |
+
|
| 2061 |
+
/** Properties - run whenever a property has changed */
|
| 2062 |
+
useProperties(ref, 'visible', props.visible);
|
| 2063 |
+
useProperties(ref, 'anchorElement', props.anchorElement);
|
| 2064 |
+
|
| 2065 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 2066 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 2067 |
+
|
| 2068 |
+
return react_index_js_default().createElement(
|
| 2069 |
+
'jp-tooltip',
|
| 2070 |
+
{
|
| 2071 |
+
ref,
|
| 2072 |
+
...filteredProps,
|
| 2073 |
+
anchor: props.anchor,
|
| 2074 |
+
delay: props.delay,
|
| 2075 |
+
position: props.position,
|
| 2076 |
+
'auto-update-mode': props.autoUpdateMode || props['auto-update-mode'],
|
| 2077 |
+
class: props.className,
|
| 2078 |
+
exportparts: props.exportparts,
|
| 2079 |
+
for: props.htmlFor,
|
| 2080 |
+
part: props.part,
|
| 2081 |
+
tabindex: props.tabIndex,
|
| 2082 |
+
'horizontal-viewport-lock': props.horizontalViewportLock ? '' : undefined,
|
| 2083 |
+
'vertical-viewport-lock': props.verticalViewportLock ? '' : undefined,
|
| 2084 |
+
style: { ...props.style }
|
| 2085 |
+
},
|
| 2086 |
+
props.children
|
| 2087 |
+
);
|
| 2088 |
+
});
|
| 2089 |
+
|
| 2090 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/TreeItem.js
|
| 2091 |
+
|
| 2092 |
+
|
| 2093 |
+
|
| 2094 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTreeItem)());
|
| 2095 |
+
|
| 2096 |
+
const TreeItem = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 2097 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 2098 |
+
const { className, expanded, selected, disabled, ...filteredProps } = props;
|
| 2099 |
+
|
| 2100 |
+
/** Event listeners - run once */
|
| 2101 |
+
useEventListener(ref, 'expanded-change', props.onExpand);
|
| 2102 |
+
useEventListener(ref, 'selected-change', props.onSelect);
|
| 2103 |
+
|
| 2104 |
+
/** Properties - run whenever a property has changed */
|
| 2105 |
+
useProperties(ref, 'expanded', props.expanded);
|
| 2106 |
+
useProperties(ref, 'selected', props.selected);
|
| 2107 |
+
useProperties(ref, 'disabled', props.disabled);
|
| 2108 |
+
|
| 2109 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 2110 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 2111 |
+
|
| 2112 |
+
// Add web component internal classes on top of `className`
|
| 2113 |
+
let allClasses = className ?? '';
|
| 2114 |
+
if (ref.current?.nested) {
|
| 2115 |
+
allClasses += ' nested';
|
| 2116 |
+
}
|
| 2117 |
+
|
| 2118 |
+
return react_index_js_default().createElement(
|
| 2119 |
+
'jp-tree-item',
|
| 2120 |
+
{
|
| 2121 |
+
ref,
|
| 2122 |
+
...filteredProps,
|
| 2123 |
+
class: allClasses.trim(),
|
| 2124 |
+
exportparts: props.exportparts,
|
| 2125 |
+
for: props.htmlFor,
|
| 2126 |
+
part: props.part,
|
| 2127 |
+
tabindex: props.tabIndex,
|
| 2128 |
+
style: { ...props.style }
|
| 2129 |
+
},
|
| 2130 |
+
props.children
|
| 2131 |
+
);
|
| 2132 |
+
});
|
| 2133 |
+
|
| 2134 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/TreeView.js
|
| 2135 |
+
|
| 2136 |
+
|
| 2137 |
+
|
| 2138 |
+
|
| 2139 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpTreeView)());
|
| 2140 |
+
|
| 2141 |
+
const TreeView = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 2142 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 2143 |
+
const { className, renderCollapsedNodes, currentSelected, ...filteredProps } =
|
| 2144 |
+
props;
|
| 2145 |
+
|
| 2146 |
+
(0,react_index_js_.useLayoutEffect)(() => {
|
| 2147 |
+
// Fix using private API to force refresh of nested flag on
|
| 2148 |
+
// first level of tree items.
|
| 2149 |
+
ref.current?.setItems();
|
| 2150 |
+
}, [ref.current]);
|
| 2151 |
+
|
| 2152 |
+
/** Properties - run whenever a property has changed */
|
| 2153 |
+
useProperties(ref, 'currentSelected', props.currentSelected);
|
| 2154 |
+
|
| 2155 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 2156 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 2157 |
+
|
| 2158 |
+
return react_index_js_default().createElement(
|
| 2159 |
+
'jp-tree-view',
|
| 2160 |
+
{
|
| 2161 |
+
ref,
|
| 2162 |
+
...filteredProps,
|
| 2163 |
+
class: props.className,
|
| 2164 |
+
exportparts: props.exportparts,
|
| 2165 |
+
for: props.htmlFor,
|
| 2166 |
+
part: props.part,
|
| 2167 |
+
tabindex: props.tabIndex,
|
| 2168 |
+
'render-collapsed-nodes': props.renderCollapsedNodes ? '' : undefined,
|
| 2169 |
+
style: { ...props.style }
|
| 2170 |
+
},
|
| 2171 |
+
props.children
|
| 2172 |
+
);
|
| 2173 |
+
});
|
| 2174 |
+
|
| 2175 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/Picker.js
|
| 2176 |
+
|
| 2177 |
+
|
| 2178 |
+
|
| 2179 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpPicker)());
|
| 2180 |
+
|
| 2181 |
+
const Picker = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 2182 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 2183 |
+
const {
|
| 2184 |
+
className,
|
| 2185 |
+
filterSelected,
|
| 2186 |
+
filterQuery,
|
| 2187 |
+
selection,
|
| 2188 |
+
options,
|
| 2189 |
+
maxSelected,
|
| 2190 |
+
noSuggestionsText,
|
| 2191 |
+
suggestionsAvailableText,
|
| 2192 |
+
loadingText,
|
| 2193 |
+
label,
|
| 2194 |
+
labelledby,
|
| 2195 |
+
placeholder,
|
| 2196 |
+
menuPlacement,
|
| 2197 |
+
showLoading,
|
| 2198 |
+
listItemTemplate,
|
| 2199 |
+
defaultListItemTemplate,
|
| 2200 |
+
menuOptionTemplate,
|
| 2201 |
+
defaultMenuOptionTemplate,
|
| 2202 |
+
listItemContentsTemplate,
|
| 2203 |
+
menuOptionContentsTemplate,
|
| 2204 |
+
optionsList,
|
| 2205 |
+
query,
|
| 2206 |
+
itemsPlaceholderElement,
|
| 2207 |
+
...filteredProps
|
| 2208 |
+
} = props;
|
| 2209 |
+
|
| 2210 |
+
/** Properties - run whenever a property has changed */
|
| 2211 |
+
useProperties(ref, 'showLoading', props.showLoading);
|
| 2212 |
+
useProperties(ref, 'listItemTemplate', props.listItemTemplate);
|
| 2213 |
+
useProperties(ref, 'defaultListItemTemplate', props.defaultListItemTemplate);
|
| 2214 |
+
useProperties(ref, 'menuOptionTemplate', props.menuOptionTemplate);
|
| 2215 |
+
useProperties(
|
| 2216 |
+
ref,
|
| 2217 |
+
'defaultMenuOptionTemplate',
|
| 2218 |
+
props.defaultMenuOptionTemplate
|
| 2219 |
+
);
|
| 2220 |
+
useProperties(
|
| 2221 |
+
ref,
|
| 2222 |
+
'listItemContentsTemplate',
|
| 2223 |
+
props.listItemContentsTemplate
|
| 2224 |
+
);
|
| 2225 |
+
useProperties(
|
| 2226 |
+
ref,
|
| 2227 |
+
'menuOptionContentsTemplate',
|
| 2228 |
+
props.menuOptionContentsTemplate
|
| 2229 |
+
);
|
| 2230 |
+
useProperties(ref, 'optionsList', props.optionsList);
|
| 2231 |
+
useProperties(ref, 'query', props.query);
|
| 2232 |
+
useProperties(ref, 'itemsPlaceholderElement', props.itemsPlaceholderElement);
|
| 2233 |
+
|
| 2234 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 2235 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 2236 |
+
|
| 2237 |
+
return react_index_js_default().createElement(
|
| 2238 |
+
'jp-draft-picker',
|
| 2239 |
+
{
|
| 2240 |
+
ref,
|
| 2241 |
+
...filteredProps,
|
| 2242 |
+
selection: props.selection,
|
| 2243 |
+
options: props.options,
|
| 2244 |
+
'max-selected': props.maxSelected || props['max-selected'],
|
| 2245 |
+
'no-suggestions-text':
|
| 2246 |
+
props.noSuggestionsText || props['no-suggestions-text'],
|
| 2247 |
+
'suggestions-available-text':
|
| 2248 |
+
props.suggestionsAvailableText || props['suggestions-available-text'],
|
| 2249 |
+
'loading-text': props.loadingText || props['loading-text'],
|
| 2250 |
+
label: props.label,
|
| 2251 |
+
labelledby: props.labelledby,
|
| 2252 |
+
placeholder: props.placeholder,
|
| 2253 |
+
'menu-placement': props.menuPlacement || props['menu-placement'],
|
| 2254 |
+
class: props.className,
|
| 2255 |
+
exportparts: props.exportparts,
|
| 2256 |
+
for: props.htmlFor,
|
| 2257 |
+
part: props.part,
|
| 2258 |
+
tabindex: props.tabIndex,
|
| 2259 |
+
'filter-selected': props.filterSelected ? '' : undefined,
|
| 2260 |
+
'filter-query': props.filterQuery ? '' : undefined,
|
| 2261 |
+
style: { ...props.style }
|
| 2262 |
+
},
|
| 2263 |
+
props.children
|
| 2264 |
+
);
|
| 2265 |
+
});
|
| 2266 |
+
|
| 2267 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/PickerMenu.js
|
| 2268 |
+
|
| 2269 |
+
|
| 2270 |
+
|
| 2271 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpPickerMenu)());
|
| 2272 |
+
|
| 2273 |
+
const PickerMenu = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 2274 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 2275 |
+
const { className, suggestionsAvailableText, ...filteredProps } = props;
|
| 2276 |
+
|
| 2277 |
+
/** Properties - run whenever a property has changed */
|
| 2278 |
+
useProperties(
|
| 2279 |
+
ref,
|
| 2280 |
+
'suggestionsAvailableText',
|
| 2281 |
+
props.suggestionsAvailableText
|
| 2282 |
+
);
|
| 2283 |
+
|
| 2284 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 2285 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 2286 |
+
|
| 2287 |
+
return react_index_js_default().createElement(
|
| 2288 |
+
'jp-draft-picker-menu',
|
| 2289 |
+
{
|
| 2290 |
+
ref,
|
| 2291 |
+
...filteredProps,
|
| 2292 |
+
class: props.className,
|
| 2293 |
+
exportparts: props.exportparts,
|
| 2294 |
+
for: props.htmlFor,
|
| 2295 |
+
part: props.part,
|
| 2296 |
+
tabindex: props.tabIndex,
|
| 2297 |
+
style: { ...props.style }
|
| 2298 |
+
},
|
| 2299 |
+
props.children
|
| 2300 |
+
);
|
| 2301 |
+
});
|
| 2302 |
+
|
| 2303 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/PickerMenuOption.js
|
| 2304 |
+
|
| 2305 |
+
|
| 2306 |
+
|
| 2307 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpPickerMenuOption)());
|
| 2308 |
+
|
| 2309 |
+
const PickerMenuOption = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 2310 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 2311 |
+
const { className, value, contentsTemplate, ...filteredProps } = props;
|
| 2312 |
+
|
| 2313 |
+
/** Properties - run whenever a property has changed */
|
| 2314 |
+
useProperties(ref, 'contentsTemplate', props.contentsTemplate);
|
| 2315 |
+
|
| 2316 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 2317 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 2318 |
+
|
| 2319 |
+
return react_index_js_default().createElement(
|
| 2320 |
+
'jp-draft-picker-menu-option',
|
| 2321 |
+
{
|
| 2322 |
+
ref,
|
| 2323 |
+
...filteredProps,
|
| 2324 |
+
value: props.value,
|
| 2325 |
+
class: props.className,
|
| 2326 |
+
exportparts: props.exportparts,
|
| 2327 |
+
for: props.htmlFor,
|
| 2328 |
+
part: props.part,
|
| 2329 |
+
tabindex: props.tabIndex,
|
| 2330 |
+
style: { ...props.style }
|
| 2331 |
+
},
|
| 2332 |
+
props.children
|
| 2333 |
+
);
|
| 2334 |
+
});
|
| 2335 |
+
|
| 2336 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/PickerList.js
|
| 2337 |
+
|
| 2338 |
+
|
| 2339 |
+
|
| 2340 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpPickerList)());
|
| 2341 |
+
|
| 2342 |
+
const PickerList = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 2343 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 2344 |
+
const { className, ...filteredProps } = props;
|
| 2345 |
+
|
| 2346 |
+
/** Properties - run whenever a property has changed */
|
| 2347 |
+
|
| 2348 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 2349 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 2350 |
+
|
| 2351 |
+
return react_index_js_default().createElement(
|
| 2352 |
+
'jp-draft-picker-list',
|
| 2353 |
+
{
|
| 2354 |
+
ref,
|
| 2355 |
+
...filteredProps,
|
| 2356 |
+
class: props.className,
|
| 2357 |
+
exportparts: props.exportparts,
|
| 2358 |
+
for: props.htmlFor,
|
| 2359 |
+
part: props.part,
|
| 2360 |
+
tabindex: props.tabIndex,
|
| 2361 |
+
style: { ...props.style }
|
| 2362 |
+
},
|
| 2363 |
+
props.children
|
| 2364 |
+
);
|
| 2365 |
+
});
|
| 2366 |
+
|
| 2367 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/PickerListItem.js
|
| 2368 |
+
|
| 2369 |
+
|
| 2370 |
+
|
| 2371 |
+
(0,index_js_.provideJupyterDesignSystem)().register((0,index_js_.jpPickerListItem)());
|
| 2372 |
+
|
| 2373 |
+
const PickerListItem = (0,react_index_js_.forwardRef)((props, forwardedRef) => {
|
| 2374 |
+
const ref = (0,react_index_js_.useRef)(null);
|
| 2375 |
+
const { className, value, contentsTemplate, ...filteredProps } = props;
|
| 2376 |
+
|
| 2377 |
+
/** Properties - run whenever a property has changed */
|
| 2378 |
+
useProperties(ref, 'contentsTemplate', props.contentsTemplate);
|
| 2379 |
+
|
| 2380 |
+
/** Methods - uses `useImperativeHandle` hook to pass ref to component */
|
| 2381 |
+
(0,react_index_js_.useImperativeHandle)(forwardedRef, () => ref.current, [ref.current]);
|
| 2382 |
+
|
| 2383 |
+
return react_index_js_default().createElement(
|
| 2384 |
+
'jp-draft-picker-list-item',
|
| 2385 |
+
{
|
| 2386 |
+
ref,
|
| 2387 |
+
...filteredProps,
|
| 2388 |
+
value: props.value,
|
| 2389 |
+
class: props.className,
|
| 2390 |
+
exportparts: props.exportparts,
|
| 2391 |
+
for: props.htmlFor,
|
| 2392 |
+
part: props.part,
|
| 2393 |
+
tabindex: props.tabIndex,
|
| 2394 |
+
style: { ...props.style }
|
| 2395 |
+
},
|
| 2396 |
+
props.children
|
| 2397 |
+
);
|
| 2398 |
+
});
|
| 2399 |
+
|
| 2400 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/react-components/lib/index.js
|
| 2401 |
+
|
| 2402 |
+
|
| 2403 |
+
|
| 2404 |
+
|
| 2405 |
+
|
| 2406 |
+
|
| 2407 |
+
|
| 2408 |
+
|
| 2409 |
+
|
| 2410 |
+
|
| 2411 |
+
|
| 2412 |
+
|
| 2413 |
+
|
| 2414 |
+
|
| 2415 |
+
|
| 2416 |
+
|
| 2417 |
+
|
| 2418 |
+
|
| 2419 |
+
|
| 2420 |
+
|
| 2421 |
+
|
| 2422 |
+
|
| 2423 |
+
|
| 2424 |
+
|
| 2425 |
+
|
| 2426 |
+
|
| 2427 |
+
|
| 2428 |
+
|
| 2429 |
+
|
| 2430 |
+
|
| 2431 |
+
|
| 2432 |
+
|
| 2433 |
+
|
| 2434 |
+
|
| 2435 |
+
|
| 2436 |
+
|
| 2437 |
+
|
| 2438 |
+
|
| 2439 |
+
|
| 2440 |
+
|
| 2441 |
+
|
| 2442 |
+
|
| 2443 |
+
|
| 2444 |
+
|
| 2445 |
+
|
| 2446 |
+
|
| 2447 |
+
|
| 2448 |
+
|
| 2449 |
+
|
| 2450 |
+
|
| 2451 |
+
/***/ })
|
| 2452 |
+
|
| 2453 |
+
}]);
|
| 2454 |
+
//# sourceMappingURL=2816.03541f3103bf4c09e591.js.map?v=03541f3103bf4c09e591
|
vlmpy310/lib/python3.10/site-packages/notebook/static/306.dd9ffcf982b0c863872b.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlmpy310/lib/python3.10/site-packages/notebook/static/311.d6a177e2f8f1b1690911.js
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[311],{
|
| 3 |
+
|
| 4 |
+
/***/ 60311:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ stex: () => (/* binding */ stex),
|
| 10 |
+
/* harmony export */ stexMath: () => (/* binding */ stexMath)
|
| 11 |
+
/* harmony export */ });
|
| 12 |
+
function mkStex(mathMode) {
|
| 13 |
+
function pushCommand(state, command) {
|
| 14 |
+
state.cmdState.push(command);
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
function peekCommand(state) {
|
| 18 |
+
if (state.cmdState.length > 0) {
|
| 19 |
+
return state.cmdState[state.cmdState.length - 1];
|
| 20 |
+
} else {
|
| 21 |
+
return null;
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
function popCommand(state) {
|
| 26 |
+
var plug = state.cmdState.pop();
|
| 27 |
+
if (plug) {
|
| 28 |
+
plug.closeBracket();
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
// returns the non-default plugin closest to the end of the list
|
| 33 |
+
function getMostPowerful(state) {
|
| 34 |
+
var context = state.cmdState;
|
| 35 |
+
for (var i = context.length - 1; i >= 0; i--) {
|
| 36 |
+
var plug = context[i];
|
| 37 |
+
if (plug.name == "DEFAULT") {
|
| 38 |
+
continue;
|
| 39 |
+
}
|
| 40 |
+
return plug;
|
| 41 |
+
}
|
| 42 |
+
return { styleIdentifier: function() { return null; } };
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
function addPluginPattern(pluginName, cmdStyle, styles) {
|
| 46 |
+
return function () {
|
| 47 |
+
this.name = pluginName;
|
| 48 |
+
this.bracketNo = 0;
|
| 49 |
+
this.style = cmdStyle;
|
| 50 |
+
this.styles = styles;
|
| 51 |
+
this.argument = null; // \begin and \end have arguments that follow. These are stored in the plugin
|
| 52 |
+
|
| 53 |
+
this.styleIdentifier = function() {
|
| 54 |
+
return this.styles[this.bracketNo - 1] || null;
|
| 55 |
+
};
|
| 56 |
+
this.openBracket = function() {
|
| 57 |
+
this.bracketNo++;
|
| 58 |
+
return "bracket";
|
| 59 |
+
};
|
| 60 |
+
this.closeBracket = function() {};
|
| 61 |
+
};
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
var plugins = {};
|
| 65 |
+
|
| 66 |
+
plugins["importmodule"] = addPluginPattern("importmodule", "tag", ["string", "builtin"]);
|
| 67 |
+
plugins["documentclass"] = addPluginPattern("documentclass", "tag", ["", "atom"]);
|
| 68 |
+
plugins["usepackage"] = addPluginPattern("usepackage", "tag", ["atom"]);
|
| 69 |
+
plugins["begin"] = addPluginPattern("begin", "tag", ["atom"]);
|
| 70 |
+
plugins["end"] = addPluginPattern("end", "tag", ["atom"]);
|
| 71 |
+
|
| 72 |
+
plugins["label" ] = addPluginPattern("label" , "tag", ["atom"]);
|
| 73 |
+
plugins["ref" ] = addPluginPattern("ref" , "tag", ["atom"]);
|
| 74 |
+
plugins["eqref" ] = addPluginPattern("eqref" , "tag", ["atom"]);
|
| 75 |
+
plugins["cite" ] = addPluginPattern("cite" , "tag", ["atom"]);
|
| 76 |
+
plugins["bibitem" ] = addPluginPattern("bibitem" , "tag", ["atom"]);
|
| 77 |
+
plugins["Bibitem" ] = addPluginPattern("Bibitem" , "tag", ["atom"]);
|
| 78 |
+
plugins["RBibitem" ] = addPluginPattern("RBibitem" , "tag", ["atom"]);
|
| 79 |
+
|
| 80 |
+
plugins["DEFAULT"] = function () {
|
| 81 |
+
this.name = "DEFAULT";
|
| 82 |
+
this.style = "tag";
|
| 83 |
+
|
| 84 |
+
this.styleIdentifier = this.openBracket = this.closeBracket = function() {};
|
| 85 |
+
};
|
| 86 |
+
|
| 87 |
+
function setState(state, f) {
|
| 88 |
+
state.f = f;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
// called when in a normal (no environment) context
|
| 92 |
+
function normal(source, state) {
|
| 93 |
+
var plug;
|
| 94 |
+
// Do we look like '\command' ? If so, attempt to apply the plugin 'command'
|
| 95 |
+
if (source.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)) {
|
| 96 |
+
var cmdName = source.current().slice(1);
|
| 97 |
+
plug = plugins.hasOwnProperty(cmdName) ? plugins[cmdName] : plugins["DEFAULT"];
|
| 98 |
+
plug = new plug();
|
| 99 |
+
pushCommand(state, plug);
|
| 100 |
+
setState(state, beginParams);
|
| 101 |
+
return plug.style;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
// escape characters
|
| 105 |
+
if (source.match(/^\\[$&%#{}_]/)) {
|
| 106 |
+
return "tag";
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
// white space control characters
|
| 110 |
+
if (source.match(/^\\[,;!\/\\]/)) {
|
| 111 |
+
return "tag";
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
// find if we're starting various math modes
|
| 115 |
+
if (source.match("\\[")) {
|
| 116 |
+
setState(state, function(source, state){ return inMathMode(source, state, "\\]"); });
|
| 117 |
+
return "keyword";
|
| 118 |
+
}
|
| 119 |
+
if (source.match("\\(")) {
|
| 120 |
+
setState(state, function(source, state){ return inMathMode(source, state, "\\)"); });
|
| 121 |
+
return "keyword";
|
| 122 |
+
}
|
| 123 |
+
if (source.match("$$")) {
|
| 124 |
+
setState(state, function(source, state){ return inMathMode(source, state, "$$"); });
|
| 125 |
+
return "keyword";
|
| 126 |
+
}
|
| 127 |
+
if (source.match("$")) {
|
| 128 |
+
setState(state, function(source, state){ return inMathMode(source, state, "$"); });
|
| 129 |
+
return "keyword";
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
var ch = source.next();
|
| 133 |
+
if (ch == "%") {
|
| 134 |
+
source.skipToEnd();
|
| 135 |
+
return "comment";
|
| 136 |
+
} else if (ch == '}' || ch == ']') {
|
| 137 |
+
plug = peekCommand(state);
|
| 138 |
+
if (plug) {
|
| 139 |
+
plug.closeBracket(ch);
|
| 140 |
+
setState(state, beginParams);
|
| 141 |
+
} else {
|
| 142 |
+
return "error";
|
| 143 |
+
}
|
| 144 |
+
return "bracket";
|
| 145 |
+
} else if (ch == '{' || ch == '[') {
|
| 146 |
+
plug = plugins["DEFAULT"];
|
| 147 |
+
plug = new plug();
|
| 148 |
+
pushCommand(state, plug);
|
| 149 |
+
return "bracket";
|
| 150 |
+
} else if (/\d/.test(ch)) {
|
| 151 |
+
source.eatWhile(/[\w.%]/);
|
| 152 |
+
return "atom";
|
| 153 |
+
} else {
|
| 154 |
+
source.eatWhile(/[\w\-_]/);
|
| 155 |
+
plug = getMostPowerful(state);
|
| 156 |
+
if (plug.name == 'begin') {
|
| 157 |
+
plug.argument = source.current();
|
| 158 |
+
}
|
| 159 |
+
return plug.styleIdentifier();
|
| 160 |
+
}
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
function inMathMode(source, state, endModeSeq) {
|
| 164 |
+
if (source.eatSpace()) {
|
| 165 |
+
return null;
|
| 166 |
+
}
|
| 167 |
+
if (endModeSeq && source.match(endModeSeq)) {
|
| 168 |
+
setState(state, normal);
|
| 169 |
+
return "keyword";
|
| 170 |
+
}
|
| 171 |
+
if (source.match(/^\\[a-zA-Z@]+/)) {
|
| 172 |
+
return "tag";
|
| 173 |
+
}
|
| 174 |
+
if (source.match(/^[a-zA-Z]+/)) {
|
| 175 |
+
return "variableName.special";
|
| 176 |
+
}
|
| 177 |
+
// escape characters
|
| 178 |
+
if (source.match(/^\\[$&%#{}_]/)) {
|
| 179 |
+
return "tag";
|
| 180 |
+
}
|
| 181 |
+
// white space control characters
|
| 182 |
+
if (source.match(/^\\[,;!\/]/)) {
|
| 183 |
+
return "tag";
|
| 184 |
+
}
|
| 185 |
+
// special math-mode characters
|
| 186 |
+
if (source.match(/^[\^_&]/)) {
|
| 187 |
+
return "tag";
|
| 188 |
+
}
|
| 189 |
+
// non-special characters
|
| 190 |
+
if (source.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)) {
|
| 191 |
+
return null;
|
| 192 |
+
}
|
| 193 |
+
if (source.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)) {
|
| 194 |
+
return "number";
|
| 195 |
+
}
|
| 196 |
+
var ch = source.next();
|
| 197 |
+
if (ch == "{" || ch == "}" || ch == "[" || ch == "]" || ch == "(" || ch == ")") {
|
| 198 |
+
return "bracket";
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
if (ch == "%") {
|
| 202 |
+
source.skipToEnd();
|
| 203 |
+
return "comment";
|
| 204 |
+
}
|
| 205 |
+
return "error";
|
| 206 |
+
}
|
| 207 |
+
|
| 208 |
+
function beginParams(source, state) {
|
| 209 |
+
var ch = source.peek(), lastPlug;
|
| 210 |
+
if (ch == '{' || ch == '[') {
|
| 211 |
+
lastPlug = peekCommand(state);
|
| 212 |
+
lastPlug.openBracket(ch);
|
| 213 |
+
source.eat(ch);
|
| 214 |
+
setState(state, normal);
|
| 215 |
+
return "bracket";
|
| 216 |
+
}
|
| 217 |
+
if (/[ \t\r]/.test(ch)) {
|
| 218 |
+
source.eat(ch);
|
| 219 |
+
return null;
|
| 220 |
+
}
|
| 221 |
+
setState(state, normal);
|
| 222 |
+
popCommand(state);
|
| 223 |
+
|
| 224 |
+
return normal(source, state);
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
return {
|
| 228 |
+
name: "stex",
|
| 229 |
+
startState: function() {
|
| 230 |
+
var f = mathMode ? function(source, state){ return inMathMode(source, state); } : normal;
|
| 231 |
+
return {
|
| 232 |
+
cmdState: [],
|
| 233 |
+
f: f
|
| 234 |
+
};
|
| 235 |
+
},
|
| 236 |
+
copyState: function(s) {
|
| 237 |
+
return {
|
| 238 |
+
cmdState: s.cmdState.slice(),
|
| 239 |
+
f: s.f
|
| 240 |
+
};
|
| 241 |
+
},
|
| 242 |
+
token: function(stream, state) {
|
| 243 |
+
return state.f(stream, state);
|
| 244 |
+
},
|
| 245 |
+
blankLine: function(state) {
|
| 246 |
+
state.f = normal;
|
| 247 |
+
state.cmdState.length = 0;
|
| 248 |
+
},
|
| 249 |
+
languageData: {
|
| 250 |
+
commentTokens: {line: "%"}
|
| 251 |
+
}
|
| 252 |
+
};
|
| 253 |
+
};
|
| 254 |
+
|
| 255 |
+
const stex = mkStex(false)
|
| 256 |
+
const stexMath = mkStex(true)
|
| 257 |
+
|
| 258 |
+
|
| 259 |
+
/***/ })
|
| 260 |
+
|
| 261 |
+
}]);
|
| 262 |
+
//# sourceMappingURL=311.d6a177e2f8f1b1690911.js.map?v=d6a177e2f8f1b1690911
|
vlmpy310/lib/python3.10/site-packages/notebook/static/311.d6a177e2f8f1b1690911.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"311.d6a177e2f8f1b1690911.js?v=d6a177e2f8f1b1690911","mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,qCAAqC,QAAQ;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,8BAA8B;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,gCAAgC;AAChC;AACA;;AAEA;AACA,4BAA4B;AAC5B;AACA;;AAEA;AACA;AACA,+CAA+C,0CAA0C;AACzF;AACA;AACA;AACA,+CAA+C,0CAA0C;AACzF;AACA;AACA;AACA,+CAA+C,yCAAyC;AACxF;AACA;AACA;AACA,+CAA+C,wCAAwC;AACvF;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM,iBAAiB;AACvB;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM,iBAAiB;AACvB;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uCAAuC;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,aAAa;AAC7B;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,kDAAkD,oCAAoC;AACtF;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK;AACL;AACA,sBAAsB;AACtB;AACA;AACA;;AAEO;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/stex.js"],"sourcesContent":["function mkStex(mathMode) {\n function pushCommand(state, command) {\n state.cmdState.push(command);\n }\n\n function peekCommand(state) {\n if (state.cmdState.length > 0) {\n return state.cmdState[state.cmdState.length - 1];\n } else {\n return null;\n }\n }\n\n function popCommand(state) {\n var plug = state.cmdState.pop();\n if (plug) {\n plug.closeBracket();\n }\n }\n\n // returns the non-default plugin closest to the end of the list\n function getMostPowerful(state) {\n var context = state.cmdState;\n for (var i = context.length - 1; i >= 0; i--) {\n var plug = context[i];\n if (plug.name == \"DEFAULT\") {\n continue;\n }\n return plug;\n }\n return { styleIdentifier: function() { return null; } };\n }\n\n function addPluginPattern(pluginName, cmdStyle, styles) {\n return function () {\n this.name = pluginName;\n this.bracketNo = 0;\n this.style = cmdStyle;\n this.styles = styles;\n this.argument = null; // \\begin and \\end have arguments that follow. These are stored in the plugin\n\n this.styleIdentifier = function() {\n return this.styles[this.bracketNo - 1] || null;\n };\n this.openBracket = function() {\n this.bracketNo++;\n return \"bracket\";\n };\n this.closeBracket = function() {};\n };\n }\n\n var plugins = {};\n\n plugins[\"importmodule\"] = addPluginPattern(\"importmodule\", \"tag\", [\"string\", \"builtin\"]);\n plugins[\"documentclass\"] = addPluginPattern(\"documentclass\", \"tag\", [\"\", \"atom\"]);\n plugins[\"usepackage\"] = addPluginPattern(\"usepackage\", \"tag\", [\"atom\"]);\n plugins[\"begin\"] = addPluginPattern(\"begin\", \"tag\", [\"atom\"]);\n plugins[\"end\"] = addPluginPattern(\"end\", \"tag\", [\"atom\"]);\n\n plugins[\"label\" ] = addPluginPattern(\"label\" , \"tag\", [\"atom\"]);\n plugins[\"ref\" ] = addPluginPattern(\"ref\" , \"tag\", [\"atom\"]);\n plugins[\"eqref\" ] = addPluginPattern(\"eqref\" , \"tag\", [\"atom\"]);\n plugins[\"cite\" ] = addPluginPattern(\"cite\" , \"tag\", [\"atom\"]);\n plugins[\"bibitem\" ] = addPluginPattern(\"bibitem\" , \"tag\", [\"atom\"]);\n plugins[\"Bibitem\" ] = addPluginPattern(\"Bibitem\" , \"tag\", [\"atom\"]);\n plugins[\"RBibitem\" ] = addPluginPattern(\"RBibitem\" , \"tag\", [\"atom\"]);\n\n plugins[\"DEFAULT\"] = function () {\n this.name = \"DEFAULT\";\n this.style = \"tag\";\n\n this.styleIdentifier = this.openBracket = this.closeBracket = function() {};\n };\n\n function setState(state, f) {\n state.f = f;\n }\n\n // called when in a normal (no environment) context\n function normal(source, state) {\n var plug;\n // Do we look like '\\command' ? If so, attempt to apply the plugin 'command'\n if (source.match(/^\\\\[a-zA-Z@\\xc0-\\u1fff\\u2060-\\uffff]+/)) {\n var cmdName = source.current().slice(1);\n plug = plugins.hasOwnProperty(cmdName) ? plugins[cmdName] : plugins[\"DEFAULT\"];\n plug = new plug();\n pushCommand(state, plug);\n setState(state, beginParams);\n return plug.style;\n }\n\n // escape characters\n if (source.match(/^\\\\[$&%#{}_]/)) {\n return \"tag\";\n }\n\n // white space control characters\n if (source.match(/^\\\\[,;!\\/\\\\]/)) {\n return \"tag\";\n }\n\n // find if we're starting various math modes\n if (source.match(\"\\\\[\")) {\n setState(state, function(source, state){ return inMathMode(source, state, \"\\\\]\"); });\n return \"keyword\";\n }\n if (source.match(\"\\\\(\")) {\n setState(state, function(source, state){ return inMathMode(source, state, \"\\\\)\"); });\n return \"keyword\";\n }\n if (source.match(\"$$\")) {\n setState(state, function(source, state){ return inMathMode(source, state, \"$$\"); });\n return \"keyword\";\n }\n if (source.match(\"$\")) {\n setState(state, function(source, state){ return inMathMode(source, state, \"$\"); });\n return \"keyword\";\n }\n\n var ch = source.next();\n if (ch == \"%\") {\n source.skipToEnd();\n return \"comment\";\n } else if (ch == '}' || ch == ']') {\n plug = peekCommand(state);\n if (plug) {\n plug.closeBracket(ch);\n setState(state, beginParams);\n } else {\n return \"error\";\n }\n return \"bracket\";\n } else if (ch == '{' || ch == '[') {\n plug = plugins[\"DEFAULT\"];\n plug = new plug();\n pushCommand(state, plug);\n return \"bracket\";\n } else if (/\\d/.test(ch)) {\n source.eatWhile(/[\\w.%]/);\n return \"atom\";\n } else {\n source.eatWhile(/[\\w\\-_]/);\n plug = getMostPowerful(state);\n if (plug.name == 'begin') {\n plug.argument = source.current();\n }\n return plug.styleIdentifier();\n }\n }\n\n function inMathMode(source, state, endModeSeq) {\n if (source.eatSpace()) {\n return null;\n }\n if (endModeSeq && source.match(endModeSeq)) {\n setState(state, normal);\n return \"keyword\";\n }\n if (source.match(/^\\\\[a-zA-Z@]+/)) {\n return \"tag\";\n }\n if (source.match(/^[a-zA-Z]+/)) {\n return \"variableName.special\";\n }\n // escape characters\n if (source.match(/^\\\\[$&%#{}_]/)) {\n return \"tag\";\n }\n // white space control characters\n if (source.match(/^\\\\[,;!\\/]/)) {\n return \"tag\";\n }\n // special math-mode characters\n if (source.match(/^[\\^_&]/)) {\n return \"tag\";\n }\n // non-special characters\n if (source.match(/^[+\\-<>|=,\\/@!*:;'\"`~#?]/)) {\n return null;\n }\n if (source.match(/^(\\d+\\.\\d*|\\d*\\.\\d+|\\d+)/)) {\n return \"number\";\n }\n var ch = source.next();\n if (ch == \"{\" || ch == \"}\" || ch == \"[\" || ch == \"]\" || ch == \"(\" || ch == \")\") {\n return \"bracket\";\n }\n\n if (ch == \"%\") {\n source.skipToEnd();\n return \"comment\";\n }\n return \"error\";\n }\n\n function beginParams(source, state) {\n var ch = source.peek(), lastPlug;\n if (ch == '{' || ch == '[') {\n lastPlug = peekCommand(state);\n lastPlug.openBracket(ch);\n source.eat(ch);\n setState(state, normal);\n return \"bracket\";\n }\n if (/[ \\t\\r]/.test(ch)) {\n source.eat(ch);\n return null;\n }\n setState(state, normal);\n popCommand(state);\n\n return normal(source, state);\n }\n\n return {\n name: \"stex\",\n startState: function() {\n var f = mathMode ? function(source, state){ return inMathMode(source, state); } : normal;\n return {\n cmdState: [],\n f: f\n };\n },\n copyState: function(s) {\n return {\n cmdState: s.cmdState.slice(),\n f: s.f\n };\n },\n token: function(stream, state) {\n return state.f(stream, state);\n },\n blankLine: function(state) {\n state.f = normal;\n state.cmdState.length = 0;\n },\n languageData: {\n commentTokens: {line: \"%\"}\n }\n };\n};\n\nexport const stex = mkStex(false)\nexport const stexMath = mkStex(true)\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/3230.25e2cf51e31209917c87.js
ADDED
|
@@ -0,0 +1,444 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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B_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[3230],{
|
| 3 |
+
|
| 4 |
+
/***/ 83230:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ xQuery: () => (/* binding */ xQuery)
|
| 10 |
+
/* harmony export */ });
|
| 11 |
+
// The keywords object is set to the result of this self executing
|
| 12 |
+
// function. Each keyword is a property of the keywords object whose
|
| 13 |
+
// value is {type: atype, style: astyle}
|
| 14 |
+
var keywords = function(){
|
| 15 |
+
// convenience functions used to build keywords object
|
| 16 |
+
function kw(type) {return {type: type, style: "keyword"};}
|
| 17 |
+
var operator = kw("operator")
|
| 18 |
+
, atom = {type: "atom", style: "atom"}
|
| 19 |
+
, punctuation = {type: "punctuation", style: null}
|
| 20 |
+
, qualifier = {type: "axis_specifier", style: "qualifier"};
|
| 21 |
+
|
| 22 |
+
// kwObj is what is return from this function at the end
|
| 23 |
+
var kwObj = {
|
| 24 |
+
',': punctuation
|
| 25 |
+
};
|
| 26 |
+
|
| 27 |
+
// a list of 'basic' keywords. For each add a property to kwObj with the value of
|
| 28 |
+
// {type: basic[i], style: "keyword"} e.g. 'after' --> {type: "after", style: "keyword"}
|
| 29 |
+
var basic = ['after', 'all', 'allowing', 'ancestor', 'ancestor-or-self', 'any', 'array', 'as',
|
| 30 |
+
'ascending', 'at', 'attribute', 'base-uri', 'before', 'boundary-space', 'by', 'case', 'cast',
|
| 31 |
+
'castable', 'catch', 'child', 'collation', 'comment', 'construction', 'contains', 'content',
|
| 32 |
+
'context', 'copy', 'copy-namespaces', 'count', 'decimal-format', 'declare', 'default', 'delete',
|
| 33 |
+
'descendant', 'descendant-or-self', 'descending', 'diacritics', 'different', 'distance',
|
| 34 |
+
'document', 'document-node', 'element', 'else', 'empty', 'empty-sequence', 'encoding', 'end',
|
| 35 |
+
'entire', 'every', 'exactly', 'except', 'external', 'first', 'following', 'following-sibling',
|
| 36 |
+
'for', 'from', 'ftand', 'ftnot', 'ft-option', 'ftor', 'function', 'fuzzy', 'greatest', 'group',
|
| 37 |
+
'if', 'import', 'in', 'inherit', 'insensitive', 'insert', 'instance', 'intersect', 'into',
|
| 38 |
+
'invoke', 'is', 'item', 'language', 'last', 'lax', 'least', 'let', 'levels', 'lowercase', 'map',
|
| 39 |
+
'modify', 'module', 'most', 'namespace', 'next', 'no', 'node', 'nodes', 'no-inherit',
|
| 40 |
+
'no-preserve', 'not', 'occurs', 'of', 'only', 'option', 'order', 'ordered', 'ordering',
|
| 41 |
+
'paragraph', 'paragraphs', 'parent', 'phrase', 'preceding', 'preceding-sibling', 'preserve',
|
| 42 |
+
'previous', 'processing-instruction', 'relationship', 'rename', 'replace', 'return',
|
| 43 |
+
'revalidation', 'same', 'satisfies', 'schema', 'schema-attribute', 'schema-element', 'score',
|
| 44 |
+
'self', 'sensitive', 'sentence', 'sentences', 'sequence', 'skip', 'sliding', 'some', 'stable',
|
| 45 |
+
'start', 'stemming', 'stop', 'strict', 'strip', 'switch', 'text', 'then', 'thesaurus', 'times',
|
| 46 |
+
'to', 'transform', 'treat', 'try', 'tumbling', 'type', 'typeswitch', 'union', 'unordered',
|
| 47 |
+
'update', 'updating', 'uppercase', 'using', 'validate', 'value', 'variable', 'version',
|
| 48 |
+
'weight', 'when', 'where', 'wildcards', 'window', 'with', 'without', 'word', 'words', 'xquery'];
|
| 49 |
+
for(var i=0, l=basic.length; i < l; i++) { kwObj[basic[i]] = kw(basic[i]);};
|
| 50 |
+
|
| 51 |
+
// a list of types. For each add a property to kwObj with the value of
|
| 52 |
+
// {type: "atom", style: "atom"}
|
| 53 |
+
var types = ['xs:anyAtomicType', 'xs:anySimpleType', 'xs:anyType', 'xs:anyURI',
|
| 54 |
+
'xs:base64Binary', 'xs:boolean', 'xs:byte', 'xs:date', 'xs:dateTime', 'xs:dateTimeStamp',
|
| 55 |
+
'xs:dayTimeDuration', 'xs:decimal', 'xs:double', 'xs:duration', 'xs:ENTITIES', 'xs:ENTITY',
|
| 56 |
+
'xs:float', 'xs:gDay', 'xs:gMonth', 'xs:gMonthDay', 'xs:gYear', 'xs:gYearMonth', 'xs:hexBinary',
|
| 57 |
+
'xs:ID', 'xs:IDREF', 'xs:IDREFS', 'xs:int', 'xs:integer', 'xs:item', 'xs:java', 'xs:language',
|
| 58 |
+
'xs:long', 'xs:Name', 'xs:NCName', 'xs:negativeInteger', 'xs:NMTOKEN', 'xs:NMTOKENS',
|
| 59 |
+
'xs:nonNegativeInteger', 'xs:nonPositiveInteger', 'xs:normalizedString', 'xs:NOTATION',
|
| 60 |
+
'xs:numeric', 'xs:positiveInteger', 'xs:precisionDecimal', 'xs:QName', 'xs:short', 'xs:string',
|
| 61 |
+
'xs:time', 'xs:token', 'xs:unsignedByte', 'xs:unsignedInt', 'xs:unsignedLong',
|
| 62 |
+
'xs:unsignedShort', 'xs:untyped', 'xs:untypedAtomic', 'xs:yearMonthDuration'];
|
| 63 |
+
for(var i=0, l=types.length; i < l; i++) { kwObj[types[i]] = atom;};
|
| 64 |
+
|
| 65 |
+
// each operator will add a property to kwObj with value of {type: "operator", style: "keyword"}
|
| 66 |
+
var operators = ['eq', 'ne', 'lt', 'le', 'gt', 'ge', ':=', '=', '>', '>=', '<', '<=', '.', '|', '?', 'and', 'or', 'div', 'idiv', 'mod', '*', '/', '+', '-'];
|
| 67 |
+
for(var i=0, l=operators.length; i < l; i++) { kwObj[operators[i]] = operator;};
|
| 68 |
+
|
| 69 |
+
// each axis_specifiers will add a property to kwObj with value of {type: "axis_specifier", style: "qualifier"}
|
| 70 |
+
var axis_specifiers = ["self::", "attribute::", "child::", "descendant::", "descendant-or-self::", "parent::",
|
| 71 |
+
"ancestor::", "ancestor-or-self::", "following::", "preceding::", "following-sibling::", "preceding-sibling::"];
|
| 72 |
+
for(var i=0, l=axis_specifiers.length; i < l; i++) { kwObj[axis_specifiers[i]] = qualifier; };
|
| 73 |
+
|
| 74 |
+
return kwObj;
|
| 75 |
+
}();
|
| 76 |
+
|
| 77 |
+
function chain(stream, state, f) {
|
| 78 |
+
state.tokenize = f;
|
| 79 |
+
return f(stream, state);
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
// the primary mode tokenizer
|
| 83 |
+
function tokenBase(stream, state) {
|
| 84 |
+
var ch = stream.next(),
|
| 85 |
+
mightBeFunction = false,
|
| 86 |
+
isEQName = isEQNameAhead(stream);
|
| 87 |
+
|
| 88 |
+
// an XML tag (if not in some sub, chained tokenizer)
|
| 89 |
+
if (ch == "<") {
|
| 90 |
+
if(stream.match("!--", true))
|
| 91 |
+
return chain(stream, state, tokenXMLComment);
|
| 92 |
+
|
| 93 |
+
if(stream.match("![CDATA", false)) {
|
| 94 |
+
state.tokenize = tokenCDATA;
|
| 95 |
+
return "tag";
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
if(stream.match("?", false)) {
|
| 99 |
+
return chain(stream, state, tokenPreProcessing);
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
var isclose = stream.eat("/");
|
| 103 |
+
stream.eatSpace();
|
| 104 |
+
var tagName = "", c;
|
| 105 |
+
while ((c = stream.eat(/[^\s\u00a0=<>\"\'\/?]/))) tagName += c;
|
| 106 |
+
|
| 107 |
+
return chain(stream, state, tokenTag(tagName, isclose));
|
| 108 |
+
}
|
| 109 |
+
// start code block
|
| 110 |
+
else if(ch == "{") {
|
| 111 |
+
pushStateStack(state, { type: "codeblock"});
|
| 112 |
+
return null;
|
| 113 |
+
}
|
| 114 |
+
// end code block
|
| 115 |
+
else if(ch == "}") {
|
| 116 |
+
popStateStack(state);
|
| 117 |
+
return null;
|
| 118 |
+
}
|
| 119 |
+
// if we're in an XML block
|
| 120 |
+
else if(isInXmlBlock(state)) {
|
| 121 |
+
if(ch == ">")
|
| 122 |
+
return "tag";
|
| 123 |
+
else if(ch == "/" && stream.eat(">")) {
|
| 124 |
+
popStateStack(state);
|
| 125 |
+
return "tag";
|
| 126 |
+
}
|
| 127 |
+
else
|
| 128 |
+
return "variable";
|
| 129 |
+
}
|
| 130 |
+
// if a number
|
| 131 |
+
else if (/\d/.test(ch)) {
|
| 132 |
+
stream.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/);
|
| 133 |
+
return "atom";
|
| 134 |
+
}
|
| 135 |
+
// comment start
|
| 136 |
+
else if (ch === "(" && stream.eat(":")) {
|
| 137 |
+
pushStateStack(state, { type: "comment"});
|
| 138 |
+
return chain(stream, state, tokenComment);
|
| 139 |
+
}
|
| 140 |
+
// quoted string
|
| 141 |
+
else if (!isEQName && (ch === '"' || ch === "'"))
|
| 142 |
+
return chain(stream, state, tokenString(ch));
|
| 143 |
+
// variable
|
| 144 |
+
else if(ch === "$") {
|
| 145 |
+
return chain(stream, state, tokenVariable);
|
| 146 |
+
}
|
| 147 |
+
// assignment
|
| 148 |
+
else if(ch ===":" && stream.eat("=")) {
|
| 149 |
+
return "keyword";
|
| 150 |
+
}
|
| 151 |
+
// open paren
|
| 152 |
+
else if(ch === "(") {
|
| 153 |
+
pushStateStack(state, { type: "paren"});
|
| 154 |
+
return null;
|
| 155 |
+
}
|
| 156 |
+
// close paren
|
| 157 |
+
else if(ch === ")") {
|
| 158 |
+
popStateStack(state);
|
| 159 |
+
return null;
|
| 160 |
+
}
|
| 161 |
+
// open paren
|
| 162 |
+
else if(ch === "[") {
|
| 163 |
+
pushStateStack(state, { type: "bracket"});
|
| 164 |
+
return null;
|
| 165 |
+
}
|
| 166 |
+
// close paren
|
| 167 |
+
else if(ch === "]") {
|
| 168 |
+
popStateStack(state);
|
| 169 |
+
return null;
|
| 170 |
+
}
|
| 171 |
+
else {
|
| 172 |
+
var known = keywords.propertyIsEnumerable(ch) && keywords[ch];
|
| 173 |
+
|
| 174 |
+
// if there's a EQName ahead, consume the rest of the string portion, it's likely a function
|
| 175 |
+
if(isEQName && ch === '\"') while(stream.next() !== '"'){}
|
| 176 |
+
if(isEQName && ch === '\'') while(stream.next() !== '\''){}
|
| 177 |
+
|
| 178 |
+
// gobble up a word if the character is not known
|
| 179 |
+
if(!known) stream.eatWhile(/[\w\$_-]/);
|
| 180 |
+
|
| 181 |
+
// gobble a colon in the case that is a lib func type call fn:doc
|
| 182 |
+
var foundColon = stream.eat(":");
|
| 183 |
+
|
| 184 |
+
// if there's not a second colon, gobble another word. Otherwise, it's probably an axis specifier
|
| 185 |
+
// which should get matched as a keyword
|
| 186 |
+
if(!stream.eat(":") && foundColon) {
|
| 187 |
+
stream.eatWhile(/[\w\$_-]/);
|
| 188 |
+
}
|
| 189 |
+
// if the next non whitespace character is an open paren, this is probably a function (if not a keyword of other sort)
|
| 190 |
+
if(stream.match(/^[ \t]*\(/, false)) {
|
| 191 |
+
mightBeFunction = true;
|
| 192 |
+
}
|
| 193 |
+
// is the word a keyword?
|
| 194 |
+
var word = stream.current();
|
| 195 |
+
known = keywords.propertyIsEnumerable(word) && keywords[word];
|
| 196 |
+
|
| 197 |
+
// if we think it's a function call but not yet known,
|
| 198 |
+
// set style to variable for now for lack of something better
|
| 199 |
+
if(mightBeFunction && !known) known = {type: "function_call", style: "def"};
|
| 200 |
+
|
| 201 |
+
// if the previous word was element, attribute, axis specifier, this word should be the name of that
|
| 202 |
+
if(isInXmlConstructor(state)) {
|
| 203 |
+
popStateStack(state);
|
| 204 |
+
return "variable";
|
| 205 |
+
}
|
| 206 |
+
// as previously checked, if the word is element,attribute, axis specifier, call it an "xmlconstructor" and
|
| 207 |
+
// push the stack so we know to look for it on the next word
|
| 208 |
+
if(word == "element" || word == "attribute" || known.type == "axis_specifier") pushStateStack(state, {type: "xmlconstructor"});
|
| 209 |
+
|
| 210 |
+
// if the word is known, return the details of that else just call this a generic 'word'
|
| 211 |
+
return known ? known.style : "variable";
|
| 212 |
+
}
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
// handle comments, including nested
|
| 216 |
+
function tokenComment(stream, state) {
|
| 217 |
+
var maybeEnd = false, maybeNested = false, nestedCount = 0, ch;
|
| 218 |
+
while (ch = stream.next()) {
|
| 219 |
+
if (ch == ")" && maybeEnd) {
|
| 220 |
+
if(nestedCount > 0)
|
| 221 |
+
nestedCount--;
|
| 222 |
+
else {
|
| 223 |
+
popStateStack(state);
|
| 224 |
+
break;
|
| 225 |
+
}
|
| 226 |
+
}
|
| 227 |
+
else if(ch == ":" && maybeNested) {
|
| 228 |
+
nestedCount++;
|
| 229 |
+
}
|
| 230 |
+
maybeEnd = (ch == ":");
|
| 231 |
+
maybeNested = (ch == "(");
|
| 232 |
+
}
|
| 233 |
+
|
| 234 |
+
return "comment";
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
// tokenizer for string literals
|
| 238 |
+
// optionally pass a tokenizer function to set state.tokenize back to when finished
|
| 239 |
+
function tokenString(quote, f) {
|
| 240 |
+
return function(stream, state) {
|
| 241 |
+
var ch;
|
| 242 |
+
|
| 243 |
+
if(isInString(state) && stream.current() == quote) {
|
| 244 |
+
popStateStack(state);
|
| 245 |
+
if(f) state.tokenize = f;
|
| 246 |
+
return "string";
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
pushStateStack(state, { type: "string", name: quote, tokenize: tokenString(quote, f) });
|
| 250 |
+
|
| 251 |
+
// if we're in a string and in an XML block, allow an embedded code block
|
| 252 |
+
if(stream.match("{", false) && isInXmlAttributeBlock(state)) {
|
| 253 |
+
state.tokenize = tokenBase;
|
| 254 |
+
return "string";
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
while (ch = stream.next()) {
|
| 259 |
+
if (ch == quote) {
|
| 260 |
+
popStateStack(state);
|
| 261 |
+
if(f) state.tokenize = f;
|
| 262 |
+
break;
|
| 263 |
+
}
|
| 264 |
+
else {
|
| 265 |
+
// if we're in a string and in an XML block, allow an embedded code block in an attribute
|
| 266 |
+
if(stream.match("{", false) && isInXmlAttributeBlock(state)) {
|
| 267 |
+
state.tokenize = tokenBase;
|
| 268 |
+
return "string";
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
}
|
| 272 |
+
}
|
| 273 |
+
|
| 274 |
+
return "string";
|
| 275 |
+
};
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
// tokenizer for variables
|
| 279 |
+
function tokenVariable(stream, state) {
|
| 280 |
+
var isVariableChar = /[\w\$_-]/;
|
| 281 |
+
|
| 282 |
+
// a variable may start with a quoted EQName so if the next character is quote, consume to the next quote
|
| 283 |
+
if(stream.eat("\"")) {
|
| 284 |
+
while(stream.next() !== '\"'){};
|
| 285 |
+
stream.eat(":");
|
| 286 |
+
} else {
|
| 287 |
+
stream.eatWhile(isVariableChar);
|
| 288 |
+
if(!stream.match(":=", false)) stream.eat(":");
|
| 289 |
+
}
|
| 290 |
+
stream.eatWhile(isVariableChar);
|
| 291 |
+
state.tokenize = tokenBase;
|
| 292 |
+
return "variable";
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
// tokenizer for XML tags
|
| 296 |
+
function tokenTag(name, isclose) {
|
| 297 |
+
return function(stream, state) {
|
| 298 |
+
stream.eatSpace();
|
| 299 |
+
if(isclose && stream.eat(">")) {
|
| 300 |
+
popStateStack(state);
|
| 301 |
+
state.tokenize = tokenBase;
|
| 302 |
+
return "tag";
|
| 303 |
+
}
|
| 304 |
+
// self closing tag without attributes?
|
| 305 |
+
if(!stream.eat("/"))
|
| 306 |
+
pushStateStack(state, { type: "tag", name: name, tokenize: tokenBase});
|
| 307 |
+
if(!stream.eat(">")) {
|
| 308 |
+
state.tokenize = tokenAttribute;
|
| 309 |
+
return "tag";
|
| 310 |
+
}
|
| 311 |
+
else {
|
| 312 |
+
state.tokenize = tokenBase;
|
| 313 |
+
}
|
| 314 |
+
return "tag";
|
| 315 |
+
};
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
// tokenizer for XML attributes
|
| 319 |
+
function tokenAttribute(stream, state) {
|
| 320 |
+
var ch = stream.next();
|
| 321 |
+
|
| 322 |
+
if(ch == "/" && stream.eat(">")) {
|
| 323 |
+
if(isInXmlAttributeBlock(state)) popStateStack(state);
|
| 324 |
+
if(isInXmlBlock(state)) popStateStack(state);
|
| 325 |
+
return "tag";
|
| 326 |
+
}
|
| 327 |
+
if(ch == ">") {
|
| 328 |
+
if(isInXmlAttributeBlock(state)) popStateStack(state);
|
| 329 |
+
return "tag";
|
| 330 |
+
}
|
| 331 |
+
if(ch == "=")
|
| 332 |
+
return null;
|
| 333 |
+
// quoted string
|
| 334 |
+
if (ch == '"' || ch == "'")
|
| 335 |
+
return chain(stream, state, tokenString(ch, tokenAttribute));
|
| 336 |
+
|
| 337 |
+
if(!isInXmlAttributeBlock(state))
|
| 338 |
+
pushStateStack(state, { type: "attribute", tokenize: tokenAttribute});
|
| 339 |
+
|
| 340 |
+
stream.eat(/[a-zA-Z_:]/);
|
| 341 |
+
stream.eatWhile(/[-a-zA-Z0-9_:.]/);
|
| 342 |
+
stream.eatSpace();
|
| 343 |
+
|
| 344 |
+
// the case where the attribute has not value and the tag was closed
|
| 345 |
+
if(stream.match(">", false) || stream.match("/", false)) {
|
| 346 |
+
popStateStack(state);
|
| 347 |
+
state.tokenize = tokenBase;
|
| 348 |
+
}
|
| 349 |
+
|
| 350 |
+
return "attribute";
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
// handle comments, including nested
|
| 354 |
+
function tokenXMLComment(stream, state) {
|
| 355 |
+
var ch;
|
| 356 |
+
while (ch = stream.next()) {
|
| 357 |
+
if (ch == "-" && stream.match("->", true)) {
|
| 358 |
+
state.tokenize = tokenBase;
|
| 359 |
+
return "comment";
|
| 360 |
+
}
|
| 361 |
+
}
|
| 362 |
+
}
|
| 363 |
+
|
| 364 |
+
|
| 365 |
+
// handle CDATA
|
| 366 |
+
function tokenCDATA(stream, state) {
|
| 367 |
+
var ch;
|
| 368 |
+
while (ch = stream.next()) {
|
| 369 |
+
if (ch == "]" && stream.match("]", true)) {
|
| 370 |
+
state.tokenize = tokenBase;
|
| 371 |
+
return "comment";
|
| 372 |
+
}
|
| 373 |
+
}
|
| 374 |
+
}
|
| 375 |
+
|
| 376 |
+
// handle preprocessing instructions
|
| 377 |
+
function tokenPreProcessing(stream, state) {
|
| 378 |
+
var ch;
|
| 379 |
+
while (ch = stream.next()) {
|
| 380 |
+
if (ch == "?" && stream.match(">", true)) {
|
| 381 |
+
state.tokenize = tokenBase;
|
| 382 |
+
return "processingInstruction";
|
| 383 |
+
}
|
| 384 |
+
}
|
| 385 |
+
}
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
// functions to test the current context of the state
|
| 389 |
+
function isInXmlBlock(state) { return isIn(state, "tag"); }
|
| 390 |
+
function isInXmlAttributeBlock(state) { return isIn(state, "attribute"); }
|
| 391 |
+
function isInXmlConstructor(state) { return isIn(state, "xmlconstructor"); }
|
| 392 |
+
function isInString(state) { return isIn(state, "string"); }
|
| 393 |
+
|
| 394 |
+
function isEQNameAhead(stream) {
|
| 395 |
+
// assume we've already eaten a quote (")
|
| 396 |
+
if(stream.current() === '"')
|
| 397 |
+
return stream.match(/^[^\"]+\"\:/, false);
|
| 398 |
+
else if(stream.current() === '\'')
|
| 399 |
+
return stream.match(/^[^\"]+\'\:/, false);
|
| 400 |
+
else
|
| 401 |
+
return false;
|
| 402 |
+
}
|
| 403 |
+
|
| 404 |
+
function isIn(state, type) {
|
| 405 |
+
return (state.stack.length && state.stack[state.stack.length - 1].type == type);
|
| 406 |
+
}
|
| 407 |
+
|
| 408 |
+
function pushStateStack(state, newState) {
|
| 409 |
+
state.stack.push(newState);
|
| 410 |
+
}
|
| 411 |
+
|
| 412 |
+
function popStateStack(state) {
|
| 413 |
+
state.stack.pop();
|
| 414 |
+
var reinstateTokenize = state.stack.length && state.stack[state.stack.length-1].tokenize;
|
| 415 |
+
state.tokenize = reinstateTokenize || tokenBase;
|
| 416 |
+
}
|
| 417 |
+
|
| 418 |
+
// the interface for the mode API
|
| 419 |
+
const xQuery = {
|
| 420 |
+
name: "xquery",
|
| 421 |
+
startState: function() {
|
| 422 |
+
return {
|
| 423 |
+
tokenize: tokenBase,
|
| 424 |
+
cc: [],
|
| 425 |
+
stack: []
|
| 426 |
+
};
|
| 427 |
+
},
|
| 428 |
+
|
| 429 |
+
token: function(stream, state) {
|
| 430 |
+
if (stream.eatSpace()) return null;
|
| 431 |
+
var style = state.tokenize(stream, state);
|
| 432 |
+
return style;
|
| 433 |
+
},
|
| 434 |
+
|
| 435 |
+
languageData: {
|
| 436 |
+
commentTokens: {block: {open: "(:", close: ":)"}}
|
| 437 |
+
}
|
| 438 |
+
};
|
| 439 |
+
|
| 440 |
+
|
| 441 |
+
/***/ })
|
| 442 |
+
|
| 443 |
+
}]);
|
| 444 |
+
//# sourceMappingURL=3230.25e2cf51e31209917c87.js.map?v=25e2cf51e31209917c87
|
vlmpy310/lib/python3.10/site-packages/notebook/static/3336.1430b8576b899f650fb9.js
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[3336],{
|
| 3 |
+
|
| 4 |
+
/***/ 33336:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ octave: () => (/* binding */ octave)
|
| 10 |
+
/* harmony export */ });
|
| 11 |
+
function wordRegexp(words) {
|
| 12 |
+
return new RegExp("^((" + words.join(")|(") + "))\\b");
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
var singleOperators = new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]");
|
| 16 |
+
var singleDelimiters = new RegExp('^[\\(\\[\\{\\},:=;\\.]');
|
| 17 |
+
var doubleOperators = new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))");
|
| 18 |
+
var doubleDelimiters = new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))");
|
| 19 |
+
var tripleDelimiters = new RegExp("^((>>=)|(<<=))");
|
| 20 |
+
var expressionEnd = new RegExp("^[\\]\\)]");
|
| 21 |
+
var identifiers = new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*");
|
| 22 |
+
|
| 23 |
+
var builtins = wordRegexp([
|
| 24 |
+
'error', 'eval', 'function', 'abs', 'acos', 'atan', 'asin', 'cos',
|
| 25 |
+
'cosh', 'exp', 'log', 'prod', 'sum', 'log10', 'max', 'min', 'sign', 'sin', 'sinh',
|
| 26 |
+
'sqrt', 'tan', 'reshape', 'break', 'zeros', 'default', 'margin', 'round', 'ones',
|
| 27 |
+
'rand', 'syn', 'ceil', 'floor', 'size', 'clear', 'zeros', 'eye', 'mean', 'std', 'cov',
|
| 28 |
+
'det', 'eig', 'inv', 'norm', 'rank', 'trace', 'expm', 'logm', 'sqrtm', 'linspace', 'plot',
|
| 29 |
+
'title', 'xlabel', 'ylabel', 'legend', 'text', 'grid', 'meshgrid', 'mesh', 'num2str',
|
| 30 |
+
'fft', 'ifft', 'arrayfun', 'cellfun', 'input', 'fliplr', 'flipud', 'ismember'
|
| 31 |
+
]);
|
| 32 |
+
|
| 33 |
+
var keywords = wordRegexp([
|
| 34 |
+
'return', 'case', 'switch', 'else', 'elseif', 'end', 'endif', 'endfunction',
|
| 35 |
+
'if', 'otherwise', 'do', 'for', 'while', 'try', 'catch', 'classdef', 'properties', 'events',
|
| 36 |
+
'methods', 'global', 'persistent', 'endfor', 'endwhile', 'printf', 'sprintf', 'disp', 'until',
|
| 37 |
+
'continue', 'pkg'
|
| 38 |
+
]);
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
// tokenizers
|
| 42 |
+
function tokenTranspose(stream, state) {
|
| 43 |
+
if (!stream.sol() && stream.peek() === '\'') {
|
| 44 |
+
stream.next();
|
| 45 |
+
state.tokenize = tokenBase;
|
| 46 |
+
return 'operator';
|
| 47 |
+
}
|
| 48 |
+
state.tokenize = tokenBase;
|
| 49 |
+
return tokenBase(stream, state);
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
function tokenComment(stream, state) {
|
| 54 |
+
if (stream.match(/^.*%}/)) {
|
| 55 |
+
state.tokenize = tokenBase;
|
| 56 |
+
return 'comment';
|
| 57 |
+
};
|
| 58 |
+
stream.skipToEnd();
|
| 59 |
+
return 'comment';
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
function tokenBase(stream, state) {
|
| 63 |
+
// whitespaces
|
| 64 |
+
if (stream.eatSpace()) return null;
|
| 65 |
+
|
| 66 |
+
// Handle one line Comments
|
| 67 |
+
if (stream.match('%{')){
|
| 68 |
+
state.tokenize = tokenComment;
|
| 69 |
+
stream.skipToEnd();
|
| 70 |
+
return 'comment';
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
if (stream.match(/^[%#]/)){
|
| 74 |
+
stream.skipToEnd();
|
| 75 |
+
return 'comment';
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
// Handle Number Literals
|
| 79 |
+
if (stream.match(/^[0-9\.+-]/, false)) {
|
| 80 |
+
if (stream.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)) {
|
| 81 |
+
stream.tokenize = tokenBase;
|
| 82 |
+
return 'number'; };
|
| 83 |
+
if (stream.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
|
| 84 |
+
if (stream.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)) { return 'number'; };
|
| 85 |
+
}
|
| 86 |
+
if (stream.match(wordRegexp(['nan','NaN','inf','Inf']))) { return 'number'; };
|
| 87 |
+
|
| 88 |
+
// Handle Strings
|
| 89 |
+
var m = stream.match(/^"(?:[^"]|"")*("|$)/) || stream.match(/^'(?:[^']|'')*('|$)/)
|
| 90 |
+
if (m) { return m[1] ? 'string' : "error"; }
|
| 91 |
+
|
| 92 |
+
// Handle words
|
| 93 |
+
if (stream.match(keywords)) { return 'keyword'; } ;
|
| 94 |
+
if (stream.match(builtins)) { return 'builtin'; } ;
|
| 95 |
+
if (stream.match(identifiers)) { return 'variable'; } ;
|
| 96 |
+
|
| 97 |
+
if (stream.match(singleOperators) || stream.match(doubleOperators)) { return 'operator'; };
|
| 98 |
+
if (stream.match(singleDelimiters) || stream.match(doubleDelimiters) || stream.match(tripleDelimiters)) { return null; };
|
| 99 |
+
|
| 100 |
+
if (stream.match(expressionEnd)) {
|
| 101 |
+
state.tokenize = tokenTranspose;
|
| 102 |
+
return null;
|
| 103 |
+
};
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
// Handle non-detected items
|
| 107 |
+
stream.next();
|
| 108 |
+
return 'error';
|
| 109 |
+
};
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
const octave = {
|
| 113 |
+
name: "octave",
|
| 114 |
+
|
| 115 |
+
startState: function() {
|
| 116 |
+
return {
|
| 117 |
+
tokenize: tokenBase
|
| 118 |
+
};
|
| 119 |
+
},
|
| 120 |
+
|
| 121 |
+
token: function(stream, state) {
|
| 122 |
+
var style = state.tokenize(stream, state);
|
| 123 |
+
if (style === 'number' || style === 'variable'){
|
| 124 |
+
state.tokenize = tokenTranspose;
|
| 125 |
+
}
|
| 126 |
+
return style;
|
| 127 |
+
},
|
| 128 |
+
|
| 129 |
+
languageData: {
|
| 130 |
+
commentTokens: {line: "%"}
|
| 131 |
+
}
|
| 132 |
+
};
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
/***/ })
|
| 137 |
+
|
| 138 |
+
}]);
|
| 139 |
+
//# sourceMappingURL=3336.1430b8576b899f650fb9.js.map?v=1430b8576b899f650fb9
|
vlmpy310/lib/python3.10/site-packages/notebook/static/3462.0383dfd16602627036bd.js.map
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlmpy310/lib/python3.10/site-packages/notebook/static/3488.405b2a619b7b87fc6f6b.js
ADDED
|
@@ -0,0 +1,2100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[3488],{
|
| 2 |
+
|
| 3 |
+
/***/ 79580:
|
| 4 |
+
/***/ (function(module) {
|
| 5 |
+
|
| 6 |
+
!function(e,t){ true?module.exports=t():0}(this,(function(){"use strict";return function(e,t){var r=t.prototype,n=r.format;r.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return n.bind(this)(e);var s=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return s.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return s.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return s.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return n.bind(this)(a)}}}));
|
| 7 |
+
|
| 8 |
+
/***/ }),
|
| 9 |
+
|
| 10 |
+
/***/ 69746:
|
| 11 |
+
/***/ (function(module) {
|
| 12 |
+
|
| 13 |
+
!function(e,t){ true?module.exports=t():0}(this,(function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)};var a=function(e){return function(t){this[e]=+t}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],h=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n,a("day")],Do:[i,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,a("month")],MM:[n,a("month")],MMM:[i,function(e){var t=h("months"),n=(h("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=h("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,a("year")],Z:f,ZZ:f};function c(n){var r,i;r=n,i=o&&o.formats;for(var s=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=s.length,f=0;f<a;f+=1){var h=s[f],u=d[h],c=u&&u[0],l=u&&u[1];s[f]=l?{regex:c,parser:l}:h.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=s[n];if("string"==typeof i)r+=i.length;else{var o=i.regex,f=i.parser,h=e.slice(r),u=o.exec(h)[0];f.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,s=e.args;this.$u=r;var a=s[1];if("string"==typeof a){var f=!0===s[2],h=!0===s[3],u=f||h,d=s[2];h&&(d=s[2]),o=this.$locale(),!f&&d&&(o=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=c(t)(e),i=r.year,o=r.month,s=r.day,a=r.hours,f=r.minutes,h=r.seconds,u=r.milliseconds,d=r.zone,l=new Date,m=s||(i||o?1:l.getDate()),M=i||l.getFullYear(),Y=0;i&&!o||(Y=o>0?o-1:l.getMonth());var p=a||0,v=f||0,D=h||0,g=u||0;return d?new Date(Date.UTC(M,Y,m,p,v,D,g+60*d.offset*1e3)):n?new Date(Date.UTC(M,Y,m,p,v,D,g)):new Date(M,Y,m,p,v,D,g)}catch(e){return new Date("")}}(t,a,r),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={}}else if(a instanceof Array)for(var l=a.length,m=1;m<=l;m+=1){s[1]=a[m-1];var M=n.apply(this,s);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l&&(this.$d=new Date(""))}else i.call(this,e)}}}));
|
| 14 |
+
|
| 15 |
+
/***/ }),
|
| 16 |
+
|
| 17 |
+
/***/ 57635:
|
| 18 |
+
/***/ (function(module) {
|
| 19 |
+
|
| 20 |
+
!function(e,t){ true?module.exports=t():0}(this,(function(){"use strict";var e="day";return function(t,i,s){var a=function(t){return t.add(4-t.isoWeekday(),e)},d=i.prototype;d.isoWeekYear=function(){return a(this).year()},d.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var i,d,n,o,r=a(this),u=(i=this.isoWeekYear(),d=this.$u,n=(d?s.utc:s)().year(i).startOf("year"),o=4-n.isoWeekday(),n.isoWeekday()>4&&(o+=7),n.add(o,e));return r.diff(u,"week")+1},d.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var n=d.startOf;d.startOf=function(e,t){var i=this.$utils(),s=!!i.u(t)||t;return"isoweek"===i.p(e)?s?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n.bind(this)(e,t)}}}));
|
| 21 |
+
|
| 22 |
+
/***/ }),
|
| 23 |
+
|
| 24 |
+
/***/ 63488:
|
| 25 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 26 |
+
|
| 27 |
+
"use strict";
|
| 28 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 29 |
+
/* harmony export */ diagram: () => (/* binding */ diagram)
|
| 30 |
+
/* harmony export */ });
|
| 31 |
+
/* harmony import */ var _braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7608);
|
| 32 |
+
/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27693);
|
| 33 |
+
/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_1__);
|
| 34 |
+
/* harmony import */ var dayjs_plugin_isoWeek_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57635);
|
| 35 |
+
/* harmony import */ var dayjs_plugin_isoWeek_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(dayjs_plugin_isoWeek_js__WEBPACK_IMPORTED_MODULE_2__);
|
| 36 |
+
/* harmony import */ var dayjs_plugin_customParseFormat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(69746);
|
| 37 |
+
/* harmony import */ var dayjs_plugin_customParseFormat_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(dayjs_plugin_customParseFormat_js__WEBPACK_IMPORTED_MODULE_3__);
|
| 38 |
+
/* harmony import */ var dayjs_plugin_advancedFormat_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(79580);
|
| 39 |
+
/* harmony import */ var dayjs_plugin_advancedFormat_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(dayjs_plugin_advancedFormat_js__WEBPACK_IMPORTED_MODULE_4__);
|
| 40 |
+
/* harmony import */ var _mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24028);
|
| 41 |
+
/* harmony import */ var d3__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23617);
|
| 42 |
+
/* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31699);
|
| 43 |
+
/* harmony import */ var dompurify__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(dompurify__WEBPACK_IMPORTED_MODULE_6__);
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
var parser = function() {
|
| 59 |
+
var o = function(k, v, o2, l) {
|
| 60 |
+
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
|
| 61 |
+
;
|
| 62 |
+
return o2;
|
| 63 |
+
}, $V0 = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 30, 32, 33, 35, 37], $V1 = [1, 25], $V2 = [1, 26], $V3 = [1, 27], $V4 = [1, 28], $V5 = [1, 29], $V6 = [1, 30], $V7 = [1, 31], $V8 = [1, 9], $V9 = [1, 10], $Va = [1, 11], $Vb = [1, 12], $Vc = [1, 13], $Vd = [1, 14], $Ve = [1, 15], $Vf = [1, 16], $Vg = [1, 18], $Vh = [1, 19], $Vi = [1, 20], $Vj = [1, 21], $Vk = [1, 22], $Vl = [1, 24], $Vm = [1, 32];
|
| 64 |
+
var parser2 = {
|
| 65 |
+
trace: function trace() {
|
| 66 |
+
},
|
| 67 |
+
yy: {},
|
| 68 |
+
symbols_: { "error": 2, "start": 3, "gantt": 4, "document": 5, "EOF": 6, "line": 7, "SPACE": 8, "statement": 9, "NL": 10, "weekday": 11, "weekday_monday": 12, "weekday_tuesday": 13, "weekday_wednesday": 14, "weekday_thursday": 15, "weekday_friday": 16, "weekday_saturday": 17, "weekday_sunday": 18, "dateFormat": 19, "inclusiveEndDates": 20, "topAxis": 21, "axisFormat": 22, "tickInterval": 23, "excludes": 24, "includes": 25, "todayMarker": 26, "title": 27, "acc_title": 28, "acc_title_value": 29, "acc_descr": 30, "acc_descr_value": 31, "acc_descr_multiline_value": 32, "section": 33, "clickStatement": 34, "taskTxt": 35, "taskData": 36, "click": 37, "callbackname": 38, "callbackargs": 39, "href": 40, "clickStatementDebug": 41, "$accept": 0, "$end": 1 },
|
| 69 |
+
terminals_: { 2: "error", 4: "gantt", 6: "EOF", 8: "SPACE", 10: "NL", 12: "weekday_monday", 13: "weekday_tuesday", 14: "weekday_wednesday", 15: "weekday_thursday", 16: "weekday_friday", 17: "weekday_saturday", 18: "weekday_sunday", 19: "dateFormat", 20: "inclusiveEndDates", 21: "topAxis", 22: "axisFormat", 23: "tickInterval", 24: "excludes", 25: "includes", 26: "todayMarker", 27: "title", 28: "acc_title", 29: "acc_title_value", 30: "acc_descr", 31: "acc_descr_value", 32: "acc_descr_multiline_value", 33: "section", 35: "taskTxt", 36: "taskData", 37: "click", 38: "callbackname", 39: "callbackargs", 40: "href" },
|
| 70 |
+
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [11, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 2], [34, 2], [34, 3], [34, 3], [34, 4], [34, 3], [34, 4], [34, 2], [41, 2], [41, 3], [41, 3], [41, 4], [41, 3], [41, 4], [41, 2]],
|
| 71 |
+
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
|
| 72 |
+
var $0 = $$.length - 1;
|
| 73 |
+
switch (yystate) {
|
| 74 |
+
case 1:
|
| 75 |
+
return $$[$0 - 1];
|
| 76 |
+
case 2:
|
| 77 |
+
this.$ = [];
|
| 78 |
+
break;
|
| 79 |
+
case 3:
|
| 80 |
+
$$[$0 - 1].push($$[$0]);
|
| 81 |
+
this.$ = $$[$0 - 1];
|
| 82 |
+
break;
|
| 83 |
+
case 4:
|
| 84 |
+
case 5:
|
| 85 |
+
this.$ = $$[$0];
|
| 86 |
+
break;
|
| 87 |
+
case 6:
|
| 88 |
+
case 7:
|
| 89 |
+
this.$ = [];
|
| 90 |
+
break;
|
| 91 |
+
case 8:
|
| 92 |
+
yy.setWeekday("monday");
|
| 93 |
+
break;
|
| 94 |
+
case 9:
|
| 95 |
+
yy.setWeekday("tuesday");
|
| 96 |
+
break;
|
| 97 |
+
case 10:
|
| 98 |
+
yy.setWeekday("wednesday");
|
| 99 |
+
break;
|
| 100 |
+
case 11:
|
| 101 |
+
yy.setWeekday("thursday");
|
| 102 |
+
break;
|
| 103 |
+
case 12:
|
| 104 |
+
yy.setWeekday("friday");
|
| 105 |
+
break;
|
| 106 |
+
case 13:
|
| 107 |
+
yy.setWeekday("saturday");
|
| 108 |
+
break;
|
| 109 |
+
case 14:
|
| 110 |
+
yy.setWeekday("sunday");
|
| 111 |
+
break;
|
| 112 |
+
case 15:
|
| 113 |
+
yy.setDateFormat($$[$0].substr(11));
|
| 114 |
+
this.$ = $$[$0].substr(11);
|
| 115 |
+
break;
|
| 116 |
+
case 16:
|
| 117 |
+
yy.enableInclusiveEndDates();
|
| 118 |
+
this.$ = $$[$0].substr(18);
|
| 119 |
+
break;
|
| 120 |
+
case 17:
|
| 121 |
+
yy.TopAxis();
|
| 122 |
+
this.$ = $$[$0].substr(8);
|
| 123 |
+
break;
|
| 124 |
+
case 18:
|
| 125 |
+
yy.setAxisFormat($$[$0].substr(11));
|
| 126 |
+
this.$ = $$[$0].substr(11);
|
| 127 |
+
break;
|
| 128 |
+
case 19:
|
| 129 |
+
yy.setTickInterval($$[$0].substr(13));
|
| 130 |
+
this.$ = $$[$0].substr(13);
|
| 131 |
+
break;
|
| 132 |
+
case 20:
|
| 133 |
+
yy.setExcludes($$[$0].substr(9));
|
| 134 |
+
this.$ = $$[$0].substr(9);
|
| 135 |
+
break;
|
| 136 |
+
case 21:
|
| 137 |
+
yy.setIncludes($$[$0].substr(9));
|
| 138 |
+
this.$ = $$[$0].substr(9);
|
| 139 |
+
break;
|
| 140 |
+
case 22:
|
| 141 |
+
yy.setTodayMarker($$[$0].substr(12));
|
| 142 |
+
this.$ = $$[$0].substr(12);
|
| 143 |
+
break;
|
| 144 |
+
case 24:
|
| 145 |
+
yy.setDiagramTitle($$[$0].substr(6));
|
| 146 |
+
this.$ = $$[$0].substr(6);
|
| 147 |
+
break;
|
| 148 |
+
case 25:
|
| 149 |
+
this.$ = $$[$0].trim();
|
| 150 |
+
yy.setAccTitle(this.$);
|
| 151 |
+
break;
|
| 152 |
+
case 26:
|
| 153 |
+
case 27:
|
| 154 |
+
this.$ = $$[$0].trim();
|
| 155 |
+
yy.setAccDescription(this.$);
|
| 156 |
+
break;
|
| 157 |
+
case 28:
|
| 158 |
+
yy.addSection($$[$0].substr(8));
|
| 159 |
+
this.$ = $$[$0].substr(8);
|
| 160 |
+
break;
|
| 161 |
+
case 30:
|
| 162 |
+
yy.addTask($$[$0 - 1], $$[$0]);
|
| 163 |
+
this.$ = "task";
|
| 164 |
+
break;
|
| 165 |
+
case 31:
|
| 166 |
+
this.$ = $$[$0 - 1];
|
| 167 |
+
yy.setClickEvent($$[$0 - 1], $$[$0], null);
|
| 168 |
+
break;
|
| 169 |
+
case 32:
|
| 170 |
+
this.$ = $$[$0 - 2];
|
| 171 |
+
yy.setClickEvent($$[$0 - 2], $$[$0 - 1], $$[$0]);
|
| 172 |
+
break;
|
| 173 |
+
case 33:
|
| 174 |
+
this.$ = $$[$0 - 2];
|
| 175 |
+
yy.setClickEvent($$[$0 - 2], $$[$0 - 1], null);
|
| 176 |
+
yy.setLink($$[$0 - 2], $$[$0]);
|
| 177 |
+
break;
|
| 178 |
+
case 34:
|
| 179 |
+
this.$ = $$[$0 - 3];
|
| 180 |
+
yy.setClickEvent($$[$0 - 3], $$[$0 - 2], $$[$0 - 1]);
|
| 181 |
+
yy.setLink($$[$0 - 3], $$[$0]);
|
| 182 |
+
break;
|
| 183 |
+
case 35:
|
| 184 |
+
this.$ = $$[$0 - 2];
|
| 185 |
+
yy.setClickEvent($$[$0 - 2], $$[$0], null);
|
| 186 |
+
yy.setLink($$[$0 - 2], $$[$0 - 1]);
|
| 187 |
+
break;
|
| 188 |
+
case 36:
|
| 189 |
+
this.$ = $$[$0 - 3];
|
| 190 |
+
yy.setClickEvent($$[$0 - 3], $$[$0 - 1], $$[$0]);
|
| 191 |
+
yy.setLink($$[$0 - 3], $$[$0 - 2]);
|
| 192 |
+
break;
|
| 193 |
+
case 37:
|
| 194 |
+
this.$ = $$[$0 - 1];
|
| 195 |
+
yy.setLink($$[$0 - 1], $$[$0]);
|
| 196 |
+
break;
|
| 197 |
+
case 38:
|
| 198 |
+
case 44:
|
| 199 |
+
this.$ = $$[$0 - 1] + " " + $$[$0];
|
| 200 |
+
break;
|
| 201 |
+
case 39:
|
| 202 |
+
case 40:
|
| 203 |
+
case 42:
|
| 204 |
+
this.$ = $$[$0 - 2] + " " + $$[$0 - 1] + " " + $$[$0];
|
| 205 |
+
break;
|
| 206 |
+
case 41:
|
| 207 |
+
case 43:
|
| 208 |
+
this.$ = $$[$0 - 3] + " " + $$[$0 - 2] + " " + $$[$0 - 1] + " " + $$[$0];
|
| 209 |
+
break;
|
| 210 |
+
}
|
| 211 |
+
},
|
| 212 |
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, o($V0, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: $V1, 13: $V2, 14: $V3, 15: $V4, 16: $V5, 17: $V6, 18: $V7, 19: $V8, 20: $V9, 21: $Va, 22: $Vb, 23: $Vc, 24: $Vd, 25: $Ve, 26: $Vf, 27: $Vg, 28: $Vh, 30: $Vi, 32: $Vj, 33: $Vk, 34: 23, 35: $Vl, 37: $Vm }, o($V0, [2, 7], { 1: [2, 1] }), o($V0, [2, 3]), { 9: 33, 11: 17, 12: $V1, 13: $V2, 14: $V3, 15: $V4, 16: $V5, 17: $V6, 18: $V7, 19: $V8, 20: $V9, 21: $Va, 22: $Vb, 23: $Vc, 24: $Vd, 25: $Ve, 26: $Vf, 27: $Vg, 28: $Vh, 30: $Vi, 32: $Vj, 33: $Vk, 34: 23, 35: $Vl, 37: $Vm }, o($V0, [2, 5]), o($V0, [2, 6]), o($V0, [2, 15]), o($V0, [2, 16]), o($V0, [2, 17]), o($V0, [2, 18]), o($V0, [2, 19]), o($V0, [2, 20]), o($V0, [2, 21]), o($V0, [2, 22]), o($V0, [2, 23]), o($V0, [2, 24]), { 29: [1, 34] }, { 31: [1, 35] }, o($V0, [2, 27]), o($V0, [2, 28]), o($V0, [2, 29]), { 36: [1, 36] }, o($V0, [2, 8]), o($V0, [2, 9]), o($V0, [2, 10]), o($V0, [2, 11]), o($V0, [2, 12]), o($V0, [2, 13]), o($V0, [2, 14]), { 38: [1, 37], 40: [1, 38] }, o($V0, [2, 4]), o($V0, [2, 25]), o($V0, [2, 26]), o($V0, [2, 30]), o($V0, [2, 31], { 39: [1, 39], 40: [1, 40] }), o($V0, [2, 37], { 38: [1, 41] }), o($V0, [2, 32], { 40: [1, 42] }), o($V0, [2, 33]), o($V0, [2, 35], { 39: [1, 43] }), o($V0, [2, 34]), o($V0, [2, 36])],
|
| 213 |
+
defaultActions: {},
|
| 214 |
+
parseError: function parseError(str, hash) {
|
| 215 |
+
if (hash.recoverable) {
|
| 216 |
+
this.trace(str);
|
| 217 |
+
} else {
|
| 218 |
+
var error = new Error(str);
|
| 219 |
+
error.hash = hash;
|
| 220 |
+
throw error;
|
| 221 |
+
}
|
| 222 |
+
},
|
| 223 |
+
parse: function parse(input) {
|
| 224 |
+
var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
|
| 225 |
+
var args = lstack.slice.call(arguments, 1);
|
| 226 |
+
var lexer2 = Object.create(this.lexer);
|
| 227 |
+
var sharedState = { yy: {} };
|
| 228 |
+
for (var k in this.yy) {
|
| 229 |
+
if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
|
| 230 |
+
sharedState.yy[k] = this.yy[k];
|
| 231 |
+
}
|
| 232 |
+
}
|
| 233 |
+
lexer2.setInput(input, sharedState.yy);
|
| 234 |
+
sharedState.yy.lexer = lexer2;
|
| 235 |
+
sharedState.yy.parser = this;
|
| 236 |
+
if (typeof lexer2.yylloc == "undefined") {
|
| 237 |
+
lexer2.yylloc = {};
|
| 238 |
+
}
|
| 239 |
+
var yyloc = lexer2.yylloc;
|
| 240 |
+
lstack.push(yyloc);
|
| 241 |
+
var ranges = lexer2.options && lexer2.options.ranges;
|
| 242 |
+
if (typeof sharedState.yy.parseError === "function") {
|
| 243 |
+
this.parseError = sharedState.yy.parseError;
|
| 244 |
+
} else {
|
| 245 |
+
this.parseError = Object.getPrototypeOf(this).parseError;
|
| 246 |
+
}
|
| 247 |
+
function lex() {
|
| 248 |
+
var token;
|
| 249 |
+
token = tstack.pop() || lexer2.lex() || EOF;
|
| 250 |
+
if (typeof token !== "number") {
|
| 251 |
+
if (token instanceof Array) {
|
| 252 |
+
tstack = token;
|
| 253 |
+
token = tstack.pop();
|
| 254 |
+
}
|
| 255 |
+
token = self.symbols_[token] || token;
|
| 256 |
+
}
|
| 257 |
+
return token;
|
| 258 |
+
}
|
| 259 |
+
var symbol, state, action, r, yyval = {}, p, len, newState, expected;
|
| 260 |
+
while (true) {
|
| 261 |
+
state = stack[stack.length - 1];
|
| 262 |
+
if (this.defaultActions[state]) {
|
| 263 |
+
action = this.defaultActions[state];
|
| 264 |
+
} else {
|
| 265 |
+
if (symbol === null || typeof symbol == "undefined") {
|
| 266 |
+
symbol = lex();
|
| 267 |
+
}
|
| 268 |
+
action = table[state] && table[state][symbol];
|
| 269 |
+
}
|
| 270 |
+
if (typeof action === "undefined" || !action.length || !action[0]) {
|
| 271 |
+
var errStr = "";
|
| 272 |
+
expected = [];
|
| 273 |
+
for (p in table[state]) {
|
| 274 |
+
if (this.terminals_[p] && p > TERROR) {
|
| 275 |
+
expected.push("'" + this.terminals_[p] + "'");
|
| 276 |
+
}
|
| 277 |
+
}
|
| 278 |
+
if (lexer2.showPosition) {
|
| 279 |
+
errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
|
| 280 |
+
} else {
|
| 281 |
+
errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
|
| 282 |
+
}
|
| 283 |
+
this.parseError(errStr, {
|
| 284 |
+
text: lexer2.match,
|
| 285 |
+
token: this.terminals_[symbol] || symbol,
|
| 286 |
+
line: lexer2.yylineno,
|
| 287 |
+
loc: yyloc,
|
| 288 |
+
expected
|
| 289 |
+
});
|
| 290 |
+
}
|
| 291 |
+
if (action[0] instanceof Array && action.length > 1) {
|
| 292 |
+
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
| 293 |
+
}
|
| 294 |
+
switch (action[0]) {
|
| 295 |
+
case 1:
|
| 296 |
+
stack.push(symbol);
|
| 297 |
+
vstack.push(lexer2.yytext);
|
| 298 |
+
lstack.push(lexer2.yylloc);
|
| 299 |
+
stack.push(action[1]);
|
| 300 |
+
symbol = null;
|
| 301 |
+
{
|
| 302 |
+
yyleng = lexer2.yyleng;
|
| 303 |
+
yytext = lexer2.yytext;
|
| 304 |
+
yylineno = lexer2.yylineno;
|
| 305 |
+
yyloc = lexer2.yylloc;
|
| 306 |
+
}
|
| 307 |
+
break;
|
| 308 |
+
case 2:
|
| 309 |
+
len = this.productions_[action[1]][1];
|
| 310 |
+
yyval.$ = vstack[vstack.length - len];
|
| 311 |
+
yyval._$ = {
|
| 312 |
+
first_line: lstack[lstack.length - (len || 1)].first_line,
|
| 313 |
+
last_line: lstack[lstack.length - 1].last_line,
|
| 314 |
+
first_column: lstack[lstack.length - (len || 1)].first_column,
|
| 315 |
+
last_column: lstack[lstack.length - 1].last_column
|
| 316 |
+
};
|
| 317 |
+
if (ranges) {
|
| 318 |
+
yyval._$.range = [
|
| 319 |
+
lstack[lstack.length - (len || 1)].range[0],
|
| 320 |
+
lstack[lstack.length - 1].range[1]
|
| 321 |
+
];
|
| 322 |
+
}
|
| 323 |
+
r = this.performAction.apply(yyval, [
|
| 324 |
+
yytext,
|
| 325 |
+
yyleng,
|
| 326 |
+
yylineno,
|
| 327 |
+
sharedState.yy,
|
| 328 |
+
action[1],
|
| 329 |
+
vstack,
|
| 330 |
+
lstack
|
| 331 |
+
].concat(args));
|
| 332 |
+
if (typeof r !== "undefined") {
|
| 333 |
+
return r;
|
| 334 |
+
}
|
| 335 |
+
if (len) {
|
| 336 |
+
stack = stack.slice(0, -1 * len * 2);
|
| 337 |
+
vstack = vstack.slice(0, -1 * len);
|
| 338 |
+
lstack = lstack.slice(0, -1 * len);
|
| 339 |
+
}
|
| 340 |
+
stack.push(this.productions_[action[1]][0]);
|
| 341 |
+
vstack.push(yyval.$);
|
| 342 |
+
lstack.push(yyval._$);
|
| 343 |
+
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
| 344 |
+
stack.push(newState);
|
| 345 |
+
break;
|
| 346 |
+
case 3:
|
| 347 |
+
return true;
|
| 348 |
+
}
|
| 349 |
+
}
|
| 350 |
+
return true;
|
| 351 |
+
}
|
| 352 |
+
};
|
| 353 |
+
var lexer = function() {
|
| 354 |
+
var lexer2 = {
|
| 355 |
+
EOF: 1,
|
| 356 |
+
parseError: function parseError(str, hash) {
|
| 357 |
+
if (this.yy.parser) {
|
| 358 |
+
this.yy.parser.parseError(str, hash);
|
| 359 |
+
} else {
|
| 360 |
+
throw new Error(str);
|
| 361 |
+
}
|
| 362 |
+
},
|
| 363 |
+
// resets the lexer, sets new input
|
| 364 |
+
setInput: function(input, yy) {
|
| 365 |
+
this.yy = yy || this.yy || {};
|
| 366 |
+
this._input = input;
|
| 367 |
+
this._more = this._backtrack = this.done = false;
|
| 368 |
+
this.yylineno = this.yyleng = 0;
|
| 369 |
+
this.yytext = this.matched = this.match = "";
|
| 370 |
+
this.conditionStack = ["INITIAL"];
|
| 371 |
+
this.yylloc = {
|
| 372 |
+
first_line: 1,
|
| 373 |
+
first_column: 0,
|
| 374 |
+
last_line: 1,
|
| 375 |
+
last_column: 0
|
| 376 |
+
};
|
| 377 |
+
if (this.options.ranges) {
|
| 378 |
+
this.yylloc.range = [0, 0];
|
| 379 |
+
}
|
| 380 |
+
this.offset = 0;
|
| 381 |
+
return this;
|
| 382 |
+
},
|
| 383 |
+
// consumes and returns one char from the input
|
| 384 |
+
input: function() {
|
| 385 |
+
var ch = this._input[0];
|
| 386 |
+
this.yytext += ch;
|
| 387 |
+
this.yyleng++;
|
| 388 |
+
this.offset++;
|
| 389 |
+
this.match += ch;
|
| 390 |
+
this.matched += ch;
|
| 391 |
+
var lines = ch.match(/(?:\r\n?|\n).*/g);
|
| 392 |
+
if (lines) {
|
| 393 |
+
this.yylineno++;
|
| 394 |
+
this.yylloc.last_line++;
|
| 395 |
+
} else {
|
| 396 |
+
this.yylloc.last_column++;
|
| 397 |
+
}
|
| 398 |
+
if (this.options.ranges) {
|
| 399 |
+
this.yylloc.range[1]++;
|
| 400 |
+
}
|
| 401 |
+
this._input = this._input.slice(1);
|
| 402 |
+
return ch;
|
| 403 |
+
},
|
| 404 |
+
// unshifts one char (or a string) into the input
|
| 405 |
+
unput: function(ch) {
|
| 406 |
+
var len = ch.length;
|
| 407 |
+
var lines = ch.split(/(?:\r\n?|\n)/g);
|
| 408 |
+
this._input = ch + this._input;
|
| 409 |
+
this.yytext = this.yytext.substr(0, this.yytext.length - len);
|
| 410 |
+
this.offset -= len;
|
| 411 |
+
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
| 412 |
+
this.match = this.match.substr(0, this.match.length - 1);
|
| 413 |
+
this.matched = this.matched.substr(0, this.matched.length - 1);
|
| 414 |
+
if (lines.length - 1) {
|
| 415 |
+
this.yylineno -= lines.length - 1;
|
| 416 |
+
}
|
| 417 |
+
var r = this.yylloc.range;
|
| 418 |
+
this.yylloc = {
|
| 419 |
+
first_line: this.yylloc.first_line,
|
| 420 |
+
last_line: this.yylineno + 1,
|
| 421 |
+
first_column: this.yylloc.first_column,
|
| 422 |
+
last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
|
| 423 |
+
};
|
| 424 |
+
if (this.options.ranges) {
|
| 425 |
+
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
| 426 |
+
}
|
| 427 |
+
this.yyleng = this.yytext.length;
|
| 428 |
+
return this;
|
| 429 |
+
},
|
| 430 |
+
// When called from action, caches matched text and appends it on next action
|
| 431 |
+
more: function() {
|
| 432 |
+
this._more = true;
|
| 433 |
+
return this;
|
| 434 |
+
},
|
| 435 |
+
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
| 436 |
+
reject: function() {
|
| 437 |
+
if (this.options.backtrack_lexer) {
|
| 438 |
+
this._backtrack = true;
|
| 439 |
+
} else {
|
| 440 |
+
return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
| 441 |
+
text: "",
|
| 442 |
+
token: null,
|
| 443 |
+
line: this.yylineno
|
| 444 |
+
});
|
| 445 |
+
}
|
| 446 |
+
return this;
|
| 447 |
+
},
|
| 448 |
+
// retain first n characters of the match
|
| 449 |
+
less: function(n) {
|
| 450 |
+
this.unput(this.match.slice(n));
|
| 451 |
+
},
|
| 452 |
+
// displays already matched input, i.e. for error messages
|
| 453 |
+
pastInput: function() {
|
| 454 |
+
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
| 455 |
+
return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
|
| 456 |
+
},
|
| 457 |
+
// displays upcoming input, i.e. for error messages
|
| 458 |
+
upcomingInput: function() {
|
| 459 |
+
var next = this.match;
|
| 460 |
+
if (next.length < 20) {
|
| 461 |
+
next += this._input.substr(0, 20 - next.length);
|
| 462 |
+
}
|
| 463 |
+
return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
|
| 464 |
+
},
|
| 465 |
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
| 466 |
+
showPosition: function() {
|
| 467 |
+
var pre = this.pastInput();
|
| 468 |
+
var c = new Array(pre.length + 1).join("-");
|
| 469 |
+
return pre + this.upcomingInput() + "\n" + c + "^";
|
| 470 |
+
},
|
| 471 |
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
| 472 |
+
test_match: function(match, indexed_rule) {
|
| 473 |
+
var token, lines, backup;
|
| 474 |
+
if (this.options.backtrack_lexer) {
|
| 475 |
+
backup = {
|
| 476 |
+
yylineno: this.yylineno,
|
| 477 |
+
yylloc: {
|
| 478 |
+
first_line: this.yylloc.first_line,
|
| 479 |
+
last_line: this.last_line,
|
| 480 |
+
first_column: this.yylloc.first_column,
|
| 481 |
+
last_column: this.yylloc.last_column
|
| 482 |
+
},
|
| 483 |
+
yytext: this.yytext,
|
| 484 |
+
match: this.match,
|
| 485 |
+
matches: this.matches,
|
| 486 |
+
matched: this.matched,
|
| 487 |
+
yyleng: this.yyleng,
|
| 488 |
+
offset: this.offset,
|
| 489 |
+
_more: this._more,
|
| 490 |
+
_input: this._input,
|
| 491 |
+
yy: this.yy,
|
| 492 |
+
conditionStack: this.conditionStack.slice(0),
|
| 493 |
+
done: this.done
|
| 494 |
+
};
|
| 495 |
+
if (this.options.ranges) {
|
| 496 |
+
backup.yylloc.range = this.yylloc.range.slice(0);
|
| 497 |
+
}
|
| 498 |
+
}
|
| 499 |
+
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
| 500 |
+
if (lines) {
|
| 501 |
+
this.yylineno += lines.length;
|
| 502 |
+
}
|
| 503 |
+
this.yylloc = {
|
| 504 |
+
first_line: this.yylloc.last_line,
|
| 505 |
+
last_line: this.yylineno + 1,
|
| 506 |
+
first_column: this.yylloc.last_column,
|
| 507 |
+
last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
|
| 508 |
+
};
|
| 509 |
+
this.yytext += match[0];
|
| 510 |
+
this.match += match[0];
|
| 511 |
+
this.matches = match;
|
| 512 |
+
this.yyleng = this.yytext.length;
|
| 513 |
+
if (this.options.ranges) {
|
| 514 |
+
this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
| 515 |
+
}
|
| 516 |
+
this._more = false;
|
| 517 |
+
this._backtrack = false;
|
| 518 |
+
this._input = this._input.slice(match[0].length);
|
| 519 |
+
this.matched += match[0];
|
| 520 |
+
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
| 521 |
+
if (this.done && this._input) {
|
| 522 |
+
this.done = false;
|
| 523 |
+
}
|
| 524 |
+
if (token) {
|
| 525 |
+
return token;
|
| 526 |
+
} else if (this._backtrack) {
|
| 527 |
+
for (var k in backup) {
|
| 528 |
+
this[k] = backup[k];
|
| 529 |
+
}
|
| 530 |
+
return false;
|
| 531 |
+
}
|
| 532 |
+
return false;
|
| 533 |
+
},
|
| 534 |
+
// return next match in input
|
| 535 |
+
next: function() {
|
| 536 |
+
if (this.done) {
|
| 537 |
+
return this.EOF;
|
| 538 |
+
}
|
| 539 |
+
if (!this._input) {
|
| 540 |
+
this.done = true;
|
| 541 |
+
}
|
| 542 |
+
var token, match, tempMatch, index;
|
| 543 |
+
if (!this._more) {
|
| 544 |
+
this.yytext = "";
|
| 545 |
+
this.match = "";
|
| 546 |
+
}
|
| 547 |
+
var rules = this._currentRules();
|
| 548 |
+
for (var i = 0; i < rules.length; i++) {
|
| 549 |
+
tempMatch = this._input.match(this.rules[rules[i]]);
|
| 550 |
+
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
| 551 |
+
match = tempMatch;
|
| 552 |
+
index = i;
|
| 553 |
+
if (this.options.backtrack_lexer) {
|
| 554 |
+
token = this.test_match(tempMatch, rules[i]);
|
| 555 |
+
if (token !== false) {
|
| 556 |
+
return token;
|
| 557 |
+
} else if (this._backtrack) {
|
| 558 |
+
match = false;
|
| 559 |
+
continue;
|
| 560 |
+
} else {
|
| 561 |
+
return false;
|
| 562 |
+
}
|
| 563 |
+
} else if (!this.options.flex) {
|
| 564 |
+
break;
|
| 565 |
+
}
|
| 566 |
+
}
|
| 567 |
+
}
|
| 568 |
+
if (match) {
|
| 569 |
+
token = this.test_match(match, rules[index]);
|
| 570 |
+
if (token !== false) {
|
| 571 |
+
return token;
|
| 572 |
+
}
|
| 573 |
+
return false;
|
| 574 |
+
}
|
| 575 |
+
if (this._input === "") {
|
| 576 |
+
return this.EOF;
|
| 577 |
+
} else {
|
| 578 |
+
return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
| 579 |
+
text: "",
|
| 580 |
+
token: null,
|
| 581 |
+
line: this.yylineno
|
| 582 |
+
});
|
| 583 |
+
}
|
| 584 |
+
},
|
| 585 |
+
// return next match that has a token
|
| 586 |
+
lex: function lex() {
|
| 587 |
+
var r = this.next();
|
| 588 |
+
if (r) {
|
| 589 |
+
return r;
|
| 590 |
+
} else {
|
| 591 |
+
return this.lex();
|
| 592 |
+
}
|
| 593 |
+
},
|
| 594 |
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
| 595 |
+
begin: function begin(condition) {
|
| 596 |
+
this.conditionStack.push(condition);
|
| 597 |
+
},
|
| 598 |
+
// pop the previously active lexer condition state off the condition stack
|
| 599 |
+
popState: function popState() {
|
| 600 |
+
var n = this.conditionStack.length - 1;
|
| 601 |
+
if (n > 0) {
|
| 602 |
+
return this.conditionStack.pop();
|
| 603 |
+
} else {
|
| 604 |
+
return this.conditionStack[0];
|
| 605 |
+
}
|
| 606 |
+
},
|
| 607 |
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
| 608 |
+
_currentRules: function _currentRules() {
|
| 609 |
+
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
| 610 |
+
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
| 611 |
+
} else {
|
| 612 |
+
return this.conditions["INITIAL"].rules;
|
| 613 |
+
}
|
| 614 |
+
},
|
| 615 |
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
| 616 |
+
topState: function topState(n) {
|
| 617 |
+
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
| 618 |
+
if (n >= 0) {
|
| 619 |
+
return this.conditionStack[n];
|
| 620 |
+
} else {
|
| 621 |
+
return "INITIAL";
|
| 622 |
+
}
|
| 623 |
+
},
|
| 624 |
+
// alias for begin(condition)
|
| 625 |
+
pushState: function pushState(condition) {
|
| 626 |
+
this.begin(condition);
|
| 627 |
+
},
|
| 628 |
+
// return the number of states currently on the stack
|
| 629 |
+
stateStackSize: function stateStackSize() {
|
| 630 |
+
return this.conditionStack.length;
|
| 631 |
+
},
|
| 632 |
+
options: { "case-insensitive": true },
|
| 633 |
+
performAction: function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
|
| 634 |
+
switch ($avoiding_name_collisions) {
|
| 635 |
+
case 0:
|
| 636 |
+
this.begin("open_directive");
|
| 637 |
+
return "open_directive";
|
| 638 |
+
case 1:
|
| 639 |
+
this.begin("acc_title");
|
| 640 |
+
return 28;
|
| 641 |
+
case 2:
|
| 642 |
+
this.popState();
|
| 643 |
+
return "acc_title_value";
|
| 644 |
+
case 3:
|
| 645 |
+
this.begin("acc_descr");
|
| 646 |
+
return 30;
|
| 647 |
+
case 4:
|
| 648 |
+
this.popState();
|
| 649 |
+
return "acc_descr_value";
|
| 650 |
+
case 5:
|
| 651 |
+
this.begin("acc_descr_multiline");
|
| 652 |
+
break;
|
| 653 |
+
case 6:
|
| 654 |
+
this.popState();
|
| 655 |
+
break;
|
| 656 |
+
case 7:
|
| 657 |
+
return "acc_descr_multiline_value";
|
| 658 |
+
case 8:
|
| 659 |
+
break;
|
| 660 |
+
case 9:
|
| 661 |
+
break;
|
| 662 |
+
case 10:
|
| 663 |
+
break;
|
| 664 |
+
case 11:
|
| 665 |
+
return 10;
|
| 666 |
+
case 12:
|
| 667 |
+
break;
|
| 668 |
+
case 13:
|
| 669 |
+
break;
|
| 670 |
+
case 14:
|
| 671 |
+
break;
|
| 672 |
+
case 15:
|
| 673 |
+
this.begin("href");
|
| 674 |
+
break;
|
| 675 |
+
case 16:
|
| 676 |
+
this.popState();
|
| 677 |
+
break;
|
| 678 |
+
case 17:
|
| 679 |
+
return 40;
|
| 680 |
+
case 18:
|
| 681 |
+
this.begin("callbackname");
|
| 682 |
+
break;
|
| 683 |
+
case 19:
|
| 684 |
+
this.popState();
|
| 685 |
+
break;
|
| 686 |
+
case 20:
|
| 687 |
+
this.popState();
|
| 688 |
+
this.begin("callbackargs");
|
| 689 |
+
break;
|
| 690 |
+
case 21:
|
| 691 |
+
return 38;
|
| 692 |
+
case 22:
|
| 693 |
+
this.popState();
|
| 694 |
+
break;
|
| 695 |
+
case 23:
|
| 696 |
+
return 39;
|
| 697 |
+
case 24:
|
| 698 |
+
this.begin("click");
|
| 699 |
+
break;
|
| 700 |
+
case 25:
|
| 701 |
+
this.popState();
|
| 702 |
+
break;
|
| 703 |
+
case 26:
|
| 704 |
+
return 37;
|
| 705 |
+
case 27:
|
| 706 |
+
return 4;
|
| 707 |
+
case 28:
|
| 708 |
+
return 19;
|
| 709 |
+
case 29:
|
| 710 |
+
return 20;
|
| 711 |
+
case 30:
|
| 712 |
+
return 21;
|
| 713 |
+
case 31:
|
| 714 |
+
return 22;
|
| 715 |
+
case 32:
|
| 716 |
+
return 23;
|
| 717 |
+
case 33:
|
| 718 |
+
return 25;
|
| 719 |
+
case 34:
|
| 720 |
+
return 24;
|
| 721 |
+
case 35:
|
| 722 |
+
return 26;
|
| 723 |
+
case 36:
|
| 724 |
+
return 12;
|
| 725 |
+
case 37:
|
| 726 |
+
return 13;
|
| 727 |
+
case 38:
|
| 728 |
+
return 14;
|
| 729 |
+
case 39:
|
| 730 |
+
return 15;
|
| 731 |
+
case 40:
|
| 732 |
+
return 16;
|
| 733 |
+
case 41:
|
| 734 |
+
return 17;
|
| 735 |
+
case 42:
|
| 736 |
+
return 18;
|
| 737 |
+
case 43:
|
| 738 |
+
return "date";
|
| 739 |
+
case 44:
|
| 740 |
+
return 27;
|
| 741 |
+
case 45:
|
| 742 |
+
return "accDescription";
|
| 743 |
+
case 46:
|
| 744 |
+
return 33;
|
| 745 |
+
case 47:
|
| 746 |
+
return 35;
|
| 747 |
+
case 48:
|
| 748 |
+
return 36;
|
| 749 |
+
case 49:
|
| 750 |
+
return ":";
|
| 751 |
+
case 50:
|
| 752 |
+
return 6;
|
| 753 |
+
case 51:
|
| 754 |
+
return "INVALID";
|
| 755 |
+
}
|
| 756 |
+
},
|
| 757 |
+
rules: [/^(?:%%\{)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:%%(?!\{)*[^\n]*)/i, /^(?:[^\}]%%*[^\n]*)/i, /^(?:%%*[^\n]*[\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:href[\s]+["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:call[\s]+)/i, /^(?:\([\s]*\))/i, /^(?:\()/i, /^(?:[^(]*)/i, /^(?:\))/i, /^(?:[^)]*)/i, /^(?:click[\s]+)/i, /^(?:[\s\n])/i, /^(?:[^\s\n]*)/i, /^(?:gantt\b)/i, /^(?:dateFormat\s[^#\n;]+)/i, /^(?:inclusiveEndDates\b)/i, /^(?:topAxis\b)/i, /^(?:axisFormat\s[^#\n;]+)/i, /^(?:tickInterval\s[^#\n;]+)/i, /^(?:includes\s[^#\n;]+)/i, /^(?:excludes\s[^#\n;]+)/i, /^(?:todayMarker\s[^\n;]+)/i, /^(?:weekday\s+monday\b)/i, /^(?:weekday\s+tuesday\b)/i, /^(?:weekday\s+wednesday\b)/i, /^(?:weekday\s+thursday\b)/i, /^(?:weekday\s+friday\b)/i, /^(?:weekday\s+saturday\b)/i, /^(?:weekday\s+sunday\b)/i, /^(?:\d\d\d\d-\d\d-\d\d\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:accDescription\s[^#\n;]+)/i, /^(?:section\s[^#:\n;]+)/i, /^(?:[^#:\n;]+)/i, /^(?::[^#\n;]+)/i, /^(?::)/i, /^(?:$)/i, /^(?:.)/i],
|
| 758 |
+
conditions: { "acc_descr_multiline": { "rules": [6, 7], "inclusive": false }, "acc_descr": { "rules": [4], "inclusive": false }, "acc_title": { "rules": [2], "inclusive": false }, "callbackargs": { "rules": [22, 23], "inclusive": false }, "callbackname": { "rules": [19, 20, 21], "inclusive": false }, "href": { "rules": [16, 17], "inclusive": false }, "click": { "rules": [25, 26], "inclusive": false }, "INITIAL": { "rules": [0, 1, 3, 5, 8, 9, 10, 11, 12, 13, 14, 15, 18, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], "inclusive": true } }
|
| 759 |
+
};
|
| 760 |
+
return lexer2;
|
| 761 |
+
}();
|
| 762 |
+
parser2.lexer = lexer;
|
| 763 |
+
function Parser() {
|
| 764 |
+
this.yy = {};
|
| 765 |
+
}
|
| 766 |
+
Parser.prototype = parser2;
|
| 767 |
+
parser2.Parser = Parser;
|
| 768 |
+
return new Parser();
|
| 769 |
+
}();
|
| 770 |
+
parser.parser = parser;
|
| 771 |
+
const ganttParser = parser;
|
| 772 |
+
dayjs__WEBPACK_IMPORTED_MODULE_1___default().extend((dayjs_plugin_isoWeek_js__WEBPACK_IMPORTED_MODULE_2___default()));
|
| 773 |
+
dayjs__WEBPACK_IMPORTED_MODULE_1___default().extend((dayjs_plugin_customParseFormat_js__WEBPACK_IMPORTED_MODULE_3___default()));
|
| 774 |
+
dayjs__WEBPACK_IMPORTED_MODULE_1___default().extend((dayjs_plugin_advancedFormat_js__WEBPACK_IMPORTED_MODULE_4___default()));
|
| 775 |
+
let dateFormat = "";
|
| 776 |
+
let axisFormat = "";
|
| 777 |
+
let tickInterval = void 0;
|
| 778 |
+
let todayMarker = "";
|
| 779 |
+
let includes = [];
|
| 780 |
+
let excludes = [];
|
| 781 |
+
let links = {};
|
| 782 |
+
let sections = [];
|
| 783 |
+
let tasks = [];
|
| 784 |
+
let currentSection = "";
|
| 785 |
+
let displayMode = "";
|
| 786 |
+
const tags = ["active", "done", "crit", "milestone"];
|
| 787 |
+
let funs = [];
|
| 788 |
+
let inclusiveEndDates = false;
|
| 789 |
+
let topAxis = false;
|
| 790 |
+
let weekday = "sunday";
|
| 791 |
+
let lastOrder = 0;
|
| 792 |
+
const clear = function() {
|
| 793 |
+
sections = [];
|
| 794 |
+
tasks = [];
|
| 795 |
+
currentSection = "";
|
| 796 |
+
funs = [];
|
| 797 |
+
taskCnt = 0;
|
| 798 |
+
lastTask = void 0;
|
| 799 |
+
lastTaskID = void 0;
|
| 800 |
+
rawTasks = [];
|
| 801 |
+
dateFormat = "";
|
| 802 |
+
axisFormat = "";
|
| 803 |
+
displayMode = "";
|
| 804 |
+
tickInterval = void 0;
|
| 805 |
+
todayMarker = "";
|
| 806 |
+
includes = [];
|
| 807 |
+
excludes = [];
|
| 808 |
+
inclusiveEndDates = false;
|
| 809 |
+
topAxis = false;
|
| 810 |
+
lastOrder = 0;
|
| 811 |
+
links = {};
|
| 812 |
+
(0,_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.t)();
|
| 813 |
+
weekday = "sunday";
|
| 814 |
+
};
|
| 815 |
+
const setAxisFormat = function(txt) {
|
| 816 |
+
axisFormat = txt;
|
| 817 |
+
};
|
| 818 |
+
const getAxisFormat = function() {
|
| 819 |
+
return axisFormat;
|
| 820 |
+
};
|
| 821 |
+
const setTickInterval = function(txt) {
|
| 822 |
+
tickInterval = txt;
|
| 823 |
+
};
|
| 824 |
+
const getTickInterval = function() {
|
| 825 |
+
return tickInterval;
|
| 826 |
+
};
|
| 827 |
+
const setTodayMarker = function(txt) {
|
| 828 |
+
todayMarker = txt;
|
| 829 |
+
};
|
| 830 |
+
const getTodayMarker = function() {
|
| 831 |
+
return todayMarker;
|
| 832 |
+
};
|
| 833 |
+
const setDateFormat = function(txt) {
|
| 834 |
+
dateFormat = txt;
|
| 835 |
+
};
|
| 836 |
+
const enableInclusiveEndDates = function() {
|
| 837 |
+
inclusiveEndDates = true;
|
| 838 |
+
};
|
| 839 |
+
const endDatesAreInclusive = function() {
|
| 840 |
+
return inclusiveEndDates;
|
| 841 |
+
};
|
| 842 |
+
const enableTopAxis = function() {
|
| 843 |
+
topAxis = true;
|
| 844 |
+
};
|
| 845 |
+
const topAxisEnabled = function() {
|
| 846 |
+
return topAxis;
|
| 847 |
+
};
|
| 848 |
+
const setDisplayMode = function(txt) {
|
| 849 |
+
displayMode = txt;
|
| 850 |
+
};
|
| 851 |
+
const getDisplayMode = function() {
|
| 852 |
+
return displayMode;
|
| 853 |
+
};
|
| 854 |
+
const getDateFormat = function() {
|
| 855 |
+
return dateFormat;
|
| 856 |
+
};
|
| 857 |
+
const setIncludes = function(txt) {
|
| 858 |
+
includes = txt.toLowerCase().split(/[\s,]+/);
|
| 859 |
+
};
|
| 860 |
+
const getIncludes = function() {
|
| 861 |
+
return includes;
|
| 862 |
+
};
|
| 863 |
+
const setExcludes = function(txt) {
|
| 864 |
+
excludes = txt.toLowerCase().split(/[\s,]+/);
|
| 865 |
+
};
|
| 866 |
+
const getExcludes = function() {
|
| 867 |
+
return excludes;
|
| 868 |
+
};
|
| 869 |
+
const getLinks = function() {
|
| 870 |
+
return links;
|
| 871 |
+
};
|
| 872 |
+
const addSection = function(txt) {
|
| 873 |
+
currentSection = txt;
|
| 874 |
+
sections.push(txt);
|
| 875 |
+
};
|
| 876 |
+
const getSections = function() {
|
| 877 |
+
return sections;
|
| 878 |
+
};
|
| 879 |
+
const getTasks = function() {
|
| 880 |
+
let allItemsProcessed = compileTasks();
|
| 881 |
+
const maxDepth = 10;
|
| 882 |
+
let iterationCount = 0;
|
| 883 |
+
while (!allItemsProcessed && iterationCount < maxDepth) {
|
| 884 |
+
allItemsProcessed = compileTasks();
|
| 885 |
+
iterationCount++;
|
| 886 |
+
}
|
| 887 |
+
tasks = rawTasks;
|
| 888 |
+
return tasks;
|
| 889 |
+
};
|
| 890 |
+
const isInvalidDate = function(date, dateFormat2, excludes2, includes2) {
|
| 891 |
+
if (includes2.includes(date.format(dateFormat2.trim()))) {
|
| 892 |
+
return false;
|
| 893 |
+
}
|
| 894 |
+
if (date.isoWeekday() >= 6 && excludes2.includes("weekends")) {
|
| 895 |
+
return true;
|
| 896 |
+
}
|
| 897 |
+
if (excludes2.includes(date.format("dddd").toLowerCase())) {
|
| 898 |
+
return true;
|
| 899 |
+
}
|
| 900 |
+
return excludes2.includes(date.format(dateFormat2.trim()));
|
| 901 |
+
};
|
| 902 |
+
const setWeekday = function(txt) {
|
| 903 |
+
weekday = txt;
|
| 904 |
+
};
|
| 905 |
+
const getWeekday = function() {
|
| 906 |
+
return weekday;
|
| 907 |
+
};
|
| 908 |
+
const checkTaskDates = function(task, dateFormat2, excludes2, includes2) {
|
| 909 |
+
if (!excludes2.length || task.manualEndTime) {
|
| 910 |
+
return;
|
| 911 |
+
}
|
| 912 |
+
let startTime;
|
| 913 |
+
if (task.startTime instanceof Date) {
|
| 914 |
+
startTime = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(task.startTime);
|
| 915 |
+
} else {
|
| 916 |
+
startTime = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(task.startTime, dateFormat2, true);
|
| 917 |
+
}
|
| 918 |
+
startTime = startTime.add(1, "d");
|
| 919 |
+
let originalEndTime;
|
| 920 |
+
if (task.endTime instanceof Date) {
|
| 921 |
+
originalEndTime = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(task.endTime);
|
| 922 |
+
} else {
|
| 923 |
+
originalEndTime = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(task.endTime, dateFormat2, true);
|
| 924 |
+
}
|
| 925 |
+
const [fixedEndTime, renderEndTime] = fixTaskDates(
|
| 926 |
+
startTime,
|
| 927 |
+
originalEndTime,
|
| 928 |
+
dateFormat2,
|
| 929 |
+
excludes2,
|
| 930 |
+
includes2
|
| 931 |
+
);
|
| 932 |
+
task.endTime = fixedEndTime.toDate();
|
| 933 |
+
task.renderEndTime = renderEndTime;
|
| 934 |
+
};
|
| 935 |
+
const fixTaskDates = function(startTime, endTime, dateFormat2, excludes2, includes2) {
|
| 936 |
+
let invalid = false;
|
| 937 |
+
let renderEndTime = null;
|
| 938 |
+
while (startTime <= endTime) {
|
| 939 |
+
if (!invalid) {
|
| 940 |
+
renderEndTime = endTime.toDate();
|
| 941 |
+
}
|
| 942 |
+
invalid = isInvalidDate(startTime, dateFormat2, excludes2, includes2);
|
| 943 |
+
if (invalid) {
|
| 944 |
+
endTime = endTime.add(1, "d");
|
| 945 |
+
}
|
| 946 |
+
startTime = startTime.add(1, "d");
|
| 947 |
+
}
|
| 948 |
+
return [endTime, renderEndTime];
|
| 949 |
+
};
|
| 950 |
+
const getStartDate = function(prevTime, dateFormat2, str) {
|
| 951 |
+
str = str.trim();
|
| 952 |
+
const re = /^after\s+([\d\w- ]+)/;
|
| 953 |
+
const afterStatement = re.exec(str.trim());
|
| 954 |
+
if (afterStatement !== null) {
|
| 955 |
+
let latestEndingTask = null;
|
| 956 |
+
afterStatement[1].split(" ").forEach(function(id) {
|
| 957 |
+
let task = findTaskById(id);
|
| 958 |
+
if (task !== void 0) {
|
| 959 |
+
if (!latestEndingTask) {
|
| 960 |
+
latestEndingTask = task;
|
| 961 |
+
} else {
|
| 962 |
+
if (task.endTime > latestEndingTask.endTime) {
|
| 963 |
+
latestEndingTask = task;
|
| 964 |
+
}
|
| 965 |
+
}
|
| 966 |
+
}
|
| 967 |
+
});
|
| 968 |
+
if (!latestEndingTask) {
|
| 969 |
+
const dt = /* @__PURE__ */ new Date();
|
| 970 |
+
dt.setHours(0, 0, 0, 0);
|
| 971 |
+
return dt;
|
| 972 |
+
} else {
|
| 973 |
+
return latestEndingTask.endTime;
|
| 974 |
+
}
|
| 975 |
+
}
|
| 976 |
+
let mDate = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(str, dateFormat2.trim(), true);
|
| 977 |
+
if (mDate.isValid()) {
|
| 978 |
+
return mDate.toDate();
|
| 979 |
+
} else {
|
| 980 |
+
_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.l.debug("Invalid date:" + str);
|
| 981 |
+
_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.l.debug("With date format:" + dateFormat2.trim());
|
| 982 |
+
const d = new Date(str);
|
| 983 |
+
if (d === void 0 || isNaN(d.getTime()) || // WebKit browsers can mis-parse invalid dates to be ridiculously
|
| 984 |
+
// huge numbers, e.g. new Date('202304') gets parsed as January 1, 202304.
|
| 985 |
+
// This can cause virtually infinite loops while rendering, so for the
|
| 986 |
+
// purposes of Gantt charts we'll just treat any date beyond 10,000 AD/BC as
|
| 987 |
+
// invalid.
|
| 988 |
+
d.getFullYear() < -1e4 || d.getFullYear() > 1e4) {
|
| 989 |
+
throw new Error("Invalid date:" + str);
|
| 990 |
+
}
|
| 991 |
+
return d;
|
| 992 |
+
}
|
| 993 |
+
};
|
| 994 |
+
const parseDuration = function(str) {
|
| 995 |
+
const statement = /^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(str.trim());
|
| 996 |
+
if (statement !== null) {
|
| 997 |
+
return [Number.parseFloat(statement[1]), statement[2]];
|
| 998 |
+
}
|
| 999 |
+
return [NaN, "ms"];
|
| 1000 |
+
};
|
| 1001 |
+
const getEndDate = function(prevTime, dateFormat2, str, inclusive = false) {
|
| 1002 |
+
str = str.trim();
|
| 1003 |
+
let mDate = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(str, dateFormat2.trim(), true);
|
| 1004 |
+
if (mDate.isValid()) {
|
| 1005 |
+
if (inclusive) {
|
| 1006 |
+
mDate = mDate.add(1, "d");
|
| 1007 |
+
}
|
| 1008 |
+
return mDate.toDate();
|
| 1009 |
+
}
|
| 1010 |
+
let endTime = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(prevTime);
|
| 1011 |
+
const [durationValue, durationUnit] = parseDuration(str);
|
| 1012 |
+
if (!Number.isNaN(durationValue)) {
|
| 1013 |
+
const newEndTime = endTime.add(durationValue, durationUnit);
|
| 1014 |
+
if (newEndTime.isValid()) {
|
| 1015 |
+
endTime = newEndTime;
|
| 1016 |
+
}
|
| 1017 |
+
}
|
| 1018 |
+
return endTime.toDate();
|
| 1019 |
+
};
|
| 1020 |
+
let taskCnt = 0;
|
| 1021 |
+
const parseId = function(idStr) {
|
| 1022 |
+
if (idStr === void 0) {
|
| 1023 |
+
taskCnt = taskCnt + 1;
|
| 1024 |
+
return "task" + taskCnt;
|
| 1025 |
+
}
|
| 1026 |
+
return idStr;
|
| 1027 |
+
};
|
| 1028 |
+
const compileData = function(prevTask, dataStr) {
|
| 1029 |
+
let ds;
|
| 1030 |
+
if (dataStr.substr(0, 1) === ":") {
|
| 1031 |
+
ds = dataStr.substr(1, dataStr.length);
|
| 1032 |
+
} else {
|
| 1033 |
+
ds = dataStr;
|
| 1034 |
+
}
|
| 1035 |
+
const data = ds.split(",");
|
| 1036 |
+
const task = {};
|
| 1037 |
+
getTaskTags(data, task, tags);
|
| 1038 |
+
for (let i = 0; i < data.length; i++) {
|
| 1039 |
+
data[i] = data[i].trim();
|
| 1040 |
+
}
|
| 1041 |
+
let endTimeData = "";
|
| 1042 |
+
switch (data.length) {
|
| 1043 |
+
case 1:
|
| 1044 |
+
task.id = parseId();
|
| 1045 |
+
task.startTime = prevTask.endTime;
|
| 1046 |
+
endTimeData = data[0];
|
| 1047 |
+
break;
|
| 1048 |
+
case 2:
|
| 1049 |
+
task.id = parseId();
|
| 1050 |
+
task.startTime = getStartDate(void 0, dateFormat, data[0]);
|
| 1051 |
+
endTimeData = data[1];
|
| 1052 |
+
break;
|
| 1053 |
+
case 3:
|
| 1054 |
+
task.id = parseId(data[0]);
|
| 1055 |
+
task.startTime = getStartDate(void 0, dateFormat, data[1]);
|
| 1056 |
+
endTimeData = data[2];
|
| 1057 |
+
break;
|
| 1058 |
+
}
|
| 1059 |
+
if (endTimeData) {
|
| 1060 |
+
task.endTime = getEndDate(task.startTime, dateFormat, endTimeData, inclusiveEndDates);
|
| 1061 |
+
task.manualEndTime = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(endTimeData, "YYYY-MM-DD", true).isValid();
|
| 1062 |
+
checkTaskDates(task, dateFormat, excludes, includes);
|
| 1063 |
+
}
|
| 1064 |
+
return task;
|
| 1065 |
+
};
|
| 1066 |
+
const parseData = function(prevTaskId, dataStr) {
|
| 1067 |
+
let ds;
|
| 1068 |
+
if (dataStr.substr(0, 1) === ":") {
|
| 1069 |
+
ds = dataStr.substr(1, dataStr.length);
|
| 1070 |
+
} else {
|
| 1071 |
+
ds = dataStr;
|
| 1072 |
+
}
|
| 1073 |
+
const data = ds.split(",");
|
| 1074 |
+
const task = {};
|
| 1075 |
+
getTaskTags(data, task, tags);
|
| 1076 |
+
for (let i = 0; i < data.length; i++) {
|
| 1077 |
+
data[i] = data[i].trim();
|
| 1078 |
+
}
|
| 1079 |
+
switch (data.length) {
|
| 1080 |
+
case 1:
|
| 1081 |
+
task.id = parseId();
|
| 1082 |
+
task.startTime = {
|
| 1083 |
+
type: "prevTaskEnd",
|
| 1084 |
+
id: prevTaskId
|
| 1085 |
+
};
|
| 1086 |
+
task.endTime = {
|
| 1087 |
+
data: data[0]
|
| 1088 |
+
};
|
| 1089 |
+
break;
|
| 1090 |
+
case 2:
|
| 1091 |
+
task.id = parseId();
|
| 1092 |
+
task.startTime = {
|
| 1093 |
+
type: "getStartDate",
|
| 1094 |
+
startData: data[0]
|
| 1095 |
+
};
|
| 1096 |
+
task.endTime = {
|
| 1097 |
+
data: data[1]
|
| 1098 |
+
};
|
| 1099 |
+
break;
|
| 1100 |
+
case 3:
|
| 1101 |
+
task.id = parseId(data[0]);
|
| 1102 |
+
task.startTime = {
|
| 1103 |
+
type: "getStartDate",
|
| 1104 |
+
startData: data[1]
|
| 1105 |
+
};
|
| 1106 |
+
task.endTime = {
|
| 1107 |
+
data: data[2]
|
| 1108 |
+
};
|
| 1109 |
+
break;
|
| 1110 |
+
}
|
| 1111 |
+
return task;
|
| 1112 |
+
};
|
| 1113 |
+
let lastTask;
|
| 1114 |
+
let lastTaskID;
|
| 1115 |
+
let rawTasks = [];
|
| 1116 |
+
const taskDb = {};
|
| 1117 |
+
const addTask = function(descr, data) {
|
| 1118 |
+
const rawTask = {
|
| 1119 |
+
section: currentSection,
|
| 1120 |
+
type: currentSection,
|
| 1121 |
+
processed: false,
|
| 1122 |
+
manualEndTime: false,
|
| 1123 |
+
renderEndTime: null,
|
| 1124 |
+
raw: { data },
|
| 1125 |
+
task: descr,
|
| 1126 |
+
classes: []
|
| 1127 |
+
};
|
| 1128 |
+
const taskInfo = parseData(lastTaskID, data);
|
| 1129 |
+
rawTask.raw.startTime = taskInfo.startTime;
|
| 1130 |
+
rawTask.raw.endTime = taskInfo.endTime;
|
| 1131 |
+
rawTask.id = taskInfo.id;
|
| 1132 |
+
rawTask.prevTaskId = lastTaskID;
|
| 1133 |
+
rawTask.active = taskInfo.active;
|
| 1134 |
+
rawTask.done = taskInfo.done;
|
| 1135 |
+
rawTask.crit = taskInfo.crit;
|
| 1136 |
+
rawTask.milestone = taskInfo.milestone;
|
| 1137 |
+
rawTask.order = lastOrder;
|
| 1138 |
+
lastOrder++;
|
| 1139 |
+
const pos = rawTasks.push(rawTask);
|
| 1140 |
+
lastTaskID = rawTask.id;
|
| 1141 |
+
taskDb[rawTask.id] = pos - 1;
|
| 1142 |
+
};
|
| 1143 |
+
const findTaskById = function(id) {
|
| 1144 |
+
const pos = taskDb[id];
|
| 1145 |
+
return rawTasks[pos];
|
| 1146 |
+
};
|
| 1147 |
+
const addTaskOrg = function(descr, data) {
|
| 1148 |
+
const newTask = {
|
| 1149 |
+
section: currentSection,
|
| 1150 |
+
type: currentSection,
|
| 1151 |
+
description: descr,
|
| 1152 |
+
task: descr,
|
| 1153 |
+
classes: []
|
| 1154 |
+
};
|
| 1155 |
+
const taskInfo = compileData(lastTask, data);
|
| 1156 |
+
newTask.startTime = taskInfo.startTime;
|
| 1157 |
+
newTask.endTime = taskInfo.endTime;
|
| 1158 |
+
newTask.id = taskInfo.id;
|
| 1159 |
+
newTask.active = taskInfo.active;
|
| 1160 |
+
newTask.done = taskInfo.done;
|
| 1161 |
+
newTask.crit = taskInfo.crit;
|
| 1162 |
+
newTask.milestone = taskInfo.milestone;
|
| 1163 |
+
lastTask = newTask;
|
| 1164 |
+
tasks.push(newTask);
|
| 1165 |
+
};
|
| 1166 |
+
const compileTasks = function() {
|
| 1167 |
+
const compileTask = function(pos) {
|
| 1168 |
+
const task = rawTasks[pos];
|
| 1169 |
+
let startTime = "";
|
| 1170 |
+
switch (rawTasks[pos].raw.startTime.type) {
|
| 1171 |
+
case "prevTaskEnd": {
|
| 1172 |
+
const prevTask = findTaskById(task.prevTaskId);
|
| 1173 |
+
task.startTime = prevTask.endTime;
|
| 1174 |
+
break;
|
| 1175 |
+
}
|
| 1176 |
+
case "getStartDate":
|
| 1177 |
+
startTime = getStartDate(void 0, dateFormat, rawTasks[pos].raw.startTime.startData);
|
| 1178 |
+
if (startTime) {
|
| 1179 |
+
rawTasks[pos].startTime = startTime;
|
| 1180 |
+
}
|
| 1181 |
+
break;
|
| 1182 |
+
}
|
| 1183 |
+
if (rawTasks[pos].startTime) {
|
| 1184 |
+
rawTasks[pos].endTime = getEndDate(
|
| 1185 |
+
rawTasks[pos].startTime,
|
| 1186 |
+
dateFormat,
|
| 1187 |
+
rawTasks[pos].raw.endTime.data,
|
| 1188 |
+
inclusiveEndDates
|
| 1189 |
+
);
|
| 1190 |
+
if (rawTasks[pos].endTime) {
|
| 1191 |
+
rawTasks[pos].processed = true;
|
| 1192 |
+
rawTasks[pos].manualEndTime = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(
|
| 1193 |
+
rawTasks[pos].raw.endTime.data,
|
| 1194 |
+
"YYYY-MM-DD",
|
| 1195 |
+
true
|
| 1196 |
+
).isValid();
|
| 1197 |
+
checkTaskDates(rawTasks[pos], dateFormat, excludes, includes);
|
| 1198 |
+
}
|
| 1199 |
+
}
|
| 1200 |
+
return rawTasks[pos].processed;
|
| 1201 |
+
};
|
| 1202 |
+
let allProcessed = true;
|
| 1203 |
+
for (const [i, rawTask] of rawTasks.entries()) {
|
| 1204 |
+
compileTask(i);
|
| 1205 |
+
allProcessed = allProcessed && rawTask.processed;
|
| 1206 |
+
}
|
| 1207 |
+
return allProcessed;
|
| 1208 |
+
};
|
| 1209 |
+
const setLink = function(ids, _linkStr) {
|
| 1210 |
+
let linkStr = _linkStr;
|
| 1211 |
+
if ((0,_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.c)().securityLevel !== "loose") {
|
| 1212 |
+
linkStr = (0,_braintree_sanitize_url__WEBPACK_IMPORTED_MODULE_0__/* .sanitizeUrl */ .Nm)(_linkStr);
|
| 1213 |
+
}
|
| 1214 |
+
ids.split(",").forEach(function(id) {
|
| 1215 |
+
let rawTask = findTaskById(id);
|
| 1216 |
+
if (rawTask !== void 0) {
|
| 1217 |
+
pushFun(id, () => {
|
| 1218 |
+
window.open(linkStr, "_self");
|
| 1219 |
+
});
|
| 1220 |
+
links[id] = linkStr;
|
| 1221 |
+
}
|
| 1222 |
+
});
|
| 1223 |
+
setClass(ids, "clickable");
|
| 1224 |
+
};
|
| 1225 |
+
const setClass = function(ids, className) {
|
| 1226 |
+
ids.split(",").forEach(function(id) {
|
| 1227 |
+
let rawTask = findTaskById(id);
|
| 1228 |
+
if (rawTask !== void 0) {
|
| 1229 |
+
rawTask.classes.push(className);
|
| 1230 |
+
}
|
| 1231 |
+
});
|
| 1232 |
+
};
|
| 1233 |
+
const setClickFun = function(id, functionName, functionArgs) {
|
| 1234 |
+
if ((0,_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.c)().securityLevel !== "loose") {
|
| 1235 |
+
return;
|
| 1236 |
+
}
|
| 1237 |
+
if (functionName === void 0) {
|
| 1238 |
+
return;
|
| 1239 |
+
}
|
| 1240 |
+
let argList = [];
|
| 1241 |
+
if (typeof functionArgs === "string") {
|
| 1242 |
+
argList = functionArgs.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
| 1243 |
+
for (let i = 0; i < argList.length; i++) {
|
| 1244 |
+
let item = argList[i].trim();
|
| 1245 |
+
if (item.charAt(0) === '"' && item.charAt(item.length - 1) === '"') {
|
| 1246 |
+
item = item.substr(1, item.length - 2);
|
| 1247 |
+
}
|
| 1248 |
+
argList[i] = item;
|
| 1249 |
+
}
|
| 1250 |
+
}
|
| 1251 |
+
if (argList.length === 0) {
|
| 1252 |
+
argList.push(id);
|
| 1253 |
+
}
|
| 1254 |
+
let rawTask = findTaskById(id);
|
| 1255 |
+
if (rawTask !== void 0) {
|
| 1256 |
+
pushFun(id, () => {
|
| 1257 |
+
_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.u.runFunc(functionName, ...argList);
|
| 1258 |
+
});
|
| 1259 |
+
}
|
| 1260 |
+
};
|
| 1261 |
+
const pushFun = function(id, callbackFunction) {
|
| 1262 |
+
funs.push(
|
| 1263 |
+
function() {
|
| 1264 |
+
const elem = document.querySelector(`[id="${id}"]`);
|
| 1265 |
+
if (elem !== null) {
|
| 1266 |
+
elem.addEventListener("click", function() {
|
| 1267 |
+
callbackFunction();
|
| 1268 |
+
});
|
| 1269 |
+
}
|
| 1270 |
+
},
|
| 1271 |
+
function() {
|
| 1272 |
+
const elem = document.querySelector(`[id="${id}-text"]`);
|
| 1273 |
+
if (elem !== null) {
|
| 1274 |
+
elem.addEventListener("click", function() {
|
| 1275 |
+
callbackFunction();
|
| 1276 |
+
});
|
| 1277 |
+
}
|
| 1278 |
+
}
|
| 1279 |
+
);
|
| 1280 |
+
};
|
| 1281 |
+
const setClickEvent = function(ids, functionName, functionArgs) {
|
| 1282 |
+
ids.split(",").forEach(function(id) {
|
| 1283 |
+
setClickFun(id, functionName, functionArgs);
|
| 1284 |
+
});
|
| 1285 |
+
setClass(ids, "clickable");
|
| 1286 |
+
};
|
| 1287 |
+
const bindFunctions = function(element) {
|
| 1288 |
+
funs.forEach(function(fun) {
|
| 1289 |
+
fun(element);
|
| 1290 |
+
});
|
| 1291 |
+
};
|
| 1292 |
+
const ganttDb = {
|
| 1293 |
+
getConfig: () => (0,_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.c)().gantt,
|
| 1294 |
+
clear,
|
| 1295 |
+
setDateFormat,
|
| 1296 |
+
getDateFormat,
|
| 1297 |
+
enableInclusiveEndDates,
|
| 1298 |
+
endDatesAreInclusive,
|
| 1299 |
+
enableTopAxis,
|
| 1300 |
+
topAxisEnabled,
|
| 1301 |
+
setAxisFormat,
|
| 1302 |
+
getAxisFormat,
|
| 1303 |
+
setTickInterval,
|
| 1304 |
+
getTickInterval,
|
| 1305 |
+
setTodayMarker,
|
| 1306 |
+
getTodayMarker,
|
| 1307 |
+
setAccTitle: _mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.s,
|
| 1308 |
+
getAccTitle: _mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.g,
|
| 1309 |
+
setDiagramTitle: _mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.q,
|
| 1310 |
+
getDiagramTitle: _mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.r,
|
| 1311 |
+
setDisplayMode,
|
| 1312 |
+
getDisplayMode,
|
| 1313 |
+
setAccDescription: _mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.b,
|
| 1314 |
+
getAccDescription: _mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.a,
|
| 1315 |
+
addSection,
|
| 1316 |
+
getSections,
|
| 1317 |
+
getTasks,
|
| 1318 |
+
addTask,
|
| 1319 |
+
findTaskById,
|
| 1320 |
+
addTaskOrg,
|
| 1321 |
+
setIncludes,
|
| 1322 |
+
getIncludes,
|
| 1323 |
+
setExcludes,
|
| 1324 |
+
getExcludes,
|
| 1325 |
+
setClickEvent,
|
| 1326 |
+
setLink,
|
| 1327 |
+
getLinks,
|
| 1328 |
+
bindFunctions,
|
| 1329 |
+
parseDuration,
|
| 1330 |
+
isInvalidDate,
|
| 1331 |
+
setWeekday,
|
| 1332 |
+
getWeekday
|
| 1333 |
+
};
|
| 1334 |
+
function getTaskTags(data, task, tags2) {
|
| 1335 |
+
let matchFound = true;
|
| 1336 |
+
while (matchFound) {
|
| 1337 |
+
matchFound = false;
|
| 1338 |
+
tags2.forEach(function(t) {
|
| 1339 |
+
const pattern = "^\\s*" + t + "\\s*$";
|
| 1340 |
+
const regex = new RegExp(pattern);
|
| 1341 |
+
if (data[0].match(regex)) {
|
| 1342 |
+
task[t] = true;
|
| 1343 |
+
data.shift(1);
|
| 1344 |
+
matchFound = true;
|
| 1345 |
+
}
|
| 1346 |
+
});
|
| 1347 |
+
}
|
| 1348 |
+
}
|
| 1349 |
+
const setConf = function() {
|
| 1350 |
+
_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.l.debug("Something is calling, setConf, remove the call");
|
| 1351 |
+
};
|
| 1352 |
+
const mapWeekdayToTimeFunction = {
|
| 1353 |
+
monday: d3__WEBPACK_IMPORTED_MODULE_5__/* .timeMonday */ .Ox9,
|
| 1354 |
+
tuesday: d3__WEBPACK_IMPORTED_MODULE_5__/* .timeTuesday */ .YDX,
|
| 1355 |
+
wednesday: d3__WEBPACK_IMPORTED_MODULE_5__/* .timeWednesday */ .EFj,
|
| 1356 |
+
thursday: d3__WEBPACK_IMPORTED_MODULE_5__/* .timeThursday */ .Igq,
|
| 1357 |
+
friday: d3__WEBPACK_IMPORTED_MODULE_5__/* .timeFriday */ .y2j,
|
| 1358 |
+
saturday: d3__WEBPACK_IMPORTED_MODULE_5__/* .timeSaturday */ .LqH,
|
| 1359 |
+
sunday: d3__WEBPACK_IMPORTED_MODULE_5__/* .timeSunday */ .Zyz
|
| 1360 |
+
};
|
| 1361 |
+
const getMaxIntersections = (tasks2, orderOffset) => {
|
| 1362 |
+
let timeline = [...tasks2].map(() => -Infinity);
|
| 1363 |
+
let sorted = [...tasks2].sort((a, b) => a.startTime - b.startTime || a.order - b.order);
|
| 1364 |
+
let maxIntersections = 0;
|
| 1365 |
+
for (const element of sorted) {
|
| 1366 |
+
for (let j = 0; j < timeline.length; j++) {
|
| 1367 |
+
if (element.startTime >= timeline[j]) {
|
| 1368 |
+
timeline[j] = element.endTime;
|
| 1369 |
+
element.order = j + orderOffset;
|
| 1370 |
+
if (j > maxIntersections) {
|
| 1371 |
+
maxIntersections = j;
|
| 1372 |
+
}
|
| 1373 |
+
break;
|
| 1374 |
+
}
|
| 1375 |
+
}
|
| 1376 |
+
}
|
| 1377 |
+
return maxIntersections;
|
| 1378 |
+
};
|
| 1379 |
+
let w;
|
| 1380 |
+
const draw = function(text, id, version, diagObj) {
|
| 1381 |
+
const conf = (0,_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.c)().gantt;
|
| 1382 |
+
const securityLevel = (0,_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.c)().securityLevel;
|
| 1383 |
+
let sandboxElement;
|
| 1384 |
+
if (securityLevel === "sandbox") {
|
| 1385 |
+
sandboxElement = (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .select */ .Ys)("#i" + id);
|
| 1386 |
+
}
|
| 1387 |
+
const root = securityLevel === "sandbox" ? (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .select */ .Ys)(sandboxElement.nodes()[0].contentDocument.body) : (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .select */ .Ys)("body");
|
| 1388 |
+
const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
|
| 1389 |
+
const elem = doc.getElementById(id);
|
| 1390 |
+
w = elem.parentElement.offsetWidth;
|
| 1391 |
+
if (w === void 0) {
|
| 1392 |
+
w = 1200;
|
| 1393 |
+
}
|
| 1394 |
+
if (conf.useWidth !== void 0) {
|
| 1395 |
+
w = conf.useWidth;
|
| 1396 |
+
}
|
| 1397 |
+
const taskArray = diagObj.db.getTasks();
|
| 1398 |
+
let categories = [];
|
| 1399 |
+
for (const element of taskArray) {
|
| 1400 |
+
categories.push(element.type);
|
| 1401 |
+
}
|
| 1402 |
+
categories = checkUnique(categories);
|
| 1403 |
+
const categoryHeights = {};
|
| 1404 |
+
let h = 2 * conf.topPadding;
|
| 1405 |
+
if (diagObj.db.getDisplayMode() === "compact" || conf.displayMode === "compact") {
|
| 1406 |
+
const categoryElements = {};
|
| 1407 |
+
for (const element of taskArray) {
|
| 1408 |
+
if (categoryElements[element.section] === void 0) {
|
| 1409 |
+
categoryElements[element.section] = [element];
|
| 1410 |
+
} else {
|
| 1411 |
+
categoryElements[element.section].push(element);
|
| 1412 |
+
}
|
| 1413 |
+
}
|
| 1414 |
+
let intersections = 0;
|
| 1415 |
+
for (const category of Object.keys(categoryElements)) {
|
| 1416 |
+
const categoryHeight = getMaxIntersections(categoryElements[category], intersections) + 1;
|
| 1417 |
+
intersections += categoryHeight;
|
| 1418 |
+
h += categoryHeight * (conf.barHeight + conf.barGap);
|
| 1419 |
+
categoryHeights[category] = categoryHeight;
|
| 1420 |
+
}
|
| 1421 |
+
} else {
|
| 1422 |
+
h += taskArray.length * (conf.barHeight + conf.barGap);
|
| 1423 |
+
for (const category of categories) {
|
| 1424 |
+
categoryHeights[category] = taskArray.filter((task) => task.type === category).length;
|
| 1425 |
+
}
|
| 1426 |
+
}
|
| 1427 |
+
elem.setAttribute("viewBox", "0 0 " + w + " " + h);
|
| 1428 |
+
const svg = root.select(`[id="${id}"]`);
|
| 1429 |
+
const timeScale = (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .scaleTime */ .Xf)().domain([
|
| 1430 |
+
(0,d3__WEBPACK_IMPORTED_MODULE_5__/* .min */ .VV$)(taskArray, function(d) {
|
| 1431 |
+
return d.startTime;
|
| 1432 |
+
}),
|
| 1433 |
+
(0,d3__WEBPACK_IMPORTED_MODULE_5__/* .max */ .Fp7)(taskArray, function(d) {
|
| 1434 |
+
return d.endTime;
|
| 1435 |
+
})
|
| 1436 |
+
]).rangeRound([0, w - conf.leftPadding - conf.rightPadding]);
|
| 1437 |
+
function taskCompare(a, b) {
|
| 1438 |
+
const taskA = a.startTime;
|
| 1439 |
+
const taskB = b.startTime;
|
| 1440 |
+
let result = 0;
|
| 1441 |
+
if (taskA > taskB) {
|
| 1442 |
+
result = 1;
|
| 1443 |
+
} else if (taskA < taskB) {
|
| 1444 |
+
result = -1;
|
| 1445 |
+
}
|
| 1446 |
+
return result;
|
| 1447 |
+
}
|
| 1448 |
+
taskArray.sort(taskCompare);
|
| 1449 |
+
makeGant(taskArray, w, h);
|
| 1450 |
+
(0,_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.i)(svg, h, w, conf.useMaxWidth);
|
| 1451 |
+
svg.append("text").text(diagObj.db.getDiagramTitle()).attr("x", w / 2).attr("y", conf.titleTopMargin).attr("class", "titleText");
|
| 1452 |
+
function makeGant(tasks2, pageWidth, pageHeight) {
|
| 1453 |
+
const barHeight = conf.barHeight;
|
| 1454 |
+
const gap = barHeight + conf.barGap;
|
| 1455 |
+
const topPadding = conf.topPadding;
|
| 1456 |
+
const leftPadding = conf.leftPadding;
|
| 1457 |
+
const colorScale = (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .scaleLinear */ .BYU)().domain([0, categories.length]).range(["#00B9FA", "#F95002"]).interpolate(d3__WEBPACK_IMPORTED_MODULE_5__/* .interpolateHcl */ .JHv);
|
| 1458 |
+
drawExcludeDays(
|
| 1459 |
+
gap,
|
| 1460 |
+
topPadding,
|
| 1461 |
+
leftPadding,
|
| 1462 |
+
pageWidth,
|
| 1463 |
+
pageHeight,
|
| 1464 |
+
tasks2,
|
| 1465 |
+
diagObj.db.getExcludes(),
|
| 1466 |
+
diagObj.db.getIncludes()
|
| 1467 |
+
);
|
| 1468 |
+
makeGrid(leftPadding, topPadding, pageWidth, pageHeight);
|
| 1469 |
+
drawRects(tasks2, gap, topPadding, leftPadding, barHeight, colorScale, pageWidth);
|
| 1470 |
+
vertLabels(gap, topPadding);
|
| 1471 |
+
drawToday(leftPadding, topPadding, pageWidth, pageHeight);
|
| 1472 |
+
}
|
| 1473 |
+
function drawRects(theArray, theGap, theTopPad, theSidePad, theBarHeight, theColorScale, w2) {
|
| 1474 |
+
const uniqueTaskOrderIds = [...new Set(theArray.map((item) => item.order))];
|
| 1475 |
+
const uniqueTasks = uniqueTaskOrderIds.map((id2) => theArray.find((item) => item.order === id2));
|
| 1476 |
+
svg.append("g").selectAll("rect").data(uniqueTasks).enter().append("rect").attr("x", 0).attr("y", function(d, i) {
|
| 1477 |
+
i = d.order;
|
| 1478 |
+
return i * theGap + theTopPad - 2;
|
| 1479 |
+
}).attr("width", function() {
|
| 1480 |
+
return w2 - conf.rightPadding / 2;
|
| 1481 |
+
}).attr("height", theGap).attr("class", function(d) {
|
| 1482 |
+
for (const [i, category] of categories.entries()) {
|
| 1483 |
+
if (d.type === category) {
|
| 1484 |
+
return "section section" + i % conf.numberSectionStyles;
|
| 1485 |
+
}
|
| 1486 |
+
}
|
| 1487 |
+
return "section section0";
|
| 1488 |
+
});
|
| 1489 |
+
const rectangles = svg.append("g").selectAll("rect").data(theArray).enter();
|
| 1490 |
+
const links2 = diagObj.db.getLinks();
|
| 1491 |
+
rectangles.append("rect").attr("id", function(d) {
|
| 1492 |
+
return d.id;
|
| 1493 |
+
}).attr("rx", 3).attr("ry", 3).attr("x", function(d) {
|
| 1494 |
+
if (d.milestone) {
|
| 1495 |
+
return timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;
|
| 1496 |
+
}
|
| 1497 |
+
return timeScale(d.startTime) + theSidePad;
|
| 1498 |
+
}).attr("y", function(d, i) {
|
| 1499 |
+
i = d.order;
|
| 1500 |
+
return i * theGap + theTopPad;
|
| 1501 |
+
}).attr("width", function(d) {
|
| 1502 |
+
if (d.milestone) {
|
| 1503 |
+
return theBarHeight;
|
| 1504 |
+
}
|
| 1505 |
+
return timeScale(d.renderEndTime || d.endTime) - timeScale(d.startTime);
|
| 1506 |
+
}).attr("height", theBarHeight).attr("transform-origin", function(d, i) {
|
| 1507 |
+
i = d.order;
|
| 1508 |
+
return (timeScale(d.startTime) + theSidePad + 0.5 * (timeScale(d.endTime) - timeScale(d.startTime))).toString() + "px " + (i * theGap + theTopPad + 0.5 * theBarHeight).toString() + "px";
|
| 1509 |
+
}).attr("class", function(d) {
|
| 1510 |
+
const res = "task";
|
| 1511 |
+
let classStr = "";
|
| 1512 |
+
if (d.classes.length > 0) {
|
| 1513 |
+
classStr = d.classes.join(" ");
|
| 1514 |
+
}
|
| 1515 |
+
let secNum = 0;
|
| 1516 |
+
for (const [i, category] of categories.entries()) {
|
| 1517 |
+
if (d.type === category) {
|
| 1518 |
+
secNum = i % conf.numberSectionStyles;
|
| 1519 |
+
}
|
| 1520 |
+
}
|
| 1521 |
+
let taskClass = "";
|
| 1522 |
+
if (d.active) {
|
| 1523 |
+
if (d.crit) {
|
| 1524 |
+
taskClass += " activeCrit";
|
| 1525 |
+
} else {
|
| 1526 |
+
taskClass = " active";
|
| 1527 |
+
}
|
| 1528 |
+
} else if (d.done) {
|
| 1529 |
+
if (d.crit) {
|
| 1530 |
+
taskClass = " doneCrit";
|
| 1531 |
+
} else {
|
| 1532 |
+
taskClass = " done";
|
| 1533 |
+
}
|
| 1534 |
+
} else {
|
| 1535 |
+
if (d.crit) {
|
| 1536 |
+
taskClass += " crit";
|
| 1537 |
+
}
|
| 1538 |
+
}
|
| 1539 |
+
if (taskClass.length === 0) {
|
| 1540 |
+
taskClass = " task";
|
| 1541 |
+
}
|
| 1542 |
+
if (d.milestone) {
|
| 1543 |
+
taskClass = " milestone " + taskClass;
|
| 1544 |
+
}
|
| 1545 |
+
taskClass += secNum;
|
| 1546 |
+
taskClass += " " + classStr;
|
| 1547 |
+
return res + taskClass;
|
| 1548 |
+
});
|
| 1549 |
+
rectangles.append("text").attr("id", function(d) {
|
| 1550 |
+
return d.id + "-text";
|
| 1551 |
+
}).text(function(d) {
|
| 1552 |
+
return d.task;
|
| 1553 |
+
}).attr("font-size", conf.fontSize).attr("x", function(d) {
|
| 1554 |
+
let startX = timeScale(d.startTime);
|
| 1555 |
+
let endX = timeScale(d.renderEndTime || d.endTime);
|
| 1556 |
+
if (d.milestone) {
|
| 1557 |
+
startX += 0.5 * (timeScale(d.endTime) - timeScale(d.startTime)) - 0.5 * theBarHeight;
|
| 1558 |
+
}
|
| 1559 |
+
if (d.milestone) {
|
| 1560 |
+
endX = startX + theBarHeight;
|
| 1561 |
+
}
|
| 1562 |
+
const textWidth = this.getBBox().width;
|
| 1563 |
+
if (textWidth > endX - startX) {
|
| 1564 |
+
if (endX + textWidth + 1.5 * conf.leftPadding > w2) {
|
| 1565 |
+
return startX + theSidePad - 5;
|
| 1566 |
+
} else {
|
| 1567 |
+
return endX + theSidePad + 5;
|
| 1568 |
+
}
|
| 1569 |
+
} else {
|
| 1570 |
+
return (endX - startX) / 2 + startX + theSidePad;
|
| 1571 |
+
}
|
| 1572 |
+
}).attr("y", function(d, i) {
|
| 1573 |
+
i = d.order;
|
| 1574 |
+
return i * theGap + conf.barHeight / 2 + (conf.fontSize / 2 - 2) + theTopPad;
|
| 1575 |
+
}).attr("text-height", theBarHeight).attr("class", function(d) {
|
| 1576 |
+
const startX = timeScale(d.startTime);
|
| 1577 |
+
let endX = timeScale(d.endTime);
|
| 1578 |
+
if (d.milestone) {
|
| 1579 |
+
endX = startX + theBarHeight;
|
| 1580 |
+
}
|
| 1581 |
+
const textWidth = this.getBBox().width;
|
| 1582 |
+
let classStr = "";
|
| 1583 |
+
if (d.classes.length > 0) {
|
| 1584 |
+
classStr = d.classes.join(" ");
|
| 1585 |
+
}
|
| 1586 |
+
let secNum = 0;
|
| 1587 |
+
for (const [i, category] of categories.entries()) {
|
| 1588 |
+
if (d.type === category) {
|
| 1589 |
+
secNum = i % conf.numberSectionStyles;
|
| 1590 |
+
}
|
| 1591 |
+
}
|
| 1592 |
+
let taskType = "";
|
| 1593 |
+
if (d.active) {
|
| 1594 |
+
if (d.crit) {
|
| 1595 |
+
taskType = "activeCritText" + secNum;
|
| 1596 |
+
} else {
|
| 1597 |
+
taskType = "activeText" + secNum;
|
| 1598 |
+
}
|
| 1599 |
+
}
|
| 1600 |
+
if (d.done) {
|
| 1601 |
+
if (d.crit) {
|
| 1602 |
+
taskType = taskType + " doneCritText" + secNum;
|
| 1603 |
+
} else {
|
| 1604 |
+
taskType = taskType + " doneText" + secNum;
|
| 1605 |
+
}
|
| 1606 |
+
} else {
|
| 1607 |
+
if (d.crit) {
|
| 1608 |
+
taskType = taskType + " critText" + secNum;
|
| 1609 |
+
}
|
| 1610 |
+
}
|
| 1611 |
+
if (d.milestone) {
|
| 1612 |
+
taskType += " milestoneText";
|
| 1613 |
+
}
|
| 1614 |
+
if (textWidth > endX - startX) {
|
| 1615 |
+
if (endX + textWidth + 1.5 * conf.leftPadding > w2) {
|
| 1616 |
+
return classStr + " taskTextOutsideLeft taskTextOutside" + secNum + " " + taskType;
|
| 1617 |
+
} else {
|
| 1618 |
+
return classStr + " taskTextOutsideRight taskTextOutside" + secNum + " " + taskType + " width-" + textWidth;
|
| 1619 |
+
}
|
| 1620 |
+
} else {
|
| 1621 |
+
return classStr + " taskText taskText" + secNum + " " + taskType + " width-" + textWidth;
|
| 1622 |
+
}
|
| 1623 |
+
});
|
| 1624 |
+
const securityLevel2 = (0,_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.c)().securityLevel;
|
| 1625 |
+
if (securityLevel2 === "sandbox") {
|
| 1626 |
+
let sandboxElement2;
|
| 1627 |
+
sandboxElement2 = (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .select */ .Ys)("#i" + id);
|
| 1628 |
+
const doc2 = sandboxElement2.nodes()[0].contentDocument;
|
| 1629 |
+
rectangles.filter(function(d) {
|
| 1630 |
+
return links2[d.id] !== void 0;
|
| 1631 |
+
}).each(function(o) {
|
| 1632 |
+
var taskRect = doc2.querySelector("#" + o.id);
|
| 1633 |
+
var taskText = doc2.querySelector("#" + o.id + "-text");
|
| 1634 |
+
const oldParent = taskRect.parentNode;
|
| 1635 |
+
var Link = doc2.createElement("a");
|
| 1636 |
+
Link.setAttribute("xlink:href", links2[o.id]);
|
| 1637 |
+
Link.setAttribute("target", "_top");
|
| 1638 |
+
oldParent.appendChild(Link);
|
| 1639 |
+
Link.appendChild(taskRect);
|
| 1640 |
+
Link.appendChild(taskText);
|
| 1641 |
+
});
|
| 1642 |
+
}
|
| 1643 |
+
}
|
| 1644 |
+
function drawExcludeDays(theGap, theTopPad, theSidePad, w2, h2, tasks2, excludes2, includes2) {
|
| 1645 |
+
if (excludes2.length === 0 && includes2.length === 0) {
|
| 1646 |
+
return;
|
| 1647 |
+
}
|
| 1648 |
+
let minTime;
|
| 1649 |
+
let maxTime;
|
| 1650 |
+
for (const { startTime, endTime } of tasks2) {
|
| 1651 |
+
if (minTime === void 0 || startTime < minTime) {
|
| 1652 |
+
minTime = startTime;
|
| 1653 |
+
}
|
| 1654 |
+
if (maxTime === void 0 || endTime > maxTime) {
|
| 1655 |
+
maxTime = endTime;
|
| 1656 |
+
}
|
| 1657 |
+
}
|
| 1658 |
+
if (!minTime || !maxTime) {
|
| 1659 |
+
return;
|
| 1660 |
+
}
|
| 1661 |
+
if (dayjs__WEBPACK_IMPORTED_MODULE_1___default()(maxTime).diff(dayjs__WEBPACK_IMPORTED_MODULE_1___default()(minTime), "year") > 5) {
|
| 1662 |
+
_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.l.warn(
|
| 1663 |
+
"The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days."
|
| 1664 |
+
);
|
| 1665 |
+
return;
|
| 1666 |
+
}
|
| 1667 |
+
const dateFormat2 = diagObj.db.getDateFormat();
|
| 1668 |
+
const excludeRanges = [];
|
| 1669 |
+
let range = null;
|
| 1670 |
+
let d = dayjs__WEBPACK_IMPORTED_MODULE_1___default()(minTime);
|
| 1671 |
+
while (d.valueOf() <= maxTime) {
|
| 1672 |
+
if (diagObj.db.isInvalidDate(d, dateFormat2, excludes2, includes2)) {
|
| 1673 |
+
if (!range) {
|
| 1674 |
+
range = {
|
| 1675 |
+
start: d,
|
| 1676 |
+
end: d
|
| 1677 |
+
};
|
| 1678 |
+
} else {
|
| 1679 |
+
range.end = d;
|
| 1680 |
+
}
|
| 1681 |
+
} else {
|
| 1682 |
+
if (range) {
|
| 1683 |
+
excludeRanges.push(range);
|
| 1684 |
+
range = null;
|
| 1685 |
+
}
|
| 1686 |
+
}
|
| 1687 |
+
d = d.add(1, "d");
|
| 1688 |
+
}
|
| 1689 |
+
const rectangles = svg.append("g").selectAll("rect").data(excludeRanges).enter();
|
| 1690 |
+
rectangles.append("rect").attr("id", function(d2) {
|
| 1691 |
+
return "exclude-" + d2.start.format("YYYY-MM-DD");
|
| 1692 |
+
}).attr("x", function(d2) {
|
| 1693 |
+
return timeScale(d2.start) + theSidePad;
|
| 1694 |
+
}).attr("y", conf.gridLineStartPadding).attr("width", function(d2) {
|
| 1695 |
+
const renderEnd = d2.end.add(1, "day");
|
| 1696 |
+
return timeScale(renderEnd) - timeScale(d2.start);
|
| 1697 |
+
}).attr("height", h2 - theTopPad - conf.gridLineStartPadding).attr("transform-origin", function(d2, i) {
|
| 1698 |
+
return (timeScale(d2.start) + theSidePad + 0.5 * (timeScale(d2.end) - timeScale(d2.start))).toString() + "px " + (i * theGap + 0.5 * h2).toString() + "px";
|
| 1699 |
+
}).attr("class", "exclude-range");
|
| 1700 |
+
}
|
| 1701 |
+
function makeGrid(theSidePad, theTopPad, w2, h2) {
|
| 1702 |
+
let bottomXAxis = (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .axisBottom */ .LLu)(timeScale).tickSize(-h2 + theTopPad + conf.gridLineStartPadding).tickFormat((0,d3__WEBPACK_IMPORTED_MODULE_5__/* .timeFormat */ .i$Z)(diagObj.db.getAxisFormat() || conf.axisFormat || "%Y-%m-%d"));
|
| 1703 |
+
const reTickInterval = /^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/;
|
| 1704 |
+
const resultTickInterval = reTickInterval.exec(
|
| 1705 |
+
diagObj.db.getTickInterval() || conf.tickInterval
|
| 1706 |
+
);
|
| 1707 |
+
if (resultTickInterval !== null) {
|
| 1708 |
+
const every = resultTickInterval[1];
|
| 1709 |
+
const interval = resultTickInterval[2];
|
| 1710 |
+
const weekday2 = diagObj.db.getWeekday() || conf.weekday;
|
| 1711 |
+
switch (interval) {
|
| 1712 |
+
case "millisecond":
|
| 1713 |
+
bottomXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeMillisecond */ .U8T.every(every));
|
| 1714 |
+
break;
|
| 1715 |
+
case "second":
|
| 1716 |
+
bottomXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeSecond */ .S1K.every(every));
|
| 1717 |
+
break;
|
| 1718 |
+
case "minute":
|
| 1719 |
+
bottomXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeMinute */ .Z_i.every(every));
|
| 1720 |
+
break;
|
| 1721 |
+
case "hour":
|
| 1722 |
+
bottomXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeHour */ .WQD.every(every));
|
| 1723 |
+
break;
|
| 1724 |
+
case "day":
|
| 1725 |
+
bottomXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeDay */ .rr1.every(every));
|
| 1726 |
+
break;
|
| 1727 |
+
case "week":
|
| 1728 |
+
bottomXAxis.ticks(mapWeekdayToTimeFunction[weekday2].every(every));
|
| 1729 |
+
break;
|
| 1730 |
+
case "month":
|
| 1731 |
+
bottomXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeMonth */ .F0B.every(every));
|
| 1732 |
+
break;
|
| 1733 |
+
}
|
| 1734 |
+
}
|
| 1735 |
+
svg.append("g").attr("class", "grid").attr("transform", "translate(" + theSidePad + ", " + (h2 - 50) + ")").call(bottomXAxis).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10).attr("dy", "1em");
|
| 1736 |
+
if (diagObj.db.topAxisEnabled() || conf.topAxis) {
|
| 1737 |
+
let topXAxis = (0,d3__WEBPACK_IMPORTED_MODULE_5__/* .axisTop */ .F5q)(timeScale).tickSize(-h2 + theTopPad + conf.gridLineStartPadding).tickFormat((0,d3__WEBPACK_IMPORTED_MODULE_5__/* .timeFormat */ .i$Z)(diagObj.db.getAxisFormat() || conf.axisFormat || "%Y-%m-%d"));
|
| 1738 |
+
if (resultTickInterval !== null) {
|
| 1739 |
+
const every = resultTickInterval[1];
|
| 1740 |
+
const interval = resultTickInterval[2];
|
| 1741 |
+
const weekday2 = diagObj.db.getWeekday() || conf.weekday;
|
| 1742 |
+
switch (interval) {
|
| 1743 |
+
case "millisecond":
|
| 1744 |
+
topXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeMillisecond */ .U8T.every(every));
|
| 1745 |
+
break;
|
| 1746 |
+
case "second":
|
| 1747 |
+
topXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeSecond */ .S1K.every(every));
|
| 1748 |
+
break;
|
| 1749 |
+
case "minute":
|
| 1750 |
+
topXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeMinute */ .Z_i.every(every));
|
| 1751 |
+
break;
|
| 1752 |
+
case "hour":
|
| 1753 |
+
topXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeHour */ .WQD.every(every));
|
| 1754 |
+
break;
|
| 1755 |
+
case "day":
|
| 1756 |
+
topXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeDay */ .rr1.every(every));
|
| 1757 |
+
break;
|
| 1758 |
+
case "week":
|
| 1759 |
+
topXAxis.ticks(mapWeekdayToTimeFunction[weekday2].every(every));
|
| 1760 |
+
break;
|
| 1761 |
+
case "month":
|
| 1762 |
+
topXAxis.ticks(d3__WEBPACK_IMPORTED_MODULE_5__/* .timeMonth */ .F0B.every(every));
|
| 1763 |
+
break;
|
| 1764 |
+
}
|
| 1765 |
+
}
|
| 1766 |
+
svg.append("g").attr("class", "grid").attr("transform", "translate(" + theSidePad + ", " + theTopPad + ")").call(topXAxis).selectAll("text").style("text-anchor", "middle").attr("fill", "#000").attr("stroke", "none").attr("font-size", 10);
|
| 1767 |
+
}
|
| 1768 |
+
}
|
| 1769 |
+
function vertLabels(theGap, theTopPad) {
|
| 1770 |
+
let prevGap = 0;
|
| 1771 |
+
const numOccurances = Object.keys(categoryHeights).map((d) => [d, categoryHeights[d]]);
|
| 1772 |
+
svg.append("g").selectAll("text").data(numOccurances).enter().append(function(d) {
|
| 1773 |
+
const rows = d[0].split(_mermaid_04fb0060_js__WEBPACK_IMPORTED_MODULE_7__.e.lineBreakRegex);
|
| 1774 |
+
const dy = -(rows.length - 1) / 2;
|
| 1775 |
+
const svgLabel = doc.createElementNS("http://www.w3.org/2000/svg", "text");
|
| 1776 |
+
svgLabel.setAttribute("dy", dy + "em");
|
| 1777 |
+
for (const [j, row] of rows.entries()) {
|
| 1778 |
+
const tspan = doc.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
| 1779 |
+
tspan.setAttribute("alignment-baseline", "central");
|
| 1780 |
+
tspan.setAttribute("x", "10");
|
| 1781 |
+
if (j > 0) {
|
| 1782 |
+
tspan.setAttribute("dy", "1em");
|
| 1783 |
+
}
|
| 1784 |
+
tspan.textContent = row;
|
| 1785 |
+
svgLabel.appendChild(tspan);
|
| 1786 |
+
}
|
| 1787 |
+
return svgLabel;
|
| 1788 |
+
}).attr("x", 10).attr("y", function(d, i) {
|
| 1789 |
+
if (i > 0) {
|
| 1790 |
+
for (let j = 0; j < i; j++) {
|
| 1791 |
+
prevGap += numOccurances[i - 1][1];
|
| 1792 |
+
return d[1] * theGap / 2 + prevGap * theGap + theTopPad;
|
| 1793 |
+
}
|
| 1794 |
+
} else {
|
| 1795 |
+
return d[1] * theGap / 2 + theTopPad;
|
| 1796 |
+
}
|
| 1797 |
+
}).attr("font-size", conf.sectionFontSize).attr("class", function(d) {
|
| 1798 |
+
for (const [i, category] of categories.entries()) {
|
| 1799 |
+
if (d[0] === category) {
|
| 1800 |
+
return "sectionTitle sectionTitle" + i % conf.numberSectionStyles;
|
| 1801 |
+
}
|
| 1802 |
+
}
|
| 1803 |
+
return "sectionTitle";
|
| 1804 |
+
});
|
| 1805 |
+
}
|
| 1806 |
+
function drawToday(theSidePad, theTopPad, w2, h2) {
|
| 1807 |
+
const todayMarker2 = diagObj.db.getTodayMarker();
|
| 1808 |
+
if (todayMarker2 === "off") {
|
| 1809 |
+
return;
|
| 1810 |
+
}
|
| 1811 |
+
const todayG = svg.append("g").attr("class", "today");
|
| 1812 |
+
const today = /* @__PURE__ */ new Date();
|
| 1813 |
+
const todayLine = todayG.append("line");
|
| 1814 |
+
todayLine.attr("x1", timeScale(today) + theSidePad).attr("x2", timeScale(today) + theSidePad).attr("y1", conf.titleTopMargin).attr("y2", h2 - conf.titleTopMargin).attr("class", "today");
|
| 1815 |
+
if (todayMarker2 !== "") {
|
| 1816 |
+
todayLine.attr("style", todayMarker2.replace(/,/g, ";"));
|
| 1817 |
+
}
|
| 1818 |
+
}
|
| 1819 |
+
function checkUnique(arr) {
|
| 1820 |
+
const hash = {};
|
| 1821 |
+
const result = [];
|
| 1822 |
+
for (let i = 0, l = arr.length; i < l; ++i) {
|
| 1823 |
+
if (!Object.prototype.hasOwnProperty.call(hash, arr[i])) {
|
| 1824 |
+
hash[arr[i]] = true;
|
| 1825 |
+
result.push(arr[i]);
|
| 1826 |
+
}
|
| 1827 |
+
}
|
| 1828 |
+
return result;
|
| 1829 |
+
}
|
| 1830 |
+
};
|
| 1831 |
+
const ganttRenderer = {
|
| 1832 |
+
setConf,
|
| 1833 |
+
draw
|
| 1834 |
+
};
|
| 1835 |
+
const getStyles = (options) => `
|
| 1836 |
+
.mermaid-main-font {
|
| 1837 |
+
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
| 1838 |
+
}
|
| 1839 |
+
|
| 1840 |
+
.exclude-range {
|
| 1841 |
+
fill: ${options.excludeBkgColor};
|
| 1842 |
+
}
|
| 1843 |
+
|
| 1844 |
+
.section {
|
| 1845 |
+
stroke: none;
|
| 1846 |
+
opacity: 0.2;
|
| 1847 |
+
}
|
| 1848 |
+
|
| 1849 |
+
.section0 {
|
| 1850 |
+
fill: ${options.sectionBkgColor};
|
| 1851 |
+
}
|
| 1852 |
+
|
| 1853 |
+
.section2 {
|
| 1854 |
+
fill: ${options.sectionBkgColor2};
|
| 1855 |
+
}
|
| 1856 |
+
|
| 1857 |
+
.section1,
|
| 1858 |
+
.section3 {
|
| 1859 |
+
fill: ${options.altSectionBkgColor};
|
| 1860 |
+
opacity: 0.2;
|
| 1861 |
+
}
|
| 1862 |
+
|
| 1863 |
+
.sectionTitle0 {
|
| 1864 |
+
fill: ${options.titleColor};
|
| 1865 |
+
}
|
| 1866 |
+
|
| 1867 |
+
.sectionTitle1 {
|
| 1868 |
+
fill: ${options.titleColor};
|
| 1869 |
+
}
|
| 1870 |
+
|
| 1871 |
+
.sectionTitle2 {
|
| 1872 |
+
fill: ${options.titleColor};
|
| 1873 |
+
}
|
| 1874 |
+
|
| 1875 |
+
.sectionTitle3 {
|
| 1876 |
+
fill: ${options.titleColor};
|
| 1877 |
+
}
|
| 1878 |
+
|
| 1879 |
+
.sectionTitle {
|
| 1880 |
+
text-anchor: start;
|
| 1881 |
+
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
| 1882 |
+
}
|
| 1883 |
+
|
| 1884 |
+
|
| 1885 |
+
/* Grid and axis */
|
| 1886 |
+
|
| 1887 |
+
.grid .tick {
|
| 1888 |
+
stroke: ${options.gridColor};
|
| 1889 |
+
opacity: 0.8;
|
| 1890 |
+
shape-rendering: crispEdges;
|
| 1891 |
+
}
|
| 1892 |
+
|
| 1893 |
+
.grid .tick text {
|
| 1894 |
+
font-family: ${options.fontFamily};
|
| 1895 |
+
fill: ${options.textColor};
|
| 1896 |
+
}
|
| 1897 |
+
|
| 1898 |
+
.grid path {
|
| 1899 |
+
stroke-width: 0;
|
| 1900 |
+
}
|
| 1901 |
+
|
| 1902 |
+
|
| 1903 |
+
/* Today line */
|
| 1904 |
+
|
| 1905 |
+
.today {
|
| 1906 |
+
fill: none;
|
| 1907 |
+
stroke: ${options.todayLineColor};
|
| 1908 |
+
stroke-width: 2px;
|
| 1909 |
+
}
|
| 1910 |
+
|
| 1911 |
+
|
| 1912 |
+
/* Task styling */
|
| 1913 |
+
|
| 1914 |
+
/* Default task */
|
| 1915 |
+
|
| 1916 |
+
.task {
|
| 1917 |
+
stroke-width: 2;
|
| 1918 |
+
}
|
| 1919 |
+
|
| 1920 |
+
.taskText {
|
| 1921 |
+
text-anchor: middle;
|
| 1922 |
+
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
| 1923 |
+
}
|
| 1924 |
+
|
| 1925 |
+
.taskTextOutsideRight {
|
| 1926 |
+
fill: ${options.taskTextDarkColor};
|
| 1927 |
+
text-anchor: start;
|
| 1928 |
+
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
| 1929 |
+
}
|
| 1930 |
+
|
| 1931 |
+
.taskTextOutsideLeft {
|
| 1932 |
+
fill: ${options.taskTextDarkColor};
|
| 1933 |
+
text-anchor: end;
|
| 1934 |
+
}
|
| 1935 |
+
|
| 1936 |
+
|
| 1937 |
+
/* Special case clickable */
|
| 1938 |
+
|
| 1939 |
+
.task.clickable {
|
| 1940 |
+
cursor: pointer;
|
| 1941 |
+
}
|
| 1942 |
+
|
| 1943 |
+
.taskText.clickable {
|
| 1944 |
+
cursor: pointer;
|
| 1945 |
+
fill: ${options.taskTextClickableColor} !important;
|
| 1946 |
+
font-weight: bold;
|
| 1947 |
+
}
|
| 1948 |
+
|
| 1949 |
+
.taskTextOutsideLeft.clickable {
|
| 1950 |
+
cursor: pointer;
|
| 1951 |
+
fill: ${options.taskTextClickableColor} !important;
|
| 1952 |
+
font-weight: bold;
|
| 1953 |
+
}
|
| 1954 |
+
|
| 1955 |
+
.taskTextOutsideRight.clickable {
|
| 1956 |
+
cursor: pointer;
|
| 1957 |
+
fill: ${options.taskTextClickableColor} !important;
|
| 1958 |
+
font-weight: bold;
|
| 1959 |
+
}
|
| 1960 |
+
|
| 1961 |
+
|
| 1962 |
+
/* Specific task settings for the sections*/
|
| 1963 |
+
|
| 1964 |
+
.taskText0,
|
| 1965 |
+
.taskText1,
|
| 1966 |
+
.taskText2,
|
| 1967 |
+
.taskText3 {
|
| 1968 |
+
fill: ${options.taskTextColor};
|
| 1969 |
+
}
|
| 1970 |
+
|
| 1971 |
+
.task0,
|
| 1972 |
+
.task1,
|
| 1973 |
+
.task2,
|
| 1974 |
+
.task3 {
|
| 1975 |
+
fill: ${options.taskBkgColor};
|
| 1976 |
+
stroke: ${options.taskBorderColor};
|
| 1977 |
+
}
|
| 1978 |
+
|
| 1979 |
+
.taskTextOutside0,
|
| 1980 |
+
.taskTextOutside2
|
| 1981 |
+
{
|
| 1982 |
+
fill: ${options.taskTextOutsideColor};
|
| 1983 |
+
}
|
| 1984 |
+
|
| 1985 |
+
.taskTextOutside1,
|
| 1986 |
+
.taskTextOutside3 {
|
| 1987 |
+
fill: ${options.taskTextOutsideColor};
|
| 1988 |
+
}
|
| 1989 |
+
|
| 1990 |
+
|
| 1991 |
+
/* Active task */
|
| 1992 |
+
|
| 1993 |
+
.active0,
|
| 1994 |
+
.active1,
|
| 1995 |
+
.active2,
|
| 1996 |
+
.active3 {
|
| 1997 |
+
fill: ${options.activeTaskBkgColor};
|
| 1998 |
+
stroke: ${options.activeTaskBorderColor};
|
| 1999 |
+
}
|
| 2000 |
+
|
| 2001 |
+
.activeText0,
|
| 2002 |
+
.activeText1,
|
| 2003 |
+
.activeText2,
|
| 2004 |
+
.activeText3 {
|
| 2005 |
+
fill: ${options.taskTextDarkColor} !important;
|
| 2006 |
+
}
|
| 2007 |
+
|
| 2008 |
+
|
| 2009 |
+
/* Completed task */
|
| 2010 |
+
|
| 2011 |
+
.done0,
|
| 2012 |
+
.done1,
|
| 2013 |
+
.done2,
|
| 2014 |
+
.done3 {
|
| 2015 |
+
stroke: ${options.doneTaskBorderColor};
|
| 2016 |
+
fill: ${options.doneTaskBkgColor};
|
| 2017 |
+
stroke-width: 2;
|
| 2018 |
+
}
|
| 2019 |
+
|
| 2020 |
+
.doneText0,
|
| 2021 |
+
.doneText1,
|
| 2022 |
+
.doneText2,
|
| 2023 |
+
.doneText3 {
|
| 2024 |
+
fill: ${options.taskTextDarkColor} !important;
|
| 2025 |
+
}
|
| 2026 |
+
|
| 2027 |
+
|
| 2028 |
+
/* Tasks on the critical line */
|
| 2029 |
+
|
| 2030 |
+
.crit0,
|
| 2031 |
+
.crit1,
|
| 2032 |
+
.crit2,
|
| 2033 |
+
.crit3 {
|
| 2034 |
+
stroke: ${options.critBorderColor};
|
| 2035 |
+
fill: ${options.critBkgColor};
|
| 2036 |
+
stroke-width: 2;
|
| 2037 |
+
}
|
| 2038 |
+
|
| 2039 |
+
.activeCrit0,
|
| 2040 |
+
.activeCrit1,
|
| 2041 |
+
.activeCrit2,
|
| 2042 |
+
.activeCrit3 {
|
| 2043 |
+
stroke: ${options.critBorderColor};
|
| 2044 |
+
fill: ${options.activeTaskBkgColor};
|
| 2045 |
+
stroke-width: 2;
|
| 2046 |
+
}
|
| 2047 |
+
|
| 2048 |
+
.doneCrit0,
|
| 2049 |
+
.doneCrit1,
|
| 2050 |
+
.doneCrit2,
|
| 2051 |
+
.doneCrit3 {
|
| 2052 |
+
stroke: ${options.critBorderColor};
|
| 2053 |
+
fill: ${options.doneTaskBkgColor};
|
| 2054 |
+
stroke-width: 2;
|
| 2055 |
+
cursor: pointer;
|
| 2056 |
+
shape-rendering: crispEdges;
|
| 2057 |
+
}
|
| 2058 |
+
|
| 2059 |
+
.milestone {
|
| 2060 |
+
transform: rotate(45deg) scale(0.8,0.8);
|
| 2061 |
+
}
|
| 2062 |
+
|
| 2063 |
+
.milestoneText {
|
| 2064 |
+
font-style: italic;
|
| 2065 |
+
}
|
| 2066 |
+
.doneCritText0,
|
| 2067 |
+
.doneCritText1,
|
| 2068 |
+
.doneCritText2,
|
| 2069 |
+
.doneCritText3 {
|
| 2070 |
+
fill: ${options.taskTextDarkColor} !important;
|
| 2071 |
+
}
|
| 2072 |
+
|
| 2073 |
+
.activeCritText0,
|
| 2074 |
+
.activeCritText1,
|
| 2075 |
+
.activeCritText2,
|
| 2076 |
+
.activeCritText3 {
|
| 2077 |
+
fill: ${options.taskTextDarkColor} !important;
|
| 2078 |
+
}
|
| 2079 |
+
|
| 2080 |
+
.titleText {
|
| 2081 |
+
text-anchor: middle;
|
| 2082 |
+
font-size: 18px;
|
| 2083 |
+
fill: ${options.titleColor || options.textColor};
|
| 2084 |
+
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
| 2085 |
+
}
|
| 2086 |
+
`;
|
| 2087 |
+
const ganttStyles = getStyles;
|
| 2088 |
+
const diagram = {
|
| 2089 |
+
parser: ganttParser,
|
| 2090 |
+
db: ganttDb,
|
| 2091 |
+
renderer: ganttRenderer,
|
| 2092 |
+
styles: ganttStyles
|
| 2093 |
+
};
|
| 2094 |
+
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[35],{
|
| 3 |
+
|
| 4 |
+
/***/ 50035:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
// ESM COMPAT FLAG
|
| 8 |
+
__webpack_require__.r(__webpack_exports__);
|
| 9 |
+
|
| 10 |
+
// EXPORTS
|
| 11 |
+
__webpack_require__.d(__webpack_exports__, {
|
| 12 |
+
YBaseCell: () => (/* reexport */ YBaseCell),
|
| 13 |
+
YCodeCell: () => (/* reexport */ YCodeCell),
|
| 14 |
+
YDocument: () => (/* reexport */ YDocument),
|
| 15 |
+
YFile: () => (/* reexport */ YFile),
|
| 16 |
+
YMarkdownCell: () => (/* reexport */ YMarkdownCell),
|
| 17 |
+
YNotebook: () => (/* reexport */ YNotebook),
|
| 18 |
+
YRawCell: () => (/* reexport */ YRawCell),
|
| 19 |
+
convertYMapEventToMapChange: () => (/* reexport */ convertYMapEventToMapChange),
|
| 20 |
+
createMutex: () => (/* reexport */ createMutex),
|
| 21 |
+
createStandaloneCell: () => (/* reexport */ createStandaloneCell)
|
| 22 |
+
});
|
| 23 |
+
|
| 24 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/ydoc/lib/utils.js
|
| 25 |
+
/* -----------------------------------------------------------------------------
|
| 26 |
+
| Copyright (c) Jupyter Development Team.
|
| 27 |
+
| Distributed under the terms of the Modified BSD License.
|
| 28 |
+
|----------------------------------------------------------------------------*/
|
| 29 |
+
function convertYMapEventToMapChange(event) {
|
| 30 |
+
let changes = new Map();
|
| 31 |
+
event.changes.keys.forEach((event, key) => {
|
| 32 |
+
changes.set(key, {
|
| 33 |
+
action: event.action,
|
| 34 |
+
oldValue: event.oldValue,
|
| 35 |
+
newValue: this.ymeta.get(key)
|
| 36 |
+
});
|
| 37 |
+
});
|
| 38 |
+
return changes;
|
| 39 |
+
}
|
| 40 |
+
/**
|
| 41 |
+
* Creates a mutual exclude function with the following property:
|
| 42 |
+
*
|
| 43 |
+
* ```js
|
| 44 |
+
* const mutex = createMutex()
|
| 45 |
+
* mutex(() => {
|
| 46 |
+
* // This function is immediately executed
|
| 47 |
+
* mutex(() => {
|
| 48 |
+
* // This function is not executed, as the mutex is already active.
|
| 49 |
+
* })
|
| 50 |
+
* })
|
| 51 |
+
* ```
|
| 52 |
+
*/
|
| 53 |
+
const createMutex = () => {
|
| 54 |
+
let token = true;
|
| 55 |
+
return (f) => {
|
| 56 |
+
if (token) {
|
| 57 |
+
token = false;
|
| 58 |
+
try {
|
| 59 |
+
f();
|
| 60 |
+
}
|
| 61 |
+
finally {
|
| 62 |
+
token = true;
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
};
|
| 66 |
+
};
|
| 67 |
+
//# sourceMappingURL=utils.js.map
|
| 68 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/coreutils@~2.2.0 (singleton) (fallback: ../node_modules/@lumino/coreutils/dist/index.js)
|
| 69 |
+
var index_js_ = __webpack_require__(21961);
|
| 70 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/signaling@~2.1.3 (singleton) (fallback: ../node_modules/@lumino/signaling/dist/index.es6.js)
|
| 71 |
+
var index_es6_js_ = __webpack_require__(2159);
|
| 72 |
+
// EXTERNAL MODULE: ../node_modules/lib0/time.js
|
| 73 |
+
var lib0_time = __webpack_require__(2431);
|
| 74 |
+
// EXTERNAL MODULE: ../node_modules/lib0/math.js
|
| 75 |
+
var math = __webpack_require__(11182);
|
| 76 |
+
// EXTERNAL MODULE: ../node_modules/lib0/observable.js
|
| 77 |
+
var observable = __webpack_require__(12330);
|
| 78 |
+
// EXTERNAL MODULE: ../node_modules/lib0/function.js
|
| 79 |
+
var lib0_function = __webpack_require__(38828);
|
| 80 |
+
// EXTERNAL MODULE: consume shared module (default) yjs@~13.6.8 (singleton) (fallback: ../node_modules/yjs/dist/yjs.mjs)
|
| 81 |
+
var yjs_mjs_ = __webpack_require__(17843);
|
| 82 |
+
;// CONCATENATED MODULE: ../node_modules/y-protocols/awareness.js
|
| 83 |
+
/**
|
| 84 |
+
* @module awareness-protocol
|
| 85 |
+
*/
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
// eslint-disable-line
|
| 94 |
+
|
| 95 |
+
const outdatedTimeout = 30000
|
| 96 |
+
|
| 97 |
+
/**
|
| 98 |
+
* @typedef {Object} MetaClientState
|
| 99 |
+
* @property {number} MetaClientState.clock
|
| 100 |
+
* @property {number} MetaClientState.lastUpdated unix timestamp
|
| 101 |
+
*/
|
| 102 |
+
|
| 103 |
+
/**
|
| 104 |
+
* The Awareness class implements a simple shared state protocol that can be used for non-persistent data like awareness information
|
| 105 |
+
* (cursor, username, status, ..). Each client can update its own local state and listen to state changes of
|
| 106 |
+
* remote clients. Every client may set a state of a remote peer to `null` to mark the client as offline.
|
| 107 |
+
*
|
| 108 |
+
* Each client is identified by a unique client id (something we borrow from `doc.clientID`). A client can override
|
| 109 |
+
* its own state by propagating a message with an increasing timestamp (`clock`). If such a message is received, it is
|
| 110 |
+
* applied if the known state of that client is older than the new state (`clock < newClock`). If a client thinks that
|
| 111 |
+
* a remote client is offline, it may propagate a message with
|
| 112 |
+
* `{ clock: currentClientClock, state: null, client: remoteClient }`. If such a
|
| 113 |
+
* message is received, and the known clock of that client equals the received clock, it will override the state with `null`.
|
| 114 |
+
*
|
| 115 |
+
* Before a client disconnects, it should propagate a `null` state with an updated clock.
|
| 116 |
+
*
|
| 117 |
+
* Awareness states must be updated every 30 seconds. Otherwise the Awareness instance will delete the client state.
|
| 118 |
+
*
|
| 119 |
+
* @extends {Observable<string>}
|
| 120 |
+
*/
|
| 121 |
+
class Awareness extends observable/* Observable */.y {
|
| 122 |
+
/**
|
| 123 |
+
* @param {Y.Doc} doc
|
| 124 |
+
*/
|
| 125 |
+
constructor (doc) {
|
| 126 |
+
super()
|
| 127 |
+
this.doc = doc
|
| 128 |
+
/**
|
| 129 |
+
* @type {number}
|
| 130 |
+
*/
|
| 131 |
+
this.clientID = doc.clientID
|
| 132 |
+
/**
|
| 133 |
+
* Maps from client id to client state
|
| 134 |
+
* @type {Map<number, Object<string, any>>}
|
| 135 |
+
*/
|
| 136 |
+
this.states = new Map()
|
| 137 |
+
/**
|
| 138 |
+
* @type {Map<number, MetaClientState>}
|
| 139 |
+
*/
|
| 140 |
+
this.meta = new Map()
|
| 141 |
+
this._checkInterval = /** @type {any} */ (setInterval(() => {
|
| 142 |
+
const now = lib0_time/* getUnixTime */.ZG()
|
| 143 |
+
if (this.getLocalState() !== null && (outdatedTimeout / 2 <= now - /** @type {{lastUpdated:number}} */ (this.meta.get(this.clientID)).lastUpdated)) {
|
| 144 |
+
// renew local clock
|
| 145 |
+
this.setLocalState(this.getLocalState())
|
| 146 |
+
}
|
| 147 |
+
/**
|
| 148 |
+
* @type {Array<number>}
|
| 149 |
+
*/
|
| 150 |
+
const remove = []
|
| 151 |
+
this.meta.forEach((meta, clientid) => {
|
| 152 |
+
if (clientid !== this.clientID && outdatedTimeout <= now - meta.lastUpdated && this.states.has(clientid)) {
|
| 153 |
+
remove.push(clientid)
|
| 154 |
+
}
|
| 155 |
+
})
|
| 156 |
+
if (remove.length > 0) {
|
| 157 |
+
removeAwarenessStates(this, remove, 'timeout')
|
| 158 |
+
}
|
| 159 |
+
}, math/* floor */.GW(outdatedTimeout / 10)))
|
| 160 |
+
doc.on('destroy', () => {
|
| 161 |
+
this.destroy()
|
| 162 |
+
})
|
| 163 |
+
this.setLocalState({})
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
destroy () {
|
| 167 |
+
this.emit('destroy', [this])
|
| 168 |
+
this.setLocalState(null)
|
| 169 |
+
super.destroy()
|
| 170 |
+
clearInterval(this._checkInterval)
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
/**
|
| 174 |
+
* @return {Object<string,any>|null}
|
| 175 |
+
*/
|
| 176 |
+
getLocalState () {
|
| 177 |
+
return this.states.get(this.clientID) || null
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
/**
|
| 181 |
+
* @param {Object<string,any>|null} state
|
| 182 |
+
*/
|
| 183 |
+
setLocalState (state) {
|
| 184 |
+
const clientID = this.clientID
|
| 185 |
+
const currLocalMeta = this.meta.get(clientID)
|
| 186 |
+
const clock = currLocalMeta === undefined ? 0 : currLocalMeta.clock + 1
|
| 187 |
+
const prevState = this.states.get(clientID)
|
| 188 |
+
if (state === null) {
|
| 189 |
+
this.states.delete(clientID)
|
| 190 |
+
} else {
|
| 191 |
+
this.states.set(clientID, state)
|
| 192 |
+
}
|
| 193 |
+
this.meta.set(clientID, {
|
| 194 |
+
clock,
|
| 195 |
+
lastUpdated: lib0_time/* getUnixTime */.ZG()
|
| 196 |
+
})
|
| 197 |
+
const added = []
|
| 198 |
+
const updated = []
|
| 199 |
+
const filteredUpdated = []
|
| 200 |
+
const removed = []
|
| 201 |
+
if (state === null) {
|
| 202 |
+
removed.push(clientID)
|
| 203 |
+
} else if (prevState == null) {
|
| 204 |
+
if (state != null) {
|
| 205 |
+
added.push(clientID)
|
| 206 |
+
}
|
| 207 |
+
} else {
|
| 208 |
+
updated.push(clientID)
|
| 209 |
+
if (!lib0_function/* equalityDeep */.Hi(prevState, state)) {
|
| 210 |
+
filteredUpdated.push(clientID)
|
| 211 |
+
}
|
| 212 |
+
}
|
| 213 |
+
if (added.length > 0 || filteredUpdated.length > 0 || removed.length > 0) {
|
| 214 |
+
this.emit('change', [{ added, updated: filteredUpdated, removed }, 'local'])
|
| 215 |
+
}
|
| 216 |
+
this.emit('update', [{ added, updated, removed }, 'local'])
|
| 217 |
+
}
|
| 218 |
+
|
| 219 |
+
/**
|
| 220 |
+
* @param {string} field
|
| 221 |
+
* @param {any} value
|
| 222 |
+
*/
|
| 223 |
+
setLocalStateField (field, value) {
|
| 224 |
+
const state = this.getLocalState()
|
| 225 |
+
if (state !== null) {
|
| 226 |
+
this.setLocalState({
|
| 227 |
+
...state,
|
| 228 |
+
[field]: value
|
| 229 |
+
})
|
| 230 |
+
}
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
/**
|
| 234 |
+
* @return {Map<number,Object<string,any>>}
|
| 235 |
+
*/
|
| 236 |
+
getStates () {
|
| 237 |
+
return this.states
|
| 238 |
+
}
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
/**
|
| 242 |
+
* Mark (remote) clients as inactive and remove them from the list of active peers.
|
| 243 |
+
* This change will be propagated to remote clients.
|
| 244 |
+
*
|
| 245 |
+
* @param {Awareness} awareness
|
| 246 |
+
* @param {Array<number>} clients
|
| 247 |
+
* @param {any} origin
|
| 248 |
+
*/
|
| 249 |
+
const removeAwarenessStates = (awareness, clients, origin) => {
|
| 250 |
+
const removed = []
|
| 251 |
+
for (let i = 0; i < clients.length; i++) {
|
| 252 |
+
const clientID = clients[i]
|
| 253 |
+
if (awareness.states.has(clientID)) {
|
| 254 |
+
awareness.states.delete(clientID)
|
| 255 |
+
if (clientID === awareness.clientID) {
|
| 256 |
+
const curMeta = /** @type {MetaClientState} */ (awareness.meta.get(clientID))
|
| 257 |
+
awareness.meta.set(clientID, {
|
| 258 |
+
clock: curMeta.clock + 1,
|
| 259 |
+
lastUpdated: lib0_time/* getUnixTime */.ZG()
|
| 260 |
+
})
|
| 261 |
+
}
|
| 262 |
+
removed.push(clientID)
|
| 263 |
+
}
|
| 264 |
+
}
|
| 265 |
+
if (removed.length > 0) {
|
| 266 |
+
awareness.emit('change', [{ added: [], updated: [], removed }, origin])
|
| 267 |
+
awareness.emit('update', [{ added: [], updated: [], removed }, origin])
|
| 268 |
+
}
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
/**
|
| 272 |
+
* @param {Awareness} awareness
|
| 273 |
+
* @param {Array<number>} clients
|
| 274 |
+
* @return {Uint8Array}
|
| 275 |
+
*/
|
| 276 |
+
const encodeAwarenessUpdate = (awareness, clients, states = awareness.states) => {
|
| 277 |
+
const len = clients.length
|
| 278 |
+
const encoder = encoding.createEncoder()
|
| 279 |
+
encoding.writeVarUint(encoder, len)
|
| 280 |
+
for (let i = 0; i < len; i++) {
|
| 281 |
+
const clientID = clients[i]
|
| 282 |
+
const state = states.get(clientID) || null
|
| 283 |
+
const clock = /** @type {MetaClientState} */ (awareness.meta.get(clientID)).clock
|
| 284 |
+
encoding.writeVarUint(encoder, clientID)
|
| 285 |
+
encoding.writeVarUint(encoder, clock)
|
| 286 |
+
encoding.writeVarString(encoder, JSON.stringify(state))
|
| 287 |
+
}
|
| 288 |
+
return encoding.toUint8Array(encoder)
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
/**
|
| 292 |
+
* Modify the content of an awareness update before re-encoding it to an awareness update.
|
| 293 |
+
*
|
| 294 |
+
* This might be useful when you have a central server that wants to ensure that clients
|
| 295 |
+
* cant hijack somebody elses identity.
|
| 296 |
+
*
|
| 297 |
+
* @param {Uint8Array} update
|
| 298 |
+
* @param {function(any):any} modify
|
| 299 |
+
* @return {Uint8Array}
|
| 300 |
+
*/
|
| 301 |
+
const modifyAwarenessUpdate = (update, modify) => {
|
| 302 |
+
const decoder = decoding.createDecoder(update)
|
| 303 |
+
const encoder = encoding.createEncoder()
|
| 304 |
+
const len = decoding.readVarUint(decoder)
|
| 305 |
+
encoding.writeVarUint(encoder, len)
|
| 306 |
+
for (let i = 0; i < len; i++) {
|
| 307 |
+
const clientID = decoding.readVarUint(decoder)
|
| 308 |
+
const clock = decoding.readVarUint(decoder)
|
| 309 |
+
const state = JSON.parse(decoding.readVarString(decoder))
|
| 310 |
+
const modifiedState = modify(state)
|
| 311 |
+
encoding.writeVarUint(encoder, clientID)
|
| 312 |
+
encoding.writeVarUint(encoder, clock)
|
| 313 |
+
encoding.writeVarString(encoder, JSON.stringify(modifiedState))
|
| 314 |
+
}
|
| 315 |
+
return encoding.toUint8Array(encoder)
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
/**
|
| 319 |
+
* @param {Awareness} awareness
|
| 320 |
+
* @param {Uint8Array} update
|
| 321 |
+
* @param {any} origin This will be added to the emitted change event
|
| 322 |
+
*/
|
| 323 |
+
const applyAwarenessUpdate = (awareness, update, origin) => {
|
| 324 |
+
const decoder = decoding.createDecoder(update)
|
| 325 |
+
const timestamp = time.getUnixTime()
|
| 326 |
+
const added = []
|
| 327 |
+
const updated = []
|
| 328 |
+
const filteredUpdated = []
|
| 329 |
+
const removed = []
|
| 330 |
+
const len = decoding.readVarUint(decoder)
|
| 331 |
+
for (let i = 0; i < len; i++) {
|
| 332 |
+
const clientID = decoding.readVarUint(decoder)
|
| 333 |
+
let clock = decoding.readVarUint(decoder)
|
| 334 |
+
const state = JSON.parse(decoding.readVarString(decoder))
|
| 335 |
+
const clientMeta = awareness.meta.get(clientID)
|
| 336 |
+
const prevState = awareness.states.get(clientID)
|
| 337 |
+
const currClock = clientMeta === undefined ? 0 : clientMeta.clock
|
| 338 |
+
if (currClock < clock || (currClock === clock && state === null && awareness.states.has(clientID))) {
|
| 339 |
+
if (state === null) {
|
| 340 |
+
// never let a remote client remove this local state
|
| 341 |
+
if (clientID === awareness.clientID && awareness.getLocalState() != null) {
|
| 342 |
+
// remote client removed the local state. Do not remote state. Broadcast a message indicating
|
| 343 |
+
// that this client still exists by increasing the clock
|
| 344 |
+
clock++
|
| 345 |
+
} else {
|
| 346 |
+
awareness.states.delete(clientID)
|
| 347 |
+
}
|
| 348 |
+
} else {
|
| 349 |
+
awareness.states.set(clientID, state)
|
| 350 |
+
}
|
| 351 |
+
awareness.meta.set(clientID, {
|
| 352 |
+
clock,
|
| 353 |
+
lastUpdated: timestamp
|
| 354 |
+
})
|
| 355 |
+
if (clientMeta === undefined && state !== null) {
|
| 356 |
+
added.push(clientID)
|
| 357 |
+
} else if (clientMeta !== undefined && state === null) {
|
| 358 |
+
removed.push(clientID)
|
| 359 |
+
} else if (state !== null) {
|
| 360 |
+
if (!f.equalityDeep(state, prevState)) {
|
| 361 |
+
filteredUpdated.push(clientID)
|
| 362 |
+
}
|
| 363 |
+
updated.push(clientID)
|
| 364 |
+
}
|
| 365 |
+
}
|
| 366 |
+
}
|
| 367 |
+
if (added.length > 0 || filteredUpdated.length > 0 || removed.length > 0) {
|
| 368 |
+
awareness.emit('change', [{
|
| 369 |
+
added, updated: filteredUpdated, removed
|
| 370 |
+
}, origin])
|
| 371 |
+
}
|
| 372 |
+
if (added.length > 0 || updated.length > 0 || removed.length > 0) {
|
| 373 |
+
awareness.emit('update', [{
|
| 374 |
+
added, updated, removed
|
| 375 |
+
}, origin])
|
| 376 |
+
}
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/ydoc/lib/ydocument.js
|
| 380 |
+
/* -----------------------------------------------------------------------------
|
| 381 |
+
| Copyright (c) Jupyter Development Team.
|
| 382 |
+
| Distributed under the terms of the Modified BSD License.
|
| 383 |
+
|----------------------------------------------------------------------------*/
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
/**
|
| 389 |
+
* Generic shareable document.
|
| 390 |
+
*/
|
| 391 |
+
class YDocument {
|
| 392 |
+
constructor(options) {
|
| 393 |
+
var _a;
|
| 394 |
+
/**
|
| 395 |
+
* Handle a change to the ystate.
|
| 396 |
+
*/
|
| 397 |
+
this.onStateChanged = (event) => {
|
| 398 |
+
const stateChange = new Array();
|
| 399 |
+
event.keysChanged.forEach(key => {
|
| 400 |
+
const change = event.changes.keys.get(key);
|
| 401 |
+
if (change) {
|
| 402 |
+
stateChange.push({
|
| 403 |
+
name: key,
|
| 404 |
+
oldValue: change.oldValue,
|
| 405 |
+
newValue: this.ystate.get(key)
|
| 406 |
+
});
|
| 407 |
+
}
|
| 408 |
+
});
|
| 409 |
+
this._changed.emit({ stateChange });
|
| 410 |
+
};
|
| 411 |
+
this._changed = new index_es6_js_.Signal(this);
|
| 412 |
+
this._isDisposed = false;
|
| 413 |
+
this._disposed = new index_es6_js_.Signal(this);
|
| 414 |
+
this._ydoc = (_a = options === null || options === void 0 ? void 0 : options.ydoc) !== null && _a !== void 0 ? _a : new yjs_mjs_.Doc();
|
| 415 |
+
this._ystate = this._ydoc.getMap('state');
|
| 416 |
+
this._undoManager = new yjs_mjs_.UndoManager([], {
|
| 417 |
+
trackedOrigins: new Set([this]),
|
| 418 |
+
doc: this._ydoc
|
| 419 |
+
});
|
| 420 |
+
this._awareness = new Awareness(this._ydoc);
|
| 421 |
+
this._ystate.observe(this.onStateChanged);
|
| 422 |
+
}
|
| 423 |
+
/**
|
| 424 |
+
* YJS document.
|
| 425 |
+
*/
|
| 426 |
+
get ydoc() {
|
| 427 |
+
return this._ydoc;
|
| 428 |
+
}
|
| 429 |
+
/**
|
| 430 |
+
* Shared state
|
| 431 |
+
*/
|
| 432 |
+
get ystate() {
|
| 433 |
+
return this._ystate;
|
| 434 |
+
}
|
| 435 |
+
/**
|
| 436 |
+
* YJS document undo manager
|
| 437 |
+
*/
|
| 438 |
+
get undoManager() {
|
| 439 |
+
return this._undoManager;
|
| 440 |
+
}
|
| 441 |
+
/**
|
| 442 |
+
* Shared awareness
|
| 443 |
+
*/
|
| 444 |
+
get awareness() {
|
| 445 |
+
return this._awareness;
|
| 446 |
+
}
|
| 447 |
+
/**
|
| 448 |
+
* The changed signal.
|
| 449 |
+
*/
|
| 450 |
+
get changed() {
|
| 451 |
+
return this._changed;
|
| 452 |
+
}
|
| 453 |
+
/**
|
| 454 |
+
* A signal emitted when the document is disposed.
|
| 455 |
+
*/
|
| 456 |
+
get disposed() {
|
| 457 |
+
return this._disposed;
|
| 458 |
+
}
|
| 459 |
+
/**
|
| 460 |
+
* Whether the document is disposed or not.
|
| 461 |
+
*/
|
| 462 |
+
get isDisposed() {
|
| 463 |
+
return this._isDisposed;
|
| 464 |
+
}
|
| 465 |
+
/**
|
| 466 |
+
* Document state
|
| 467 |
+
*/
|
| 468 |
+
get state() {
|
| 469 |
+
return index_js_.JSONExt.deepCopy(this.ystate.toJSON());
|
| 470 |
+
}
|
| 471 |
+
/**
|
| 472 |
+
* Whether the object can undo changes.
|
| 473 |
+
*/
|
| 474 |
+
canUndo() {
|
| 475 |
+
return this.undoManager.undoStack.length > 0;
|
| 476 |
+
}
|
| 477 |
+
/**
|
| 478 |
+
* Whether the object can redo changes.
|
| 479 |
+
*/
|
| 480 |
+
canRedo() {
|
| 481 |
+
return this.undoManager.redoStack.length > 0;
|
| 482 |
+
}
|
| 483 |
+
/**
|
| 484 |
+
* Dispose of the resources.
|
| 485 |
+
*/
|
| 486 |
+
dispose() {
|
| 487 |
+
if (this._isDisposed) {
|
| 488 |
+
return;
|
| 489 |
+
}
|
| 490 |
+
this._isDisposed = true;
|
| 491 |
+
this.ystate.unobserve(this.onStateChanged);
|
| 492 |
+
this.awareness.destroy();
|
| 493 |
+
this.undoManager.destroy();
|
| 494 |
+
this.ydoc.destroy();
|
| 495 |
+
this._disposed.emit();
|
| 496 |
+
index_es6_js_.Signal.clearData(this);
|
| 497 |
+
}
|
| 498 |
+
/**
|
| 499 |
+
* Get the value for a state attribute
|
| 500 |
+
*
|
| 501 |
+
* @param key Key to get
|
| 502 |
+
*/
|
| 503 |
+
getState(key) {
|
| 504 |
+
const value = this.ystate.get(key);
|
| 505 |
+
return typeof value === 'undefined'
|
| 506 |
+
? value
|
| 507 |
+
: index_js_.JSONExt.deepCopy(value);
|
| 508 |
+
}
|
| 509 |
+
/**
|
| 510 |
+
* Set the value of a state attribute
|
| 511 |
+
*
|
| 512 |
+
* @param key Key to set
|
| 513 |
+
* @param value New attribute value
|
| 514 |
+
*/
|
| 515 |
+
setState(key, value) {
|
| 516 |
+
if (!index_js_.JSONExt.deepEqual(this.ystate.get(key), value)) {
|
| 517 |
+
this.ystate.set(key, value);
|
| 518 |
+
}
|
| 519 |
+
}
|
| 520 |
+
/**
|
| 521 |
+
* Get the document source
|
| 522 |
+
*
|
| 523 |
+
* @returns The source
|
| 524 |
+
*/
|
| 525 |
+
get source() {
|
| 526 |
+
return this.getSource();
|
| 527 |
+
}
|
| 528 |
+
/**
|
| 529 |
+
* Set the document source
|
| 530 |
+
*
|
| 531 |
+
* @param value The source to set
|
| 532 |
+
*/
|
| 533 |
+
set source(value) {
|
| 534 |
+
this.setSource(value);
|
| 535 |
+
}
|
| 536 |
+
/**
|
| 537 |
+
* Undo an operation.
|
| 538 |
+
*/
|
| 539 |
+
undo() {
|
| 540 |
+
this.undoManager.undo();
|
| 541 |
+
}
|
| 542 |
+
/**
|
| 543 |
+
* Redo an operation.
|
| 544 |
+
*/
|
| 545 |
+
redo() {
|
| 546 |
+
this.undoManager.redo();
|
| 547 |
+
}
|
| 548 |
+
/**
|
| 549 |
+
* Clear the change stack.
|
| 550 |
+
*/
|
| 551 |
+
clearUndoHistory() {
|
| 552 |
+
this.undoManager.clear();
|
| 553 |
+
}
|
| 554 |
+
/**
|
| 555 |
+
* Perform a transaction. While the function f is called, all changes to the shared
|
| 556 |
+
* document are bundled into a single event.
|
| 557 |
+
*/
|
| 558 |
+
transact(f, undoable = true, origin = null) {
|
| 559 |
+
this.ydoc.transact(f, undoable ? this : origin);
|
| 560 |
+
}
|
| 561 |
+
}
|
| 562 |
+
//# sourceMappingURL=ydocument.js.map
|
| 563 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/ydoc/lib/yfile.js
|
| 564 |
+
/* -----------------------------------------------------------------------------
|
| 565 |
+
| Copyright (c) Jupyter Development Team.
|
| 566 |
+
| Distributed under the terms of the Modified BSD License.
|
| 567 |
+
|----------------------------------------------------------------------------*/
|
| 568 |
+
|
| 569 |
+
/**
|
| 570 |
+
* Shareable text file.
|
| 571 |
+
*/
|
| 572 |
+
class YFile extends YDocument {
|
| 573 |
+
/**
|
| 574 |
+
* Create a new file
|
| 575 |
+
*
|
| 576 |
+
* #### Notes
|
| 577 |
+
* The document is empty and must be populated
|
| 578 |
+
*/
|
| 579 |
+
constructor() {
|
| 580 |
+
super();
|
| 581 |
+
/**
|
| 582 |
+
* Document version
|
| 583 |
+
*/
|
| 584 |
+
this.version = '1.0.0';
|
| 585 |
+
/**
|
| 586 |
+
* YJS file text.
|
| 587 |
+
*/
|
| 588 |
+
this.ysource = this.ydoc.getText('source');
|
| 589 |
+
/**
|
| 590 |
+
* Handle a change to the ymodel.
|
| 591 |
+
*/
|
| 592 |
+
this._modelObserver = (event) => {
|
| 593 |
+
this._changed.emit({ sourceChange: event.changes.delta });
|
| 594 |
+
};
|
| 595 |
+
this.undoManager.addToScope(this.ysource);
|
| 596 |
+
this.ysource.observe(this._modelObserver);
|
| 597 |
+
}
|
| 598 |
+
/**
|
| 599 |
+
* Creates a standalone YFile
|
| 600 |
+
*/
|
| 601 |
+
static create() {
|
| 602 |
+
return new YFile();
|
| 603 |
+
}
|
| 604 |
+
/**
|
| 605 |
+
* File text
|
| 606 |
+
*/
|
| 607 |
+
get source() {
|
| 608 |
+
return this.getSource();
|
| 609 |
+
}
|
| 610 |
+
set source(v) {
|
| 611 |
+
this.setSource(v);
|
| 612 |
+
}
|
| 613 |
+
/**
|
| 614 |
+
* Dispose of the resources.
|
| 615 |
+
*/
|
| 616 |
+
dispose() {
|
| 617 |
+
if (this.isDisposed) {
|
| 618 |
+
return;
|
| 619 |
+
}
|
| 620 |
+
this.ysource.unobserve(this._modelObserver);
|
| 621 |
+
super.dispose();
|
| 622 |
+
}
|
| 623 |
+
/**
|
| 624 |
+
* Get the file text.
|
| 625 |
+
*
|
| 626 |
+
* @returns File text.
|
| 627 |
+
*/
|
| 628 |
+
getSource() {
|
| 629 |
+
return this.ysource.toString();
|
| 630 |
+
}
|
| 631 |
+
/**
|
| 632 |
+
* Set the file text.
|
| 633 |
+
*
|
| 634 |
+
* @param value New text
|
| 635 |
+
*/
|
| 636 |
+
setSource(value) {
|
| 637 |
+
this.transact(() => {
|
| 638 |
+
const ytext = this.ysource;
|
| 639 |
+
ytext.delete(0, ytext.length);
|
| 640 |
+
ytext.insert(0, value);
|
| 641 |
+
});
|
| 642 |
+
}
|
| 643 |
+
/**
|
| 644 |
+
* Replace content from `start' to `end` with `value`.
|
| 645 |
+
*
|
| 646 |
+
* @param start: The start index of the range to replace (inclusive).
|
| 647 |
+
* @param end: The end index of the range to replace (exclusive).
|
| 648 |
+
* @param value: New source (optional).
|
| 649 |
+
*/
|
| 650 |
+
updateSource(start, end, value = '') {
|
| 651 |
+
this.transact(() => {
|
| 652 |
+
const ysource = this.ysource;
|
| 653 |
+
// insert and then delete.
|
| 654 |
+
// This ensures that the cursor position is adjusted after the replaced content.
|
| 655 |
+
ysource.insert(start, value);
|
| 656 |
+
ysource.delete(start + value.length, end - start);
|
| 657 |
+
});
|
| 658 |
+
}
|
| 659 |
+
}
|
| 660 |
+
//# sourceMappingURL=yfile.js.map
|
| 661 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/ydoc/lib/ycell.js
|
| 662 |
+
/* -----------------------------------------------------------------------------
|
| 663 |
+
| Copyright (c) Jupyter Development Team.
|
| 664 |
+
| Distributed under the terms of the Modified BSD License.
|
| 665 |
+
|----------------------------------------------------------------------------*/
|
| 666 |
+
|
| 667 |
+
|
| 668 |
+
|
| 669 |
+
|
| 670 |
+
/**
|
| 671 |
+
* Create a new shared cell model given the YJS shared type.
|
| 672 |
+
*/
|
| 673 |
+
const createCellModelFromSharedType = (type, options = {}) => {
|
| 674 |
+
switch (type.get('cell_type')) {
|
| 675 |
+
case 'code':
|
| 676 |
+
return new YCodeCell(type, type.get('source'), type.get('outputs'), options);
|
| 677 |
+
case 'markdown':
|
| 678 |
+
return new YMarkdownCell(type, type.get('source'), options);
|
| 679 |
+
case 'raw':
|
| 680 |
+
return new YRawCell(type, type.get('source'), options);
|
| 681 |
+
default:
|
| 682 |
+
throw new Error('Found unknown cell type');
|
| 683 |
+
}
|
| 684 |
+
};
|
| 685 |
+
/**
|
| 686 |
+
* Create a new cell that can be inserted in an existing shared model.
|
| 687 |
+
*
|
| 688 |
+
* If no notebook is specified the cell will be standalone.
|
| 689 |
+
*
|
| 690 |
+
* @param cell Cell JSON representation
|
| 691 |
+
* @param notebook Notebook to which the cell will be added
|
| 692 |
+
*/
|
| 693 |
+
const createCell = (cell, notebook) => {
|
| 694 |
+
var _a, _b;
|
| 695 |
+
const ymodel = new yjs_mjs_.Map();
|
| 696 |
+
const ysource = new yjs_mjs_.Text();
|
| 697 |
+
const ymetadata = new yjs_mjs_.Map();
|
| 698 |
+
ymodel.set('source', ysource);
|
| 699 |
+
ymodel.set('metadata', ymetadata);
|
| 700 |
+
ymodel.set('cell_type', cell.cell_type);
|
| 701 |
+
ymodel.set('id', (_a = cell.id) !== null && _a !== void 0 ? _a : index_js_.UUID.uuid4());
|
| 702 |
+
let ycell;
|
| 703 |
+
switch (cell.cell_type) {
|
| 704 |
+
case 'markdown': {
|
| 705 |
+
ycell = new YMarkdownCell(ymodel, ysource, { notebook }, ymetadata);
|
| 706 |
+
if (cell.attachments != null) {
|
| 707 |
+
ycell.setAttachments(cell.attachments);
|
| 708 |
+
}
|
| 709 |
+
break;
|
| 710 |
+
}
|
| 711 |
+
case 'code': {
|
| 712 |
+
const youtputs = new yjs_mjs_.Array();
|
| 713 |
+
ymodel.set('outputs', youtputs);
|
| 714 |
+
ycell = new YCodeCell(ymodel, ysource, youtputs, {
|
| 715 |
+
notebook
|
| 716 |
+
}, ymetadata);
|
| 717 |
+
const cCell = cell;
|
| 718 |
+
ycell.execution_count = (_b = cCell.execution_count) !== null && _b !== void 0 ? _b : null;
|
| 719 |
+
if (cCell.outputs) {
|
| 720 |
+
ycell.setOutputs(cCell.outputs);
|
| 721 |
+
}
|
| 722 |
+
break;
|
| 723 |
+
}
|
| 724 |
+
default: {
|
| 725 |
+
// raw
|
| 726 |
+
ycell = new YRawCell(ymodel, ysource, { notebook }, ymetadata);
|
| 727 |
+
if (cell.attachments) {
|
| 728 |
+
ycell.setAttachments(cell.attachments);
|
| 729 |
+
}
|
| 730 |
+
break;
|
| 731 |
+
}
|
| 732 |
+
}
|
| 733 |
+
if (cell.metadata != null) {
|
| 734 |
+
ycell.setMetadata(cell.metadata);
|
| 735 |
+
}
|
| 736 |
+
if (cell.source != null) {
|
| 737 |
+
ycell.setSource(typeof cell.source === 'string' ? cell.source : cell.source.join(''));
|
| 738 |
+
}
|
| 739 |
+
return ycell;
|
| 740 |
+
};
|
| 741 |
+
/**
|
| 742 |
+
* Create a new cell that cannot be inserted in an existing shared model.
|
| 743 |
+
*
|
| 744 |
+
* @param cell Cell JSON representation
|
| 745 |
+
*/
|
| 746 |
+
const createStandaloneCell = (cell) => createCell(cell);
|
| 747 |
+
class YBaseCell {
|
| 748 |
+
/**
|
| 749 |
+
* Create a new YCell that works standalone. It cannot be
|
| 750 |
+
* inserted into a YNotebook because the Yjs model is already
|
| 751 |
+
* attached to an anonymous Y.Doc instance.
|
| 752 |
+
*/
|
| 753 |
+
static create(id) {
|
| 754 |
+
return createCell({ id, cell_type: this.prototype.cell_type });
|
| 755 |
+
}
|
| 756 |
+
/**
|
| 757 |
+
* Base cell constructor
|
| 758 |
+
*
|
| 759 |
+
* ### Notes
|
| 760 |
+
* Don't use the constructor directly - prefer using ``YNotebook.insertCell``
|
| 761 |
+
*
|
| 762 |
+
* The ``ysource`` is needed because ``ymodel.get('source')`` will
|
| 763 |
+
* not return the real source if the model is not yet attached to
|
| 764 |
+
* a document. Requesting it explicitly allows to introspect a non-empty
|
| 765 |
+
* source before the cell is attached to the document.
|
| 766 |
+
*
|
| 767 |
+
* @param ymodel Cell map
|
| 768 |
+
* @param ysource Cell source
|
| 769 |
+
* @param options \{ notebook?: The notebook the cell is attached to \}
|
| 770 |
+
* @param ymetadata Cell metadata
|
| 771 |
+
*/
|
| 772 |
+
constructor(ymodel, ysource, options = {}, ymetadata) {
|
| 773 |
+
/**
|
| 774 |
+
* Handle a change to the ymodel.
|
| 775 |
+
*/
|
| 776 |
+
this._modelObserver = (events, transaction) => {
|
| 777 |
+
if (transaction.origin !== 'silent-change') {
|
| 778 |
+
this._changed.emit(this.getChanges(events));
|
| 779 |
+
}
|
| 780 |
+
};
|
| 781 |
+
this._metadataChanged = new index_es6_js_.Signal(this);
|
| 782 |
+
/**
|
| 783 |
+
* The notebook that this cell belongs to.
|
| 784 |
+
*/
|
| 785 |
+
this._notebook = null;
|
| 786 |
+
this._changed = new index_es6_js_.Signal(this);
|
| 787 |
+
this._disposed = new index_es6_js_.Signal(this);
|
| 788 |
+
this._isDisposed = false;
|
| 789 |
+
this._undoManager = null;
|
| 790 |
+
this.ymodel = ymodel;
|
| 791 |
+
this._ysource = ysource;
|
| 792 |
+
this._ymetadata = ymetadata !== null && ymetadata !== void 0 ? ymetadata : this.ymodel.get('metadata');
|
| 793 |
+
this._prevSourceLength = ysource ? ysource.length : 0;
|
| 794 |
+
this._notebook = null;
|
| 795 |
+
this._awareness = null;
|
| 796 |
+
this._undoManager = null;
|
| 797 |
+
if (options.notebook) {
|
| 798 |
+
this._notebook = options.notebook;
|
| 799 |
+
// We cannot create a undo manager with the cell not yet attached in the notebook
|
| 800 |
+
// so we defer that to the notebook insertCell method
|
| 801 |
+
}
|
| 802 |
+
else {
|
| 803 |
+
// Standalone cell
|
| 804 |
+
const doc = new yjs_mjs_.Doc();
|
| 805 |
+
doc.getArray().insert(0, [this.ymodel]);
|
| 806 |
+
this._awareness = new Awareness(doc);
|
| 807 |
+
this._undoManager = new yjs_mjs_.UndoManager([this.ymodel], {
|
| 808 |
+
trackedOrigins: new Set([this])
|
| 809 |
+
});
|
| 810 |
+
}
|
| 811 |
+
this.ymodel.observeDeep(this._modelObserver);
|
| 812 |
+
}
|
| 813 |
+
/**
|
| 814 |
+
* Cell notebook awareness or null if the cell is standalone.
|
| 815 |
+
*/
|
| 816 |
+
get awareness() {
|
| 817 |
+
var _a, _b, _c;
|
| 818 |
+
return (_c = (_a = this._awareness) !== null && _a !== void 0 ? _a : (_b = this.notebook) === null || _b === void 0 ? void 0 : _b.awareness) !== null && _c !== void 0 ? _c : null;
|
| 819 |
+
}
|
| 820 |
+
/**
|
| 821 |
+
* The type of the cell.
|
| 822 |
+
*/
|
| 823 |
+
get cell_type() {
|
| 824 |
+
throw new Error('A YBaseCell must not be constructed');
|
| 825 |
+
}
|
| 826 |
+
/**
|
| 827 |
+
* The changed signal.
|
| 828 |
+
*/
|
| 829 |
+
get changed() {
|
| 830 |
+
return this._changed;
|
| 831 |
+
}
|
| 832 |
+
/**
|
| 833 |
+
* Signal emitted when the cell is disposed.
|
| 834 |
+
*/
|
| 835 |
+
get disposed() {
|
| 836 |
+
return this._disposed;
|
| 837 |
+
}
|
| 838 |
+
/**
|
| 839 |
+
* Cell id
|
| 840 |
+
*/
|
| 841 |
+
get id() {
|
| 842 |
+
return this.getId();
|
| 843 |
+
}
|
| 844 |
+
/**
|
| 845 |
+
* Whether the model has been disposed or not.
|
| 846 |
+
*/
|
| 847 |
+
get isDisposed() {
|
| 848 |
+
return this._isDisposed;
|
| 849 |
+
}
|
| 850 |
+
/**
|
| 851 |
+
* Whether the cell is standalone or not.
|
| 852 |
+
*
|
| 853 |
+
* If the cell is standalone. It cannot be
|
| 854 |
+
* inserted into a YNotebook because the Yjs model is already
|
| 855 |
+
* attached to an anonymous Y.Doc instance.
|
| 856 |
+
*/
|
| 857 |
+
get isStandalone() {
|
| 858 |
+
return this._notebook !== null;
|
| 859 |
+
}
|
| 860 |
+
/**
|
| 861 |
+
* Cell metadata.
|
| 862 |
+
*
|
| 863 |
+
* #### Notes
|
| 864 |
+
* You should prefer to access and modify the specific key of interest.
|
| 865 |
+
*/
|
| 866 |
+
get metadata() {
|
| 867 |
+
return this.getMetadata();
|
| 868 |
+
}
|
| 869 |
+
set metadata(v) {
|
| 870 |
+
this.setMetadata(v);
|
| 871 |
+
}
|
| 872 |
+
/**
|
| 873 |
+
* Signal triggered when the cell metadata changes.
|
| 874 |
+
*/
|
| 875 |
+
get metadataChanged() {
|
| 876 |
+
return this._metadataChanged;
|
| 877 |
+
}
|
| 878 |
+
/**
|
| 879 |
+
* The notebook that this cell belongs to.
|
| 880 |
+
*/
|
| 881 |
+
get notebook() {
|
| 882 |
+
return this._notebook;
|
| 883 |
+
}
|
| 884 |
+
/**
|
| 885 |
+
* Cell input content.
|
| 886 |
+
*/
|
| 887 |
+
get source() {
|
| 888 |
+
return this.getSource();
|
| 889 |
+
}
|
| 890 |
+
set source(v) {
|
| 891 |
+
this.setSource(v);
|
| 892 |
+
}
|
| 893 |
+
/**
|
| 894 |
+
* The cell undo manager.
|
| 895 |
+
*/
|
| 896 |
+
get undoManager() {
|
| 897 |
+
var _a;
|
| 898 |
+
if (!this.notebook) {
|
| 899 |
+
return this._undoManager;
|
| 900 |
+
}
|
| 901 |
+
return ((_a = this.notebook) === null || _a === void 0 ? void 0 : _a.disableDocumentWideUndoRedo)
|
| 902 |
+
? this._undoManager
|
| 903 |
+
: this.notebook.undoManager;
|
| 904 |
+
}
|
| 905 |
+
/**
|
| 906 |
+
* Defer setting the undo manager as it requires the
|
| 907 |
+
* cell to be attached to the notebook Y document.
|
| 908 |
+
*/
|
| 909 |
+
setUndoManager() {
|
| 910 |
+
if (this._undoManager) {
|
| 911 |
+
throw new Error('The cell undo manager is already set.');
|
| 912 |
+
}
|
| 913 |
+
if (this._notebook && this._notebook.disableDocumentWideUndoRedo) {
|
| 914 |
+
this._undoManager = new yjs_mjs_.UndoManager([this.ymodel], {
|
| 915 |
+
trackedOrigins: new Set([this])
|
| 916 |
+
});
|
| 917 |
+
}
|
| 918 |
+
}
|
| 919 |
+
get ysource() {
|
| 920 |
+
return this._ysource;
|
| 921 |
+
}
|
| 922 |
+
/**
|
| 923 |
+
* Whether the object can undo changes.
|
| 924 |
+
*/
|
| 925 |
+
canUndo() {
|
| 926 |
+
return !!this.undoManager && this.undoManager.undoStack.length > 0;
|
| 927 |
+
}
|
| 928 |
+
/**
|
| 929 |
+
* Whether the object can redo changes.
|
| 930 |
+
*/
|
| 931 |
+
canRedo() {
|
| 932 |
+
return !!this.undoManager && this.undoManager.redoStack.length > 0;
|
| 933 |
+
}
|
| 934 |
+
/**
|
| 935 |
+
* Clear the change stack.
|
| 936 |
+
*/
|
| 937 |
+
clearUndoHistory() {
|
| 938 |
+
var _a;
|
| 939 |
+
(_a = this.undoManager) === null || _a === void 0 ? void 0 : _a.clear();
|
| 940 |
+
}
|
| 941 |
+
/**
|
| 942 |
+
* Undo an operation.
|
| 943 |
+
*/
|
| 944 |
+
undo() {
|
| 945 |
+
var _a;
|
| 946 |
+
(_a = this.undoManager) === null || _a === void 0 ? void 0 : _a.undo();
|
| 947 |
+
}
|
| 948 |
+
/**
|
| 949 |
+
* Redo an operation.
|
| 950 |
+
*/
|
| 951 |
+
redo() {
|
| 952 |
+
var _a;
|
| 953 |
+
(_a = this.undoManager) === null || _a === void 0 ? void 0 : _a.redo();
|
| 954 |
+
}
|
| 955 |
+
/**
|
| 956 |
+
* Dispose of the resources.
|
| 957 |
+
*/
|
| 958 |
+
dispose() {
|
| 959 |
+
var _a;
|
| 960 |
+
if (this._isDisposed)
|
| 961 |
+
return;
|
| 962 |
+
this._isDisposed = true;
|
| 963 |
+
this.ymodel.unobserveDeep(this._modelObserver);
|
| 964 |
+
if (this._awareness) {
|
| 965 |
+
// A new document is created for standalone cell.
|
| 966 |
+
const doc = this._awareness.doc;
|
| 967 |
+
this._awareness.destroy();
|
| 968 |
+
doc.destroy();
|
| 969 |
+
}
|
| 970 |
+
if (this._undoManager) {
|
| 971 |
+
// Be sure to not destroy the document undo manager.
|
| 972 |
+
if (this._undoManager === ((_a = this.notebook) === null || _a === void 0 ? void 0 : _a.undoManager)) {
|
| 973 |
+
this._undoManager = null;
|
| 974 |
+
}
|
| 975 |
+
else {
|
| 976 |
+
this._undoManager.destroy();
|
| 977 |
+
}
|
| 978 |
+
}
|
| 979 |
+
this._disposed.emit();
|
| 980 |
+
index_es6_js_.Signal.clearData(this);
|
| 981 |
+
}
|
| 982 |
+
/**
|
| 983 |
+
* Get cell id.
|
| 984 |
+
*
|
| 985 |
+
* @returns Cell id
|
| 986 |
+
*/
|
| 987 |
+
getId() {
|
| 988 |
+
return this.ymodel.get('id');
|
| 989 |
+
}
|
| 990 |
+
/**
|
| 991 |
+
* Gets cell's source.
|
| 992 |
+
*
|
| 993 |
+
* @returns Cell's source.
|
| 994 |
+
*/
|
| 995 |
+
getSource() {
|
| 996 |
+
return this.ysource.toString();
|
| 997 |
+
}
|
| 998 |
+
/**
|
| 999 |
+
* Sets cell's source.
|
| 1000 |
+
*
|
| 1001 |
+
* @param value: New source.
|
| 1002 |
+
*/
|
| 1003 |
+
setSource(value) {
|
| 1004 |
+
this.transact(() => {
|
| 1005 |
+
this.ysource.delete(0, this.ysource.length);
|
| 1006 |
+
this.ysource.insert(0, value);
|
| 1007 |
+
});
|
| 1008 |
+
// @todo Do we need proper replace semantic? This leads to issues in editor bindings because they don't switch source.
|
| 1009 |
+
// this.ymodel.set('source', new Y.Text(value));
|
| 1010 |
+
}
|
| 1011 |
+
/**
|
| 1012 |
+
* Replace content from `start' to `end` with `value`.
|
| 1013 |
+
*
|
| 1014 |
+
* @param start: The start index of the range to replace (inclusive).
|
| 1015 |
+
*
|
| 1016 |
+
* @param end: The end index of the range to replace (exclusive).
|
| 1017 |
+
*
|
| 1018 |
+
* @param value: New source (optional).
|
| 1019 |
+
*/
|
| 1020 |
+
updateSource(start, end, value = '') {
|
| 1021 |
+
this.transact(() => {
|
| 1022 |
+
const ysource = this.ysource;
|
| 1023 |
+
// insert and then delete.
|
| 1024 |
+
// This ensures that the cursor position is adjusted after the replaced content.
|
| 1025 |
+
ysource.insert(start, value);
|
| 1026 |
+
ysource.delete(start + value.length, end - start);
|
| 1027 |
+
});
|
| 1028 |
+
}
|
| 1029 |
+
/**
|
| 1030 |
+
* Delete a metadata cell.
|
| 1031 |
+
*
|
| 1032 |
+
* @param key The key to delete
|
| 1033 |
+
*/
|
| 1034 |
+
deleteMetadata(key) {
|
| 1035 |
+
if (typeof this.getMetadata(key) === 'undefined') {
|
| 1036 |
+
return;
|
| 1037 |
+
}
|
| 1038 |
+
this.transact(() => {
|
| 1039 |
+
this._ymetadata.delete(key);
|
| 1040 |
+
const jupyter = this.getMetadata('jupyter');
|
| 1041 |
+
if (key === 'collapsed' && jupyter) {
|
| 1042 |
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
| 1043 |
+
const { outputs_hidden, ...others } = jupyter;
|
| 1044 |
+
if (Object.keys(others).length === 0) {
|
| 1045 |
+
this._ymetadata.delete('jupyter');
|
| 1046 |
+
}
|
| 1047 |
+
else {
|
| 1048 |
+
this._ymetadata.set('jupyter', others);
|
| 1049 |
+
}
|
| 1050 |
+
}
|
| 1051 |
+
else if (key === 'jupyter') {
|
| 1052 |
+
this._ymetadata.delete('collapsed');
|
| 1053 |
+
}
|
| 1054 |
+
}, false);
|
| 1055 |
+
}
|
| 1056 |
+
getMetadata(key) {
|
| 1057 |
+
const metadata = this._ymetadata;
|
| 1058 |
+
// Transiently the metadata can be missing - like during destruction
|
| 1059 |
+
if (metadata === undefined) {
|
| 1060 |
+
return undefined;
|
| 1061 |
+
}
|
| 1062 |
+
if (typeof key === 'string') {
|
| 1063 |
+
const value = metadata.get(key);
|
| 1064 |
+
return typeof value === 'undefined'
|
| 1065 |
+
? undefined // undefined is converted to `{}` by `JSONExt.deepCopy`
|
| 1066 |
+
: index_js_.JSONExt.deepCopy(metadata.get(key));
|
| 1067 |
+
}
|
| 1068 |
+
else {
|
| 1069 |
+
return index_js_.JSONExt.deepCopy(metadata.toJSON());
|
| 1070 |
+
}
|
| 1071 |
+
}
|
| 1072 |
+
setMetadata(metadata, value) {
|
| 1073 |
+
var _a, _b;
|
| 1074 |
+
if (typeof metadata === 'string') {
|
| 1075 |
+
if (typeof value === 'undefined') {
|
| 1076 |
+
throw new TypeError(`Metadata value for ${metadata} cannot be 'undefined'; use deleteMetadata.`);
|
| 1077 |
+
}
|
| 1078 |
+
const key = metadata;
|
| 1079 |
+
// Only set metadata if we change something to avoid infinite
|
| 1080 |
+
// loop of signal changes.
|
| 1081 |
+
if (index_js_.JSONExt.deepEqual((_a = this.getMetadata(key)) !== null && _a !== void 0 ? _a : null, value)) {
|
| 1082 |
+
return;
|
| 1083 |
+
}
|
| 1084 |
+
this.transact(() => {
|
| 1085 |
+
var _a;
|
| 1086 |
+
this._ymetadata.set(key, value);
|
| 1087 |
+
if (key === 'collapsed') {
|
| 1088 |
+
const jupyter = ((_a = this.getMetadata('jupyter')) !== null && _a !== void 0 ? _a : {});
|
| 1089 |
+
if (jupyter.outputs_hidden !== value) {
|
| 1090 |
+
this.setMetadata('jupyter', {
|
| 1091 |
+
...jupyter,
|
| 1092 |
+
outputs_hidden: value
|
| 1093 |
+
});
|
| 1094 |
+
}
|
| 1095 |
+
}
|
| 1096 |
+
else if (key === 'jupyter') {
|
| 1097 |
+
const isHidden = value['outputs_hidden'];
|
| 1098 |
+
if (typeof isHidden !== 'undefined') {
|
| 1099 |
+
if (this.getMetadata('collapsed') !== isHidden) {
|
| 1100 |
+
this.setMetadata('collapsed', isHidden);
|
| 1101 |
+
}
|
| 1102 |
+
}
|
| 1103 |
+
else {
|
| 1104 |
+
this.deleteMetadata('collapsed');
|
| 1105 |
+
}
|
| 1106 |
+
}
|
| 1107 |
+
}, false);
|
| 1108 |
+
}
|
| 1109 |
+
else {
|
| 1110 |
+
const clone = index_js_.JSONExt.deepCopy(metadata);
|
| 1111 |
+
if (clone.collapsed != null) {
|
| 1112 |
+
clone.jupyter = clone.jupyter || {};
|
| 1113 |
+
clone.jupyter.outputs_hidden = clone.collapsed;
|
| 1114 |
+
}
|
| 1115 |
+
else if (((_b = clone === null || clone === void 0 ? void 0 : clone.jupyter) === null || _b === void 0 ? void 0 : _b.outputs_hidden) != null) {
|
| 1116 |
+
clone.collapsed = clone.jupyter.outputs_hidden;
|
| 1117 |
+
}
|
| 1118 |
+
if (!index_js_.JSONExt.deepEqual(clone, this.getMetadata())) {
|
| 1119 |
+
this.transact(() => {
|
| 1120 |
+
for (const [key, value] of Object.entries(clone)) {
|
| 1121 |
+
this._ymetadata.set(key, value);
|
| 1122 |
+
}
|
| 1123 |
+
}, false);
|
| 1124 |
+
}
|
| 1125 |
+
}
|
| 1126 |
+
}
|
| 1127 |
+
/**
|
| 1128 |
+
* Serialize the model to JSON.
|
| 1129 |
+
*/
|
| 1130 |
+
toJSON() {
|
| 1131 |
+
return {
|
| 1132 |
+
id: this.getId(),
|
| 1133 |
+
cell_type: this.cell_type,
|
| 1134 |
+
source: this.getSource(),
|
| 1135 |
+
metadata: this.getMetadata()
|
| 1136 |
+
};
|
| 1137 |
+
}
|
| 1138 |
+
/**
|
| 1139 |
+
* Perform a transaction. While the function f is called, all changes to the shared
|
| 1140 |
+
* document are bundled into a single event.
|
| 1141 |
+
*
|
| 1142 |
+
* @param f Transaction to execute
|
| 1143 |
+
* @param undoable Whether to track the change in the action history or not (default `true`)
|
| 1144 |
+
*/
|
| 1145 |
+
transact(f, undoable = true, origin = null) {
|
| 1146 |
+
!this.notebook || this.notebook.disableDocumentWideUndoRedo
|
| 1147 |
+
? this.ymodel.doc == null
|
| 1148 |
+
? f()
|
| 1149 |
+
: this.ymodel.doc.transact(f, undoable ? this : origin)
|
| 1150 |
+
: this.notebook.transact(f, undoable);
|
| 1151 |
+
}
|
| 1152 |
+
/**
|
| 1153 |
+
* Extract changes from YJS events
|
| 1154 |
+
*
|
| 1155 |
+
* @param events YJS events
|
| 1156 |
+
* @returns Cell changes
|
| 1157 |
+
*/
|
| 1158 |
+
getChanges(events) {
|
| 1159 |
+
const changes = {};
|
| 1160 |
+
const sourceEvent = events.find(event => event.target === this.ymodel.get('source'));
|
| 1161 |
+
if (sourceEvent) {
|
| 1162 |
+
changes.sourceChange = sourceEvent.changes.delta;
|
| 1163 |
+
}
|
| 1164 |
+
const metadataEvents = events.find(event => event.target === this._ymetadata);
|
| 1165 |
+
if (metadataEvents) {
|
| 1166 |
+
changes.metadataChange = metadataEvents.changes.keys;
|
| 1167 |
+
metadataEvents.changes.keys.forEach((change, key) => {
|
| 1168 |
+
switch (change.action) {
|
| 1169 |
+
case 'add':
|
| 1170 |
+
this._metadataChanged.emit({
|
| 1171 |
+
key,
|
| 1172 |
+
newValue: this._ymetadata.get(key),
|
| 1173 |
+
type: 'add'
|
| 1174 |
+
});
|
| 1175 |
+
break;
|
| 1176 |
+
case 'delete':
|
| 1177 |
+
this._metadataChanged.emit({
|
| 1178 |
+
key,
|
| 1179 |
+
oldValue: change.oldValue,
|
| 1180 |
+
type: 'remove'
|
| 1181 |
+
});
|
| 1182 |
+
break;
|
| 1183 |
+
case 'update':
|
| 1184 |
+
{
|
| 1185 |
+
const newValue = this._ymetadata.get(key);
|
| 1186 |
+
const oldValue = change.oldValue;
|
| 1187 |
+
let equal = true;
|
| 1188 |
+
if (typeof oldValue == 'object' && typeof newValue == 'object') {
|
| 1189 |
+
equal = index_js_.JSONExt.deepEqual(oldValue, newValue);
|
| 1190 |
+
}
|
| 1191 |
+
else {
|
| 1192 |
+
equal = oldValue === newValue;
|
| 1193 |
+
}
|
| 1194 |
+
if (!equal) {
|
| 1195 |
+
this._metadataChanged.emit({
|
| 1196 |
+
key,
|
| 1197 |
+
type: 'change',
|
| 1198 |
+
oldValue,
|
| 1199 |
+
newValue
|
| 1200 |
+
});
|
| 1201 |
+
}
|
| 1202 |
+
}
|
| 1203 |
+
break;
|
| 1204 |
+
}
|
| 1205 |
+
});
|
| 1206 |
+
}
|
| 1207 |
+
const modelEvent = events.find(event => event.target === this.ymodel);
|
| 1208 |
+
// The model allows us to replace the complete source with a new string. We express this in the Delta format
|
| 1209 |
+
// as a replace of the complete string.
|
| 1210 |
+
const ysource = this.ymodel.get('source');
|
| 1211 |
+
if (modelEvent && modelEvent.keysChanged.has('source')) {
|
| 1212 |
+
changes.sourceChange = [
|
| 1213 |
+
{ delete: this._prevSourceLength },
|
| 1214 |
+
{ insert: ysource.toString() }
|
| 1215 |
+
];
|
| 1216 |
+
}
|
| 1217 |
+
this._prevSourceLength = ysource.length;
|
| 1218 |
+
return changes;
|
| 1219 |
+
}
|
| 1220 |
+
}
|
| 1221 |
+
/**
|
| 1222 |
+
* Shareable code cell.
|
| 1223 |
+
*/
|
| 1224 |
+
class YCodeCell extends YBaseCell {
|
| 1225 |
+
/**
|
| 1226 |
+
* Create a new YCodeCell that works standalone. It cannot be
|
| 1227 |
+
* inserted into a YNotebook because the Yjs model is already
|
| 1228 |
+
* attached to an anonymous Y.Doc instance.
|
| 1229 |
+
*/
|
| 1230 |
+
static create(id) {
|
| 1231 |
+
return super.create(id);
|
| 1232 |
+
}
|
| 1233 |
+
/**
|
| 1234 |
+
* Code cell constructor
|
| 1235 |
+
*
|
| 1236 |
+
* ### Notes
|
| 1237 |
+
* Don't use the constructor directly - prefer using ``YNotebook.insertCell``
|
| 1238 |
+
*
|
| 1239 |
+
* The ``ysource`` is needed because ``ymodel.get('source')`` will
|
| 1240 |
+
* not return the real source if the model is not yet attached to
|
| 1241 |
+
* a document. Requesting it explicitly allows to introspect a non-empty
|
| 1242 |
+
* source before the cell is attached to the document.
|
| 1243 |
+
*
|
| 1244 |
+
* @param ymodel Cell map
|
| 1245 |
+
* @param ysource Cell source
|
| 1246 |
+
* @param youtputs Code cell outputs
|
| 1247 |
+
* @param options \{ notebook?: The notebook the cell is attached to \}
|
| 1248 |
+
* @param ymetadata Cell metadata
|
| 1249 |
+
*/
|
| 1250 |
+
constructor(ymodel, ysource, youtputs, options = {}, ymetadata) {
|
| 1251 |
+
super(ymodel, ysource, options, ymetadata);
|
| 1252 |
+
this._youtputs = youtputs;
|
| 1253 |
+
}
|
| 1254 |
+
/**
|
| 1255 |
+
* The type of the cell.
|
| 1256 |
+
*/
|
| 1257 |
+
get cell_type() {
|
| 1258 |
+
return 'code';
|
| 1259 |
+
}
|
| 1260 |
+
/**
|
| 1261 |
+
* The code cell's prompt number. Will be null if the cell has not been run.
|
| 1262 |
+
*/
|
| 1263 |
+
get execution_count() {
|
| 1264 |
+
return this.ymodel.get('execution_count') || null;
|
| 1265 |
+
}
|
| 1266 |
+
set execution_count(count) {
|
| 1267 |
+
// Do not use `this.execution_count`. When initializing the
|
| 1268 |
+
// cell, we need to set execution_count to `null` if we compare
|
| 1269 |
+
// using `this.execution_count` it will return `null` and we will
|
| 1270 |
+
// never initialize it
|
| 1271 |
+
if (this.ymodel.get('execution_count') !== count) {
|
| 1272 |
+
this.transact(() => {
|
| 1273 |
+
this.ymodel.set('execution_count', count);
|
| 1274 |
+
}, false);
|
| 1275 |
+
}
|
| 1276 |
+
}
|
| 1277 |
+
/**
|
| 1278 |
+
* The code cell's execution state.
|
| 1279 |
+
*/
|
| 1280 |
+
get executionState() {
|
| 1281 |
+
var _a;
|
| 1282 |
+
return (_a = this.ymodel.get('execution_state')) !== null && _a !== void 0 ? _a : 'idle';
|
| 1283 |
+
}
|
| 1284 |
+
set executionState(state) {
|
| 1285 |
+
if (this.ymodel.get('execution_state') !== state) {
|
| 1286 |
+
this.transact(() => {
|
| 1287 |
+
this.ymodel.set('execution_state', state);
|
| 1288 |
+
}, false);
|
| 1289 |
+
}
|
| 1290 |
+
}
|
| 1291 |
+
/**
|
| 1292 |
+
* Cell outputs.
|
| 1293 |
+
*/
|
| 1294 |
+
get outputs() {
|
| 1295 |
+
return this.getOutputs();
|
| 1296 |
+
}
|
| 1297 |
+
set outputs(v) {
|
| 1298 |
+
this.setOutputs(v);
|
| 1299 |
+
}
|
| 1300 |
+
get youtputs() {
|
| 1301 |
+
return this._youtputs;
|
| 1302 |
+
}
|
| 1303 |
+
/**
|
| 1304 |
+
* Execution, display, or stream outputs.
|
| 1305 |
+
*/
|
| 1306 |
+
getOutputs() {
|
| 1307 |
+
return index_js_.JSONExt.deepCopy(this._youtputs.toJSON());
|
| 1308 |
+
}
|
| 1309 |
+
createOutputs(outputs) {
|
| 1310 |
+
const newOutputs = [];
|
| 1311 |
+
for (const output of index_js_.JSONExt.deepCopy(outputs)) {
|
| 1312 |
+
let _newOutput1;
|
| 1313 |
+
if (output.output_type === 'stream') {
|
| 1314 |
+
// Set the text field as a Y.Text
|
| 1315 |
+
const { text, ...outputWithoutText } = output;
|
| 1316 |
+
_newOutput1 = outputWithoutText;
|
| 1317 |
+
const newText = new yjs_mjs_.Text();
|
| 1318 |
+
let _text = text instanceof Array ? text.join() : text;
|
| 1319 |
+
newText.insert(0, _text);
|
| 1320 |
+
_newOutput1['text'] = newText;
|
| 1321 |
+
}
|
| 1322 |
+
else {
|
| 1323 |
+
_newOutput1 = output;
|
| 1324 |
+
}
|
| 1325 |
+
const _newOutput2 = [];
|
| 1326 |
+
for (const [key, value] of Object.entries(_newOutput1)) {
|
| 1327 |
+
_newOutput2.push([key, value]);
|
| 1328 |
+
}
|
| 1329 |
+
const newOutput = new yjs_mjs_.Map(_newOutput2);
|
| 1330 |
+
newOutputs.push(newOutput);
|
| 1331 |
+
}
|
| 1332 |
+
return newOutputs;
|
| 1333 |
+
}
|
| 1334 |
+
/**
|
| 1335 |
+
* Replace all outputs.
|
| 1336 |
+
*/
|
| 1337 |
+
setOutputs(outputs) {
|
| 1338 |
+
this.transact(() => {
|
| 1339 |
+
this._youtputs.delete(0, this._youtputs.length);
|
| 1340 |
+
const newOutputs = this.createOutputs(outputs);
|
| 1341 |
+
this._youtputs.insert(0, newOutputs);
|
| 1342 |
+
}, false);
|
| 1343 |
+
}
|
| 1344 |
+
/**
|
| 1345 |
+
* Remove text from a stream output.
|
| 1346 |
+
*/
|
| 1347 |
+
removeStreamOutput(index, start, origin = null) {
|
| 1348 |
+
this.transact(() => {
|
| 1349 |
+
const output = this._youtputs.get(index);
|
| 1350 |
+
const prevText = output.get('text');
|
| 1351 |
+
const length = prevText.length - start;
|
| 1352 |
+
prevText.delete(start, length);
|
| 1353 |
+
}, false, origin);
|
| 1354 |
+
}
|
| 1355 |
+
/**
|
| 1356 |
+
* Append text to a stream output.
|
| 1357 |
+
*/
|
| 1358 |
+
appendStreamOutput(index, text, origin = null) {
|
| 1359 |
+
this.transact(() => {
|
| 1360 |
+
const output = this._youtputs.get(index);
|
| 1361 |
+
const prevText = output.get('text');
|
| 1362 |
+
prevText.insert(prevText.length, text);
|
| 1363 |
+
}, false, origin);
|
| 1364 |
+
}
|
| 1365 |
+
/**
|
| 1366 |
+
* Replace content from `start' to `end` with `outputs`.
|
| 1367 |
+
*
|
| 1368 |
+
* @param start: The start index of the range to replace (inclusive).
|
| 1369 |
+
*
|
| 1370 |
+
* @param end: The end index of the range to replace (exclusive).
|
| 1371 |
+
*
|
| 1372 |
+
* @param outputs: New outputs (optional).
|
| 1373 |
+
*/
|
| 1374 |
+
updateOutputs(start, end, outputs = [], origin = null) {
|
| 1375 |
+
const fin = end < this._youtputs.length ? end - start : this._youtputs.length - start;
|
| 1376 |
+
this.transact(() => {
|
| 1377 |
+
this._youtputs.delete(start, fin);
|
| 1378 |
+
const newOutputs = this.createOutputs(outputs);
|
| 1379 |
+
this._youtputs.insert(start, newOutputs);
|
| 1380 |
+
}, false, origin);
|
| 1381 |
+
}
|
| 1382 |
+
/**
|
| 1383 |
+
* Serialize the model to JSON.
|
| 1384 |
+
*/
|
| 1385 |
+
toJSON() {
|
| 1386 |
+
return {
|
| 1387 |
+
...super.toJSON(),
|
| 1388 |
+
outputs: this.getOutputs(),
|
| 1389 |
+
execution_count: this.execution_count
|
| 1390 |
+
};
|
| 1391 |
+
}
|
| 1392 |
+
/**
|
| 1393 |
+
* Extract changes from YJS events
|
| 1394 |
+
*
|
| 1395 |
+
* @param events YJS events
|
| 1396 |
+
* @returns Cell changes
|
| 1397 |
+
*/
|
| 1398 |
+
getChanges(events) {
|
| 1399 |
+
const changes = super.getChanges(events);
|
| 1400 |
+
const streamOutputEvent = events.find(
|
| 1401 |
+
// Changes to the 'text' of a cell's stream output can be accessed like so:
|
| 1402 |
+
// ycell['outputs'][output_idx]['text']
|
| 1403 |
+
// This translates to an event path of: ['outputs', output_idx, 'text]
|
| 1404 |
+
event => event.path.length === 3 &&
|
| 1405 |
+
event.path[0] === 'outputs' &&
|
| 1406 |
+
event.path[2] === 'text');
|
| 1407 |
+
if (streamOutputEvent) {
|
| 1408 |
+
changes.streamOutputChange = streamOutputEvent.changes.delta;
|
| 1409 |
+
}
|
| 1410 |
+
const outputEvent = events.find(event => event.target === this.ymodel.get('outputs'));
|
| 1411 |
+
if (outputEvent) {
|
| 1412 |
+
changes.outputsChange = outputEvent.changes.delta;
|
| 1413 |
+
}
|
| 1414 |
+
const modelEvent = events.find(event => event.target === this.ymodel);
|
| 1415 |
+
if (modelEvent && modelEvent.keysChanged.has('execution_count')) {
|
| 1416 |
+
const change = modelEvent.changes.keys.get('execution_count');
|
| 1417 |
+
changes.executionCountChange = {
|
| 1418 |
+
oldValue: change.oldValue,
|
| 1419 |
+
newValue: this.ymodel.get('execution_count')
|
| 1420 |
+
};
|
| 1421 |
+
}
|
| 1422 |
+
if (modelEvent && modelEvent.keysChanged.has('execution_state')) {
|
| 1423 |
+
const change = modelEvent.changes.keys.get('execution_state');
|
| 1424 |
+
changes.executionStateChange = {
|
| 1425 |
+
oldValue: change.oldValue,
|
| 1426 |
+
newValue: this.ymodel.get('execution_state')
|
| 1427 |
+
};
|
| 1428 |
+
}
|
| 1429 |
+
return changes;
|
| 1430 |
+
}
|
| 1431 |
+
}
|
| 1432 |
+
class YAttachmentCell extends YBaseCell {
|
| 1433 |
+
/**
|
| 1434 |
+
* Cell attachments
|
| 1435 |
+
*/
|
| 1436 |
+
get attachments() {
|
| 1437 |
+
return this.getAttachments();
|
| 1438 |
+
}
|
| 1439 |
+
set attachments(v) {
|
| 1440 |
+
this.setAttachments(v);
|
| 1441 |
+
}
|
| 1442 |
+
/**
|
| 1443 |
+
* Gets the cell attachments.
|
| 1444 |
+
*
|
| 1445 |
+
* @returns The cell attachments.
|
| 1446 |
+
*/
|
| 1447 |
+
getAttachments() {
|
| 1448 |
+
return this.ymodel.get('attachments');
|
| 1449 |
+
}
|
| 1450 |
+
/**
|
| 1451 |
+
* Sets the cell attachments
|
| 1452 |
+
*
|
| 1453 |
+
* @param attachments: The cell attachments.
|
| 1454 |
+
*/
|
| 1455 |
+
setAttachments(attachments) {
|
| 1456 |
+
this.transact(() => {
|
| 1457 |
+
if (attachments == null) {
|
| 1458 |
+
this.ymodel.delete('attachments');
|
| 1459 |
+
}
|
| 1460 |
+
else {
|
| 1461 |
+
this.ymodel.set('attachments', attachments);
|
| 1462 |
+
}
|
| 1463 |
+
}, false);
|
| 1464 |
+
}
|
| 1465 |
+
/**
|
| 1466 |
+
* Extract changes from YJS events
|
| 1467 |
+
*
|
| 1468 |
+
* @param events YJS events
|
| 1469 |
+
* @returns Cell changes
|
| 1470 |
+
*/
|
| 1471 |
+
getChanges(events) {
|
| 1472 |
+
const changes = super.getChanges(events);
|
| 1473 |
+
const modelEvent = events.find(event => event.target === this.ymodel);
|
| 1474 |
+
if (modelEvent && modelEvent.keysChanged.has('attachments')) {
|
| 1475 |
+
const change = modelEvent.changes.keys.get('attachments');
|
| 1476 |
+
changes.attachmentsChange = {
|
| 1477 |
+
oldValue: change.oldValue,
|
| 1478 |
+
newValue: this.ymodel.get('attachments')
|
| 1479 |
+
};
|
| 1480 |
+
}
|
| 1481 |
+
return changes;
|
| 1482 |
+
}
|
| 1483 |
+
}
|
| 1484 |
+
/**
|
| 1485 |
+
* Shareable raw cell.
|
| 1486 |
+
*/
|
| 1487 |
+
class YRawCell extends YAttachmentCell {
|
| 1488 |
+
/**
|
| 1489 |
+
* Create a new YRawCell that works standalone. It cannot be
|
| 1490 |
+
* inserted into a YNotebook because the Yjs model is already
|
| 1491 |
+
* attached to an anonymous Y.Doc instance.
|
| 1492 |
+
*/
|
| 1493 |
+
static create(id) {
|
| 1494 |
+
return super.create(id);
|
| 1495 |
+
}
|
| 1496 |
+
/**
|
| 1497 |
+
* String identifying the type of cell.
|
| 1498 |
+
*/
|
| 1499 |
+
get cell_type() {
|
| 1500 |
+
return 'raw';
|
| 1501 |
+
}
|
| 1502 |
+
/**
|
| 1503 |
+
* Serialize the model to JSON.
|
| 1504 |
+
*/
|
| 1505 |
+
toJSON() {
|
| 1506 |
+
return {
|
| 1507 |
+
id: this.getId(),
|
| 1508 |
+
cell_type: 'raw',
|
| 1509 |
+
source: this.getSource(),
|
| 1510 |
+
metadata: this.getMetadata(),
|
| 1511 |
+
attachments: this.getAttachments()
|
| 1512 |
+
};
|
| 1513 |
+
}
|
| 1514 |
+
}
|
| 1515 |
+
/**
|
| 1516 |
+
* Shareable markdown cell.
|
| 1517 |
+
*/
|
| 1518 |
+
class YMarkdownCell extends YAttachmentCell {
|
| 1519 |
+
/**
|
| 1520 |
+
* Create a new YMarkdownCell that works standalone. It cannot be
|
| 1521 |
+
* inserted into a YNotebook because the Yjs model is already
|
| 1522 |
+
* attached to an anonymous Y.Doc instance.
|
| 1523 |
+
*/
|
| 1524 |
+
static create(id) {
|
| 1525 |
+
return super.create(id);
|
| 1526 |
+
}
|
| 1527 |
+
/**
|
| 1528 |
+
* String identifying the type of cell.
|
| 1529 |
+
*/
|
| 1530 |
+
get cell_type() {
|
| 1531 |
+
return 'markdown';
|
| 1532 |
+
}
|
| 1533 |
+
/**
|
| 1534 |
+
* Serialize the model to JSON.
|
| 1535 |
+
*/
|
| 1536 |
+
toJSON() {
|
| 1537 |
+
return {
|
| 1538 |
+
id: this.getId(),
|
| 1539 |
+
cell_type: 'markdown',
|
| 1540 |
+
source: this.getSource(),
|
| 1541 |
+
metadata: this.getMetadata(),
|
| 1542 |
+
attachments: this.getAttachments()
|
| 1543 |
+
};
|
| 1544 |
+
}
|
| 1545 |
+
}
|
| 1546 |
+
//# sourceMappingURL=ycell.js.map
|
| 1547 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/ydoc/lib/ynotebook.js
|
| 1548 |
+
/* -----------------------------------------------------------------------------
|
| 1549 |
+
| Copyright (c) Jupyter Development Team.
|
| 1550 |
+
| Distributed under the terms of the Modified BSD License.
|
| 1551 |
+
|----------------------------------------------------------------------------*/
|
| 1552 |
+
|
| 1553 |
+
|
| 1554 |
+
|
| 1555 |
+
|
| 1556 |
+
|
| 1557 |
+
/**
|
| 1558 |
+
* Shared implementation of the Shared Document types.
|
| 1559 |
+
*
|
| 1560 |
+
* Shared cells can be inserted into a SharedNotebook.
|
| 1561 |
+
* Shared cells only start emitting events when they are connected to a SharedNotebook.
|
| 1562 |
+
*
|
| 1563 |
+
* "Standalone" cells must not be inserted into a (Shared)Notebook.
|
| 1564 |
+
* Standalone cells emit events immediately after they have been created, but they must not
|
| 1565 |
+
* be included into a (Shared)Notebook.
|
| 1566 |
+
*/
|
| 1567 |
+
class YNotebook extends YDocument {
|
| 1568 |
+
/**
|
| 1569 |
+
* Create a new notebook
|
| 1570 |
+
*
|
| 1571 |
+
* #### Notes
|
| 1572 |
+
* The document is empty and must be populated
|
| 1573 |
+
*
|
| 1574 |
+
* @param options
|
| 1575 |
+
*/
|
| 1576 |
+
constructor(options = {}) {
|
| 1577 |
+
var _a;
|
| 1578 |
+
super();
|
| 1579 |
+
/**
|
| 1580 |
+
* Document version
|
| 1581 |
+
*/
|
| 1582 |
+
this.version = '2.0.0';
|
| 1583 |
+
/**
|
| 1584 |
+
* YJS map for the notebook metadata
|
| 1585 |
+
*/
|
| 1586 |
+
this.ymeta = this.ydoc.getMap('meta');
|
| 1587 |
+
/**
|
| 1588 |
+
* Handle a change to the ystate.
|
| 1589 |
+
*/
|
| 1590 |
+
this._onMetaChanged = (events) => {
|
| 1591 |
+
const metadataEvents = events.find(event => event.target === this.ymeta.get('metadata'));
|
| 1592 |
+
if (metadataEvents) {
|
| 1593 |
+
const metadataChange = metadataEvents.changes.keys;
|
| 1594 |
+
const ymetadata = this.ymeta.get('metadata');
|
| 1595 |
+
metadataEvents.changes.keys.forEach((change, key) => {
|
| 1596 |
+
switch (change.action) {
|
| 1597 |
+
case 'add':
|
| 1598 |
+
this._metadataChanged.emit({
|
| 1599 |
+
key,
|
| 1600 |
+
type: 'add',
|
| 1601 |
+
newValue: ymetadata.get(key)
|
| 1602 |
+
});
|
| 1603 |
+
break;
|
| 1604 |
+
case 'delete':
|
| 1605 |
+
this._metadataChanged.emit({
|
| 1606 |
+
key,
|
| 1607 |
+
type: 'remove',
|
| 1608 |
+
oldValue: change.oldValue
|
| 1609 |
+
});
|
| 1610 |
+
break;
|
| 1611 |
+
case 'update':
|
| 1612 |
+
{
|
| 1613 |
+
const newValue = ymetadata.get(key);
|
| 1614 |
+
const oldValue = change.oldValue;
|
| 1615 |
+
let equal = true;
|
| 1616 |
+
if (typeof oldValue == 'object' && typeof newValue == 'object') {
|
| 1617 |
+
equal = index_js_.JSONExt.deepEqual(oldValue, newValue);
|
| 1618 |
+
}
|
| 1619 |
+
else {
|
| 1620 |
+
equal = oldValue === newValue;
|
| 1621 |
+
}
|
| 1622 |
+
if (!equal) {
|
| 1623 |
+
this._metadataChanged.emit({
|
| 1624 |
+
key,
|
| 1625 |
+
type: 'change',
|
| 1626 |
+
oldValue,
|
| 1627 |
+
newValue
|
| 1628 |
+
});
|
| 1629 |
+
}
|
| 1630 |
+
}
|
| 1631 |
+
break;
|
| 1632 |
+
}
|
| 1633 |
+
});
|
| 1634 |
+
this._changed.emit({ metadataChange });
|
| 1635 |
+
}
|
| 1636 |
+
const metaEvent = events.find(event => event.target === this.ymeta);
|
| 1637 |
+
if (!metaEvent) {
|
| 1638 |
+
return;
|
| 1639 |
+
}
|
| 1640 |
+
if (metaEvent.keysChanged.has('metadata')) {
|
| 1641 |
+
// Handle metadata change when adding/removing the YMap
|
| 1642 |
+
const change = metaEvent.changes.keys.get('metadata');
|
| 1643 |
+
if ((change === null || change === void 0 ? void 0 : change.action) === 'add' && !change.oldValue) {
|
| 1644 |
+
const metadataChange = new Map();
|
| 1645 |
+
for (const key of Object.keys(this.metadata)) {
|
| 1646 |
+
metadataChange.set(key, {
|
| 1647 |
+
action: 'add',
|
| 1648 |
+
oldValue: undefined
|
| 1649 |
+
});
|
| 1650 |
+
this._metadataChanged.emit({
|
| 1651 |
+
key,
|
| 1652 |
+
type: 'add',
|
| 1653 |
+
newValue: this.getMetadata(key)
|
| 1654 |
+
});
|
| 1655 |
+
}
|
| 1656 |
+
this._changed.emit({ metadataChange });
|
| 1657 |
+
}
|
| 1658 |
+
}
|
| 1659 |
+
if (metaEvent.keysChanged.has('nbformat')) {
|
| 1660 |
+
const change = metaEvent.changes.keys.get('nbformat');
|
| 1661 |
+
const nbformatChanged = {
|
| 1662 |
+
key: 'nbformat',
|
| 1663 |
+
oldValue: (change === null || change === void 0 ? void 0 : change.oldValue) ? change.oldValue : undefined,
|
| 1664 |
+
newValue: this.nbformat
|
| 1665 |
+
};
|
| 1666 |
+
this._changed.emit({ nbformatChanged });
|
| 1667 |
+
}
|
| 1668 |
+
if (metaEvent.keysChanged.has('nbformat_minor')) {
|
| 1669 |
+
const change = metaEvent.changes.keys.get('nbformat_minor');
|
| 1670 |
+
const nbformatChanged = {
|
| 1671 |
+
key: 'nbformat_minor',
|
| 1672 |
+
oldValue: (change === null || change === void 0 ? void 0 : change.oldValue) ? change.oldValue : undefined,
|
| 1673 |
+
newValue: this.nbformat_minor
|
| 1674 |
+
};
|
| 1675 |
+
this._changed.emit({ nbformatChanged });
|
| 1676 |
+
}
|
| 1677 |
+
};
|
| 1678 |
+
/**
|
| 1679 |
+
* Handle a change to the list of cells.
|
| 1680 |
+
*/
|
| 1681 |
+
this._onYCellsChanged = (event) => {
|
| 1682 |
+
// update the type cell mapping by iterating through the added/removed types
|
| 1683 |
+
event.changes.added.forEach(item => {
|
| 1684 |
+
const type = item.content.type;
|
| 1685 |
+
if (!this._ycellMapping.has(type)) {
|
| 1686 |
+
const c = createCellModelFromSharedType(type, { notebook: this });
|
| 1687 |
+
c.setUndoManager();
|
| 1688 |
+
this._ycellMapping.set(type, c);
|
| 1689 |
+
}
|
| 1690 |
+
});
|
| 1691 |
+
event.changes.deleted.forEach(item => {
|
| 1692 |
+
const type = item.content.type;
|
| 1693 |
+
const model = this._ycellMapping.get(type);
|
| 1694 |
+
if (model) {
|
| 1695 |
+
model.dispose();
|
| 1696 |
+
this._ycellMapping.delete(type);
|
| 1697 |
+
}
|
| 1698 |
+
});
|
| 1699 |
+
let index = 0;
|
| 1700 |
+
// this reflects the event.changes.delta, but replaces the content of delta.insert with ycells
|
| 1701 |
+
const cellsChange = [];
|
| 1702 |
+
event.changes.delta.forEach((d) => {
|
| 1703 |
+
if (d.insert != null) {
|
| 1704 |
+
const insertedCells = d.insert.map((ycell) => this._ycellMapping.get(ycell));
|
| 1705 |
+
cellsChange.push({ insert: insertedCells });
|
| 1706 |
+
this.cells.splice(index, 0, ...insertedCells);
|
| 1707 |
+
index += d.insert.length;
|
| 1708 |
+
}
|
| 1709 |
+
else if (d.delete != null) {
|
| 1710 |
+
cellsChange.push(d);
|
| 1711 |
+
this.cells.splice(index, d.delete);
|
| 1712 |
+
}
|
| 1713 |
+
else if (d.retain != null) {
|
| 1714 |
+
cellsChange.push(d);
|
| 1715 |
+
index += d.retain;
|
| 1716 |
+
}
|
| 1717 |
+
});
|
| 1718 |
+
this._changed.emit({
|
| 1719 |
+
cellsChange: cellsChange
|
| 1720 |
+
});
|
| 1721 |
+
};
|
| 1722 |
+
this._metadataChanged = new index_es6_js_.Signal(this);
|
| 1723 |
+
/**
|
| 1724 |
+
* Internal Yjs cells list
|
| 1725 |
+
*/
|
| 1726 |
+
this._ycells = this.ydoc.getArray('cells');
|
| 1727 |
+
this._ycellMapping = new WeakMap();
|
| 1728 |
+
this._disableDocumentWideUndoRedo =
|
| 1729 |
+
(_a = options.disableDocumentWideUndoRedo) !== null && _a !== void 0 ? _a : false;
|
| 1730 |
+
this.cells = this._ycells.toArray().map(ycell => {
|
| 1731 |
+
if (!this._ycellMapping.has(ycell)) {
|
| 1732 |
+
this._ycellMapping.set(ycell, createCellModelFromSharedType(ycell, { notebook: this }));
|
| 1733 |
+
}
|
| 1734 |
+
return this._ycellMapping.get(ycell);
|
| 1735 |
+
});
|
| 1736 |
+
this.undoManager.addToScope(this._ycells);
|
| 1737 |
+
this._ycells.observe(this._onYCellsChanged);
|
| 1738 |
+
this.ymeta.observeDeep(this._onMetaChanged);
|
| 1739 |
+
}
|
| 1740 |
+
/**
|
| 1741 |
+
* Creates a standalone YNotebook
|
| 1742 |
+
*
|
| 1743 |
+
* Note: This method is useful when we need to initialize
|
| 1744 |
+
* the YNotebook from the JavaScript side.
|
| 1745 |
+
*/
|
| 1746 |
+
static create(options = {}) {
|
| 1747 |
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
| 1748 |
+
const ynotebook = new YNotebook({
|
| 1749 |
+
disableDocumentWideUndoRedo: (_a = options.disableDocumentWideUndoRedo) !== null && _a !== void 0 ? _a : false
|
| 1750 |
+
});
|
| 1751 |
+
const data = {
|
| 1752 |
+
cells: (_c = (_b = options.data) === null || _b === void 0 ? void 0 : _b.cells) !== null && _c !== void 0 ? _c : [],
|
| 1753 |
+
nbformat: (_e = (_d = options.data) === null || _d === void 0 ? void 0 : _d.nbformat) !== null && _e !== void 0 ? _e : 4,
|
| 1754 |
+
nbformat_minor: (_g = (_f = options.data) === null || _f === void 0 ? void 0 : _f.nbformat_minor) !== null && _g !== void 0 ? _g : 5,
|
| 1755 |
+
metadata: (_j = (_h = options.data) === null || _h === void 0 ? void 0 : _h.metadata) !== null && _j !== void 0 ? _j : {}
|
| 1756 |
+
};
|
| 1757 |
+
ynotebook.fromJSON(data);
|
| 1758 |
+
return ynotebook;
|
| 1759 |
+
}
|
| 1760 |
+
/**
|
| 1761 |
+
* Wether the undo/redo logic should be
|
| 1762 |
+
* considered on the full document across all cells.
|
| 1763 |
+
*
|
| 1764 |
+
* Default: false
|
| 1765 |
+
*/
|
| 1766 |
+
get disableDocumentWideUndoRedo() {
|
| 1767 |
+
return this._disableDocumentWideUndoRedo;
|
| 1768 |
+
}
|
| 1769 |
+
/**
|
| 1770 |
+
* Notebook metadata
|
| 1771 |
+
*/
|
| 1772 |
+
get metadata() {
|
| 1773 |
+
return this.getMetadata();
|
| 1774 |
+
}
|
| 1775 |
+
set metadata(v) {
|
| 1776 |
+
this.setMetadata(v);
|
| 1777 |
+
}
|
| 1778 |
+
/**
|
| 1779 |
+
* Signal triggered when a metadata changes.
|
| 1780 |
+
*/
|
| 1781 |
+
get metadataChanged() {
|
| 1782 |
+
return this._metadataChanged;
|
| 1783 |
+
}
|
| 1784 |
+
/**
|
| 1785 |
+
* nbformat major version
|
| 1786 |
+
*/
|
| 1787 |
+
get nbformat() {
|
| 1788 |
+
return this.ymeta.get('nbformat');
|
| 1789 |
+
}
|
| 1790 |
+
set nbformat(value) {
|
| 1791 |
+
this.transact(() => {
|
| 1792 |
+
this.ymeta.set('nbformat', value);
|
| 1793 |
+
}, false);
|
| 1794 |
+
}
|
| 1795 |
+
/**
|
| 1796 |
+
* nbformat minor version
|
| 1797 |
+
*/
|
| 1798 |
+
get nbformat_minor() {
|
| 1799 |
+
return this.ymeta.get('nbformat_minor');
|
| 1800 |
+
}
|
| 1801 |
+
set nbformat_minor(value) {
|
| 1802 |
+
this.transact(() => {
|
| 1803 |
+
this.ymeta.set('nbformat_minor', value);
|
| 1804 |
+
}, false);
|
| 1805 |
+
}
|
| 1806 |
+
/**
|
| 1807 |
+
* Dispose of the resources.
|
| 1808 |
+
*/
|
| 1809 |
+
dispose() {
|
| 1810 |
+
if (this.isDisposed) {
|
| 1811 |
+
return;
|
| 1812 |
+
}
|
| 1813 |
+
this._ycells.unobserve(this._onYCellsChanged);
|
| 1814 |
+
this.ymeta.unobserveDeep(this._onMetaChanged);
|
| 1815 |
+
super.dispose();
|
| 1816 |
+
}
|
| 1817 |
+
/**
|
| 1818 |
+
* Get a shared cell by index.
|
| 1819 |
+
*
|
| 1820 |
+
* @param index: Cell's position.
|
| 1821 |
+
*
|
| 1822 |
+
* @returns The requested shared cell.
|
| 1823 |
+
*/
|
| 1824 |
+
getCell(index) {
|
| 1825 |
+
return this.cells[index];
|
| 1826 |
+
}
|
| 1827 |
+
/**
|
| 1828 |
+
* Add a shared cell at the notebook bottom.
|
| 1829 |
+
*
|
| 1830 |
+
* @param cell Cell to add.
|
| 1831 |
+
*
|
| 1832 |
+
* @returns The added cell.
|
| 1833 |
+
*/
|
| 1834 |
+
addCell(cell) {
|
| 1835 |
+
return this.insertCell(this._ycells.length, cell);
|
| 1836 |
+
}
|
| 1837 |
+
/**
|
| 1838 |
+
* Insert a shared cell into a specific position.
|
| 1839 |
+
*
|
| 1840 |
+
* @param index: Cell's position.
|
| 1841 |
+
* @param cell: Cell to insert.
|
| 1842 |
+
*
|
| 1843 |
+
* @returns The inserted cell.
|
| 1844 |
+
*/
|
| 1845 |
+
insertCell(index, cell) {
|
| 1846 |
+
return this.insertCells(index, [cell])[0];
|
| 1847 |
+
}
|
| 1848 |
+
/**
|
| 1849 |
+
* Insert a list of shared cells into a specific position.
|
| 1850 |
+
*
|
| 1851 |
+
* @param index: Position to insert the cells.
|
| 1852 |
+
* @param cells: Array of shared cells to insert.
|
| 1853 |
+
*
|
| 1854 |
+
* @returns The inserted cells.
|
| 1855 |
+
*/
|
| 1856 |
+
insertCells(index, cells) {
|
| 1857 |
+
const yCells = cells.map(c => {
|
| 1858 |
+
const cell = createCell(c, this);
|
| 1859 |
+
this._ycellMapping.set(cell.ymodel, cell);
|
| 1860 |
+
return cell;
|
| 1861 |
+
});
|
| 1862 |
+
this.transact(() => {
|
| 1863 |
+
this._ycells.insert(index, yCells.map(cell => cell.ymodel));
|
| 1864 |
+
});
|
| 1865 |
+
yCells.forEach(c => {
|
| 1866 |
+
c.setUndoManager();
|
| 1867 |
+
});
|
| 1868 |
+
return yCells;
|
| 1869 |
+
}
|
| 1870 |
+
/**
|
| 1871 |
+
* Move a cell.
|
| 1872 |
+
*
|
| 1873 |
+
* @param fromIndex: Index of the cell to move.
|
| 1874 |
+
* @param toIndex: New position of the cell.
|
| 1875 |
+
*/
|
| 1876 |
+
moveCell(fromIndex, toIndex) {
|
| 1877 |
+
this.moveCells(fromIndex, toIndex);
|
| 1878 |
+
}
|
| 1879 |
+
/**
|
| 1880 |
+
* Move cells.
|
| 1881 |
+
*
|
| 1882 |
+
* @param fromIndex: Index of the first cells to move.
|
| 1883 |
+
* @param toIndex: New position of the first cell (in the current array).
|
| 1884 |
+
* @param n: Number of cells to move (default 1)
|
| 1885 |
+
*/
|
| 1886 |
+
moveCells(fromIndex, toIndex, n = 1) {
|
| 1887 |
+
// FIXME we need to use yjs move feature to preserve undo history
|
| 1888 |
+
const clones = new Array(n)
|
| 1889 |
+
.fill(true)
|
| 1890 |
+
.map((_, idx) => this.getCell(fromIndex + idx).toJSON());
|
| 1891 |
+
this.transact(() => {
|
| 1892 |
+
this._ycells.delete(fromIndex, n);
|
| 1893 |
+
this._ycells.insert(fromIndex > toIndex ? toIndex : toIndex - n + 1, clones.map(clone => createCell(clone, this).ymodel));
|
| 1894 |
+
});
|
| 1895 |
+
}
|
| 1896 |
+
/**
|
| 1897 |
+
* Remove a cell.
|
| 1898 |
+
*
|
| 1899 |
+
* @param index: Index of the cell to remove.
|
| 1900 |
+
*/
|
| 1901 |
+
deleteCell(index) {
|
| 1902 |
+
this.deleteCellRange(index, index + 1);
|
| 1903 |
+
}
|
| 1904 |
+
/**
|
| 1905 |
+
* Remove a range of cells.
|
| 1906 |
+
*
|
| 1907 |
+
* @param from: The start index of the range to remove (inclusive).
|
| 1908 |
+
* @param to: The end index of the range to remove (exclusive).
|
| 1909 |
+
*/
|
| 1910 |
+
deleteCellRange(from, to) {
|
| 1911 |
+
// Cells will be removed from the mapping in the model event listener.
|
| 1912 |
+
this.transact(() => {
|
| 1913 |
+
this._ycells.delete(from, to - from);
|
| 1914 |
+
});
|
| 1915 |
+
}
|
| 1916 |
+
/**
|
| 1917 |
+
* Delete a metadata notebook.
|
| 1918 |
+
*
|
| 1919 |
+
* @param key The key to delete
|
| 1920 |
+
*/
|
| 1921 |
+
deleteMetadata(key) {
|
| 1922 |
+
if (typeof this.getMetadata(key) === 'undefined') {
|
| 1923 |
+
return;
|
| 1924 |
+
}
|
| 1925 |
+
const allMetadata = this.metadata;
|
| 1926 |
+
delete allMetadata[key];
|
| 1927 |
+
this.setMetadata(allMetadata);
|
| 1928 |
+
}
|
| 1929 |
+
getMetadata(key) {
|
| 1930 |
+
const ymetadata = this.ymeta.get('metadata');
|
| 1931 |
+
// Transiently the metadata can be missing - like during destruction
|
| 1932 |
+
if (ymetadata === undefined) {
|
| 1933 |
+
return undefined;
|
| 1934 |
+
}
|
| 1935 |
+
if (typeof key === 'string') {
|
| 1936 |
+
const value = ymetadata.get(key);
|
| 1937 |
+
return typeof value === 'undefined'
|
| 1938 |
+
? undefined // undefined is converted to `{}` by `JSONExt.deepCopy`
|
| 1939 |
+
: index_js_.JSONExt.deepCopy(value);
|
| 1940 |
+
}
|
| 1941 |
+
else {
|
| 1942 |
+
return index_js_.JSONExt.deepCopy(ymetadata.toJSON());
|
| 1943 |
+
}
|
| 1944 |
+
}
|
| 1945 |
+
setMetadata(metadata, value) {
|
| 1946 |
+
var _a;
|
| 1947 |
+
if (typeof metadata === 'string') {
|
| 1948 |
+
if (typeof value === 'undefined') {
|
| 1949 |
+
throw new TypeError(`Metadata value for ${metadata} cannot be 'undefined'; use deleteMetadata.`);
|
| 1950 |
+
}
|
| 1951 |
+
if (index_js_.JSONExt.deepEqual((_a = this.getMetadata(metadata)) !== null && _a !== void 0 ? _a : null, value)) {
|
| 1952 |
+
return;
|
| 1953 |
+
}
|
| 1954 |
+
const update = {};
|
| 1955 |
+
update[metadata] = value;
|
| 1956 |
+
this.updateMetadata(update);
|
| 1957 |
+
}
|
| 1958 |
+
else {
|
| 1959 |
+
if (!this.metadata || !index_js_.JSONExt.deepEqual(this.metadata, metadata)) {
|
| 1960 |
+
const clone = index_js_.JSONExt.deepCopy(metadata);
|
| 1961 |
+
const ymetadata = this.ymeta.get('metadata');
|
| 1962 |
+
// Transiently the metadata can be missing - like during destruction
|
| 1963 |
+
if (ymetadata === undefined) {
|
| 1964 |
+
return undefined;
|
| 1965 |
+
}
|
| 1966 |
+
this.transact(() => {
|
| 1967 |
+
ymetadata.clear();
|
| 1968 |
+
for (const [key, value] of Object.entries(clone)) {
|
| 1969 |
+
ymetadata.set(key, value);
|
| 1970 |
+
}
|
| 1971 |
+
});
|
| 1972 |
+
}
|
| 1973 |
+
}
|
| 1974 |
+
}
|
| 1975 |
+
/**
|
| 1976 |
+
* Updates the metadata associated with the notebook.
|
| 1977 |
+
*
|
| 1978 |
+
* @param value: Metadata's attribute to update.
|
| 1979 |
+
*/
|
| 1980 |
+
updateMetadata(value) {
|
| 1981 |
+
// TODO: Maybe modify only attributes instead of replacing the whole metadata?
|
| 1982 |
+
const clone = index_js_.JSONExt.deepCopy(value);
|
| 1983 |
+
const ymetadata = this.ymeta.get('metadata');
|
| 1984 |
+
// Transiently the metadata can be missing - like during destruction
|
| 1985 |
+
if (ymetadata === undefined) {
|
| 1986 |
+
return undefined;
|
| 1987 |
+
}
|
| 1988 |
+
this.transact(() => {
|
| 1989 |
+
for (const [key, value] of Object.entries(clone)) {
|
| 1990 |
+
ymetadata.set(key, value);
|
| 1991 |
+
}
|
| 1992 |
+
});
|
| 1993 |
+
}
|
| 1994 |
+
/**
|
| 1995 |
+
* Get the notebook source
|
| 1996 |
+
*
|
| 1997 |
+
* @returns The notebook
|
| 1998 |
+
*/
|
| 1999 |
+
getSource() {
|
| 2000 |
+
return this.toJSON();
|
| 2001 |
+
}
|
| 2002 |
+
/**
|
| 2003 |
+
* Set the notebook source
|
| 2004 |
+
*
|
| 2005 |
+
* @param value The notebook
|
| 2006 |
+
*/
|
| 2007 |
+
setSource(value) {
|
| 2008 |
+
this.fromJSON(value);
|
| 2009 |
+
}
|
| 2010 |
+
/**
|
| 2011 |
+
* Override the notebook with a JSON-serialized document.
|
| 2012 |
+
*
|
| 2013 |
+
* @param value The notebook
|
| 2014 |
+
*/
|
| 2015 |
+
fromJSON(value) {
|
| 2016 |
+
this.transact(() => {
|
| 2017 |
+
this.nbformat = value.nbformat;
|
| 2018 |
+
this.nbformat_minor = value.nbformat_minor;
|
| 2019 |
+
const metadata = value.metadata;
|
| 2020 |
+
if (metadata['orig_nbformat'] !== undefined) {
|
| 2021 |
+
delete metadata['orig_nbformat'];
|
| 2022 |
+
}
|
| 2023 |
+
if (!this.metadata) {
|
| 2024 |
+
const ymetadata = new yjs_mjs_.Map();
|
| 2025 |
+
for (const [key, value] of Object.entries(metadata)) {
|
| 2026 |
+
ymetadata.set(key, value);
|
| 2027 |
+
}
|
| 2028 |
+
this.ymeta.set('metadata', ymetadata);
|
| 2029 |
+
}
|
| 2030 |
+
else {
|
| 2031 |
+
this.metadata = metadata;
|
| 2032 |
+
}
|
| 2033 |
+
const useId = value.nbformat === 4 && value.nbformat_minor >= 5;
|
| 2034 |
+
const ycells = value.cells.map(cell => {
|
| 2035 |
+
if (!useId) {
|
| 2036 |
+
delete cell.id;
|
| 2037 |
+
}
|
| 2038 |
+
return cell;
|
| 2039 |
+
});
|
| 2040 |
+
this.insertCells(this.cells.length, ycells);
|
| 2041 |
+
this.deleteCellRange(0, this.cells.length);
|
| 2042 |
+
});
|
| 2043 |
+
}
|
| 2044 |
+
/**
|
| 2045 |
+
* Serialize the model to JSON.
|
| 2046 |
+
*/
|
| 2047 |
+
toJSON() {
|
| 2048 |
+
// strip cell ids if we have notebook format 4.0-4.4
|
| 2049 |
+
const pruneCellId = this.nbformat === 4 && this.nbformat_minor <= 4;
|
| 2050 |
+
return {
|
| 2051 |
+
metadata: this.metadata,
|
| 2052 |
+
nbformat_minor: this.nbformat_minor,
|
| 2053 |
+
nbformat: this.nbformat,
|
| 2054 |
+
cells: this.cells.map(c => {
|
| 2055 |
+
const raw = c.toJSON();
|
| 2056 |
+
if (pruneCellId) {
|
| 2057 |
+
delete raw.id;
|
| 2058 |
+
}
|
| 2059 |
+
return raw;
|
| 2060 |
+
})
|
| 2061 |
+
};
|
| 2062 |
+
}
|
| 2063 |
+
}
|
| 2064 |
+
//# sourceMappingURL=ynotebook.js.map
|
| 2065 |
+
;// CONCATENATED MODULE: ../node_modules/@jupyter/ydoc/lib/index.js
|
| 2066 |
+
/* -----------------------------------------------------------------------------
|
| 2067 |
+
| Copyright (c) Jupyter Development Team.
|
| 2068 |
+
| Distributed under the terms of the Modified BSD License.
|
| 2069 |
+
|----------------------------------------------------------------------------*/
|
| 2070 |
+
/**
|
| 2071 |
+
* @packageDocumentation
|
| 2072 |
+
* @module ydoc
|
| 2073 |
+
*/
|
| 2074 |
+
|
| 2075 |
+
|
| 2076 |
+
|
| 2077 |
+
|
| 2078 |
+
|
| 2079 |
+
|
| 2080 |
+
|
| 2081 |
+
|
| 2082 |
+
//# sourceMappingURL=index.js.map
|
| 2083 |
+
|
| 2084 |
+
/***/ }),
|
| 2085 |
+
|
| 2086 |
+
/***/ 79504:
|
| 2087 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 2088 |
+
|
| 2089 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 2090 |
+
/* harmony export */ Dp: () => (/* binding */ from),
|
| 2091 |
+
/* harmony export */ G: () => (/* binding */ some),
|
| 2092 |
+
/* harmony export */ JJ: () => (/* binding */ unfold),
|
| 2093 |
+
/* harmony export */ Z$: () => (/* binding */ last),
|
| 2094 |
+
/* harmony export */ kJ: () => (/* binding */ isArray),
|
| 2095 |
+
/* harmony export */ s7: () => (/* binding */ appendTo)
|
| 2096 |
+
/* harmony export */ });
|
| 2097 |
+
/* unused harmony exports create, copy, every, equalFlat, flatten, fold, unique, uniqueBy, map */
|
| 2098 |
+
/**
|
| 2099 |
+
* Utility module to work with Arrays.
|
| 2100 |
+
*
|
| 2101 |
+
* @module array
|
| 2102 |
+
*/
|
| 2103 |
+
|
| 2104 |
+
|
| 2105 |
+
|
| 2106 |
+
/**
|
| 2107 |
+
* Return the last element of an array. The element must exist
|
| 2108 |
+
*
|
| 2109 |
+
* @template L
|
| 2110 |
+
* @param {ArrayLike<L>} arr
|
| 2111 |
+
* @return {L}
|
| 2112 |
+
*/
|
| 2113 |
+
const last = arr => arr[arr.length - 1]
|
| 2114 |
+
|
| 2115 |
+
/**
|
| 2116 |
+
* @template C
|
| 2117 |
+
* @return {Array<C>}
|
| 2118 |
+
*/
|
| 2119 |
+
const create = () => /** @type {Array<C>} */ ([])
|
| 2120 |
+
|
| 2121 |
+
/**
|
| 2122 |
+
* @template D
|
| 2123 |
+
* @param {Array<D>} a
|
| 2124 |
+
* @return {Array<D>}
|
| 2125 |
+
*/
|
| 2126 |
+
const copy = a => /** @type {Array<D>} */ (a.slice())
|
| 2127 |
+
|
| 2128 |
+
/**
|
| 2129 |
+
* Append elements from src to dest
|
| 2130 |
+
*
|
| 2131 |
+
* @template M
|
| 2132 |
+
* @param {Array<M>} dest
|
| 2133 |
+
* @param {Array<M>} src
|
| 2134 |
+
*/
|
| 2135 |
+
const appendTo = (dest, src) => {
|
| 2136 |
+
for (let i = 0; i < src.length; i++) {
|
| 2137 |
+
dest.push(src[i])
|
| 2138 |
+
}
|
| 2139 |
+
}
|
| 2140 |
+
|
| 2141 |
+
/**
|
| 2142 |
+
* Transforms something array-like to an actual Array.
|
| 2143 |
+
*
|
| 2144 |
+
* @function
|
| 2145 |
+
* @template T
|
| 2146 |
+
* @param {ArrayLike<T>|Iterable<T>} arraylike
|
| 2147 |
+
* @return {T}
|
| 2148 |
+
*/
|
| 2149 |
+
const from = Array.from
|
| 2150 |
+
|
| 2151 |
+
/**
|
| 2152 |
+
* True iff condition holds on every element in the Array.
|
| 2153 |
+
*
|
| 2154 |
+
* @function
|
| 2155 |
+
* @template ITEM
|
| 2156 |
+
* @template {ArrayLike<ITEM>} ARR
|
| 2157 |
+
*
|
| 2158 |
+
* @param {ARR} arr
|
| 2159 |
+
* @param {function(ITEM, number, ARR):boolean} f
|
| 2160 |
+
* @return {boolean}
|
| 2161 |
+
*/
|
| 2162 |
+
const every = (arr, f) => {
|
| 2163 |
+
for (let i = 0; i < arr.length; i++) {
|
| 2164 |
+
if (!f(arr[i], i, arr)) {
|
| 2165 |
+
return false
|
| 2166 |
+
}
|
| 2167 |
+
}
|
| 2168 |
+
return true
|
| 2169 |
+
}
|
| 2170 |
+
|
| 2171 |
+
/**
|
| 2172 |
+
* True iff condition holds on some element in the Array.
|
| 2173 |
+
*
|
| 2174 |
+
* @function
|
| 2175 |
+
* @template S
|
| 2176 |
+
* @template {ArrayLike<S>} ARR
|
| 2177 |
+
* @param {ARR} arr
|
| 2178 |
+
* @param {function(S, number, ARR):boolean} f
|
| 2179 |
+
* @return {boolean}
|
| 2180 |
+
*/
|
| 2181 |
+
const some = (arr, f) => {
|
| 2182 |
+
for (let i = 0; i < arr.length; i++) {
|
| 2183 |
+
if (f(arr[i], i, arr)) {
|
| 2184 |
+
return true
|
| 2185 |
+
}
|
| 2186 |
+
}
|
| 2187 |
+
return false
|
| 2188 |
+
}
|
| 2189 |
+
|
| 2190 |
+
/**
|
| 2191 |
+
* @template ELEM
|
| 2192 |
+
*
|
| 2193 |
+
* @param {ArrayLike<ELEM>} a
|
| 2194 |
+
* @param {ArrayLike<ELEM>} b
|
| 2195 |
+
* @return {boolean}
|
| 2196 |
+
*/
|
| 2197 |
+
const equalFlat = (a, b) => a.length === b.length && every(a, (item, index) => item === b[index])
|
| 2198 |
+
|
| 2199 |
+
/**
|
| 2200 |
+
* @template ELEM
|
| 2201 |
+
* @param {Array<Array<ELEM>>} arr
|
| 2202 |
+
* @return {Array<ELEM>}
|
| 2203 |
+
*/
|
| 2204 |
+
const flatten = arr => fold(arr, /** @type {Array<ELEM>} */ ([]), (acc, val) => acc.concat(val))
|
| 2205 |
+
|
| 2206 |
+
/**
|
| 2207 |
+
* @template T
|
| 2208 |
+
* @param {number} len
|
| 2209 |
+
* @param {function(number, Array<T>):T} f
|
| 2210 |
+
* @return {Array<T>}
|
| 2211 |
+
*/
|
| 2212 |
+
const unfold = (len, f) => {
|
| 2213 |
+
const array = new Array(len)
|
| 2214 |
+
for (let i = 0; i < len; i++) {
|
| 2215 |
+
array[i] = f(i, array)
|
| 2216 |
+
}
|
| 2217 |
+
return array
|
| 2218 |
+
}
|
| 2219 |
+
|
| 2220 |
+
/**
|
| 2221 |
+
* @template T
|
| 2222 |
+
* @template RESULT
|
| 2223 |
+
* @param {Array<T>} arr
|
| 2224 |
+
* @param {RESULT} seed
|
| 2225 |
+
* @param {function(RESULT, T, number):RESULT} folder
|
| 2226 |
+
*/
|
| 2227 |
+
const fold = (arr, seed, folder) => arr.reduce(folder, seed)
|
| 2228 |
+
|
| 2229 |
+
const isArray = Array.isArray
|
| 2230 |
+
|
| 2231 |
+
/**
|
| 2232 |
+
* @template T
|
| 2233 |
+
* @param {Array<T>} arr
|
| 2234 |
+
* @return {Array<T>}
|
| 2235 |
+
*/
|
| 2236 |
+
const unique = arr => from(set.from(arr))
|
| 2237 |
+
|
| 2238 |
+
/**
|
| 2239 |
+
* @template T
|
| 2240 |
+
* @template M
|
| 2241 |
+
* @param {ArrayLike<T>} arr
|
| 2242 |
+
* @param {function(T):M} mapper
|
| 2243 |
+
* @return {Array<T>}
|
| 2244 |
+
*/
|
| 2245 |
+
const uniqueBy = (arr, mapper) => {
|
| 2246 |
+
/**
|
| 2247 |
+
* @type {Set<M>}
|
| 2248 |
+
*/
|
| 2249 |
+
const happened = set.create()
|
| 2250 |
+
/**
|
| 2251 |
+
* @type {Array<T>}
|
| 2252 |
+
*/
|
| 2253 |
+
const result = []
|
| 2254 |
+
for (let i = 0; i < arr.length; i++) {
|
| 2255 |
+
const el = arr[i]
|
| 2256 |
+
const mapped = mapper(el)
|
| 2257 |
+
if (!happened.has(mapped)) {
|
| 2258 |
+
happened.add(mapped)
|
| 2259 |
+
result.push(el)
|
| 2260 |
+
}
|
| 2261 |
+
}
|
| 2262 |
+
return result
|
| 2263 |
+
}
|
| 2264 |
+
|
| 2265 |
+
/**
|
| 2266 |
+
* @template {ArrayLike<any>} ARR
|
| 2267 |
+
* @template {function(ARR extends ArrayLike<infer T> ? T : never, number, ARR):any} MAPPER
|
| 2268 |
+
* @param {ARR} arr
|
| 2269 |
+
* @param {MAPPER} mapper
|
| 2270 |
+
* @return {Array<MAPPER extends function(...any): infer M ? M : never>}
|
| 2271 |
+
*/
|
| 2272 |
+
const map = (arr, mapper) => {
|
| 2273 |
+
/**
|
| 2274 |
+
* @type {Array<any>}
|
| 2275 |
+
*/
|
| 2276 |
+
const res = Array(arr.length)
|
| 2277 |
+
for (let i = 0; i < arr.length; i++) {
|
| 2278 |
+
res[i] = mapper(/** @type {any} */ (arr[i]), i, /** @type {any} */ (arr))
|
| 2279 |
+
}
|
| 2280 |
+
return /** @type {any} */ (res)
|
| 2281 |
+
}
|
| 2282 |
+
|
| 2283 |
+
|
| 2284 |
+
/***/ }),
|
| 2285 |
+
|
| 2286 |
+
/***/ 38828:
|
| 2287 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 2288 |
+
|
| 2289 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 2290 |
+
/* harmony export */ Hi: () => (/* binding */ equalityDeep),
|
| 2291 |
+
/* harmony export */ PP: () => (/* binding */ callAll),
|
| 2292 |
+
/* harmony export */ gB: () => (/* binding */ isOneOf),
|
| 2293 |
+
/* harmony export */ id: () => (/* binding */ id)
|
| 2294 |
+
/* harmony export */ });
|
| 2295 |
+
/* unused harmony exports nop, apply, equalityStrict, equalityFlat, isArray, isString, isNumber, is, isTemplate */
|
| 2296 |
+
/* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(79504);
|
| 2297 |
+
/* harmony import */ var _object_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36498);
|
| 2298 |
+
/**
|
| 2299 |
+
* Common functions and function call helpers.
|
| 2300 |
+
*
|
| 2301 |
+
* @module function
|
| 2302 |
+
*/
|
| 2303 |
+
|
| 2304 |
+
|
| 2305 |
+
|
| 2306 |
+
|
| 2307 |
+
/**
|
| 2308 |
+
* Calls all functions in `fs` with args. Only throws after all functions were called.
|
| 2309 |
+
*
|
| 2310 |
+
* @param {Array<function>} fs
|
| 2311 |
+
* @param {Array<any>} args
|
| 2312 |
+
*/
|
| 2313 |
+
const callAll = (fs, args, i = 0) => {
|
| 2314 |
+
try {
|
| 2315 |
+
for (; i < fs.length; i++) {
|
| 2316 |
+
fs[i](...args)
|
| 2317 |
+
}
|
| 2318 |
+
} finally {
|
| 2319 |
+
if (i < fs.length) {
|
| 2320 |
+
callAll(fs, args, i + 1)
|
| 2321 |
+
}
|
| 2322 |
+
}
|
| 2323 |
+
}
|
| 2324 |
+
|
| 2325 |
+
const nop = () => {}
|
| 2326 |
+
|
| 2327 |
+
/**
|
| 2328 |
+
* @template T
|
| 2329 |
+
* @param {function():T} f
|
| 2330 |
+
* @return {T}
|
| 2331 |
+
*/
|
| 2332 |
+
const apply = f => f()
|
| 2333 |
+
|
| 2334 |
+
/**
|
| 2335 |
+
* @template A
|
| 2336 |
+
*
|
| 2337 |
+
* @param {A} a
|
| 2338 |
+
* @return {A}
|
| 2339 |
+
*/
|
| 2340 |
+
const id = a => a
|
| 2341 |
+
|
| 2342 |
+
/**
|
| 2343 |
+
* @template T
|
| 2344 |
+
*
|
| 2345 |
+
* @param {T} a
|
| 2346 |
+
* @param {T} b
|
| 2347 |
+
* @return {boolean}
|
| 2348 |
+
*/
|
| 2349 |
+
const equalityStrict = (a, b) => a === b
|
| 2350 |
+
|
| 2351 |
+
/**
|
| 2352 |
+
* @template T
|
| 2353 |
+
*
|
| 2354 |
+
* @param {Array<T>|object} a
|
| 2355 |
+
* @param {Array<T>|object} b
|
| 2356 |
+
* @return {boolean}
|
| 2357 |
+
*/
|
| 2358 |
+
const equalityFlat = (a, b) => a === b || (a != null && b != null && a.constructor === b.constructor && ((array.isArray(a) && array.equalFlat(a, /** @type {Array<T>} */ (b))) || (typeof a === 'object' && object.equalFlat(a, b))))
|
| 2359 |
+
|
| 2360 |
+
/* c8 ignore start */
|
| 2361 |
+
|
| 2362 |
+
/**
|
| 2363 |
+
* @param {any} a
|
| 2364 |
+
* @param {any} b
|
| 2365 |
+
* @return {boolean}
|
| 2366 |
+
*/
|
| 2367 |
+
const equalityDeep = (a, b) => {
|
| 2368 |
+
if (a == null || b == null) {
|
| 2369 |
+
return equalityStrict(a, b)
|
| 2370 |
+
}
|
| 2371 |
+
if (a.constructor !== b.constructor) {
|
| 2372 |
+
return false
|
| 2373 |
+
}
|
| 2374 |
+
if (a === b) {
|
| 2375 |
+
return true
|
| 2376 |
+
}
|
| 2377 |
+
switch (a.constructor) {
|
| 2378 |
+
case ArrayBuffer:
|
| 2379 |
+
a = new Uint8Array(a)
|
| 2380 |
+
b = new Uint8Array(b)
|
| 2381 |
+
// eslint-disable-next-line no-fallthrough
|
| 2382 |
+
case Uint8Array: {
|
| 2383 |
+
if (a.byteLength !== b.byteLength) {
|
| 2384 |
+
return false
|
| 2385 |
+
}
|
| 2386 |
+
for (let i = 0; i < a.length; i++) {
|
| 2387 |
+
if (a[i] !== b[i]) {
|
| 2388 |
+
return false
|
| 2389 |
+
}
|
| 2390 |
+
}
|
| 2391 |
+
break
|
| 2392 |
+
}
|
| 2393 |
+
case Set: {
|
| 2394 |
+
if (a.size !== b.size) {
|
| 2395 |
+
return false
|
| 2396 |
+
}
|
| 2397 |
+
for (const value of a) {
|
| 2398 |
+
if (!b.has(value)) {
|
| 2399 |
+
return false
|
| 2400 |
+
}
|
| 2401 |
+
}
|
| 2402 |
+
break
|
| 2403 |
+
}
|
| 2404 |
+
case Map: {
|
| 2405 |
+
if (a.size !== b.size) {
|
| 2406 |
+
return false
|
| 2407 |
+
}
|
| 2408 |
+
for (const key of a.keys()) {
|
| 2409 |
+
if (!b.has(key) || !equalityDeep(a.get(key), b.get(key))) {
|
| 2410 |
+
return false
|
| 2411 |
+
}
|
| 2412 |
+
}
|
| 2413 |
+
break
|
| 2414 |
+
}
|
| 2415 |
+
case Object:
|
| 2416 |
+
if (_object_js__WEBPACK_IMPORTED_MODULE_0__/* .length */ .kE(a) !== _object_js__WEBPACK_IMPORTED_MODULE_0__/* .length */ .kE(b)) {
|
| 2417 |
+
return false
|
| 2418 |
+
}
|
| 2419 |
+
for (const key in a) {
|
| 2420 |
+
if (!_object_js__WEBPACK_IMPORTED_MODULE_0__/* .hasProperty */ .l$(a, key) || !equalityDeep(a[key], b[key])) {
|
| 2421 |
+
return false
|
| 2422 |
+
}
|
| 2423 |
+
}
|
| 2424 |
+
break
|
| 2425 |
+
case Array:
|
| 2426 |
+
if (a.length !== b.length) {
|
| 2427 |
+
return false
|
| 2428 |
+
}
|
| 2429 |
+
for (let i = 0; i < a.length; i++) {
|
| 2430 |
+
if (!equalityDeep(a[i], b[i])) {
|
| 2431 |
+
return false
|
| 2432 |
+
}
|
| 2433 |
+
}
|
| 2434 |
+
break
|
| 2435 |
+
default:
|
| 2436 |
+
return false
|
| 2437 |
+
}
|
| 2438 |
+
return true
|
| 2439 |
+
}
|
| 2440 |
+
|
| 2441 |
+
/**
|
| 2442 |
+
* @template V
|
| 2443 |
+
* @template {V} OPTS
|
| 2444 |
+
*
|
| 2445 |
+
* @param {V} value
|
| 2446 |
+
* @param {Array<OPTS>} options
|
| 2447 |
+
*/
|
| 2448 |
+
// @ts-ignore
|
| 2449 |
+
const isOneOf = (value, options) => options.includes(value)
|
| 2450 |
+
/* c8 ignore stop */
|
| 2451 |
+
|
| 2452 |
+
const isArray = _array_js__WEBPACK_IMPORTED_MODULE_1__/* .isArray */ .kJ
|
| 2453 |
+
|
| 2454 |
+
/**
|
| 2455 |
+
* @param {any} s
|
| 2456 |
+
* @return {s is String}
|
| 2457 |
+
*/
|
| 2458 |
+
const isString = (s) => s && s.constructor === String
|
| 2459 |
+
|
| 2460 |
+
/**
|
| 2461 |
+
* @param {any} n
|
| 2462 |
+
* @return {n is Number}
|
| 2463 |
+
*/
|
| 2464 |
+
const isNumber = n => n != null && n.constructor === Number
|
| 2465 |
+
|
| 2466 |
+
/**
|
| 2467 |
+
* @template {abstract new (...args: any) => any} TYPE
|
| 2468 |
+
* @param {any} n
|
| 2469 |
+
* @param {TYPE} T
|
| 2470 |
+
* @return {n is InstanceType<TYPE>}
|
| 2471 |
+
*/
|
| 2472 |
+
const is = (n, T) => n && n.constructor === T
|
| 2473 |
+
|
| 2474 |
+
/**
|
| 2475 |
+
* @template {abstract new (...args: any) => any} TYPE
|
| 2476 |
+
* @param {TYPE} T
|
| 2477 |
+
*/
|
| 2478 |
+
const isTemplate = (T) =>
|
| 2479 |
+
/**
|
| 2480 |
+
* @param {any} n
|
| 2481 |
+
* @return {n is InstanceType<TYPE>}
|
| 2482 |
+
**/
|
| 2483 |
+
n => n && n.constructor === T
|
| 2484 |
+
|
| 2485 |
+
|
| 2486 |
+
/***/ }),
|
| 2487 |
+
|
| 2488 |
+
/***/ 22592:
|
| 2489 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 2490 |
+
|
| 2491 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 2492 |
+
/* harmony export */ JG: () => (/* binding */ copy),
|
| 2493 |
+
/* harmony export */ UI: () => (/* binding */ map),
|
| 2494 |
+
/* harmony export */ Ue: () => (/* binding */ create),
|
| 2495 |
+
/* harmony export */ Yj: () => (/* binding */ any),
|
| 2496 |
+
/* harmony export */ Yu: () => (/* binding */ setIfUndefined)
|
| 2497 |
+
/* harmony export */ });
|
| 2498 |
+
/* unused harmony export all */
|
| 2499 |
+
/**
|
| 2500 |
+
* Utility module to work with key-value stores.
|
| 2501 |
+
*
|
| 2502 |
+
* @module map
|
| 2503 |
+
*/
|
| 2504 |
+
|
| 2505 |
+
/**
|
| 2506 |
+
* Creates a new Map instance.
|
| 2507 |
+
*
|
| 2508 |
+
* @function
|
| 2509 |
+
* @return {Map<any, any>}
|
| 2510 |
+
*
|
| 2511 |
+
* @function
|
| 2512 |
+
*/
|
| 2513 |
+
const create = () => new Map()
|
| 2514 |
+
|
| 2515 |
+
/**
|
| 2516 |
+
* Copy a Map object into a fresh Map object.
|
| 2517 |
+
*
|
| 2518 |
+
* @function
|
| 2519 |
+
* @template X,Y
|
| 2520 |
+
* @param {Map<X,Y>} m
|
| 2521 |
+
* @return {Map<X,Y>}
|
| 2522 |
+
*/
|
| 2523 |
+
const copy = m => {
|
| 2524 |
+
const r = create()
|
| 2525 |
+
m.forEach((v, k) => { r.set(k, v) })
|
| 2526 |
+
return r
|
| 2527 |
+
}
|
| 2528 |
+
|
| 2529 |
+
/**
|
| 2530 |
+
* Get map property. Create T if property is undefined and set T on map.
|
| 2531 |
+
*
|
| 2532 |
+
* ```js
|
| 2533 |
+
* const listeners = map.setIfUndefined(events, 'eventName', set.create)
|
| 2534 |
+
* listeners.add(listener)
|
| 2535 |
+
* ```
|
| 2536 |
+
*
|
| 2537 |
+
* @function
|
| 2538 |
+
* @template V,K
|
| 2539 |
+
* @template {Map<K,V>} MAP
|
| 2540 |
+
* @param {MAP} map
|
| 2541 |
+
* @param {K} key
|
| 2542 |
+
* @param {function():V} createT
|
| 2543 |
+
* @return {V}
|
| 2544 |
+
*/
|
| 2545 |
+
const setIfUndefined = (map, key, createT) => {
|
| 2546 |
+
let set = map.get(key)
|
| 2547 |
+
if (set === undefined) {
|
| 2548 |
+
map.set(key, set = createT())
|
| 2549 |
+
}
|
| 2550 |
+
return set
|
| 2551 |
+
}
|
| 2552 |
+
|
| 2553 |
+
/**
|
| 2554 |
+
* Creates an Array and populates it with the content of all key-value pairs using the `f(value, key)` function.
|
| 2555 |
+
*
|
| 2556 |
+
* @function
|
| 2557 |
+
* @template K
|
| 2558 |
+
* @template V
|
| 2559 |
+
* @template R
|
| 2560 |
+
* @param {Map<K,V>} m
|
| 2561 |
+
* @param {function(V,K):R} f
|
| 2562 |
+
* @return {Array<R>}
|
| 2563 |
+
*/
|
| 2564 |
+
const map = (m, f) => {
|
| 2565 |
+
const res = []
|
| 2566 |
+
for (const [key, value] of m) {
|
| 2567 |
+
res.push(f(value, key))
|
| 2568 |
+
}
|
| 2569 |
+
return res
|
| 2570 |
+
}
|
| 2571 |
+
|
| 2572 |
+
/**
|
| 2573 |
+
* Tests whether any key-value pairs pass the test implemented by `f(value, key)`.
|
| 2574 |
+
*
|
| 2575 |
+
* @todo should rename to some - similarly to Array.some
|
| 2576 |
+
*
|
| 2577 |
+
* @function
|
| 2578 |
+
* @template K
|
| 2579 |
+
* @template V
|
| 2580 |
+
* @param {Map<K,V>} m
|
| 2581 |
+
* @param {function(V,K):boolean} f
|
| 2582 |
+
* @return {boolean}
|
| 2583 |
+
*/
|
| 2584 |
+
const any = (m, f) => {
|
| 2585 |
+
for (const [key, value] of m) {
|
| 2586 |
+
if (f(value, key)) {
|
| 2587 |
+
return true
|
| 2588 |
+
}
|
| 2589 |
+
}
|
| 2590 |
+
return false
|
| 2591 |
+
}
|
| 2592 |
+
|
| 2593 |
+
/**
|
| 2594 |
+
* Tests whether all key-value pairs pass the test implemented by `f(value, key)`.
|
| 2595 |
+
*
|
| 2596 |
+
* @function
|
| 2597 |
+
* @template K
|
| 2598 |
+
* @template V
|
| 2599 |
+
* @param {Map<K,V>} m
|
| 2600 |
+
* @param {function(V,K):boolean} f
|
| 2601 |
+
* @return {boolean}
|
| 2602 |
+
*/
|
| 2603 |
+
const all = (m, f) => {
|
| 2604 |
+
for (const [key, value] of m) {
|
| 2605 |
+
if (!f(value, key)) {
|
| 2606 |
+
return false
|
| 2607 |
+
}
|
| 2608 |
+
}
|
| 2609 |
+
return true
|
| 2610 |
+
}
|
| 2611 |
+
|
| 2612 |
+
|
| 2613 |
+
/***/ }),
|
| 2614 |
+
|
| 2615 |
+
/***/ 11182:
|
| 2616 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 2617 |
+
|
| 2618 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 2619 |
+
/* harmony export */ Fp: () => (/* binding */ max),
|
| 2620 |
+
/* harmony export */ GR: () => (/* binding */ isNegativeZero),
|
| 2621 |
+
/* harmony export */ GW: () => (/* binding */ floor),
|
| 2622 |
+
/* harmony export */ VV: () => (/* binding */ min),
|
| 2623 |
+
/* harmony export */ Wn: () => (/* binding */ abs)
|
| 2624 |
+
/* harmony export */ });
|
| 2625 |
+
/* unused harmony exports ceil, imul, round, log10, log2, log, sqrt, add, isNaN, pow, exp10, sign */
|
| 2626 |
+
/**
|
| 2627 |
+
* Common Math expressions.
|
| 2628 |
+
*
|
| 2629 |
+
* @module math
|
| 2630 |
+
*/
|
| 2631 |
+
|
| 2632 |
+
const floor = Math.floor
|
| 2633 |
+
const ceil = Math.ceil
|
| 2634 |
+
const abs = Math.abs
|
| 2635 |
+
const imul = Math.imul
|
| 2636 |
+
const round = Math.round
|
| 2637 |
+
const log10 = Math.log10
|
| 2638 |
+
const log2 = Math.log2
|
| 2639 |
+
const log = Math.log
|
| 2640 |
+
const sqrt = Math.sqrt
|
| 2641 |
+
|
| 2642 |
+
/**
|
| 2643 |
+
* @function
|
| 2644 |
+
* @param {number} a
|
| 2645 |
+
* @param {number} b
|
| 2646 |
+
* @return {number} The sum of a and b
|
| 2647 |
+
*/
|
| 2648 |
+
const add = (a, b) => a + b
|
| 2649 |
+
|
| 2650 |
+
/**
|
| 2651 |
+
* @function
|
| 2652 |
+
* @param {number} a
|
| 2653 |
+
* @param {number} b
|
| 2654 |
+
* @return {number} The smaller element of a and b
|
| 2655 |
+
*/
|
| 2656 |
+
const min = (a, b) => a < b ? a : b
|
| 2657 |
+
|
| 2658 |
+
/**
|
| 2659 |
+
* @function
|
| 2660 |
+
* @param {number} a
|
| 2661 |
+
* @param {number} b
|
| 2662 |
+
* @return {number} The bigger element of a and b
|
| 2663 |
+
*/
|
| 2664 |
+
const max = (a, b) => a > b ? a : b
|
| 2665 |
+
|
| 2666 |
+
const isNaN = Number.isNaN
|
| 2667 |
+
|
| 2668 |
+
const pow = Math.pow
|
| 2669 |
+
/**
|
| 2670 |
+
* Base 10 exponential function. Returns the value of 10 raised to the power of pow.
|
| 2671 |
+
*
|
| 2672 |
+
* @param {number} exp
|
| 2673 |
+
* @return {number}
|
| 2674 |
+
*/
|
| 2675 |
+
const exp10 = exp => Math.pow(10, exp)
|
| 2676 |
+
|
| 2677 |
+
const sign = Math.sign
|
| 2678 |
+
|
| 2679 |
+
/**
|
| 2680 |
+
* @param {number} n
|
| 2681 |
+
* @return {boolean} Wether n is negative. This function also differentiates between -0 and +0
|
| 2682 |
+
*/
|
| 2683 |
+
const isNegativeZero = n => n !== 0 ? n < 0 : 1 / n < 0
|
| 2684 |
+
|
| 2685 |
+
|
| 2686 |
+
/***/ }),
|
| 2687 |
+
|
| 2688 |
+
/***/ 36498:
|
| 2689 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 2690 |
+
|
| 2691 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 2692 |
+
/* harmony export */ $m: () => (/* binding */ equalFlat),
|
| 2693 |
+
/* harmony export */ Ed: () => (/* binding */ forEach),
|
| 2694 |
+
/* harmony export */ f0: () => (/* binding */ assign),
|
| 2695 |
+
/* harmony export */ kE: () => (/* binding */ length),
|
| 2696 |
+
/* harmony export */ l$: () => (/* binding */ hasProperty),
|
| 2697 |
+
/* harmony export */ xb: () => (/* binding */ isEmpty)
|
| 2698 |
+
/* harmony export */ });
|
| 2699 |
+
/* unused harmony exports create, keys, map, some, every */
|
| 2700 |
+
/**
|
| 2701 |
+
* Utility functions for working with EcmaScript objects.
|
| 2702 |
+
*
|
| 2703 |
+
* @module object
|
| 2704 |
+
*/
|
| 2705 |
+
|
| 2706 |
+
/**
|
| 2707 |
+
* @return {Object<string,any>} obj
|
| 2708 |
+
*/
|
| 2709 |
+
const create = () => Object.create(null)
|
| 2710 |
+
|
| 2711 |
+
/**
|
| 2712 |
+
* Object.assign
|
| 2713 |
+
*/
|
| 2714 |
+
const assign = Object.assign
|
| 2715 |
+
|
| 2716 |
+
/**
|
| 2717 |
+
* @param {Object<string,any>} obj
|
| 2718 |
+
*/
|
| 2719 |
+
const keys = Object.keys
|
| 2720 |
+
|
| 2721 |
+
/**
|
| 2722 |
+
* @template V
|
| 2723 |
+
* @param {{[k:string]:V}} obj
|
| 2724 |
+
* @param {function(V,string):any} f
|
| 2725 |
+
*/
|
| 2726 |
+
const forEach = (obj, f) => {
|
| 2727 |
+
for (const key in obj) {
|
| 2728 |
+
f(obj[key], key)
|
| 2729 |
+
}
|
| 2730 |
+
}
|
| 2731 |
+
|
| 2732 |
+
/**
|
| 2733 |
+
* @todo implement mapToArray & map
|
| 2734 |
+
*
|
| 2735 |
+
* @template R
|
| 2736 |
+
* @param {Object<string,any>} obj
|
| 2737 |
+
* @param {function(any,string):R} f
|
| 2738 |
+
* @return {Array<R>}
|
| 2739 |
+
*/
|
| 2740 |
+
const map = (obj, f) => {
|
| 2741 |
+
const results = []
|
| 2742 |
+
for (const key in obj) {
|
| 2743 |
+
results.push(f(obj[key], key))
|
| 2744 |
+
}
|
| 2745 |
+
return results
|
| 2746 |
+
}
|
| 2747 |
+
|
| 2748 |
+
/**
|
| 2749 |
+
* @param {Object<string,any>} obj
|
| 2750 |
+
* @return {number}
|
| 2751 |
+
*/
|
| 2752 |
+
const length = obj => keys(obj).length
|
| 2753 |
+
|
| 2754 |
+
/**
|
| 2755 |
+
* @param {Object<string,any>} obj
|
| 2756 |
+
* @param {function(any,string):boolean} f
|
| 2757 |
+
* @return {boolean}
|
| 2758 |
+
*/
|
| 2759 |
+
const some = (obj, f) => {
|
| 2760 |
+
for (const key in obj) {
|
| 2761 |
+
if (f(obj[key], key)) {
|
| 2762 |
+
return true
|
| 2763 |
+
}
|
| 2764 |
+
}
|
| 2765 |
+
return false
|
| 2766 |
+
}
|
| 2767 |
+
|
| 2768 |
+
/**
|
| 2769 |
+
* @param {Object|undefined} obj
|
| 2770 |
+
*/
|
| 2771 |
+
const isEmpty = obj => {
|
| 2772 |
+
// eslint-disable-next-line
|
| 2773 |
+
for (const _k in obj) {
|
| 2774 |
+
return false
|
| 2775 |
+
}
|
| 2776 |
+
return true
|
| 2777 |
+
}
|
| 2778 |
+
|
| 2779 |
+
/**
|
| 2780 |
+
* @param {Object<string,any>} obj
|
| 2781 |
+
* @param {function(any,string):boolean} f
|
| 2782 |
+
* @return {boolean}
|
| 2783 |
+
*/
|
| 2784 |
+
const every = (obj, f) => {
|
| 2785 |
+
for (const key in obj) {
|
| 2786 |
+
if (!f(obj[key], key)) {
|
| 2787 |
+
return false
|
| 2788 |
+
}
|
| 2789 |
+
}
|
| 2790 |
+
return true
|
| 2791 |
+
}
|
| 2792 |
+
|
| 2793 |
+
/**
|
| 2794 |
+
* Calls `Object.prototype.hasOwnProperty`.
|
| 2795 |
+
*
|
| 2796 |
+
* @param {any} obj
|
| 2797 |
+
* @param {string|symbol} key
|
| 2798 |
+
* @return {boolean}
|
| 2799 |
+
*/
|
| 2800 |
+
const hasProperty = (obj, key) => Object.prototype.hasOwnProperty.call(obj, key)
|
| 2801 |
+
|
| 2802 |
+
/**
|
| 2803 |
+
* @param {Object<string,any>} a
|
| 2804 |
+
* @param {Object<string,any>} b
|
| 2805 |
+
* @return {boolean}
|
| 2806 |
+
*/
|
| 2807 |
+
const equalFlat = (a, b) => a === b || (length(a) === length(b) && every(a, (val, key) => (val !== undefined || hasProperty(b, key)) && b[key] === val))
|
| 2808 |
+
|
| 2809 |
+
|
| 2810 |
+
/***/ }),
|
| 2811 |
+
|
| 2812 |
+
/***/ 12330:
|
| 2813 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 2814 |
+
|
| 2815 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 2816 |
+
/* harmony export */ y: () => (/* binding */ Observable)
|
| 2817 |
+
/* harmony export */ });
|
| 2818 |
+
/* unused harmony export ObservableV2 */
|
| 2819 |
+
/* harmony import */ var _map_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22592);
|
| 2820 |
+
/* harmony import */ var _set_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(79287);
|
| 2821 |
+
/* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79504);
|
| 2822 |
+
/**
|
| 2823 |
+
* Observable class prototype.
|
| 2824 |
+
*
|
| 2825 |
+
* @module observable
|
| 2826 |
+
*/
|
| 2827 |
+
|
| 2828 |
+
|
| 2829 |
+
|
| 2830 |
+
|
| 2831 |
+
|
| 2832 |
+
/**
|
| 2833 |
+
* Handles named events.
|
| 2834 |
+
* @experimental
|
| 2835 |
+
*
|
| 2836 |
+
* This is basically a (better typed) duplicate of Observable, which will replace Observable in the
|
| 2837 |
+
* next release.
|
| 2838 |
+
*
|
| 2839 |
+
* @template {{[key: string]: function(...any):void}} EVENTS
|
| 2840 |
+
*/
|
| 2841 |
+
class ObservableV2 {
|
| 2842 |
+
constructor () {
|
| 2843 |
+
/**
|
| 2844 |
+
* Some desc.
|
| 2845 |
+
* @type {Map<string, Set<any>>}
|
| 2846 |
+
*/
|
| 2847 |
+
this._observers = map.create()
|
| 2848 |
+
}
|
| 2849 |
+
|
| 2850 |
+
/**
|
| 2851 |
+
* @template {string} NAME
|
| 2852 |
+
* @param {NAME} name
|
| 2853 |
+
* @param {EVENTS[NAME]} f
|
| 2854 |
+
*/
|
| 2855 |
+
on (name, f) {
|
| 2856 |
+
map.setIfUndefined(this._observers, /** @type {string} */ (name), set.create).add(f)
|
| 2857 |
+
return f
|
| 2858 |
+
}
|
| 2859 |
+
|
| 2860 |
+
/**
|
| 2861 |
+
* @template {string} NAME
|
| 2862 |
+
* @param {NAME} name
|
| 2863 |
+
* @param {EVENTS[NAME]} f
|
| 2864 |
+
*/
|
| 2865 |
+
once (name, f) {
|
| 2866 |
+
/**
|
| 2867 |
+
* @param {...any} args
|
| 2868 |
+
*/
|
| 2869 |
+
const _f = (...args) => {
|
| 2870 |
+
this.off(name, /** @type {any} */ (_f))
|
| 2871 |
+
f(...args)
|
| 2872 |
+
}
|
| 2873 |
+
this.on(name, /** @type {any} */ (_f))
|
| 2874 |
+
}
|
| 2875 |
+
|
| 2876 |
+
/**
|
| 2877 |
+
* @template {string} NAME
|
| 2878 |
+
* @param {NAME} name
|
| 2879 |
+
* @param {EVENTS[NAME]} f
|
| 2880 |
+
*/
|
| 2881 |
+
off (name, f) {
|
| 2882 |
+
const observers = this._observers.get(name)
|
| 2883 |
+
if (observers !== undefined) {
|
| 2884 |
+
observers.delete(f)
|
| 2885 |
+
if (observers.size === 0) {
|
| 2886 |
+
this._observers.delete(name)
|
| 2887 |
+
}
|
| 2888 |
+
}
|
| 2889 |
+
}
|
| 2890 |
+
|
| 2891 |
+
/**
|
| 2892 |
+
* Emit a named event. All registered event listeners that listen to the
|
| 2893 |
+
* specified name will receive the event.
|
| 2894 |
+
*
|
| 2895 |
+
* @todo This should catch exceptions
|
| 2896 |
+
*
|
| 2897 |
+
* @template {string} NAME
|
| 2898 |
+
* @param {NAME} name The event name.
|
| 2899 |
+
* @param {Parameters<EVENTS[NAME]>} args The arguments that are applied to the event listener.
|
| 2900 |
+
*/
|
| 2901 |
+
emit (name, args) {
|
| 2902 |
+
// copy all listeners to an array first to make sure that no event is emitted to listeners that are subscribed while the event handler is called.
|
| 2903 |
+
return array.from((this._observers.get(name) || map.create()).values()).forEach(f => f(...args))
|
| 2904 |
+
}
|
| 2905 |
+
|
| 2906 |
+
destroy () {
|
| 2907 |
+
this._observers = map.create()
|
| 2908 |
+
}
|
| 2909 |
+
}
|
| 2910 |
+
|
| 2911 |
+
/* c8 ignore start */
|
| 2912 |
+
/**
|
| 2913 |
+
* Handles named events.
|
| 2914 |
+
*
|
| 2915 |
+
* @deprecated
|
| 2916 |
+
* @template N
|
| 2917 |
+
*/
|
| 2918 |
+
class Observable {
|
| 2919 |
+
constructor () {
|
| 2920 |
+
/**
|
| 2921 |
+
* Some desc.
|
| 2922 |
+
* @type {Map<N, any>}
|
| 2923 |
+
*/
|
| 2924 |
+
this._observers = _map_js__WEBPACK_IMPORTED_MODULE_0__/* .create */ .Ue()
|
| 2925 |
+
}
|
| 2926 |
+
|
| 2927 |
+
/**
|
| 2928 |
+
* @param {N} name
|
| 2929 |
+
* @param {function} f
|
| 2930 |
+
*/
|
| 2931 |
+
on (name, f) {
|
| 2932 |
+
_map_js__WEBPACK_IMPORTED_MODULE_0__/* .setIfUndefined */ .Yu(this._observers, name, _set_js__WEBPACK_IMPORTED_MODULE_1__/* .create */ .Ue).add(f)
|
| 2933 |
+
}
|
| 2934 |
+
|
| 2935 |
+
/**
|
| 2936 |
+
* @param {N} name
|
| 2937 |
+
* @param {function} f
|
| 2938 |
+
*/
|
| 2939 |
+
once (name, f) {
|
| 2940 |
+
/**
|
| 2941 |
+
* @param {...any} args
|
| 2942 |
+
*/
|
| 2943 |
+
const _f = (...args) => {
|
| 2944 |
+
this.off(name, _f)
|
| 2945 |
+
f(...args)
|
| 2946 |
+
}
|
| 2947 |
+
this.on(name, _f)
|
| 2948 |
+
}
|
| 2949 |
+
|
| 2950 |
+
/**
|
| 2951 |
+
* @param {N} name
|
| 2952 |
+
* @param {function} f
|
| 2953 |
+
*/
|
| 2954 |
+
off (name, f) {
|
| 2955 |
+
const observers = this._observers.get(name)
|
| 2956 |
+
if (observers !== undefined) {
|
| 2957 |
+
observers.delete(f)
|
| 2958 |
+
if (observers.size === 0) {
|
| 2959 |
+
this._observers.delete(name)
|
| 2960 |
+
}
|
| 2961 |
+
}
|
| 2962 |
+
}
|
| 2963 |
+
|
| 2964 |
+
/**
|
| 2965 |
+
* Emit a named event. All registered event listeners that listen to the
|
| 2966 |
+
* specified name will receive the event.
|
| 2967 |
+
*
|
| 2968 |
+
* @todo This should catch exceptions
|
| 2969 |
+
*
|
| 2970 |
+
* @param {N} name The event name.
|
| 2971 |
+
* @param {Array<any>} args The arguments that are applied to the event listener.
|
| 2972 |
+
*/
|
| 2973 |
+
emit (name, args) {
|
| 2974 |
+
// copy all listeners to an array first to make sure that no event is emitted to listeners that are subscribed while the event handler is called.
|
| 2975 |
+
return _array_js__WEBPACK_IMPORTED_MODULE_2__/* .from */ .Dp((this._observers.get(name) || _map_js__WEBPACK_IMPORTED_MODULE_0__/* .create */ .Ue()).values()).forEach(f => f(...args))
|
| 2976 |
+
}
|
| 2977 |
+
|
| 2978 |
+
destroy () {
|
| 2979 |
+
this._observers = _map_js__WEBPACK_IMPORTED_MODULE_0__/* .create */ .Ue()
|
| 2980 |
+
}
|
| 2981 |
+
}
|
| 2982 |
+
/* c8 ignore end */
|
| 2983 |
+
|
| 2984 |
+
|
| 2985 |
+
/***/ }),
|
| 2986 |
+
|
| 2987 |
+
/***/ 79287:
|
| 2988 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 2989 |
+
|
| 2990 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 2991 |
+
/* harmony export */ Ue: () => (/* binding */ create)
|
| 2992 |
+
/* harmony export */ });
|
| 2993 |
+
/* unused harmony exports toArray, first, from */
|
| 2994 |
+
/**
|
| 2995 |
+
* Utility module to work with sets.
|
| 2996 |
+
*
|
| 2997 |
+
* @module set
|
| 2998 |
+
*/
|
| 2999 |
+
|
| 3000 |
+
const create = () => new Set()
|
| 3001 |
+
|
| 3002 |
+
/**
|
| 3003 |
+
* @template T
|
| 3004 |
+
* @param {Set<T>} set
|
| 3005 |
+
* @return {Array<T>}
|
| 3006 |
+
*/
|
| 3007 |
+
const toArray = set => Array.from(set)
|
| 3008 |
+
|
| 3009 |
+
/**
|
| 3010 |
+
* @template T
|
| 3011 |
+
* @param {Set<T>} set
|
| 3012 |
+
* @return {T}
|
| 3013 |
+
*/
|
| 3014 |
+
const first = set =>
|
| 3015 |
+
set.values().next().value || undefined
|
| 3016 |
+
|
| 3017 |
+
/**
|
| 3018 |
+
* @template T
|
| 3019 |
+
* @param {Iterable<T>} entries
|
| 3020 |
+
* @return {Set<T>}
|
| 3021 |
+
*/
|
| 3022 |
+
const from = entries => new Set(entries)
|
| 3023 |
+
|
| 3024 |
+
|
| 3025 |
+
/***/ }),
|
| 3026 |
+
|
| 3027 |
+
/***/ 2431:
|
| 3028 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 3029 |
+
|
| 3030 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 3031 |
+
/* harmony export */ ZG: () => (/* binding */ getUnixTime)
|
| 3032 |
+
/* harmony export */ });
|
| 3033 |
+
/* unused harmony exports getDate, humanizeDuration */
|
| 3034 |
+
/**
|
| 3035 |
+
* Utility module to work with time.
|
| 3036 |
+
*
|
| 3037 |
+
* @module time
|
| 3038 |
+
*/
|
| 3039 |
+
|
| 3040 |
+
|
| 3041 |
+
|
| 3042 |
+
|
| 3043 |
+
/**
|
| 3044 |
+
* Return current time.
|
| 3045 |
+
*
|
| 3046 |
+
* @return {Date}
|
| 3047 |
+
*/
|
| 3048 |
+
const getDate = () => new Date()
|
| 3049 |
+
|
| 3050 |
+
/**
|
| 3051 |
+
* Return current unix time.
|
| 3052 |
+
*
|
| 3053 |
+
* @return {number}
|
| 3054 |
+
*/
|
| 3055 |
+
const getUnixTime = Date.now
|
| 3056 |
+
|
| 3057 |
+
/**
|
| 3058 |
+
* Transform time (in ms) to a human readable format. E.g. 1100 => 1.1s. 60s => 1min. .001 => 10μs.
|
| 3059 |
+
*
|
| 3060 |
+
* @param {number} d duration in milliseconds
|
| 3061 |
+
* @return {string} humanized approximation of time
|
| 3062 |
+
*/
|
| 3063 |
+
const humanizeDuration = d => {
|
| 3064 |
+
if (d < 60000) {
|
| 3065 |
+
const p = metric.prefix(d, -1)
|
| 3066 |
+
return math.round(p.n * 100) / 100 + p.prefix + 's'
|
| 3067 |
+
}
|
| 3068 |
+
d = math.floor(d / 1000)
|
| 3069 |
+
const seconds = d % 60
|
| 3070 |
+
const minutes = math.floor(d / 60) % 60
|
| 3071 |
+
const hours = math.floor(d / 3600) % 24
|
| 3072 |
+
const days = math.floor(d / 86400)
|
| 3073 |
+
if (days > 0) {
|
| 3074 |
+
return days + 'd' + ((hours > 0 || minutes > 30) ? ' ' + (minutes > 30 ? hours + 1 : hours) + 'h' : '')
|
| 3075 |
+
}
|
| 3076 |
+
if (hours > 0) {
|
| 3077 |
+
/* c8 ignore next */
|
| 3078 |
+
return hours + 'h' + ((minutes > 0 || seconds > 30) ? ' ' + (seconds > 30 ? minutes + 1 : minutes) + 'min' : '')
|
| 3079 |
+
}
|
| 3080 |
+
return minutes + 'min' + (seconds > 0 ? ' ' + seconds + 's' : '')
|
| 3081 |
+
}
|
| 3082 |
+
|
| 3083 |
+
|
| 3084 |
+
/***/ })
|
| 3085 |
+
|
| 3086 |
+
}]);
|
| 3087 |
+
//# sourceMappingURL=35.f6fa52ab6b731d9db35b.js.map?v=f6fa52ab6b731d9db35b
|
vlmpy310/lib/python3.10/site-packages/notebook/static/3700.b937e669a5feb21ccb06.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"3700.b937e669a5feb21ccb06.js?v=b937e669a5feb21ccb06","mappings":";;;;;;;;;;;AAAA;AACA,wGAAwG,KAAK,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,KAAK,GAAG,GAAG;AACnJ;;AAEO;AACP;AACA;AACA;AACA,2CAA2C;AAC3C,sCAAsC;AACtC;AACA,qCAAqC;AACrC;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,oDAAoD;AACpD,4CAA4C;AAC5C,2DAA2D;;AAEpD;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,qBAAqB,oBAAoB;;AAEzC;AACA,oCAAoC;AACpC,mCAAmC;AACnC;;AAEA,kCAAkC,gBAAgB;AAClD,2BAA2B,KAAK,MAAM,gBAAgB,qBAAqB,eAAe;;AAE1F,6CAA6C;AAC7C;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC,oCAAoC;AACpC,0BAA0B;AAC1B;;AAEA;AACA,0BAA0B;AAC1B;AACA;;AAEA;AACA;AACA,+BAA+B;AAC/B;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA;;AAEA,sBAAsB,eAAe;AACrC,0BAA0B,iBAAiB;AAC3C,0BAA0B;AAC1B;AACA;;AAEA;AACA;AACA;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/rpm.js"],"sourcesContent":["var headerSeparator = /^-+$/;\nvar headerLine = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\\d{1,2} \\d{2}:\\d{2}(:\\d{2})? [A-Z]{3,4} \\d{4} - /;\nvar simpleEmail = /^[\\w+.-]+@[\\w.-]+/;\n\nexport const rpmChanges = {\n name: \"rpmchanges\",\n token: function(stream) {\n if (stream.sol()) {\n if (stream.match(headerSeparator)) { return 'tag'; }\n if (stream.match(headerLine)) { return 'tag'; }\n }\n if (stream.match(simpleEmail)) { return 'string'; }\n stream.next();\n return null;\n }\n}\n\n// Quick and dirty spec file highlighting\n\nvar arch = /^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/;\n\nvar preamble = /^[a-zA-Z0-9()]+:/;\nvar section = /^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/;\nvar control_flow_complex = /^%(ifnarch|ifarch|if)/; // rpm control flow macros\nvar control_flow_simple = /^%(else|endif)/; // rpm control flow macros\nvar operators = /^(\\!|\\?|\\<\\=|\\<|\\>\\=|\\>|\\=\\=|\\&\\&|\\|\\|)/; // operators in control flow macros\n\nexport const rpmSpec = {\n name: \"rpmspec\",\n startState: function () {\n return {\n controlFlow: false,\n macroParameters: false,\n section: false\n };\n },\n token: function (stream, state) {\n var ch = stream.peek();\n if (ch == \"#\") { stream.skipToEnd(); return \"comment\"; }\n\n if (stream.sol()) {\n if (stream.match(preamble)) { return \"header\"; }\n if (stream.match(section)) { return \"atom\"; }\n }\n\n if (stream.match(/^\\$\\w+/)) { return \"def\"; } // Variables like '$RPM_BUILD_ROOT'\n if (stream.match(/^\\$\\{\\w+\\}/)) { return \"def\"; } // Variables like '${RPM_BUILD_ROOT}'\n\n if (stream.match(control_flow_simple)) { return \"keyword\"; }\n if (stream.match(control_flow_complex)) {\n state.controlFlow = true;\n return \"keyword\";\n }\n if (state.controlFlow) {\n if (stream.match(operators)) { return \"operator\"; }\n if (stream.match(/^(\\d+)/)) { return \"number\"; }\n if (stream.eol()) { state.controlFlow = false; }\n }\n\n if (stream.match(arch)) {\n if (stream.eol()) { state.controlFlow = false; }\n return \"number\";\n }\n\n // Macros like '%make_install' or '%attr(0775,root,root)'\n if (stream.match(/^%[\\w]+/)) {\n if (stream.match('(')) { state.macroParameters = true; }\n return \"keyword\";\n }\n if (state.macroParameters) {\n if (stream.match(/^\\d+/)) { return \"number\";}\n if (stream.match(')')) {\n state.macroParameters = false;\n return \"keyword\";\n }\n }\n\n // Macros like '%{defined fedora}'\n if (stream.match(/^%\\{\\??[\\w \\-\\:\\!]+\\}/)) {\n if (stream.eol()) { state.controlFlow = false; }\n return \"def\";\n }\n\n stream.next();\n return null;\n }\n};\n\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/4038.edb04f3d9d68204491ba.js
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[4038],{
|
| 3 |
+
|
| 4 |
+
/***/ 44038:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ yacas: () => (/* binding */ yacas)
|
| 10 |
+
/* harmony export */ });
|
| 11 |
+
function words(str) {
|
| 12 |
+
var obj = {}, words = str.split(" ");
|
| 13 |
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
| 14 |
+
return obj;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
var bodiedOps = words("Assert BackQuote D Defun Deriv For ForEach FromFile " +
|
| 18 |
+
"FromString Function Integrate InverseTaylor Limit " +
|
| 19 |
+
"LocalSymbols Macro MacroRule MacroRulePattern " +
|
| 20 |
+
"NIntegrate Rule RulePattern Subst TD TExplicitSum " +
|
| 21 |
+
"TSum Taylor Taylor1 Taylor2 Taylor3 ToFile " +
|
| 22 |
+
"ToStdout ToString TraceRule Until While");
|
| 23 |
+
|
| 24 |
+
// patterns
|
| 25 |
+
var pFloatForm = "(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)";
|
| 26 |
+
var pIdentifier = "(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)";
|
| 27 |
+
|
| 28 |
+
// regular expressions
|
| 29 |
+
var reFloatForm = new RegExp(pFloatForm);
|
| 30 |
+
var reIdentifier = new RegExp(pIdentifier);
|
| 31 |
+
var rePattern = new RegExp(pIdentifier + "?_" + pIdentifier);
|
| 32 |
+
var reFunctionLike = new RegExp(pIdentifier + "\\s*\\(");
|
| 33 |
+
|
| 34 |
+
function tokenBase(stream, state) {
|
| 35 |
+
var ch;
|
| 36 |
+
|
| 37 |
+
// get next character
|
| 38 |
+
ch = stream.next();
|
| 39 |
+
|
| 40 |
+
// string
|
| 41 |
+
if (ch === '"') {
|
| 42 |
+
state.tokenize = tokenString;
|
| 43 |
+
return state.tokenize(stream, state);
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
// comment
|
| 47 |
+
if (ch === '/') {
|
| 48 |
+
if (stream.eat('*')) {
|
| 49 |
+
state.tokenize = tokenComment;
|
| 50 |
+
return state.tokenize(stream, state);
|
| 51 |
+
}
|
| 52 |
+
if (stream.eat("/")) {
|
| 53 |
+
stream.skipToEnd();
|
| 54 |
+
return "comment";
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
// go back one character
|
| 59 |
+
stream.backUp(1);
|
| 60 |
+
|
| 61 |
+
// update scope info
|
| 62 |
+
var m = stream.match(/^(\w+)\s*\(/, false);
|
| 63 |
+
if (m !== null && bodiedOps.hasOwnProperty(m[1]))
|
| 64 |
+
state.scopes.push('bodied');
|
| 65 |
+
|
| 66 |
+
var scope = currentScope(state);
|
| 67 |
+
|
| 68 |
+
if (scope === 'bodied' && ch === '[')
|
| 69 |
+
state.scopes.pop();
|
| 70 |
+
|
| 71 |
+
if (ch === '[' || ch === '{' || ch === '(')
|
| 72 |
+
state.scopes.push(ch);
|
| 73 |
+
|
| 74 |
+
scope = currentScope(state);
|
| 75 |
+
|
| 76 |
+
if (scope === '[' && ch === ']' ||
|
| 77 |
+
scope === '{' && ch === '}' ||
|
| 78 |
+
scope === '(' && ch === ')')
|
| 79 |
+
state.scopes.pop();
|
| 80 |
+
|
| 81 |
+
if (ch === ';') {
|
| 82 |
+
while (scope === 'bodied') {
|
| 83 |
+
state.scopes.pop();
|
| 84 |
+
scope = currentScope(state);
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
// look for ordered rules
|
| 89 |
+
if (stream.match(/\d+ *#/, true, false)) {
|
| 90 |
+
return 'qualifier';
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
// look for numbers
|
| 94 |
+
if (stream.match(reFloatForm, true, false)) {
|
| 95 |
+
return 'number';
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
// look for placeholders
|
| 99 |
+
if (stream.match(rePattern, true, false)) {
|
| 100 |
+
return 'variableName.special';
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
// match all braces separately
|
| 104 |
+
if (stream.match(/(?:\[|\]|{|}|\(|\))/, true, false)) {
|
| 105 |
+
return 'bracket';
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
// literals looking like function calls
|
| 109 |
+
if (stream.match(reFunctionLike, true, false)) {
|
| 110 |
+
stream.backUp(1);
|
| 111 |
+
return 'variableName.function';
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
// all other identifiers
|
| 115 |
+
if (stream.match(reIdentifier, true, false)) {
|
| 116 |
+
return 'variable';
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
// operators; note that operators like @@ or /; are matched separately for each symbol.
|
| 120 |
+
if (stream.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/, true, false)) {
|
| 121 |
+
return 'operator';
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
// everything else is an error
|
| 125 |
+
return 'error';
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
function tokenString(stream, state) {
|
| 129 |
+
var next, end = false, escaped = false;
|
| 130 |
+
while ((next = stream.next()) != null) {
|
| 131 |
+
if (next === '"' && !escaped) {
|
| 132 |
+
end = true;
|
| 133 |
+
break;
|
| 134 |
+
}
|
| 135 |
+
escaped = !escaped && next === '\\';
|
| 136 |
+
}
|
| 137 |
+
if (end && !escaped) {
|
| 138 |
+
state.tokenize = tokenBase;
|
| 139 |
+
}
|
| 140 |
+
return 'string';
|
| 141 |
+
};
|
| 142 |
+
|
| 143 |
+
function tokenComment(stream, state) {
|
| 144 |
+
var prev, next;
|
| 145 |
+
while((next = stream.next()) != null) {
|
| 146 |
+
if (prev === '*' && next === '/') {
|
| 147 |
+
state.tokenize = tokenBase;
|
| 148 |
+
break;
|
| 149 |
+
}
|
| 150 |
+
prev = next;
|
| 151 |
+
}
|
| 152 |
+
return 'comment';
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
function currentScope(state) {
|
| 156 |
+
var scope = null;
|
| 157 |
+
if (state.scopes.length > 0)
|
| 158 |
+
scope = state.scopes[state.scopes.length - 1];
|
| 159 |
+
return scope;
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
const yacas = {
|
| 163 |
+
name: "yacas",
|
| 164 |
+
startState: function() {
|
| 165 |
+
return {
|
| 166 |
+
tokenize: tokenBase,
|
| 167 |
+
scopes: []
|
| 168 |
+
};
|
| 169 |
+
},
|
| 170 |
+
token: function(stream, state) {
|
| 171 |
+
if (stream.eatSpace()) return null;
|
| 172 |
+
return state.tokenize(stream, state);
|
| 173 |
+
},
|
| 174 |
+
indent: function(state, textAfter, cx) {
|
| 175 |
+
if (state.tokenize !== tokenBase && state.tokenize !== null)
|
| 176 |
+
return null;
|
| 177 |
+
|
| 178 |
+
var delta = 0;
|
| 179 |
+
if (textAfter === ']' || textAfter === '];' ||
|
| 180 |
+
textAfter === '}' || textAfter === '};' ||
|
| 181 |
+
textAfter === ');')
|
| 182 |
+
delta = -1;
|
| 183 |
+
|
| 184 |
+
return (state.scopes.length + delta) * cx.unit;
|
| 185 |
+
},
|
| 186 |
+
|
| 187 |
+
languageData: {
|
| 188 |
+
electricInput: /[{}\[\]()\;]/,
|
| 189 |
+
commentTokens: {line: "//", block: {open: "/*", close: "*/"}}
|
| 190 |
+
}
|
| 191 |
+
};
|
| 192 |
+
|
| 193 |
+
|
| 194 |
+
/***/ })
|
| 195 |
+
|
| 196 |
+
}]);
|
| 197 |
+
//# sourceMappingURL=4038.edb04f3d9d68204491ba.js.map?v=edb04f3d9d68204491ba
|
vlmpy310/lib/python3.10/site-packages/notebook/static/417.29f636ec8be265b7e480.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlmpy310/lib/python3.10/site-packages/notebook/static/4498.4d8665e22c39c0b3f329.js
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
|
| 8 |
+
var __values = (this && this.__values) || function(o) {
|
| 9 |
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
| 10 |
+
if (m) return m.call(o);
|
| 11 |
+
if (o && typeof o.length === "number") return {
|
| 12 |
+
next: function () {
|
| 13 |
+
if (o && i >= o.length) o = void 0;
|
| 14 |
+
return { value: o && o[i++], done: !o };
|
| 15 |
+
}
|
| 16 |
+
};
|
| 17 |
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
| 18 |
+
};
|
| 19 |
+
var __read = (this && this.__read) || function (o, n) {
|
| 20 |
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
| 21 |
+
if (!m) return o;
|
| 22 |
+
var i = m.call(o), r, ar = [], e;
|
| 23 |
+
try {
|
| 24 |
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
| 25 |
+
}
|
| 26 |
+
catch (error) { e = { error: error }; }
|
| 27 |
+
finally {
|
| 28 |
+
try {
|
| 29 |
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
| 30 |
+
}
|
| 31 |
+
finally { if (e) throw e.error; }
|
| 32 |
+
}
|
| 33 |
+
return ar;
|
| 34 |
+
};
|
| 35 |
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
| 36 |
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
| 37 |
+
if (ar || !(i in from)) {
|
| 38 |
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
| 39 |
+
ar[i] = from[i];
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
return to.concat(ar || Array.prototype.slice.call(from));
|
| 43 |
+
};
|
| 44 |
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
| 45 |
+
exports.lookup = exports.separateOptions = exports.selectOptionsFromKeys = exports.selectOptions = exports.userOptions = exports.defaultOptions = exports.insert = exports.copy = exports.keys = exports.makeArray = exports.expandable = exports.Expandable = exports.OPTIONS = exports.REMOVE = exports.APPEND = exports.isObject = void 0;
|
| 46 |
+
var OBJECT = {}.constructor;
|
| 47 |
+
function isObject(obj) {
|
| 48 |
+
return typeof obj === 'object' && obj !== null &&
|
| 49 |
+
(obj.constructor === OBJECT || obj.constructor === Expandable);
|
| 50 |
+
}
|
| 51 |
+
exports.isObject = isObject;
|
| 52 |
+
exports.APPEND = '[+]';
|
| 53 |
+
exports.REMOVE = '[-]';
|
| 54 |
+
exports.OPTIONS = {
|
| 55 |
+
invalidOption: 'warn',
|
| 56 |
+
optionError: function (message, _key) {
|
| 57 |
+
if (exports.OPTIONS.invalidOption === 'fatal') {
|
| 58 |
+
throw new Error(message);
|
| 59 |
+
}
|
| 60 |
+
console.warn('MathJax: ' + message);
|
| 61 |
+
}
|
| 62 |
+
};
|
| 63 |
+
var Expandable = (function () {
|
| 64 |
+
function Expandable() {
|
| 65 |
+
}
|
| 66 |
+
return Expandable;
|
| 67 |
+
}());
|
| 68 |
+
exports.Expandable = Expandable;
|
| 69 |
+
function expandable(def) {
|
| 70 |
+
return Object.assign(Object.create(Expandable.prototype), def);
|
| 71 |
+
}
|
| 72 |
+
exports.expandable = expandable;
|
| 73 |
+
function makeArray(x) {
|
| 74 |
+
return Array.isArray(x) ? x : [x];
|
| 75 |
+
}
|
| 76 |
+
exports.makeArray = makeArray;
|
| 77 |
+
function keys(def) {
|
| 78 |
+
if (!def) {
|
| 79 |
+
return [];
|
| 80 |
+
}
|
| 81 |
+
return Object.keys(def).concat(Object.getOwnPropertySymbols(def));
|
| 82 |
+
}
|
| 83 |
+
exports.keys = keys;
|
| 84 |
+
function copy(def) {
|
| 85 |
+
var e_1, _a;
|
| 86 |
+
var props = {};
|
| 87 |
+
try {
|
| 88 |
+
for (var _b = __values(keys(def)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
| 89 |
+
var key = _c.value;
|
| 90 |
+
var prop = Object.getOwnPropertyDescriptor(def, key);
|
| 91 |
+
var value = prop.value;
|
| 92 |
+
if (Array.isArray(value)) {
|
| 93 |
+
prop.value = insert([], value, false);
|
| 94 |
+
}
|
| 95 |
+
else if (isObject(value)) {
|
| 96 |
+
prop.value = copy(value);
|
| 97 |
+
}
|
| 98 |
+
if (prop.enumerable) {
|
| 99 |
+
props[key] = prop;
|
| 100 |
+
}
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
| 104 |
+
finally {
|
| 105 |
+
try {
|
| 106 |
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
| 107 |
+
}
|
| 108 |
+
finally { if (e_1) throw e_1.error; }
|
| 109 |
+
}
|
| 110 |
+
return Object.defineProperties(def.constructor === Expandable ? expandable({}) : {}, props);
|
| 111 |
+
}
|
| 112 |
+
exports.copy = copy;
|
| 113 |
+
function insert(dst, src, warn) {
|
| 114 |
+
var e_2, _a;
|
| 115 |
+
if (warn === void 0) { warn = true; }
|
| 116 |
+
var _loop_1 = function (key) {
|
| 117 |
+
if (warn && dst[key] === undefined && dst.constructor !== Expandable) {
|
| 118 |
+
if (typeof key === 'symbol') {
|
| 119 |
+
key = key.toString();
|
| 120 |
+
}
|
| 121 |
+
exports.OPTIONS.optionError("Invalid option \"".concat(key, "\" (no default value)."), key);
|
| 122 |
+
return "continue";
|
| 123 |
+
}
|
| 124 |
+
var sval = src[key], dval = dst[key];
|
| 125 |
+
if (isObject(sval) && dval !== null &&
|
| 126 |
+
(typeof dval === 'object' || typeof dval === 'function')) {
|
| 127 |
+
var ids = keys(sval);
|
| 128 |
+
if (Array.isArray(dval) &&
|
| 129 |
+
((ids.length === 1 && (ids[0] === exports.APPEND || ids[0] === exports.REMOVE) && Array.isArray(sval[ids[0]])) ||
|
| 130 |
+
(ids.length === 2 && ids.sort().join(',') === exports.APPEND + ',' + exports.REMOVE &&
|
| 131 |
+
Array.isArray(sval[exports.APPEND]) && Array.isArray(sval[exports.REMOVE])))) {
|
| 132 |
+
if (sval[exports.REMOVE]) {
|
| 133 |
+
dval = dst[key] = dval.filter(function (x) { return sval[exports.REMOVE].indexOf(x) < 0; });
|
| 134 |
+
}
|
| 135 |
+
if (sval[exports.APPEND]) {
|
| 136 |
+
dst[key] = __spreadArray(__spreadArray([], __read(dval), false), __read(sval[exports.APPEND]), false);
|
| 137 |
+
}
|
| 138 |
+
}
|
| 139 |
+
else {
|
| 140 |
+
insert(dval, sval, warn);
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
else if (Array.isArray(sval)) {
|
| 144 |
+
dst[key] = [];
|
| 145 |
+
insert(dst[key], sval, false);
|
| 146 |
+
}
|
| 147 |
+
else if (isObject(sval)) {
|
| 148 |
+
dst[key] = copy(sval);
|
| 149 |
+
}
|
| 150 |
+
else {
|
| 151 |
+
dst[key] = sval;
|
| 152 |
+
}
|
| 153 |
+
};
|
| 154 |
+
try {
|
| 155 |
+
for (var _b = __values(keys(src)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
| 156 |
+
var key = _c.value;
|
| 157 |
+
_loop_1(key);
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
| 161 |
+
finally {
|
| 162 |
+
try {
|
| 163 |
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
| 164 |
+
}
|
| 165 |
+
finally { if (e_2) throw e_2.error; }
|
| 166 |
+
}
|
| 167 |
+
return dst;
|
| 168 |
+
}
|
| 169 |
+
exports.insert = insert;
|
| 170 |
+
function defaultOptions(options) {
|
| 171 |
+
var defs = [];
|
| 172 |
+
for (var _i = 1; _i < arguments.length; _i++) {
|
| 173 |
+
defs[_i - 1] = arguments[_i];
|
| 174 |
+
}
|
| 175 |
+
defs.forEach(function (def) { return insert(options, def, false); });
|
| 176 |
+
return options;
|
| 177 |
+
}
|
| 178 |
+
exports.defaultOptions = defaultOptions;
|
| 179 |
+
function userOptions(options) {
|
| 180 |
+
var defs = [];
|
| 181 |
+
for (var _i = 1; _i < arguments.length; _i++) {
|
| 182 |
+
defs[_i - 1] = arguments[_i];
|
| 183 |
+
}
|
| 184 |
+
defs.forEach(function (def) { return insert(options, def, true); });
|
| 185 |
+
return options;
|
| 186 |
+
}
|
| 187 |
+
exports.userOptions = userOptions;
|
| 188 |
+
function selectOptions(options) {
|
| 189 |
+
var e_3, _a;
|
| 190 |
+
var keys = [];
|
| 191 |
+
for (var _i = 1; _i < arguments.length; _i++) {
|
| 192 |
+
keys[_i - 1] = arguments[_i];
|
| 193 |
+
}
|
| 194 |
+
var subset = {};
|
| 195 |
+
try {
|
| 196 |
+
for (var keys_1 = __values(keys), keys_1_1 = keys_1.next(); !keys_1_1.done; keys_1_1 = keys_1.next()) {
|
| 197 |
+
var key = keys_1_1.value;
|
| 198 |
+
if (options.hasOwnProperty(key)) {
|
| 199 |
+
subset[key] = options[key];
|
| 200 |
+
}
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
| 204 |
+
finally {
|
| 205 |
+
try {
|
| 206 |
+
if (keys_1_1 && !keys_1_1.done && (_a = keys_1.return)) _a.call(keys_1);
|
| 207 |
+
}
|
| 208 |
+
finally { if (e_3) throw e_3.error; }
|
| 209 |
+
}
|
| 210 |
+
return subset;
|
| 211 |
+
}
|
| 212 |
+
exports.selectOptions = selectOptions;
|
| 213 |
+
function selectOptionsFromKeys(options, object) {
|
| 214 |
+
return selectOptions.apply(void 0, __spreadArray([options], __read(Object.keys(object)), false));
|
| 215 |
+
}
|
| 216 |
+
exports.selectOptionsFromKeys = selectOptionsFromKeys;
|
| 217 |
+
function separateOptions(options) {
|
| 218 |
+
var e_4, _a, e_5, _b;
|
| 219 |
+
var objects = [];
|
| 220 |
+
for (var _i = 1; _i < arguments.length; _i++) {
|
| 221 |
+
objects[_i - 1] = arguments[_i];
|
| 222 |
+
}
|
| 223 |
+
var results = [];
|
| 224 |
+
try {
|
| 225 |
+
for (var objects_1 = __values(objects), objects_1_1 = objects_1.next(); !objects_1_1.done; objects_1_1 = objects_1.next()) {
|
| 226 |
+
var object = objects_1_1.value;
|
| 227 |
+
var exists = {}, missing = {};
|
| 228 |
+
try {
|
| 229 |
+
for (var _c = (e_5 = void 0, __values(Object.keys(options || {}))), _d = _c.next(); !_d.done; _d = _c.next()) {
|
| 230 |
+
var key = _d.value;
|
| 231 |
+
(object[key] === undefined ? missing : exists)[key] = options[key];
|
| 232 |
+
}
|
| 233 |
+
}
|
| 234 |
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
| 235 |
+
finally {
|
| 236 |
+
try {
|
| 237 |
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
| 238 |
+
}
|
| 239 |
+
finally { if (e_5) throw e_5.error; }
|
| 240 |
+
}
|
| 241 |
+
results.push(exists);
|
| 242 |
+
options = missing;
|
| 243 |
+
}
|
| 244 |
+
}
|
| 245 |
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
| 246 |
+
finally {
|
| 247 |
+
try {
|
| 248 |
+
if (objects_1_1 && !objects_1_1.done && (_a = objects_1.return)) _a.call(objects_1);
|
| 249 |
+
}
|
| 250 |
+
finally { if (e_4) throw e_4.error; }
|
| 251 |
+
}
|
| 252 |
+
results.unshift(options);
|
| 253 |
+
return results;
|
| 254 |
+
}
|
| 255 |
+
exports.separateOptions = separateOptions;
|
| 256 |
+
function lookup(name, lookup, def) {
|
| 257 |
+
if (def === void 0) { def = null; }
|
| 258 |
+
return (lookup.hasOwnProperty(name) ? lookup[name] : def);
|
| 259 |
+
}
|
| 260 |
+
exports.lookup = lookup;
|
| 261 |
+
//# sourceMappingURL=Options.js.map
|
| 262 |
+
|
| 263 |
+
/***/ })
|
| 264 |
+
|
| 265 |
+
}]);
|
| 266 |
+
//# sourceMappingURL=4498.4d8665e22c39c0b3f329.js.map?v=4d8665e22c39c0b3f329
|
vlmpy310/lib/python3.10/site-packages/notebook/static/4588.4861d03d604fd2f43df9.js
ADDED
|
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***/ 64588:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
// ESM COMPAT FLAG
|
| 8 |
+
__webpack_require__.r(__webpack_exports__);
|
| 9 |
+
|
| 10 |
+
// EXPORTS
|
| 11 |
+
__webpack_require__.d(__webpack_exports__, {
|
| 12 |
+
autoCloseTags: () => (/* binding */ autoCloseTags),
|
| 13 |
+
completeFromSchema: () => (/* binding */ completeFromSchema),
|
| 14 |
+
xml: () => (/* binding */ xml),
|
| 15 |
+
xmlLanguage: () => (/* binding */ xmlLanguage)
|
| 16 |
+
});
|
| 17 |
+
|
| 18 |
+
// EXTERNAL MODULE: ../node_modules/@lezer/lr/dist/index.js
|
| 19 |
+
var dist = __webpack_require__(49906);
|
| 20 |
+
// EXTERNAL MODULE: consume shared module (default) @lezer/highlight@~1.2.0 (singleton) (fallback: ../node_modules/@lezer/highlight/dist/index.js)
|
| 21 |
+
var index_js_ = __webpack_require__(92209);
|
| 22 |
+
;// CONCATENATED MODULE: ../node_modules/@lezer/xml/dist/index.js
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
| 27 |
+
const StartTag = 1,
|
| 28 |
+
StartCloseTag = 2,
|
| 29 |
+
MissingCloseTag = 3,
|
| 30 |
+
mismatchedStartCloseTag = 4,
|
| 31 |
+
incompleteStartCloseTag = 5,
|
| 32 |
+
commentContent$1 = 35,
|
| 33 |
+
piContent$1 = 36,
|
| 34 |
+
cdataContent$1 = 37,
|
| 35 |
+
Element = 11,
|
| 36 |
+
OpenTag = 13;
|
| 37 |
+
|
| 38 |
+
/* Hand-written tokenizer for XML tag matching. */
|
| 39 |
+
|
| 40 |
+
function nameChar(ch) {
|
| 41 |
+
return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
function isSpace(ch) {
|
| 45 |
+
return ch == 9 || ch == 10 || ch == 13 || ch == 32
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
let cachedName = null, cachedInput = null, cachedPos = 0;
|
| 49 |
+
function tagNameAfter(input, offset) {
|
| 50 |
+
let pos = input.pos + offset;
|
| 51 |
+
if (cachedInput == input && cachedPos == pos) return cachedName
|
| 52 |
+
while (isSpace(input.peek(offset))) offset++;
|
| 53 |
+
let name = "";
|
| 54 |
+
for (;;) {
|
| 55 |
+
let next = input.peek(offset);
|
| 56 |
+
if (!nameChar(next)) break
|
| 57 |
+
name += String.fromCharCode(next);
|
| 58 |
+
offset++;
|
| 59 |
+
}
|
| 60 |
+
cachedInput = input; cachedPos = pos;
|
| 61 |
+
return cachedName = name || null
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
function ElementContext(name, parent) {
|
| 65 |
+
this.name = name;
|
| 66 |
+
this.parent = parent;
|
| 67 |
+
this.hash = parent ? parent.hash : 0;
|
| 68 |
+
for (let i = 0; i < name.length; i++) this.hash += (this.hash << 4) + name.charCodeAt(i) + (name.charCodeAt(i) << 8);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
const elementContext = new dist/* ContextTracker */.IK({
|
| 72 |
+
start: null,
|
| 73 |
+
shift(context, term, stack, input) {
|
| 74 |
+
return term == StartTag ? new ElementContext(tagNameAfter(input, 1) || "", context) : context
|
| 75 |
+
},
|
| 76 |
+
reduce(context, term) {
|
| 77 |
+
return term == Element && context ? context.parent : context
|
| 78 |
+
},
|
| 79 |
+
reuse(context, node, _stack, input) {
|
| 80 |
+
let type = node.type.id;
|
| 81 |
+
return type == StartTag || type == OpenTag
|
| 82 |
+
? new ElementContext(tagNameAfter(input, 1) || "", context) : context
|
| 83 |
+
},
|
| 84 |
+
hash(context) { return context ? context.hash : 0 },
|
| 85 |
+
strict: false
|
| 86 |
+
});
|
| 87 |
+
|
| 88 |
+
const startTag = new dist/* ExternalTokenizer */.Jq((input, stack) => {
|
| 89 |
+
if (input.next != 60 /* '<' */) return
|
| 90 |
+
input.advance();
|
| 91 |
+
if (input.next == 47 /* '/' */) {
|
| 92 |
+
input.advance();
|
| 93 |
+
let name = tagNameAfter(input, 0);
|
| 94 |
+
if (!name) return input.acceptToken(incompleteStartCloseTag)
|
| 95 |
+
if (stack.context && name == stack.context.name) return input.acceptToken(StartCloseTag)
|
| 96 |
+
for (let cx = stack.context; cx; cx = cx.parent) if (cx.name == name) return input.acceptToken(MissingCloseTag, -2)
|
| 97 |
+
input.acceptToken(mismatchedStartCloseTag);
|
| 98 |
+
} else if (input.next != 33 /* '!' */ && input.next != 63 /* '?' */) {
|
| 99 |
+
return input.acceptToken(StartTag)
|
| 100 |
+
}
|
| 101 |
+
}, {contextual: true});
|
| 102 |
+
|
| 103 |
+
function scanTo(type, end) {
|
| 104 |
+
return new dist/* ExternalTokenizer */.Jq(input => {
|
| 105 |
+
for (let endPos = 0, len = 0;; len++) {
|
| 106 |
+
if (input.next < 0) {
|
| 107 |
+
if (len) input.acceptToken(type);
|
| 108 |
+
break
|
| 109 |
+
}
|
| 110 |
+
if (input.next == end.charCodeAt(endPos)) {
|
| 111 |
+
endPos++;
|
| 112 |
+
if (endPos == end.length) {
|
| 113 |
+
if (len >= end.length) input.acceptToken(type, 1 - end.length);
|
| 114 |
+
break
|
| 115 |
+
}
|
| 116 |
+
} else {
|
| 117 |
+
endPos = input.next == end.charCodeAt(0) ? 1 : 0;
|
| 118 |
+
}
|
| 119 |
+
input.advance();
|
| 120 |
+
}
|
| 121 |
+
})
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
const commentContent = scanTo(commentContent$1, "-->");
|
| 125 |
+
const piContent = scanTo(piContent$1, "?>");
|
| 126 |
+
const cdataContent = scanTo(cdataContent$1, "]]>");
|
| 127 |
+
|
| 128 |
+
const xmlHighlighting = (0,index_js_.styleTags)({
|
| 129 |
+
Text: index_js_.tags.content,
|
| 130 |
+
"StartTag StartCloseTag EndTag SelfCloseEndTag": index_js_.tags.angleBracket,
|
| 131 |
+
TagName: index_js_.tags.tagName,
|
| 132 |
+
"MismatchedCloseTag/Tagname": [index_js_.tags.tagName, index_js_.tags.invalid],
|
| 133 |
+
AttributeName: index_js_.tags.attributeName,
|
| 134 |
+
AttributeValue: index_js_.tags.attributeValue,
|
| 135 |
+
Is: index_js_.tags.definitionOperator,
|
| 136 |
+
"EntityReference CharacterReference": index_js_.tags.character,
|
| 137 |
+
Comment: index_js_.tags.blockComment,
|
| 138 |
+
ProcessingInst: index_js_.tags.processingInstruction,
|
| 139 |
+
DoctypeDecl: index_js_.tags.documentMeta,
|
| 140 |
+
Cdata: index_js_.tags.special(index_js_.tags.string)
|
| 141 |
+
});
|
| 142 |
+
|
| 143 |
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
| 144 |
+
const parser = dist/* LRParser */.WQ.deserialize({
|
| 145 |
+
version: 14,
|
| 146 |
+
states: ",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOO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tQ!^{Q!`!QQ!f!YQ!i!]R!n!eQu`S!UqrU![u!U!bR!b!TQ!q!gR!u!qQbRRxbQfTR|fQiUR!OiSXOYTaRb",
|
| 149 |
+
nodeNames: "⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",
|
| 150 |
+
maxTerm: 47,
|
| 151 |
+
context: elementContext,
|
| 152 |
+
nodeProps: [
|
| 153 |
+
["closedBy", 1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],
|
| 154 |
+
["openedBy", 12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"]
|
| 155 |
+
],
|
| 156 |
+
propSources: [xmlHighlighting],
|
| 157 |
+
skippedNodes: [0],
|
| 158 |
+
repeatNodeCount: 8,
|
| 159 |
+
tokenData: "IX~R!XOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs'ssv$nvw(Zw}$n}!O*l!O!P$n!P!Q,{!Q![$n![!].e!]!^$n!^!_1v!_!`Cz!`!aDm!a!bE`!b!c$n!c!}.e!}#P$n#P#QFx#Q#R$n#R#S.e#S#T$n#T#o.e#o%W$n%W%o.e%o%p$n%p&a.e&a&b$n&b1p.e1p4U$n4U4d.e4d4e$n4e$IS.e$IS$I`$n$I`$Ib.e$Ib$Kh$n$Kh%#t.e%#t&/x$n&/x&Et.e&Et&FV$n&FV;'S.e;'S;:j1p;:j;=`&e<%l?&r$n?&r?Ah.e?Ah?BY$n?BY?Mn.e?MnO$nX$uWVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nP%dTVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_P%vP;=`<%l%_W&OT{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yW&bP;=`<%l%yX&hP;=`<%l$n_&t_VP{WyUOX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%ysv%yw#T%y#T#U<r#U;'S%y;'S;=`&_<%lO%yX@VV{WOr%ysv%yw#c%y#c#d@l#d;'S%y;'S;=`&_<%lO%yX@qV{WOr%ysv%yw#V%y#V#WAW#W;'S%y;'S;=`&_<%lO%yXA]V{WOr%ysv%yw#h%y#h#iAr#i;'S%y;'S;=`&_<%lO%yXAwV{WOr%ysv%yw#m%y#m#nB^#n;'S%y;'S;=`&_<%lO%yXBcV{WOr%ysv%yw#d%y#d#eBx#e;'S%y;'S;=`&_<%lO%yXB}V{WOr%ysv%yw#X%y#X#Y7w#Y;'S%y;'S;=`&_<%lO%yXCkT!PP{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yZDTWaQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n_DvW[UVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZEgYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aFV!a;'S$n;'S;=`&e<%lO$nZF`W!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGPYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QGo#Q;'S$n;'S;=`&e<%lO$nZGvYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aHf!a;'S$n;'S;=`&e<%lO$nZHoWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",
|
| 160 |
+
tokenizers: [startTag, commentContent, piContent, cdataContent, 0, 1, 2, 3],
|
| 161 |
+
topRules: {"Document":[0,6]},
|
| 162 |
+
tokenPrec: 0
|
| 163 |
+
});
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
// EXTERNAL MODULE: consume shared module (default) @codemirror/language@^6.10.1 (strict) (fallback: ../node_modules/@codemirror/language/dist/index.js)
|
| 168 |
+
var dist_index_js_ = __webpack_require__(17592);
|
| 169 |
+
// EXTERNAL MODULE: consume shared module (default) @codemirror/state@~6.4.1 (singleton) (fallback: ../node_modules/@codemirror/state/dist/index.js)
|
| 170 |
+
var state_dist_index_js_ = __webpack_require__(89843);
|
| 171 |
+
// EXTERNAL MODULE: consume shared module (default) @codemirror/view@~6.28.3 (singleton) (fallback: ../node_modules/@codemirror/view/dist/index.js)
|
| 172 |
+
var view_dist_index_js_ = __webpack_require__(63720);
|
| 173 |
+
;// CONCATENATED MODULE: ../node_modules/@codemirror/lang-xml/dist/index.js
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
function tagName(doc, tag) {
|
| 180 |
+
let name = tag && tag.getChild("TagName");
|
| 181 |
+
return name ? doc.sliceString(name.from, name.to) : "";
|
| 182 |
+
}
|
| 183 |
+
function elementName$1(doc, tree) {
|
| 184 |
+
let tag = tree && tree.firstChild;
|
| 185 |
+
return !tag || tag.name != "OpenTag" ? "" : tagName(doc, tag);
|
| 186 |
+
}
|
| 187 |
+
function attrName(doc, tag, pos) {
|
| 188 |
+
let attr = tag && tag.getChildren("Attribute").find(a => a.from <= pos && a.to >= pos);
|
| 189 |
+
let name = attr && attr.getChild("AttributeName");
|
| 190 |
+
return name ? doc.sliceString(name.from, name.to) : "";
|
| 191 |
+
}
|
| 192 |
+
function findParentElement(tree) {
|
| 193 |
+
for (let cur = tree && tree.parent; cur; cur = cur.parent)
|
| 194 |
+
if (cur.name == "Element")
|
| 195 |
+
return cur;
|
| 196 |
+
return null;
|
| 197 |
+
}
|
| 198 |
+
function findLocation(state, pos) {
|
| 199 |
+
var _a;
|
| 200 |
+
let at = (0,dist_index_js_.syntaxTree)(state).resolveInner(pos, -1), inTag = null;
|
| 201 |
+
for (let cur = at; !inTag && cur.parent; cur = cur.parent)
|
| 202 |
+
if (cur.name == "OpenTag" || cur.name == "CloseTag" || cur.name == "SelfClosingTag" || cur.name == "MismatchedCloseTag")
|
| 203 |
+
inTag = cur;
|
| 204 |
+
if (inTag && (inTag.to > pos || inTag.lastChild.type.isError)) {
|
| 205 |
+
let elt = inTag.parent;
|
| 206 |
+
if (at.name == "TagName")
|
| 207 |
+
return inTag.name == "CloseTag" || inTag.name == "MismatchedCloseTag"
|
| 208 |
+
? { type: "closeTag", from: at.from, context: elt }
|
| 209 |
+
: { type: "openTag", from: at.from, context: findParentElement(elt) };
|
| 210 |
+
if (at.name == "AttributeName")
|
| 211 |
+
return { type: "attrName", from: at.from, context: inTag };
|
| 212 |
+
if (at.name == "AttributeValue")
|
| 213 |
+
return { type: "attrValue", from: at.from, context: inTag };
|
| 214 |
+
let before = at == inTag || at.name == "Attribute" ? at.childBefore(pos) : at;
|
| 215 |
+
if ((before === null || before === void 0 ? void 0 : before.name) == "StartTag")
|
| 216 |
+
return { type: "openTag", from: pos, context: findParentElement(elt) };
|
| 217 |
+
if ((before === null || before === void 0 ? void 0 : before.name) == "StartCloseTag" && before.to <= pos)
|
| 218 |
+
return { type: "closeTag", from: pos, context: elt };
|
| 219 |
+
if ((before === null || before === void 0 ? void 0 : before.name) == "Is")
|
| 220 |
+
return { type: "attrValue", from: pos, context: inTag };
|
| 221 |
+
if (before)
|
| 222 |
+
return { type: "attrName", from: pos, context: inTag };
|
| 223 |
+
return null;
|
| 224 |
+
}
|
| 225 |
+
else if (at.name == "StartCloseTag") {
|
| 226 |
+
return { type: "closeTag", from: pos, context: at.parent };
|
| 227 |
+
}
|
| 228 |
+
while (at.parent && at.to == pos && !((_a = at.lastChild) === null || _a === void 0 ? void 0 : _a.type.isError))
|
| 229 |
+
at = at.parent;
|
| 230 |
+
if (at.name == "Element" || at.name == "Text" || at.name == "Document")
|
| 231 |
+
return { type: "tag", from: pos, context: at.name == "Element" ? at : findParentElement(at) };
|
| 232 |
+
return null;
|
| 233 |
+
}
|
| 234 |
+
class dist_Element {
|
| 235 |
+
constructor(spec, attrs, attrValues) {
|
| 236 |
+
this.attrs = attrs;
|
| 237 |
+
this.attrValues = attrValues;
|
| 238 |
+
this.children = [];
|
| 239 |
+
this.name = spec.name;
|
| 240 |
+
this.completion = Object.assign(Object.assign({ type: "type" }, spec.completion || {}), { label: this.name });
|
| 241 |
+
this.openCompletion = Object.assign(Object.assign({}, this.completion), { label: "<" + this.name });
|
| 242 |
+
this.closeCompletion = Object.assign(Object.assign({}, this.completion), { label: "</" + this.name + ">", boost: 2 });
|
| 243 |
+
this.closeNameCompletion = Object.assign(Object.assign({}, this.completion), { label: this.name + ">" });
|
| 244 |
+
this.text = spec.textContent ? spec.textContent.map(s => ({ label: s, type: "text" })) : [];
|
| 245 |
+
}
|
| 246 |
+
}
|
| 247 |
+
const Identifier = /^[:\-\.\w\u00b7-\uffff]*$/;
|
| 248 |
+
function attrCompletion(spec) {
|
| 249 |
+
return Object.assign(Object.assign({ type: "property" }, spec.completion || {}), { label: spec.name });
|
| 250 |
+
}
|
| 251 |
+
function valueCompletion(spec) {
|
| 252 |
+
return typeof spec == "string" ? { label: `"${spec}"`, type: "constant" }
|
| 253 |
+
: /^"/.test(spec.label) ? spec
|
| 254 |
+
: Object.assign(Object.assign({}, spec), { label: `"${spec.label}"` });
|
| 255 |
+
}
|
| 256 |
+
/**
|
| 257 |
+
Create a completion source for the given schema.
|
| 258 |
+
*/
|
| 259 |
+
function completeFromSchema(eltSpecs, attrSpecs) {
|
| 260 |
+
let allAttrs = [], globalAttrs = [];
|
| 261 |
+
let attrValues = Object.create(null);
|
| 262 |
+
for (let s of attrSpecs) {
|
| 263 |
+
let completion = attrCompletion(s);
|
| 264 |
+
allAttrs.push(completion);
|
| 265 |
+
if (s.global)
|
| 266 |
+
globalAttrs.push(completion);
|
| 267 |
+
if (s.values)
|
| 268 |
+
attrValues[s.name] = s.values.map(valueCompletion);
|
| 269 |
+
}
|
| 270 |
+
let allElements = [], topElements = [];
|
| 271 |
+
let byName = Object.create(null);
|
| 272 |
+
for (let s of eltSpecs) {
|
| 273 |
+
let attrs = globalAttrs, attrVals = attrValues;
|
| 274 |
+
if (s.attributes)
|
| 275 |
+
attrs = attrs.concat(s.attributes.map(s => {
|
| 276 |
+
if (typeof s == "string")
|
| 277 |
+
return allAttrs.find(a => a.label == s) || { label: s, type: "property" };
|
| 278 |
+
if (s.values) {
|
| 279 |
+
if (attrVals == attrValues)
|
| 280 |
+
attrVals = Object.create(attrVals);
|
| 281 |
+
attrVals[s.name] = s.values.map(valueCompletion);
|
| 282 |
+
}
|
| 283 |
+
return attrCompletion(s);
|
| 284 |
+
}));
|
| 285 |
+
let elt = new dist_Element(s, attrs, attrVals);
|
| 286 |
+
byName[elt.name] = elt;
|
| 287 |
+
allElements.push(elt);
|
| 288 |
+
if (s.top)
|
| 289 |
+
topElements.push(elt);
|
| 290 |
+
}
|
| 291 |
+
if (!topElements.length)
|
| 292 |
+
topElements = allElements;
|
| 293 |
+
for (let i = 0; i < allElements.length; i++) {
|
| 294 |
+
let s = eltSpecs[i], elt = allElements[i];
|
| 295 |
+
if (s.children) {
|
| 296 |
+
for (let ch of s.children)
|
| 297 |
+
if (byName[ch])
|
| 298 |
+
elt.children.push(byName[ch]);
|
| 299 |
+
}
|
| 300 |
+
else {
|
| 301 |
+
elt.children = allElements;
|
| 302 |
+
}
|
| 303 |
+
}
|
| 304 |
+
return cx => {
|
| 305 |
+
var _a;
|
| 306 |
+
let { doc } = cx.state, loc = findLocation(cx.state, cx.pos);
|
| 307 |
+
if (!loc || (loc.type == "tag" && !cx.explicit))
|
| 308 |
+
return null;
|
| 309 |
+
let { type, from, context } = loc;
|
| 310 |
+
if (type == "openTag") {
|
| 311 |
+
let children = topElements;
|
| 312 |
+
let parentName = elementName$1(doc, context);
|
| 313 |
+
if (parentName) {
|
| 314 |
+
let parent = byName[parentName];
|
| 315 |
+
children = (parent === null || parent === void 0 ? void 0 : parent.children) || allElements;
|
| 316 |
+
}
|
| 317 |
+
return {
|
| 318 |
+
from,
|
| 319 |
+
options: children.map(ch => ch.completion),
|
| 320 |
+
validFor: Identifier
|
| 321 |
+
};
|
| 322 |
+
}
|
| 323 |
+
else if (type == "closeTag") {
|
| 324 |
+
let parentName = elementName$1(doc, context);
|
| 325 |
+
return parentName ? {
|
| 326 |
+
from,
|
| 327 |
+
to: cx.pos + (doc.sliceString(cx.pos, cx.pos + 1) == ">" ? 1 : 0),
|
| 328 |
+
options: [((_a = byName[parentName]) === null || _a === void 0 ? void 0 : _a.closeNameCompletion) || { label: parentName + ">", type: "type" }],
|
| 329 |
+
validFor: Identifier
|
| 330 |
+
} : null;
|
| 331 |
+
}
|
| 332 |
+
else if (type == "attrName") {
|
| 333 |
+
let parent = byName[tagName(doc, context)];
|
| 334 |
+
return {
|
| 335 |
+
from,
|
| 336 |
+
options: (parent === null || parent === void 0 ? void 0 : parent.attrs) || globalAttrs,
|
| 337 |
+
validFor: Identifier
|
| 338 |
+
};
|
| 339 |
+
}
|
| 340 |
+
else if (type == "attrValue") {
|
| 341 |
+
let attr = attrName(doc, context, from);
|
| 342 |
+
if (!attr)
|
| 343 |
+
return null;
|
| 344 |
+
let parent = byName[tagName(doc, context)];
|
| 345 |
+
let values = ((parent === null || parent === void 0 ? void 0 : parent.attrValues) || attrValues)[attr];
|
| 346 |
+
if (!values || !values.length)
|
| 347 |
+
return null;
|
| 348 |
+
return {
|
| 349 |
+
from,
|
| 350 |
+
to: cx.pos + (doc.sliceString(cx.pos, cx.pos + 1) == '"' ? 1 : 0),
|
| 351 |
+
options: values,
|
| 352 |
+
validFor: /^"[^"]*"?$/
|
| 353 |
+
};
|
| 354 |
+
}
|
| 355 |
+
else if (type == "tag") {
|
| 356 |
+
let parentName = elementName$1(doc, context), parent = byName[parentName];
|
| 357 |
+
let closing = [], last = context && context.lastChild;
|
| 358 |
+
if (parentName && (!last || last.name != "CloseTag" || tagName(doc, last) != parentName))
|
| 359 |
+
closing.push(parent ? parent.closeCompletion : { label: "</" + parentName + ">", type: "type", boost: 2 });
|
| 360 |
+
let options = closing.concat(((parent === null || parent === void 0 ? void 0 : parent.children) || (context ? allElements : topElements)).map(e => e.openCompletion));
|
| 361 |
+
if (context && (parent === null || parent === void 0 ? void 0 : parent.text.length)) {
|
| 362 |
+
let openTag = context.firstChild;
|
| 363 |
+
if (openTag.to > cx.pos - 20 && !/\S/.test(cx.state.sliceDoc(openTag.to, cx.pos)))
|
| 364 |
+
options = options.concat(parent.text);
|
| 365 |
+
}
|
| 366 |
+
return {
|
| 367 |
+
from,
|
| 368 |
+
options,
|
| 369 |
+
validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
|
| 370 |
+
};
|
| 371 |
+
}
|
| 372 |
+
else {
|
| 373 |
+
return null;
|
| 374 |
+
}
|
| 375 |
+
};
|
| 376 |
+
}
|
| 377 |
+
|
| 378 |
+
/**
|
| 379 |
+
A language provider based on the [Lezer XML
|
| 380 |
+
parser](https://github.com/lezer-parser/xml), extended with
|
| 381 |
+
highlighting and indentation information.
|
| 382 |
+
*/
|
| 383 |
+
const xmlLanguage = /*@__PURE__*/dist_index_js_.LRLanguage.define({
|
| 384 |
+
name: "xml",
|
| 385 |
+
parser: /*@__PURE__*/parser.configure({
|
| 386 |
+
props: [
|
| 387 |
+
/*@__PURE__*/dist_index_js_.indentNodeProp.add({
|
| 388 |
+
Element(context) {
|
| 389 |
+
let closed = /^\s*<\//.test(context.textAfter);
|
| 390 |
+
return context.lineIndent(context.node.from) + (closed ? 0 : context.unit);
|
| 391 |
+
},
|
| 392 |
+
"OpenTag CloseTag SelfClosingTag"(context) {
|
| 393 |
+
return context.column(context.node.from) + context.unit;
|
| 394 |
+
}
|
| 395 |
+
}),
|
| 396 |
+
/*@__PURE__*/dist_index_js_.foldNodeProp.add({
|
| 397 |
+
Element(subtree) {
|
| 398 |
+
let first = subtree.firstChild, last = subtree.lastChild;
|
| 399 |
+
if (!first || first.name != "OpenTag")
|
| 400 |
+
return null;
|
| 401 |
+
return { from: first.to, to: last.name == "CloseTag" ? last.from : subtree.to };
|
| 402 |
+
}
|
| 403 |
+
}),
|
| 404 |
+
/*@__PURE__*/dist_index_js_.bracketMatchingHandle.add({
|
| 405 |
+
"OpenTag CloseTag": node => node.getChild("TagName")
|
| 406 |
+
})
|
| 407 |
+
]
|
| 408 |
+
}),
|
| 409 |
+
languageData: {
|
| 410 |
+
commentTokens: { block: { open: "<!--", close: "-->" } },
|
| 411 |
+
indentOnInput: /^\s*<\/$/
|
| 412 |
+
}
|
| 413 |
+
});
|
| 414 |
+
/**
|
| 415 |
+
XML language support. Includes schema-based autocompletion when
|
| 416 |
+
configured.
|
| 417 |
+
*/
|
| 418 |
+
function xml(conf = {}) {
|
| 419 |
+
let support = [xmlLanguage.data.of({
|
| 420 |
+
autocomplete: completeFromSchema(conf.elements || [], conf.attributes || [])
|
| 421 |
+
})];
|
| 422 |
+
if (conf.autoCloseTags !== false)
|
| 423 |
+
support.push(autoCloseTags);
|
| 424 |
+
return new dist_index_js_.LanguageSupport(xmlLanguage, support);
|
| 425 |
+
}
|
| 426 |
+
function elementName(doc, tree, max = doc.length) {
|
| 427 |
+
if (!tree)
|
| 428 |
+
return "";
|
| 429 |
+
let tag = tree.firstChild;
|
| 430 |
+
let name = tag && tag.getChild("TagName");
|
| 431 |
+
return name ? doc.sliceString(name.from, Math.min(name.to, max)) : "";
|
| 432 |
+
}
|
| 433 |
+
/**
|
| 434 |
+
Extension that will automatically insert close tags when a `>` or
|
| 435 |
+
`/` is typed.
|
| 436 |
+
*/
|
| 437 |
+
const autoCloseTags = /*@__PURE__*/view_dist_index_js_.EditorView.inputHandler.of((view, from, to, text, insertTransaction) => {
|
| 438 |
+
if (view.composing || view.state.readOnly || from != to || (text != ">" && text != "/") ||
|
| 439 |
+
!xmlLanguage.isActiveAt(view.state, from, -1))
|
| 440 |
+
return false;
|
| 441 |
+
let base = insertTransaction(), { state } = base;
|
| 442 |
+
let closeTags = state.changeByRange(range => {
|
| 443 |
+
var _a, _b, _c;
|
| 444 |
+
let { head } = range;
|
| 445 |
+
let didType = state.doc.sliceString(head - 1, head) == text;
|
| 446 |
+
let after = (0,dist_index_js_.syntaxTree)(state).resolveInner(head, -1), name;
|
| 447 |
+
if (didType && text == ">" && after.name == "EndTag") {
|
| 448 |
+
let tag = after.parent;
|
| 449 |
+
if (((_b = (_a = tag.parent) === null || _a === void 0 ? void 0 : _a.lastChild) === null || _b === void 0 ? void 0 : _b.name) != "CloseTag" &&
|
| 450 |
+
(name = elementName(state.doc, tag.parent, head))) {
|
| 451 |
+
let to = head + (state.doc.sliceString(head, head + 1) === ">" ? 1 : 0);
|
| 452 |
+
let insert = `</${name}>`;
|
| 453 |
+
return { range, changes: { from: head, to, insert } };
|
| 454 |
+
}
|
| 455 |
+
}
|
| 456 |
+
else if (didType && text == "/" && after.name == "StartCloseTag") {
|
| 457 |
+
let base = after.parent;
|
| 458 |
+
if (after.from == head - 2 && ((_c = base.lastChild) === null || _c === void 0 ? void 0 : _c.name) != "CloseTag" &&
|
| 459 |
+
(name = elementName(state.doc, base, head))) {
|
| 460 |
+
let to = head + (state.doc.sliceString(head, head + 1) === ">" ? 1 : 0);
|
| 461 |
+
let insert = `${name}>`;
|
| 462 |
+
return {
|
| 463 |
+
range: state_dist_index_js_.EditorSelection.cursor(head + insert.length, -1),
|
| 464 |
+
changes: { from: head, to, insert }
|
| 465 |
+
};
|
| 466 |
+
}
|
| 467 |
+
}
|
| 468 |
+
return { range };
|
| 469 |
+
});
|
| 470 |
+
if (closeTags.changes.empty)
|
| 471 |
+
return false;
|
| 472 |
+
view.dispatch([
|
| 473 |
+
base,
|
| 474 |
+
state.update(closeTags, {
|
| 475 |
+
userEvent: "input.complete",
|
| 476 |
+
scrollIntoView: true
|
| 477 |
+
})
|
| 478 |
+
]);
|
| 479 |
+
return true;
|
| 480 |
+
});
|
| 481 |
+
|
| 482 |
+
|
| 483 |
+
|
| 484 |
+
|
| 485 |
+
/***/ })
|
| 486 |
+
|
| 487 |
+
}]);
|
| 488 |
+
//# sourceMappingURL=4588.4861d03d604fd2f43df9.js.map?v=4861d03d604fd2f43df9
|
vlmpy310/lib/python3.10/site-packages/notebook/static/4588.4861d03d604fd2f43df9.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"4588.4861d03d604fd2f43df9.js?v=4861d03d604fd2f43df9","mappings":";;;;;;;;;;;;;;;;;;;;;;AAAwE;AACrB;;AAEnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,uBAAuB;AACvB;AACA;;AAEA;AACA;AACA;AACA;AACA,kBAAkB,iBAAiB;AACnC;;AAEA,2BAA2B,2BAAc;AACzC;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH,kBAAkB,mCAAmC;AACrD;AACA,CAAC;;AAED,qBAAqB,8BAAiB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,IAAI;AACrC;AACA,IAAI;AACJ;AACA;AACA,CAAC,GAAG,iBAAiB;;AAErB;AACA,aAAa,8BAAiB;AAC9B,mCAAmC;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;;AAEA,wBAAwB,uBAAS;AACjC,QAAQ,cAAI;AACZ,mDAAmD,cAAI;AACvD,WAAW,cAAI;AACf,iCAAiC,cAAI,UAAU,cAAI;AACnD,iBAAiB,cAAI;AACrB,kBAAkB,cAAI;AACtB,MAAM,cAAI;AACV,wCAAwC,cAAI;AAC5C,WAAW,cAAI;AACf,kBAAkB,cAAI;AACtB,eAAe,cAAI;AACnB,SAAS,cAAI,SAAS,cAAI;AAC1B,CAAC;;AAED;AACA,eAAe,qBAAQ;AACvB;AACA,8DAA8D,oIAAoI,IAAI,0EAA0E,IAAI,oPAAoP,IAAI,0DAA0D,gKAAgK,IAAI,0IA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;AAC1G,6DAA6D,sBAAsB,yCAAyC;AAC5H,iEAAiE,sBAAsB,wBAAwB;AAC/G,oEAAoE,wBAAwB;AAC5F;AACA;AACA;AACA;AACA,yCAAyC,kBAAkB,uBAAuB,KAAK,kBAAkB;AACzG;AACA;AACA,uCAAuC,WAAW,KAAK;AACvD;AACA,4CAA4C,WAAW,WAAW,WAAW,IAAI;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE;AACjE;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,sBAAsB,YAAO;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,wBAAwB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,MAAM;AACpB;AACA;AACA,cAAc,sBAAsB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uHAAuH,uCAAuC;AAC9J;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE,wDAAwD;AACzH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,iCAAiC,yBAAU;AAC3C;AACA,yBAAyB,MAAM;AAC/B;AACA,yBAAyB,6BAAc;AACvC;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA,aAAa;AACb,yBAAyB,2BAAY;AACrC;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,aAAa;AACb,yBAAyB,oCAAqB;AAC9C;AACA,aAAa;AACb;AACA,KAAK;AACL;AACA,yBAAyB,SAAS,8BAA8B;AAChE;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA,SAAS;AACT;AACA;AACA,eAAe,8BAAe;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,8BAAU;AAC7C;AACA;AACA;AACA,sCAAsC,QAAQ;AAC9C;AACA;AACA,cAAc,OAAO;AACrB;AACA,oBAAoB,6BAAU;AAC9B;AACA;AACA;AACA;AACA;AACA,kCAAkC,KAAK;AACvC,yBAAyB,kBAAkB;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC,KAAK;AACrC;AACA,2BAA2B,oCAAe;AAC1C,+BAA+B;AAC/B;AACA;AACA;AACA,iBAAiB;AACjB,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,CAAC;;AAE8D","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@lezer/xml/dist/index.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/lang-xml/dist/index.js"],"sourcesContent":["import { ContextTracker, ExternalTokenizer, LRParser } from '@lezer/lr';\nimport { styleTags, tags } from '@lezer/highlight';\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst StartTag = 1,\n StartCloseTag = 2,\n MissingCloseTag = 3,\n mismatchedStartCloseTag = 4,\n incompleteStartCloseTag = 5,\n commentContent$1 = 35,\n piContent$1 = 36,\n cdataContent$1 = 37,\n Element = 11,\n OpenTag = 13;\n\n/* Hand-written tokenizer for XML tag matching. */\n\nfunction nameChar(ch) {\n return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161\n}\n\nfunction isSpace(ch) {\n return ch == 9 || ch == 10 || ch == 13 || ch == 32\n}\n\nlet cachedName = null, cachedInput = null, cachedPos = 0;\nfunction tagNameAfter(input, offset) {\n let pos = input.pos + offset;\n if (cachedInput == input && cachedPos == pos) return cachedName\n while (isSpace(input.peek(offset))) offset++;\n let name = \"\";\n for (;;) {\n let next = input.peek(offset);\n if (!nameChar(next)) break\n name += String.fromCharCode(next);\n offset++;\n }\n cachedInput = input; cachedPos = pos;\n return cachedName = name || null\n}\n\nfunction ElementContext(name, parent) {\n this.name = name;\n this.parent = parent;\n this.hash = parent ? parent.hash : 0;\n for (let i = 0; i < name.length; i++) this.hash += (this.hash << 4) + name.charCodeAt(i) + (name.charCodeAt(i) << 8);\n}\n\nconst elementContext = new ContextTracker({\n start: null,\n shift(context, term, stack, input) {\n return term == StartTag ? new ElementContext(tagNameAfter(input, 1) || \"\", context) : context\n },\n reduce(context, term) {\n return term == Element && context ? context.parent : context\n },\n reuse(context, node, _stack, input) {\n let type = node.type.id;\n return type == StartTag || type == OpenTag\n ? new ElementContext(tagNameAfter(input, 1) || \"\", context) : context\n },\n hash(context) { return context ? context.hash : 0 },\n strict: false\n});\n\nconst startTag = new ExternalTokenizer((input, stack) => {\n if (input.next != 60 /* '<' */) return\n input.advance();\n if (input.next == 47 /* '/' */) {\n input.advance();\n let name = tagNameAfter(input, 0);\n if (!name) return input.acceptToken(incompleteStartCloseTag)\n if (stack.context && name == stack.context.name) return input.acceptToken(StartCloseTag)\n for (let cx = stack.context; cx; cx = cx.parent) if (cx.name == name) return input.acceptToken(MissingCloseTag, -2)\n input.acceptToken(mismatchedStartCloseTag);\n } else if (input.next != 33 /* '!' */ && input.next != 63 /* '?' */) {\n return input.acceptToken(StartTag)\n }\n}, {contextual: true});\n\nfunction scanTo(type, end) {\n return new ExternalTokenizer(input => {\n for (let endPos = 0, len = 0;; len++) {\n if (input.next < 0) {\n if (len) input.acceptToken(type);\n break\n } \n if (input.next == end.charCodeAt(endPos)) {\n endPos++;\n if (endPos == end.length) {\n if (len >= end.length) input.acceptToken(type, 1 - end.length);\n break\n }\n } else {\n endPos = input.next == end.charCodeAt(0) ? 1 : 0;\n }\n input.advance();\n }\n })\n}\n\nconst commentContent = scanTo(commentContent$1, \"-->\");\nconst piContent = scanTo(piContent$1, \"?>\");\nconst cdataContent = scanTo(cdataContent$1, \"]]>\");\n\nconst xmlHighlighting = styleTags({\n Text: tags.content,\n \"StartTag StartCloseTag EndTag SelfCloseEndTag\": tags.angleBracket,\n TagName: tags.tagName,\n \"MismatchedCloseTag/Tagname\": [tags.tagName, tags.invalid],\n AttributeName: tags.attributeName,\n AttributeValue: tags.attributeValue,\n Is: tags.definitionOperator,\n \"EntityReference CharacterReference\": tags.character,\n Comment: tags.blockComment,\n ProcessingInst: tags.processingInstruction,\n DoctypeDecl: tags.documentMeta,\n Cdata: tags.special(tags.string)\n});\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst parser = LRParser.deserialize({\n version: 14,\n states: \",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7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fQiUR!OiSXOYTaRb\",\n nodeNames: \"⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl\",\n maxTerm: 47,\n context: elementContext,\n nodeProps: [\n [\"closedBy\", 1,\"SelfCloseEndTag EndTag\",13,\"CloseTag MissingCloseTag\"],\n [\"openedBy\", 12,\"StartTag StartCloseTag\",19,\"OpenTag\",20,\"StartTag\"]\n ],\n propSources: [xmlHighlighting],\n skippedNodes: [0],\n repeatNodeCount: 8,\n tokenData: \"IX~R!XOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs'ssv$nvw(Zw}$n}!O*l!O!P$n!P!Q,{!Q![$n![!].e!]!^$n!^!_1v!_!`Cz!`!aDm!a!bE`!b!c$n!c!}.e!}#P$n#P#QFx#Q#R$n#R#S.e#S#T$n#T#o.e#o%W$n%W%o.e%o%p$n%p&a.e&a&b$n&b1p.e1p4U$n4U4d.e4d4e$n4e$IS.e$IS$I`$n$I`$Ib.e$Ib$Kh$n$Kh%#t.e%#t&/x$n&/x&Et.e&Et&FV$n&FV;'S.e;'S;:j1p;:j;=`&e<%l?&r$n?&r?Ah.e?Ah?BY$n?BY?Mn.e?MnO$nX$uWVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nP%dTVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_P%vP;=`<%l%_W&OT{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yW&bP;=`<%l%yX&hP;=`<%l$n_&t_VP{WyUOX$nXY&kYZ&kZ]$n]^&k^p$npq&kqr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZ'zTzYVPOv%_w!^%_!_;'S%_;'S;=`%s<%lO%_~(^VOp(sqs(sst)ht!](s!^;'S(s;'S;=`)b<%lO(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#h#iAr#i;'S%y;'S;=`&_<%lO%yXAwV{WOr%ysv%yw#m%y#m#nB^#n;'S%y;'S;=`&_<%lO%yXBcV{WOr%ysv%yw#d%y#d#eBx#e;'S%y;'S;=`&_<%lO%yXB}V{WOr%ysv%yw#X%y#X#Y7w#Y;'S%y;'S;=`&_<%lO%yXCkT!PP{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yZDTWaQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n_DvW[UVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZEgYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aFV!a;'S$n;'S;=`&e<%lO$nZF`W!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGPYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QGo#Q;'S$n;'S;=`&e<%lO$nZGvYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aHf!a;'S$n;'S;=`&e<%lO$nZHoWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n\",\n tokenizers: [startTag, commentContent, piContent, cdataContent, 0, 1, 2, 3],\n topRules: {\"Document\":[0,6]},\n tokenPrec: 0\n});\n\nexport { parser };\n","import { parser } from '@lezer/xml';\nimport { syntaxTree, LRLanguage, indentNodeProp, foldNodeProp, bracketMatchingHandle, LanguageSupport } from '@codemirror/language';\nimport { EditorSelection } from '@codemirror/state';\nimport { EditorView } from '@codemirror/view';\n\nfunction tagName(doc, tag) {\n let name = tag && tag.getChild(\"TagName\");\n return name ? doc.sliceString(name.from, name.to) : \"\";\n}\nfunction elementName$1(doc, tree) {\n let tag = tree && tree.firstChild;\n return !tag || tag.name != \"OpenTag\" ? \"\" : tagName(doc, tag);\n}\nfunction attrName(doc, tag, pos) {\n let attr = tag && tag.getChildren(\"Attribute\").find(a => a.from <= pos && a.to >= pos);\n let name = attr && attr.getChild(\"AttributeName\");\n return name ? doc.sliceString(name.from, name.to) : \"\";\n}\nfunction findParentElement(tree) {\n for (let cur = tree && tree.parent; cur; cur = cur.parent)\n if (cur.name == \"Element\")\n return cur;\n return null;\n}\nfunction findLocation(state, pos) {\n var _a;\n let at = syntaxTree(state).resolveInner(pos, -1), inTag = null;\n for (let cur = at; !inTag && cur.parent; cur = cur.parent)\n if (cur.name == \"OpenTag\" || cur.name == \"CloseTag\" || cur.name == \"SelfClosingTag\" || cur.name == \"MismatchedCloseTag\")\n inTag = cur;\n if (inTag && (inTag.to > pos || inTag.lastChild.type.isError)) {\n let elt = inTag.parent;\n if (at.name == \"TagName\")\n return inTag.name == \"CloseTag\" || inTag.name == \"MismatchedCloseTag\"\n ? { type: \"closeTag\", from: at.from, context: elt }\n : { type: \"openTag\", from: at.from, context: findParentElement(elt) };\n if (at.name == \"AttributeName\")\n return { type: \"attrName\", from: at.from, context: inTag };\n if (at.name == \"AttributeValue\")\n return { type: \"attrValue\", from: at.from, context: inTag };\n let before = at == inTag || at.name == \"Attribute\" ? at.childBefore(pos) : at;\n if ((before === null || before === void 0 ? void 0 : before.name) == \"StartTag\")\n return { type: \"openTag\", from: pos, context: findParentElement(elt) };\n if ((before === null || before === void 0 ? void 0 : before.name) == \"StartCloseTag\" && before.to <= pos)\n return { type: \"closeTag\", from: pos, context: elt };\n if ((before === null || before === void 0 ? void 0 : before.name) == \"Is\")\n return { type: \"attrValue\", from: pos, context: inTag };\n if (before)\n return { type: \"attrName\", from: pos, context: inTag };\n return null;\n }\n else if (at.name == \"StartCloseTag\") {\n return { type: \"closeTag\", from: pos, context: at.parent };\n }\n while (at.parent && at.to == pos && !((_a = at.lastChild) === null || _a === void 0 ? void 0 : _a.type.isError))\n at = at.parent;\n if (at.name == \"Element\" || at.name == \"Text\" || at.name == \"Document\")\n return { type: \"tag\", from: pos, context: at.name == \"Element\" ? at : findParentElement(at) };\n return null;\n}\nclass Element {\n constructor(spec, attrs, attrValues) {\n this.attrs = attrs;\n this.attrValues = attrValues;\n this.children = [];\n this.name = spec.name;\n this.completion = Object.assign(Object.assign({ type: \"type\" }, spec.completion || {}), { label: this.name });\n this.openCompletion = Object.assign(Object.assign({}, this.completion), { label: \"<\" + this.name });\n this.closeCompletion = Object.assign(Object.assign({}, this.completion), { label: \"</\" + this.name + \">\", boost: 2 });\n this.closeNameCompletion = Object.assign(Object.assign({}, this.completion), { label: this.name + \">\" });\n this.text = spec.textContent ? spec.textContent.map(s => ({ label: s, type: \"text\" })) : [];\n }\n}\nconst Identifier = /^[:\\-\\.\\w\\u00b7-\\uffff]*$/;\nfunction attrCompletion(spec) {\n return Object.assign(Object.assign({ type: \"property\" }, spec.completion || {}), { label: spec.name });\n}\nfunction valueCompletion(spec) {\n return typeof spec == \"string\" ? { label: `\"${spec}\"`, type: \"constant\" }\n : /^\"/.test(spec.label) ? spec\n : Object.assign(Object.assign({}, spec), { label: `\"${spec.label}\"` });\n}\n/**\nCreate a completion source for the given schema.\n*/\nfunction completeFromSchema(eltSpecs, attrSpecs) {\n let allAttrs = [], globalAttrs = [];\n let attrValues = Object.create(null);\n for (let s of attrSpecs) {\n let completion = attrCompletion(s);\n allAttrs.push(completion);\n if (s.global)\n globalAttrs.push(completion);\n if (s.values)\n attrValues[s.name] = s.values.map(valueCompletion);\n }\n let allElements = [], topElements = [];\n let byName = Object.create(null);\n for (let s of eltSpecs) {\n let attrs = globalAttrs, attrVals = attrValues;\n if (s.attributes)\n attrs = attrs.concat(s.attributes.map(s => {\n if (typeof s == \"string\")\n return allAttrs.find(a => a.label == s) || { label: s, type: \"property\" };\n if (s.values) {\n if (attrVals == attrValues)\n attrVals = Object.create(attrVals);\n attrVals[s.name] = s.values.map(valueCompletion);\n }\n return attrCompletion(s);\n }));\n let elt = new Element(s, attrs, attrVals);\n byName[elt.name] = elt;\n allElements.push(elt);\n if (s.top)\n topElements.push(elt);\n }\n if (!topElements.length)\n topElements = allElements;\n for (let i = 0; i < allElements.length; i++) {\n let s = eltSpecs[i], elt = allElements[i];\n if (s.children) {\n for (let ch of s.children)\n if (byName[ch])\n elt.children.push(byName[ch]);\n }\n else {\n elt.children = allElements;\n }\n }\n return cx => {\n var _a;\n let { doc } = cx.state, loc = findLocation(cx.state, cx.pos);\n if (!loc || (loc.type == \"tag\" && !cx.explicit))\n return null;\n let { type, from, context } = loc;\n if (type == \"openTag\") {\n let children = topElements;\n let parentName = elementName$1(doc, context);\n if (parentName) {\n let parent = byName[parentName];\n children = (parent === null || parent === void 0 ? void 0 : parent.children) || allElements;\n }\n return {\n from,\n options: children.map(ch => ch.completion),\n validFor: Identifier\n };\n }\n else if (type == \"closeTag\") {\n let parentName = elementName$1(doc, context);\n return parentName ? {\n from,\n to: cx.pos + (doc.sliceString(cx.pos, cx.pos + 1) == \">\" ? 1 : 0),\n options: [((_a = byName[parentName]) === null || _a === void 0 ? void 0 : _a.closeNameCompletion) || { label: parentName + \">\", type: \"type\" }],\n validFor: Identifier\n } : null;\n }\n else if (type == \"attrName\") {\n let parent = byName[tagName(doc, context)];\n return {\n from,\n options: (parent === null || parent === void 0 ? void 0 : parent.attrs) || globalAttrs,\n validFor: Identifier\n };\n }\n else if (type == \"attrValue\") {\n let attr = attrName(doc, context, from);\n if (!attr)\n return null;\n let parent = byName[tagName(doc, context)];\n let values = ((parent === null || parent === void 0 ? void 0 : parent.attrValues) || attrValues)[attr];\n if (!values || !values.length)\n return null;\n return {\n from,\n to: cx.pos + (doc.sliceString(cx.pos, cx.pos + 1) == '\"' ? 1 : 0),\n options: values,\n validFor: /^\"[^\"]*\"?$/\n };\n }\n else if (type == \"tag\") {\n let parentName = elementName$1(doc, context), parent = byName[parentName];\n let closing = [], last = context && context.lastChild;\n if (parentName && (!last || last.name != \"CloseTag\" || tagName(doc, last) != parentName))\n closing.push(parent ? parent.closeCompletion : { label: \"</\" + parentName + \">\", type: \"type\", boost: 2 });\n let options = closing.concat(((parent === null || parent === void 0 ? void 0 : parent.children) || (context ? allElements : topElements)).map(e => e.openCompletion));\n if (context && (parent === null || parent === void 0 ? void 0 : parent.text.length)) {\n let openTag = context.firstChild;\n if (openTag.to > cx.pos - 20 && !/\\S/.test(cx.state.sliceDoc(openTag.to, cx.pos)))\n options = options.concat(parent.text);\n }\n return {\n from,\n options,\n validFor: /^<\\/?[:\\-\\.\\w\\u00b7-\\uffff]*$/\n };\n }\n else {\n return null;\n }\n };\n}\n\n/**\nA language provider based on the [Lezer XML\nparser](https://github.com/lezer-parser/xml), extended with\nhighlighting and indentation information.\n*/\nconst xmlLanguage = /*@__PURE__*/LRLanguage.define({\n name: \"xml\",\n parser: /*@__PURE__*/parser.configure({\n props: [\n /*@__PURE__*/indentNodeProp.add({\n Element(context) {\n let closed = /^\\s*<\\//.test(context.textAfter);\n return context.lineIndent(context.node.from) + (closed ? 0 : context.unit);\n },\n \"OpenTag CloseTag SelfClosingTag\"(context) {\n return context.column(context.node.from) + context.unit;\n }\n }),\n /*@__PURE__*/foldNodeProp.add({\n Element(subtree) {\n let first = subtree.firstChild, last = subtree.lastChild;\n if (!first || first.name != \"OpenTag\")\n return null;\n return { from: first.to, to: last.name == \"CloseTag\" ? last.from : subtree.to };\n }\n }),\n /*@__PURE__*/bracketMatchingHandle.add({\n \"OpenTag CloseTag\": node => node.getChild(\"TagName\")\n })\n ]\n }),\n languageData: {\n commentTokens: { block: { open: \"<!--\", close: \"-->\" } },\n indentOnInput: /^\\s*<\\/$/\n }\n});\n/**\nXML language support. Includes schema-based autocompletion when\nconfigured.\n*/\nfunction xml(conf = {}) {\n let support = [xmlLanguage.data.of({\n autocomplete: completeFromSchema(conf.elements || [], conf.attributes || [])\n })];\n if (conf.autoCloseTags !== false)\n support.push(autoCloseTags);\n return new LanguageSupport(xmlLanguage, support);\n}\nfunction elementName(doc, tree, max = doc.length) {\n if (!tree)\n return \"\";\n let tag = tree.firstChild;\n let name = tag && tag.getChild(\"TagName\");\n return name ? doc.sliceString(name.from, Math.min(name.to, max)) : \"\";\n}\n/**\nExtension that will automatically insert close tags when a `>` or\n`/` is typed.\n*/\nconst autoCloseTags = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, text, insertTransaction) => {\n if (view.composing || view.state.readOnly || from != to || (text != \">\" && text != \"/\") ||\n !xmlLanguage.isActiveAt(view.state, from, -1))\n return false;\n let base = insertTransaction(), { state } = base;\n let closeTags = state.changeByRange(range => {\n var _a, _b, _c;\n let { head } = range;\n let didType = state.doc.sliceString(head - 1, head) == text;\n let after = syntaxTree(state).resolveInner(head, -1), name;\n if (didType && text == \">\" && after.name == \"EndTag\") {\n let tag = after.parent;\n if (((_b = (_a = tag.parent) === null || _a === void 0 ? void 0 : _a.lastChild) === null || _b === void 0 ? void 0 : _b.name) != \"CloseTag\" &&\n (name = elementName(state.doc, tag.parent, head))) {\n let to = head + (state.doc.sliceString(head, head + 1) === \">\" ? 1 : 0);\n let insert = `</${name}>`;\n return { range, changes: { from: head, to, insert } };\n }\n }\n else if (didType && text == \"/\" && after.name == \"StartCloseTag\") {\n let base = after.parent;\n if (after.from == head - 2 && ((_c = base.lastChild) === null || _c === void 0 ? void 0 : _c.name) != \"CloseTag\" &&\n (name = elementName(state.doc, base, head))) {\n let to = head + (state.doc.sliceString(head, head + 1) === \">\" ? 1 : 0);\n let insert = `${name}>`;\n return {\n range: EditorSelection.cursor(head + insert.length, -1),\n changes: { from: head, to, insert }\n };\n }\n }\n return { range };\n });\n if (closeTags.changes.empty)\n return false;\n view.dispatch([\n base,\n state.update(closeTags, {\n userEvent: \"input.complete\",\n scrollIntoView: true\n })\n ]);\n return true;\n});\n\nexport { autoCloseTags, completeFromSchema, xml, xmlLanguage };\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/4630.64ab2753f3286b5a778b.js.map
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlmpy310/lib/python3.10/site-packages/notebook/static/4670.093ce3330683cb042686.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[4670],{
|
| 3 |
+
|
| 4 |
+
/***/ 44670:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
// ESM COMPAT FLAG
|
| 8 |
+
__webpack_require__.r(__webpack_exports__);
|
| 9 |
+
|
| 10 |
+
// EXPORTS
|
| 11 |
+
__webpack_require__.d(__webpack_exports__, {
|
| 12 |
+
json: () => (/* binding */ json),
|
| 13 |
+
jsonLanguage: () => (/* binding */ jsonLanguage),
|
| 14 |
+
jsonParseLinter: () => (/* binding */ jsonParseLinter)
|
| 15 |
+
});
|
| 16 |
+
|
| 17 |
+
// EXTERNAL MODULE: ../node_modules/@lezer/lr/dist/index.js
|
| 18 |
+
var dist = __webpack_require__(49906);
|
| 19 |
+
// EXTERNAL MODULE: consume shared module (default) @lezer/highlight@~1.2.0 (singleton) (fallback: ../node_modules/@lezer/highlight/dist/index.js)
|
| 20 |
+
var index_js_ = __webpack_require__(92209);
|
| 21 |
+
;// CONCATENATED MODULE: ../node_modules/@lezer/json/dist/index.js
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
const jsonHighlighting = (0,index_js_.styleTags)({
|
| 26 |
+
String: index_js_.tags.string,
|
| 27 |
+
Number: index_js_.tags.number,
|
| 28 |
+
"True False": index_js_.tags.bool,
|
| 29 |
+
PropertyName: index_js_.tags.propertyName,
|
| 30 |
+
Null: index_js_.tags.null,
|
| 31 |
+
",": index_js_.tags.separator,
|
| 32 |
+
"[ ]": index_js_.tags.squareBracket,
|
| 33 |
+
"{ }": index_js_.tags.brace
|
| 34 |
+
});
|
| 35 |
+
|
| 36 |
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
| 37 |
+
const parser = dist/* LRParser */.WQ.deserialize({
|
| 38 |
+
version: 14,
|
| 39 |
+
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",
|
| 40 |
+
stateData: "#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",
|
| 41 |
+
goto: "!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
|
| 42 |
+
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",
|
| 43 |
+
maxTerm: 25,
|
| 44 |
+
nodeProps: [
|
| 45 |
+
["openedBy", 7,"{",12,"["],
|
| 46 |
+
["closedBy", 8,"}",13,"]"]
|
| 47 |
+
],
|
| 48 |
+
propSources: [jsonHighlighting],
|
| 49 |
+
skippedNodes: [0],
|
| 50 |
+
repeatNodeCount: 2,
|
| 51 |
+
tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
|
| 52 |
+
tokenizers: [0],
|
| 53 |
+
topRules: {"JsonText":[0,1]},
|
| 54 |
+
tokenPrec: 0
|
| 55 |
+
});
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
// EXTERNAL MODULE: consume shared module (default) @codemirror/language@^6.10.1 (strict) (fallback: ../node_modules/@codemirror/language/dist/index.js)
|
| 60 |
+
var dist_index_js_ = __webpack_require__(17592);
|
| 61 |
+
;// CONCATENATED MODULE: ../node_modules/@codemirror/lang-json/dist/index.js
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
/**
|
| 66 |
+
Calls
|
| 67 |
+
[`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse)
|
| 68 |
+
on the document and, if that throws an error, reports it as a
|
| 69 |
+
single diagnostic.
|
| 70 |
+
*/
|
| 71 |
+
const jsonParseLinter = () => (view) => {
|
| 72 |
+
try {
|
| 73 |
+
JSON.parse(view.state.doc.toString());
|
| 74 |
+
}
|
| 75 |
+
catch (e) {
|
| 76 |
+
if (!(e instanceof SyntaxError))
|
| 77 |
+
throw e;
|
| 78 |
+
const pos = getErrorPosition(e, view.state.doc);
|
| 79 |
+
return [{
|
| 80 |
+
from: pos,
|
| 81 |
+
message: e.message,
|
| 82 |
+
severity: 'error',
|
| 83 |
+
to: pos
|
| 84 |
+
}];
|
| 85 |
+
}
|
| 86 |
+
return [];
|
| 87 |
+
};
|
| 88 |
+
function getErrorPosition(error, doc) {
|
| 89 |
+
let m;
|
| 90 |
+
if (m = error.message.match(/at position (\d+)/))
|
| 91 |
+
return Math.min(+m[1], doc.length);
|
| 92 |
+
if (m = error.message.match(/at line (\d+) column (\d+)/))
|
| 93 |
+
return Math.min(doc.line(+m[1]).from + (+m[2]) - 1, doc.length);
|
| 94 |
+
return 0;
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
/**
|
| 98 |
+
A language provider that provides JSON parsing.
|
| 99 |
+
*/
|
| 100 |
+
const jsonLanguage = /*@__PURE__*/dist_index_js_.LRLanguage.define({
|
| 101 |
+
name: "json",
|
| 102 |
+
parser: /*@__PURE__*/parser.configure({
|
| 103 |
+
props: [
|
| 104 |
+
/*@__PURE__*/dist_index_js_.indentNodeProp.add({
|
| 105 |
+
Object: /*@__PURE__*/(0,dist_index_js_.continuedIndent)({ except: /^\s*\}/ }),
|
| 106 |
+
Array: /*@__PURE__*/(0,dist_index_js_.continuedIndent)({ except: /^\s*\]/ })
|
| 107 |
+
}),
|
| 108 |
+
/*@__PURE__*/dist_index_js_.foldNodeProp.add({
|
| 109 |
+
"Object Array": dist_index_js_.foldInside
|
| 110 |
+
})
|
| 111 |
+
]
|
| 112 |
+
}),
|
| 113 |
+
languageData: {
|
| 114 |
+
closeBrackets: { brackets: ["[", "{", '"'] },
|
| 115 |
+
indentOnInput: /^\s*[\}\]]$/
|
| 116 |
+
}
|
| 117 |
+
});
|
| 118 |
+
/**
|
| 119 |
+
JSON language support.
|
| 120 |
+
*/
|
| 121 |
+
function json() {
|
| 122 |
+
return new dist_index_js_.LanguageSupport(jsonLanguage);
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
/***/ })
|
| 129 |
+
|
| 130 |
+
}]);
|
| 131 |
+
//# sourceMappingURL=4670.093ce3330683cb042686.js.map?v=093ce3330683cb042686
|
vlmpy310/lib/python3.10/site-packages/notebook/static/4965.591924d7805c15261494.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"4965.591924d7805c15261494.js?v=591924d7805c15261494","mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B;AAC1B;AACA;AACA,wBAAwB;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/mbox.js"],"sourcesContent":["var rfc2822 = [\n \"From\", \"Sender\", \"Reply-To\", \"To\", \"Cc\", \"Bcc\", \"Message-ID\",\n \"In-Reply-To\", \"References\", \"Resent-From\", \"Resent-Sender\", \"Resent-To\",\n \"Resent-Cc\", \"Resent-Bcc\", \"Resent-Message-ID\", \"Return-Path\", \"Received\"\n];\nvar rfc2822NoEmail = [\n \"Date\", \"Subject\", \"Comments\", \"Keywords\", \"Resent-Date\"\n];\n\nvar whitespace = /^[ \\t]/;\nvar separator = /^From /; // See RFC 4155\nvar rfc2822Header = new RegExp(\"^(\" + rfc2822.join(\"|\") + \"): \");\nvar rfc2822HeaderNoEmail = new RegExp(\"^(\" + rfc2822NoEmail.join(\"|\") + \"): \");\nvar header = /^[^:]+:/; // Optional fields defined in RFC 2822\nvar email = /^[^ ]+@[^ ]+/;\nvar untilEmail = /^.*?(?=[^ ]+?@[^ ]+)/;\nvar bracketedEmail = /^<.*?>/;\nvar untilBracketedEmail = /^.*?(?=<.*>)/;\n\nfunction styleForHeader(header) {\n if (header === \"Subject\") return \"header\";\n return \"string\";\n}\n\nfunction readToken(stream, state) {\n if (stream.sol()) {\n // From last line\n state.inSeparator = false;\n if (state.inHeader && stream.match(whitespace)) {\n // Header folding\n return null;\n } else {\n state.inHeader = false;\n state.header = null;\n }\n\n if (stream.match(separator)) {\n state.inHeaders = true;\n state.inSeparator = true;\n return \"atom\";\n }\n\n var match;\n var emailPermitted = false;\n if ((match = stream.match(rfc2822HeaderNoEmail)) ||\n (emailPermitted = true) && (match = stream.match(rfc2822Header))) {\n state.inHeaders = true;\n state.inHeader = true;\n state.emailPermitted = emailPermitted;\n state.header = match[1];\n return \"atom\";\n }\n\n // Use vim's heuristics: recognize custom headers only if the line is in a\n // block of legitimate headers.\n if (state.inHeaders && (match = stream.match(header))) {\n state.inHeader = true;\n state.emailPermitted = true;\n state.header = match[1];\n return \"atom\";\n }\n\n state.inHeaders = false;\n stream.skipToEnd();\n return null;\n }\n\n if (state.inSeparator) {\n if (stream.match(email)) return \"link\";\n if (stream.match(untilEmail)) return \"atom\";\n stream.skipToEnd();\n return \"atom\";\n }\n\n if (state.inHeader) {\n var style = styleForHeader(state.header);\n\n if (state.emailPermitted) {\n if (stream.match(bracketedEmail)) return style + \" link\";\n if (stream.match(untilBracketedEmail)) return style;\n }\n stream.skipToEnd();\n return style;\n }\n\n stream.skipToEnd();\n return null;\n};\n\nexport const mbox = {\n name: \"mbox\",\n startState: function() {\n return {\n // Is in a mbox separator\n inSeparator: false,\n // Is in a mail header\n inHeader: false,\n // If bracketed email is permitted. Only applicable when inHeader\n emailPermitted: false,\n // Name of current header\n header: null,\n // Is in a region of mail headers\n inHeaders: false\n };\n },\n token: readToken,\n blankLine: function(state) {\n state.inHeaders = state.inSeparator = state.inHeader = false;\n },\n languageData: {\n autocomplete: rfc2822.concat(rfc2822NoEmail)\n }\n}\n\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/4971.e850b0a1dcb6d3fce7a4.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"4971.e850b0a1dcb6d3fce7a4.js?v=e850b0a1dcb6d3fce7a4","mappings":";;;;;;AAAa;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,eAAe;AACf,eAAe;AACf;;;;;;;ACJa;AACb;AACA;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,mBAAmB;AACnB,2BAA2B,mBAAO,CAAC,KAA4B;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0DAA0D,UAAU;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,QAAQ;AAChC;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA,CAAC;AACD,mBAAmB;AACnB;;;;;;;ACpEa;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,eAAe;AACf,mBAAmB,mBAAO,CAAC,KAAyB;AACpD,uBAAuB,mBAAO,CAAC,KAAuB;AACtD,mBAAmB,mBAAO,CAAC,KAAmB;AAC9C,eAAe;AACf;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;;;;;;AChBa;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA,mCAAmC;AACnC;AACA;AACA;AACA,UAAU;AACV,sCAAsC,gCAAgC;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,uBAAuB;AACvB;;;;;;;ACvCa;AACb,8CAA6C,EAAE,aAAa,EAAC;AAC7D,kBAAkB,GAAG,wBAAwB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,uBAAuB;AACpE,6CAA6C,oBAAoB;AACjE;AACA;AACA,qDAAqD,uBAAuB;AAC5E;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA,kBAAkB;AAClB","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/mathjax-full/js/components/version.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/mathjax-full/js/core/HandlerList.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/mathjax-full/js/mathjax.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/mathjax-full/js/util/PrioritizedList.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/mathjax-full/js/util/Retries.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.VERSION = void 0;\nexports.VERSION = '3.2.2';\n//# sourceMappingURL=version.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.HandlerList = void 0;\nvar PrioritizedList_js_1 = require(\"../util/PrioritizedList.js\");\nvar HandlerList = (function (_super) {\n __extends(HandlerList, _super);\n function HandlerList() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n HandlerList.prototype.register = function (handler) {\n return this.add(handler, handler.priority);\n };\n HandlerList.prototype.unregister = function (handler) {\n this.remove(handler);\n };\n HandlerList.prototype.handlesDocument = function (document) {\n var e_1, _a;\n try {\n for (var _b = __values(this), _c = _b.next(); !_c.done; _c = _b.next()) {\n var item = _c.value;\n var handler = item.item;\n if (handler.handlesDocument(document)) {\n return handler;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n throw new Error(\"Can't find handler for document\");\n };\n HandlerList.prototype.document = function (document, options) {\n if (options === void 0) { options = null; }\n return this.handlesDocument(document).create(document, options);\n };\n return HandlerList;\n}(PrioritizedList_js_1.PrioritizedList));\nexports.HandlerList = HandlerList;\n//# sourceMappingURL=HandlerList.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mathjax = void 0;\nvar version_js_1 = require(\"./components/version.js\");\nvar HandlerList_js_1 = require(\"./core/HandlerList.js\");\nvar Retries_js_1 = require(\"./util/Retries.js\");\nexports.mathjax = {\n version: version_js_1.VERSION,\n handlers: new HandlerList_js_1.HandlerList(),\n document: function (document, options) {\n return exports.mathjax.handlers.document(document, options);\n },\n handleRetriesFor: Retries_js_1.handleRetriesFor,\n retryAfter: Retries_js_1.retryAfter,\n asyncLoad: null,\n};\n//# sourceMappingURL=mathjax.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PrioritizedList = void 0;\nvar PrioritizedList = (function () {\n function PrioritizedList() {\n this.items = [];\n this.items = [];\n }\n PrioritizedList.prototype[Symbol.iterator] = function () {\n var i = 0;\n var items = this.items;\n return {\n next: function () {\n return { value: items[i++], done: (i > items.length) };\n }\n };\n };\n PrioritizedList.prototype.add = function (item, priority) {\n if (priority === void 0) { priority = PrioritizedList.DEFAULTPRIORITY; }\n var i = this.items.length;\n do {\n i--;\n } while (i >= 0 && priority < this.items[i].priority);\n this.items.splice(i + 1, 0, { item: item, priority: priority });\n return item;\n };\n PrioritizedList.prototype.remove = function (item) {\n var i = this.items.length;\n do {\n i--;\n } while (i >= 0 && this.items[i].item !== item);\n if (i >= 0) {\n this.items.splice(i, 1);\n }\n };\n PrioritizedList.DEFAULTPRIORITY = 5;\n return PrioritizedList;\n}());\nexports.PrioritizedList = PrioritizedList;\n//# sourceMappingURL=PrioritizedList.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.retryAfter = exports.handleRetriesFor = void 0;\nfunction handleRetriesFor(code) {\n return new Promise(function run(ok, fail) {\n try {\n ok(code());\n }\n catch (err) {\n if (err.retry && err.retry instanceof Promise) {\n err.retry.then(function () { return run(ok, fail); })\n .catch(function (perr) { return fail(perr); });\n }\n else if (err.restart && err.restart.isCallback) {\n MathJax.Callback.After(function () { return run(ok, fail); }, err.restart);\n }\n else {\n fail(err);\n }\n }\n });\n}\nexports.handleRetriesFor = handleRetriesFor;\nfunction retryAfter(promise) {\n var err = new Error('MathJax retry');\n err.retry = promise;\n throw err;\n}\nexports.retryAfter = retryAfter;\n//# sourceMappingURL=Retries.js.map"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/5019.48f595eb3007a3ca0f91.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"5019.48f595eb3007a3ca0f91.js?v=48f595eb3007a3ca0f91","mappings":";;;;;;;;;;;;;;;AAAO;AACP,kBAAkB;AAClB;;AAEA;AACA,sDAAsD;AACtD,gDAAgD;AAChD,sDAAsD;AACtD,gEAAgE;AAChE,4DAA4D;AAC5D,kFAAkF;AAClF,wDAAwD;AACxD,gEAAgE;AAChE,sDAAsD;AACtD,sDAAsD;AACtD;AACA;AACA;AACA;;AAEA;AACA,4BAA4B,WAAW;;AAEvC;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM,eAAe;AACrB;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,mBAAmB;AACnB;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,yBAAyB,OAAO;AAChC;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,kBAAkB;AAClB;AACA,MAAM,mBAAmB;AACzB;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB,kBAAkB;AAClB,kBAAkB,eAAe;AACjC;;AAEA,2CAA2C,IAAI,aAAa,EAAE,aAAa,EAAE;AAC7E;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB,0BAA0B,uBAAuB;AACjD;AACA;;AAEA;AACA,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,eAAe;AACjC,kBAAkB;;AAElB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,eAAe;AACjC;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,0BAA0B,uBAAuB;AACjD,kBAAkB;AAClB;AACA;;AAEA;AACA,kBAAkB;AAClB,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;;AAEA;AACA,kBAAkB;AAClB,kBAAkB,eAAe;AACjC;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA,wCAAwC;AACxC;AACA,oBAAoB;AACpB;AACA;AACA;AACA;AACA,UAAU;AACV,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA,4BAA4B;AAC5B,sBAAsB,2BAA2B,yBAAyB;AAC1E;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,kBAAkB;AACpC;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEO,kBAAkB;AACzB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,mBAAmB,YAAY;;AAEtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA,8BAA8B;AAC9B;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,wBAAwB;AACxB;AACA;AACA;AACA,CAAC;;AAEM;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,QAAQ;AACR;AACA;AACA,KAAK;AACL;AACA,uBAAuB;AACvB;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,CAAC;;AAEM;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/css.js"],"sourcesContent":["export function mkCSS(parserConfig) {\n parserConfig = {...defaults, ...parserConfig}\n var inline = parserConfig.inline\n\n var tokenHooks = parserConfig.tokenHooks,\n documentTypes = parserConfig.documentTypes || {},\n mediaTypes = parserConfig.mediaTypes || {},\n mediaFeatures = parserConfig.mediaFeatures || {},\n mediaValueKeywords = parserConfig.mediaValueKeywords || {},\n propertyKeywords = parserConfig.propertyKeywords || {},\n nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},\n fontProperties = parserConfig.fontProperties || {},\n counterDescriptors = parserConfig.counterDescriptors || {},\n colorKeywords = parserConfig.colorKeywords || {},\n valueKeywords = parserConfig.valueKeywords || {},\n allowNested = parserConfig.allowNested,\n lineComment = parserConfig.lineComment,\n supportsAtComponent = parserConfig.supportsAtComponent === true,\n highlightNonStandardPropertyKeywords = parserConfig.highlightNonStandardPropertyKeywords !== false;\n\n var type, override;\n function ret(style, tp) { type = tp; return style; }\n\n // Tokenizers\n\n function tokenBase(stream, state) {\n var ch = stream.next();\n if (tokenHooks[ch]) {\n var result = tokenHooks[ch](stream, state);\n if (result !== false) return result;\n }\n if (ch == \"@\") {\n stream.eatWhile(/[\\w\\\\\\-]/);\n return ret(\"def\", stream.current());\n } else if (ch == \"=\" || (ch == \"~\" || ch == \"|\") && stream.eat(\"=\")) {\n return ret(null, \"compare\");\n } else if (ch == \"\\\"\" || ch == \"'\") {\n state.tokenize = tokenString(ch);\n return state.tokenize(stream, state);\n } else if (ch == \"#\") {\n stream.eatWhile(/[\\w\\\\\\-]/);\n return ret(\"atom\", \"hash\");\n } else if (ch == \"!\") {\n stream.match(/^\\s*\\w*/);\n return ret(\"keyword\", \"important\");\n } else if (/\\d/.test(ch) || ch == \".\" && stream.eat(/\\d/)) {\n stream.eatWhile(/[\\w.%]/);\n return ret(\"number\", \"unit\");\n } else if (ch === \"-\") {\n if (/[\\d.]/.test(stream.peek())) {\n stream.eatWhile(/[\\w.%]/);\n return ret(\"number\", \"unit\");\n } else if (stream.match(/^-[\\w\\\\\\-]*/)) {\n stream.eatWhile(/[\\w\\\\\\-]/);\n if (stream.match(/^\\s*:/, false))\n return ret(\"def\", \"variable-definition\");\n return ret(\"variableName\", \"variable\");\n } else if (stream.match(/^\\w+-/)) {\n return ret(\"meta\", \"meta\");\n }\n } else if (/[,+>*\\/]/.test(ch)) {\n return ret(null, \"select-op\");\n } else if (ch == \".\" && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {\n return ret(\"qualifier\", \"qualifier\");\n } else if (/[:;{}\\[\\]\\(\\)]/.test(ch)) {\n return ret(null, ch);\n } else if (stream.match(/^[\\w-.]+(?=\\()/)) {\n if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) {\n state.tokenize = tokenParenthesized;\n }\n return ret(\"variableName.function\", \"variable\");\n } else if (/[\\w\\\\\\-]/.test(ch)) {\n stream.eatWhile(/[\\w\\\\\\-]/);\n return ret(\"property\", \"word\");\n } else {\n return ret(null, null);\n }\n }\n\n function tokenString(quote) {\n return function(stream, state) {\n var escaped = false, ch;\n while ((ch = stream.next()) != null) {\n if (ch == quote && !escaped) {\n if (quote == \")\") stream.backUp(1);\n break;\n }\n escaped = !escaped && ch == \"\\\\\";\n }\n if (ch == quote || !escaped && quote != \")\") state.tokenize = null;\n return ret(\"string\", \"string\");\n };\n }\n\n function tokenParenthesized(stream, state) {\n stream.next(); // Must be '('\n if (!stream.match(/^\\s*[\\\"\\')]/, false))\n state.tokenize = tokenString(\")\");\n else\n state.tokenize = null;\n return ret(null, \"(\");\n }\n\n // Context management\n\n function Context(type, indent, prev) {\n this.type = type;\n this.indent = indent;\n this.prev = prev;\n }\n\n function pushContext(state, stream, type, indent) {\n state.context = new Context(type, stream.indentation() + (indent === false ? 0 : stream.indentUnit), state.context);\n return type;\n }\n\n function popContext(state) {\n if (state.context.prev)\n state.context = state.context.prev;\n return state.context.type;\n }\n\n function pass(type, stream, state) {\n return states[state.context.type](type, stream, state);\n }\n function popAndPass(type, stream, state, n) {\n for (var i = n || 1; i > 0; i--)\n state.context = state.context.prev;\n return pass(type, stream, state);\n }\n\n // Parser\n\n function wordAsValue(stream) {\n var word = stream.current().toLowerCase();\n if (valueKeywords.hasOwnProperty(word))\n override = \"atom\";\n else if (colorKeywords.hasOwnProperty(word))\n override = \"keyword\";\n else\n override = \"variable\";\n }\n\n var states = {};\n\n states.top = function(type, stream, state) {\n if (type == \"{\") {\n return pushContext(state, stream, \"block\");\n } else if (type == \"}\" && state.context.prev) {\n return popContext(state);\n } else if (supportsAtComponent && /@component/i.test(type)) {\n return pushContext(state, stream, \"atComponentBlock\");\n } else if (/^@(-moz-)?document$/i.test(type)) {\n return pushContext(state, stream, \"documentTypes\");\n } else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type)) {\n return pushContext(state, stream, \"atBlock\");\n } else if (/^@(font-face|counter-style)/i.test(type)) {\n state.stateArg = type;\n return \"restricted_atBlock_before\";\n } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type)) {\n return \"keyframes\";\n } else if (type && type.charAt(0) == \"@\") {\n return pushContext(state, stream, \"at\");\n } else if (type == \"hash\") {\n override = \"builtin\";\n } else if (type == \"word\") {\n override = \"tag\";\n } else if (type == \"variable-definition\") {\n return \"maybeprop\";\n } else if (type == \"interpolation\") {\n return pushContext(state, stream, \"interpolation\");\n } else if (type == \":\") {\n return \"pseudo\";\n } else if (allowNested && type == \"(\") {\n return pushContext(state, stream, \"parens\");\n }\n return state.context.type;\n };\n\n states.block = function(type, stream, state) {\n if (type == \"word\") {\n var word = stream.current().toLowerCase();\n if (propertyKeywords.hasOwnProperty(word)) {\n override = \"property\";\n return \"maybeprop\";\n } else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {\n override = highlightNonStandardPropertyKeywords ? \"string.special\" : \"property\";\n return \"maybeprop\";\n } else if (allowNested) {\n override = stream.match(/^\\s*:(?:\\s|$)/, false) ? \"property\" : \"tag\";\n return \"block\";\n } else {\n override = \"error\";\n return \"maybeprop\";\n }\n } else if (type == \"meta\") {\n return \"block\";\n } else if (!allowNested && (type == \"hash\" || type == \"qualifier\")) {\n override = \"error\";\n return \"block\";\n } else {\n return states.top(type, stream, state);\n }\n };\n\n states.maybeprop = function(type, stream, state) {\n if (type == \":\") return pushContext(state, stream, \"prop\");\n return pass(type, stream, state);\n };\n\n states.prop = function(type, stream, state) {\n if (type == \";\") return popContext(state);\n if (type == \"{\" && allowNested) return pushContext(state, stream, \"propBlock\");\n if (type == \"}\" || type == \"{\") return popAndPass(type, stream, state);\n if (type == \"(\") return pushContext(state, stream, \"parens\");\n\n if (type == \"hash\" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(stream.current())) {\n override = \"error\";\n } else if (type == \"word\") {\n wordAsValue(stream);\n } else if (type == \"interpolation\") {\n return pushContext(state, stream, \"interpolation\");\n }\n return \"prop\";\n };\n\n states.propBlock = function(type, _stream, state) {\n if (type == \"}\") return popContext(state);\n if (type == \"word\") { override = \"property\"; return \"maybeprop\"; }\n return state.context.type;\n };\n\n states.parens = function(type, stream, state) {\n if (type == \"{\" || type == \"}\") return popAndPass(type, stream, state);\n if (type == \")\") return popContext(state);\n if (type == \"(\") return pushContext(state, stream, \"parens\");\n if (type == \"interpolation\") return pushContext(state, stream, \"interpolation\");\n if (type == \"word\") wordAsValue(stream);\n return \"parens\";\n };\n\n states.pseudo = function(type, stream, state) {\n if (type == \"meta\") return \"pseudo\";\n\n if (type == \"word\") {\n override = \"variableName.constant\";\n return state.context.type;\n }\n return pass(type, stream, state);\n };\n\n states.documentTypes = function(type, stream, state) {\n if (type == \"word\" && documentTypes.hasOwnProperty(stream.current())) {\n override = \"tag\";\n return state.context.type;\n } else {\n return states.atBlock(type, stream, state);\n }\n };\n\n states.atBlock = function(type, stream, state) {\n if (type == \"(\") return pushContext(state, stream, \"atBlock_parens\");\n if (type == \"}\" || type == \";\") return popAndPass(type, stream, state);\n if (type == \"{\") return popContext(state) && pushContext(state, stream, allowNested ? \"block\" : \"top\");\n\n if (type == \"interpolation\") return pushContext(state, stream, \"interpolation\");\n\n if (type == \"word\") {\n var word = stream.current().toLowerCase();\n if (word == \"only\" || word == \"not\" || word == \"and\" || word == \"or\")\n override = \"keyword\";\n else if (mediaTypes.hasOwnProperty(word))\n override = \"attribute\";\n else if (mediaFeatures.hasOwnProperty(word))\n override = \"property\";\n else if (mediaValueKeywords.hasOwnProperty(word))\n override = \"keyword\";\n else if (propertyKeywords.hasOwnProperty(word))\n override = \"property\";\n else if (nonStandardPropertyKeywords.hasOwnProperty(word))\n override = highlightNonStandardPropertyKeywords ? \"string.special\" : \"property\";\n else if (valueKeywords.hasOwnProperty(word))\n override = \"atom\";\n else if (colorKeywords.hasOwnProperty(word))\n override = \"keyword\";\n else\n override = \"error\";\n }\n return state.context.type;\n };\n\n states.atComponentBlock = function(type, stream, state) {\n if (type == \"}\")\n return popAndPass(type, stream, state);\n if (type == \"{\")\n return popContext(state) && pushContext(state, stream, allowNested ? \"block\" : \"top\", false);\n if (type == \"word\")\n override = \"error\";\n return state.context.type;\n };\n\n states.atBlock_parens = function(type, stream, state) {\n if (type == \")\") return popContext(state);\n if (type == \"{\" || type == \"}\") return popAndPass(type, stream, state, 2);\n return states.atBlock(type, stream, state);\n };\n\n states.restricted_atBlock_before = function(type, stream, state) {\n if (type == \"{\")\n return pushContext(state, stream, \"restricted_atBlock\");\n if (type == \"word\" && state.stateArg == \"@counter-style\") {\n override = \"variable\";\n return \"restricted_atBlock_before\";\n }\n return pass(type, stream, state);\n };\n\n states.restricted_atBlock = function(type, stream, state) {\n if (type == \"}\") {\n state.stateArg = null;\n return popContext(state);\n }\n if (type == \"word\") {\n if ((state.stateArg == \"@font-face\" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||\n (state.stateArg == \"@counter-style\" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))\n override = \"error\";\n else\n override = \"property\";\n return \"maybeprop\";\n }\n return \"restricted_atBlock\";\n };\n\n states.keyframes = function(type, stream, state) {\n if (type == \"word\") { override = \"variable\"; return \"keyframes\"; }\n if (type == \"{\") return pushContext(state, stream, \"top\");\n return pass(type, stream, state);\n };\n\n states.at = function(type, stream, state) {\n if (type == \";\") return popContext(state);\n if (type == \"{\" || type == \"}\") return popAndPass(type, stream, state);\n if (type == \"word\") override = \"tag\";\n else if (type == \"hash\") override = \"builtin\";\n return \"at\";\n };\n\n states.interpolation = function(type, stream, state) {\n if (type == \"}\") return popContext(state);\n if (type == \"{\" || type == \";\") return popAndPass(type, stream, state);\n if (type == \"word\") override = \"variable\";\n else if (type != \"variable\" && type != \"(\" && type != \")\") override = \"error\";\n return \"interpolation\";\n };\n\n return {\n name: parserConfig.name,\n startState: function() {\n return {tokenize: null,\n state: inline ? \"block\" : \"top\",\n stateArg: null,\n context: new Context(inline ? \"block\" : \"top\", 0, null)};\n },\n\n token: function(stream, state) {\n if (!state.tokenize && stream.eatSpace()) return null;\n var style = (state.tokenize || tokenBase)(stream, state);\n if (style && typeof style == \"object\") {\n type = style[1];\n style = style[0];\n }\n override = style;\n if (type != \"comment\")\n state.state = states[state.state](type, stream, state);\n return override;\n },\n\n indent: function(state, textAfter, iCx) {\n var cx = state.context, ch = textAfter && textAfter.charAt(0);\n var indent = cx.indent;\n if (cx.type == \"prop\" && (ch == \"}\" || ch == \")\")) cx = cx.prev;\n if (cx.prev) {\n if (ch == \"}\" && (cx.type == \"block\" || cx.type == \"top\" ||\n cx.type == \"interpolation\" || cx.type == \"restricted_atBlock\")) {\n // Resume indentation from parent context.\n cx = cx.prev;\n indent = cx.indent;\n } else if (ch == \")\" && (cx.type == \"parens\" || cx.type == \"atBlock_parens\") ||\n ch == \"{\" && (cx.type == \"at\" || cx.type == \"atBlock\")) {\n // Dedent relative to current context.\n indent = Math.max(0, cx.indent - iCx.unit);\n }\n }\n return indent;\n },\n\n languageData: {\n indentOnInput: /^\\s*\\}$/,\n commentTokens: {line: lineComment, block: {open: \"/*\", close: \"*/\"}},\n autocomplete: allWords\n }\n };\n};\n\nfunction keySet(array) {\n var keys = {};\n for (var i = 0; i < array.length; ++i) {\n keys[array[i].toLowerCase()] = true;\n }\n return keys;\n}\n\nvar documentTypes_ = [\n \"domain\", \"regexp\", \"url\", \"url-prefix\"\n], documentTypes = keySet(documentTypes_);\n\nvar mediaTypes_ = [\n \"all\", \"aural\", \"braille\", \"handheld\", \"print\", \"projection\", \"screen\",\n \"tty\", \"tv\", \"embossed\"\n], mediaTypes = keySet(mediaTypes_);\n\nvar mediaFeatures_ = [\n \"width\", \"min-width\", \"max-width\", \"height\", \"min-height\", \"max-height\",\n \"device-width\", \"min-device-width\", \"max-device-width\", \"device-height\",\n \"min-device-height\", \"max-device-height\", \"aspect-ratio\",\n \"min-aspect-ratio\", \"max-aspect-ratio\", \"device-aspect-ratio\",\n \"min-device-aspect-ratio\", \"max-device-aspect-ratio\", \"color\", \"min-color\",\n \"max-color\", \"color-index\", \"min-color-index\", \"max-color-index\",\n \"monochrome\", \"min-monochrome\", \"max-monochrome\", \"resolution\",\n \"min-resolution\", \"max-resolution\", \"scan\", \"grid\", \"orientation\",\n \"device-pixel-ratio\", \"min-device-pixel-ratio\", \"max-device-pixel-ratio\",\n \"pointer\", \"any-pointer\", \"hover\", \"any-hover\", \"prefers-color-scheme\",\n \"dynamic-range\", \"video-dynamic-range\"\n], mediaFeatures = keySet(mediaFeatures_);\n\nvar mediaValueKeywords_ = [\n \"landscape\", \"portrait\", \"none\", \"coarse\", \"fine\", \"on-demand\", \"hover\",\n \"interlace\", \"progressive\",\n \"dark\", \"light\",\n \"standard\", \"high\"\n], mediaValueKeywords = keySet(mediaValueKeywords_);\n\nvar propertyKeywords_ = [\n \"align-content\", \"align-items\", \"align-self\", \"alignment-adjust\",\n \"alignment-baseline\", \"all\", \"anchor-point\", \"animation\", \"animation-delay\",\n \"animation-direction\", \"animation-duration\", \"animation-fill-mode\",\n \"animation-iteration-count\", \"animation-name\", \"animation-play-state\",\n \"animation-timing-function\", \"appearance\", \"azimuth\", \"backdrop-filter\",\n \"backface-visibility\", \"background\", \"background-attachment\",\n \"background-blend-mode\", \"background-clip\", \"background-color\",\n \"background-image\", \"background-origin\", \"background-position\",\n \"background-position-x\", \"background-position-y\", \"background-repeat\",\n \"background-size\", \"baseline-shift\", \"binding\", \"bleed\", \"block-size\",\n \"bookmark-label\", \"bookmark-level\", \"bookmark-state\", \"bookmark-target\",\n \"border\", \"border-bottom\", \"border-bottom-color\", \"border-bottom-left-radius\",\n \"border-bottom-right-radius\", \"border-bottom-style\", \"border-bottom-width\",\n \"border-collapse\", \"border-color\", \"border-image\", \"border-image-outset\",\n \"border-image-repeat\", \"border-image-slice\", \"border-image-source\",\n \"border-image-width\", \"border-left\", \"border-left-color\", \"border-left-style\",\n \"border-left-width\", \"border-radius\", \"border-right\", \"border-right-color\",\n \"border-right-style\", \"border-right-width\", \"border-spacing\", \"border-style\",\n \"border-top\", \"border-top-color\", \"border-top-left-radius\",\n \"border-top-right-radius\", \"border-top-style\", \"border-top-width\",\n \"border-width\", \"bottom\", \"box-decoration-break\", \"box-shadow\", \"box-sizing\",\n \"break-after\", \"break-before\", \"break-inside\", \"caption-side\", \"caret-color\",\n \"clear\", \"clip\", \"color\", \"color-profile\", \"column-count\", \"column-fill\",\n \"column-gap\", \"column-rule\", \"column-rule-color\", \"column-rule-style\",\n \"column-rule-width\", \"column-span\", \"column-width\", \"columns\", \"contain\",\n \"content\", \"counter-increment\", \"counter-reset\", \"crop\", \"cue\", \"cue-after\",\n \"cue-before\", \"cursor\", \"direction\", \"display\", \"dominant-baseline\",\n \"drop-initial-after-adjust\", \"drop-initial-after-align\",\n \"drop-initial-before-adjust\", \"drop-initial-before-align\", \"drop-initial-size\",\n \"drop-initial-value\", \"elevation\", \"empty-cells\", \"fit\", \"fit-content\", \"fit-position\",\n \"flex\", \"flex-basis\", \"flex-direction\", \"flex-flow\", \"flex-grow\",\n \"flex-shrink\", \"flex-wrap\", \"float\", \"float-offset\", \"flow-from\", \"flow-into\",\n \"font\", \"font-family\", \"font-feature-settings\", \"font-kerning\",\n \"font-language-override\", \"font-optical-sizing\", \"font-size\",\n \"font-size-adjust\", \"font-stretch\", \"font-style\", \"font-synthesis\",\n \"font-variant\", \"font-variant-alternates\", \"font-variant-caps\",\n \"font-variant-east-asian\", \"font-variant-ligatures\", \"font-variant-numeric\",\n \"font-variant-position\", \"font-variation-settings\", \"font-weight\", \"gap\",\n \"grid\", \"grid-area\", \"grid-auto-columns\", \"grid-auto-flow\", \"grid-auto-rows\",\n \"grid-column\", \"grid-column-end\", \"grid-column-gap\", \"grid-column-start\",\n \"grid-gap\", \"grid-row\", \"grid-row-end\", \"grid-row-gap\", \"grid-row-start\",\n \"grid-template\", \"grid-template-areas\", \"grid-template-columns\",\n \"grid-template-rows\", \"hanging-punctuation\", \"height\", \"hyphens\", \"icon\",\n \"image-orientation\", \"image-rendering\", \"image-resolution\", \"inline-box-align\",\n \"inset\", \"inset-block\", \"inset-block-end\", \"inset-block-start\", \"inset-inline\",\n \"inset-inline-end\", \"inset-inline-start\", \"isolation\", \"justify-content\",\n \"justify-items\", \"justify-self\", \"left\", \"letter-spacing\", \"line-break\",\n \"line-height\", \"line-height-step\", \"line-stacking\", \"line-stacking-ruby\",\n \"line-stacking-shift\", \"line-stacking-strategy\", \"list-style\",\n \"list-style-image\", \"list-style-position\", \"list-style-type\", \"margin\",\n \"margin-bottom\", \"margin-left\", \"margin-right\", \"margin-top\", \"marks\",\n \"marquee-direction\", \"marquee-loop\", \"marquee-play-count\", \"marquee-speed\",\n \"marquee-style\", \"mask-clip\", \"mask-composite\", \"mask-image\", \"mask-mode\",\n \"mask-origin\", \"mask-position\", \"mask-repeat\", \"mask-size\",\"mask-type\",\n \"max-block-size\", \"max-height\", \"max-inline-size\",\n \"max-width\", \"min-block-size\", \"min-height\", \"min-inline-size\", \"min-width\",\n \"mix-blend-mode\", \"move-to\", \"nav-down\", \"nav-index\", \"nav-left\", \"nav-right\",\n \"nav-up\", \"object-fit\", \"object-position\", \"offset\", \"offset-anchor\",\n \"offset-distance\", \"offset-path\", \"offset-position\", \"offset-rotate\",\n \"opacity\", \"order\", \"orphans\", \"outline\", \"outline-color\", \"outline-offset\",\n \"outline-style\", \"outline-width\", \"overflow\", \"overflow-style\",\n \"overflow-wrap\", \"overflow-x\", \"overflow-y\", \"padding\", \"padding-bottom\",\n \"padding-left\", \"padding-right\", \"padding-top\", \"page\", \"page-break-after\",\n \"page-break-before\", \"page-break-inside\", \"page-policy\", \"pause\",\n \"pause-after\", \"pause-before\", \"perspective\", \"perspective-origin\", \"pitch\",\n \"pitch-range\", \"place-content\", \"place-items\", \"place-self\", \"play-during\",\n \"position\", \"presentation-level\", \"punctuation-trim\", \"quotes\",\n \"region-break-after\", \"region-break-before\", \"region-break-inside\",\n \"region-fragment\", \"rendering-intent\", \"resize\", \"rest\", \"rest-after\",\n \"rest-before\", \"richness\", \"right\", \"rotate\", \"rotation\", \"rotation-point\",\n \"row-gap\", \"ruby-align\", \"ruby-overhang\", \"ruby-position\", \"ruby-span\",\n \"scale\", \"scroll-behavior\", \"scroll-margin\", \"scroll-margin-block\",\n \"scroll-margin-block-end\", \"scroll-margin-block-start\", \"scroll-margin-bottom\",\n \"scroll-margin-inline\", \"scroll-margin-inline-end\",\n \"scroll-margin-inline-start\", \"scroll-margin-left\", \"scroll-margin-right\",\n \"scroll-margin-top\", \"scroll-padding\", \"scroll-padding-block\",\n \"scroll-padding-block-end\", \"scroll-padding-block-start\",\n \"scroll-padding-bottom\", \"scroll-padding-inline\", \"scroll-padding-inline-end\",\n \"scroll-padding-inline-start\", \"scroll-padding-left\", \"scroll-padding-right\",\n \"scroll-padding-top\", \"scroll-snap-align\", \"scroll-snap-type\",\n \"shape-image-threshold\", \"shape-inside\", \"shape-margin\", \"shape-outside\",\n \"size\", \"speak\", \"speak-as\", \"speak-header\", \"speak-numeral\",\n \"speak-punctuation\", \"speech-rate\", \"stress\", \"string-set\", \"tab-size\",\n \"table-layout\", \"target\", \"target-name\", \"target-new\", \"target-position\",\n \"text-align\", \"text-align-last\", \"text-combine-upright\", \"text-decoration\",\n \"text-decoration-color\", \"text-decoration-line\", \"text-decoration-skip\",\n \"text-decoration-skip-ink\", \"text-decoration-style\", \"text-emphasis\",\n \"text-emphasis-color\", \"text-emphasis-position\", \"text-emphasis-style\",\n \"text-height\", \"text-indent\", \"text-justify\", \"text-orientation\",\n \"text-outline\", \"text-overflow\", \"text-rendering\", \"text-shadow\",\n \"text-size-adjust\", \"text-space-collapse\", \"text-transform\",\n \"text-underline-position\", \"text-wrap\", \"top\", \"touch-action\", \"transform\", \"transform-origin\",\n \"transform-style\", \"transition\", \"transition-delay\", \"transition-duration\",\n \"transition-property\", \"transition-timing-function\", \"translate\",\n \"unicode-bidi\", \"user-select\", \"vertical-align\", \"visibility\", \"voice-balance\",\n \"voice-duration\", \"voice-family\", \"voice-pitch\", \"voice-range\", \"voice-rate\",\n \"voice-stress\", \"voice-volume\", \"volume\", \"white-space\", \"widows\", \"width\",\n \"will-change\", \"word-break\", \"word-spacing\", \"word-wrap\", \"writing-mode\", \"z-index\",\n // SVG-specific\n \"clip-path\", \"clip-rule\", \"mask\", \"enable-background\", \"filter\", \"flood-color\",\n \"flood-opacity\", \"lighting-color\", \"stop-color\", \"stop-opacity\", \"pointer-events\",\n \"color-interpolation\", \"color-interpolation-filters\",\n \"color-rendering\", \"fill\", \"fill-opacity\", \"fill-rule\", \"image-rendering\",\n \"marker\", \"marker-end\", \"marker-mid\", \"marker-start\", \"paint-order\", \"shape-rendering\", \"stroke\",\n \"stroke-dasharray\", \"stroke-dashoffset\", \"stroke-linecap\", \"stroke-linejoin\",\n \"stroke-miterlimit\", \"stroke-opacity\", \"stroke-width\", \"text-rendering\",\n \"baseline-shift\", \"dominant-baseline\", \"glyph-orientation-horizontal\",\n \"glyph-orientation-vertical\", \"text-anchor\", \"writing-mode\",\n], propertyKeywords = keySet(propertyKeywords_);\n\nvar nonStandardPropertyKeywords_ = [\n \"accent-color\", \"aspect-ratio\", \"border-block\", \"border-block-color\", \"border-block-end\",\n \"border-block-end-color\", \"border-block-end-style\", \"border-block-end-width\",\n \"border-block-start\", \"border-block-start-color\", \"border-block-start-style\",\n \"border-block-start-width\", \"border-block-style\", \"border-block-width\",\n \"border-inline\", \"border-inline-color\", \"border-inline-end\",\n \"border-inline-end-color\", \"border-inline-end-style\",\n \"border-inline-end-width\", \"border-inline-start\", \"border-inline-start-color\",\n \"border-inline-start-style\", \"border-inline-start-width\",\n \"border-inline-style\", \"border-inline-width\", \"content-visibility\", \"margin-block\",\n \"margin-block-end\", \"margin-block-start\", \"margin-inline\", \"margin-inline-end\",\n \"margin-inline-start\", \"overflow-anchor\", \"overscroll-behavior\", \"padding-block\", \"padding-block-end\",\n \"padding-block-start\", \"padding-inline\", \"padding-inline-end\",\n \"padding-inline-start\", \"scroll-snap-stop\", \"scrollbar-3d-light-color\",\n \"scrollbar-arrow-color\", \"scrollbar-base-color\", \"scrollbar-dark-shadow-color\",\n \"scrollbar-face-color\", \"scrollbar-highlight-color\", \"scrollbar-shadow-color\",\n \"scrollbar-track-color\", \"searchfield-cancel-button\", \"searchfield-decoration\",\n \"searchfield-results-button\", \"searchfield-results-decoration\", \"shape-inside\", \"zoom\"\n], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);\n\nvar fontProperties_ = [\n \"font-display\", \"font-family\", \"src\", \"unicode-range\", \"font-variant\",\n \"font-feature-settings\", \"font-stretch\", \"font-weight\", \"font-style\"\n], fontProperties = keySet(fontProperties_);\n\nvar counterDescriptors_ = [\n \"additive-symbols\", \"fallback\", \"negative\", \"pad\", \"prefix\", \"range\",\n \"speak-as\", \"suffix\", \"symbols\", \"system\"\n], counterDescriptors = keySet(counterDescriptors_);\n\nvar colorKeywords_ = [\n \"aliceblue\", \"antiquewhite\", \"aqua\", \"aquamarine\", \"azure\", \"beige\",\n \"bisque\", \"black\", \"blanchedalmond\", \"blue\", \"blueviolet\", \"brown\",\n \"burlywood\", \"cadetblue\", \"chartreuse\", \"chocolate\", \"coral\", \"cornflowerblue\",\n \"cornsilk\", \"crimson\", \"cyan\", \"darkblue\", \"darkcyan\", \"darkgoldenrod\",\n \"darkgray\", \"darkgreen\", \"darkgrey\", \"darkkhaki\", \"darkmagenta\", \"darkolivegreen\",\n \"darkorange\", \"darkorchid\", \"darkred\", \"darksalmon\", \"darkseagreen\",\n \"darkslateblue\", \"darkslategray\", \"darkslategrey\", \"darkturquoise\", \"darkviolet\",\n \"deeppink\", \"deepskyblue\", \"dimgray\", \"dimgrey\", \"dodgerblue\", \"firebrick\",\n \"floralwhite\", \"forestgreen\", \"fuchsia\", \"gainsboro\", \"ghostwhite\",\n \"gold\", \"goldenrod\", \"gray\", \"grey\", \"green\", \"greenyellow\", \"honeydew\",\n \"hotpink\", \"indianred\", \"indigo\", \"ivory\", \"khaki\", \"lavender\",\n \"lavenderblush\", \"lawngreen\", \"lemonchiffon\", \"lightblue\", \"lightcoral\",\n \"lightcyan\", \"lightgoldenrodyellow\", \"lightgray\", \"lightgreen\", \"lightgrey\", \"lightpink\",\n \"lightsalmon\", \"lightseagreen\", \"lightskyblue\", \"lightslategray\", \"lightslategrey\",\n \"lightsteelblue\", \"lightyellow\", \"lime\", \"limegreen\", \"linen\", \"magenta\",\n \"maroon\", \"mediumaquamarine\", \"mediumblue\", \"mediumorchid\", \"mediumpurple\",\n \"mediumseagreen\", \"mediumslateblue\", \"mediumspringgreen\", \"mediumturquoise\",\n \"mediumvioletred\", \"midnightblue\", \"mintcream\", \"mistyrose\", \"moccasin\",\n \"navajowhite\", \"navy\", \"oldlace\", \"olive\", \"olivedrab\", \"orange\", \"orangered\",\n \"orchid\", \"palegoldenrod\", \"palegreen\", \"paleturquoise\", \"palevioletred\",\n \"papayawhip\", \"peachpuff\", \"peru\", \"pink\", \"plum\", \"powderblue\",\n \"purple\", \"rebeccapurple\", \"red\", \"rosybrown\", \"royalblue\", \"saddlebrown\",\n \"salmon\", \"sandybrown\", \"seagreen\", \"seashell\", \"sienna\", \"silver\", \"skyblue\",\n \"slateblue\", \"slategray\", \"slategrey\", \"snow\", \"springgreen\", \"steelblue\", \"tan\",\n \"teal\", \"thistle\", \"tomato\", \"turquoise\", \"violet\", \"wheat\", \"white\",\n \"whitesmoke\", \"yellow\", \"yellowgreen\"\n], colorKeywords = keySet(colorKeywords_);\n\nvar valueKeywords_ = [\n \"above\", \"absolute\", \"activeborder\", \"additive\", \"activecaption\", \"afar\",\n \"after-white-space\", \"ahead\", \"alias\", \"all\", \"all-scroll\", \"alphabetic\", \"alternate\",\n \"always\", \"amharic\", \"amharic-abegede\", \"antialiased\", \"appworkspace\",\n \"arabic-indic\", \"armenian\", \"asterisks\", \"attr\", \"auto\", \"auto-flow\", \"avoid\", \"avoid-column\", \"avoid-page\",\n \"avoid-region\", \"axis-pan\", \"background\", \"backwards\", \"baseline\", \"below\", \"bidi-override\", \"binary\",\n \"bengali\", \"blink\", \"block\", \"block-axis\", \"blur\", \"bold\", \"bolder\", \"border\", \"border-box\",\n \"both\", \"bottom\", \"break\", \"break-all\", \"break-word\", \"brightness\", \"bullets\", \"button\",\n \"buttonface\", \"buttonhighlight\", \"buttonshadow\", \"buttontext\", \"calc\", \"cambodian\",\n \"capitalize\", \"caps-lock-indicator\", \"caption\", \"captiontext\", \"caret\",\n \"cell\", \"center\", \"checkbox\", \"circle\", \"cjk-decimal\", \"cjk-earthly-branch\",\n \"cjk-heavenly-stem\", \"cjk-ideographic\", \"clear\", \"clip\", \"close-quote\",\n \"col-resize\", \"collapse\", \"color\", \"color-burn\", \"color-dodge\", \"column\", \"column-reverse\",\n \"compact\", \"condensed\", \"conic-gradient\", \"contain\", \"content\", \"contents\",\n \"content-box\", \"context-menu\", \"continuous\", \"contrast\", \"copy\", \"counter\", \"counters\", \"cover\", \"crop\",\n \"cross\", \"crosshair\", \"cubic-bezier\", \"currentcolor\", \"cursive\", \"cyclic\", \"darken\", \"dashed\", \"decimal\",\n \"decimal-leading-zero\", \"default\", \"default-button\", \"dense\", \"destination-atop\",\n \"destination-in\", \"destination-out\", \"destination-over\", \"devanagari\", \"difference\",\n \"disc\", \"discard\", \"disclosure-closed\", \"disclosure-open\", \"document\",\n \"dot-dash\", \"dot-dot-dash\",\n \"dotted\", \"double\", \"down\", \"drop-shadow\", \"e-resize\", \"ease\", \"ease-in\", \"ease-in-out\", \"ease-out\",\n \"element\", \"ellipse\", \"ellipsis\", \"embed\", \"end\", \"ethiopic\", \"ethiopic-abegede\",\n \"ethiopic-abegede-am-et\", \"ethiopic-abegede-gez\", \"ethiopic-abegede-ti-er\",\n \"ethiopic-abegede-ti-et\", \"ethiopic-halehame-aa-er\",\n \"ethiopic-halehame-aa-et\", \"ethiopic-halehame-am-et\",\n \"ethiopic-halehame-gez\", \"ethiopic-halehame-om-et\",\n \"ethiopic-halehame-sid-et\", \"ethiopic-halehame-so-et\",\n \"ethiopic-halehame-ti-er\", \"ethiopic-halehame-ti-et\", \"ethiopic-halehame-tig\",\n \"ethiopic-numeric\", \"ew-resize\", \"exclusion\", \"expanded\", \"extends\", \"extra-condensed\",\n \"extra-expanded\", \"fantasy\", \"fast\", \"fill\", \"fill-box\", \"fixed\", \"flat\", \"flex\", \"flex-end\", \"flex-start\", \"footnotes\",\n \"forwards\", \"from\", \"geometricPrecision\", \"georgian\", \"grayscale\", \"graytext\", \"grid\", \"groove\",\n \"gujarati\", \"gurmukhi\", \"hand\", \"hangul\", \"hangul-consonant\", \"hard-light\", \"hebrew\",\n \"help\", \"hidden\", \"hide\", \"higher\", \"highlight\", \"highlighttext\",\n \"hiragana\", \"hiragana-iroha\", \"horizontal\", \"hsl\", \"hsla\", \"hue\", \"hue-rotate\", \"icon\", \"ignore\",\n \"inactiveborder\", \"inactivecaption\", \"inactivecaptiontext\", \"infinite\",\n \"infobackground\", \"infotext\", \"inherit\", \"initial\", \"inline\", \"inline-axis\",\n \"inline-block\", \"inline-flex\", \"inline-grid\", \"inline-table\", \"inset\", \"inside\", \"intrinsic\", \"invert\",\n \"italic\", \"japanese-formal\", \"japanese-informal\", \"justify\", \"kannada\",\n \"katakana\", \"katakana-iroha\", \"keep-all\", \"khmer\",\n \"korean-hangul-formal\", \"korean-hanja-formal\", \"korean-hanja-informal\",\n \"landscape\", \"lao\", \"large\", \"larger\", \"left\", \"level\", \"lighter\", \"lighten\",\n \"line-through\", \"linear\", \"linear-gradient\", \"lines\", \"list-item\", \"listbox\", \"listitem\",\n \"local\", \"logical\", \"loud\", \"lower\", \"lower-alpha\", \"lower-armenian\",\n \"lower-greek\", \"lower-hexadecimal\", \"lower-latin\", \"lower-norwegian\",\n \"lower-roman\", \"lowercase\", \"ltr\", \"luminosity\", \"malayalam\", \"manipulation\", \"match\", \"matrix\", \"matrix3d\",\n \"media-play-button\", \"media-slider\", \"media-sliderthumb\",\n \"media-volume-slider\", \"media-volume-sliderthumb\", \"medium\",\n \"menu\", \"menulist\", \"menulist-button\",\n \"menutext\", \"message-box\", \"middle\", \"min-intrinsic\",\n \"mix\", \"mongolian\", \"monospace\", \"move\", \"multiple\", \"multiple_mask_images\", \"multiply\", \"myanmar\", \"n-resize\",\n \"narrower\", \"ne-resize\", \"nesw-resize\", \"no-close-quote\", \"no-drop\",\n \"no-open-quote\", \"no-repeat\", \"none\", \"normal\", \"not-allowed\", \"nowrap\",\n \"ns-resize\", \"numbers\", \"numeric\", \"nw-resize\", \"nwse-resize\", \"oblique\", \"octal\", \"opacity\", \"open-quote\",\n \"optimizeLegibility\", \"optimizeSpeed\", \"oriya\", \"oromo\", \"outset\",\n \"outside\", \"outside-shape\", \"overlay\", \"overline\", \"padding\", \"padding-box\",\n \"painted\", \"page\", \"paused\", \"persian\", \"perspective\", \"pinch-zoom\", \"plus-darker\", \"plus-lighter\",\n \"pointer\", \"polygon\", \"portrait\", \"pre\", \"pre-line\", \"pre-wrap\", \"preserve-3d\",\n \"progress\", \"push-button\", \"radial-gradient\", \"radio\", \"read-only\",\n \"read-write\", \"read-write-plaintext-only\", \"rectangle\", \"region\",\n \"relative\", \"repeat\", \"repeating-linear-gradient\", \"repeating-radial-gradient\",\n \"repeating-conic-gradient\", \"repeat-x\", \"repeat-y\", \"reset\", \"reverse\",\n \"rgb\", \"rgba\", \"ridge\", \"right\", \"rotate\", \"rotate3d\", \"rotateX\", \"rotateY\",\n \"rotateZ\", \"round\", \"row\", \"row-resize\", \"row-reverse\", \"rtl\", \"run-in\", \"running\",\n \"s-resize\", \"sans-serif\", \"saturate\", \"saturation\", \"scale\", \"scale3d\", \"scaleX\", \"scaleY\", \"scaleZ\", \"screen\",\n \"scroll\", \"scrollbar\", \"scroll-position\", \"se-resize\", \"searchfield\",\n \"searchfield-cancel-button\", \"searchfield-decoration\",\n \"searchfield-results-button\", \"searchfield-results-decoration\", \"self-start\", \"self-end\",\n \"semi-condensed\", \"semi-expanded\", \"separate\", \"sepia\", \"serif\", \"show\", \"sidama\",\n \"simp-chinese-formal\", \"simp-chinese-informal\", \"single\",\n \"skew\", \"skewX\", \"skewY\", \"skip-white-space\", \"slide\", \"slider-horizontal\",\n \"slider-vertical\", \"sliderthumb-horizontal\", \"sliderthumb-vertical\", \"slow\",\n \"small\", \"small-caps\", \"small-caption\", \"smaller\", \"soft-light\", \"solid\", \"somali\",\n \"source-atop\", \"source-in\", \"source-out\", \"source-over\", \"space\", \"space-around\", \"space-between\", \"space-evenly\", \"spell-out\", \"square\",\n \"square-button\", \"start\", \"static\", \"status-bar\", \"stretch\", \"stroke\", \"stroke-box\", \"sub\",\n \"subpixel-antialiased\", \"svg_masks\", \"super\", \"sw-resize\", \"symbolic\", \"symbols\", \"system-ui\", \"table\",\n \"table-caption\", \"table-cell\", \"table-column\", \"table-column-group\",\n \"table-footer-group\", \"table-header-group\", \"table-row\", \"table-row-group\",\n \"tamil\",\n \"telugu\", \"text\", \"text-bottom\", \"text-top\", \"textarea\", \"textfield\", \"thai\",\n \"thick\", \"thin\", \"threeddarkshadow\", \"threedface\", \"threedhighlight\",\n \"threedlightshadow\", \"threedshadow\", \"tibetan\", \"tigre\", \"tigrinya-er\",\n \"tigrinya-er-abegede\", \"tigrinya-et\", \"tigrinya-et-abegede\", \"to\", \"top\",\n \"trad-chinese-formal\", \"trad-chinese-informal\", \"transform\",\n \"translate\", \"translate3d\", \"translateX\", \"translateY\", \"translateZ\",\n \"transparent\", \"ultra-condensed\", \"ultra-expanded\", \"underline\", \"unidirectional-pan\", \"unset\", \"up\",\n \"upper-alpha\", \"upper-armenian\", \"upper-greek\", \"upper-hexadecimal\",\n \"upper-latin\", \"upper-norwegian\", \"upper-roman\", \"uppercase\", \"urdu\", \"url\",\n \"var\", \"vertical\", \"vertical-text\", \"view-box\", \"visible\", \"visibleFill\", \"visiblePainted\",\n \"visibleStroke\", \"visual\", \"w-resize\", \"wait\", \"wave\", \"wider\",\n \"window\", \"windowframe\", \"windowtext\", \"words\", \"wrap\", \"wrap-reverse\", \"x-large\", \"x-small\", \"xor\",\n \"xx-large\", \"xx-small\"\n], valueKeywords = keySet(valueKeywords_);\n\nvar allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)\n .concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)\n .concat(valueKeywords_);\n\nexport const keywords = {properties: propertyKeywords_, colors: colorKeywords_,\n fonts: fontProperties_, values: valueKeywords_, all: allWords}\n\nconst defaults = {\n documentTypes: documentTypes,\n mediaTypes: mediaTypes,\n mediaFeatures: mediaFeatures,\n mediaValueKeywords: mediaValueKeywords,\n propertyKeywords: propertyKeywords,\n nonStandardPropertyKeywords: nonStandardPropertyKeywords,\n fontProperties: fontProperties,\n counterDescriptors: counterDescriptors,\n colorKeywords: colorKeywords,\n valueKeywords: valueKeywords,\n tokenHooks: {\n \"/\": function(stream, state) {\n if (!stream.eat(\"*\")) return false;\n state.tokenize = tokenCComment;\n return tokenCComment(stream, state);\n }\n }\n}\n\nexport const css = mkCSS({name: \"css\"})\n\nfunction tokenCComment(stream, state) {\n var maybeEnd = false, ch;\n while ((ch = stream.next()) != null) {\n if (maybeEnd && ch == \"/\") {\n state.tokenize = null;\n break;\n }\n maybeEnd = (ch == \"*\");\n }\n return [\"comment\", \"comment\"];\n}\n\nexport const sCSS = mkCSS({\n name: \"scss\",\n mediaTypes: mediaTypes,\n mediaFeatures: mediaFeatures,\n mediaValueKeywords: mediaValueKeywords,\n propertyKeywords: propertyKeywords,\n nonStandardPropertyKeywords: nonStandardPropertyKeywords,\n colorKeywords: colorKeywords,\n valueKeywords: valueKeywords,\n fontProperties: fontProperties,\n allowNested: true,\n lineComment: \"//\",\n tokenHooks: {\n \"/\": function(stream, state) {\n if (stream.eat(\"/\")) {\n stream.skipToEnd();\n return [\"comment\", \"comment\"];\n } else if (stream.eat(\"*\")) {\n state.tokenize = tokenCComment;\n return tokenCComment(stream, state);\n } else {\n return [\"operator\", \"operator\"];\n }\n },\n \":\": function(stream) {\n if (stream.match(/^\\s*\\{/, false))\n return [null, null]\n return false;\n },\n \"$\": function(stream) {\n stream.match(/^[\\w-]+/);\n if (stream.match(/^\\s*:/, false))\n return [\"def\", \"variable-definition\"];\n return [\"variableName.special\", \"variable\"];\n },\n \"#\": function(stream) {\n if (!stream.eat(\"{\")) return false;\n return [null, \"interpolation\"];\n }\n }\n})\n\nexport const less = mkCSS({\n name: \"less\",\n mediaTypes: mediaTypes,\n mediaFeatures: mediaFeatures,\n mediaValueKeywords: mediaValueKeywords,\n propertyKeywords: propertyKeywords,\n nonStandardPropertyKeywords: nonStandardPropertyKeywords,\n colorKeywords: colorKeywords,\n valueKeywords: valueKeywords,\n fontProperties: fontProperties,\n allowNested: true,\n lineComment: \"//\",\n tokenHooks: {\n \"/\": function(stream, state) {\n if (stream.eat(\"/\")) {\n stream.skipToEnd();\n return [\"comment\", \"comment\"];\n } else if (stream.eat(\"*\")) {\n state.tokenize = tokenCComment;\n return tokenCComment(stream, state);\n } else {\n return [\"operator\", \"operator\"];\n }\n },\n \"@\": function(stream) {\n if (stream.eat(\"{\")) return [null, \"interpolation\"];\n if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\\b/i, false)) return false;\n stream.eatWhile(/[\\w\\\\\\-]/);\n if (stream.match(/^\\s*:/, false))\n return [\"def\", \"variable-definition\"];\n return [\"variableName\", \"variable\"];\n },\n \"&\": function() {\n return [\"atom\", \"atom\"];\n }\n }\n})\n\nexport const gss = mkCSS({\n name: \"gss\",\n documentTypes: documentTypes,\n mediaTypes: mediaTypes,\n mediaFeatures: mediaFeatures,\n propertyKeywords: propertyKeywords,\n nonStandardPropertyKeywords: nonStandardPropertyKeywords,\n fontProperties: fontProperties,\n counterDescriptors: counterDescriptors,\n colorKeywords: colorKeywords,\n valueKeywords: valueKeywords,\n supportsAtComponent: true,\n tokenHooks: {\n \"/\": function(stream, state) {\n if (!stream.eat(\"*\")) return false;\n state.tokenize = tokenCComment;\n return tokenCComment(stream, state);\n }\n }\n})\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/5061.aede931a61d7ce87ee23.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"5061.aede931a61d7ce87ee23.js?v=aede931a61d7ce87ee23","mappings":";;;;;;;;;;AAAA;AACA,cAAc;AACd,kBAAkB,kBAAkB;AACpC;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,MAAM;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI,OAAO;AACX;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,sCAAsC,YAAY;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC;AACrC;AACA;AACA;;AAEA;;AAEO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAsB;AACtB,0BAA0B,yCAAyC;AACnE;AACA;AACA,0BAA0B;AAC1B;AACA,wBAAwB;AACxB;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA,kDAAkD;AAClD;AACA,uEAAuE;AACvE;AACA;AACA,GAAG;;AAEH;AACA,2BAA2B;AAC3B;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/ecl.js"],"sourcesContent":["function words(str) {\n var obj = {}, words = str.split(\" \");\n for (var i = 0; i < words.length; ++i) obj[words[i]] = true;\n return obj;\n}\n\nfunction metaHook(stream, state) {\n if (!state.startOfLine) return false;\n stream.skipToEnd();\n return \"meta\";\n}\n\nvar keyword = words(\"abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode\");\nvar variable = words(\"apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait\");\nvar variable_2 = words(\"__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath\");\nvar variable_3 = words(\"ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode\");\nvar builtin = words(\"checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when\");\nvar blockKeywords = words(\"catch class do else finally for if switch try while\");\nvar atoms = words(\"true false null\");\nvar hooks = {\"#\": metaHook};\nvar isOperatorChar = /[+\\-*&%=<>!?|\\/]/;\n\nvar curPunc;\n\nfunction tokenBase(stream, state) {\n var ch = stream.next();\n if (hooks[ch]) {\n var result = hooks[ch](stream, state);\n if (result !== false) return result;\n }\n if (ch == '\"' || ch == \"'\") {\n state.tokenize = tokenString(ch);\n return state.tokenize(stream, state);\n }\n if (/[\\[\\]{}\\(\\),;\\:\\.]/.test(ch)) {\n curPunc = ch;\n return null;\n }\n if (/\\d/.test(ch)) {\n stream.eatWhile(/[\\w\\.]/);\n return \"number\";\n }\n if (ch == \"/\") {\n if (stream.eat(\"*\")) {\n state.tokenize = tokenComment;\n return tokenComment(stream, state);\n }\n if (stream.eat(\"/\")) {\n stream.skipToEnd();\n return \"comment\";\n }\n }\n if (isOperatorChar.test(ch)) {\n stream.eatWhile(isOperatorChar);\n return \"operator\";\n }\n stream.eatWhile(/[\\w\\$_]/);\n var cur = stream.current().toLowerCase();\n if (keyword.propertyIsEnumerable(cur)) {\n if (blockKeywords.propertyIsEnumerable(cur)) curPunc = \"newstatement\";\n return \"keyword\";\n } else if (variable.propertyIsEnumerable(cur)) {\n if (blockKeywords.propertyIsEnumerable(cur)) curPunc = \"newstatement\";\n return \"variable\";\n } else if (variable_2.propertyIsEnumerable(cur)) {\n if (blockKeywords.propertyIsEnumerable(cur)) curPunc = \"newstatement\";\n return \"modifier\";\n } else if (variable_3.propertyIsEnumerable(cur)) {\n if (blockKeywords.propertyIsEnumerable(cur)) curPunc = \"newstatement\";\n return \"type\";\n } else if (builtin.propertyIsEnumerable(cur)) {\n if (blockKeywords.propertyIsEnumerable(cur)) curPunc = \"newstatement\";\n return \"builtin\";\n } else { //Data types are of from KEYWORD##\n var i = cur.length - 1;\n while(i >= 0 && (!isNaN(cur[i]) || cur[i] == '_'))\n --i;\n\n if (i > 0) {\n var cur2 = cur.substr(0, i + 1);\n if (variable_3.propertyIsEnumerable(cur2)) {\n if (blockKeywords.propertyIsEnumerable(cur2)) curPunc = \"newstatement\";\n return \"type\";\n }\n }\n }\n if (atoms.propertyIsEnumerable(cur)) return \"atom\";\n return null;\n}\n\nfunction tokenString(quote) {\n return function(stream, state) {\n var escaped = false, next, end = false;\n while ((next = stream.next()) != null) {\n if (next == quote && !escaped) {end = true; break;}\n escaped = !escaped && next == \"\\\\\";\n }\n if (end || !escaped)\n state.tokenize = tokenBase;\n return \"string\";\n };\n}\n\nfunction tokenComment(stream, state) {\n var maybeEnd = false, ch;\n while (ch = stream.next()) {\n if (ch == \"/\" && maybeEnd) {\n state.tokenize = tokenBase;\n break;\n }\n maybeEnd = (ch == \"*\");\n }\n return \"comment\";\n}\n\nfunction Context(indented, column, type, align, prev) {\n this.indented = indented;\n this.column = column;\n this.type = type;\n this.align = align;\n this.prev = prev;\n}\nfunction pushContext(state, col, type) {\n return state.context = new Context(state.indented, col, type, null, state.context);\n}\nfunction popContext(state) {\n var t = state.context.type;\n if (t == \")\" || t == \"]\" || t == \"}\")\n state.indented = state.context.indented;\n return state.context = state.context.prev;\n}\n\n// Interface\n\nexport const ecl = {\n name: \"ecl\",\n startState: function(indentUnit) {\n return {\n tokenize: null,\n context: new Context(-indentUnit, 0, \"top\", false),\n indented: 0,\n startOfLine: true\n };\n },\n\n token: function(stream, state) {\n var ctx = state.context;\n if (stream.sol()) {\n if (ctx.align == null) ctx.align = false;\n state.indented = stream.indentation();\n state.startOfLine = true;\n }\n if (stream.eatSpace()) return null;\n curPunc = null;\n var style = (state.tokenize || tokenBase)(stream, state);\n if (style == \"comment\" || style == \"meta\") return style;\n if (ctx.align == null) ctx.align = true;\n\n if ((curPunc == \";\" || curPunc == \":\") && ctx.type == \"statement\") popContext(state);\n else if (curPunc == \"{\") pushContext(state, stream.column(), \"}\");\n else if (curPunc == \"[\") pushContext(state, stream.column(), \"]\");\n else if (curPunc == \"(\") pushContext(state, stream.column(), \")\");\n else if (curPunc == \"}\") {\n while (ctx.type == \"statement\") ctx = popContext(state);\n if (ctx.type == \"}\") ctx = popContext(state);\n while (ctx.type == \"statement\") ctx = popContext(state);\n }\n else if (curPunc == ctx.type) popContext(state);\n else if (ctx.type == \"}\" || ctx.type == \"top\" || (ctx.type == \"statement\" && curPunc == \"newstatement\"))\n pushContext(state, stream.column(), \"statement\");\n state.startOfLine = false;\n return style;\n },\n\n indent: function(state, textAfter, cx) {\n if (state.tokenize != tokenBase && state.tokenize != null) return 0;\n var ctx = state.context, firstChar = textAfter && textAfter.charAt(0);\n if (ctx.type == \"statement\" && firstChar == \"}\") ctx = ctx.prev;\n var closing = firstChar == ctx.type;\n if (ctx.type == \"statement\") return ctx.indented + (firstChar == \"{\" ? 0 : cx.unit);\n else if (ctx.align) return ctx.column + (closing ? 0 : 1);\n else return ctx.indented + (closing ? 0 : cx.unit);\n },\n\n languageData: {\n indentOnInput: /^\\s*[{}]$/\n }\n};\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/5135.398f538011f4562d1fae.js
ADDED
|
@@ -0,0 +1,985 @@
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[5135],{
|
| 3 |
+
|
| 4 |
+
/***/ 45135:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
// ESM COMPAT FLAG
|
| 8 |
+
__webpack_require__.r(__webpack_exports__);
|
| 9 |
+
|
| 10 |
+
// EXPORTS
|
| 11 |
+
__webpack_require__.d(__webpack_exports__, {
|
| 12 |
+
INotebookPathOpener: () => (/* reexport */ INotebookPathOpener),
|
| 13 |
+
INotebookShell: () => (/* reexport */ INotebookShell),
|
| 14 |
+
NotebookApp: () => (/* reexport */ NotebookApp),
|
| 15 |
+
NotebookShell: () => (/* reexport */ NotebookShell),
|
| 16 |
+
PanelHandler: () => (/* reexport */ PanelHandler),
|
| 17 |
+
Private: () => (/* reexport */ shell_Private),
|
| 18 |
+
SidePanelHandler: () => (/* reexport */ SidePanelHandler),
|
| 19 |
+
SidePanelPalette: () => (/* reexport */ SidePanelPalette),
|
| 20 |
+
defaultNotebookPathOpener: () => (/* reexport */ defaultNotebookPathOpener)
|
| 21 |
+
});
|
| 22 |
+
|
| 23 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/application@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/application/lib/index.js)
|
| 24 |
+
var index_js_ = __webpack_require__(38075);
|
| 25 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/docregistry@~4.3.4 (strict) (fallback: ../node_modules/@jupyterlab/docregistry/lib/index.js)
|
| 26 |
+
var lib_index_js_ = __webpack_require__(10615);
|
| 27 |
+
// EXTERNAL MODULE: ../node_modules/@jupyterlab/application/lib/mimerenderers.js
|
| 28 |
+
var mimerenderers = __webpack_require__(75677);
|
| 29 |
+
// EXTERNAL MODULE: ../node_modules/@jupyterlab/application/lib/status.js
|
| 30 |
+
var lib_status = __webpack_require__(20389);
|
| 31 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/coreutils@~6.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/coreutils/lib/index.js)
|
| 32 |
+
var coreutils_lib_index_js_ = __webpack_require__(76107);
|
| 33 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/polling@^2.1.3 (strict) (fallback: ../node_modules/@lumino/polling/dist/index.es6.js)
|
| 34 |
+
var index_es6_js_ = __webpack_require__(32406);
|
| 35 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/translation@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/translation/lib/index.js)
|
| 36 |
+
var translation_lib_index_js_ = __webpack_require__(7801);
|
| 37 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/algorithm@~2.0.2 (singleton) (fallback: ../node_modules/@lumino/algorithm/dist/index.es6.js)
|
| 38 |
+
var dist_index_es6_js_ = __webpack_require__(14931);
|
| 39 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/coreutils@~2.2.0 (singleton) (fallback: ../node_modules/@lumino/coreutils/dist/index.js)
|
| 40 |
+
var dist_index_js_ = __webpack_require__(21961);
|
| 41 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/signaling@~2.1.3 (singleton) (fallback: ../node_modules/@lumino/signaling/dist/index.es6.js)
|
| 42 |
+
var signaling_dist_index_es6_js_ = __webpack_require__(2159);
|
| 43 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/widgets@~2.5.0 (singleton) (fallback: ../node_modules/@lumino/widgets/dist/index.es6.js)
|
| 44 |
+
var widgets_dist_index_es6_js_ = __webpack_require__(2260);
|
| 45 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/ui-components@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/ui-components/lib/index.js)
|
| 46 |
+
var ui_components_lib_index_js_ = __webpack_require__(29072);
|
| 47 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/messaging@~2.0.2 (singleton) (fallback: ../node_modules/@lumino/messaging/dist/index.es6.js)
|
| 48 |
+
var messaging_dist_index_es6_js_ = __webpack_require__(62633);
|
| 49 |
+
;// CONCATENATED MODULE: ../packages/application/lib/panelhandler.js
|
| 50 |
+
// Copyright (c) Jupyter Development Team.
|
| 51 |
+
// Distributed under the terms of the Modified BSD License.
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
/**
|
| 58 |
+
* A class which manages a panel and sorts its widgets by rank.
|
| 59 |
+
*/
|
| 60 |
+
class PanelHandler {
|
| 61 |
+
constructor() {
|
| 62 |
+
/**
|
| 63 |
+
* A message hook for child remove messages on the panel handler.
|
| 64 |
+
*/
|
| 65 |
+
this._panelChildHook = (handler, msg) => {
|
| 66 |
+
switch (msg.type) {
|
| 67 |
+
case 'child-removed':
|
| 68 |
+
{
|
| 69 |
+
const widget = msg.child;
|
| 70 |
+
dist_index_es6_js_.ArrayExt.removeFirstWhere(this._items, (v) => v.widget === widget);
|
| 71 |
+
}
|
| 72 |
+
break;
|
| 73 |
+
default:
|
| 74 |
+
break;
|
| 75 |
+
}
|
| 76 |
+
return true;
|
| 77 |
+
};
|
| 78 |
+
this._items = new Array();
|
| 79 |
+
this._panel = new widgets_dist_index_es6_js_.Panel();
|
| 80 |
+
messaging_dist_index_es6_js_.MessageLoop.installMessageHook(this._panel, this._panelChildHook);
|
| 81 |
+
}
|
| 82 |
+
/**
|
| 83 |
+
* Get the panel managed by the handler.
|
| 84 |
+
*/
|
| 85 |
+
get panel() {
|
| 86 |
+
return this._panel;
|
| 87 |
+
}
|
| 88 |
+
/**
|
| 89 |
+
* Add a widget to the panel.
|
| 90 |
+
*
|
| 91 |
+
* If the widget is already added, it will be moved.
|
| 92 |
+
*/
|
| 93 |
+
addWidget(widget, rank) {
|
| 94 |
+
widget.parent = null;
|
| 95 |
+
const item = { widget, rank };
|
| 96 |
+
const index = dist_index_es6_js_.ArrayExt.upperBound(this._items, item, Private.itemCmp);
|
| 97 |
+
dist_index_es6_js_.ArrayExt.insert(this._items, index, item);
|
| 98 |
+
this._panel.insertWidget(index, widget);
|
| 99 |
+
}
|
| 100 |
+
}
|
| 101 |
+
/**
|
| 102 |
+
* A class which manages a side panel that can show at most one widget at a time.
|
| 103 |
+
*/
|
| 104 |
+
class SidePanelHandler extends PanelHandler {
|
| 105 |
+
/**
|
| 106 |
+
* Construct a new side panel handler.
|
| 107 |
+
*/
|
| 108 |
+
constructor(area) {
|
| 109 |
+
super();
|
| 110 |
+
this._isHiddenByUser = false;
|
| 111 |
+
this._widgetAdded = new signaling_dist_index_es6_js_.Signal(this);
|
| 112 |
+
this._widgetRemoved = new signaling_dist_index_es6_js_.Signal(this);
|
| 113 |
+
this._area = area;
|
| 114 |
+
this._panel.hide();
|
| 115 |
+
this._currentWidget = null;
|
| 116 |
+
this._lastCurrentWidget = null;
|
| 117 |
+
this._widgetPanel = new widgets_dist_index_es6_js_.StackedPanel();
|
| 118 |
+
this._widgetPanel.widgetRemoved.connect(this._onWidgetRemoved, this);
|
| 119 |
+
this._closeButton = document.createElement('button');
|
| 120 |
+
ui_components_lib_index_js_.closeIcon.element({
|
| 121 |
+
container: this._closeButton,
|
| 122 |
+
height: '16px',
|
| 123 |
+
width: 'auto',
|
| 124 |
+
});
|
| 125 |
+
this._closeButton.onclick = () => {
|
| 126 |
+
this.collapse();
|
| 127 |
+
this.hide();
|
| 128 |
+
};
|
| 129 |
+
this._closeButton.className = 'jp-Button jp-SidePanel-collapse';
|
| 130 |
+
this._closeButton.title = 'Collapse side panel';
|
| 131 |
+
const icon = new widgets_dist_index_es6_js_.Widget({ node: this._closeButton });
|
| 132 |
+
this._panel.addWidget(icon);
|
| 133 |
+
this._panel.addWidget(this._widgetPanel);
|
| 134 |
+
}
|
| 135 |
+
/**
|
| 136 |
+
* Get the current widget in the sidebar panel.
|
| 137 |
+
*/
|
| 138 |
+
get currentWidget() {
|
| 139 |
+
return (this._currentWidget ||
|
| 140 |
+
this._lastCurrentWidget ||
|
| 141 |
+
(this._items.length > 0 ? this._items[0].widget : null));
|
| 142 |
+
}
|
| 143 |
+
/**
|
| 144 |
+
* Get the area of the side panel
|
| 145 |
+
*/
|
| 146 |
+
get area() {
|
| 147 |
+
return this._area;
|
| 148 |
+
}
|
| 149 |
+
/**
|
| 150 |
+
* Whether the panel is visible
|
| 151 |
+
*/
|
| 152 |
+
get isVisible() {
|
| 153 |
+
return this._panel.isVisible;
|
| 154 |
+
}
|
| 155 |
+
/**
|
| 156 |
+
* Get the stacked panel managed by the handler
|
| 157 |
+
*/
|
| 158 |
+
get panel() {
|
| 159 |
+
return this._panel;
|
| 160 |
+
}
|
| 161 |
+
/**
|
| 162 |
+
* Get the widgets list.
|
| 163 |
+
*/
|
| 164 |
+
get widgets() {
|
| 165 |
+
return this._items.map((obj) => obj.widget);
|
| 166 |
+
}
|
| 167 |
+
/**
|
| 168 |
+
* Signal fired when a widget is added to the panel
|
| 169 |
+
*/
|
| 170 |
+
get widgetAdded() {
|
| 171 |
+
return this._widgetAdded;
|
| 172 |
+
}
|
| 173 |
+
/**
|
| 174 |
+
* Signal fired when a widget is removed from the panel
|
| 175 |
+
*/
|
| 176 |
+
get widgetRemoved() {
|
| 177 |
+
return this._widgetRemoved;
|
| 178 |
+
}
|
| 179 |
+
/**
|
| 180 |
+
* Get the close button element.
|
| 181 |
+
*/
|
| 182 |
+
get closeButton() {
|
| 183 |
+
return this._closeButton;
|
| 184 |
+
}
|
| 185 |
+
/**
|
| 186 |
+
* Expand the sidebar.
|
| 187 |
+
*
|
| 188 |
+
* #### Notes
|
| 189 |
+
* This will open the most recently used widget, or the first widget
|
| 190 |
+
* if there is no most recently used.
|
| 191 |
+
*/
|
| 192 |
+
expand(id) {
|
| 193 |
+
if (id) {
|
| 194 |
+
if (this._currentWidget && this._currentWidget.id === id) {
|
| 195 |
+
this.collapse();
|
| 196 |
+
this.hide();
|
| 197 |
+
}
|
| 198 |
+
else {
|
| 199 |
+
this.collapse();
|
| 200 |
+
this.hide();
|
| 201 |
+
this.activate(id);
|
| 202 |
+
this.show();
|
| 203 |
+
}
|
| 204 |
+
}
|
| 205 |
+
else if (this.currentWidget) {
|
| 206 |
+
this._currentWidget = this.currentWidget;
|
| 207 |
+
this.activate(this._currentWidget.id);
|
| 208 |
+
this.show();
|
| 209 |
+
}
|
| 210 |
+
}
|
| 211 |
+
/**
|
| 212 |
+
* Activate a widget residing in the stacked panel by ID.
|
| 213 |
+
*
|
| 214 |
+
* @param id - The widget's unique ID.
|
| 215 |
+
*/
|
| 216 |
+
activate(id) {
|
| 217 |
+
const widget = this._findWidgetByID(id);
|
| 218 |
+
if (widget) {
|
| 219 |
+
this._currentWidget = widget;
|
| 220 |
+
widget.show();
|
| 221 |
+
widget.activate();
|
| 222 |
+
}
|
| 223 |
+
}
|
| 224 |
+
/**
|
| 225 |
+
* Test whether the sidebar has the given widget by id.
|
| 226 |
+
*/
|
| 227 |
+
has(id) {
|
| 228 |
+
return this._findWidgetByID(id) !== null;
|
| 229 |
+
}
|
| 230 |
+
/**
|
| 231 |
+
* Collapse the sidebar so no items are expanded.
|
| 232 |
+
*/
|
| 233 |
+
collapse() {
|
| 234 |
+
var _a;
|
| 235 |
+
(_a = this._currentWidget) === null || _a === void 0 ? void 0 : _a.hide();
|
| 236 |
+
this._currentWidget = null;
|
| 237 |
+
}
|
| 238 |
+
/**
|
| 239 |
+
* Add a widget and its title to the stacked panel.
|
| 240 |
+
*
|
| 241 |
+
* If the widget is already added, it will be moved.
|
| 242 |
+
*/
|
| 243 |
+
addWidget(widget, rank) {
|
| 244 |
+
widget.parent = null;
|
| 245 |
+
widget.hide();
|
| 246 |
+
const item = { widget, rank };
|
| 247 |
+
const index = this._findInsertIndex(item);
|
| 248 |
+
dist_index_es6_js_.ArrayExt.insert(this._items, index, item);
|
| 249 |
+
this._widgetPanel.insertWidget(index, widget);
|
| 250 |
+
this._refreshVisibility();
|
| 251 |
+
this._widgetAdded.emit(widget);
|
| 252 |
+
}
|
| 253 |
+
/**
|
| 254 |
+
* Hide the side panel
|
| 255 |
+
*/
|
| 256 |
+
hide() {
|
| 257 |
+
this._isHiddenByUser = true;
|
| 258 |
+
this._refreshVisibility();
|
| 259 |
+
}
|
| 260 |
+
/**
|
| 261 |
+
* Show the side panel
|
| 262 |
+
*/
|
| 263 |
+
show() {
|
| 264 |
+
this._isHiddenByUser = false;
|
| 265 |
+
this._refreshVisibility();
|
| 266 |
+
}
|
| 267 |
+
/**
|
| 268 |
+
* Find the insertion index for a rank item.
|
| 269 |
+
*/
|
| 270 |
+
_findInsertIndex(item) {
|
| 271 |
+
return dist_index_es6_js_.ArrayExt.upperBound(this._items, item, Private.itemCmp);
|
| 272 |
+
}
|
| 273 |
+
/**
|
| 274 |
+
* Find the index of the item with the given widget, or `-1`.
|
| 275 |
+
*/
|
| 276 |
+
_findWidgetIndex(widget) {
|
| 277 |
+
return dist_index_es6_js_.ArrayExt.findFirstIndex(this._items, (i) => i.widget === widget);
|
| 278 |
+
}
|
| 279 |
+
/**
|
| 280 |
+
* Find the widget with the given id, or `null`.
|
| 281 |
+
*/
|
| 282 |
+
_findWidgetByID(id) {
|
| 283 |
+
const item = (0,dist_index_es6_js_.find)(this._items, (value) => value.widget.id === id);
|
| 284 |
+
return item ? item.widget : null;
|
| 285 |
+
}
|
| 286 |
+
/**
|
| 287 |
+
* Refresh the visibility of the stacked panel.
|
| 288 |
+
*/
|
| 289 |
+
_refreshVisibility() {
|
| 290 |
+
this._panel.setHidden(this._isHiddenByUser);
|
| 291 |
+
}
|
| 292 |
+
/*
|
| 293 |
+
* Handle the `widgetRemoved` signal from the panel.
|
| 294 |
+
*/
|
| 295 |
+
_onWidgetRemoved(sender, widget) {
|
| 296 |
+
if (widget === this._lastCurrentWidget) {
|
| 297 |
+
this._lastCurrentWidget = null;
|
| 298 |
+
}
|
| 299 |
+
dist_index_es6_js_.ArrayExt.removeAt(this._items, this._findWidgetIndex(widget));
|
| 300 |
+
this._refreshVisibility();
|
| 301 |
+
this._widgetRemoved.emit(widget);
|
| 302 |
+
}
|
| 303 |
+
}
|
| 304 |
+
/**
|
| 305 |
+
* A class to manages the palette entries associated to the side panels.
|
| 306 |
+
*/
|
| 307 |
+
class SidePanelPalette {
|
| 308 |
+
/**
|
| 309 |
+
* Construct a new side panel palette.
|
| 310 |
+
*/
|
| 311 |
+
constructor(options) {
|
| 312 |
+
this._items = [];
|
| 313 |
+
this._commandPalette = options.commandPalette;
|
| 314 |
+
this._command = options.command;
|
| 315 |
+
}
|
| 316 |
+
/**
|
| 317 |
+
* Get a command palette item from the widget id and the area.
|
| 318 |
+
*/
|
| 319 |
+
getItem(widget, area) {
|
| 320 |
+
const itemList = this._items;
|
| 321 |
+
for (let i = 0; i < itemList.length; i++) {
|
| 322 |
+
const item = itemList[i];
|
| 323 |
+
if (item.widgetId === widget.id && item.area === area) {
|
| 324 |
+
return item;
|
| 325 |
+
}
|
| 326 |
+
}
|
| 327 |
+
return null;
|
| 328 |
+
}
|
| 329 |
+
/**
|
| 330 |
+
* Add an item to the command palette.
|
| 331 |
+
*/
|
| 332 |
+
addItem(widget, area) {
|
| 333 |
+
// Check if the item does not already exist.
|
| 334 |
+
if (this.getItem(widget, area)) {
|
| 335 |
+
return;
|
| 336 |
+
}
|
| 337 |
+
// Add a new item in command palette.
|
| 338 |
+
const disposableDelegate = this._commandPalette.addItem({
|
| 339 |
+
command: this._command,
|
| 340 |
+
category: 'View',
|
| 341 |
+
args: {
|
| 342 |
+
side: area,
|
| 343 |
+
title: `Show ${widget.title.caption}`,
|
| 344 |
+
id: widget.id,
|
| 345 |
+
},
|
| 346 |
+
});
|
| 347 |
+
// Keep the disposableDelegate object to be able to dispose of the item if the widget
|
| 348 |
+
// is remove from the side panel.
|
| 349 |
+
this._items.push({
|
| 350 |
+
widgetId: widget.id,
|
| 351 |
+
area: area,
|
| 352 |
+
disposable: disposableDelegate,
|
| 353 |
+
});
|
| 354 |
+
}
|
| 355 |
+
/**
|
| 356 |
+
* Remove an item from the command palette.
|
| 357 |
+
*/
|
| 358 |
+
removeItem(widget, area) {
|
| 359 |
+
const item = this.getItem(widget, area);
|
| 360 |
+
if (item) {
|
| 361 |
+
item.disposable.dispose();
|
| 362 |
+
}
|
| 363 |
+
}
|
| 364 |
+
}
|
| 365 |
+
/**
|
| 366 |
+
* A namespace for private module data.
|
| 367 |
+
*/
|
| 368 |
+
var Private;
|
| 369 |
+
(function (Private) {
|
| 370 |
+
/**
|
| 371 |
+
* A less-than comparison function for side bar rank items.
|
| 372 |
+
*/
|
| 373 |
+
function itemCmp(first, second) {
|
| 374 |
+
return first.rank - second.rank;
|
| 375 |
+
}
|
| 376 |
+
Private.itemCmp = itemCmp;
|
| 377 |
+
})(Private || (Private = {}));
|
| 378 |
+
|
| 379 |
+
;// CONCATENATED MODULE: ../packages/application/lib/shell.js
|
| 380 |
+
// Copyright (c) Jupyter Development Team.
|
| 381 |
+
// Distributed under the terms of the Modified BSD License.
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
|
| 387 |
+
|
| 388 |
+
/**
|
| 389 |
+
* The Jupyter Notebook application shell token.
|
| 390 |
+
*/
|
| 391 |
+
const INotebookShell = new dist_index_js_.Token('@jupyter-notebook/application:INotebookShell');
|
| 392 |
+
/**
|
| 393 |
+
* The default rank for ranked panels.
|
| 394 |
+
*/
|
| 395 |
+
const DEFAULT_RANK = 900;
|
| 396 |
+
/**
|
| 397 |
+
* The application shell.
|
| 398 |
+
*/
|
| 399 |
+
class NotebookShell extends widgets_dist_index_es6_js_.Widget {
|
| 400 |
+
constructor() {
|
| 401 |
+
super();
|
| 402 |
+
this._translator = translation_lib_index_js_.nullTranslator;
|
| 403 |
+
this._currentChanged = new signaling_dist_index_es6_js_.Signal(this);
|
| 404 |
+
this._mainWidgetLoaded = new dist_index_js_.PromiseDelegate();
|
| 405 |
+
this.id = 'main';
|
| 406 |
+
this._userLayout = {};
|
| 407 |
+
this._topHandler = new PanelHandler();
|
| 408 |
+
this._menuHandler = new PanelHandler();
|
| 409 |
+
this._leftHandler = new SidePanelHandler('left');
|
| 410 |
+
this._rightHandler = new SidePanelHandler('right');
|
| 411 |
+
this._main = new widgets_dist_index_es6_js_.Panel();
|
| 412 |
+
const topWrapper = (this._topWrapper = new widgets_dist_index_es6_js_.Panel());
|
| 413 |
+
const menuWrapper = (this._menuWrapper = new widgets_dist_index_es6_js_.Panel());
|
| 414 |
+
this._topHandler.panel.id = 'top-panel';
|
| 415 |
+
this._topHandler.panel.node.setAttribute('role', 'banner');
|
| 416 |
+
this._menuHandler.panel.id = 'menu-panel';
|
| 417 |
+
this._menuHandler.panel.node.setAttribute('role', 'navigation');
|
| 418 |
+
this._main.id = 'main-panel';
|
| 419 |
+
this._main.node.setAttribute('role', 'main');
|
| 420 |
+
this._spacer_top = new widgets_dist_index_es6_js_.Widget();
|
| 421 |
+
this._spacer_top.id = 'spacer-widget-top';
|
| 422 |
+
this._spacer_bottom = new widgets_dist_index_es6_js_.Widget();
|
| 423 |
+
this._spacer_bottom.id = 'spacer-widget-bottom';
|
| 424 |
+
// create wrappers around the top and menu areas
|
| 425 |
+
topWrapper.id = 'top-panel-wrapper';
|
| 426 |
+
topWrapper.addWidget(this._topHandler.panel);
|
| 427 |
+
menuWrapper.id = 'menu-panel-wrapper';
|
| 428 |
+
menuWrapper.addWidget(this._menuHandler.panel);
|
| 429 |
+
const rootLayout = new widgets_dist_index_es6_js_.BoxLayout();
|
| 430 |
+
const leftHandler = this._leftHandler;
|
| 431 |
+
const rightHandler = this._rightHandler;
|
| 432 |
+
leftHandler.panel.id = 'jp-left-stack';
|
| 433 |
+
leftHandler.panel.node.setAttribute('role', 'complementary');
|
| 434 |
+
rightHandler.panel.id = 'jp-right-stack';
|
| 435 |
+
rightHandler.panel.node.setAttribute('role', 'complementary');
|
| 436 |
+
// Hide the side panels by default.
|
| 437 |
+
leftHandler.hide();
|
| 438 |
+
rightHandler.hide();
|
| 439 |
+
const middleLayout = new widgets_dist_index_es6_js_.BoxLayout({
|
| 440 |
+
spacing: 0,
|
| 441 |
+
direction: 'top-to-bottom',
|
| 442 |
+
});
|
| 443 |
+
widgets_dist_index_es6_js_.BoxLayout.setStretch(this._topWrapper, 0);
|
| 444 |
+
widgets_dist_index_es6_js_.BoxLayout.setStretch(this._menuWrapper, 0);
|
| 445 |
+
widgets_dist_index_es6_js_.BoxLayout.setStretch(this._main, 1);
|
| 446 |
+
const middlePanel = new widgets_dist_index_es6_js_.Panel({ layout: middleLayout });
|
| 447 |
+
middlePanel.addWidget(this._topWrapper);
|
| 448 |
+
middlePanel.addWidget(this._menuWrapper);
|
| 449 |
+
middlePanel.addWidget(this._spacer_top);
|
| 450 |
+
middlePanel.addWidget(this._main);
|
| 451 |
+
middlePanel.addWidget(this._spacer_bottom);
|
| 452 |
+
middlePanel.layout = middleLayout;
|
| 453 |
+
// TODO: Consider storing this as an attribute this._hsplitPanel if saving/restoring layout needed
|
| 454 |
+
const hsplitPanel = new widgets_dist_index_es6_js_.SplitPanel();
|
| 455 |
+
hsplitPanel.id = 'main-split-panel';
|
| 456 |
+
hsplitPanel.spacing = 1;
|
| 457 |
+
widgets_dist_index_es6_js_.BoxLayout.setStretch(hsplitPanel, 1);
|
| 458 |
+
widgets_dist_index_es6_js_.SplitPanel.setStretch(leftHandler.panel, 0);
|
| 459 |
+
widgets_dist_index_es6_js_.SplitPanel.setStretch(rightHandler.panel, 0);
|
| 460 |
+
widgets_dist_index_es6_js_.SplitPanel.setStretch(middlePanel, 1);
|
| 461 |
+
hsplitPanel.addWidget(leftHandler.panel);
|
| 462 |
+
hsplitPanel.addWidget(middlePanel);
|
| 463 |
+
hsplitPanel.addWidget(rightHandler.panel);
|
| 464 |
+
// Use relative sizing to set the width of the side panels.
|
| 465 |
+
// This will still respect the min-size of children widget in the stacked
|
| 466 |
+
// panel.
|
| 467 |
+
hsplitPanel.setRelativeSizes([1, 2.5, 1]);
|
| 468 |
+
rootLayout.spacing = 0;
|
| 469 |
+
rootLayout.addWidget(hsplitPanel);
|
| 470 |
+
this.layout = rootLayout;
|
| 471 |
+
// Added Skip to Main Link
|
| 472 |
+
const skipLinkWidgetHandler = (this._skipLinkWidgetHandler =
|
| 473 |
+
new shell_Private.SkipLinkWidgetHandler(this));
|
| 474 |
+
this.add(skipLinkWidgetHandler.skipLinkWidget, 'top', { rank: 0 });
|
| 475 |
+
this._skipLinkWidgetHandler.show();
|
| 476 |
+
}
|
| 477 |
+
/**
|
| 478 |
+
* A signal emitted when the current widget changes.
|
| 479 |
+
*/
|
| 480 |
+
get currentChanged() {
|
| 481 |
+
return this._currentChanged;
|
| 482 |
+
}
|
| 483 |
+
/**
|
| 484 |
+
* The current widget in the shell's main area.
|
| 485 |
+
*/
|
| 486 |
+
get currentWidget() {
|
| 487 |
+
var _a;
|
| 488 |
+
return (_a = this._main.widgets[0]) !== null && _a !== void 0 ? _a : null;
|
| 489 |
+
}
|
| 490 |
+
/**
|
| 491 |
+
* Get the top area wrapper panel
|
| 492 |
+
*/
|
| 493 |
+
get top() {
|
| 494 |
+
return this._topWrapper;
|
| 495 |
+
}
|
| 496 |
+
/**
|
| 497 |
+
* Get the menu area wrapper panel
|
| 498 |
+
*/
|
| 499 |
+
get menu() {
|
| 500 |
+
return this._menuWrapper;
|
| 501 |
+
}
|
| 502 |
+
/**
|
| 503 |
+
* Get the left area handler
|
| 504 |
+
*/
|
| 505 |
+
get leftHandler() {
|
| 506 |
+
return this._leftHandler;
|
| 507 |
+
}
|
| 508 |
+
/**
|
| 509 |
+
* Get the right area handler
|
| 510 |
+
*/
|
| 511 |
+
get rightHandler() {
|
| 512 |
+
return this._rightHandler;
|
| 513 |
+
}
|
| 514 |
+
/**
|
| 515 |
+
* Is the left sidebar visible?
|
| 516 |
+
*/
|
| 517 |
+
get leftCollapsed() {
|
| 518 |
+
return !(this._leftHandler.isVisible && this._leftHandler.panel.isVisible);
|
| 519 |
+
}
|
| 520 |
+
/**
|
| 521 |
+
* Is the right sidebar visible?
|
| 522 |
+
*/
|
| 523 |
+
get rightCollapsed() {
|
| 524 |
+
return !(this._rightHandler.isVisible && this._rightHandler.panel.isVisible);
|
| 525 |
+
}
|
| 526 |
+
/**
|
| 527 |
+
* Promise that resolves when the main widget is loaded
|
| 528 |
+
*/
|
| 529 |
+
get restored() {
|
| 530 |
+
return this._mainWidgetLoaded.promise;
|
| 531 |
+
}
|
| 532 |
+
/**
|
| 533 |
+
* Getter and setter for the translator.
|
| 534 |
+
*/
|
| 535 |
+
get translator() {
|
| 536 |
+
var _a;
|
| 537 |
+
return (_a = this._translator) !== null && _a !== void 0 ? _a : translation_lib_index_js_.nullTranslator;
|
| 538 |
+
}
|
| 539 |
+
set translator(value) {
|
| 540 |
+
if (value !== this._translator) {
|
| 541 |
+
this._translator = value;
|
| 542 |
+
const trans = value.load('notebook');
|
| 543 |
+
this._leftHandler.closeButton.title = trans.__('Collapse %1 side panel', this._leftHandler.area);
|
| 544 |
+
this._rightHandler.closeButton.title = trans.__('Collapse %1 side panel', this._rightHandler.area);
|
| 545 |
+
}
|
| 546 |
+
}
|
| 547 |
+
/**
|
| 548 |
+
* User custom shell layout.
|
| 549 |
+
*/
|
| 550 |
+
get userLayout() {
|
| 551 |
+
return dist_index_js_.JSONExt.deepCopy(this._userLayout);
|
| 552 |
+
}
|
| 553 |
+
/**
|
| 554 |
+
* Activate a widget in its area.
|
| 555 |
+
*/
|
| 556 |
+
activateById(id) {
|
| 557 |
+
// Search all areas that can have widgets for this widget, starting with main.
|
| 558 |
+
for (const area of ['main', 'top', 'left', 'right', 'menu']) {
|
| 559 |
+
const widget = (0,dist_index_es6_js_.find)(this.widgets(area), (w) => w.id === id);
|
| 560 |
+
if (widget) {
|
| 561 |
+
if (area === 'left') {
|
| 562 |
+
this.expandLeft(id);
|
| 563 |
+
}
|
| 564 |
+
else if (area === 'right') {
|
| 565 |
+
this.expandRight(id);
|
| 566 |
+
}
|
| 567 |
+
else {
|
| 568 |
+
widget.activate();
|
| 569 |
+
}
|
| 570 |
+
}
|
| 571 |
+
}
|
| 572 |
+
}
|
| 573 |
+
/**
|
| 574 |
+
* Add a widget to the application shell.
|
| 575 |
+
*
|
| 576 |
+
* @param widget - The widget being added.
|
| 577 |
+
*
|
| 578 |
+
* @param area - Optional region in the shell into which the widget should
|
| 579 |
+
* be added.
|
| 580 |
+
*
|
| 581 |
+
* @param options - Optional open options.
|
| 582 |
+
*
|
| 583 |
+
*/
|
| 584 |
+
add(widget, area, options) {
|
| 585 |
+
var _a, _b;
|
| 586 |
+
let userPosition;
|
| 587 |
+
if ((options === null || options === void 0 ? void 0 : options.type) && this._userLayout[options.type]) {
|
| 588 |
+
userPosition = this._userLayout[options.type];
|
| 589 |
+
}
|
| 590 |
+
else {
|
| 591 |
+
userPosition = this._userLayout[widget.id];
|
| 592 |
+
}
|
| 593 |
+
area = (_a = userPosition === null || userPosition === void 0 ? void 0 : userPosition.area) !== null && _a !== void 0 ? _a : area;
|
| 594 |
+
options =
|
| 595 |
+
options || (userPosition === null || userPosition === void 0 ? void 0 : userPosition.options)
|
| 596 |
+
? {
|
| 597 |
+
...options,
|
| 598 |
+
...userPosition === null || userPosition === void 0 ? void 0 : userPosition.options,
|
| 599 |
+
}
|
| 600 |
+
: undefined;
|
| 601 |
+
const rank = (_b = options === null || options === void 0 ? void 0 : options.rank) !== null && _b !== void 0 ? _b : DEFAULT_RANK;
|
| 602 |
+
switch (area) {
|
| 603 |
+
case 'top':
|
| 604 |
+
return this._topHandler.addWidget(widget, rank);
|
| 605 |
+
case 'menu':
|
| 606 |
+
return this._menuHandler.addWidget(widget, rank);
|
| 607 |
+
case 'main':
|
| 608 |
+
case undefined: {
|
| 609 |
+
if (this._main.widgets.length > 0) {
|
| 610 |
+
// do not add the widget if there is already one
|
| 611 |
+
return;
|
| 612 |
+
}
|
| 613 |
+
const previousWidget = this.currentWidget;
|
| 614 |
+
this._main.addWidget(widget);
|
| 615 |
+
this._main.update();
|
| 616 |
+
this._currentChanged.emit({
|
| 617 |
+
newValue: widget,
|
| 618 |
+
oldValue: previousWidget,
|
| 619 |
+
});
|
| 620 |
+
this._mainWidgetLoaded.resolve();
|
| 621 |
+
break;
|
| 622 |
+
}
|
| 623 |
+
case 'left':
|
| 624 |
+
return this._leftHandler.addWidget(widget, rank);
|
| 625 |
+
case 'right':
|
| 626 |
+
return this._rightHandler.addWidget(widget, rank);
|
| 627 |
+
default:
|
| 628 |
+
console.warn(`Cannot add widget to area: ${area}`);
|
| 629 |
+
}
|
| 630 |
+
}
|
| 631 |
+
/**
|
| 632 |
+
* Collapse the top area and the spacer to make the view more compact.
|
| 633 |
+
*/
|
| 634 |
+
collapseTop() {
|
| 635 |
+
this._topWrapper.setHidden(true);
|
| 636 |
+
this._spacer_top.setHidden(true);
|
| 637 |
+
}
|
| 638 |
+
/**
|
| 639 |
+
* Expand the top area to show the header and the spacer.
|
| 640 |
+
*/
|
| 641 |
+
expandTop() {
|
| 642 |
+
this._topWrapper.setHidden(false);
|
| 643 |
+
this._spacer_top.setHidden(false);
|
| 644 |
+
}
|
| 645 |
+
/**
|
| 646 |
+
* Return the list of widgets for the given area.
|
| 647 |
+
*
|
| 648 |
+
* @param area The area
|
| 649 |
+
*/
|
| 650 |
+
*widgets(area) {
|
| 651 |
+
switch (area !== null && area !== void 0 ? area : 'main') {
|
| 652 |
+
case 'top':
|
| 653 |
+
yield* this._topHandler.panel.widgets;
|
| 654 |
+
return;
|
| 655 |
+
case 'menu':
|
| 656 |
+
yield* this._menuHandler.panel.widgets;
|
| 657 |
+
return;
|
| 658 |
+
case 'main':
|
| 659 |
+
yield* this._main.widgets;
|
| 660 |
+
return;
|
| 661 |
+
case 'left':
|
| 662 |
+
yield* this._leftHandler.widgets;
|
| 663 |
+
return;
|
| 664 |
+
case 'right':
|
| 665 |
+
yield* this._rightHandler.widgets;
|
| 666 |
+
return;
|
| 667 |
+
default:
|
| 668 |
+
console.error(`This shell has no area called "${area}"`);
|
| 669 |
+
return;
|
| 670 |
+
}
|
| 671 |
+
}
|
| 672 |
+
/**
|
| 673 |
+
* Expand the left panel to show the sidebar with its widget.
|
| 674 |
+
*/
|
| 675 |
+
expandLeft(id) {
|
| 676 |
+
this._leftHandler.panel.show();
|
| 677 |
+
this._leftHandler.expand(id); // Show the current widget, if any
|
| 678 |
+
}
|
| 679 |
+
/**
|
| 680 |
+
* Collapse the left panel
|
| 681 |
+
*/
|
| 682 |
+
collapseLeft() {
|
| 683 |
+
this._leftHandler.collapse();
|
| 684 |
+
this._leftHandler.panel.hide();
|
| 685 |
+
}
|
| 686 |
+
/**
|
| 687 |
+
* Expand the right panel to show the sidebar with its widget.
|
| 688 |
+
*/
|
| 689 |
+
expandRight(id) {
|
| 690 |
+
this._rightHandler.panel.show();
|
| 691 |
+
this._rightHandler.expand(id); // Show the current widget, if any
|
| 692 |
+
}
|
| 693 |
+
/**
|
| 694 |
+
* Collapse the right panel
|
| 695 |
+
*/
|
| 696 |
+
collapseRight() {
|
| 697 |
+
this._rightHandler.collapse();
|
| 698 |
+
this._rightHandler.panel.hide();
|
| 699 |
+
}
|
| 700 |
+
/**
|
| 701 |
+
* Restore the layout state and configuration for the application shell.
|
| 702 |
+
*/
|
| 703 |
+
async restoreLayout(configuration) {
|
| 704 |
+
this._userLayout = configuration;
|
| 705 |
+
}
|
| 706 |
+
}
|
| 707 |
+
var shell_Private;
|
| 708 |
+
(function (Private) {
|
| 709 |
+
class SkipLinkWidgetHandler {
|
| 710 |
+
/**
|
| 711 |
+
* Construct a new skipLink widget handler.
|
| 712 |
+
*/
|
| 713 |
+
constructor(shell) {
|
| 714 |
+
this._isDisposed = false;
|
| 715 |
+
const skipLinkWidget = (this._skipLinkWidget = new widgets_dist_index_es6_js_.Widget());
|
| 716 |
+
const skipToMain = document.createElement('a');
|
| 717 |
+
skipToMain.href = '#first-cell';
|
| 718 |
+
skipToMain.tabIndex = 1;
|
| 719 |
+
skipToMain.text = 'Skip to Main';
|
| 720 |
+
skipToMain.className = 'skip-link';
|
| 721 |
+
skipToMain.addEventListener('click', this);
|
| 722 |
+
skipLinkWidget.addClass('jp-skiplink');
|
| 723 |
+
skipLinkWidget.id = 'jp-skiplink';
|
| 724 |
+
skipLinkWidget.node.appendChild(skipToMain);
|
| 725 |
+
}
|
| 726 |
+
handleEvent(event) {
|
| 727 |
+
switch (event.type) {
|
| 728 |
+
case 'click':
|
| 729 |
+
this._focusMain();
|
| 730 |
+
break;
|
| 731 |
+
}
|
| 732 |
+
}
|
| 733 |
+
_focusMain() {
|
| 734 |
+
const input = document.querySelector('#main-panel .jp-InputArea-editor');
|
| 735 |
+
input.tabIndex = 1;
|
| 736 |
+
input.focus();
|
| 737 |
+
}
|
| 738 |
+
/**
|
| 739 |
+
* Get the input element managed by the handler.
|
| 740 |
+
*/
|
| 741 |
+
get skipLinkWidget() {
|
| 742 |
+
return this._skipLinkWidget;
|
| 743 |
+
}
|
| 744 |
+
/**
|
| 745 |
+
* Dispose of the handler and the resources it holds.
|
| 746 |
+
*/
|
| 747 |
+
dispose() {
|
| 748 |
+
if (this.isDisposed) {
|
| 749 |
+
return;
|
| 750 |
+
}
|
| 751 |
+
this._isDisposed = true;
|
| 752 |
+
this._skipLinkWidget.node.removeEventListener('click', this);
|
| 753 |
+
this._skipLinkWidget.dispose();
|
| 754 |
+
}
|
| 755 |
+
/**
|
| 756 |
+
* Hide the skipLink widget.
|
| 757 |
+
*/
|
| 758 |
+
hide() {
|
| 759 |
+
this._skipLinkWidget.hide();
|
| 760 |
+
}
|
| 761 |
+
/**
|
| 762 |
+
* Show the skipLink widget.
|
| 763 |
+
*/
|
| 764 |
+
show() {
|
| 765 |
+
this._skipLinkWidget.show();
|
| 766 |
+
}
|
| 767 |
+
/**
|
| 768 |
+
* Test whether the handler has been disposed.
|
| 769 |
+
*/
|
| 770 |
+
get isDisposed() {
|
| 771 |
+
return this._isDisposed;
|
| 772 |
+
}
|
| 773 |
+
}
|
| 774 |
+
Private.SkipLinkWidgetHandler = SkipLinkWidgetHandler;
|
| 775 |
+
})(shell_Private || (shell_Private = {}));
|
| 776 |
+
|
| 777 |
+
;// CONCATENATED MODULE: ../packages/application/lib/app.js
|
| 778 |
+
// Copyright (c) Jupyter Development Team.
|
| 779 |
+
// Distributed under the terms of the Modified BSD License.
|
| 780 |
+
|
| 781 |
+
|
| 782 |
+
|
| 783 |
+
|
| 784 |
+
|
| 785 |
+
|
| 786 |
+
|
| 787 |
+
/**
|
| 788 |
+
* App is the main application class. It is instantiated once and shared.
|
| 789 |
+
*/
|
| 790 |
+
class NotebookApp extends index_js_.JupyterFrontEnd {
|
| 791 |
+
/**
|
| 792 |
+
* Construct a new NotebookApp object.
|
| 793 |
+
*
|
| 794 |
+
* @param options The instantiation options for an application.
|
| 795 |
+
*/
|
| 796 |
+
constructor(options = { shell: new NotebookShell() }) {
|
| 797 |
+
var _a, _b;
|
| 798 |
+
super({ ...options, shell: (_a = options.shell) !== null && _a !== void 0 ? _a : new NotebookShell() });
|
| 799 |
+
/**
|
| 800 |
+
* The name of the application.
|
| 801 |
+
*/
|
| 802 |
+
this.name = 'Jupyter Notebook';
|
| 803 |
+
/**
|
| 804 |
+
* A namespace/prefix plugins may use to denote their provenance.
|
| 805 |
+
*/
|
| 806 |
+
this.namespace = this.name;
|
| 807 |
+
/**
|
| 808 |
+
* The application busy and dirty status signals and flags.
|
| 809 |
+
*/
|
| 810 |
+
this.status = new lib_status/* LabStatus */.J(this);
|
| 811 |
+
/**
|
| 812 |
+
* The version of the application.
|
| 813 |
+
*/
|
| 814 |
+
this.version = (_b = coreutils_lib_index_js_.PageConfig.getOption('appVersion')) !== null && _b !== void 0 ? _b : 'unknown';
|
| 815 |
+
this._info = index_js_.JupyterLab.defaultInfo;
|
| 816 |
+
this._formatter = new index_es6_js_.Throttler(() => {
|
| 817 |
+
app_Private.setFormat(this);
|
| 818 |
+
}, 250);
|
| 819 |
+
// Add initial model factory.
|
| 820 |
+
this.docRegistry.addModelFactory(new lib_index_js_.Base64ModelFactory());
|
| 821 |
+
if (options.mimeExtensions) {
|
| 822 |
+
for (const plugin of (0,mimerenderers/* createRendermimePlugins */.as)(options.mimeExtensions)) {
|
| 823 |
+
this.registerPlugin(plugin);
|
| 824 |
+
}
|
| 825 |
+
}
|
| 826 |
+
// Create an IInfo dictionary from the options to override the defaults.
|
| 827 |
+
const info = Object.keys(index_js_.JupyterLab.defaultInfo).reduce((acc, val) => {
|
| 828 |
+
if (val in options) {
|
| 829 |
+
acc[val] = JSON.parse(JSON.stringify(options[val]));
|
| 830 |
+
}
|
| 831 |
+
return acc;
|
| 832 |
+
}, {});
|
| 833 |
+
// Populate application info.
|
| 834 |
+
this._info = { ...index_js_.JupyterLab.defaultInfo, ...info };
|
| 835 |
+
this.restored = this.shell.restored;
|
| 836 |
+
this.restored.then(() => this._formatter.invoke());
|
| 837 |
+
}
|
| 838 |
+
/**
|
| 839 |
+
* The NotebookApp application information dictionary.
|
| 840 |
+
*/
|
| 841 |
+
get info() {
|
| 842 |
+
return this._info;
|
| 843 |
+
}
|
| 844 |
+
/**
|
| 845 |
+
* The JupyterLab application paths dictionary.
|
| 846 |
+
*/
|
| 847 |
+
get paths() {
|
| 848 |
+
return {
|
| 849 |
+
urls: {
|
| 850 |
+
base: coreutils_lib_index_js_.PageConfig.getOption('baseUrl'),
|
| 851 |
+
notFound: coreutils_lib_index_js_.PageConfig.getOption('notFoundUrl'),
|
| 852 |
+
app: coreutils_lib_index_js_.PageConfig.getOption('appUrl'),
|
| 853 |
+
static: coreutils_lib_index_js_.PageConfig.getOption('staticUrl'),
|
| 854 |
+
settings: coreutils_lib_index_js_.PageConfig.getOption('settingsUrl'),
|
| 855 |
+
themes: coreutils_lib_index_js_.PageConfig.getOption('themesUrl'),
|
| 856 |
+
doc: coreutils_lib_index_js_.PageConfig.getOption('docUrl'),
|
| 857 |
+
translations: coreutils_lib_index_js_.PageConfig.getOption('translationsApiUrl'),
|
| 858 |
+
hubHost: coreutils_lib_index_js_.PageConfig.getOption('hubHost') || undefined,
|
| 859 |
+
hubPrefix: coreutils_lib_index_js_.PageConfig.getOption('hubPrefix') || undefined,
|
| 860 |
+
hubUser: coreutils_lib_index_js_.PageConfig.getOption('hubUser') || undefined,
|
| 861 |
+
hubServerName: coreutils_lib_index_js_.PageConfig.getOption('hubServerName') || undefined,
|
| 862 |
+
},
|
| 863 |
+
directories: {
|
| 864 |
+
appSettings: coreutils_lib_index_js_.PageConfig.getOption('appSettingsDir'),
|
| 865 |
+
schemas: coreutils_lib_index_js_.PageConfig.getOption('schemasDir'),
|
| 866 |
+
static: coreutils_lib_index_js_.PageConfig.getOption('staticDir'),
|
| 867 |
+
templates: coreutils_lib_index_js_.PageConfig.getOption('templatesDir'),
|
| 868 |
+
themes: coreutils_lib_index_js_.PageConfig.getOption('themesDir'),
|
| 869 |
+
userSettings: coreutils_lib_index_js_.PageConfig.getOption('userSettingsDir'),
|
| 870 |
+
serverRoot: coreutils_lib_index_js_.PageConfig.getOption('serverRoot'),
|
| 871 |
+
workspaces: coreutils_lib_index_js_.PageConfig.getOption('workspacesDir'),
|
| 872 |
+
},
|
| 873 |
+
};
|
| 874 |
+
}
|
| 875 |
+
/**
|
| 876 |
+
* Handle the DOM events for the application.
|
| 877 |
+
*
|
| 878 |
+
* @param event - The DOM event sent to the application.
|
| 879 |
+
*/
|
| 880 |
+
handleEvent(event) {
|
| 881 |
+
super.handleEvent(event);
|
| 882 |
+
if (event.type === 'resize') {
|
| 883 |
+
void this._formatter.invoke();
|
| 884 |
+
}
|
| 885 |
+
}
|
| 886 |
+
/**
|
| 887 |
+
* Register plugins from a plugin module.
|
| 888 |
+
*
|
| 889 |
+
* @param mod - The plugin module to register.
|
| 890 |
+
*/
|
| 891 |
+
registerPluginModule(mod) {
|
| 892 |
+
let data = mod.default;
|
| 893 |
+
// Handle commonjs exports.
|
| 894 |
+
if (!Object.prototype.hasOwnProperty.call(mod, '__esModule')) {
|
| 895 |
+
data = mod;
|
| 896 |
+
}
|
| 897 |
+
if (!Array.isArray(data)) {
|
| 898 |
+
data = [data];
|
| 899 |
+
}
|
| 900 |
+
data.forEach((item) => {
|
| 901 |
+
try {
|
| 902 |
+
this.registerPlugin(item);
|
| 903 |
+
}
|
| 904 |
+
catch (error) {
|
| 905 |
+
console.error(error);
|
| 906 |
+
}
|
| 907 |
+
});
|
| 908 |
+
}
|
| 909 |
+
/**
|
| 910 |
+
* Register the plugins from multiple plugin modules.
|
| 911 |
+
*
|
| 912 |
+
* @param mods - The plugin modules to register.
|
| 913 |
+
*/
|
| 914 |
+
registerPluginModules(mods) {
|
| 915 |
+
mods.forEach((mod) => {
|
| 916 |
+
this.registerPluginModule(mod);
|
| 917 |
+
});
|
| 918 |
+
}
|
| 919 |
+
}
|
| 920 |
+
/**
|
| 921 |
+
* A namespace for module-private functionality.
|
| 922 |
+
*/
|
| 923 |
+
var app_Private;
|
| 924 |
+
(function (Private) {
|
| 925 |
+
/**
|
| 926 |
+
* Media query for mobile devices.
|
| 927 |
+
*/
|
| 928 |
+
const MOBILE_QUERY = 'only screen and (max-width: 760px)';
|
| 929 |
+
/**
|
| 930 |
+
* Sets the `format` of a Jupyter front-end application.
|
| 931 |
+
*
|
| 932 |
+
* @param app The front-end application whose format is set.
|
| 933 |
+
*/
|
| 934 |
+
function setFormat(app) {
|
| 935 |
+
app.format = window.matchMedia(MOBILE_QUERY).matches ? 'mobile' : 'desktop';
|
| 936 |
+
}
|
| 937 |
+
Private.setFormat = setFormat;
|
| 938 |
+
})(app_Private || (app_Private = {}));
|
| 939 |
+
|
| 940 |
+
;// CONCATENATED MODULE: ../packages/application/lib/pathopener.js
|
| 941 |
+
// Copyright (c) Jupyter Development Team.
|
| 942 |
+
// Distributed under the terms of the Modified BSD License.
|
| 943 |
+
|
| 944 |
+
/**
|
| 945 |
+
* A class to open paths in new browser tabs in the Notebook application.
|
| 946 |
+
*/
|
| 947 |
+
class DefaultNotebookPathOpener {
|
| 948 |
+
/**
|
| 949 |
+
* Open a path in a new browser tab.
|
| 950 |
+
*/
|
| 951 |
+
open(options) {
|
| 952 |
+
const { prefix, path, searchParams, target, features } = options;
|
| 953 |
+
const url = new URL(coreutils_lib_index_js_.URLExt.join(prefix, path !== null && path !== void 0 ? path : ''), window.location.origin);
|
| 954 |
+
if (searchParams) {
|
| 955 |
+
url.search = searchParams.toString();
|
| 956 |
+
}
|
| 957 |
+
return window.open(url, target, features);
|
| 958 |
+
}
|
| 959 |
+
}
|
| 960 |
+
const defaultNotebookPathOpener = new DefaultNotebookPathOpener();
|
| 961 |
+
|
| 962 |
+
;// CONCATENATED MODULE: ../packages/application/lib/tokens.js
|
| 963 |
+
|
| 964 |
+
/**
|
| 965 |
+
* The INotebookPathOpener token.
|
| 966 |
+
* The main purpose of this token is to allow other extensions or downstream applications
|
| 967 |
+
* to override the default behavior of opening a notebook in a new tab.
|
| 968 |
+
* It also allows passing the path as a URL search parameter, or other options to the window.open call.
|
| 969 |
+
*/
|
| 970 |
+
const INotebookPathOpener = new dist_index_js_.Token('@jupyter-notebook/application:INotebookPathOpener');
|
| 971 |
+
|
| 972 |
+
;// CONCATENATED MODULE: ../packages/application/lib/index.js
|
| 973 |
+
// Copyright (c) Jupyter Development Team.
|
| 974 |
+
// Distributed under the terms of the Modified BSD License.
|
| 975 |
+
|
| 976 |
+
|
| 977 |
+
|
| 978 |
+
|
| 979 |
+
|
| 980 |
+
|
| 981 |
+
|
| 982 |
+
/***/ })
|
| 983 |
+
|
| 984 |
+
}]);
|
| 985 |
+
//# sourceMappingURL=5135.398f538011f4562d1fae.js.map?v=398f538011f4562d1fae
|
vlmpy310/lib/python3.10/site-packages/notebook/static/5261.570ec78f80a112aa7d5d.js
ADDED
|
@@ -0,0 +1,1292 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[5261],{
|
| 3 |
+
|
| 4 |
+
/***/ 25261:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
// ESM COMPAT FLAG
|
| 8 |
+
__webpack_require__.r(__webpack_exports__);
|
| 9 |
+
|
| 10 |
+
// EXPORTS
|
| 11 |
+
__webpack_require__.d(__webpack_exports__, {
|
| 12 |
+
RegExpCursor: () => (/* binding */ RegExpCursor),
|
| 13 |
+
SearchCursor: () => (/* binding */ SearchCursor),
|
| 14 |
+
SearchQuery: () => (/* binding */ SearchQuery),
|
| 15 |
+
closeSearchPanel: () => (/* binding */ closeSearchPanel),
|
| 16 |
+
findNext: () => (/* binding */ findNext),
|
| 17 |
+
findPrevious: () => (/* binding */ findPrevious),
|
| 18 |
+
getSearchQuery: () => (/* binding */ getSearchQuery),
|
| 19 |
+
gotoLine: () => (/* binding */ gotoLine),
|
| 20 |
+
highlightSelectionMatches: () => (/* binding */ highlightSelectionMatches),
|
| 21 |
+
openSearchPanel: () => (/* binding */ openSearchPanel),
|
| 22 |
+
replaceAll: () => (/* binding */ replaceAll),
|
| 23 |
+
replaceNext: () => (/* binding */ replaceNext),
|
| 24 |
+
search: () => (/* binding */ search),
|
| 25 |
+
searchKeymap: () => (/* binding */ searchKeymap),
|
| 26 |
+
searchPanelOpen: () => (/* binding */ searchPanelOpen),
|
| 27 |
+
selectMatches: () => (/* binding */ selectMatches),
|
| 28 |
+
selectNextOccurrence: () => (/* binding */ selectNextOccurrence),
|
| 29 |
+
selectSelectionMatches: () => (/* binding */ selectSelectionMatches),
|
| 30 |
+
setSearchQuery: () => (/* binding */ setSearchQuery)
|
| 31 |
+
});
|
| 32 |
+
|
| 33 |
+
// EXTERNAL MODULE: consume shared module (default) @codemirror/view@~6.28.3 (singleton) (fallback: ../node_modules/@codemirror/view/dist/index.js)
|
| 34 |
+
var index_js_ = __webpack_require__(63720);
|
| 35 |
+
// EXTERNAL MODULE: consume shared module (default) @codemirror/state@~6.4.1 (singleton) (fallback: ../node_modules/@codemirror/state/dist/index.js)
|
| 36 |
+
var dist_index_js_ = __webpack_require__(89843);
|
| 37 |
+
;// CONCATENATED MODULE: ../node_modules/crelt/index.js
|
| 38 |
+
function crelt() {
|
| 39 |
+
var elt = arguments[0]
|
| 40 |
+
if (typeof elt == "string") elt = document.createElement(elt)
|
| 41 |
+
var i = 1, next = arguments[1]
|
| 42 |
+
if (next && typeof next == "object" && next.nodeType == null && !Array.isArray(next)) {
|
| 43 |
+
for (var name in next) if (Object.prototype.hasOwnProperty.call(next, name)) {
|
| 44 |
+
var value = next[name]
|
| 45 |
+
if (typeof value == "string") elt.setAttribute(name, value)
|
| 46 |
+
else if (value != null) elt[name] = value
|
| 47 |
+
}
|
| 48 |
+
i++
|
| 49 |
+
}
|
| 50 |
+
for (; i < arguments.length; i++) add(elt, arguments[i])
|
| 51 |
+
return elt
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
function add(elt, child) {
|
| 55 |
+
if (typeof child == "string") {
|
| 56 |
+
elt.appendChild(document.createTextNode(child))
|
| 57 |
+
} else if (child == null) {
|
| 58 |
+
} else if (child.nodeType != null) {
|
| 59 |
+
elt.appendChild(child)
|
| 60 |
+
} else if (Array.isArray(child)) {
|
| 61 |
+
for (var i = 0; i < child.length; i++) add(elt, child[i])
|
| 62 |
+
} else {
|
| 63 |
+
throw new RangeError("Unsupported child node: " + child)
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
;// CONCATENATED MODULE: ../node_modules/@codemirror/search/dist/index.js
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
const basicNormalize = typeof String.prototype.normalize == "function"
|
| 73 |
+
? x => x.normalize("NFKD") : x => x;
|
| 74 |
+
/**
|
| 75 |
+
A search cursor provides an iterator over text matches in a
|
| 76 |
+
document.
|
| 77 |
+
*/
|
| 78 |
+
class SearchCursor {
|
| 79 |
+
/**
|
| 80 |
+
Create a text cursor. The query is the search string, `from` to
|
| 81 |
+
`to` provides the region to search.
|
| 82 |
+
|
| 83 |
+
When `normalize` is given, it will be called, on both the query
|
| 84 |
+
string and the content it is matched against, before comparing.
|
| 85 |
+
You can, for example, create a case-insensitive search by
|
| 86 |
+
passing `s => s.toLowerCase()`.
|
| 87 |
+
|
| 88 |
+
Text is always normalized with
|
| 89 |
+
[`.normalize("NFKD")`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize)
|
| 90 |
+
(when supported).
|
| 91 |
+
*/
|
| 92 |
+
constructor(text, query, from = 0, to = text.length, normalize, test) {
|
| 93 |
+
this.test = test;
|
| 94 |
+
/**
|
| 95 |
+
The current match (only holds a meaningful value after
|
| 96 |
+
[`next`](https://codemirror.net/6/docs/ref/#search.SearchCursor.next) has been called and when
|
| 97 |
+
`done` is false).
|
| 98 |
+
*/
|
| 99 |
+
this.value = { from: 0, to: 0 };
|
| 100 |
+
/**
|
| 101 |
+
Whether the end of the iterated region has been reached.
|
| 102 |
+
*/
|
| 103 |
+
this.done = false;
|
| 104 |
+
this.matches = [];
|
| 105 |
+
this.buffer = "";
|
| 106 |
+
this.bufferPos = 0;
|
| 107 |
+
this.iter = text.iterRange(from, to);
|
| 108 |
+
this.bufferStart = from;
|
| 109 |
+
this.normalize = normalize ? x => normalize(basicNormalize(x)) : basicNormalize;
|
| 110 |
+
this.query = this.normalize(query);
|
| 111 |
+
}
|
| 112 |
+
peek() {
|
| 113 |
+
if (this.bufferPos == this.buffer.length) {
|
| 114 |
+
this.bufferStart += this.buffer.length;
|
| 115 |
+
this.iter.next();
|
| 116 |
+
if (this.iter.done)
|
| 117 |
+
return -1;
|
| 118 |
+
this.bufferPos = 0;
|
| 119 |
+
this.buffer = this.iter.value;
|
| 120 |
+
}
|
| 121 |
+
return (0,dist_index_js_.codePointAt)(this.buffer, this.bufferPos);
|
| 122 |
+
}
|
| 123 |
+
/**
|
| 124 |
+
Look for the next match. Updates the iterator's
|
| 125 |
+
[`value`](https://codemirror.net/6/docs/ref/#search.SearchCursor.value) and
|
| 126 |
+
[`done`](https://codemirror.net/6/docs/ref/#search.SearchCursor.done) properties. Should be called
|
| 127 |
+
at least once before using the cursor.
|
| 128 |
+
*/
|
| 129 |
+
next() {
|
| 130 |
+
while (this.matches.length)
|
| 131 |
+
this.matches.pop();
|
| 132 |
+
return this.nextOverlapping();
|
| 133 |
+
}
|
| 134 |
+
/**
|
| 135 |
+
The `next` method will ignore matches that partially overlap a
|
| 136 |
+
previous match. This method behaves like `next`, but includes
|
| 137 |
+
such matches.
|
| 138 |
+
*/
|
| 139 |
+
nextOverlapping() {
|
| 140 |
+
for (;;) {
|
| 141 |
+
let next = this.peek();
|
| 142 |
+
if (next < 0) {
|
| 143 |
+
this.done = true;
|
| 144 |
+
return this;
|
| 145 |
+
}
|
| 146 |
+
let str = (0,dist_index_js_.fromCodePoint)(next), start = this.bufferStart + this.bufferPos;
|
| 147 |
+
this.bufferPos += (0,dist_index_js_.codePointSize)(next);
|
| 148 |
+
let norm = this.normalize(str);
|
| 149 |
+
for (let i = 0, pos = start;; i++) {
|
| 150 |
+
let code = norm.charCodeAt(i);
|
| 151 |
+
let match = this.match(code, pos, this.bufferPos + this.bufferStart);
|
| 152 |
+
if (i == norm.length - 1) {
|
| 153 |
+
if (match) {
|
| 154 |
+
this.value = match;
|
| 155 |
+
return this;
|
| 156 |
+
}
|
| 157 |
+
break;
|
| 158 |
+
}
|
| 159 |
+
if (pos == start && i < str.length && str.charCodeAt(i) == code)
|
| 160 |
+
pos++;
|
| 161 |
+
}
|
| 162 |
+
}
|
| 163 |
+
}
|
| 164 |
+
match(code, pos, end) {
|
| 165 |
+
let match = null;
|
| 166 |
+
for (let i = 0; i < this.matches.length; i += 2) {
|
| 167 |
+
let index = this.matches[i], keep = false;
|
| 168 |
+
if (this.query.charCodeAt(index) == code) {
|
| 169 |
+
if (index == this.query.length - 1) {
|
| 170 |
+
match = { from: this.matches[i + 1], to: end };
|
| 171 |
+
}
|
| 172 |
+
else {
|
| 173 |
+
this.matches[i]++;
|
| 174 |
+
keep = true;
|
| 175 |
+
}
|
| 176 |
+
}
|
| 177 |
+
if (!keep) {
|
| 178 |
+
this.matches.splice(i, 2);
|
| 179 |
+
i -= 2;
|
| 180 |
+
}
|
| 181 |
+
}
|
| 182 |
+
if (this.query.charCodeAt(0) == code) {
|
| 183 |
+
if (this.query.length == 1)
|
| 184 |
+
match = { from: pos, to: end };
|
| 185 |
+
else
|
| 186 |
+
this.matches.push(1, pos);
|
| 187 |
+
}
|
| 188 |
+
if (match && this.test && !this.test(match.from, match.to, this.buffer, this.bufferStart))
|
| 189 |
+
match = null;
|
| 190 |
+
return match;
|
| 191 |
+
}
|
| 192 |
+
}
|
| 193 |
+
if (typeof Symbol != "undefined")
|
| 194 |
+
SearchCursor.prototype[Symbol.iterator] = function () { return this; };
|
| 195 |
+
|
| 196 |
+
const empty = { from: -1, to: -1, match: /*@__PURE__*//.*/.exec("") };
|
| 197 |
+
const baseFlags = "gm" + (/x/.unicode == null ? "" : "u");
|
| 198 |
+
/**
|
| 199 |
+
This class is similar to [`SearchCursor`](https://codemirror.net/6/docs/ref/#search.SearchCursor)
|
| 200 |
+
but searches for a regular expression pattern instead of a plain
|
| 201 |
+
string.
|
| 202 |
+
*/
|
| 203 |
+
class RegExpCursor {
|
| 204 |
+
/**
|
| 205 |
+
Create a cursor that will search the given range in the given
|
| 206 |
+
document. `query` should be the raw pattern (as you'd pass it to
|
| 207 |
+
`new RegExp`).
|
| 208 |
+
*/
|
| 209 |
+
constructor(text, query, options, from = 0, to = text.length) {
|
| 210 |
+
this.text = text;
|
| 211 |
+
this.to = to;
|
| 212 |
+
this.curLine = "";
|
| 213 |
+
/**
|
| 214 |
+
Set to `true` when the cursor has reached the end of the search
|
| 215 |
+
range.
|
| 216 |
+
*/
|
| 217 |
+
this.done = false;
|
| 218 |
+
/**
|
| 219 |
+
Will contain an object with the extent of the match and the
|
| 220 |
+
match object when [`next`](https://codemirror.net/6/docs/ref/#search.RegExpCursor.next)
|
| 221 |
+
sucessfully finds a match.
|
| 222 |
+
*/
|
| 223 |
+
this.value = empty;
|
| 224 |
+
if (/\\[sWDnr]|\n|\r|\[\^/.test(query))
|
| 225 |
+
return new MultilineRegExpCursor(text, query, options, from, to);
|
| 226 |
+
this.re = new RegExp(query, baseFlags + ((options === null || options === void 0 ? void 0 : options.ignoreCase) ? "i" : ""));
|
| 227 |
+
this.test = options === null || options === void 0 ? void 0 : options.test;
|
| 228 |
+
this.iter = text.iter();
|
| 229 |
+
let startLine = text.lineAt(from);
|
| 230 |
+
this.curLineStart = startLine.from;
|
| 231 |
+
this.matchPos = toCharEnd(text, from);
|
| 232 |
+
this.getLine(this.curLineStart);
|
| 233 |
+
}
|
| 234 |
+
getLine(skip) {
|
| 235 |
+
this.iter.next(skip);
|
| 236 |
+
if (this.iter.lineBreak) {
|
| 237 |
+
this.curLine = "";
|
| 238 |
+
}
|
| 239 |
+
else {
|
| 240 |
+
this.curLine = this.iter.value;
|
| 241 |
+
if (this.curLineStart + this.curLine.length > this.to)
|
| 242 |
+
this.curLine = this.curLine.slice(0, this.to - this.curLineStart);
|
| 243 |
+
this.iter.next();
|
| 244 |
+
}
|
| 245 |
+
}
|
| 246 |
+
nextLine() {
|
| 247 |
+
this.curLineStart = this.curLineStart + this.curLine.length + 1;
|
| 248 |
+
if (this.curLineStart > this.to)
|
| 249 |
+
this.curLine = "";
|
| 250 |
+
else
|
| 251 |
+
this.getLine(0);
|
| 252 |
+
}
|
| 253 |
+
/**
|
| 254 |
+
Move to the next match, if there is one.
|
| 255 |
+
*/
|
| 256 |
+
next() {
|
| 257 |
+
for (let off = this.matchPos - this.curLineStart;;) {
|
| 258 |
+
this.re.lastIndex = off;
|
| 259 |
+
let match = this.matchPos <= this.to && this.re.exec(this.curLine);
|
| 260 |
+
if (match) {
|
| 261 |
+
let from = this.curLineStart + match.index, to = from + match[0].length;
|
| 262 |
+
this.matchPos = toCharEnd(this.text, to + (from == to ? 1 : 0));
|
| 263 |
+
if (from == this.curLineStart + this.curLine.length)
|
| 264 |
+
this.nextLine();
|
| 265 |
+
if ((from < to || from > this.value.to) && (!this.test || this.test(from, to, match))) {
|
| 266 |
+
this.value = { from, to, match };
|
| 267 |
+
return this;
|
| 268 |
+
}
|
| 269 |
+
off = this.matchPos - this.curLineStart;
|
| 270 |
+
}
|
| 271 |
+
else if (this.curLineStart + this.curLine.length < this.to) {
|
| 272 |
+
this.nextLine();
|
| 273 |
+
off = 0;
|
| 274 |
+
}
|
| 275 |
+
else {
|
| 276 |
+
this.done = true;
|
| 277 |
+
return this;
|
| 278 |
+
}
|
| 279 |
+
}
|
| 280 |
+
}
|
| 281 |
+
}
|
| 282 |
+
const flattened = /*@__PURE__*/new WeakMap();
|
| 283 |
+
// Reusable (partially) flattened document strings
|
| 284 |
+
class FlattenedDoc {
|
| 285 |
+
constructor(from, text) {
|
| 286 |
+
this.from = from;
|
| 287 |
+
this.text = text;
|
| 288 |
+
}
|
| 289 |
+
get to() { return this.from + this.text.length; }
|
| 290 |
+
static get(doc, from, to) {
|
| 291 |
+
let cached = flattened.get(doc);
|
| 292 |
+
if (!cached || cached.from >= to || cached.to <= from) {
|
| 293 |
+
let flat = new FlattenedDoc(from, doc.sliceString(from, to));
|
| 294 |
+
flattened.set(doc, flat);
|
| 295 |
+
return flat;
|
| 296 |
+
}
|
| 297 |
+
if (cached.from == from && cached.to == to)
|
| 298 |
+
return cached;
|
| 299 |
+
let { text, from: cachedFrom } = cached;
|
| 300 |
+
if (cachedFrom > from) {
|
| 301 |
+
text = doc.sliceString(from, cachedFrom) + text;
|
| 302 |
+
cachedFrom = from;
|
| 303 |
+
}
|
| 304 |
+
if (cached.to < to)
|
| 305 |
+
text += doc.sliceString(cached.to, to);
|
| 306 |
+
flattened.set(doc, new FlattenedDoc(cachedFrom, text));
|
| 307 |
+
return new FlattenedDoc(from, text.slice(from - cachedFrom, to - cachedFrom));
|
| 308 |
+
}
|
| 309 |
+
}
|
| 310 |
+
class MultilineRegExpCursor {
|
| 311 |
+
constructor(text, query, options, from, to) {
|
| 312 |
+
this.text = text;
|
| 313 |
+
this.to = to;
|
| 314 |
+
this.done = false;
|
| 315 |
+
this.value = empty;
|
| 316 |
+
this.matchPos = toCharEnd(text, from);
|
| 317 |
+
this.re = new RegExp(query, baseFlags + ((options === null || options === void 0 ? void 0 : options.ignoreCase) ? "i" : ""));
|
| 318 |
+
this.test = options === null || options === void 0 ? void 0 : options.test;
|
| 319 |
+
this.flat = FlattenedDoc.get(text, from, this.chunkEnd(from + 5000 /* Chunk.Base */));
|
| 320 |
+
}
|
| 321 |
+
chunkEnd(pos) {
|
| 322 |
+
return pos >= this.to ? this.to : this.text.lineAt(pos).to;
|
| 323 |
+
}
|
| 324 |
+
next() {
|
| 325 |
+
for (;;) {
|
| 326 |
+
let off = this.re.lastIndex = this.matchPos - this.flat.from;
|
| 327 |
+
let match = this.re.exec(this.flat.text);
|
| 328 |
+
// Skip empty matches directly after the last match
|
| 329 |
+
if (match && !match[0] && match.index == off) {
|
| 330 |
+
this.re.lastIndex = off + 1;
|
| 331 |
+
match = this.re.exec(this.flat.text);
|
| 332 |
+
}
|
| 333 |
+
if (match) {
|
| 334 |
+
let from = this.flat.from + match.index, to = from + match[0].length;
|
| 335 |
+
// If a match goes almost to the end of a noncomplete chunk, try
|
| 336 |
+
// again, since it'll likely be able to match more
|
| 337 |
+
if ((this.flat.to >= this.to || match.index + match[0].length <= this.flat.text.length - 10) &&
|
| 338 |
+
(!this.test || this.test(from, to, match))) {
|
| 339 |
+
this.value = { from, to, match };
|
| 340 |
+
this.matchPos = toCharEnd(this.text, to + (from == to ? 1 : 0));
|
| 341 |
+
return this;
|
| 342 |
+
}
|
| 343 |
+
}
|
| 344 |
+
if (this.flat.to == this.to) {
|
| 345 |
+
this.done = true;
|
| 346 |
+
return this;
|
| 347 |
+
}
|
| 348 |
+
// Grow the flattened doc
|
| 349 |
+
this.flat = FlattenedDoc.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
|
| 350 |
+
}
|
| 351 |
+
}
|
| 352 |
+
}
|
| 353 |
+
if (typeof Symbol != "undefined") {
|
| 354 |
+
RegExpCursor.prototype[Symbol.iterator] = MultilineRegExpCursor.prototype[Symbol.iterator] =
|
| 355 |
+
function () { return this; };
|
| 356 |
+
}
|
| 357 |
+
function validRegExp(source) {
|
| 358 |
+
try {
|
| 359 |
+
new RegExp(source, baseFlags);
|
| 360 |
+
return true;
|
| 361 |
+
}
|
| 362 |
+
catch (_a) {
|
| 363 |
+
return false;
|
| 364 |
+
}
|
| 365 |
+
}
|
| 366 |
+
function toCharEnd(text, pos) {
|
| 367 |
+
if (pos >= text.length)
|
| 368 |
+
return pos;
|
| 369 |
+
let line = text.lineAt(pos), next;
|
| 370 |
+
while (pos < line.to && (next = line.text.charCodeAt(pos - line.from)) >= 0xDC00 && next < 0xE000)
|
| 371 |
+
pos++;
|
| 372 |
+
return pos;
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
function createLineDialog(view) {
|
| 376 |
+
let line = String(view.state.doc.lineAt(view.state.selection.main.head).number);
|
| 377 |
+
let input = crelt("input", { class: "cm-textfield", name: "line", value: line });
|
| 378 |
+
let dom = crelt("form", {
|
| 379 |
+
class: "cm-gotoLine",
|
| 380 |
+
onkeydown: (event) => {
|
| 381 |
+
if (event.keyCode == 27) { // Escape
|
| 382 |
+
event.preventDefault();
|
| 383 |
+
view.dispatch({ effects: dialogEffect.of(false) });
|
| 384 |
+
view.focus();
|
| 385 |
+
}
|
| 386 |
+
else if (event.keyCode == 13) { // Enter
|
| 387 |
+
event.preventDefault();
|
| 388 |
+
go();
|
| 389 |
+
}
|
| 390 |
+
},
|
| 391 |
+
onsubmit: (event) => {
|
| 392 |
+
event.preventDefault();
|
| 393 |
+
go();
|
| 394 |
+
}
|
| 395 |
+
}, crelt("label", view.state.phrase("Go to line"), ": ", input), " ", crelt("button", { class: "cm-button", type: "submit" }, view.state.phrase("go")));
|
| 396 |
+
function go() {
|
| 397 |
+
let match = /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(input.value);
|
| 398 |
+
if (!match)
|
| 399 |
+
return;
|
| 400 |
+
let { state } = view, startLine = state.doc.lineAt(state.selection.main.head);
|
| 401 |
+
let [, sign, ln, cl, percent] = match;
|
| 402 |
+
let col = cl ? +cl.slice(1) : 0;
|
| 403 |
+
let line = ln ? +ln : startLine.number;
|
| 404 |
+
if (ln && percent) {
|
| 405 |
+
let pc = line / 100;
|
| 406 |
+
if (sign)
|
| 407 |
+
pc = pc * (sign == "-" ? -1 : 1) + (startLine.number / state.doc.lines);
|
| 408 |
+
line = Math.round(state.doc.lines * pc);
|
| 409 |
+
}
|
| 410 |
+
else if (ln && sign) {
|
| 411 |
+
line = line * (sign == "-" ? -1 : 1) + startLine.number;
|
| 412 |
+
}
|
| 413 |
+
let docLine = state.doc.line(Math.max(1, Math.min(state.doc.lines, line)));
|
| 414 |
+
let selection = dist_index_js_.EditorSelection.cursor(docLine.from + Math.max(0, Math.min(col, docLine.length)));
|
| 415 |
+
view.dispatch({
|
| 416 |
+
effects: [dialogEffect.of(false), index_js_.EditorView.scrollIntoView(selection.from, { y: 'center' })],
|
| 417 |
+
selection,
|
| 418 |
+
});
|
| 419 |
+
view.focus();
|
| 420 |
+
}
|
| 421 |
+
return { dom };
|
| 422 |
+
}
|
| 423 |
+
const dialogEffect = /*@__PURE__*/dist_index_js_.StateEffect.define();
|
| 424 |
+
const dialogField = /*@__PURE__*/dist_index_js_.StateField.define({
|
| 425 |
+
create() { return true; },
|
| 426 |
+
update(value, tr) {
|
| 427 |
+
for (let e of tr.effects)
|
| 428 |
+
if (e.is(dialogEffect))
|
| 429 |
+
value = e.value;
|
| 430 |
+
return value;
|
| 431 |
+
},
|
| 432 |
+
provide: f => index_js_.showPanel.from(f, val => val ? createLineDialog : null)
|
| 433 |
+
});
|
| 434 |
+
/**
|
| 435 |
+
Command that shows a dialog asking the user for a line number, and
|
| 436 |
+
when a valid position is provided, moves the cursor to that line.
|
| 437 |
+
|
| 438 |
+
Supports line numbers, relative line offsets prefixed with `+` or
|
| 439 |
+
`-`, document percentages suffixed with `%`, and an optional
|
| 440 |
+
column position by adding `:` and a second number after the line
|
| 441 |
+
number.
|
| 442 |
+
*/
|
| 443 |
+
const gotoLine = view => {
|
| 444 |
+
let panel = (0,index_js_.getPanel)(view, createLineDialog);
|
| 445 |
+
if (!panel) {
|
| 446 |
+
let effects = [dialogEffect.of(true)];
|
| 447 |
+
if (view.state.field(dialogField, false) == null)
|
| 448 |
+
effects.push(dist_index_js_.StateEffect.appendConfig.of([dialogField, baseTheme$1]));
|
| 449 |
+
view.dispatch({ effects });
|
| 450 |
+
panel = (0,index_js_.getPanel)(view, createLineDialog);
|
| 451 |
+
}
|
| 452 |
+
if (panel)
|
| 453 |
+
panel.dom.querySelector("input").select();
|
| 454 |
+
return true;
|
| 455 |
+
};
|
| 456 |
+
const baseTheme$1 = /*@__PURE__*/index_js_.EditorView.baseTheme({
|
| 457 |
+
".cm-panel.cm-gotoLine": {
|
| 458 |
+
padding: "2px 6px 4px",
|
| 459 |
+
"& label": { fontSize: "80%" }
|
| 460 |
+
}
|
| 461 |
+
});
|
| 462 |
+
|
| 463 |
+
const defaultHighlightOptions = {
|
| 464 |
+
highlightWordAroundCursor: false,
|
| 465 |
+
minSelectionLength: 1,
|
| 466 |
+
maxMatches: 100,
|
| 467 |
+
wholeWords: false
|
| 468 |
+
};
|
| 469 |
+
const highlightConfig = /*@__PURE__*/dist_index_js_.Facet.define({
|
| 470 |
+
combine(options) {
|
| 471 |
+
return (0,dist_index_js_.combineConfig)(options, defaultHighlightOptions, {
|
| 472 |
+
highlightWordAroundCursor: (a, b) => a || b,
|
| 473 |
+
minSelectionLength: Math.min,
|
| 474 |
+
maxMatches: Math.min
|
| 475 |
+
});
|
| 476 |
+
}
|
| 477 |
+
});
|
| 478 |
+
/**
|
| 479 |
+
This extension highlights text that matches the selection. It uses
|
| 480 |
+
the `"cm-selectionMatch"` class for the highlighting. When
|
| 481 |
+
`highlightWordAroundCursor` is enabled, the word at the cursor
|
| 482 |
+
itself will be highlighted with `"cm-selectionMatch-main"`.
|
| 483 |
+
*/
|
| 484 |
+
function highlightSelectionMatches(options) {
|
| 485 |
+
let ext = [defaultTheme, matchHighlighter];
|
| 486 |
+
if (options)
|
| 487 |
+
ext.push(highlightConfig.of(options));
|
| 488 |
+
return ext;
|
| 489 |
+
}
|
| 490 |
+
const matchDeco = /*@__PURE__*/index_js_.Decoration.mark({ class: "cm-selectionMatch" });
|
| 491 |
+
const mainMatchDeco = /*@__PURE__*/index_js_.Decoration.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
|
| 492 |
+
// Whether the characters directly outside the given positions are non-word characters
|
| 493 |
+
function insideWordBoundaries(check, state, from, to) {
|
| 494 |
+
return (from == 0 || check(state.sliceDoc(from - 1, from)) != dist_index_js_.CharCategory.Word) &&
|
| 495 |
+
(to == state.doc.length || check(state.sliceDoc(to, to + 1)) != dist_index_js_.CharCategory.Word);
|
| 496 |
+
}
|
| 497 |
+
// Whether the characters directly at the given positions are word characters
|
| 498 |
+
function insideWord(check, state, from, to) {
|
| 499 |
+
return check(state.sliceDoc(from, from + 1)) == dist_index_js_.CharCategory.Word
|
| 500 |
+
&& check(state.sliceDoc(to - 1, to)) == dist_index_js_.CharCategory.Word;
|
| 501 |
+
}
|
| 502 |
+
const matchHighlighter = /*@__PURE__*/index_js_.ViewPlugin.fromClass(class {
|
| 503 |
+
constructor(view) {
|
| 504 |
+
this.decorations = this.getDeco(view);
|
| 505 |
+
}
|
| 506 |
+
update(update) {
|
| 507 |
+
if (update.selectionSet || update.docChanged || update.viewportChanged)
|
| 508 |
+
this.decorations = this.getDeco(update.view);
|
| 509 |
+
}
|
| 510 |
+
getDeco(view) {
|
| 511 |
+
let conf = view.state.facet(highlightConfig);
|
| 512 |
+
let { state } = view, sel = state.selection;
|
| 513 |
+
if (sel.ranges.length > 1)
|
| 514 |
+
return index_js_.Decoration.none;
|
| 515 |
+
let range = sel.main, query, check = null;
|
| 516 |
+
if (range.empty) {
|
| 517 |
+
if (!conf.highlightWordAroundCursor)
|
| 518 |
+
return index_js_.Decoration.none;
|
| 519 |
+
let word = state.wordAt(range.head);
|
| 520 |
+
if (!word)
|
| 521 |
+
return index_js_.Decoration.none;
|
| 522 |
+
check = state.charCategorizer(range.head);
|
| 523 |
+
query = state.sliceDoc(word.from, word.to);
|
| 524 |
+
}
|
| 525 |
+
else {
|
| 526 |
+
let len = range.to - range.from;
|
| 527 |
+
if (len < conf.minSelectionLength || len > 200)
|
| 528 |
+
return index_js_.Decoration.none;
|
| 529 |
+
if (conf.wholeWords) {
|
| 530 |
+
query = state.sliceDoc(range.from, range.to); // TODO: allow and include leading/trailing space?
|
| 531 |
+
check = state.charCategorizer(range.head);
|
| 532 |
+
if (!(insideWordBoundaries(check, state, range.from, range.to) &&
|
| 533 |
+
insideWord(check, state, range.from, range.to)))
|
| 534 |
+
return index_js_.Decoration.none;
|
| 535 |
+
}
|
| 536 |
+
else {
|
| 537 |
+
query = state.sliceDoc(range.from, range.to);
|
| 538 |
+
if (!query)
|
| 539 |
+
return index_js_.Decoration.none;
|
| 540 |
+
}
|
| 541 |
+
}
|
| 542 |
+
let deco = [];
|
| 543 |
+
for (let part of view.visibleRanges) {
|
| 544 |
+
let cursor = new SearchCursor(state.doc, query, part.from, part.to);
|
| 545 |
+
while (!cursor.next().done) {
|
| 546 |
+
let { from, to } = cursor.value;
|
| 547 |
+
if (!check || insideWordBoundaries(check, state, from, to)) {
|
| 548 |
+
if (range.empty && from <= range.from && to >= range.to)
|
| 549 |
+
deco.push(mainMatchDeco.range(from, to));
|
| 550 |
+
else if (from >= range.to || to <= range.from)
|
| 551 |
+
deco.push(matchDeco.range(from, to));
|
| 552 |
+
if (deco.length > conf.maxMatches)
|
| 553 |
+
return index_js_.Decoration.none;
|
| 554 |
+
}
|
| 555 |
+
}
|
| 556 |
+
}
|
| 557 |
+
return index_js_.Decoration.set(deco);
|
| 558 |
+
}
|
| 559 |
+
}, {
|
| 560 |
+
decorations: v => v.decorations
|
| 561 |
+
});
|
| 562 |
+
const defaultTheme = /*@__PURE__*/index_js_.EditorView.baseTheme({
|
| 563 |
+
".cm-selectionMatch": { backgroundColor: "#99ff7780" },
|
| 564 |
+
".cm-searchMatch .cm-selectionMatch": { backgroundColor: "transparent" }
|
| 565 |
+
});
|
| 566 |
+
// Select the words around the cursors.
|
| 567 |
+
const selectWord = ({ state, dispatch }) => {
|
| 568 |
+
let { selection } = state;
|
| 569 |
+
let newSel = dist_index_js_.EditorSelection.create(selection.ranges.map(range => state.wordAt(range.head) || dist_index_js_.EditorSelection.cursor(range.head)), selection.mainIndex);
|
| 570 |
+
if (newSel.eq(selection))
|
| 571 |
+
return false;
|
| 572 |
+
dispatch(state.update({ selection: newSel }));
|
| 573 |
+
return true;
|
| 574 |
+
};
|
| 575 |
+
// Find next occurrence of query relative to last cursor. Wrap around
|
| 576 |
+
// the document if there are no more matches.
|
| 577 |
+
function findNextOccurrence(state, query) {
|
| 578 |
+
let { main, ranges } = state.selection;
|
| 579 |
+
let word = state.wordAt(main.head), fullWord = word && word.from == main.from && word.to == main.to;
|
| 580 |
+
for (let cycled = false, cursor = new SearchCursor(state.doc, query, ranges[ranges.length - 1].to);;) {
|
| 581 |
+
cursor.next();
|
| 582 |
+
if (cursor.done) {
|
| 583 |
+
if (cycled)
|
| 584 |
+
return null;
|
| 585 |
+
cursor = new SearchCursor(state.doc, query, 0, Math.max(0, ranges[ranges.length - 1].from - 1));
|
| 586 |
+
cycled = true;
|
| 587 |
+
}
|
| 588 |
+
else {
|
| 589 |
+
if (cycled && ranges.some(r => r.from == cursor.value.from))
|
| 590 |
+
continue;
|
| 591 |
+
if (fullWord) {
|
| 592 |
+
let word = state.wordAt(cursor.value.from);
|
| 593 |
+
if (!word || word.from != cursor.value.from || word.to != cursor.value.to)
|
| 594 |
+
continue;
|
| 595 |
+
}
|
| 596 |
+
return cursor.value;
|
| 597 |
+
}
|
| 598 |
+
}
|
| 599 |
+
}
|
| 600 |
+
/**
|
| 601 |
+
Select next occurrence of the current selection. Expand selection
|
| 602 |
+
to the surrounding word when the selection is empty.
|
| 603 |
+
*/
|
| 604 |
+
const selectNextOccurrence = ({ state, dispatch }) => {
|
| 605 |
+
let { ranges } = state.selection;
|
| 606 |
+
if (ranges.some(sel => sel.from === sel.to))
|
| 607 |
+
return selectWord({ state, dispatch });
|
| 608 |
+
let searchedText = state.sliceDoc(ranges[0].from, ranges[0].to);
|
| 609 |
+
if (state.selection.ranges.some(r => state.sliceDoc(r.from, r.to) != searchedText))
|
| 610 |
+
return false;
|
| 611 |
+
let range = findNextOccurrence(state, searchedText);
|
| 612 |
+
if (!range)
|
| 613 |
+
return false;
|
| 614 |
+
dispatch(state.update({
|
| 615 |
+
selection: state.selection.addRange(dist_index_js_.EditorSelection.range(range.from, range.to), false),
|
| 616 |
+
effects: index_js_.EditorView.scrollIntoView(range.to)
|
| 617 |
+
}));
|
| 618 |
+
return true;
|
| 619 |
+
};
|
| 620 |
+
|
| 621 |
+
const searchConfigFacet = /*@__PURE__*/dist_index_js_.Facet.define({
|
| 622 |
+
combine(configs) {
|
| 623 |
+
return (0,dist_index_js_.combineConfig)(configs, {
|
| 624 |
+
top: false,
|
| 625 |
+
caseSensitive: false,
|
| 626 |
+
literal: false,
|
| 627 |
+
regexp: false,
|
| 628 |
+
wholeWord: false,
|
| 629 |
+
createPanel: view => new SearchPanel(view),
|
| 630 |
+
scrollToMatch: range => index_js_.EditorView.scrollIntoView(range)
|
| 631 |
+
});
|
| 632 |
+
}
|
| 633 |
+
});
|
| 634 |
+
/**
|
| 635 |
+
Add search state to the editor configuration, and optionally
|
| 636 |
+
configure the search extension.
|
| 637 |
+
([`openSearchPanel`](https://codemirror.net/6/docs/ref/#search.openSearchPanel) will automatically
|
| 638 |
+
enable this if it isn't already on).
|
| 639 |
+
*/
|
| 640 |
+
function search(config) {
|
| 641 |
+
return config ? [searchConfigFacet.of(config), searchExtensions] : searchExtensions;
|
| 642 |
+
}
|
| 643 |
+
/**
|
| 644 |
+
A search query. Part of the editor's search state.
|
| 645 |
+
*/
|
| 646 |
+
class SearchQuery {
|
| 647 |
+
/**
|
| 648 |
+
Create a query object.
|
| 649 |
+
*/
|
| 650 |
+
constructor(config) {
|
| 651 |
+
this.search = config.search;
|
| 652 |
+
this.caseSensitive = !!config.caseSensitive;
|
| 653 |
+
this.literal = !!config.literal;
|
| 654 |
+
this.regexp = !!config.regexp;
|
| 655 |
+
this.replace = config.replace || "";
|
| 656 |
+
this.valid = !!this.search && (!this.regexp || validRegExp(this.search));
|
| 657 |
+
this.unquoted = this.unquote(this.search);
|
| 658 |
+
this.wholeWord = !!config.wholeWord;
|
| 659 |
+
}
|
| 660 |
+
/**
|
| 661 |
+
@internal
|
| 662 |
+
*/
|
| 663 |
+
unquote(text) {
|
| 664 |
+
return this.literal ? text :
|
| 665 |
+
text.replace(/\\([nrt\\])/g, (_, ch) => ch == "n" ? "\n" : ch == "r" ? "\r" : ch == "t" ? "\t" : "\\");
|
| 666 |
+
}
|
| 667 |
+
/**
|
| 668 |
+
Compare this query to another query.
|
| 669 |
+
*/
|
| 670 |
+
eq(other) {
|
| 671 |
+
return this.search == other.search && this.replace == other.replace &&
|
| 672 |
+
this.caseSensitive == other.caseSensitive && this.regexp == other.regexp &&
|
| 673 |
+
this.wholeWord == other.wholeWord;
|
| 674 |
+
}
|
| 675 |
+
/**
|
| 676 |
+
@internal
|
| 677 |
+
*/
|
| 678 |
+
create() {
|
| 679 |
+
return this.regexp ? new RegExpQuery(this) : new StringQuery(this);
|
| 680 |
+
}
|
| 681 |
+
/**
|
| 682 |
+
Get a search cursor for this query, searching through the given
|
| 683 |
+
range in the given state.
|
| 684 |
+
*/
|
| 685 |
+
getCursor(state, from = 0, to) {
|
| 686 |
+
let st = state.doc ? state : dist_index_js_.EditorState.create({ doc: state });
|
| 687 |
+
if (to == null)
|
| 688 |
+
to = st.doc.length;
|
| 689 |
+
return this.regexp ? regexpCursor(this, st, from, to) : stringCursor(this, st, from, to);
|
| 690 |
+
}
|
| 691 |
+
}
|
| 692 |
+
class QueryType {
|
| 693 |
+
constructor(spec) {
|
| 694 |
+
this.spec = spec;
|
| 695 |
+
}
|
| 696 |
+
}
|
| 697 |
+
function stringCursor(spec, state, from, to) {
|
| 698 |
+
return new SearchCursor(state.doc, spec.unquoted, from, to, spec.caseSensitive ? undefined : x => x.toLowerCase(), spec.wholeWord ? stringWordTest(state.doc, state.charCategorizer(state.selection.main.head)) : undefined);
|
| 699 |
+
}
|
| 700 |
+
function stringWordTest(doc, categorizer) {
|
| 701 |
+
return (from, to, buf, bufPos) => {
|
| 702 |
+
if (bufPos > from || bufPos + buf.length < to) {
|
| 703 |
+
bufPos = Math.max(0, from - 2);
|
| 704 |
+
buf = doc.sliceString(bufPos, Math.min(doc.length, to + 2));
|
| 705 |
+
}
|
| 706 |
+
return (categorizer(charBefore(buf, from - bufPos)) != dist_index_js_.CharCategory.Word ||
|
| 707 |
+
categorizer(charAfter(buf, from - bufPos)) != dist_index_js_.CharCategory.Word) &&
|
| 708 |
+
(categorizer(charAfter(buf, to - bufPos)) != dist_index_js_.CharCategory.Word ||
|
| 709 |
+
categorizer(charBefore(buf, to - bufPos)) != dist_index_js_.CharCategory.Word);
|
| 710 |
+
};
|
| 711 |
+
}
|
| 712 |
+
class StringQuery extends QueryType {
|
| 713 |
+
constructor(spec) {
|
| 714 |
+
super(spec);
|
| 715 |
+
}
|
| 716 |
+
nextMatch(state, curFrom, curTo) {
|
| 717 |
+
let cursor = stringCursor(this.spec, state, curTo, state.doc.length).nextOverlapping();
|
| 718 |
+
if (cursor.done)
|
| 719 |
+
cursor = stringCursor(this.spec, state, 0, curFrom).nextOverlapping();
|
| 720 |
+
return cursor.done ? null : cursor.value;
|
| 721 |
+
}
|
| 722 |
+
// Searching in reverse is, rather than implementing an inverted search
|
| 723 |
+
// cursor, done by scanning chunk after chunk forward.
|
| 724 |
+
prevMatchInRange(state, from, to) {
|
| 725 |
+
for (let pos = to;;) {
|
| 726 |
+
let start = Math.max(from, pos - 10000 /* FindPrev.ChunkSize */ - this.spec.unquoted.length);
|
| 727 |
+
let cursor = stringCursor(this.spec, state, start, pos), range = null;
|
| 728 |
+
while (!cursor.nextOverlapping().done)
|
| 729 |
+
range = cursor.value;
|
| 730 |
+
if (range)
|
| 731 |
+
return range;
|
| 732 |
+
if (start == from)
|
| 733 |
+
return null;
|
| 734 |
+
pos -= 10000 /* FindPrev.ChunkSize */;
|
| 735 |
+
}
|
| 736 |
+
}
|
| 737 |
+
prevMatch(state, curFrom, curTo) {
|
| 738 |
+
return this.prevMatchInRange(state, 0, curFrom) ||
|
| 739 |
+
this.prevMatchInRange(state, curTo, state.doc.length);
|
| 740 |
+
}
|
| 741 |
+
getReplacement(_result) { return this.spec.unquote(this.spec.replace); }
|
| 742 |
+
matchAll(state, limit) {
|
| 743 |
+
let cursor = stringCursor(this.spec, state, 0, state.doc.length), ranges = [];
|
| 744 |
+
while (!cursor.next().done) {
|
| 745 |
+
if (ranges.length >= limit)
|
| 746 |
+
return null;
|
| 747 |
+
ranges.push(cursor.value);
|
| 748 |
+
}
|
| 749 |
+
return ranges;
|
| 750 |
+
}
|
| 751 |
+
highlight(state, from, to, add) {
|
| 752 |
+
let cursor = stringCursor(this.spec, state, Math.max(0, from - this.spec.unquoted.length), Math.min(to + this.spec.unquoted.length, state.doc.length));
|
| 753 |
+
while (!cursor.next().done)
|
| 754 |
+
add(cursor.value.from, cursor.value.to);
|
| 755 |
+
}
|
| 756 |
+
}
|
| 757 |
+
function regexpCursor(spec, state, from, to) {
|
| 758 |
+
return new RegExpCursor(state.doc, spec.search, {
|
| 759 |
+
ignoreCase: !spec.caseSensitive,
|
| 760 |
+
test: spec.wholeWord ? regexpWordTest(state.charCategorizer(state.selection.main.head)) : undefined
|
| 761 |
+
}, from, to);
|
| 762 |
+
}
|
| 763 |
+
function charBefore(str, index) {
|
| 764 |
+
return str.slice((0,dist_index_js_.findClusterBreak)(str, index, false), index);
|
| 765 |
+
}
|
| 766 |
+
function charAfter(str, index) {
|
| 767 |
+
return str.slice(index, (0,dist_index_js_.findClusterBreak)(str, index));
|
| 768 |
+
}
|
| 769 |
+
function regexpWordTest(categorizer) {
|
| 770 |
+
return (_from, _to, match) => !match[0].length ||
|
| 771 |
+
(categorizer(charBefore(match.input, match.index)) != dist_index_js_.CharCategory.Word ||
|
| 772 |
+
categorizer(charAfter(match.input, match.index)) != dist_index_js_.CharCategory.Word) &&
|
| 773 |
+
(categorizer(charAfter(match.input, match.index + match[0].length)) != dist_index_js_.CharCategory.Word ||
|
| 774 |
+
categorizer(charBefore(match.input, match.index + match[0].length)) != dist_index_js_.CharCategory.Word);
|
| 775 |
+
}
|
| 776 |
+
class RegExpQuery extends QueryType {
|
| 777 |
+
nextMatch(state, curFrom, curTo) {
|
| 778 |
+
let cursor = regexpCursor(this.spec, state, curTo, state.doc.length).next();
|
| 779 |
+
if (cursor.done)
|
| 780 |
+
cursor = regexpCursor(this.spec, state, 0, curFrom).next();
|
| 781 |
+
return cursor.done ? null : cursor.value;
|
| 782 |
+
}
|
| 783 |
+
prevMatchInRange(state, from, to) {
|
| 784 |
+
for (let size = 1;; size++) {
|
| 785 |
+
let start = Math.max(from, to - size * 10000 /* FindPrev.ChunkSize */);
|
| 786 |
+
let cursor = regexpCursor(this.spec, state, start, to), range = null;
|
| 787 |
+
while (!cursor.next().done)
|
| 788 |
+
range = cursor.value;
|
| 789 |
+
if (range && (start == from || range.from > start + 10))
|
| 790 |
+
return range;
|
| 791 |
+
if (start == from)
|
| 792 |
+
return null;
|
| 793 |
+
}
|
| 794 |
+
}
|
| 795 |
+
prevMatch(state, curFrom, curTo) {
|
| 796 |
+
return this.prevMatchInRange(state, 0, curFrom) ||
|
| 797 |
+
this.prevMatchInRange(state, curTo, state.doc.length);
|
| 798 |
+
}
|
| 799 |
+
getReplacement(result) {
|
| 800 |
+
return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g, (m, i) => i == "$" ? "$"
|
| 801 |
+
: i == "&" ? result.match[0]
|
| 802 |
+
: i != "0" && +i < result.match.length ? result.match[i]
|
| 803 |
+
: m);
|
| 804 |
+
}
|
| 805 |
+
matchAll(state, limit) {
|
| 806 |
+
let cursor = regexpCursor(this.spec, state, 0, state.doc.length), ranges = [];
|
| 807 |
+
while (!cursor.next().done) {
|
| 808 |
+
if (ranges.length >= limit)
|
| 809 |
+
return null;
|
| 810 |
+
ranges.push(cursor.value);
|
| 811 |
+
}
|
| 812 |
+
return ranges;
|
| 813 |
+
}
|
| 814 |
+
highlight(state, from, to, add) {
|
| 815 |
+
let cursor = regexpCursor(this.spec, state, Math.max(0, from - 250 /* RegExp.HighlightMargin */), Math.min(to + 250 /* RegExp.HighlightMargin */, state.doc.length));
|
| 816 |
+
while (!cursor.next().done)
|
| 817 |
+
add(cursor.value.from, cursor.value.to);
|
| 818 |
+
}
|
| 819 |
+
}
|
| 820 |
+
/**
|
| 821 |
+
A state effect that updates the current search query. Note that
|
| 822 |
+
this only has an effect if the search state has been initialized
|
| 823 |
+
(by including [`search`](https://codemirror.net/6/docs/ref/#search.search) in your configuration or
|
| 824 |
+
by running [`openSearchPanel`](https://codemirror.net/6/docs/ref/#search.openSearchPanel) at least
|
| 825 |
+
once).
|
| 826 |
+
*/
|
| 827 |
+
const setSearchQuery = /*@__PURE__*/dist_index_js_.StateEffect.define();
|
| 828 |
+
const togglePanel = /*@__PURE__*/dist_index_js_.StateEffect.define();
|
| 829 |
+
const searchState = /*@__PURE__*/dist_index_js_.StateField.define({
|
| 830 |
+
create(state) {
|
| 831 |
+
return new SearchState(defaultQuery(state).create(), null);
|
| 832 |
+
},
|
| 833 |
+
update(value, tr) {
|
| 834 |
+
for (let effect of tr.effects) {
|
| 835 |
+
if (effect.is(setSearchQuery))
|
| 836 |
+
value = new SearchState(effect.value.create(), value.panel);
|
| 837 |
+
else if (effect.is(togglePanel))
|
| 838 |
+
value = new SearchState(value.query, effect.value ? createSearchPanel : null);
|
| 839 |
+
}
|
| 840 |
+
return value;
|
| 841 |
+
},
|
| 842 |
+
provide: f => index_js_.showPanel.from(f, val => val.panel)
|
| 843 |
+
});
|
| 844 |
+
/**
|
| 845 |
+
Get the current search query from an editor state.
|
| 846 |
+
*/
|
| 847 |
+
function getSearchQuery(state) {
|
| 848 |
+
let curState = state.field(searchState, false);
|
| 849 |
+
return curState ? curState.query.spec : defaultQuery(state);
|
| 850 |
+
}
|
| 851 |
+
/**
|
| 852 |
+
Query whether the search panel is open in the given editor state.
|
| 853 |
+
*/
|
| 854 |
+
function searchPanelOpen(state) {
|
| 855 |
+
var _a;
|
| 856 |
+
return ((_a = state.field(searchState, false)) === null || _a === void 0 ? void 0 : _a.panel) != null;
|
| 857 |
+
}
|
| 858 |
+
class SearchState {
|
| 859 |
+
constructor(query, panel) {
|
| 860 |
+
this.query = query;
|
| 861 |
+
this.panel = panel;
|
| 862 |
+
}
|
| 863 |
+
}
|
| 864 |
+
const matchMark = /*@__PURE__*/index_js_.Decoration.mark({ class: "cm-searchMatch" }), selectedMatchMark = /*@__PURE__*/index_js_.Decoration.mark({ class: "cm-searchMatch cm-searchMatch-selected" });
|
| 865 |
+
const searchHighlighter = /*@__PURE__*/index_js_.ViewPlugin.fromClass(class {
|
| 866 |
+
constructor(view) {
|
| 867 |
+
this.view = view;
|
| 868 |
+
this.decorations = this.highlight(view.state.field(searchState));
|
| 869 |
+
}
|
| 870 |
+
update(update) {
|
| 871 |
+
let state = update.state.field(searchState);
|
| 872 |
+
if (state != update.startState.field(searchState) || update.docChanged || update.selectionSet || update.viewportChanged)
|
| 873 |
+
this.decorations = this.highlight(state);
|
| 874 |
+
}
|
| 875 |
+
highlight({ query, panel }) {
|
| 876 |
+
if (!panel || !query.spec.valid)
|
| 877 |
+
return index_js_.Decoration.none;
|
| 878 |
+
let { view } = this;
|
| 879 |
+
let builder = new dist_index_js_.RangeSetBuilder();
|
| 880 |
+
for (let i = 0, ranges = view.visibleRanges, l = ranges.length; i < l; i++) {
|
| 881 |
+
let { from, to } = ranges[i];
|
| 882 |
+
while (i < l - 1 && to > ranges[i + 1].from - 2 * 250 /* RegExp.HighlightMargin */)
|
| 883 |
+
to = ranges[++i].to;
|
| 884 |
+
query.highlight(view.state, from, to, (from, to) => {
|
| 885 |
+
let selected = view.state.selection.ranges.some(r => r.from == from && r.to == to);
|
| 886 |
+
builder.add(from, to, selected ? selectedMatchMark : matchMark);
|
| 887 |
+
});
|
| 888 |
+
}
|
| 889 |
+
return builder.finish();
|
| 890 |
+
}
|
| 891 |
+
}, {
|
| 892 |
+
decorations: v => v.decorations
|
| 893 |
+
});
|
| 894 |
+
function searchCommand(f) {
|
| 895 |
+
return view => {
|
| 896 |
+
let state = view.state.field(searchState, false);
|
| 897 |
+
return state && state.query.spec.valid ? f(view, state) : openSearchPanel(view);
|
| 898 |
+
};
|
| 899 |
+
}
|
| 900 |
+
/**
|
| 901 |
+
Open the search panel if it isn't already open, and move the
|
| 902 |
+
selection to the first match after the current main selection.
|
| 903 |
+
Will wrap around to the start of the document when it reaches the
|
| 904 |
+
end.
|
| 905 |
+
*/
|
| 906 |
+
const findNext = /*@__PURE__*/searchCommand((view, { query }) => {
|
| 907 |
+
let { to } = view.state.selection.main;
|
| 908 |
+
let next = query.nextMatch(view.state, to, to);
|
| 909 |
+
if (!next)
|
| 910 |
+
return false;
|
| 911 |
+
let selection = dist_index_js_.EditorSelection.single(next.from, next.to);
|
| 912 |
+
let config = view.state.facet(searchConfigFacet);
|
| 913 |
+
view.dispatch({
|
| 914 |
+
selection,
|
| 915 |
+
effects: [announceMatch(view, next), config.scrollToMatch(selection.main, view)],
|
| 916 |
+
userEvent: "select.search"
|
| 917 |
+
});
|
| 918 |
+
selectSearchInput(view);
|
| 919 |
+
return true;
|
| 920 |
+
});
|
| 921 |
+
/**
|
| 922 |
+
Move the selection to the previous instance of the search query,
|
| 923 |
+
before the current main selection. Will wrap past the start
|
| 924 |
+
of the document to start searching at the end again.
|
| 925 |
+
*/
|
| 926 |
+
const findPrevious = /*@__PURE__*/searchCommand((view, { query }) => {
|
| 927 |
+
let { state } = view, { from } = state.selection.main;
|
| 928 |
+
let prev = query.prevMatch(state, from, from);
|
| 929 |
+
if (!prev)
|
| 930 |
+
return false;
|
| 931 |
+
let selection = dist_index_js_.EditorSelection.single(prev.from, prev.to);
|
| 932 |
+
let config = view.state.facet(searchConfigFacet);
|
| 933 |
+
view.dispatch({
|
| 934 |
+
selection,
|
| 935 |
+
effects: [announceMatch(view, prev), config.scrollToMatch(selection.main, view)],
|
| 936 |
+
userEvent: "select.search"
|
| 937 |
+
});
|
| 938 |
+
selectSearchInput(view);
|
| 939 |
+
return true;
|
| 940 |
+
});
|
| 941 |
+
/**
|
| 942 |
+
Select all instances of the search query.
|
| 943 |
+
*/
|
| 944 |
+
const selectMatches = /*@__PURE__*/searchCommand((view, { query }) => {
|
| 945 |
+
let ranges = query.matchAll(view.state, 1000);
|
| 946 |
+
if (!ranges || !ranges.length)
|
| 947 |
+
return false;
|
| 948 |
+
view.dispatch({
|
| 949 |
+
selection: dist_index_js_.EditorSelection.create(ranges.map(r => dist_index_js_.EditorSelection.range(r.from, r.to))),
|
| 950 |
+
userEvent: "select.search.matches"
|
| 951 |
+
});
|
| 952 |
+
return true;
|
| 953 |
+
});
|
| 954 |
+
/**
|
| 955 |
+
Select all instances of the currently selected text.
|
| 956 |
+
*/
|
| 957 |
+
const selectSelectionMatches = ({ state, dispatch }) => {
|
| 958 |
+
let sel = state.selection;
|
| 959 |
+
if (sel.ranges.length > 1 || sel.main.empty)
|
| 960 |
+
return false;
|
| 961 |
+
let { from, to } = sel.main;
|
| 962 |
+
let ranges = [], main = 0;
|
| 963 |
+
for (let cur = new SearchCursor(state.doc, state.sliceDoc(from, to)); !cur.next().done;) {
|
| 964 |
+
if (ranges.length > 1000)
|
| 965 |
+
return false;
|
| 966 |
+
if (cur.value.from == from)
|
| 967 |
+
main = ranges.length;
|
| 968 |
+
ranges.push(dist_index_js_.EditorSelection.range(cur.value.from, cur.value.to));
|
| 969 |
+
}
|
| 970 |
+
dispatch(state.update({
|
| 971 |
+
selection: dist_index_js_.EditorSelection.create(ranges, main),
|
| 972 |
+
userEvent: "select.search.matches"
|
| 973 |
+
}));
|
| 974 |
+
return true;
|
| 975 |
+
};
|
| 976 |
+
/**
|
| 977 |
+
Replace the current match of the search query.
|
| 978 |
+
*/
|
| 979 |
+
const replaceNext = /*@__PURE__*/searchCommand((view, { query }) => {
|
| 980 |
+
let { state } = view, { from, to } = state.selection.main;
|
| 981 |
+
if (state.readOnly)
|
| 982 |
+
return false;
|
| 983 |
+
let next = query.nextMatch(state, from, from);
|
| 984 |
+
if (!next)
|
| 985 |
+
return false;
|
| 986 |
+
let changes = [], selection, replacement;
|
| 987 |
+
let effects = [];
|
| 988 |
+
if (next.from == from && next.to == to) {
|
| 989 |
+
replacement = state.toText(query.getReplacement(next));
|
| 990 |
+
changes.push({ from: next.from, to: next.to, insert: replacement });
|
| 991 |
+
next = query.nextMatch(state, next.from, next.to);
|
| 992 |
+
effects.push(index_js_.EditorView.announce.of(state.phrase("replaced match on line $", state.doc.lineAt(from).number) + "."));
|
| 993 |
+
}
|
| 994 |
+
if (next) {
|
| 995 |
+
let off = changes.length == 0 || changes[0].from >= next.to ? 0 : next.to - next.from - replacement.length;
|
| 996 |
+
selection = dist_index_js_.EditorSelection.single(next.from - off, next.to - off);
|
| 997 |
+
effects.push(announceMatch(view, next));
|
| 998 |
+
effects.push(state.facet(searchConfigFacet).scrollToMatch(selection.main, view));
|
| 999 |
+
}
|
| 1000 |
+
view.dispatch({
|
| 1001 |
+
changes, selection, effects,
|
| 1002 |
+
userEvent: "input.replace"
|
| 1003 |
+
});
|
| 1004 |
+
return true;
|
| 1005 |
+
});
|
| 1006 |
+
/**
|
| 1007 |
+
Replace all instances of the search query with the given
|
| 1008 |
+
replacement.
|
| 1009 |
+
*/
|
| 1010 |
+
const replaceAll = /*@__PURE__*/searchCommand((view, { query }) => {
|
| 1011 |
+
if (view.state.readOnly)
|
| 1012 |
+
return false;
|
| 1013 |
+
let changes = query.matchAll(view.state, 1e9).map(match => {
|
| 1014 |
+
let { from, to } = match;
|
| 1015 |
+
return { from, to, insert: query.getReplacement(match) };
|
| 1016 |
+
});
|
| 1017 |
+
if (!changes.length)
|
| 1018 |
+
return false;
|
| 1019 |
+
let announceText = view.state.phrase("replaced $ matches", changes.length) + ".";
|
| 1020 |
+
view.dispatch({
|
| 1021 |
+
changes,
|
| 1022 |
+
effects: index_js_.EditorView.announce.of(announceText),
|
| 1023 |
+
userEvent: "input.replace.all"
|
| 1024 |
+
});
|
| 1025 |
+
return true;
|
| 1026 |
+
});
|
| 1027 |
+
function createSearchPanel(view) {
|
| 1028 |
+
return view.state.facet(searchConfigFacet).createPanel(view);
|
| 1029 |
+
}
|
| 1030 |
+
function defaultQuery(state, fallback) {
|
| 1031 |
+
var _a, _b, _c, _d, _e;
|
| 1032 |
+
let sel = state.selection.main;
|
| 1033 |
+
let selText = sel.empty || sel.to > sel.from + 100 ? "" : state.sliceDoc(sel.from, sel.to);
|
| 1034 |
+
if (fallback && !selText)
|
| 1035 |
+
return fallback;
|
| 1036 |
+
let config = state.facet(searchConfigFacet);
|
| 1037 |
+
return new SearchQuery({
|
| 1038 |
+
search: ((_a = fallback === null || fallback === void 0 ? void 0 : fallback.literal) !== null && _a !== void 0 ? _a : config.literal) ? selText : selText.replace(/\n/g, "\\n"),
|
| 1039 |
+
caseSensitive: (_b = fallback === null || fallback === void 0 ? void 0 : fallback.caseSensitive) !== null && _b !== void 0 ? _b : config.caseSensitive,
|
| 1040 |
+
literal: (_c = fallback === null || fallback === void 0 ? void 0 : fallback.literal) !== null && _c !== void 0 ? _c : config.literal,
|
| 1041 |
+
regexp: (_d = fallback === null || fallback === void 0 ? void 0 : fallback.regexp) !== null && _d !== void 0 ? _d : config.regexp,
|
| 1042 |
+
wholeWord: (_e = fallback === null || fallback === void 0 ? void 0 : fallback.wholeWord) !== null && _e !== void 0 ? _e : config.wholeWord
|
| 1043 |
+
});
|
| 1044 |
+
}
|
| 1045 |
+
function getSearchInput(view) {
|
| 1046 |
+
let panel = (0,index_js_.getPanel)(view, createSearchPanel);
|
| 1047 |
+
return panel && panel.dom.querySelector("[main-field]");
|
| 1048 |
+
}
|
| 1049 |
+
function selectSearchInput(view) {
|
| 1050 |
+
let input = getSearchInput(view);
|
| 1051 |
+
if (input && input == view.root.activeElement)
|
| 1052 |
+
input.select();
|
| 1053 |
+
}
|
| 1054 |
+
/**
|
| 1055 |
+
Make sure the search panel is open and focused.
|
| 1056 |
+
*/
|
| 1057 |
+
const openSearchPanel = view => {
|
| 1058 |
+
let state = view.state.field(searchState, false);
|
| 1059 |
+
if (state && state.panel) {
|
| 1060 |
+
let searchInput = getSearchInput(view);
|
| 1061 |
+
if (searchInput && searchInput != view.root.activeElement) {
|
| 1062 |
+
let query = defaultQuery(view.state, state.query.spec);
|
| 1063 |
+
if (query.valid)
|
| 1064 |
+
view.dispatch({ effects: setSearchQuery.of(query) });
|
| 1065 |
+
searchInput.focus();
|
| 1066 |
+
searchInput.select();
|
| 1067 |
+
}
|
| 1068 |
+
}
|
| 1069 |
+
else {
|
| 1070 |
+
view.dispatch({ effects: [
|
| 1071 |
+
togglePanel.of(true),
|
| 1072 |
+
state ? setSearchQuery.of(defaultQuery(view.state, state.query.spec)) : dist_index_js_.StateEffect.appendConfig.of(searchExtensions)
|
| 1073 |
+
] });
|
| 1074 |
+
}
|
| 1075 |
+
return true;
|
| 1076 |
+
};
|
| 1077 |
+
/**
|
| 1078 |
+
Close the search panel.
|
| 1079 |
+
*/
|
| 1080 |
+
const closeSearchPanel = view => {
|
| 1081 |
+
let state = view.state.field(searchState, false);
|
| 1082 |
+
if (!state || !state.panel)
|
| 1083 |
+
return false;
|
| 1084 |
+
let panel = (0,index_js_.getPanel)(view, createSearchPanel);
|
| 1085 |
+
if (panel && panel.dom.contains(view.root.activeElement))
|
| 1086 |
+
view.focus();
|
| 1087 |
+
view.dispatch({ effects: togglePanel.of(false) });
|
| 1088 |
+
return true;
|
| 1089 |
+
};
|
| 1090 |
+
/**
|
| 1091 |
+
Default search-related key bindings.
|
| 1092 |
+
|
| 1093 |
+
- Mod-f: [`openSearchPanel`](https://codemirror.net/6/docs/ref/#search.openSearchPanel)
|
| 1094 |
+
- F3, Mod-g: [`findNext`](https://codemirror.net/6/docs/ref/#search.findNext)
|
| 1095 |
+
- Shift-F3, Shift-Mod-g: [`findPrevious`](https://codemirror.net/6/docs/ref/#search.findPrevious)
|
| 1096 |
+
- Mod-Alt-g: [`gotoLine`](https://codemirror.net/6/docs/ref/#search.gotoLine)
|
| 1097 |
+
- Mod-d: [`selectNextOccurrence`](https://codemirror.net/6/docs/ref/#search.selectNextOccurrence)
|
| 1098 |
+
*/
|
| 1099 |
+
const searchKeymap = [
|
| 1100 |
+
{ key: "Mod-f", run: openSearchPanel, scope: "editor search-panel" },
|
| 1101 |
+
{ key: "F3", run: findNext, shift: findPrevious, scope: "editor search-panel", preventDefault: true },
|
| 1102 |
+
{ key: "Mod-g", run: findNext, shift: findPrevious, scope: "editor search-panel", preventDefault: true },
|
| 1103 |
+
{ key: "Escape", run: closeSearchPanel, scope: "editor search-panel" },
|
| 1104 |
+
{ key: "Mod-Shift-l", run: selectSelectionMatches },
|
| 1105 |
+
{ key: "Mod-Alt-g", run: gotoLine },
|
| 1106 |
+
{ key: "Mod-d", run: selectNextOccurrence, preventDefault: true },
|
| 1107 |
+
];
|
| 1108 |
+
class SearchPanel {
|
| 1109 |
+
constructor(view) {
|
| 1110 |
+
this.view = view;
|
| 1111 |
+
let query = this.query = view.state.field(searchState).query.spec;
|
| 1112 |
+
this.commit = this.commit.bind(this);
|
| 1113 |
+
this.searchField = crelt("input", {
|
| 1114 |
+
value: query.search,
|
| 1115 |
+
placeholder: phrase(view, "Find"),
|
| 1116 |
+
"aria-label": phrase(view, "Find"),
|
| 1117 |
+
class: "cm-textfield",
|
| 1118 |
+
name: "search",
|
| 1119 |
+
form: "",
|
| 1120 |
+
"main-field": "true",
|
| 1121 |
+
onchange: this.commit,
|
| 1122 |
+
onkeyup: this.commit
|
| 1123 |
+
});
|
| 1124 |
+
this.replaceField = crelt("input", {
|
| 1125 |
+
value: query.replace,
|
| 1126 |
+
placeholder: phrase(view, "Replace"),
|
| 1127 |
+
"aria-label": phrase(view, "Replace"),
|
| 1128 |
+
class: "cm-textfield",
|
| 1129 |
+
name: "replace",
|
| 1130 |
+
form: "",
|
| 1131 |
+
onchange: this.commit,
|
| 1132 |
+
onkeyup: this.commit
|
| 1133 |
+
});
|
| 1134 |
+
this.caseField = crelt("input", {
|
| 1135 |
+
type: "checkbox",
|
| 1136 |
+
name: "case",
|
| 1137 |
+
form: "",
|
| 1138 |
+
checked: query.caseSensitive,
|
| 1139 |
+
onchange: this.commit
|
| 1140 |
+
});
|
| 1141 |
+
this.reField = crelt("input", {
|
| 1142 |
+
type: "checkbox",
|
| 1143 |
+
name: "re",
|
| 1144 |
+
form: "",
|
| 1145 |
+
checked: query.regexp,
|
| 1146 |
+
onchange: this.commit
|
| 1147 |
+
});
|
| 1148 |
+
this.wordField = crelt("input", {
|
| 1149 |
+
type: "checkbox",
|
| 1150 |
+
name: "word",
|
| 1151 |
+
form: "",
|
| 1152 |
+
checked: query.wholeWord,
|
| 1153 |
+
onchange: this.commit
|
| 1154 |
+
});
|
| 1155 |
+
function button(name, onclick, content) {
|
| 1156 |
+
return crelt("button", { class: "cm-button", name, onclick, type: "button" }, content);
|
| 1157 |
+
}
|
| 1158 |
+
this.dom = crelt("div", { onkeydown: (e) => this.keydown(e), class: "cm-search" }, [
|
| 1159 |
+
this.searchField,
|
| 1160 |
+
button("next", () => findNext(view), [phrase(view, "next")]),
|
| 1161 |
+
button("prev", () => findPrevious(view), [phrase(view, "previous")]),
|
| 1162 |
+
button("select", () => selectMatches(view), [phrase(view, "all")]),
|
| 1163 |
+
crelt("label", null, [this.caseField, phrase(view, "match case")]),
|
| 1164 |
+
crelt("label", null, [this.reField, phrase(view, "regexp")]),
|
| 1165 |
+
crelt("label", null, [this.wordField, phrase(view, "by word")]),
|
| 1166 |
+
...view.state.readOnly ? [] : [
|
| 1167 |
+
crelt("br"),
|
| 1168 |
+
this.replaceField,
|
| 1169 |
+
button("replace", () => replaceNext(view), [phrase(view, "replace")]),
|
| 1170 |
+
button("replaceAll", () => replaceAll(view), [phrase(view, "replace all")])
|
| 1171 |
+
],
|
| 1172 |
+
crelt("button", {
|
| 1173 |
+
name: "close",
|
| 1174 |
+
onclick: () => closeSearchPanel(view),
|
| 1175 |
+
"aria-label": phrase(view, "close"),
|
| 1176 |
+
type: "button"
|
| 1177 |
+
}, ["×"])
|
| 1178 |
+
]);
|
| 1179 |
+
}
|
| 1180 |
+
commit() {
|
| 1181 |
+
let query = new SearchQuery({
|
| 1182 |
+
search: this.searchField.value,
|
| 1183 |
+
caseSensitive: this.caseField.checked,
|
| 1184 |
+
regexp: this.reField.checked,
|
| 1185 |
+
wholeWord: this.wordField.checked,
|
| 1186 |
+
replace: this.replaceField.value,
|
| 1187 |
+
});
|
| 1188 |
+
if (!query.eq(this.query)) {
|
| 1189 |
+
this.query = query;
|
| 1190 |
+
this.view.dispatch({ effects: setSearchQuery.of(query) });
|
| 1191 |
+
}
|
| 1192 |
+
}
|
| 1193 |
+
keydown(e) {
|
| 1194 |
+
if ((0,index_js_.runScopeHandlers)(this.view, e, "search-panel")) {
|
| 1195 |
+
e.preventDefault();
|
| 1196 |
+
}
|
| 1197 |
+
else if (e.keyCode == 13 && e.target == this.searchField) {
|
| 1198 |
+
e.preventDefault();
|
| 1199 |
+
(e.shiftKey ? findPrevious : findNext)(this.view);
|
| 1200 |
+
}
|
| 1201 |
+
else if (e.keyCode == 13 && e.target == this.replaceField) {
|
| 1202 |
+
e.preventDefault();
|
| 1203 |
+
replaceNext(this.view);
|
| 1204 |
+
}
|
| 1205 |
+
}
|
| 1206 |
+
update(update) {
|
| 1207 |
+
for (let tr of update.transactions)
|
| 1208 |
+
for (let effect of tr.effects) {
|
| 1209 |
+
if (effect.is(setSearchQuery) && !effect.value.eq(this.query))
|
| 1210 |
+
this.setQuery(effect.value);
|
| 1211 |
+
}
|
| 1212 |
+
}
|
| 1213 |
+
setQuery(query) {
|
| 1214 |
+
this.query = query;
|
| 1215 |
+
this.searchField.value = query.search;
|
| 1216 |
+
this.replaceField.value = query.replace;
|
| 1217 |
+
this.caseField.checked = query.caseSensitive;
|
| 1218 |
+
this.reField.checked = query.regexp;
|
| 1219 |
+
this.wordField.checked = query.wholeWord;
|
| 1220 |
+
}
|
| 1221 |
+
mount() {
|
| 1222 |
+
this.searchField.select();
|
| 1223 |
+
}
|
| 1224 |
+
get pos() { return 80; }
|
| 1225 |
+
get top() { return this.view.state.facet(searchConfigFacet).top; }
|
| 1226 |
+
}
|
| 1227 |
+
function phrase(view, phrase) { return view.state.phrase(phrase); }
|
| 1228 |
+
const AnnounceMargin = 30;
|
| 1229 |
+
const Break = /[\s\.,:;?!]/;
|
| 1230 |
+
function announceMatch(view, { from, to }) {
|
| 1231 |
+
let line = view.state.doc.lineAt(from), lineEnd = view.state.doc.lineAt(to).to;
|
| 1232 |
+
let start = Math.max(line.from, from - AnnounceMargin), end = Math.min(lineEnd, to + AnnounceMargin);
|
| 1233 |
+
let text = view.state.sliceDoc(start, end);
|
| 1234 |
+
if (start != line.from) {
|
| 1235 |
+
for (let i = 0; i < AnnounceMargin; i++)
|
| 1236 |
+
if (!Break.test(text[i + 1]) && Break.test(text[i])) {
|
| 1237 |
+
text = text.slice(i);
|
| 1238 |
+
break;
|
| 1239 |
+
}
|
| 1240 |
+
}
|
| 1241 |
+
if (end != lineEnd) {
|
| 1242 |
+
for (let i = text.length - 1; i > text.length - AnnounceMargin; i--)
|
| 1243 |
+
if (!Break.test(text[i - 1]) && Break.test(text[i])) {
|
| 1244 |
+
text = text.slice(0, i);
|
| 1245 |
+
break;
|
| 1246 |
+
}
|
| 1247 |
+
}
|
| 1248 |
+
return index_js_.EditorView.announce.of(`${view.state.phrase("current match")}. ${text} ${view.state.phrase("on line")} ${line.number}.`);
|
| 1249 |
+
}
|
| 1250 |
+
const baseTheme = /*@__PURE__*/index_js_.EditorView.baseTheme({
|
| 1251 |
+
".cm-panel.cm-search": {
|
| 1252 |
+
padding: "2px 6px 4px",
|
| 1253 |
+
position: "relative",
|
| 1254 |
+
"& [name=close]": {
|
| 1255 |
+
position: "absolute",
|
| 1256 |
+
top: "0",
|
| 1257 |
+
right: "4px",
|
| 1258 |
+
backgroundColor: "inherit",
|
| 1259 |
+
border: "none",
|
| 1260 |
+
font: "inherit",
|
| 1261 |
+
padding: 0,
|
| 1262 |
+
margin: 0
|
| 1263 |
+
},
|
| 1264 |
+
"& input, & button, & label": {
|
| 1265 |
+
margin: ".2em .6em .2em 0"
|
| 1266 |
+
},
|
| 1267 |
+
"& input[type=checkbox]": {
|
| 1268 |
+
marginRight: ".2em"
|
| 1269 |
+
},
|
| 1270 |
+
"& label": {
|
| 1271 |
+
fontSize: "80%",
|
| 1272 |
+
whiteSpace: "pre"
|
| 1273 |
+
}
|
| 1274 |
+
},
|
| 1275 |
+
"&light .cm-searchMatch": { backgroundColor: "#ffff0054" },
|
| 1276 |
+
"&dark .cm-searchMatch": { backgroundColor: "#00ffff8a" },
|
| 1277 |
+
"&light .cm-searchMatch-selected": { backgroundColor: "#ff6a0054" },
|
| 1278 |
+
"&dark .cm-searchMatch-selected": { backgroundColor: "#ff00ff8a" }
|
| 1279 |
+
});
|
| 1280 |
+
const searchExtensions = [
|
| 1281 |
+
searchState,
|
| 1282 |
+
/*@__PURE__*/dist_index_js_.Prec.low(searchHighlighter),
|
| 1283 |
+
baseTheme
|
| 1284 |
+
];
|
| 1285 |
+
|
| 1286 |
+
|
| 1287 |
+
|
| 1288 |
+
|
| 1289 |
+
/***/ })
|
| 1290 |
+
|
| 1291 |
+
}]);
|
| 1292 |
+
//# sourceMappingURL=5261.570ec78f80a112aa7d5d.js.map?v=570ec78f80a112aa7d5d
|
vlmpy310/lib/python3.10/site-packages/notebook/static/5573.fadd0e2001b2575ccb0f.js
ADDED
|
@@ -0,0 +1,665 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[5573],{
|
| 3 |
+
|
| 4 |
+
/***/ 5573:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
// ESM COMPAT FLAG
|
| 8 |
+
__webpack_require__.r(__webpack_exports__);
|
| 9 |
+
|
| 10 |
+
// EXPORTS
|
| 11 |
+
__webpack_require__.d(__webpack_exports__, {
|
| 12 |
+
"default": () => (/* binding */ lib)
|
| 13 |
+
});
|
| 14 |
+
|
| 15 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/apputils@~4.4.4 (singleton) (fallback: ../node_modules/@jupyterlab/apputils/lib/index.js)
|
| 16 |
+
var index_js_ = __webpack_require__(11363);
|
| 17 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/coreutils@~6.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/coreutils/lib/index.js)
|
| 18 |
+
var lib_index_js_ = __webpack_require__(76107);
|
| 19 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/docmanager@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/docmanager/lib/index.js)
|
| 20 |
+
var docmanager_lib_index_js_ = __webpack_require__(89598);
|
| 21 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/mainmenu@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/mainmenu/lib/index.js)
|
| 22 |
+
var mainmenu_lib_index_js_ = __webpack_require__(55985);
|
| 23 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/notebook@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/notebook/lib/index.js)
|
| 24 |
+
var notebook_lib_index_js_ = __webpack_require__(5981);
|
| 25 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/settingregistry@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/settingregistry/lib/index.js)
|
| 26 |
+
var settingregistry_lib_index_js_ = __webpack_require__(57534);
|
| 27 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/translation@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/translation/lib/index.js)
|
| 28 |
+
var translation_lib_index_js_ = __webpack_require__(7801);
|
| 29 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyter-notebook/application@~7.3.2 (strict) (fallback: ../packages/application/lib/index.js)
|
| 30 |
+
var application_lib_index_js_ = __webpack_require__(87362);
|
| 31 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/polling@^2.1.3 (strict) (fallback: ../node_modules/@lumino/polling/dist/index.es6.js)
|
| 32 |
+
var index_es6_js_ = __webpack_require__(32406);
|
| 33 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/widgets@~2.5.0 (singleton) (fallback: ../node_modules/@lumino/widgets/dist/index.es6.js)
|
| 34 |
+
var dist_index_es6_js_ = __webpack_require__(2260);
|
| 35 |
+
// EXTERNAL MODULE: consume shared module (default) react@~18.2.0 (singleton) (fallback: ../node_modules/react/index.js)
|
| 36 |
+
var react_index_js_ = __webpack_require__(78156);
|
| 37 |
+
var react_index_js_default = /*#__PURE__*/__webpack_require__.n(react_index_js_);
|
| 38 |
+
;// CONCATENATED MODULE: ../packages/notebook-extension/lib/trusted.js
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
/**
|
| 43 |
+
* Check if a notebook is trusted
|
| 44 |
+
* @param notebook The notebook to check
|
| 45 |
+
* @returns true if the notebook is trusted, false otherwise
|
| 46 |
+
*/
|
| 47 |
+
const isTrusted = (notebook) => {
|
| 48 |
+
const model = notebook.model;
|
| 49 |
+
if (!model) {
|
| 50 |
+
return false;
|
| 51 |
+
}
|
| 52 |
+
const cells = Array.from(model.cells);
|
| 53 |
+
let total = 0;
|
| 54 |
+
let trusted = 0;
|
| 55 |
+
for (const currentCell of cells) {
|
| 56 |
+
if (currentCell.type !== 'code') {
|
| 57 |
+
continue;
|
| 58 |
+
}
|
| 59 |
+
total++;
|
| 60 |
+
if (currentCell.trusted) {
|
| 61 |
+
trusted++;
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
return trusted === total;
|
| 65 |
+
};
|
| 66 |
+
/**
|
| 67 |
+
* A React component to display the Trusted badge in the menu bar.
|
| 68 |
+
* @param notebook The Notebook
|
| 69 |
+
* @param translator The Translation service
|
| 70 |
+
*/
|
| 71 |
+
const TrustedButton = ({ notebook, translator, }) => {
|
| 72 |
+
const trans = translator.load('notebook');
|
| 73 |
+
const [trusted, setTrusted] = (0,react_index_js_.useState)(isTrusted(notebook));
|
| 74 |
+
const checkTrust = () => {
|
| 75 |
+
const v = isTrusted(notebook);
|
| 76 |
+
setTrusted(v);
|
| 77 |
+
};
|
| 78 |
+
const trust = async () => {
|
| 79 |
+
await notebook_lib_index_js_.NotebookActions.trust(notebook, translator);
|
| 80 |
+
checkTrust();
|
| 81 |
+
};
|
| 82 |
+
(0,react_index_js_.useEffect)(() => {
|
| 83 |
+
notebook.modelContentChanged.connect(checkTrust);
|
| 84 |
+
notebook.activeCellChanged.connect(checkTrust);
|
| 85 |
+
checkTrust();
|
| 86 |
+
return () => {
|
| 87 |
+
notebook.modelContentChanged.disconnect(checkTrust);
|
| 88 |
+
notebook.activeCellChanged.disconnect(checkTrust);
|
| 89 |
+
};
|
| 90 |
+
});
|
| 91 |
+
return (react_index_js_default().createElement("button", { className: 'jp-NotebookTrustedStatus', style: !trusted ? { cursor: 'pointer' } : { cursor: 'help' }, onClick: () => !trusted && trust(), title: trusted
|
| 92 |
+
? trans.__('JavaScript enabled for notebook display')
|
| 93 |
+
: trans.__('JavaScript disabled for notebook display') }, trusted ? trans.__('Trusted') : trans.__('Not Trusted')));
|
| 94 |
+
};
|
| 95 |
+
/**
|
| 96 |
+
* A namespace for TrustedComponent static methods.
|
| 97 |
+
*/
|
| 98 |
+
var TrustedComponent;
|
| 99 |
+
(function (TrustedComponent) {
|
| 100 |
+
/**
|
| 101 |
+
* Create a new TrustedComponent
|
| 102 |
+
*
|
| 103 |
+
* @param notebook The notebook
|
| 104 |
+
* @param translator The translator
|
| 105 |
+
*/
|
| 106 |
+
TrustedComponent.create = ({ notebook, translator, }) => {
|
| 107 |
+
return index_js_.ReactWidget.create(react_index_js_default().createElement(TrustedButton, { notebook: notebook, translator: translator }));
|
| 108 |
+
};
|
| 109 |
+
})(TrustedComponent || (TrustedComponent = {}));
|
| 110 |
+
|
| 111 |
+
;// CONCATENATED MODULE: ../packages/notebook-extension/lib/index.js
|
| 112 |
+
// Copyright (c) Jupyter Development Team.
|
| 113 |
+
// Distributed under the terms of the Modified BSD License.
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
/**
|
| 126 |
+
* The class for kernel status errors.
|
| 127 |
+
*/
|
| 128 |
+
const KERNEL_STATUS_ERROR_CLASS = 'jp-NotebookKernelStatus-error';
|
| 129 |
+
/**
|
| 130 |
+
* The class for kernel status warnings.
|
| 131 |
+
*/
|
| 132 |
+
const KERNEL_STATUS_WARN_CLASS = 'jp-NotebookKernelStatus-warn';
|
| 133 |
+
/**
|
| 134 |
+
* The class for kernel status infos.
|
| 135 |
+
*/
|
| 136 |
+
const KERNEL_STATUS_INFO_CLASS = 'jp-NotebookKernelStatus-info';
|
| 137 |
+
/**
|
| 138 |
+
* The class to fade out the kernel status.
|
| 139 |
+
*/
|
| 140 |
+
const KERNEL_STATUS_FADE_OUT_CLASS = 'jp-NotebookKernelStatus-fade';
|
| 141 |
+
/**
|
| 142 |
+
* The class for scrolled outputs
|
| 143 |
+
*/
|
| 144 |
+
const SCROLLED_OUTPUTS_CLASS = 'jp-mod-outputsScrolled';
|
| 145 |
+
/**
|
| 146 |
+
* The class for the full width notebook
|
| 147 |
+
*/
|
| 148 |
+
const FULL_WIDTH_NOTEBOOK_CLASS = 'jp-mod-fullwidth';
|
| 149 |
+
/**
|
| 150 |
+
* The command IDs used by the notebook plugins.
|
| 151 |
+
*/
|
| 152 |
+
var CommandIDs;
|
| 153 |
+
(function (CommandIDs) {
|
| 154 |
+
/**
|
| 155 |
+
* A command to open right sidebar for Editing Notebook Metadata
|
| 156 |
+
*/
|
| 157 |
+
CommandIDs.openEditNotebookMetadata = 'notebook:edit-metadata';
|
| 158 |
+
/**
|
| 159 |
+
* A command to toggle full width of the notebook
|
| 160 |
+
*/
|
| 161 |
+
CommandIDs.toggleFullWidth = 'notebook:toggle-full-width';
|
| 162 |
+
})(CommandIDs || (CommandIDs = {}));
|
| 163 |
+
/**
|
| 164 |
+
* A plugin for the checkpoint indicator
|
| 165 |
+
*/
|
| 166 |
+
const checkpoints = {
|
| 167 |
+
id: '@jupyter-notebook/notebook-extension:checkpoints',
|
| 168 |
+
description: 'A plugin for the checkpoint indicator.',
|
| 169 |
+
autoStart: true,
|
| 170 |
+
requires: [docmanager_lib_index_js_.IDocumentManager, translation_lib_index_js_.ITranslator],
|
| 171 |
+
optional: [application_lib_index_js_.INotebookShell, index_js_.IToolbarWidgetRegistry],
|
| 172 |
+
activate: (app, docManager, translator, notebookShell, toolbarRegistry) => {
|
| 173 |
+
const { shell } = app;
|
| 174 |
+
const trans = translator.load('notebook');
|
| 175 |
+
const node = document.createElement('div');
|
| 176 |
+
if (toolbarRegistry) {
|
| 177 |
+
toolbarRegistry.addFactory('TopBar', 'checkpoint', (toolbar) => {
|
| 178 |
+
const widget = new dist_index_es6_js_.Widget({ node });
|
| 179 |
+
widget.id = index_js_.DOMUtils.createDomID();
|
| 180 |
+
widget.addClass('jp-NotebookCheckpoint');
|
| 181 |
+
return widget;
|
| 182 |
+
});
|
| 183 |
+
}
|
| 184 |
+
const onChange = async () => {
|
| 185 |
+
const current = shell.currentWidget;
|
| 186 |
+
if (!current) {
|
| 187 |
+
return;
|
| 188 |
+
}
|
| 189 |
+
const context = docManager.contextForWidget(current);
|
| 190 |
+
context === null || context === void 0 ? void 0 : context.fileChanged.disconnect(onChange);
|
| 191 |
+
context === null || context === void 0 ? void 0 : context.fileChanged.connect(onChange);
|
| 192 |
+
const checkpoints = await (context === null || context === void 0 ? void 0 : context.listCheckpoints());
|
| 193 |
+
if (!checkpoints) {
|
| 194 |
+
return;
|
| 195 |
+
}
|
| 196 |
+
const checkpoint = checkpoints[checkpoints.length - 1];
|
| 197 |
+
node.textContent = trans.__('Last Checkpoint: %1', lib_index_js_.Time.formatHuman(new Date(checkpoint.last_modified)));
|
| 198 |
+
};
|
| 199 |
+
if (notebookShell) {
|
| 200 |
+
notebookShell.currentChanged.connect(onChange);
|
| 201 |
+
}
|
| 202 |
+
new index_es6_js_.Poll({
|
| 203 |
+
auto: true,
|
| 204 |
+
factory: () => onChange(),
|
| 205 |
+
frequency: {
|
| 206 |
+
interval: 2000,
|
| 207 |
+
backoff: false,
|
| 208 |
+
},
|
| 209 |
+
standby: 'when-hidden',
|
| 210 |
+
});
|
| 211 |
+
},
|
| 212 |
+
};
|
| 213 |
+
/**
|
| 214 |
+
* Add a command to close the browser tab when clicking on "Close and Shut Down"
|
| 215 |
+
*/
|
| 216 |
+
const closeTab = {
|
| 217 |
+
id: '@jupyter-notebook/notebook-extension:close-tab',
|
| 218 |
+
description: 'Add a command to close the browser tab when clicking on "Close and Shut Down".',
|
| 219 |
+
autoStart: true,
|
| 220 |
+
requires: [mainmenu_lib_index_js_.IMainMenu],
|
| 221 |
+
optional: [translation_lib_index_js_.ITranslator],
|
| 222 |
+
activate: (app, menu, translator) => {
|
| 223 |
+
const { commands } = app;
|
| 224 |
+
translator = translator !== null && translator !== void 0 ? translator : translation_lib_index_js_.nullTranslator;
|
| 225 |
+
const trans = translator.load('notebook');
|
| 226 |
+
const id = 'notebook:close-and-halt';
|
| 227 |
+
commands.addCommand(id, {
|
| 228 |
+
label: trans.__('Close and Shut Down Notebook'),
|
| 229 |
+
execute: async () => {
|
| 230 |
+
// Shut the kernel down, without confirmation
|
| 231 |
+
await commands.execute('notebook:shutdown-kernel', { activate: false });
|
| 232 |
+
window.close();
|
| 233 |
+
},
|
| 234 |
+
});
|
| 235 |
+
menu.fileMenu.closeAndCleaners.add({
|
| 236 |
+
id,
|
| 237 |
+
// use a small rank to it takes precedence over the default
|
| 238 |
+
// shut down action for the notebook
|
| 239 |
+
rank: 0,
|
| 240 |
+
});
|
| 241 |
+
},
|
| 242 |
+
};
|
| 243 |
+
/**
|
| 244 |
+
* Add a command to open the tree view from the notebook view
|
| 245 |
+
*/
|
| 246 |
+
const openTreeTab = {
|
| 247 |
+
id: '@jupyter-notebook/notebook-extension:open-tree-tab',
|
| 248 |
+
description: 'Add a command to open a browser tab on the tree view when clicking "Open...".',
|
| 249 |
+
autoStart: true,
|
| 250 |
+
optional: [translation_lib_index_js_.ITranslator],
|
| 251 |
+
activate: (app, translator) => {
|
| 252 |
+
const { commands } = app;
|
| 253 |
+
translator = translator !== null && translator !== void 0 ? translator : translation_lib_index_js_.nullTranslator;
|
| 254 |
+
const trans = translator.load('notebook');
|
| 255 |
+
const id = 'notebook:open-tree-tab';
|
| 256 |
+
commands.addCommand(id, {
|
| 257 |
+
label: trans.__('Open…'),
|
| 258 |
+
execute: async () => {
|
| 259 |
+
const url = lib_index_js_.URLExt.join(lib_index_js_.PageConfig.getBaseUrl(), 'tree');
|
| 260 |
+
window.open(url);
|
| 261 |
+
},
|
| 262 |
+
});
|
| 263 |
+
},
|
| 264 |
+
};
|
| 265 |
+
/**
|
| 266 |
+
* A plugin to set the notebook to full width.
|
| 267 |
+
*/
|
| 268 |
+
const fullWidthNotebook = {
|
| 269 |
+
id: '@jupyter-notebook/notebook-extension:full-width-notebook',
|
| 270 |
+
description: 'A plugin to set the notebook to full width.',
|
| 271 |
+
autoStart: true,
|
| 272 |
+
requires: [notebook_lib_index_js_.INotebookTracker],
|
| 273 |
+
optional: [index_js_.ICommandPalette, settingregistry_lib_index_js_.ISettingRegistry, translation_lib_index_js_.ITranslator],
|
| 274 |
+
activate: (app, tracker, palette, settingRegistry, translator) => {
|
| 275 |
+
const trans = (translator !== null && translator !== void 0 ? translator : translation_lib_index_js_.nullTranslator).load('notebook');
|
| 276 |
+
let fullWidth = false;
|
| 277 |
+
const toggleFullWidth = () => {
|
| 278 |
+
const current = tracker.currentWidget;
|
| 279 |
+
fullWidth = !fullWidth;
|
| 280 |
+
if (!current) {
|
| 281 |
+
return;
|
| 282 |
+
}
|
| 283 |
+
const content = current;
|
| 284 |
+
content.toggleClass(FULL_WIDTH_NOTEBOOK_CLASS, fullWidth);
|
| 285 |
+
};
|
| 286 |
+
let notebookSettings;
|
| 287 |
+
if (settingRegistry) {
|
| 288 |
+
const loadSettings = settingRegistry.load(fullWidthNotebook.id);
|
| 289 |
+
const updateSettings = (settings) => {
|
| 290 |
+
const newFullWidth = settings.get('fullWidthNotebook')
|
| 291 |
+
.composite;
|
| 292 |
+
if (newFullWidth !== fullWidth) {
|
| 293 |
+
toggleFullWidth();
|
| 294 |
+
}
|
| 295 |
+
};
|
| 296 |
+
Promise.all([loadSettings, app.restored])
|
| 297 |
+
.then(([settings]) => {
|
| 298 |
+
notebookSettings = settings;
|
| 299 |
+
updateSettings(settings);
|
| 300 |
+
settings.changed.connect((settings) => {
|
| 301 |
+
updateSettings(settings);
|
| 302 |
+
});
|
| 303 |
+
})
|
| 304 |
+
.catch((reason) => {
|
| 305 |
+
console.error(reason.message);
|
| 306 |
+
});
|
| 307 |
+
}
|
| 308 |
+
app.commands.addCommand(CommandIDs.toggleFullWidth, {
|
| 309 |
+
label: trans.__('Enable Full Width Notebook'),
|
| 310 |
+
execute: () => {
|
| 311 |
+
toggleFullWidth();
|
| 312 |
+
if (notebookSettings) {
|
| 313 |
+
notebookSettings.set('fullWidthNotebook', fullWidth);
|
| 314 |
+
}
|
| 315 |
+
},
|
| 316 |
+
isEnabled: () => tracker.currentWidget !== null,
|
| 317 |
+
isToggled: () => fullWidth,
|
| 318 |
+
});
|
| 319 |
+
if (palette) {
|
| 320 |
+
palette.addItem({
|
| 321 |
+
command: CommandIDs.toggleFullWidth,
|
| 322 |
+
category: 'Notebook Operations',
|
| 323 |
+
});
|
| 324 |
+
}
|
| 325 |
+
},
|
| 326 |
+
};
|
| 327 |
+
/**
|
| 328 |
+
* The kernel logo plugin.
|
| 329 |
+
*/
|
| 330 |
+
const kernelLogo = {
|
| 331 |
+
id: '@jupyter-notebook/notebook-extension:kernel-logo',
|
| 332 |
+
description: 'The kernel logo plugin.',
|
| 333 |
+
autoStart: true,
|
| 334 |
+
requires: [application_lib_index_js_.INotebookShell],
|
| 335 |
+
optional: [index_js_.IToolbarWidgetRegistry],
|
| 336 |
+
activate: (app, shell, toolbarRegistry) => {
|
| 337 |
+
const { serviceManager } = app;
|
| 338 |
+
const node = document.createElement('div');
|
| 339 |
+
const img = document.createElement('img');
|
| 340 |
+
const onChange = async () => {
|
| 341 |
+
var _a, _b, _c, _d, _e;
|
| 342 |
+
const current = shell.currentWidget;
|
| 343 |
+
if (!(current instanceof notebook_lib_index_js_.NotebookPanel)) {
|
| 344 |
+
return;
|
| 345 |
+
}
|
| 346 |
+
if (!node.hasChildNodes()) {
|
| 347 |
+
node.appendChild(img);
|
| 348 |
+
}
|
| 349 |
+
await current.sessionContext.ready;
|
| 350 |
+
current.sessionContext.kernelChanged.disconnect(onChange);
|
| 351 |
+
current.sessionContext.kernelChanged.connect(onChange);
|
| 352 |
+
const name = (_c = (_b = (_a = current.sessionContext.session) === null || _a === void 0 ? void 0 : _a.kernel) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : '';
|
| 353 |
+
const spec = (_e = (_d = serviceManager.kernelspecs) === null || _d === void 0 ? void 0 : _d.specs) === null || _e === void 0 ? void 0 : _e.kernelspecs[name];
|
| 354 |
+
if (!spec) {
|
| 355 |
+
node.childNodes[0].remove();
|
| 356 |
+
return;
|
| 357 |
+
}
|
| 358 |
+
const kernelIconUrl = spec.resources['logo-64x64'];
|
| 359 |
+
if (!kernelIconUrl) {
|
| 360 |
+
node.childNodes[0].remove();
|
| 361 |
+
return;
|
| 362 |
+
}
|
| 363 |
+
img.src = kernelIconUrl;
|
| 364 |
+
img.title = spec.display_name;
|
| 365 |
+
};
|
| 366 |
+
if (toolbarRegistry) {
|
| 367 |
+
toolbarRegistry.addFactory('TopBar', 'kernelLogo', (toolbar) => {
|
| 368 |
+
const widget = new dist_index_es6_js_.Widget({ node });
|
| 369 |
+
widget.addClass('jp-NotebookKernelLogo');
|
| 370 |
+
return widget;
|
| 371 |
+
});
|
| 372 |
+
}
|
| 373 |
+
app.started.then(() => {
|
| 374 |
+
shell.currentChanged.connect(onChange);
|
| 375 |
+
});
|
| 376 |
+
},
|
| 377 |
+
};
|
| 378 |
+
/**
|
| 379 |
+
* A plugin to display the kernel status;
|
| 380 |
+
*/
|
| 381 |
+
const kernelStatus = {
|
| 382 |
+
id: '@jupyter-notebook/notebook-extension:kernel-status',
|
| 383 |
+
description: 'A plugin to display the kernel status.',
|
| 384 |
+
autoStart: true,
|
| 385 |
+
requires: [application_lib_index_js_.INotebookShell, translation_lib_index_js_.ITranslator],
|
| 386 |
+
activate: (app, shell, translator) => {
|
| 387 |
+
const trans = translator.load('notebook');
|
| 388 |
+
const widget = new dist_index_es6_js_.Widget();
|
| 389 |
+
widget.addClass('jp-NotebookKernelStatus');
|
| 390 |
+
app.shell.add(widget, 'menu', { rank: 10010 });
|
| 391 |
+
const removeClasses = () => {
|
| 392 |
+
widget.removeClass(KERNEL_STATUS_ERROR_CLASS);
|
| 393 |
+
widget.removeClass(KERNEL_STATUS_WARN_CLASS);
|
| 394 |
+
widget.removeClass(KERNEL_STATUS_INFO_CLASS);
|
| 395 |
+
widget.removeClass(KERNEL_STATUS_FADE_OUT_CLASS);
|
| 396 |
+
};
|
| 397 |
+
const onStatusChanged = (sessionContext) => {
|
| 398 |
+
const status = sessionContext.kernelDisplayStatus;
|
| 399 |
+
let text = `Kernel ${lib_index_js_.Text.titleCase(status)}`;
|
| 400 |
+
removeClasses();
|
| 401 |
+
switch (status) {
|
| 402 |
+
case 'busy':
|
| 403 |
+
case 'idle':
|
| 404 |
+
text = '';
|
| 405 |
+
widget.addClass(KERNEL_STATUS_FADE_OUT_CLASS);
|
| 406 |
+
break;
|
| 407 |
+
case 'dead':
|
| 408 |
+
case 'terminating':
|
| 409 |
+
widget.addClass(KERNEL_STATUS_ERROR_CLASS);
|
| 410 |
+
break;
|
| 411 |
+
case 'unknown':
|
| 412 |
+
widget.addClass(KERNEL_STATUS_WARN_CLASS);
|
| 413 |
+
break;
|
| 414 |
+
default:
|
| 415 |
+
widget.addClass(KERNEL_STATUS_INFO_CLASS);
|
| 416 |
+
widget.addClass(KERNEL_STATUS_FADE_OUT_CLASS);
|
| 417 |
+
break;
|
| 418 |
+
}
|
| 419 |
+
widget.node.textContent = trans.__(text);
|
| 420 |
+
};
|
| 421 |
+
const onChange = async () => {
|
| 422 |
+
const current = shell.currentWidget;
|
| 423 |
+
if (!(current instanceof notebook_lib_index_js_.NotebookPanel)) {
|
| 424 |
+
return;
|
| 425 |
+
}
|
| 426 |
+
const sessionContext = current.sessionContext;
|
| 427 |
+
sessionContext.statusChanged.connect(onStatusChanged);
|
| 428 |
+
};
|
| 429 |
+
shell.currentChanged.connect(onChange);
|
| 430 |
+
},
|
| 431 |
+
};
|
| 432 |
+
/**
|
| 433 |
+
* A plugin to enable scrolling for outputs by default.
|
| 434 |
+
* Mimic the logic from the classic notebook, as found here:
|
| 435 |
+
* https://github.com/jupyter/notebook/blob/a9a31c096eeffe1bff4e9164c6a0442e0e13cdb3/notebook/static/notebook/js/outputarea.js#L96-L120
|
| 436 |
+
*/
|
| 437 |
+
const scrollOutput = {
|
| 438 |
+
id: '@jupyter-notebook/notebook-extension:scroll-output',
|
| 439 |
+
description: 'A plugin to enable scrolling for outputs by default.',
|
| 440 |
+
autoStart: true,
|
| 441 |
+
requires: [notebook_lib_index_js_.INotebookTracker],
|
| 442 |
+
optional: [settingregistry_lib_index_js_.ISettingRegistry],
|
| 443 |
+
activate: async (app, tracker, settingRegistry) => {
|
| 444 |
+
const autoScrollThreshold = 100;
|
| 445 |
+
let autoScrollOutputs = true;
|
| 446 |
+
// decide whether to scroll the output of the cell based on some heuristics
|
| 447 |
+
const autoScroll = (cell) => {
|
| 448 |
+
if (!autoScrollOutputs) {
|
| 449 |
+
// bail if disabled via the settings
|
| 450 |
+
cell.removeClass(SCROLLED_OUTPUTS_CLASS);
|
| 451 |
+
return;
|
| 452 |
+
}
|
| 453 |
+
const { outputArea } = cell;
|
| 454 |
+
// respect cells with an explicit scrolled state
|
| 455 |
+
const scrolled = cell.model.getMetadata('scrolled');
|
| 456 |
+
if (scrolled !== undefined) {
|
| 457 |
+
return;
|
| 458 |
+
}
|
| 459 |
+
const { node } = outputArea;
|
| 460 |
+
const height = node.scrollHeight;
|
| 461 |
+
const fontSize = parseFloat(node.style.fontSize.replace('px', ''));
|
| 462 |
+
const lineHeight = (fontSize || 14) * 1.3;
|
| 463 |
+
// do not set via cell.outputScrolled = true, as this would
|
| 464 |
+
// otherwise synchronize the scrolled state to the notebook metadata
|
| 465 |
+
const scroll = height > lineHeight * autoScrollThreshold;
|
| 466 |
+
cell.toggleClass(SCROLLED_OUTPUTS_CLASS, scroll);
|
| 467 |
+
};
|
| 468 |
+
const handlers = {};
|
| 469 |
+
const setAutoScroll = (cell) => {
|
| 470 |
+
if (cell.model.type === 'code') {
|
| 471 |
+
const codeCell = cell;
|
| 472 |
+
const id = codeCell.model.id;
|
| 473 |
+
autoScroll(codeCell);
|
| 474 |
+
if (handlers[id]) {
|
| 475 |
+
codeCell.outputArea.model.changed.disconnect(handlers[id]);
|
| 476 |
+
}
|
| 477 |
+
handlers[id] = () => autoScroll(codeCell);
|
| 478 |
+
codeCell.outputArea.model.changed.connect(handlers[id]);
|
| 479 |
+
}
|
| 480 |
+
};
|
| 481 |
+
tracker.widgetAdded.connect((sender, notebook) => {
|
| 482 |
+
var _a;
|
| 483 |
+
// when the notebook widget is created, process all the cells
|
| 484 |
+
notebook.sessionContext.ready.then(() => {
|
| 485 |
+
notebook.content.widgets.forEach(setAutoScroll);
|
| 486 |
+
});
|
| 487 |
+
(_a = notebook.model) === null || _a === void 0 ? void 0 : _a.cells.changed.connect((sender, args) => {
|
| 488 |
+
notebook.content.widgets.forEach(setAutoScroll);
|
| 489 |
+
});
|
| 490 |
+
});
|
| 491 |
+
if (settingRegistry) {
|
| 492 |
+
const loadSettings = settingRegistry.load(scrollOutput.id);
|
| 493 |
+
const updateSettings = (settings) => {
|
| 494 |
+
autoScrollOutputs = settings.get('autoScrollOutputs')
|
| 495 |
+
.composite;
|
| 496 |
+
};
|
| 497 |
+
Promise.all([loadSettings, app.restored])
|
| 498 |
+
.then(([settings]) => {
|
| 499 |
+
updateSettings(settings);
|
| 500 |
+
settings.changed.connect((settings) => {
|
| 501 |
+
updateSettings(settings);
|
| 502 |
+
});
|
| 503 |
+
})
|
| 504 |
+
.catch((reason) => {
|
| 505 |
+
console.error(reason.message);
|
| 506 |
+
});
|
| 507 |
+
}
|
| 508 |
+
},
|
| 509 |
+
};
|
| 510 |
+
/**
|
| 511 |
+
* A plugin to add the NotebookTools to the side panel;
|
| 512 |
+
*/
|
| 513 |
+
const notebookToolsWidget = {
|
| 514 |
+
id: '@jupyter-notebook/notebook-extension:notebook-tools',
|
| 515 |
+
description: 'A plugin to add the NotebookTools to the side panel.',
|
| 516 |
+
autoStart: true,
|
| 517 |
+
requires: [application_lib_index_js_.INotebookShell],
|
| 518 |
+
optional: [notebook_lib_index_js_.INotebookTools],
|
| 519 |
+
activate: (app, shell, notebookTools) => {
|
| 520 |
+
const onChange = async () => {
|
| 521 |
+
const current = shell.currentWidget;
|
| 522 |
+
if (!(current instanceof notebook_lib_index_js_.NotebookPanel)) {
|
| 523 |
+
return;
|
| 524 |
+
}
|
| 525 |
+
// Add the notebook tools in right area.
|
| 526 |
+
if (notebookTools) {
|
| 527 |
+
shell.add(notebookTools, 'right', { type: 'Property Inspector' });
|
| 528 |
+
}
|
| 529 |
+
};
|
| 530 |
+
shell.currentChanged.connect(onChange);
|
| 531 |
+
},
|
| 532 |
+
};
|
| 533 |
+
/**
|
| 534 |
+
* A plugin to update the tab icon based on the kernel status.
|
| 535 |
+
*/
|
| 536 |
+
const tabIcon = {
|
| 537 |
+
id: '@jupyter-notebook/notebook-extension:tab-icon',
|
| 538 |
+
description: 'A plugin to update the tab icon based on the kernel status.',
|
| 539 |
+
autoStart: true,
|
| 540 |
+
requires: [notebook_lib_index_js_.INotebookTracker],
|
| 541 |
+
activate: (app, tracker) => {
|
| 542 |
+
// the favicons are provided by Jupyter Server
|
| 543 |
+
const baseURL = lib_index_js_.PageConfig.getBaseUrl();
|
| 544 |
+
const notebookIcon = lib_index_js_.URLExt.join(baseURL, 'static/favicons/favicon-notebook.ico');
|
| 545 |
+
const busyIcon = lib_index_js_.URLExt.join(baseURL, 'static/favicons/favicon-busy-1.ico');
|
| 546 |
+
const updateBrowserFavicon = (status) => {
|
| 547 |
+
const link = document.querySelector("link[rel*='icon']");
|
| 548 |
+
switch (status) {
|
| 549 |
+
case 'busy':
|
| 550 |
+
link.href = busyIcon;
|
| 551 |
+
break;
|
| 552 |
+
case 'idle':
|
| 553 |
+
link.href = notebookIcon;
|
| 554 |
+
break;
|
| 555 |
+
}
|
| 556 |
+
};
|
| 557 |
+
const onChange = async () => {
|
| 558 |
+
const current = tracker.currentWidget;
|
| 559 |
+
const sessionContext = current === null || current === void 0 ? void 0 : current.sessionContext;
|
| 560 |
+
if (!sessionContext) {
|
| 561 |
+
return;
|
| 562 |
+
}
|
| 563 |
+
sessionContext.statusChanged.connect(() => {
|
| 564 |
+
const status = sessionContext.kernelDisplayStatus;
|
| 565 |
+
updateBrowserFavicon(status);
|
| 566 |
+
});
|
| 567 |
+
};
|
| 568 |
+
tracker.currentChanged.connect(onChange);
|
| 569 |
+
},
|
| 570 |
+
};
|
| 571 |
+
/**
|
| 572 |
+
* A plugin that adds a Trusted indicator to the menu area
|
| 573 |
+
*/
|
| 574 |
+
const trusted = {
|
| 575 |
+
id: '@jupyter-notebook/notebook-extension:trusted',
|
| 576 |
+
description: 'A plugin that adds a Trusted indicator to the menu area.',
|
| 577 |
+
autoStart: true,
|
| 578 |
+
requires: [application_lib_index_js_.INotebookShell, translation_lib_index_js_.ITranslator],
|
| 579 |
+
activate: (app, notebookShell, translator) => {
|
| 580 |
+
const onChange = async () => {
|
| 581 |
+
const current = notebookShell.currentWidget;
|
| 582 |
+
if (!(current instanceof notebook_lib_index_js_.NotebookPanel)) {
|
| 583 |
+
return;
|
| 584 |
+
}
|
| 585 |
+
const notebook = current.content;
|
| 586 |
+
await current.context.ready;
|
| 587 |
+
const widget = TrustedComponent.create({ notebook, translator });
|
| 588 |
+
notebookShell.add(widget, 'menu', {
|
| 589 |
+
rank: 11000,
|
| 590 |
+
});
|
| 591 |
+
};
|
| 592 |
+
notebookShell.currentChanged.connect(onChange);
|
| 593 |
+
},
|
| 594 |
+
};
|
| 595 |
+
/**
|
| 596 |
+
* Add a command to open right sidebar for Editing Notebook Metadata when clicking on "Edit Notebook Metadata" under Edit menu
|
| 597 |
+
*/
|
| 598 |
+
const editNotebookMetadata = {
|
| 599 |
+
id: '@jupyter-notebook/notebook-extension:edit-notebook-metadata',
|
| 600 |
+
description: 'Add a command to open right sidebar for Editing Notebook Metadata when clicking on "Edit Notebook Metadata" under Edit menu',
|
| 601 |
+
autoStart: true,
|
| 602 |
+
optional: [index_js_.ICommandPalette, translation_lib_index_js_.ITranslator, notebook_lib_index_js_.INotebookTools],
|
| 603 |
+
activate: (app, palette, translator, notebookTools) => {
|
| 604 |
+
const { commands, shell } = app;
|
| 605 |
+
translator = translator !== null && translator !== void 0 ? translator : translation_lib_index_js_.nullTranslator;
|
| 606 |
+
const trans = translator.load('notebook');
|
| 607 |
+
commands.addCommand(CommandIDs.openEditNotebookMetadata, {
|
| 608 |
+
label: trans.__('Edit Notebook Metadata'),
|
| 609 |
+
execute: async () => {
|
| 610 |
+
const command = 'application:toggle-panel';
|
| 611 |
+
const args = {
|
| 612 |
+
side: 'right',
|
| 613 |
+
title: 'Show Notebook Tools',
|
| 614 |
+
id: 'notebook-tools',
|
| 615 |
+
};
|
| 616 |
+
// Check if Show Notebook Tools (Right Sidebar) is open (expanded)
|
| 617 |
+
if (!commands.isToggled(command, args)) {
|
| 618 |
+
await commands.execute(command, args).then((_) => {
|
| 619 |
+
// For expanding the 'Advanced Tools' section (default: collapsed)
|
| 620 |
+
if (notebookTools) {
|
| 621 |
+
const tools = (notebookTools === null || notebookTools === void 0 ? void 0 : notebookTools.layout).widgets;
|
| 622 |
+
tools.forEach((tool) => {
|
| 623 |
+
if (tool.widget.title.label === trans.__('Advanced Tools') &&
|
| 624 |
+
tool.collapsed) {
|
| 625 |
+
tool.toggle();
|
| 626 |
+
}
|
| 627 |
+
});
|
| 628 |
+
}
|
| 629 |
+
});
|
| 630 |
+
}
|
| 631 |
+
},
|
| 632 |
+
isVisible: () => shell.currentWidget !== null &&
|
| 633 |
+
shell.currentWidget instanceof notebook_lib_index_js_.NotebookPanel,
|
| 634 |
+
});
|
| 635 |
+
if (palette) {
|
| 636 |
+
palette.addItem({
|
| 637 |
+
command: CommandIDs.openEditNotebookMetadata,
|
| 638 |
+
category: 'Notebook Operations',
|
| 639 |
+
});
|
| 640 |
+
}
|
| 641 |
+
},
|
| 642 |
+
};
|
| 643 |
+
/**
|
| 644 |
+
* Export the plugins as default.
|
| 645 |
+
*/
|
| 646 |
+
const plugins = [
|
| 647 |
+
checkpoints,
|
| 648 |
+
closeTab,
|
| 649 |
+
openTreeTab,
|
| 650 |
+
editNotebookMetadata,
|
| 651 |
+
fullWidthNotebook,
|
| 652 |
+
kernelLogo,
|
| 653 |
+
kernelStatus,
|
| 654 |
+
notebookToolsWidget,
|
| 655 |
+
scrollOutput,
|
| 656 |
+
tabIcon,
|
| 657 |
+
trusted,
|
| 658 |
+
];
|
| 659 |
+
/* harmony default export */ const lib = (plugins);
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
/***/ })
|
| 663 |
+
|
| 664 |
+
}]);
|
| 665 |
+
//# sourceMappingURL=5573.fadd0e2001b2575ccb0f.js.map?v=fadd0e2001b2575ccb0f
|
vlmpy310/lib/python3.10/site-packages/notebook/static/5601.3e30eb7d151dda3b25ed.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"5601.3e30eb7d151dda3b25ed.js?v=3e30eb7d151dda3b25ed","mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACmD;AACQ;AACH;AACwC;AACvD;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,4DAAO,EAAE,kEAAgB;AACxC;AACA;AACA,gBAAgB,WAAW;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,oDAAoD,MAAM;AAC1D,aAAa;AACb,SAAS;AACT,0BAA0B,mCAAmC;AAC7D,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,kEAAgB;AAC/B,eAAe,8EAAmB;AAClC;AACA;AACA,wBAAwB,6DAAU;AAClC,2GAA2G,oFAAyB;AACpI;AACA,2BAA2B,uDAAI;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,yDAAM;AAC9B;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,iEAAe,OAAO,EAAC","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../packages/terminal-extension/lib/index.js"],"sourcesContent":["// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\nimport { IRouter, } from '@jupyterlab/application';\nimport { PageConfig, URLExt } from '@jupyterlab/coreutils';\nimport { ITerminalTracker } from '@jupyterlab/terminal';\nimport { INotebookPathOpener, defaultNotebookPathOpener, } from '@jupyter-notebook/application';\nimport { find } from '@lumino/algorithm';\n/**\n * A plugin to open terminals in a new tab\n */\nconst opener = {\n id: '@jupyter-notebook/terminal-extension:opener',\n description: 'A plugin to open terminals in a new tab.',\n requires: [IRouter, ITerminalTracker],\n autoStart: true,\n activate: (app, router, tracker) => {\n const { commands } = app;\n const terminalPattern = new RegExp('/terminals/(.*)');\n const command = 'router:terminal';\n commands.addCommand(command, {\n execute: (args) => {\n const parsed = args;\n const matches = parsed.path.match(terminalPattern);\n if (!matches) {\n return;\n }\n const [, name] = matches;\n if (!name) {\n return;\n }\n tracker.widgetAdded.connect((send, terminal) => {\n terminal.content.setOption('closeOnExit', false);\n });\n commands.execute('terminal:open', { name });\n },\n });\n router.register({ command, pattern: terminalPattern });\n },\n};\n/**\n * Open terminals in a new tab.\n */\nconst redirect = {\n id: '@jupyter-notebook/terminal-extension:redirect',\n description: 'Open terminals in a new tab.',\n requires: [ITerminalTracker],\n optional: [INotebookPathOpener],\n autoStart: true,\n activate: (app, tracker, notebookPathOpener) => {\n const baseUrl = PageConfig.getBaseUrl();\n const opener = notebookPathOpener !== null && notebookPathOpener !== void 0 ? notebookPathOpener : defaultNotebookPathOpener;\n tracker.widgetAdded.connect((send, terminal) => {\n const widget = find(app.shell.widgets('main'), (w) => w.id === terminal.id);\n if (widget) {\n // bail if the terminal is already added to the main area\n return;\n }\n const name = terminal.content.session.name;\n opener.open({\n prefix: URLExt.join(baseUrl, 'terminals'),\n path: name,\n target: '_blank',\n });\n // dispose the widget since it is not used on this page\n terminal.dispose();\n });\n },\n};\n/**\n * Export the plugins as default.\n */\nconst plugins = [opener, redirect];\nexport default plugins;\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/632.c59cde46a58f6dac3b70.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"632.c59cde46a58f6dac3b70.js?v=c59cde46a58f6dac3b70","mappings":";;;;;;;;;;AAAA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB;AACtB;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,gDAAgD;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA,GAAG;;AAEH;AACA;AACA,oBAAoB,mBAAmB;AACvC;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/oz.js"],"sourcesContent":["function wordRegexp(words) {\n return new RegExp(\"^((\" + words.join(\")|(\") + \"))\\\\b\");\n}\n\nvar singleOperators = /[\\^@!\\|<>#~\\.\\*\\-\\+\\\\/,=]/;\nvar doubleOperators = /(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\\\=)|(\\\\=:)|(!!)|(==)|(::)/;\nvar tripleOperators = /(:::)|(\\.\\.\\.)|(=<:)|(>=:)/;\n\nvar middle = [\"in\", \"then\", \"else\", \"of\", \"elseof\", \"elsecase\", \"elseif\", \"catch\",\n \"finally\", \"with\", \"require\", \"prepare\", \"import\", \"export\", \"define\", \"do\"];\nvar end = [\"end\"];\n\nvar atoms = wordRegexp([\"true\", \"false\", \"nil\", \"unit\"]);\nvar commonKeywords = wordRegexp([\"andthen\", \"at\", \"attr\", \"declare\", \"feat\", \"from\", \"lex\",\n \"mod\", \"div\", \"mode\", \"orelse\", \"parser\", \"prod\", \"prop\", \"scanner\", \"self\", \"syn\", \"token\"]);\nvar openingKeywords = wordRegexp([\"local\", \"proc\", \"fun\", \"case\", \"class\", \"if\", \"cond\", \"or\", \"dis\",\n \"choice\", \"not\", \"thread\", \"try\", \"raise\", \"lock\", \"for\", \"suchthat\", \"meth\", \"functor\"]);\nvar middleKeywords = wordRegexp(middle);\nvar endKeywords = wordRegexp(end);\n\n// Tokenizers\nfunction tokenBase(stream, state) {\n if (stream.eatSpace()) {\n return null;\n }\n\n // Brackets\n if(stream.match(/[{}]/)) {\n return \"bracket\";\n }\n\n // Special [] keyword\n if (stream.match('[]')) {\n return \"keyword\"\n }\n\n // Operators\n if (stream.match(tripleOperators) || stream.match(doubleOperators)) {\n return \"operator\";\n }\n\n // Atoms\n if(stream.match(atoms)) {\n return 'atom';\n }\n\n // Opening keywords\n var matched = stream.match(openingKeywords);\n if (matched) {\n if (!state.doInCurrentLine)\n state.currentIndent++;\n else\n state.doInCurrentLine = false;\n\n // Special matching for signatures\n if(matched[0] == \"proc\" || matched[0] == \"fun\")\n state.tokenize = tokenFunProc;\n else if(matched[0] == \"class\")\n state.tokenize = tokenClass;\n else if(matched[0] == \"meth\")\n state.tokenize = tokenMeth;\n\n return 'keyword';\n }\n\n // Middle and other keywords\n if (stream.match(middleKeywords) || stream.match(commonKeywords)) {\n return \"keyword\"\n }\n\n // End keywords\n if (stream.match(endKeywords)) {\n state.currentIndent--;\n return 'keyword';\n }\n\n // Eat the next char for next comparisons\n var ch = stream.next();\n\n // Strings\n if (ch == '\"' || ch == \"'\") {\n state.tokenize = tokenString(ch);\n return state.tokenize(stream, state);\n }\n\n // Numbers\n if (/[~\\d]/.test(ch)) {\n if (ch == \"~\") {\n if(! /^[0-9]/.test(stream.peek()))\n return null;\n else if (( stream.next() == \"0\" && stream.match(/^[xX][0-9a-fA-F]+/)) || stream.match(/^[0-9]*(\\.[0-9]+)?([eE][~+]?[0-9]+)?/))\n return \"number\";\n }\n\n if ((ch == \"0\" && stream.match(/^[xX][0-9a-fA-F]+/)) || stream.match(/^[0-9]*(\\.[0-9]+)?([eE][~+]?[0-9]+)?/))\n return \"number\";\n\n return null;\n }\n\n // Comments\n if (ch == \"%\") {\n stream.skipToEnd();\n return 'comment';\n }\n else if (ch == \"/\") {\n if (stream.eat(\"*\")) {\n state.tokenize = tokenComment;\n return tokenComment(stream, state);\n }\n }\n\n // Single operators\n if(singleOperators.test(ch)) {\n return \"operator\";\n }\n\n // If nothing match, we skip the entire alphanumerical block\n stream.eatWhile(/\\w/);\n\n return \"variable\";\n}\n\nfunction tokenClass(stream, state) {\n if (stream.eatSpace()) {\n return null;\n }\n stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/);\n state.tokenize = tokenBase;\n return \"type\"\n}\n\nfunction tokenMeth(stream, state) {\n if (stream.eatSpace()) {\n return null;\n }\n stream.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/);\n state.tokenize = tokenBase;\n return \"def\"\n}\n\nfunction tokenFunProc(stream, state) {\n if (stream.eatSpace()) {\n return null;\n }\n\n if(!state.hasPassedFirstStage && stream.eat(\"{\")) {\n state.hasPassedFirstStage = true;\n return \"bracket\";\n }\n else if(state.hasPassedFirstStage) {\n stream.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\\$/);\n state.hasPassedFirstStage = false;\n state.tokenize = tokenBase;\n return \"def\"\n }\n else {\n state.tokenize = tokenBase;\n return null;\n }\n}\n\nfunction tokenComment(stream, state) {\n var maybeEnd = false, ch;\n while (ch = stream.next()) {\n if (ch == \"/\" && maybeEnd) {\n state.tokenize = tokenBase;\n break;\n }\n maybeEnd = (ch == \"*\");\n }\n return \"comment\";\n}\n\nfunction tokenString(quote) {\n return function (stream, state) {\n var escaped = false, next, end = false;\n while ((next = stream.next()) != null) {\n if (next == quote && !escaped) {\n end = true;\n break;\n }\n escaped = !escaped && next == \"\\\\\";\n }\n if (end || !escaped)\n state.tokenize = tokenBase;\n return \"string\";\n };\n}\n\nfunction buildElectricInputRegEx() {\n // Reindentation should occur on [] or on a match of any of\n // the block closing keywords, at the end of a line.\n var allClosings = middle.concat(end);\n return new RegExp(\"[\\\\[\\\\]]|(\" + allClosings.join(\"|\") + \")$\");\n}\n\nexport const oz = {\n name: \"oz\",\n\n startState: function () {\n return {\n tokenize: tokenBase,\n currentIndent: 0,\n doInCurrentLine: false,\n hasPassedFirstStage: false\n };\n },\n\n token: function (stream, state) {\n if (stream.sol())\n state.doInCurrentLine = 0;\n\n return state.tokenize(stream, state);\n },\n\n indent: function (state, textAfter, cx) {\n var trueText = textAfter.replace(/^\\s+|\\s+$/g, '');\n\n if (trueText.match(endKeywords) || trueText.match(middleKeywords) || trueText.match(/(\\[])/))\n return cx.unit * (state.currentIndent - 1);\n\n if (state.currentIndent < 0)\n return 0;\n\n return state.currentIndent * cx.unit\n },\n\n languageData: {\n indentOnInut: buildElectricInputRegEx(),\n commentTokens: {line: \"%\", block: {open: \"/*\", close: \"*/\"}}\n }\n};\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/67.9cbc679ecb920dd7951b.js
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[67],{
|
| 3 |
+
|
| 4 |
+
/***/ 80067:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ nginx: () => (/* binding */ nginx)
|
| 10 |
+
/* harmony export */ });
|
| 11 |
+
function words(str) {
|
| 12 |
+
var obj = {}, words = str.split(" ");
|
| 13 |
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
| 14 |
+
return obj;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
var keywords = words(
|
| 18 |
+
/* ngxDirectiveControl */ "break return rewrite set" +
|
| 19 |
+
/* ngxDirective */ " accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"
|
| 20 |
+
);
|
| 21 |
+
|
| 22 |
+
var keywords_block = words(
|
| 23 |
+
/* ngxDirectiveBlock */ "http mail events server types location upstream charset_map limit_except if geo map"
|
| 24 |
+
);
|
| 25 |
+
|
| 26 |
+
var keywords_important = words(
|
| 27 |
+
/* ngxDirectiveImportant */ "include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"
|
| 28 |
+
);
|
| 29 |
+
|
| 30 |
+
var type;
|
| 31 |
+
function ret(style, tp) {type = tp; return style;}
|
| 32 |
+
|
| 33 |
+
function tokenBase(stream, state) {
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
stream.eatWhile(/[\w\$_]/);
|
| 37 |
+
|
| 38 |
+
var cur = stream.current();
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
if (keywords.propertyIsEnumerable(cur)) {
|
| 42 |
+
return "keyword";
|
| 43 |
+
}
|
| 44 |
+
else if (keywords_block.propertyIsEnumerable(cur)) {
|
| 45 |
+
return "controlKeyword";
|
| 46 |
+
}
|
| 47 |
+
else if (keywords_important.propertyIsEnumerable(cur)) {
|
| 48 |
+
return "controlKeyword";
|
| 49 |
+
}
|
| 50 |
+
/**/
|
| 51 |
+
|
| 52 |
+
var ch = stream.next();
|
| 53 |
+
if (ch == "@") {stream.eatWhile(/[\w\\\-]/); return ret("meta", stream.current());}
|
| 54 |
+
else if (ch == "/" && stream.eat("*")) {
|
| 55 |
+
state.tokenize = tokenCComment;
|
| 56 |
+
return tokenCComment(stream, state);
|
| 57 |
+
}
|
| 58 |
+
else if (ch == "<" && stream.eat("!")) {
|
| 59 |
+
state.tokenize = tokenSGMLComment;
|
| 60 |
+
return tokenSGMLComment(stream, state);
|
| 61 |
+
}
|
| 62 |
+
else if (ch == "=") ret(null, "compare");
|
| 63 |
+
else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare");
|
| 64 |
+
else if (ch == "\"" || ch == "'") {
|
| 65 |
+
state.tokenize = tokenString(ch);
|
| 66 |
+
return state.tokenize(stream, state);
|
| 67 |
+
}
|
| 68 |
+
else if (ch == "#") {
|
| 69 |
+
stream.skipToEnd();
|
| 70 |
+
return ret("comment", "comment");
|
| 71 |
+
}
|
| 72 |
+
else if (ch == "!") {
|
| 73 |
+
stream.match(/^\s*\w*/);
|
| 74 |
+
return ret("keyword", "important");
|
| 75 |
+
}
|
| 76 |
+
else if (/\d/.test(ch)) {
|
| 77 |
+
stream.eatWhile(/[\w.%]/);
|
| 78 |
+
return ret("number", "unit");
|
| 79 |
+
}
|
| 80 |
+
else if (/[,.+>*\/]/.test(ch)) {
|
| 81 |
+
return ret(null, "select-op");
|
| 82 |
+
}
|
| 83 |
+
else if (/[;{}:\[\]]/.test(ch)) {
|
| 84 |
+
return ret(null, ch);
|
| 85 |
+
}
|
| 86 |
+
else {
|
| 87 |
+
stream.eatWhile(/[\w\\\-]/);
|
| 88 |
+
return ret("variable", "variable");
|
| 89 |
+
}
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
function tokenCComment(stream, state) {
|
| 93 |
+
var maybeEnd = false, ch;
|
| 94 |
+
while ((ch = stream.next()) != null) {
|
| 95 |
+
if (maybeEnd && ch == "/") {
|
| 96 |
+
state.tokenize = tokenBase;
|
| 97 |
+
break;
|
| 98 |
+
}
|
| 99 |
+
maybeEnd = (ch == "*");
|
| 100 |
+
}
|
| 101 |
+
return ret("comment", "comment");
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
function tokenSGMLComment(stream, state) {
|
| 105 |
+
var dashes = 0, ch;
|
| 106 |
+
while ((ch = stream.next()) != null) {
|
| 107 |
+
if (dashes >= 2 && ch == ">") {
|
| 108 |
+
state.tokenize = tokenBase;
|
| 109 |
+
break;
|
| 110 |
+
}
|
| 111 |
+
dashes = (ch == "-") ? dashes + 1 : 0;
|
| 112 |
+
}
|
| 113 |
+
return ret("comment", "comment");
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
function tokenString(quote) {
|
| 117 |
+
return function(stream, state) {
|
| 118 |
+
var escaped = false, ch;
|
| 119 |
+
while ((ch = stream.next()) != null) {
|
| 120 |
+
if (ch == quote && !escaped)
|
| 121 |
+
break;
|
| 122 |
+
escaped = !escaped && ch == "\\";
|
| 123 |
+
}
|
| 124 |
+
if (!escaped) state.tokenize = tokenBase;
|
| 125 |
+
return ret("string", "string");
|
| 126 |
+
};
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
const nginx = {
|
| 130 |
+
name: "nginx",
|
| 131 |
+
startState: function() {
|
| 132 |
+
return {tokenize: tokenBase,
|
| 133 |
+
baseIndent: 0,
|
| 134 |
+
stack: []};
|
| 135 |
+
},
|
| 136 |
+
|
| 137 |
+
token: function(stream, state) {
|
| 138 |
+
if (stream.eatSpace()) return null;
|
| 139 |
+
type = null;
|
| 140 |
+
var style = state.tokenize(stream, state);
|
| 141 |
+
|
| 142 |
+
var context = state.stack[state.stack.length-1];
|
| 143 |
+
if (type == "hash" && context == "rule") style = "atom";
|
| 144 |
+
else if (style == "variable") {
|
| 145 |
+
if (context == "rule") style = "number";
|
| 146 |
+
else if (!context || context == "@media{") style = "tag";
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
if (context == "rule" && /^[\{\};]$/.test(type))
|
| 150 |
+
state.stack.pop();
|
| 151 |
+
if (type == "{") {
|
| 152 |
+
if (context == "@media") state.stack[state.stack.length-1] = "@media{";
|
| 153 |
+
else state.stack.push("{");
|
| 154 |
+
}
|
| 155 |
+
else if (type == "}") state.stack.pop();
|
| 156 |
+
else if (type == "@media") state.stack.push("@media");
|
| 157 |
+
else if (context == "{" && type != "comment") state.stack.push("rule");
|
| 158 |
+
return style;
|
| 159 |
+
},
|
| 160 |
+
|
| 161 |
+
indent: function(state, textAfter, cx) {
|
| 162 |
+
var n = state.stack.length;
|
| 163 |
+
if (/^\}/.test(textAfter))
|
| 164 |
+
n -= state.stack[state.stack.length-1] == "rule" ? 2 : 1;
|
| 165 |
+
return state.baseIndent + n * cx.unit;
|
| 166 |
+
},
|
| 167 |
+
|
| 168 |
+
languageData: {
|
| 169 |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[6972],{
|
| 3 |
+
|
| 4 |
+
/***/ 58879:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
// ESM COMPAT FLAG
|
| 8 |
+
__webpack_require__.r(__webpack_exports__);
|
| 9 |
+
|
| 10 |
+
// EXPORTS
|
| 11 |
+
__webpack_require__.d(__webpack_exports__, {
|
| 12 |
+
rust: () => (/* binding */ rust),
|
| 13 |
+
rustLanguage: () => (/* binding */ rustLanguage)
|
| 14 |
+
});
|
| 15 |
+
|
| 16 |
+
// EXTERNAL MODULE: ../node_modules/@lezer/lr/dist/index.js
|
| 17 |
+
var dist = __webpack_require__(49906);
|
| 18 |
+
// EXTERNAL MODULE: consume shared module (default) @lezer/highlight@~1.2.0 (singleton) (fallback: ../node_modules/@lezer/highlight/dist/index.js)
|
| 19 |
+
var index_js_ = __webpack_require__(92209);
|
| 20 |
+
;// CONCATENATED MODULE: ../node_modules/@lezer/rust/dist/index.js
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
| 25 |
+
const closureParamDelim = 1,
|
| 26 |
+
tpOpen = 2,
|
| 27 |
+
tpClose = 3,
|
| 28 |
+
RawString = 4,
|
| 29 |
+
Float = 5;
|
| 30 |
+
|
| 31 |
+
const _b = 98, _e = 101, _f = 102, _r = 114, _E = 69, Zero = 48,
|
| 32 |
+
Dot = 46, Plus = 43, Minus = 45, Hash = 35, Quote = 34, Pipe = 124, LessThan = 60, GreaterThan = 62;
|
| 33 |
+
|
| 34 |
+
function isNum(ch) { return ch >= 48 && ch <= 57 }
|
| 35 |
+
function isNum_(ch) { return isNum(ch) || ch == 95 }
|
| 36 |
+
|
| 37 |
+
const literalTokens = new dist/* ExternalTokenizer */.Jq((input, stack) => {
|
| 38 |
+
if (isNum(input.next)) {
|
| 39 |
+
let isFloat = false;
|
| 40 |
+
do { input.advance(); } while (isNum_(input.next))
|
| 41 |
+
if (input.next == Dot) {
|
| 42 |
+
isFloat = true;
|
| 43 |
+
input.advance();
|
| 44 |
+
if (isNum(input.next)) {
|
| 45 |
+
do { input.advance(); } while (isNum_(input.next))
|
| 46 |
+
} else if (input.next == Dot || input.next > 0x7f || /\w/.test(String.fromCharCode(input.next))) {
|
| 47 |
+
return
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
+
if (input.next == _e || input.next == _E) {
|
| 51 |
+
isFloat = true;
|
| 52 |
+
input.advance();
|
| 53 |
+
if (input.next == Plus || input.next == Minus) input.advance();
|
| 54 |
+
if (!isNum_(input.next)) return
|
| 55 |
+
do { input.advance(); } while (isNum_(input.next))
|
| 56 |
+
}
|
| 57 |
+
if (input.next == _f) {
|
| 58 |
+
let after = input.peek(1);
|
| 59 |
+
if (after == Zero + 3 && input.peek(2) == Zero + 2 ||
|
| 60 |
+
after == Zero + 6 && input.peek(2) == Zero + 4) {
|
| 61 |
+
input.advance(3);
|
| 62 |
+
isFloat = true;
|
| 63 |
+
} else {
|
| 64 |
+
return
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
if (isFloat) input.acceptToken(Float);
|
| 68 |
+
} else if (input.next == _b || input.next == _r) {
|
| 69 |
+
if (input.next == _b) input.advance();
|
| 70 |
+
if (input.next != _r) return
|
| 71 |
+
input.advance();
|
| 72 |
+
let count = 0;
|
| 73 |
+
while (input.next == Hash) { count++; input.advance(); }
|
| 74 |
+
if (input.next != Quote) return
|
| 75 |
+
input.advance();
|
| 76 |
+
content: for (;;) {
|
| 77 |
+
if (input.next < 0) return
|
| 78 |
+
let isQuote = input.next == Quote;
|
| 79 |
+
input.advance();
|
| 80 |
+
if (isQuote) {
|
| 81 |
+
for (let i = 0; i < count; i++) {
|
| 82 |
+
if (input.next != Hash) continue content
|
| 83 |
+
input.advance();
|
| 84 |
+
}
|
| 85 |
+
input.acceptToken(RawString);
|
| 86 |
+
return
|
| 87 |
+
}
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
});
|
| 91 |
+
|
| 92 |
+
const closureParam = new dist/* ExternalTokenizer */.Jq(input => {
|
| 93 |
+
if (input.next == Pipe) input.acceptToken(closureParamDelim, 1);
|
| 94 |
+
});
|
| 95 |
+
|
| 96 |
+
const tpDelim = new dist/* ExternalTokenizer */.Jq(input => {
|
| 97 |
+
if (input.next == LessThan) input.acceptToken(tpOpen, 1);
|
| 98 |
+
else if (input.next == GreaterThan) input.acceptToken(tpClose, 1);
|
| 99 |
+
});
|
| 100 |
+
|
| 101 |
+
const rustHighlighting = (0,index_js_.styleTags)({
|
| 102 |
+
"const macro_rules struct union enum type fn impl trait let static": index_js_.tags.definitionKeyword,
|
| 103 |
+
"mod use crate": index_js_.tags.moduleKeyword,
|
| 104 |
+
"pub unsafe async mut extern default move": index_js_.tags.modifier,
|
| 105 |
+
"for if else loop while match continue break return await": index_js_.tags.controlKeyword,
|
| 106 |
+
"as in ref": index_js_.tags.operatorKeyword,
|
| 107 |
+
"where _ crate super dyn": index_js_.tags.keyword,
|
| 108 |
+
"self": index_js_.tags.self,
|
| 109 |
+
String: index_js_.tags.string,
|
| 110 |
+
Char: index_js_.tags.character,
|
| 111 |
+
RawString: index_js_.tags.special(index_js_.tags.string),
|
| 112 |
+
Boolean: index_js_.tags.bool,
|
| 113 |
+
Identifier: index_js_.tags.variableName,
|
| 114 |
+
"CallExpression/Identifier": index_js_.tags.function(index_js_.tags.variableName),
|
| 115 |
+
BoundIdentifier: index_js_.tags.definition(index_js_.tags.variableName),
|
| 116 |
+
"FunctionItem/BoundIdentifier": index_js_.tags.function(index_js_.tags.definition(index_js_.tags.variableName)),
|
| 117 |
+
LoopLabel: index_js_.tags.labelName,
|
| 118 |
+
FieldIdentifier: index_js_.tags.propertyName,
|
| 119 |
+
"CallExpression/FieldExpression/FieldIdentifier": index_js_.tags.function(index_js_.tags.propertyName),
|
| 120 |
+
Lifetime: index_js_.tags.special(index_js_.tags.variableName),
|
| 121 |
+
ScopeIdentifier: index_js_.tags.namespace,
|
| 122 |
+
TypeIdentifier: index_js_.tags.typeName,
|
| 123 |
+
"MacroInvocation/Identifier MacroInvocation/ScopedIdentifier/Identifier": index_js_.tags.macroName,
|
| 124 |
+
"MacroInvocation/TypeIdentifier MacroInvocation/ScopedIdentifier/TypeIdentifier": index_js_.tags.macroName,
|
| 125 |
+
"\"!\"": index_js_.tags.macroName,
|
| 126 |
+
UpdateOp: index_js_.tags.updateOperator,
|
| 127 |
+
LineComment: index_js_.tags.lineComment,
|
| 128 |
+
BlockComment: index_js_.tags.blockComment,
|
| 129 |
+
Integer: index_js_.tags.integer,
|
| 130 |
+
Float: index_js_.tags.float,
|
| 131 |
+
ArithOp: index_js_.tags.arithmeticOperator,
|
| 132 |
+
LogicOp: index_js_.tags.logicOperator,
|
| 133 |
+
BitOp: index_js_.tags.bitwiseOperator,
|
| 134 |
+
CompareOp: index_js_.tags.compareOperator,
|
| 135 |
+
"=": index_js_.tags.definitionOperator,
|
| 136 |
+
".. ... => ->": index_js_.tags.punctuation,
|
| 137 |
+
"( )": index_js_.tags.paren,
|
| 138 |
+
"[ ]": index_js_.tags.squareBracket,
|
| 139 |
+
"{ }": index_js_.tags.brace,
|
| 140 |
+
". DerefOp": index_js_.tags.derefOperator,
|
| 141 |
+
"&": index_js_.tags.operator,
|
| 142 |
+
", ; ::": index_js_.tags.separator,
|
| 143 |
+
"Attribute/...": index_js_.tags.meta,
|
| 144 |
+
});
|
| 145 |
+
|
| 146 |
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
| 147 |
+
const spec_identifier = {__proto__:null,self:28, super:32, crate:34, impl:46, true:72, false:72, pub:88, in:92, const:96, unsafe:104, async:108, move:110, if:114, let:118, ref:142, mut:144, _:198, else:200, match:204, as:248, return:252, await:262, break:270, continue:276, while:312, loop:316, for:320, macro_rules:327, mod:334, extern:342, struct:346, where:364, union:379, enum:382, type:390, default:395, fn:396, trait:412, use:420, static:438, dyn:476};
|
| 148 |
+
const parser = dist/* LRParser */.WQ.deserialize({
|
| 149 |
+
version: 14,
|
| 150 |
+
states: "$2xQ]Q_OOP$wOWOOO&sQWO'#CnO)WQWO'#I`OOQP'#I`'#I`OOQQ'#Ie'#IeO)hO`O'#C}OOQR'#Ih'#IhO)sQWO'#IuOOQO'#Hk'#HkO)xQWO'#DpOOQR'#Iw'#IwO)xQWO'#DpO*ZQWO'#DpOOQO'#Iv'#IvO,SQWO'#J`O,ZQWO'#EiOOQV'#Hp'#HpO,cQYO'#F{OOQV'#El'#ElOOQV'#Em'#EmOOQV'#En'#EnO.YQ_O'#EkO0_Q_O'#EoO2gQWOOO4QQ_O'#FPO7hQWO'#J`OOQV'#FY'#FYO7{Q_O'#F^O:WQ_O'#FaOOQO'#F`'#F`O=sQ_O'#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^uO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6Z3_Q8U6]Q9Q8WQ9S8XQ9f9UR9l9hR(Q#zR(P#zQ$SlR(]$TR$ooR$noR)Q$vR)P$vQ)O$vR2O-ohwOb!O!P!T$y%_%b)S)U)i-t$l!lz!Q!n$O$u$|%f%n%o%p%q%y%{&P&o&p&r'](q)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR${xR0b+UR0W*xR0U*xR6{4PR/y*vR/x*vR0P*wR0O*wR0_+QR0^+Q%XyObxz!O!P!Q!T!n$O$u$y$|%_%b%f%n%o%p%q%y%{&P&o&p&r'](q)S)U)i)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-t-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR0k+ZR0j+ZQ'R!qQ)c%XQ+w&|R4y1PX'Q!q%X&|1PR+y&|R+x&|T/S*S4TT/R*S4TR.o)sR.n)sR){%p",
|
| 153 |
+
nodeNames: "⚠ | < > RawString Float LineComment BlockComment SourceFile ] InnerAttribute ! [ MetaItem self Metavariable super crate Identifier ScopedIdentifier :: QualifiedScope AbstractType impl SelfType MetaType TypeIdentifier ScopedTypeIdentifier ScopeIdentifier TypeArgList TypeBinding = Lifetime String Escape Char Boolean Integer } { Block ; ConstItem Vis pub ( in ) const BoundIdentifier : UnsafeBlock unsafe AsyncBlock async move IfExpression if LetDeclaration let LiteralPattern ArithOp MetaPattern SelfPattern ScopedIdentifier TuplePattern ScopedTypeIdentifier , StructPattern FieldPatternList FieldPattern ref mut FieldIdentifier .. RefPattern SlicePattern CapturedPattern ReferencePattern & MutPattern RangePattern ... OrPattern MacroPattern ParenthesizedTokens TokenBinding Identifier TokenRepetition ArithOp BitOp LogicOp UpdateOp CompareOp -> => ArithOp BracketedTokens BracedTokens _ else MatchExpression match MatchBlock MatchArm Attribute Guard UnaryExpression ArithOp DerefOp LogicOp ReferenceExpression TryExpression BinaryExpression ArithOp ArithOp BitOp BitOp BitOp BitOp LogicOp LogicOp AssignmentExpression TypeCastExpression as ReturnExpression return RangeExpression CallExpression ArgList AwaitExpression await FieldExpression GenericFunction BreakExpression break LoopLabel ContinueExpression continue IndexExpression ArrayExpression TupleExpression MacroInvocation UnitExpression ClosureExpression ParamList Parameter Parameter ParenthesizedExpression StructExpression FieldInitializerList ShorthandFieldInitializer FieldInitializer BaseFieldInitializer MatchArm WhileExpression while LoopExpression loop ForExpression for MacroInvocation MacroDefinition macro_rules MacroRule EmptyStatement ModItem mod DeclarationList AttributeItem ForeignModItem extern StructItem struct TypeParamList ConstrainedTypeParameter TraitBounds HigherRankedTraitBound RemovedTraitBound OptionalTypeParameter ConstParameter WhereClause where LifetimeClause TypeBoundClause FieldDeclarationList FieldDeclaration OrderedFieldDeclarationList UnionItem union EnumItem enum EnumVariantList EnumVariant TypeItem type FunctionItem default fn ParamList Parameter SelfParameter VariadicParameter VariadicParameter ImplItem TraitItem trait AssociatedType LetDeclaration UseDeclaration use ScopedIdentifier UseAsClause ScopedIdentifier UseList ScopedUseList UseWildcard ExternCrateDeclaration StaticItem static ExpressionStatement ExpressionStatement GenericType FunctionType ForLifetimes ParamList VariadicParameter Parameter VariadicParameter Parameter ReferenceType PointerType TupleType UnitType ArrayType MacroInvocation EmptyType DynamicType dyn BoundedType",
|
| 154 |
+
maxTerm: 359,
|
| 155 |
+
nodeProps: [
|
| 156 |
+
["group", -42,4,5,14,15,16,17,18,19,33,35,36,37,40,51,53,56,101,107,111,112,113,122,123,125,127,128,130,132,133,134,137,139,140,141,142,143,144,148,149,155,157,159,"Expression",-16,22,24,25,26,27,222,223,230,231,232,233,234,235,236,237,239,"Type",-20,42,161,162,165,166,169,170,172,188,190,194,196,204,205,207,208,209,217,218,220,"Statement",-17,49,60,62,63,64,65,68,74,75,76,77,78,80,81,83,84,99,"Pattern"],
|
| 157 |
+
["openedBy", 9,"[",38,"{",47,"("],
|
| 158 |
+
["closedBy", 12,"]",39,"}",45,")"]
|
| 159 |
+
],
|
| 160 |
+
propSources: [rustHighlighting],
|
| 161 |
+
skippedNodes: [0,6,7,240],
|
| 162 |
+
repeatNodeCount: 32,
|
| 163 |
+
tokenData: "$%h_R!XOX$nXY5gYZ6iZ]$n]^5g^p$npq5gqr7Xrs9cst:Rtu;Tuv>vvwAQwxCbxy!+Tyz!,Vz{!-X{|!/_|}!0g}!O!1i!O!P!3v!P!Q!8[!Q!R!Bw!R![!Dr![!]#+q!]!^#-{!^!_#.}!_!`#1b!`!a#3o!a!b#6S!b!c#7U!c!}#8W!}#O#:T#O#P#;V#P#Q#Cb#Q#R#Dd#R#S#8W#S#T$n#T#U#8W#U#V#El#V#f#8W#f#g#Ic#g#o#8W#o#p$ S#p#q$!U#q#r$$f#r${$n${$|#8W$|4w$n4w5b#8W5b5i$n5i6S#8W6S;'S$n;'S;=`4s<%lO$nU$u]'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$nU%uV'_Q'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&aV'OSOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S&yVOz'`z{&v{!P'`!P!Q*y!Q;'S'`;'S;=`*m<%lO'`S'cVOz&[z{&v{!P&[!P!Q'x!Q;'S&[;'S;=`*s<%lO&[S'{UOz'`{!P'`!P!Q(_!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c!}#MX!}#O$n#O#P&[#P#R$n#R#S#MX#S#T$n#T#o#MX#o${$n${$|#MX$|4w$n4w5b#MX5b5i$n5i6S#MX6S;'S$n;'S;=`4s<%lO$n_$ ]]wX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$!_a'rX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q!_$n!_!`@O!`#O$n#O#P&[#P#p$n#p#q$#d#q;'S$n;'S;=`4s<%lO$n_$#m]'|X'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n_$$o]vX'_Q'OSOY$nYZ%nZr$nrs&[sz$nz{+O{!P$n!P!Q,z!Q#O$n#O#P&[#P;'S$n;'S;=`4s<%lO$n",
|
| 164 |
+
tokenizers: [closureParam, tpDelim, literalTokens, 0, 1, 2, 3],
|
| 165 |
+
topRules: {"SourceFile":[0,8]},
|
| 166 |
+
specialized: [{term: 281, get: value => spec_identifier[value] || -1}],
|
| 167 |
+
tokenPrec: 15596
|
| 168 |
+
});
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
// EXTERNAL MODULE: consume shared module (default) @codemirror/language@^6.10.1 (strict) (fallback: ../node_modules/@codemirror/language/dist/index.js)
|
| 173 |
+
var dist_index_js_ = __webpack_require__(17592);
|
| 174 |
+
;// CONCATENATED MODULE: ../node_modules/@codemirror/lang-rust/dist/index.js
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
/**
|
| 179 |
+
A syntax provider based on the [Lezer Rust
|
| 180 |
+
parser](https://github.com/lezer-parser/rust), extended with
|
| 181 |
+
highlighting and indentation information.
|
| 182 |
+
*/
|
| 183 |
+
const rustLanguage = /*@__PURE__*/dist_index_js_.LRLanguage.define({
|
| 184 |
+
name: "rust",
|
| 185 |
+
parser: /*@__PURE__*/parser.configure({
|
| 186 |
+
props: [
|
| 187 |
+
/*@__PURE__*/dist_index_js_.indentNodeProp.add({
|
| 188 |
+
IfExpression: /*@__PURE__*/(0,dist_index_js_.continuedIndent)({ except: /^\s*({|else\b)/ }),
|
| 189 |
+
"String BlockComment": () => null,
|
| 190 |
+
"AttributeItem": cx => cx.continue(),
|
| 191 |
+
"Statement MatchArm": /*@__PURE__*/(0,dist_index_js_.continuedIndent)()
|
| 192 |
+
}),
|
| 193 |
+
/*@__PURE__*/dist_index_js_.foldNodeProp.add(type => {
|
| 194 |
+
if (/(Block|edTokens|List)$/.test(type.name))
|
| 195 |
+
return dist_index_js_.foldInside;
|
| 196 |
+
if (type.name == "BlockComment")
|
| 197 |
+
return tree => ({ from: tree.from + 2, to: tree.to - 2 });
|
| 198 |
+
return undefined;
|
| 199 |
+
})
|
| 200 |
+
]
|
| 201 |
+
}),
|
| 202 |
+
languageData: {
|
| 203 |
+
commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
|
| 204 |
+
indentOnInput: /^\s*(?:\{|\})$/,
|
| 205 |
+
closeBrackets: { stringPrefixes: ["b", "r", "br"] }
|
| 206 |
+
}
|
| 207 |
+
});
|
| 208 |
+
/**
|
| 209 |
+
Rust language support
|
| 210 |
+
*/
|
| 211 |
+
function rust() {
|
| 212 |
+
return new dist_index_js_.LanguageSupport(rustLanguage);
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
/***/ })
|
| 219 |
+
|
| 220 |
+
}]);
|
| 221 |
+
//# sourceMappingURL=6972.4f4bba5ad7b70084412f.js.map?v=4f4bba5ad7b70084412f
|
vlmpy310/lib/python3.10/site-packages/notebook/static/7022.ada0a27a1f0d61d90ee8.js
ADDED
|
@@ -0,0 +1,364 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[7022],{
|
| 3 |
+
|
| 4 |
+
/***/ 47022:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ fSharp: () => (/* binding */ fSharp),
|
| 10 |
+
/* harmony export */ oCaml: () => (/* binding */ oCaml),
|
| 11 |
+
/* harmony export */ sml: () => (/* binding */ sml)
|
| 12 |
+
/* harmony export */ });
|
| 13 |
+
function mlLike(parserConfig) {
|
| 14 |
+
var words = {
|
| 15 |
+
'as': 'keyword',
|
| 16 |
+
'do': 'keyword',
|
| 17 |
+
'else': 'keyword',
|
| 18 |
+
'end': 'keyword',
|
| 19 |
+
'exception': 'keyword',
|
| 20 |
+
'fun': 'keyword',
|
| 21 |
+
'functor': 'keyword',
|
| 22 |
+
'if': 'keyword',
|
| 23 |
+
'in': 'keyword',
|
| 24 |
+
'include': 'keyword',
|
| 25 |
+
'let': 'keyword',
|
| 26 |
+
'of': 'keyword',
|
| 27 |
+
'open': 'keyword',
|
| 28 |
+
'rec': 'keyword',
|
| 29 |
+
'struct': 'keyword',
|
| 30 |
+
'then': 'keyword',
|
| 31 |
+
'type': 'keyword',
|
| 32 |
+
'val': 'keyword',
|
| 33 |
+
'while': 'keyword',
|
| 34 |
+
'with': 'keyword'
|
| 35 |
+
};
|
| 36 |
+
|
| 37 |
+
var extraWords = parserConfig.extraWords || {};
|
| 38 |
+
for (var prop in extraWords) {
|
| 39 |
+
if (extraWords.hasOwnProperty(prop)) {
|
| 40 |
+
words[prop] = parserConfig.extraWords[prop];
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
var hintWords = [];
|
| 44 |
+
for (var k in words) { hintWords.push(k); }
|
| 45 |
+
|
| 46 |
+
function tokenBase(stream, state) {
|
| 47 |
+
var ch = stream.next();
|
| 48 |
+
|
| 49 |
+
if (ch === '"') {
|
| 50 |
+
state.tokenize = tokenString;
|
| 51 |
+
return state.tokenize(stream, state);
|
| 52 |
+
}
|
| 53 |
+
if (ch === '{') {
|
| 54 |
+
if (stream.eat('|')) {
|
| 55 |
+
state.longString = true;
|
| 56 |
+
state.tokenize = tokenLongString;
|
| 57 |
+
return state.tokenize(stream, state);
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
if (ch === '(') {
|
| 61 |
+
if (stream.match(/^\*(?!\))/)) {
|
| 62 |
+
state.commentLevel++;
|
| 63 |
+
state.tokenize = tokenComment;
|
| 64 |
+
return state.tokenize(stream, state);
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
if (ch === '~' || ch === '?') {
|
| 68 |
+
stream.eatWhile(/\w/);
|
| 69 |
+
return 'variableName.special';
|
| 70 |
+
}
|
| 71 |
+
if (ch === '`') {
|
| 72 |
+
stream.eatWhile(/\w/);
|
| 73 |
+
return 'quote';
|
| 74 |
+
}
|
| 75 |
+
if (ch === '/' && parserConfig.slashComments && stream.eat('/')) {
|
| 76 |
+
stream.skipToEnd();
|
| 77 |
+
return 'comment';
|
| 78 |
+
}
|
| 79 |
+
if (/\d/.test(ch)) {
|
| 80 |
+
if (ch === '0' && stream.eat(/[bB]/)) {
|
| 81 |
+
stream.eatWhile(/[01]/);
|
| 82 |
+
} if (ch === '0' && stream.eat(/[xX]/)) {
|
| 83 |
+
stream.eatWhile(/[0-9a-fA-F]/)
|
| 84 |
+
} if (ch === '0' && stream.eat(/[oO]/)) {
|
| 85 |
+
stream.eatWhile(/[0-7]/);
|
| 86 |
+
} else {
|
| 87 |
+
stream.eatWhile(/[\d_]/);
|
| 88 |
+
if (stream.eat('.')) {
|
| 89 |
+
stream.eatWhile(/[\d]/);
|
| 90 |
+
}
|
| 91 |
+
if (stream.eat(/[eE]/)) {
|
| 92 |
+
stream.eatWhile(/[\d\-+]/);
|
| 93 |
+
}
|
| 94 |
+
}
|
| 95 |
+
return 'number';
|
| 96 |
+
}
|
| 97 |
+
if ( /[+\-*&%=<>!?|@\.~:]/.test(ch)) {
|
| 98 |
+
return 'operator';
|
| 99 |
+
}
|
| 100 |
+
if (/[\w\xa1-\uffff]/.test(ch)) {
|
| 101 |
+
stream.eatWhile(/[\w\xa1-\uffff]/);
|
| 102 |
+
var cur = stream.current();
|
| 103 |
+
return words.hasOwnProperty(cur) ? words[cur] : 'variable';
|
| 104 |
+
}
|
| 105 |
+
return null
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
function tokenString(stream, state) {
|
| 109 |
+
var next, end = false, escaped = false;
|
| 110 |
+
while ((next = stream.next()) != null) {
|
| 111 |
+
if (next === '"' && !escaped) {
|
| 112 |
+
end = true;
|
| 113 |
+
break;
|
| 114 |
+
}
|
| 115 |
+
escaped = !escaped && next === '\\';
|
| 116 |
+
}
|
| 117 |
+
if (end && !escaped) {
|
| 118 |
+
state.tokenize = tokenBase;
|
| 119 |
+
}
|
| 120 |
+
return 'string';
|
| 121 |
+
};
|
| 122 |
+
|
| 123 |
+
function tokenComment(stream, state) {
|
| 124 |
+
var prev, next;
|
| 125 |
+
while(state.commentLevel > 0 && (next = stream.next()) != null) {
|
| 126 |
+
if (prev === '(' && next === '*') state.commentLevel++;
|
| 127 |
+
if (prev === '*' && next === ')') state.commentLevel--;
|
| 128 |
+
prev = next;
|
| 129 |
+
}
|
| 130 |
+
if (state.commentLevel <= 0) {
|
| 131 |
+
state.tokenize = tokenBase;
|
| 132 |
+
}
|
| 133 |
+
return 'comment';
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
function tokenLongString(stream, state) {
|
| 137 |
+
var prev, next;
|
| 138 |
+
while (state.longString && (next = stream.next()) != null) {
|
| 139 |
+
if (prev === '|' && next === '}') state.longString = false;
|
| 140 |
+
prev = next;
|
| 141 |
+
}
|
| 142 |
+
if (!state.longString) {
|
| 143 |
+
state.tokenize = tokenBase;
|
| 144 |
+
}
|
| 145 |
+
return 'string';
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
return {
|
| 149 |
+
startState: function() {return {tokenize: tokenBase, commentLevel: 0, longString: false};},
|
| 150 |
+
token: function(stream, state) {
|
| 151 |
+
if (stream.eatSpace()) return null;
|
| 152 |
+
return state.tokenize(stream, state);
|
| 153 |
+
},
|
| 154 |
+
|
| 155 |
+
languageData: {
|
| 156 |
+
autocomplete: hintWords,
|
| 157 |
+
commentTokens: {
|
| 158 |
+
line: parserConfig.slashComments ? "//" : undefined,
|
| 159 |
+
block: {open: "(*", close: "*)"}
|
| 160 |
+
}
|
| 161 |
+
}
|
| 162 |
+
};
|
| 163 |
+
};
|
| 164 |
+
|
| 165 |
+
const oCaml = mlLike({
|
| 166 |
+
name: "ocaml",
|
| 167 |
+
extraWords: {
|
| 168 |
+
'and': 'keyword',
|
| 169 |
+
'assert': 'keyword',
|
| 170 |
+
'begin': 'keyword',
|
| 171 |
+
'class': 'keyword',
|
| 172 |
+
'constraint': 'keyword',
|
| 173 |
+
'done': 'keyword',
|
| 174 |
+
'downto': 'keyword',
|
| 175 |
+
'external': 'keyword',
|
| 176 |
+
'function': 'keyword',
|
| 177 |
+
'initializer': 'keyword',
|
| 178 |
+
'lazy': 'keyword',
|
| 179 |
+
'match': 'keyword',
|
| 180 |
+
'method': 'keyword',
|
| 181 |
+
'module': 'keyword',
|
| 182 |
+
'mutable': 'keyword',
|
| 183 |
+
'new': 'keyword',
|
| 184 |
+
'nonrec': 'keyword',
|
| 185 |
+
'object': 'keyword',
|
| 186 |
+
'private': 'keyword',
|
| 187 |
+
'sig': 'keyword',
|
| 188 |
+
'to': 'keyword',
|
| 189 |
+
'try': 'keyword',
|
| 190 |
+
'value': 'keyword',
|
| 191 |
+
'virtual': 'keyword',
|
| 192 |
+
'when': 'keyword',
|
| 193 |
+
|
| 194 |
+
// builtins
|
| 195 |
+
'raise': 'builtin',
|
| 196 |
+
'failwith': 'builtin',
|
| 197 |
+
'true': 'builtin',
|
| 198 |
+
'false': 'builtin',
|
| 199 |
+
|
| 200 |
+
// Pervasives builtins
|
| 201 |
+
'asr': 'builtin',
|
| 202 |
+
'land': 'builtin',
|
| 203 |
+
'lor': 'builtin',
|
| 204 |
+
'lsl': 'builtin',
|
| 205 |
+
'lsr': 'builtin',
|
| 206 |
+
'lxor': 'builtin',
|
| 207 |
+
'mod': 'builtin',
|
| 208 |
+
'or': 'builtin',
|
| 209 |
+
|
| 210 |
+
// More Pervasives
|
| 211 |
+
'raise_notrace': 'builtin',
|
| 212 |
+
'trace': 'builtin',
|
| 213 |
+
'exit': 'builtin',
|
| 214 |
+
'print_string': 'builtin',
|
| 215 |
+
'print_endline': 'builtin',
|
| 216 |
+
|
| 217 |
+
'int': 'type',
|
| 218 |
+
'float': 'type',
|
| 219 |
+
'bool': 'type',
|
| 220 |
+
'char': 'type',
|
| 221 |
+
'string': 'type',
|
| 222 |
+
'unit': 'type',
|
| 223 |
+
|
| 224 |
+
// Modules
|
| 225 |
+
'List': 'builtin'
|
| 226 |
+
}
|
| 227 |
+
});
|
| 228 |
+
|
| 229 |
+
const fSharp = mlLike({
|
| 230 |
+
name: "fsharp",
|
| 231 |
+
extraWords: {
|
| 232 |
+
'abstract': 'keyword',
|
| 233 |
+
'assert': 'keyword',
|
| 234 |
+
'base': 'keyword',
|
| 235 |
+
'begin': 'keyword',
|
| 236 |
+
'class': 'keyword',
|
| 237 |
+
'default': 'keyword',
|
| 238 |
+
'delegate': 'keyword',
|
| 239 |
+
'do!': 'keyword',
|
| 240 |
+
'done': 'keyword',
|
| 241 |
+
'downcast': 'keyword',
|
| 242 |
+
'downto': 'keyword',
|
| 243 |
+
'elif': 'keyword',
|
| 244 |
+
'extern': 'keyword',
|
| 245 |
+
'finally': 'keyword',
|
| 246 |
+
'for': 'keyword',
|
| 247 |
+
'function': 'keyword',
|
| 248 |
+
'global': 'keyword',
|
| 249 |
+
'inherit': 'keyword',
|
| 250 |
+
'inline': 'keyword',
|
| 251 |
+
'interface': 'keyword',
|
| 252 |
+
'internal': 'keyword',
|
| 253 |
+
'lazy': 'keyword',
|
| 254 |
+
'let!': 'keyword',
|
| 255 |
+
'match': 'keyword',
|
| 256 |
+
'member': 'keyword',
|
| 257 |
+
'module': 'keyword',
|
| 258 |
+
'mutable': 'keyword',
|
| 259 |
+
'namespace': 'keyword',
|
| 260 |
+
'new': 'keyword',
|
| 261 |
+
'null': 'keyword',
|
| 262 |
+
'override': 'keyword',
|
| 263 |
+
'private': 'keyword',
|
| 264 |
+
'public': 'keyword',
|
| 265 |
+
'return!': 'keyword',
|
| 266 |
+
'return': 'keyword',
|
| 267 |
+
'select': 'keyword',
|
| 268 |
+
'static': 'keyword',
|
| 269 |
+
'to': 'keyword',
|
| 270 |
+
'try': 'keyword',
|
| 271 |
+
'upcast': 'keyword',
|
| 272 |
+
'use!': 'keyword',
|
| 273 |
+
'use': 'keyword',
|
| 274 |
+
'void': 'keyword',
|
| 275 |
+
'when': 'keyword',
|
| 276 |
+
'yield!': 'keyword',
|
| 277 |
+
'yield': 'keyword',
|
| 278 |
+
|
| 279 |
+
// Reserved words
|
| 280 |
+
'atomic': 'keyword',
|
| 281 |
+
'break': 'keyword',
|
| 282 |
+
'checked': 'keyword',
|
| 283 |
+
'component': 'keyword',
|
| 284 |
+
'const': 'keyword',
|
| 285 |
+
'constraint': 'keyword',
|
| 286 |
+
'constructor': 'keyword',
|
| 287 |
+
'continue': 'keyword',
|
| 288 |
+
'eager': 'keyword',
|
| 289 |
+
'event': 'keyword',
|
| 290 |
+
'external': 'keyword',
|
| 291 |
+
'fixed': 'keyword',
|
| 292 |
+
'method': 'keyword',
|
| 293 |
+
'mixin': 'keyword',
|
| 294 |
+
'object': 'keyword',
|
| 295 |
+
'parallel': 'keyword',
|
| 296 |
+
'process': 'keyword',
|
| 297 |
+
'protected': 'keyword',
|
| 298 |
+
'pure': 'keyword',
|
| 299 |
+
'sealed': 'keyword',
|
| 300 |
+
'tailcall': 'keyword',
|
| 301 |
+
'trait': 'keyword',
|
| 302 |
+
'virtual': 'keyword',
|
| 303 |
+
'volatile': 'keyword',
|
| 304 |
+
|
| 305 |
+
// builtins
|
| 306 |
+
'List': 'builtin',
|
| 307 |
+
'Seq': 'builtin',
|
| 308 |
+
'Map': 'builtin',
|
| 309 |
+
'Set': 'builtin',
|
| 310 |
+
'Option': 'builtin',
|
| 311 |
+
'int': 'builtin',
|
| 312 |
+
'string': 'builtin',
|
| 313 |
+
'not': 'builtin',
|
| 314 |
+
'true': 'builtin',
|
| 315 |
+
'false': 'builtin',
|
| 316 |
+
|
| 317 |
+
'raise': 'builtin',
|
| 318 |
+
'failwith': 'builtin'
|
| 319 |
+
},
|
| 320 |
+
slashComments: true
|
| 321 |
+
});
|
| 322 |
+
|
| 323 |
+
const sml = mlLike({
|
| 324 |
+
name: "sml",
|
| 325 |
+
extraWords: {
|
| 326 |
+
'abstype': 'keyword',
|
| 327 |
+
'and': 'keyword',
|
| 328 |
+
'andalso': 'keyword',
|
| 329 |
+
'case': 'keyword',
|
| 330 |
+
'datatype': 'keyword',
|
| 331 |
+
'fn': 'keyword',
|
| 332 |
+
'handle': 'keyword',
|
| 333 |
+
'infix': 'keyword',
|
| 334 |
+
'infixr': 'keyword',
|
| 335 |
+
'local': 'keyword',
|
| 336 |
+
'nonfix': 'keyword',
|
| 337 |
+
'op': 'keyword',
|
| 338 |
+
'orelse': 'keyword',
|
| 339 |
+
'raise': 'keyword',
|
| 340 |
+
'withtype': 'keyword',
|
| 341 |
+
'eqtype': 'keyword',
|
| 342 |
+
'sharing': 'keyword',
|
| 343 |
+
'sig': 'keyword',
|
| 344 |
+
'signature': 'keyword',
|
| 345 |
+
'structure': 'keyword',
|
| 346 |
+
'where': 'keyword',
|
| 347 |
+
'true': 'keyword',
|
| 348 |
+
'false': 'keyword',
|
| 349 |
+
|
| 350 |
+
// types
|
| 351 |
+
'int': 'builtin',
|
| 352 |
+
'real': 'builtin',
|
| 353 |
+
'string': 'builtin',
|
| 354 |
+
'char': 'builtin',
|
| 355 |
+
'bool': 'builtin'
|
| 356 |
+
},
|
| 357 |
+
slashComments: true
|
| 358 |
+
});
|
| 359 |
+
|
| 360 |
+
|
| 361 |
+
/***/ })
|
| 362 |
+
|
| 363 |
+
}]);
|
| 364 |
+
//# sourceMappingURL=7022.ada0a27a1f0d61d90ee8.js.map?v=ada0a27a1f0d61d90ee8
|
vlmpy310/lib/python3.10/site-packages/notebook/static/7054.093d48fae797c6c33872.js
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[7054],{
|
| 3 |
+
|
| 4 |
+
/***/ 27054:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ tiddlyWiki: () => (/* binding */ tiddlyWiki)
|
| 10 |
+
/* harmony export */ });
|
| 11 |
+
// Tokenizer
|
| 12 |
+
var textwords = {};
|
| 13 |
+
|
| 14 |
+
var keywords = {
|
| 15 |
+
"allTags": true, "closeAll": true, "list": true,
|
| 16 |
+
"newJournal": true, "newTiddler": true,
|
| 17 |
+
"permaview": true, "saveChanges": true,
|
| 18 |
+
"search": true, "slider": true, "tabs": true,
|
| 19 |
+
"tag": true, "tagging": true, "tags": true,
|
| 20 |
+
"tiddler": true, "timeline": true,
|
| 21 |
+
"today": true, "version": true, "option": true,
|
| 22 |
+
"with": true, "filter": true
|
| 23 |
+
};
|
| 24 |
+
|
| 25 |
+
var isSpaceName = /[\w_\-]/i,
|
| 26 |
+
reHR = /^\-\-\-\-+$/, // <hr>
|
| 27 |
+
reWikiCommentStart = /^\/\*\*\*$/, // /***
|
| 28 |
+
reWikiCommentStop = /^\*\*\*\/$/, // ***/
|
| 29 |
+
reBlockQuote = /^<<<$/,
|
| 30 |
+
|
| 31 |
+
reJsCodeStart = /^\/\/\{\{\{$/, // //{{{ js block start
|
| 32 |
+
reJsCodeStop = /^\/\/\}\}\}$/, // //}}} js stop
|
| 33 |
+
reXmlCodeStart = /^<!--\{\{\{-->$/, // xml block start
|
| 34 |
+
reXmlCodeStop = /^<!--\}\}\}-->$/, // xml stop
|
| 35 |
+
|
| 36 |
+
reCodeBlockStart = /^\{\{\{$/, // {{{ TW text div block start
|
| 37 |
+
reCodeBlockStop = /^\}\}\}$/, // }}} TW text stop
|
| 38 |
+
|
| 39 |
+
reUntilCodeStop = /.*?\}\}\}/;
|
| 40 |
+
|
| 41 |
+
function chain(stream, state, f) {
|
| 42 |
+
state.tokenize = f;
|
| 43 |
+
return f(stream, state);
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
function tokenBase(stream, state) {
|
| 47 |
+
var sol = stream.sol(), ch = stream.peek();
|
| 48 |
+
|
| 49 |
+
state.block = false; // indicates the start of a code block.
|
| 50 |
+
|
| 51 |
+
// check start of blocks
|
| 52 |
+
if (sol && /[<\/\*{}\-]/.test(ch)) {
|
| 53 |
+
if (stream.match(reCodeBlockStart)) {
|
| 54 |
+
state.block = true;
|
| 55 |
+
return chain(stream, state, twTokenCode);
|
| 56 |
+
}
|
| 57 |
+
if (stream.match(reBlockQuote))
|
| 58 |
+
return 'quote';
|
| 59 |
+
if (stream.match(reWikiCommentStart) || stream.match(reWikiCommentStop))
|
| 60 |
+
return 'comment';
|
| 61 |
+
if (stream.match(reJsCodeStart) || stream.match(reJsCodeStop) || stream.match(reXmlCodeStart) || stream.match(reXmlCodeStop))
|
| 62 |
+
return 'comment';
|
| 63 |
+
if (stream.match(reHR))
|
| 64 |
+
return 'contentSeparator';
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
stream.next();
|
| 68 |
+
if (sol && /[\/\*!#;:>|]/.test(ch)) {
|
| 69 |
+
if (ch == "!") { // tw header
|
| 70 |
+
stream.skipToEnd();
|
| 71 |
+
return "header";
|
| 72 |
+
}
|
| 73 |
+
if (ch == "*") { // tw list
|
| 74 |
+
stream.eatWhile('*');
|
| 75 |
+
return "comment";
|
| 76 |
+
}
|
| 77 |
+
if (ch == "#") { // tw numbered list
|
| 78 |
+
stream.eatWhile('#');
|
| 79 |
+
return "comment";
|
| 80 |
+
}
|
| 81 |
+
if (ch == ";") { // definition list, term
|
| 82 |
+
stream.eatWhile(';');
|
| 83 |
+
return "comment";
|
| 84 |
+
}
|
| 85 |
+
if (ch == ":") { // definition list, description
|
| 86 |
+
stream.eatWhile(':');
|
| 87 |
+
return "comment";
|
| 88 |
+
}
|
| 89 |
+
if (ch == ">") { // single line quote
|
| 90 |
+
stream.eatWhile(">");
|
| 91 |
+
return "quote";
|
| 92 |
+
}
|
| 93 |
+
if (ch == '|')
|
| 94 |
+
return 'header';
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
if (ch == '{' && stream.match('{{'))
|
| 98 |
+
return chain(stream, state, twTokenCode);
|
| 99 |
+
|
| 100 |
+
// rudimentary html:// file:// link matching. TW knows much more ...
|
| 101 |
+
if (/[hf]/i.test(ch) &&
|
| 102 |
+
/[ti]/i.test(stream.peek()) &&
|
| 103 |
+
stream.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))
|
| 104 |
+
return "link";
|
| 105 |
+
|
| 106 |
+
// just a little string indicator, don't want to have the whole string covered
|
| 107 |
+
if (ch == '"')
|
| 108 |
+
return 'string';
|
| 109 |
+
|
| 110 |
+
if (ch == '~') // _no_ CamelCase indicator should be bold
|
| 111 |
+
return 'brace';
|
| 112 |
+
|
| 113 |
+
if (/[\[\]]/.test(ch) && stream.match(ch)) // check for [[..]]
|
| 114 |
+
return 'brace';
|
| 115 |
+
|
| 116 |
+
if (ch == "@") { // check for space link. TODO fix @@...@@ highlighting
|
| 117 |
+
stream.eatWhile(isSpaceName);
|
| 118 |
+
return "link";
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
if (/\d/.test(ch)) { // numbers
|
| 122 |
+
stream.eatWhile(/\d/);
|
| 123 |
+
return "number";
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
if (ch == "/") { // tw invisible comment
|
| 127 |
+
if (stream.eat("%")) {
|
| 128 |
+
return chain(stream, state, twTokenComment);
|
| 129 |
+
} else if (stream.eat("/")) { //
|
| 130 |
+
return chain(stream, state, twTokenEm);
|
| 131 |
+
}
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
if (ch == "_" && stream.eat("_")) // tw underline
|
| 135 |
+
return chain(stream, state, twTokenUnderline);
|
| 136 |
+
|
| 137 |
+
// strikethrough and mdash handling
|
| 138 |
+
if (ch == "-" && stream.eat("-")) {
|
| 139 |
+
// if strikethrough looks ugly, change CSS.
|
| 140 |
+
if (stream.peek() != ' ')
|
| 141 |
+
return chain(stream, state, twTokenStrike);
|
| 142 |
+
// mdash
|
| 143 |
+
if (stream.peek() == ' ')
|
| 144 |
+
return 'brace';
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
if (ch == "'" && stream.eat("'")) // tw bold
|
| 148 |
+
return chain(stream, state, twTokenStrong);
|
| 149 |
+
|
| 150 |
+
if (ch == "<" && stream.eat("<")) // tw macro
|
| 151 |
+
return chain(stream, state, twTokenMacro);
|
| 152 |
+
|
| 153 |
+
// core macro handling
|
| 154 |
+
stream.eatWhile(/[\w\$_]/);
|
| 155 |
+
return textwords.propertyIsEnumerable(stream.current()) ? "keyword" : null
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
// tw invisible comment
|
| 159 |
+
function twTokenComment(stream, state) {
|
| 160 |
+
var maybeEnd = false, ch;
|
| 161 |
+
while (ch = stream.next()) {
|
| 162 |
+
if (ch == "/" && maybeEnd) {
|
| 163 |
+
state.tokenize = tokenBase;
|
| 164 |
+
break;
|
| 165 |
+
}
|
| 166 |
+
maybeEnd = (ch == "%");
|
| 167 |
+
}
|
| 168 |
+
return "comment";
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
// tw strong / bold
|
| 172 |
+
function twTokenStrong(stream, state) {
|
| 173 |
+
var maybeEnd = false,
|
| 174 |
+
ch;
|
| 175 |
+
while (ch = stream.next()) {
|
| 176 |
+
if (ch == "'" && maybeEnd) {
|
| 177 |
+
state.tokenize = tokenBase;
|
| 178 |
+
break;
|
| 179 |
+
}
|
| 180 |
+
maybeEnd = (ch == "'");
|
| 181 |
+
}
|
| 182 |
+
return "strong";
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
// tw code
|
| 186 |
+
function twTokenCode(stream, state) {
|
| 187 |
+
var sb = state.block;
|
| 188 |
+
|
| 189 |
+
if (sb && stream.current()) {
|
| 190 |
+
return "comment";
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
if (!sb && stream.match(reUntilCodeStop)) {
|
| 194 |
+
state.tokenize = tokenBase;
|
| 195 |
+
return "comment";
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
if (sb && stream.sol() && stream.match(reCodeBlockStop)) {
|
| 199 |
+
state.tokenize = tokenBase;
|
| 200 |
+
return "comment";
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
stream.next();
|
| 204 |
+
return "comment";
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
// tw em / italic
|
| 208 |
+
function twTokenEm(stream, state) {
|
| 209 |
+
var maybeEnd = false,
|
| 210 |
+
ch;
|
| 211 |
+
while (ch = stream.next()) {
|
| 212 |
+
if (ch == "/" && maybeEnd) {
|
| 213 |
+
state.tokenize = tokenBase;
|
| 214 |
+
break;
|
| 215 |
+
}
|
| 216 |
+
maybeEnd = (ch == "/");
|
| 217 |
+
}
|
| 218 |
+
return "emphasis";
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
// tw underlined text
|
| 222 |
+
function twTokenUnderline(stream, state) {
|
| 223 |
+
var maybeEnd = false,
|
| 224 |
+
ch;
|
| 225 |
+
while (ch = stream.next()) {
|
| 226 |
+
if (ch == "_" && maybeEnd) {
|
| 227 |
+
state.tokenize = tokenBase;
|
| 228 |
+
break;
|
| 229 |
+
}
|
| 230 |
+
maybeEnd = (ch == "_");
|
| 231 |
+
}
|
| 232 |
+
return "link";
|
| 233 |
+
}
|
| 234 |
+
|
| 235 |
+
// tw strike through text looks ugly
|
| 236 |
+
// change CSS if needed
|
| 237 |
+
function twTokenStrike(stream, state) {
|
| 238 |
+
var maybeEnd = false, ch;
|
| 239 |
+
|
| 240 |
+
while (ch = stream.next()) {
|
| 241 |
+
if (ch == "-" && maybeEnd) {
|
| 242 |
+
state.tokenize = tokenBase;
|
| 243 |
+
break;
|
| 244 |
+
}
|
| 245 |
+
maybeEnd = (ch == "-");
|
| 246 |
+
}
|
| 247 |
+
return "deleted";
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
// macro
|
| 251 |
+
function twTokenMacro(stream, state) {
|
| 252 |
+
if (stream.current() == '<<') {
|
| 253 |
+
return 'meta';
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
var ch = stream.next();
|
| 257 |
+
if (!ch) {
|
| 258 |
+
state.tokenize = tokenBase;
|
| 259 |
+
return null;
|
| 260 |
+
}
|
| 261 |
+
if (ch == ">") {
|
| 262 |
+
if (stream.peek() == '>') {
|
| 263 |
+
stream.next();
|
| 264 |
+
state.tokenize = tokenBase;
|
| 265 |
+
return "meta";
|
| 266 |
+
}
|
| 267 |
+
}
|
| 268 |
+
|
| 269 |
+
stream.eatWhile(/[\w\$_]/);
|
| 270 |
+
return keywords.propertyIsEnumerable(stream.current()) ? "keyword" : null
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
// Interface
|
| 274 |
+
const tiddlyWiki = {
|
| 275 |
+
name: "tiddlywiki",
|
| 276 |
+
|
| 277 |
+
startState: function () {
|
| 278 |
+
return {tokenize: tokenBase};
|
| 279 |
+
},
|
| 280 |
+
|
| 281 |
+
token: function (stream, state) {
|
| 282 |
+
if (stream.eatSpace()) return null;
|
| 283 |
+
var style = state.tokenize(stream, state);
|
| 284 |
+
return style;
|
| 285 |
+
}
|
| 286 |
+
};
|
| 287 |
+
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
/***/ })
|
| 291 |
+
|
| 292 |
+
}]);
|
| 293 |
+
//# sourceMappingURL=7054.093d48fae797c6c33872.js.map?v=093d48fae797c6c33872
|
vlmpy310/lib/python3.10/site-packages/notebook/static/7054.093d48fae797c6c33872.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"7054.093d48fae797c6c33872.js?v=093d48fae797c6c33872","mappings":";;;;;;;;;;AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,4BAA4B,EAAE,EAAE,mCAAmC;AACnE,2BAA2B,EAAE,EAAE,oCAAoC;AACnE,6BAA6B,EAAE,EAAE;AACjC,4BAA4B,EAAE,EAAE;;AAEhC,2BAA2B,EAAE,EAAE,kCAAkC;AACjE,0BAA0B,EAAE,EAAE,2BAA2B;;AAEzD,4BAA4B,EAAE,EAAE;;AAEhC;AACA;AACA;AACA;;AAEA;AACA;;AAEA,8BAA8B;;AAE9B;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sBAAsB;AACtB,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,gBAAgB,KAAK;AACrB,wBAAwB;AACxB;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;;AAEA,cAAc,qBAAqB;AACnC;;AAEA;AACA;AACA;AACA,oEAAoE;AACpE;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,sBAAsB;AACtB;AACA;AACA;;AAEA,8BAA8B;AAC9B;AACA;AACA;;AAEA,mBAAmB;AACnB;AACA;AACA,MAAM,4BAA4B;AAClC;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACO;AACP;;AAEA;AACA,YAAY;AACZ,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/@codemirror/legacy-modes/mode/tiddlywiki.js"],"sourcesContent":["// Tokenizer\nvar textwords = {};\n\nvar keywords = {\n \"allTags\": true, \"closeAll\": true, \"list\": true,\n \"newJournal\": true, \"newTiddler\": true,\n \"permaview\": true, \"saveChanges\": true,\n \"search\": true, \"slider\": true, \"tabs\": true,\n \"tag\": true, \"tagging\": true, \"tags\": true,\n \"tiddler\": true, \"timeline\": true,\n \"today\": true, \"version\": true, \"option\": true,\n \"with\": true, \"filter\": true\n};\n\nvar isSpaceName = /[\\w_\\-]/i,\n reHR = /^\\-\\-\\-\\-+$/, // <hr>\n reWikiCommentStart = /^\\/\\*\\*\\*$/, // /***\n reWikiCommentStop = /^\\*\\*\\*\\/$/, // ***/\n reBlockQuote = /^<<<$/,\n\n reJsCodeStart = /^\\/\\/\\{\\{\\{$/, // //{{{ js block start\n reJsCodeStop = /^\\/\\/\\}\\}\\}$/, // //}}} js stop\n reXmlCodeStart = /^<!--\\{\\{\\{-->$/, // xml block start\n reXmlCodeStop = /^<!--\\}\\}\\}-->$/, // xml stop\n\n reCodeBlockStart = /^\\{\\{\\{$/, // {{{ TW text div block start\n reCodeBlockStop = /^\\}\\}\\}$/, // }}} TW text stop\n\n reUntilCodeStop = /.*?\\}\\}\\}/;\n\nfunction chain(stream, state, f) {\n state.tokenize = f;\n return f(stream, state);\n}\n\nfunction tokenBase(stream, state) {\n var sol = stream.sol(), ch = stream.peek();\n\n state.block = false; // indicates the start of a code block.\n\n // check start of blocks\n if (sol && /[<\\/\\*{}\\-]/.test(ch)) {\n if (stream.match(reCodeBlockStart)) {\n state.block = true;\n return chain(stream, state, twTokenCode);\n }\n if (stream.match(reBlockQuote))\n return 'quote';\n if (stream.match(reWikiCommentStart) || stream.match(reWikiCommentStop))\n return 'comment';\n if (stream.match(reJsCodeStart) || stream.match(reJsCodeStop) || stream.match(reXmlCodeStart) || stream.match(reXmlCodeStop))\n return 'comment';\n if (stream.match(reHR))\n return 'contentSeparator';\n }\n\n stream.next();\n if (sol && /[\\/\\*!#;:>|]/.test(ch)) {\n if (ch == \"!\") { // tw header\n stream.skipToEnd();\n return \"header\";\n }\n if (ch == \"*\") { // tw list\n stream.eatWhile('*');\n return \"comment\";\n }\n if (ch == \"#\") { // tw numbered list\n stream.eatWhile('#');\n return \"comment\";\n }\n if (ch == \";\") { // definition list, term\n stream.eatWhile(';');\n return \"comment\";\n }\n if (ch == \":\") { // definition list, description\n stream.eatWhile(':');\n return \"comment\";\n }\n if (ch == \">\") { // single line quote\n stream.eatWhile(\">\");\n return \"quote\";\n }\n if (ch == '|')\n return 'header';\n }\n\n if (ch == '{' && stream.match('{{'))\n return chain(stream, state, twTokenCode);\n\n // rudimentary html:// file:// link matching. TW knows much more ...\n if (/[hf]/i.test(ch) &&\n /[ti]/i.test(stream.peek()) &&\n stream.match(/\\b(ttps?|tp|ile):\\/\\/[\\-A-Z0-9+&@#\\/%?=~_|$!:,.;]*[A-Z0-9+&@#\\/%=~_|$]/i))\n return \"link\";\n\n // just a little string indicator, don't want to have the whole string covered\n if (ch == '\"')\n return 'string';\n\n if (ch == '~') // _no_ CamelCase indicator should be bold\n return 'brace';\n\n if (/[\\[\\]]/.test(ch) && stream.match(ch)) // check for [[..]]\n return 'brace';\n\n if (ch == \"@\") { // check for space link. TODO fix @@...@@ highlighting\n stream.eatWhile(isSpaceName);\n return \"link\";\n }\n\n if (/\\d/.test(ch)) { // numbers\n stream.eatWhile(/\\d/);\n return \"number\";\n }\n\n if (ch == \"/\") { // tw invisible comment\n if (stream.eat(\"%\")) {\n return chain(stream, state, twTokenComment);\n } else if (stream.eat(\"/\")) { //\n return chain(stream, state, twTokenEm);\n }\n }\n\n if (ch == \"_\" && stream.eat(\"_\")) // tw underline\n return chain(stream, state, twTokenUnderline);\n\n // strikethrough and mdash handling\n if (ch == \"-\" && stream.eat(\"-\")) {\n // if strikethrough looks ugly, change CSS.\n if (stream.peek() != ' ')\n return chain(stream, state, twTokenStrike);\n // mdash\n if (stream.peek() == ' ')\n return 'brace';\n }\n\n if (ch == \"'\" && stream.eat(\"'\")) // tw bold\n return chain(stream, state, twTokenStrong);\n\n if (ch == \"<\" && stream.eat(\"<\")) // tw macro\n return chain(stream, state, twTokenMacro);\n\n // core macro handling\n stream.eatWhile(/[\\w\\$_]/);\n return textwords.propertyIsEnumerable(stream.current()) ? \"keyword\" : null\n}\n\n// tw invisible comment\nfunction twTokenComment(stream, state) {\n var maybeEnd = false, ch;\n while (ch = stream.next()) {\n if (ch == \"/\" && maybeEnd) {\n state.tokenize = tokenBase;\n break;\n }\n maybeEnd = (ch == \"%\");\n }\n return \"comment\";\n}\n\n// tw strong / bold\nfunction twTokenStrong(stream, state) {\n var maybeEnd = false,\n ch;\n while (ch = stream.next()) {\n if (ch == \"'\" && maybeEnd) {\n state.tokenize = tokenBase;\n break;\n }\n maybeEnd = (ch == \"'\");\n }\n return \"strong\";\n}\n\n// tw code\nfunction twTokenCode(stream, state) {\n var sb = state.block;\n\n if (sb && stream.current()) {\n return \"comment\";\n }\n\n if (!sb && stream.match(reUntilCodeStop)) {\n state.tokenize = tokenBase;\n return \"comment\";\n }\n\n if (sb && stream.sol() && stream.match(reCodeBlockStop)) {\n state.tokenize = tokenBase;\n return \"comment\";\n }\n\n stream.next();\n return \"comment\";\n}\n\n// tw em / italic\nfunction twTokenEm(stream, state) {\n var maybeEnd = false,\n ch;\n while (ch = stream.next()) {\n if (ch == \"/\" && maybeEnd) {\n state.tokenize = tokenBase;\n break;\n }\n maybeEnd = (ch == \"/\");\n }\n return \"emphasis\";\n}\n\n// tw underlined text\nfunction twTokenUnderline(stream, state) {\n var maybeEnd = false,\n ch;\n while (ch = stream.next()) {\n if (ch == \"_\" && maybeEnd) {\n state.tokenize = tokenBase;\n break;\n }\n maybeEnd = (ch == \"_\");\n }\n return \"link\";\n}\n\n// tw strike through text looks ugly\n// change CSS if needed\nfunction twTokenStrike(stream, state) {\n var maybeEnd = false, ch;\n\n while (ch = stream.next()) {\n if (ch == \"-\" && maybeEnd) {\n state.tokenize = tokenBase;\n break;\n }\n maybeEnd = (ch == \"-\");\n }\n return \"deleted\";\n}\n\n// macro\nfunction twTokenMacro(stream, state) {\n if (stream.current() == '<<') {\n return 'meta';\n }\n\n var ch = stream.next();\n if (!ch) {\n state.tokenize = tokenBase;\n return null;\n }\n if (ch == \">\") {\n if (stream.peek() == '>') {\n stream.next();\n state.tokenize = tokenBase;\n return \"meta\";\n }\n }\n\n stream.eatWhile(/[\\w\\$_]/);\n return keywords.propertyIsEnumerable(stream.current()) ? \"keyword\" : null\n}\n\n// Interface\nexport const tiddlyWiki = {\n name: \"tiddlywiki\",\n\n startState: function () {\n return {tokenize: tokenBase};\n },\n\n token: function (stream, state) {\n if (stream.eatSpace()) return null;\n var style = state.tokenize(stream, state);\n return style;\n }\n};\n\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/7153.e0fe24c9b8309e3171da.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"7153.e0fe24c9b8309e3171da.js?v=e0fe24c9b8309e3171da","mappings":";;;;;;;;;;AAAmC;;AAEX;;AAExB;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;;AAEA,EAAE,0DAAe;AACjB;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;AClC+B;;AAE/B;AACyE;;AAEzE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,MAAM,0DAAe;AACrB;AACA,QAAQ,0DAAY;AACpB;AACA;AACA;;AAEA;AACA;;;;;;;;;;;;;;;;;;;;;;;AC7CgE;AACY;AACrB;AAC3C;AAC+B;AACd;AACW;AACE;AACb;AACK;AACA;AACf;AACuC;AAC1C;AACD;AACkB;AACd;AACW;AACF;AACZ;AACc;AAC9B;AACA,QAAQ;AACR,MAAM,kDAAM;AACZ,YAAY,kDAAc;AAC1B,UAAU,kDAAU;AACpB;AACA;AACA;AACA;AACA;AACA,IAAI,uDAAS,GAAG,aAAa,gDAAgD;AAC7E,IAAI,kDAAc;AAClB,IAAI,kDAAM;AACV,IAAI,kDAAM;AACV;AACA;AAGE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvCF;AACkC;AACI;AACtC;AACA;AACA,WAAW,oBAAC,YAAY,yBAAK;AAC7B;AACA;AACA,sDAAe,OAAO,EAAC;;;;;ACRuC;AACV;AAC+H;AACjI;AAC8B;AAC/C;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,MAAM;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,sBAAkB;AACrC;AACA;AACA,IAAI,kBAAG;AACP;AACA,MAAM,kBAAG;AACT,MAAM;AACN,UAAU,sBAAQ,CAAC,sBAAS;AAC5B;AACA;AACA;AACA,gCAAgC,oBAAoB;AACpD;AACA;AACA,qBAAqB,sCAAY;AACjC;AACA,QAAQ;AACR;AACA;AACA,sCAAsC,kBAAM;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,sBAAS;AACxB,KAAK;AACL,IAAI,kBAAG;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,sBAAS;AACxB,KAAK;AACL,GAAG;AACH;AACA;AACA,EAAE,kBAAG;AACL;AACA;AACA;AACA;AACA;AACA,0BAA0B,sBAAkB;AAC5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM,kBAAG;AACT,MAAM;AACN;AACA,MAAM,kBAAG;AACT;AACA;AACA,IAAI,kBAAG;AACP;AACA;AACA,uBAAuB;AACvB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,iBAAiB,mBAAmB;AACxE;AACA;AACA;AACA;AACA,8CAA8C,UAAU;AACxD;AACA;AACA;AACA;AACA,0CAA0C,UAAU;AACpD;AACA;AACA;AACA,qBAAqB,sBAAkB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sBAAkB,mBAAmB,wBAAW;AACvE,MAAM;AACN,uBAAuB,sBAAkB,2BAA2B,wBAAW;AAC/E,MAAM;AACN,uBAAuB,sBAAkB,aAAa,wBAAW;AACjE;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,uCAAuC,kBAAM;AAC7C;AACA,wDAAwD,oBAAoB,UAAU;AACtF;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,EAAE,kBAAG;AACL;AACA;AACA;AACA;AACA,UAAU,kCAAkC,EAAE,sBAAS;AACvD;AACA;AACA;AACA;AACA,qBAAqB,sBAAM;AAC3B;AACA,6CAA6C,sBAAM,mDAAmD,sBAAM;AAC5G;AACA,gBAAgB,qBAAc;AAC9B;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA,GAAG;AACH;AACA;AACA,EAAE,kBAAG;AACL,sCAAsC,SAAS;AAC/C;AACA,IAAI,kBAAG;AACP;AACA;AACA,QAAQ,wCAAwC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,kBAAG;AACL;AACA,iCAAiC,QAAQ;AACzC;AACA,IAAI,0BAAS;AACb,oBAAoB,uBAAuB;AAC3C,MAAM,kBAAG;AACT;AACA;AACA;AACA;AACA;AACA,kCAAkC,GAAG;AACrC;AACA,QAAQ,oBAAM;AACd,EAAE,kBAAK;AACP,EAAE,sBAAiB;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,sBAAM;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA;AACA;AACA,WAAW;AACX;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,eAAc;AAChC;AACA;AACA;AACA,SAAS,mBAAW;AACpB;AACA;AACA,mBAAmB;AACnB,aAAa;AACb;AACA;AACA,YAAY;AACZ;AACA;AACA,aAAa;AACb;;AAEA;AACA,YAAY;AACZ,aAAa;AACb;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,YAAY;AACZ;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,cAAc;AACd;AACA;;AAEA;AACA,wBAAwB;AACxB;AACA;AACA,0BAA0B;AAC1B,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA,wBAAwB;AACxB;AACA;;AAEA;AACA,YAAY;AACZ,cAAc;AACd;AACA;;AAEA;AACA,YAAY;AACZ;;AAEA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb,IAAI;;AAEJ;AACA;AACA;AACA;AACA;AACA,mBAAmB;AACnB;AACA,kBAAkB;AAClB,wBAAwB;AACxB;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AAIE","sources":["webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/dagre-d3-es/src/dagre-js/label/add-html-label.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/dagre-d3-es/src/dagre-js/util.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/mermaid/dist/flowDiagram-v2-d21afba7.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/khroma/dist/methods/channel.js","webpack://_JUPYTERLAB.CORE_OUTPUT/../node_modules/mermaid/dist/styles-b39df0e1.js"],"sourcesContent":["import * as util from '../util.js';\n\nexport { addHtmlLabel };\n\nfunction addHtmlLabel(root, node) {\n var fo = root.append('foreignObject').attr('width', '100000');\n\n var div = fo.append('xhtml:div');\n div.attr('xmlns', 'http://www.w3.org/1999/xhtml');\n\n var label = node.label;\n switch (typeof label) {\n case 'function':\n div.insert(label);\n break;\n case 'object':\n // Currently we assume this is a DOM object.\n div.insert(function () {\n return label;\n });\n break;\n default:\n div.html(label);\n }\n\n util.applyStyle(div, node.labelStyle);\n div.style('display', 'inline-block');\n // Fix for firefox\n div.style('white-space', 'nowrap');\n\n var client = div.node().getBoundingClientRect();\n fo.attr('width', client.width).attr('height', client.height);\n\n return fo;\n}\n","import * as _ from 'lodash-es';\n\n// Public utility functions\nexport { isSubgraph, edgeToId, applyStyle, applyClass, applyTransition };\n\n/*\n * Returns true if the specified node in the graph is a subgraph node. A\n * subgraph node is one that contains other nodes.\n */\nfunction isSubgraph(g, v) {\n return !!g.children(v).length;\n}\n\nfunction edgeToId(e) {\n return escapeId(e.v) + ':' + escapeId(e.w) + ':' + escapeId(e.name);\n}\n\nvar ID_DELIM = /:/g;\nfunction escapeId(str) {\n return str ? String(str).replace(ID_DELIM, '\\\\:') : '';\n}\n\nfunction applyStyle(dom, styleFn) {\n if (styleFn) {\n dom.attr('style', styleFn);\n }\n}\n\nfunction applyClass(dom, classFn, otherClasses) {\n if (classFn) {\n dom.attr('class', classFn).attr('class', otherClasses + ' ' + dom.attr('class'));\n }\n}\n\nfunction applyTransition(selection, g) {\n var graph = g.graph();\n\n if (_.isPlainObject(graph)) {\n var transition = graph.transition;\n if (_.isFunction(transition)) {\n return transition(selection);\n }\n }\n\n return selection;\n}\n","import { p as parser, f as flowDb } from \"./flowDb-f4777d50.js\";\nimport { f as flowRendererV2, a as flowStyles } from \"./styles-b39df0e1.js\";\nimport { p as setConfig } from \"./mermaid-04fb0060.js\";\nimport \"d3\";\nimport \"dagre-d3-es/src/graphlib/index.js\";\nimport \"./index-0980fb80.js\";\nimport \"dagre-d3-es/src/dagre/index.js\";\nimport \"dagre-d3-es/src/graphlib/json.js\";\nimport \"./edges-5ec2587c.js\";\nimport \"./createText-a48a4c90.js\";\nimport \"mdast-util-from-markdown\";\nimport \"ts-dedent\";\nimport \"dagre-d3-es/src/dagre-js/label/add-html-label.js\";\nimport \"khroma\";\nimport \"dayjs\";\nimport \"@braintree/sanitize-url\";\nimport \"dompurify\";\nimport \"lodash-es/memoize.js\";\nimport \"lodash-es/merge.js\";\nimport \"stylis\";\nimport \"lodash-es/isEmpty.js\";\nconst diagram = {\n parser,\n db: flowDb,\n renderer: flowRendererV2,\n styles: flowStyles,\n init: (cnf) => {\n if (!cnf.flowchart) {\n cnf.flowchart = {};\n }\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n setConfig({ flowchart: { arrowMarkerAbsolute: cnf.arrowMarkerAbsolute } });\n flowRendererV2.setConf(cnf.flowchart);\n flowDb.clear();\n flowDb.setGen(\"gen-2\");\n }\n};\nexport {\n diagram\n};\n","/* IMPORT */\nimport _ from '../utils/index.js';\nimport Color from '../color/index.js';\n/* MAIN */\nconst channel = (color, channel) => {\n return _.lang.round(Color.parse(color)[channel]);\n};\n/* EXPORT */\nexport default channel;\n","import * as graphlib from \"dagre-d3-es/src/graphlib/index.js\";\nimport { curveLinear, select, selectAll } from \"d3\";\nimport { k as getStylesFromArray, l as log, m as evaluate, c as getConfig, e as common, n as interpolateToCurve, u as utils, o as setupGraphViewbox } from \"./mermaid-04fb0060.js\";\nimport { r as render } from \"./index-0980fb80.js\";\nimport { addHtmlLabel } from \"dagre-d3-es/src/dagre-js/label/add-html-label.js\";\nimport * as khroma from \"khroma\";\nconst conf = {};\nconst setConf = function(cnf) {\n const keys = Object.keys(cnf);\n for (const key of keys) {\n conf[key] = cnf[key];\n }\n};\nconst addVertices = function(vert, g, svgId, root, doc, diagObj) {\n const svg = root.select(`[id=\"${svgId}\"]`);\n const keys = Object.keys(vert);\n keys.forEach(function(id) {\n const vertex = vert[id];\n let classStr = \"default\";\n if (vertex.classes.length > 0) {\n classStr = vertex.classes.join(\" \");\n }\n classStr = classStr + \" flowchart-label\";\n const styles = getStylesFromArray(vertex.styles);\n let vertexText = vertex.text !== void 0 ? vertex.text : vertex.id;\n let vertexNode;\n log.info(\"vertex\", vertex, vertex.labelType);\n if (vertex.labelType === \"markdown\") {\n log.info(\"vertex\", vertex, vertex.labelType);\n } else {\n if (evaluate(getConfig().flowchart.htmlLabels)) {\n const node = {\n label: vertexText.replace(\n /fa[blrs]?:fa-[\\w-]+/g,\n (s) => `<i class='${s.replace(\":\", \" \")}'></i>`\n )\n };\n vertexNode = addHtmlLabel(svg, node).node();\n vertexNode.parentNode.removeChild(vertexNode);\n } else {\n const svgLabel = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"text\");\n svgLabel.setAttribute(\"style\", styles.labelStyle.replace(\"color:\", \"fill:\"));\n const rows = vertexText.split(common.lineBreakRegex);\n for (const row of rows) {\n const tspan = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"tspan\");\n tspan.setAttributeNS(\"http://www.w3.org/XML/1998/namespace\", \"xml:space\", \"preserve\");\n tspan.setAttribute(\"dy\", \"1em\");\n tspan.setAttribute(\"x\", \"1\");\n tspan.textContent = row;\n svgLabel.appendChild(tspan);\n }\n vertexNode = svgLabel;\n }\n }\n let radious = 0;\n let _shape = \"\";\n switch (vertex.type) {\n case \"round\":\n radious = 5;\n _shape = \"rect\";\n break;\n case \"square\":\n _shape = \"rect\";\n break;\n case \"diamond\":\n _shape = \"question\";\n break;\n case \"hexagon\":\n _shape = \"hexagon\";\n break;\n case \"odd\":\n _shape = \"rect_left_inv_arrow\";\n break;\n case \"lean_right\":\n _shape = \"lean_right\";\n break;\n case \"lean_left\":\n _shape = \"lean_left\";\n break;\n case \"trapezoid\":\n _shape = \"trapezoid\";\n break;\n case \"inv_trapezoid\":\n _shape = \"inv_trapezoid\";\n break;\n case \"odd_right\":\n _shape = \"rect_left_inv_arrow\";\n break;\n case \"circle\":\n _shape = \"circle\";\n break;\n case \"ellipse\":\n _shape = \"ellipse\";\n break;\n case \"stadium\":\n _shape = \"stadium\";\n break;\n case \"subroutine\":\n _shape = \"subroutine\";\n break;\n case \"cylinder\":\n _shape = \"cylinder\";\n break;\n case \"group\":\n _shape = \"rect\";\n break;\n case \"doublecircle\":\n _shape = \"doublecircle\";\n break;\n default:\n _shape = \"rect\";\n }\n g.setNode(vertex.id, {\n labelStyle: styles.labelStyle,\n shape: _shape,\n labelText: vertexText,\n labelType: vertex.labelType,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n link: vertex.link,\n linkTarget: vertex.linkTarget,\n tooltip: diagObj.db.getTooltip(vertex.id) || \"\",\n domId: diagObj.db.lookUpDomId(vertex.id),\n haveCallback: vertex.haveCallback,\n width: vertex.type === \"group\" ? 500 : void 0,\n dir: vertex.dir,\n type: vertex.type,\n props: vertex.props,\n padding: getConfig().flowchart.padding\n });\n log.info(\"setNode\", {\n labelStyle: styles.labelStyle,\n labelType: vertex.labelType,\n shape: _shape,\n labelText: vertexText,\n rx: radious,\n ry: radious,\n class: classStr,\n style: styles.style,\n id: vertex.id,\n domId: diagObj.db.lookUpDomId(vertex.id),\n width: vertex.type === \"group\" ? 500 : void 0,\n type: vertex.type,\n dir: vertex.dir,\n props: vertex.props,\n padding: getConfig().flowchart.padding\n });\n });\n};\nconst addEdges = function(edges, g, diagObj) {\n log.info(\"abc78 edges = \", edges);\n let cnt = 0;\n let linkIdCnt = {};\n let defaultStyle;\n let defaultLabelStyle;\n if (edges.defaultStyle !== void 0) {\n const defaultStyles = getStylesFromArray(edges.defaultStyle);\n defaultStyle = defaultStyles.style;\n defaultLabelStyle = defaultStyles.labelStyle;\n }\n edges.forEach(function(edge) {\n cnt++;\n const linkIdBase = \"L-\" + edge.start + \"-\" + edge.end;\n if (linkIdCnt[linkIdBase] === void 0) {\n linkIdCnt[linkIdBase] = 0;\n log.info(\"abc78 new entry\", linkIdBase, linkIdCnt[linkIdBase]);\n } else {\n linkIdCnt[linkIdBase]++;\n log.info(\"abc78 new entry\", linkIdBase, linkIdCnt[linkIdBase]);\n }\n let linkId = linkIdBase + \"-\" + linkIdCnt[linkIdBase];\n log.info(\"abc78 new link id to be used is\", linkIdBase, linkId, linkIdCnt[linkIdBase]);\n const linkNameStart = \"LS-\" + edge.start;\n const linkNameEnd = \"LE-\" + edge.end;\n const edgeData = { style: \"\", labelStyle: \"\" };\n edgeData.minlen = edge.length || 1;\n if (edge.type === \"arrow_open\") {\n edgeData.arrowhead = \"none\";\n } else {\n edgeData.arrowhead = \"normal\";\n }\n edgeData.arrowTypeStart = \"arrow_open\";\n edgeData.arrowTypeEnd = \"arrow_open\";\n switch (edge.type) {\n case \"double_arrow_cross\":\n edgeData.arrowTypeStart = \"arrow_cross\";\n case \"arrow_cross\":\n edgeData.arrowTypeEnd = \"arrow_cross\";\n break;\n case \"double_arrow_point\":\n edgeData.arrowTypeStart = \"arrow_point\";\n case \"arrow_point\":\n edgeData.arrowTypeEnd = \"arrow_point\";\n break;\n case \"double_arrow_circle\":\n edgeData.arrowTypeStart = \"arrow_circle\";\n case \"arrow_circle\":\n edgeData.arrowTypeEnd = \"arrow_circle\";\n break;\n }\n let style = \"\";\n let labelStyle = \"\";\n switch (edge.stroke) {\n case \"normal\":\n style = \"fill:none;\";\n if (defaultStyle !== void 0) {\n style = defaultStyle;\n }\n if (defaultLabelStyle !== void 0) {\n labelStyle = defaultLabelStyle;\n }\n edgeData.thickness = \"normal\";\n edgeData.pattern = \"solid\";\n break;\n case \"dotted\":\n edgeData.thickness = \"normal\";\n edgeData.pattern = \"dotted\";\n edgeData.style = \"fill:none;stroke-width:2px;stroke-dasharray:3;\";\n break;\n case \"thick\":\n edgeData.thickness = \"thick\";\n edgeData.pattern = \"solid\";\n edgeData.style = \"stroke-width: 3.5px;fill:none;\";\n break;\n case \"invisible\":\n edgeData.thickness = \"invisible\";\n edgeData.pattern = \"solid\";\n edgeData.style = \"stroke-width: 0;fill:none;\";\n break;\n }\n if (edge.style !== void 0) {\n const styles = getStylesFromArray(edge.style);\n style = styles.style;\n labelStyle = styles.labelStyle;\n }\n edgeData.style = edgeData.style += style;\n edgeData.labelStyle = edgeData.labelStyle += labelStyle;\n if (edge.interpolate !== void 0) {\n edgeData.curve = interpolateToCurve(edge.interpolate, curveLinear);\n } else if (edges.defaultInterpolate !== void 0) {\n edgeData.curve = interpolateToCurve(edges.defaultInterpolate, curveLinear);\n } else {\n edgeData.curve = interpolateToCurve(conf.curve, curveLinear);\n }\n if (edge.text === void 0) {\n if (edge.style !== void 0) {\n edgeData.arrowheadStyle = \"fill: #333\";\n }\n } else {\n edgeData.arrowheadStyle = \"fill: #333\";\n edgeData.labelpos = \"c\";\n }\n edgeData.labelType = edge.labelType;\n edgeData.label = edge.text.replace(common.lineBreakRegex, \"\\n\");\n if (edge.style === void 0) {\n edgeData.style = edgeData.style || \"stroke: #333; stroke-width: 1.5px;fill:none;\";\n }\n edgeData.labelStyle = edgeData.labelStyle.replace(\"color:\", \"fill:\");\n edgeData.id = linkId;\n edgeData.classes = \"flowchart-link \" + linkNameStart + \" \" + linkNameEnd;\n g.setEdge(edge.start, edge.end, edgeData, cnt);\n });\n};\nconst getClasses = function(text, diagObj) {\n return diagObj.db.getClasses();\n};\nconst draw = async function(text, id, _version, diagObj) {\n log.info(\"Drawing flowchart\");\n let dir = diagObj.db.getDirection();\n if (dir === void 0) {\n dir = \"TD\";\n }\n const { securityLevel, flowchart: conf2 } = getConfig();\n const nodeSpacing = conf2.nodeSpacing || 50;\n const rankSpacing = conf2.rankSpacing || 50;\n let sandboxElement;\n if (securityLevel === \"sandbox\") {\n sandboxElement = select(\"#i\" + id);\n }\n const root = securityLevel === \"sandbox\" ? select(sandboxElement.nodes()[0].contentDocument.body) : select(\"body\");\n const doc = securityLevel === \"sandbox\" ? sandboxElement.nodes()[0].contentDocument : document;\n const g = new graphlib.Graph({\n multigraph: true,\n compound: true\n }).setGraph({\n rankdir: dir,\n nodesep: nodeSpacing,\n ranksep: rankSpacing,\n marginx: 0,\n marginy: 0\n }).setDefaultEdgeLabel(function() {\n return {};\n });\n let subG;\n const subGraphs = diagObj.db.getSubGraphs();\n log.info(\"Subgraphs - \", subGraphs);\n for (let i2 = subGraphs.length - 1; i2 >= 0; i2--) {\n subG = subGraphs[i2];\n log.info(\"Subgraph - \", subG);\n diagObj.db.addVertex(\n subG.id,\n { text: subG.title, type: subG.labelType },\n \"group\",\n void 0,\n subG.classes,\n subG.dir\n );\n }\n const vert = diagObj.db.getVertices();\n const edges = diagObj.db.getEdges();\n log.info(\"Edges\", edges);\n let i = 0;\n for (i = subGraphs.length - 1; i >= 0; i--) {\n subG = subGraphs[i];\n selectAll(\"cluster\").append(\"text\");\n for (let j = 0; j < subG.nodes.length; j++) {\n log.info(\"Setting up subgraphs\", subG.nodes[j], subG.id);\n g.setParent(subG.nodes[j], subG.id);\n }\n }\n addVertices(vert, g, id, root, doc, diagObj);\n addEdges(edges, g);\n const svg = root.select(`[id=\"${id}\"]`);\n const element = root.select(\"#\" + id + \" g\");\n await render(element, g, [\"point\", \"circle\", \"cross\"], \"flowchart\", id);\n utils.insertTitle(svg, \"flowchartTitleText\", conf2.titleTopMargin, diagObj.db.getDiagramTitle());\n setupGraphViewbox(g, svg, conf2.diagramPadding, conf2.useMaxWidth);\n diagObj.db.indexNodes(\"subGraph\" + i);\n if (!conf2.htmlLabels) {\n const labels = doc.querySelectorAll('[id=\"' + id + '\"] .edgeLabel .label');\n for (const label of labels) {\n const dim = label.getBBox();\n const rect = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\");\n rect.setAttribute(\"rx\", 0);\n rect.setAttribute(\"ry\", 0);\n rect.setAttribute(\"width\", dim.width);\n rect.setAttribute(\"height\", dim.height);\n label.insertBefore(rect, label.firstChild);\n }\n }\n const keys = Object.keys(vert);\n keys.forEach(function(key) {\n const vertex = vert[key];\n if (vertex.link) {\n const node = select(\"#\" + id + ' [id=\"' + key + '\"]');\n if (node) {\n const link = doc.createElementNS(\"http://www.w3.org/2000/svg\", \"a\");\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"class\", vertex.classes.join(\" \"));\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"href\", vertex.link);\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"rel\", \"noopener\");\n if (securityLevel === \"sandbox\") {\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"target\", \"_top\");\n } else if (vertex.linkTarget) {\n link.setAttributeNS(\"http://www.w3.org/2000/svg\", \"target\", vertex.linkTarget);\n }\n const linkNode = node.insert(function() {\n return link;\n }, \":first-child\");\n const shape = node.select(\".label-container\");\n if (shape) {\n linkNode.append(function() {\n return shape.node();\n });\n }\n const label = node.select(\".label\");\n if (label) {\n linkNode.append(function() {\n return label.node();\n });\n }\n }\n }\n });\n};\nconst flowRendererV2 = {\n setConf,\n addVertices,\n addEdges,\n getClasses,\n draw\n};\nconst fade = (color, opacity) => {\n const channel = khroma.channel;\n const r = channel(color, \"r\");\n const g = channel(color, \"g\");\n const b = channel(color, \"b\");\n return khroma.rgba(r, g, b, opacity);\n};\nconst getStyles = (options) => `.label {\n font-family: ${options.fontFamily};\n color: ${options.nodeTextColor || options.textColor};\n }\n .cluster-label text {\n fill: ${options.titleColor};\n }\n .cluster-label span,p {\n color: ${options.titleColor};\n }\n\n .label text,span,p {\n fill: ${options.nodeTextColor || options.textColor};\n color: ${options.nodeTextColor || options.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${options.mainBkg};\n stroke: ${options.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${options.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${options.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${options.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${options.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${options.edgeLabelBackground};\n fill: ${options.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${fade(options.edgeLabelBackground, 0.5)};\n // background-color: \n }\n\n .cluster rect {\n fill: ${options.clusterBkg};\n stroke: ${options.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${options.titleColor};\n }\n\n .cluster span,p {\n color: ${options.titleColor};\n }\n /* .cluster div {\n color: ${options.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${options.fontFamily};\n font-size: 12px;\n background: ${options.tertiaryColor};\n border: 1px solid ${options.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${options.textColor};\n }\n`;\nconst flowStyles = getStyles;\nexport {\n flowStyles as a,\n flowRendererV2 as f\n};\n"],"names":[],"sourceRoot":""}
|
vlmpy310/lib/python3.10/site-packages/notebook/static/7154.1ab03d07151bbd0aad06.js.map
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlmpy310/lib/python3.10/site-packages/notebook/static/7179.f2b34daff5c4cb9957d6.js
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[7179],{
|
| 3 |
+
|
| 4 |
+
/***/ 67179:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
// ESM COMPAT FLAG
|
| 8 |
+
__webpack_require__.r(__webpack_exports__);
|
| 9 |
+
|
| 10 |
+
// EXPORTS
|
| 11 |
+
__webpack_require__.d(__webpack_exports__, {
|
| 12 |
+
getHeadingList: () => (/* binding */ getHeadingList),
|
| 13 |
+
gfmHeadingId: () => (/* binding */ gfmHeadingId)
|
| 14 |
+
});
|
| 15 |
+
|
| 16 |
+
;// CONCATENATED MODULE: ../node_modules/github-slugger/regex.js
|
| 17 |
+
// This module is generated by `script/`.
|
| 18 |
+
/* eslint-disable no-control-regex, no-misleading-character-class, no-useless-escape */
|
| 19 |
+
const regex = /[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\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F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g
|
| 20 |
+
|
| 21 |
+
;// CONCATENATED MODULE: ../node_modules/github-slugger/index.js
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
const own = Object.hasOwnProperty
|
| 25 |
+
|
| 26 |
+
/**
|
| 27 |
+
* Slugger.
|
| 28 |
+
*/
|
| 29 |
+
class BananaSlug {
|
| 30 |
+
/**
|
| 31 |
+
* Create a new slug class.
|
| 32 |
+
*/
|
| 33 |
+
constructor () {
|
| 34 |
+
/** @type {Record<string, number>} */
|
| 35 |
+
// eslint-disable-next-line no-unused-expressions
|
| 36 |
+
this.occurrences
|
| 37 |
+
|
| 38 |
+
this.reset()
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
/**
|
| 42 |
+
* Generate a unique slug.
|
| 43 |
+
*
|
| 44 |
+
* Tracks previously generated slugs: repeated calls with the same value
|
| 45 |
+
* will result in different slugs.
|
| 46 |
+
* Use the `slug` function to get same slugs.
|
| 47 |
+
*
|
| 48 |
+
* @param {string} value
|
| 49 |
+
* String of text to slugify
|
| 50 |
+
* @param {boolean} [maintainCase=false]
|
| 51 |
+
* Keep the current case, otherwise make all lowercase
|
| 52 |
+
* @return {string}
|
| 53 |
+
* A unique slug string
|
| 54 |
+
*/
|
| 55 |
+
slug (value, maintainCase) {
|
| 56 |
+
const self = this
|
| 57 |
+
let result = slug(value, maintainCase === true)
|
| 58 |
+
const originalSlug = result
|
| 59 |
+
|
| 60 |
+
while (own.call(self.occurrences, result)) {
|
| 61 |
+
self.occurrences[originalSlug]++
|
| 62 |
+
result = originalSlug + '-' + self.occurrences[originalSlug]
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
self.occurrences[result] = 0
|
| 66 |
+
|
| 67 |
+
return result
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
/**
|
| 71 |
+
* Reset - Forget all previous slugs
|
| 72 |
+
*
|
| 73 |
+
* @return void
|
| 74 |
+
*/
|
| 75 |
+
reset () {
|
| 76 |
+
this.occurrences = Object.create(null)
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
/**
|
| 81 |
+
* Generate a slug.
|
| 82 |
+
*
|
| 83 |
+
* Does not track previously generated slugs: repeated calls with the same value
|
| 84 |
+
* will result in the exact same slug.
|
| 85 |
+
* Use the `GithubSlugger` class to get unique slugs.
|
| 86 |
+
*
|
| 87 |
+
* @param {string} value
|
| 88 |
+
* String of text to slugify
|
| 89 |
+
* @param {boolean} [maintainCase=false]
|
| 90 |
+
* Keep the current case, otherwise make all lowercase
|
| 91 |
+
* @return {string}
|
| 92 |
+
* A unique slug string
|
| 93 |
+
*/
|
| 94 |
+
function slug (value, maintainCase) {
|
| 95 |
+
if (typeof value !== 'string') return ''
|
| 96 |
+
if (!maintainCase) value = value.toLowerCase()
|
| 97 |
+
return value.replace(regex, '').replace(/ /g, '-')
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
;// CONCATENATED MODULE: ../node_modules/marked-gfm-heading-id/src/index.js
|
| 101 |
+
|
| 102 |
+
let slugger;
|
| 103 |
+
|
| 104 |
+
let headings = [];
|
| 105 |
+
|
| 106 |
+
function gfmHeadingId({ prefix = '' } = {}) {
|
| 107 |
+
return {
|
| 108 |
+
headerIds: false, // prevent deprecation warning; remove this once headerIds option is removed
|
| 109 |
+
hooks: {
|
| 110 |
+
preprocess(src) {
|
| 111 |
+
headings = [];
|
| 112 |
+
slugger = new BananaSlug();
|
| 113 |
+
return src;
|
| 114 |
+
}
|
| 115 |
+
},
|
| 116 |
+
renderer: {
|
| 117 |
+
heading(text, level, raw) {
|
| 118 |
+
raw = raw
|
| 119 |
+
.toLowerCase()
|
| 120 |
+
.trim()
|
| 121 |
+
.replace(/<[!\/a-z].*?>/gi, '');
|
| 122 |
+
const id = `${prefix}${slugger.slug(raw)}`;
|
| 123 |
+
const heading = { level, text, id };
|
| 124 |
+
headings.push(heading);
|
| 125 |
+
|
| 126 |
+
return `<h${level} id="${id}">${text}</h${level}>\n`;
|
| 127 |
+
}
|
| 128 |
+
}
|
| 129 |
+
};
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
function getHeadingList() {
|
| 133 |
+
return headings;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
/***/ })
|
| 138 |
+
|
| 139 |
+
}]);
|
| 140 |
+
//# sourceMappingURL=7179.f2b34daff5c4cb9957d6.js.map?v=f2b34daff5c4cb9957d6
|
vlmpy310/lib/python3.10/site-packages/notebook/static/7259.d6bc83da737d12fb13e7.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
vlmpy310/lib/python3.10/site-packages/notebook/static/7302.8dfb32b083b16efa038a.js
ADDED
|
@@ -0,0 +1,446 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[7302,3768],{
|
| 3 |
+
|
| 4 |
+
/***/ 83768:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
// ESM COMPAT FLAG
|
| 8 |
+
__webpack_require__.r(__webpack_exports__);
|
| 9 |
+
|
| 10 |
+
// EXPORTS
|
| 11 |
+
__webpack_require__.d(__webpack_exports__, {
|
| 12 |
+
"default": () => (/* binding */ lib)
|
| 13 |
+
});
|
| 14 |
+
|
| 15 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/apputils@~4.4.4 (singleton) (fallback: ../node_modules/@jupyterlab/apputils/lib/index.js)
|
| 16 |
+
var index_js_ = __webpack_require__(11363);
|
| 17 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/coreutils@~6.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/coreutils/lib/index.js)
|
| 18 |
+
var lib_index_js_ = __webpack_require__(76107);
|
| 19 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/filebrowser@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/filebrowser/lib/index.js)
|
| 20 |
+
var filebrowser_lib_index_js_ = __webpack_require__(23066);
|
| 21 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/settingregistry@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/settingregistry/lib/index.js)
|
| 22 |
+
var settingregistry_lib_index_js_ = __webpack_require__(57534);
|
| 23 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/running@^4.3.4 (strict) (fallback: ../node_modules/@jupyterlab/running/lib/index.js)
|
| 24 |
+
var running_lib_index_js_ = __webpack_require__(80407);
|
| 25 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/settingeditor@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/settingeditor/lib/index.js)
|
| 26 |
+
var settingeditor_lib_index_js_ = __webpack_require__(2881);
|
| 27 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/translation@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/translation/lib/index.js)
|
| 28 |
+
var translation_lib_index_js_ = __webpack_require__(7801);
|
| 29 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyterlab/ui-components@~4.3.4 (singleton) (fallback: ../node_modules/@jupyterlab/ui-components/lib/index.js)
|
| 30 |
+
var ui_components_lib_index_js_ = __webpack_require__(29072);
|
| 31 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/signaling@~2.1.3 (singleton) (fallback: ../node_modules/@lumino/signaling/dist/index.es6.js)
|
| 32 |
+
var index_es6_js_ = __webpack_require__(2159);
|
| 33 |
+
// EXTERNAL MODULE: consume shared module (default) @lumino/widgets@~2.5.0 (singleton) (fallback: ../node_modules/@lumino/widgets/dist/index.es6.js)
|
| 34 |
+
var dist_index_es6_js_ = __webpack_require__(2260);
|
| 35 |
+
// EXTERNAL MODULE: consume shared module (default) @jupyter-notebook/tree@~7.3.2 (singleton) (fallback: ../packages/tree/lib/index.js)
|
| 36 |
+
var tree_lib_index_js_ = __webpack_require__(8412);
|
| 37 |
+
// EXTERNAL MODULE: consume shared module (default) react@~18.2.0 (singleton) (fallback: ../node_modules/react/index.js)
|
| 38 |
+
var react_index_js_ = __webpack_require__(78156);
|
| 39 |
+
var react_index_js_default = /*#__PURE__*/__webpack_require__.n(react_index_js_);
|
| 40 |
+
;// CONCATENATED MODULE: ../packages/tree-extension/lib/fileactions.js
|
| 41 |
+
// Copyright (c) Jupyter Development Team.
|
| 42 |
+
// Distributed under the terms of the Modified BSD License.
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
class FilesActionButtons {
|
| 46 |
+
/**
|
| 47 |
+
* The constructor of FilesActionButtons.
|
| 48 |
+
* @param options
|
| 49 |
+
*/
|
| 50 |
+
constructor(options) {
|
| 51 |
+
/**
|
| 52 |
+
* Triggered when the selection change in file browser.
|
| 53 |
+
*/
|
| 54 |
+
this._onSelectionChanged = () => {
|
| 55 |
+
var _a, _b, _c, _d, _e, _f;
|
| 56 |
+
const selectedItems = Array.from(this._browser.selectedItems());
|
| 57 |
+
const selection = selectedItems.length > 0;
|
| 58 |
+
const oneFolder = selectedItems.some((item) => item.type === 'directory');
|
| 59 |
+
(_a = this._widgets.get('placeholder')) === null || _a === void 0 ? void 0 : _a.setHidden(selection);
|
| 60 |
+
(_b = this._widgets.get('delete')) === null || _b === void 0 ? void 0 : _b.setHidden(!selection);
|
| 61 |
+
(_c = this._widgets.get('duplicate')) === null || _c === void 0 ? void 0 : _c.setHidden(!selection || oneFolder);
|
| 62 |
+
(_d = this._widgets.get('download')) === null || _d === void 0 ? void 0 : _d.setHidden(!selection || oneFolder);
|
| 63 |
+
(_e = this._widgets.get('open')) === null || _e === void 0 ? void 0 : _e.setHidden(!selection || oneFolder);
|
| 64 |
+
(_f = this._widgets.get('rename')) === null || _f === void 0 ? void 0 : _f.setHidden(selectedItems.length !== 1);
|
| 65 |
+
};
|
| 66 |
+
this._widgets = new Map();
|
| 67 |
+
this._browser = options.browser;
|
| 68 |
+
const { commands, selectionChanged, translator } = options;
|
| 69 |
+
const trans = translator.load('notebook');
|
| 70 |
+
// Placeholder, when no file is selected.
|
| 71 |
+
const placeholder = index_js_.ReactWidget.create(react_index_js_default().createElement("div", { key: 'placeholder' }, trans.__('Select items to perform actions on them.')));
|
| 72 |
+
placeholder.id = 'fileAction-placeholder';
|
| 73 |
+
this._widgets.set('placeholder', placeholder);
|
| 74 |
+
// The action buttons.
|
| 75 |
+
const actions = ['open', 'download', 'rename', 'duplicate', 'delete'];
|
| 76 |
+
actions.forEach((action) => {
|
| 77 |
+
const widget = index_js_.ReactWidget.create(react_index_js_default().createElement(index_js_.CommandToolbarButtonComponent, { key: action, commands: commands, id: `filebrowser:${action}`, args: { toolbar: true }, icon: undefined }));
|
| 78 |
+
widget.id = `fileAction-${action}`;
|
| 79 |
+
widget.addClass('jp-ToolbarButton');
|
| 80 |
+
widget.addClass('jp-FileAction');
|
| 81 |
+
this._widgets.set(action, widget);
|
| 82 |
+
});
|
| 83 |
+
selectionChanged.connect(this._onSelectionChanged, this);
|
| 84 |
+
this._onSelectionChanged();
|
| 85 |
+
}
|
| 86 |
+
/**
|
| 87 |
+
* Return an iterator with all the action widgets.
|
| 88 |
+
*/
|
| 89 |
+
get widgets() {
|
| 90 |
+
return this._widgets.values();
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
;// CONCATENATED MODULE: ../packages/tree-extension/lib/index.js
|
| 95 |
+
// Copyright (c) Jupyter Development Team.
|
| 96 |
+
// Distributed under the terms of the Modified BSD License.
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
/**
|
| 110 |
+
* The file browser factory.
|
| 111 |
+
*/
|
| 112 |
+
const FILE_BROWSER_FACTORY = 'FileBrowser';
|
| 113 |
+
/**
|
| 114 |
+
* The file browser plugin id.
|
| 115 |
+
*/
|
| 116 |
+
const FILE_BROWSER_PLUGIN_ID = '@jupyterlab/filebrowser-extension:browser';
|
| 117 |
+
/**
|
| 118 |
+
* The namespace for command IDs.
|
| 119 |
+
*/
|
| 120 |
+
var CommandIDs;
|
| 121 |
+
(function (CommandIDs) {
|
| 122 |
+
// The command to activate the filebrowser widget in tree view.
|
| 123 |
+
CommandIDs.activate = 'filebrowser:activate';
|
| 124 |
+
// Activate the file filter in the file browser
|
| 125 |
+
CommandIDs.toggleFileFilter = 'filebrowser:toggle-file-filter';
|
| 126 |
+
})(CommandIDs || (CommandIDs = {}));
|
| 127 |
+
/**
|
| 128 |
+
* Plugin to add extra commands to the file browser to create
|
| 129 |
+
* new notebooks, files, consoles and terminals
|
| 130 |
+
*/
|
| 131 |
+
const createNew = {
|
| 132 |
+
id: '@jupyter-notebook/tree-extension:new',
|
| 133 |
+
description: 'Plugin to add extra commands to the file browser to create new notebooks, files, consoles and terminals.',
|
| 134 |
+
requires: [translation_lib_index_js_.ITranslator],
|
| 135 |
+
optional: [index_js_.IToolbarWidgetRegistry],
|
| 136 |
+
autoStart: true,
|
| 137 |
+
activate: (app, translator, toolbarRegistry) => {
|
| 138 |
+
var _a;
|
| 139 |
+
const { commands, serviceManager } = app;
|
| 140 |
+
const trans = translator.load('notebook');
|
| 141 |
+
const overflowOptions = {
|
| 142 |
+
overflowMenuOptions: { isVisible: false },
|
| 143 |
+
};
|
| 144 |
+
const menubar = new dist_index_es6_js_.MenuBar(overflowOptions);
|
| 145 |
+
const newMenu = new dist_index_es6_js_.Menu({ commands });
|
| 146 |
+
newMenu.title.label = trans.__('New');
|
| 147 |
+
newMenu.title.icon = ui_components_lib_index_js_.caretDownIcon;
|
| 148 |
+
menubar.addMenu(newMenu);
|
| 149 |
+
const populateNewMenu = () => {
|
| 150 |
+
var _a, _b;
|
| 151 |
+
// create an entry per kernel spec for creating a new notebook
|
| 152 |
+
const specs = (_b = (_a = serviceManager.kernelspecs) === null || _a === void 0 ? void 0 : _a.specs) === null || _b === void 0 ? void 0 : _b.kernelspecs;
|
| 153 |
+
for (const name in specs) {
|
| 154 |
+
newMenu.addItem({
|
| 155 |
+
args: { kernelName: name, isLauncher: true },
|
| 156 |
+
command: 'notebook:create-new',
|
| 157 |
+
});
|
| 158 |
+
}
|
| 159 |
+
const baseCommands = [
|
| 160 |
+
'terminal:create-new',
|
| 161 |
+
'console:create',
|
| 162 |
+
'filebrowser:create-new-file',
|
| 163 |
+
'filebrowser:create-new-directory',
|
| 164 |
+
];
|
| 165 |
+
baseCommands.forEach((command) => {
|
| 166 |
+
newMenu.addItem({ command });
|
| 167 |
+
});
|
| 168 |
+
};
|
| 169 |
+
(_a = serviceManager.kernelspecs) === null || _a === void 0 ? void 0 : _a.specsChanged.connect(() => {
|
| 170 |
+
newMenu.clearItems();
|
| 171 |
+
populateNewMenu();
|
| 172 |
+
});
|
| 173 |
+
populateNewMenu();
|
| 174 |
+
if (toolbarRegistry) {
|
| 175 |
+
toolbarRegistry.addFactory(FILE_BROWSER_FACTORY, 'new-dropdown', (browser) => {
|
| 176 |
+
const menubar = new dist_index_es6_js_.MenuBar(overflowOptions);
|
| 177 |
+
menubar.addMenu(newMenu);
|
| 178 |
+
menubar.addClass('jp-DropdownMenu');
|
| 179 |
+
return menubar;
|
| 180 |
+
});
|
| 181 |
+
}
|
| 182 |
+
},
|
| 183 |
+
};
|
| 184 |
+
/**
|
| 185 |
+
* A plugin to add file browser actions to the file browser toolbar.
|
| 186 |
+
*/
|
| 187 |
+
const fileActions = {
|
| 188 |
+
id: '@jupyter-notebook/tree-extension:file-actions',
|
| 189 |
+
description: 'A plugin to add file browser actions to the file browser toolbar.',
|
| 190 |
+
autoStart: true,
|
| 191 |
+
requires: [filebrowser_lib_index_js_.IDefaultFileBrowser, index_js_.IToolbarWidgetRegistry, translation_lib_index_js_.ITranslator],
|
| 192 |
+
activate: (app, browser, toolbarRegistry, translator) => {
|
| 193 |
+
// TODO: use upstream signal when available to detect selection changes
|
| 194 |
+
// https://github.com/jupyterlab/jupyterlab/issues/14598
|
| 195 |
+
const selectionChanged = new index_es6_js_.Signal(browser);
|
| 196 |
+
const methods = [
|
| 197 |
+
'_selectItem',
|
| 198 |
+
'_handleMultiSelect',
|
| 199 |
+
'handleFileSelect',
|
| 200 |
+
];
|
| 201 |
+
methods.forEach((method) => {
|
| 202 |
+
const original = browser['listing'][method];
|
| 203 |
+
browser['listing'][method] = (...args) => {
|
| 204 |
+
original.call(browser['listing'], ...args);
|
| 205 |
+
selectionChanged.emit(void 0);
|
| 206 |
+
};
|
| 207 |
+
});
|
| 208 |
+
browser.model.pathChanged.connect(() => {
|
| 209 |
+
selectionChanged.emit(void 0);
|
| 210 |
+
});
|
| 211 |
+
// Create a toolbar item that adds buttons to the file browser toolbar
|
| 212 |
+
// to perform actions on the files
|
| 213 |
+
const { commands } = app;
|
| 214 |
+
const fileActions = new FilesActionButtons({
|
| 215 |
+
commands,
|
| 216 |
+
browser,
|
| 217 |
+
selectionChanged,
|
| 218 |
+
translator,
|
| 219 |
+
});
|
| 220 |
+
for (const widget of fileActions.widgets) {
|
| 221 |
+
toolbarRegistry.addFactory(FILE_BROWSER_FACTORY, widget.id, () => widget);
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
};
|
| 225 |
+
/**
|
| 226 |
+
* A plugin to set the default file browser settings.
|
| 227 |
+
*/
|
| 228 |
+
const fileBrowserSettings = {
|
| 229 |
+
id: '@jupyter-notebook/tree-extension:settings',
|
| 230 |
+
description: 'Set up the default file browser settings',
|
| 231 |
+
requires: [filebrowser_lib_index_js_.IDefaultFileBrowser],
|
| 232 |
+
optional: [settingregistry_lib_index_js_.ISettingRegistry],
|
| 233 |
+
autoStart: true,
|
| 234 |
+
activate: (app, browser, settingRegistry) => {
|
| 235 |
+
// Default config for notebook.
|
| 236 |
+
// This is a different set of defaults than JupyterLab.
|
| 237 |
+
const defaultFileBrowserConfig = {
|
| 238 |
+
navigateToCurrentDirectory: false,
|
| 239 |
+
singleClickNavigation: true,
|
| 240 |
+
showLastModifiedColumn: true,
|
| 241 |
+
showFileSizeColumn: true,
|
| 242 |
+
showHiddenFiles: false,
|
| 243 |
+
showFileCheckboxes: true,
|
| 244 |
+
sortNotebooksFirst: true,
|
| 245 |
+
showFullPath: false,
|
| 246 |
+
};
|
| 247 |
+
// Apply defaults on plugin activation
|
| 248 |
+
let key;
|
| 249 |
+
for (key in defaultFileBrowserConfig) {
|
| 250 |
+
browser[key] = defaultFileBrowserConfig[key];
|
| 251 |
+
}
|
| 252 |
+
if (settingRegistry) {
|
| 253 |
+
void settingRegistry.load(FILE_BROWSER_PLUGIN_ID).then((settings) => {
|
| 254 |
+
function onSettingsChanged(settings) {
|
| 255 |
+
let key;
|
| 256 |
+
for (key in defaultFileBrowserConfig) {
|
| 257 |
+
const value = settings.get(key).user;
|
| 258 |
+
// only set the setting if it is defined by the user
|
| 259 |
+
if (value !== undefined) {
|
| 260 |
+
browser[key] = value;
|
| 261 |
+
}
|
| 262 |
+
}
|
| 263 |
+
}
|
| 264 |
+
settings.changed.connect(onSettingsChanged);
|
| 265 |
+
onSettingsChanged(settings);
|
| 266 |
+
});
|
| 267 |
+
}
|
| 268 |
+
},
|
| 269 |
+
};
|
| 270 |
+
/**
|
| 271 |
+
* A plugin to add the file filter toggle command to the palette
|
| 272 |
+
*/
|
| 273 |
+
const fileFilterCommand = {
|
| 274 |
+
id: '@jupyter-notebook/tree-extension:file-filter-command',
|
| 275 |
+
description: 'A plugin to add file filter command to the palette.',
|
| 276 |
+
autoStart: true,
|
| 277 |
+
optional: [index_js_.ICommandPalette],
|
| 278 |
+
activate: (app, palette) => {
|
| 279 |
+
if (palette) {
|
| 280 |
+
palette.addItem({
|
| 281 |
+
command: CommandIDs.toggleFileFilter,
|
| 282 |
+
category: 'File Browser',
|
| 283 |
+
});
|
| 284 |
+
}
|
| 285 |
+
},
|
| 286 |
+
};
|
| 287 |
+
/**
|
| 288 |
+
* Plugin to load the default plugins that are loaded on all the Notebook pages
|
| 289 |
+
* (tree, edit, view, etc.) so they are visible in the settings editor.
|
| 290 |
+
*/
|
| 291 |
+
const loadPlugins = {
|
| 292 |
+
id: '@jupyter-notebook/tree-extension:load-plugins',
|
| 293 |
+
description: 'Plugin to load the default plugins that are loaded on all the Notebook pages (tree, edit, view, etc.) so they are visible in the settings editor.',
|
| 294 |
+
autoStart: true,
|
| 295 |
+
requires: [settingregistry_lib_index_js_.ISettingRegistry],
|
| 296 |
+
activate(app, settingRegistry) {
|
| 297 |
+
const { isDisabled } = lib_index_js_.PageConfig.Extension;
|
| 298 |
+
const connector = settingRegistry.connector;
|
| 299 |
+
const allPluginsOption = lib_index_js_.PageConfig.getOption('allPlugins');
|
| 300 |
+
if (!allPluginsOption) {
|
| 301 |
+
return;
|
| 302 |
+
}
|
| 303 |
+
// build the list of plugins shipped by default on the all the notebook pages
|
| 304 |
+
// this avoid explicitly loading `'all'` plugins such as the ones used
|
| 305 |
+
// in JupyterLab only
|
| 306 |
+
const allPlugins = JSON.parse(allPluginsOption);
|
| 307 |
+
const pluginsSet = new Set();
|
| 308 |
+
Object.keys(allPlugins).forEach((key) => {
|
| 309 |
+
const extensionsAndPlugins = allPlugins[key];
|
| 310 |
+
Object.keys(extensionsAndPlugins).forEach((plugin) => {
|
| 311 |
+
const value = extensionsAndPlugins[plugin];
|
| 312 |
+
if (typeof value === 'boolean' && value) {
|
| 313 |
+
pluginsSet.add(plugin);
|
| 314 |
+
}
|
| 315 |
+
else if (Array.isArray(value)) {
|
| 316 |
+
value.forEach((v) => {
|
| 317 |
+
pluginsSet.add(v);
|
| 318 |
+
});
|
| 319 |
+
}
|
| 320 |
+
});
|
| 321 |
+
});
|
| 322 |
+
app.restored.then(async () => {
|
| 323 |
+
const plugins = await connector.list('all');
|
| 324 |
+
plugins.ids.forEach(async (id) => {
|
| 325 |
+
const [extension] = id.split(':');
|
| 326 |
+
// load the plugin if it is built-in the notebook application explicitly
|
| 327 |
+
// either included as an extension or as a plugin directly
|
| 328 |
+
const hasPlugin = pluginsSet.has(extension) || pluginsSet.has(id);
|
| 329 |
+
if (!hasPlugin || isDisabled(id) || id in settingRegistry.plugins) {
|
| 330 |
+
return;
|
| 331 |
+
}
|
| 332 |
+
try {
|
| 333 |
+
await settingRegistry.load(id);
|
| 334 |
+
}
|
| 335 |
+
catch (error) {
|
| 336 |
+
console.warn(`Settings failed to load for (${id})`, error);
|
| 337 |
+
}
|
| 338 |
+
});
|
| 339 |
+
});
|
| 340 |
+
},
|
| 341 |
+
};
|
| 342 |
+
/**
|
| 343 |
+
* A plugin to add file browser commands for the tree view.
|
| 344 |
+
*/
|
| 345 |
+
const openFileBrowser = {
|
| 346 |
+
id: '@jupyter-notebook/tree-extension:open-file-browser',
|
| 347 |
+
description: 'A plugin to add file browser commands for the tree view.',
|
| 348 |
+
requires: [tree_lib_index_js_.INotebookTree, filebrowser_lib_index_js_.IDefaultFileBrowser],
|
| 349 |
+
autoStart: true,
|
| 350 |
+
activate: (app, notebookTree, browser) => {
|
| 351 |
+
const { commands } = app;
|
| 352 |
+
commands.addCommand(CommandIDs.activate, {
|
| 353 |
+
execute: () => {
|
| 354 |
+
notebookTree.currentWidget = browser;
|
| 355 |
+
},
|
| 356 |
+
});
|
| 357 |
+
},
|
| 358 |
+
};
|
| 359 |
+
/**
|
| 360 |
+
* A plugin to add the file browser widget to an INotebookShell
|
| 361 |
+
*/
|
| 362 |
+
const notebookTreeWidget = {
|
| 363 |
+
id: '@jupyter-notebook/tree-extension:widget',
|
| 364 |
+
description: 'A plugin to add the file browser widget to an INotebookShell.',
|
| 365 |
+
requires: [
|
| 366 |
+
filebrowser_lib_index_js_.IDefaultFileBrowser,
|
| 367 |
+
translation_lib_index_js_.ITranslator,
|
| 368 |
+
settingregistry_lib_index_js_.ISettingRegistry,
|
| 369 |
+
index_js_.IToolbarWidgetRegistry,
|
| 370 |
+
filebrowser_lib_index_js_.IFileBrowserFactory,
|
| 371 |
+
],
|
| 372 |
+
optional: [
|
| 373 |
+
running_lib_index_js_.IRunningSessionManagers,
|
| 374 |
+
settingeditor_lib_index_js_.ISettingEditorTracker,
|
| 375 |
+
settingeditor_lib_index_js_.IJSONSettingEditorTracker,
|
| 376 |
+
],
|
| 377 |
+
autoStart: true,
|
| 378 |
+
provides: tree_lib_index_js_.INotebookTree,
|
| 379 |
+
activate: (app, browser, translator, settingRegistry, toolbarRegistry, factory, manager, settingEditorTracker, jsonSettingEditorTracker) => {
|
| 380 |
+
const nbTreeWidget = new tree_lib_index_js_.NotebookTreeWidget();
|
| 381 |
+
const trans = translator.load('notebook');
|
| 382 |
+
browser.title.label = trans.__('Files');
|
| 383 |
+
browser.node.setAttribute('role', 'region');
|
| 384 |
+
browser.node.setAttribute('aria-label', trans.__('File Browser Section'));
|
| 385 |
+
browser.title.icon = ui_components_lib_index_js_.folderIcon;
|
| 386 |
+
nbTreeWidget.addWidget(browser);
|
| 387 |
+
nbTreeWidget.tabBar.addTab(browser.title);
|
| 388 |
+
nbTreeWidget.tabsMovable = false;
|
| 389 |
+
toolbarRegistry.addFactory(FILE_BROWSER_FACTORY, 'uploader', (browser) => new filebrowser_lib_index_js_.Uploader({
|
| 390 |
+
model: browser.model,
|
| 391 |
+
translator,
|
| 392 |
+
label: trans.__('Upload'),
|
| 393 |
+
}));
|
| 394 |
+
(0,index_js_.setToolbar)(browser, (0,index_js_.createToolbarFactory)(toolbarRegistry, settingRegistry, FILE_BROWSER_FACTORY, notebookTreeWidget.id, translator));
|
| 395 |
+
if (manager) {
|
| 396 |
+
const running = new running_lib_index_js_.RunningSessions(manager, translator);
|
| 397 |
+
running.id = 'jp-running-sessions-tree';
|
| 398 |
+
running.title.label = trans.__('Running');
|
| 399 |
+
running.title.icon = ui_components_lib_index_js_.runningIcon;
|
| 400 |
+
nbTreeWidget.addWidget(running);
|
| 401 |
+
nbTreeWidget.tabBar.addTab(running.title);
|
| 402 |
+
}
|
| 403 |
+
app.shell.add(nbTreeWidget, 'main', { rank: 100 });
|
| 404 |
+
// add a separate tab for each setting editor
|
| 405 |
+
[settingEditorTracker, jsonSettingEditorTracker].forEach((editorTracker) => {
|
| 406 |
+
if (editorTracker) {
|
| 407 |
+
editorTracker.widgetAdded.connect((_, editor) => {
|
| 408 |
+
nbTreeWidget.addWidget(editor);
|
| 409 |
+
nbTreeWidget.tabBar.addTab(editor.title);
|
| 410 |
+
nbTreeWidget.currentWidget = editor;
|
| 411 |
+
});
|
| 412 |
+
}
|
| 413 |
+
});
|
| 414 |
+
const { tracker } = factory;
|
| 415 |
+
// TODO: remove
|
| 416 |
+
// Workaround to force the focus on the default file browser
|
| 417 |
+
// See https://github.com/jupyterlab/jupyterlab/issues/15629 for more info
|
| 418 |
+
const setCurrentToDefaultBrower = () => {
|
| 419 |
+
tracker['_pool'].current = browser;
|
| 420 |
+
};
|
| 421 |
+
tracker.widgetAdded.connect((sender, widget) => {
|
| 422 |
+
setCurrentToDefaultBrower();
|
| 423 |
+
});
|
| 424 |
+
setCurrentToDefaultBrower();
|
| 425 |
+
return nbTreeWidget;
|
| 426 |
+
},
|
| 427 |
+
};
|
| 428 |
+
/**
|
| 429 |
+
* Export the plugins as default.
|
| 430 |
+
*/
|
| 431 |
+
const plugins = [
|
| 432 |
+
createNew,
|
| 433 |
+
fileActions,
|
| 434 |
+
fileBrowserSettings,
|
| 435 |
+
fileFilterCommand,
|
| 436 |
+
loadPlugins,
|
| 437 |
+
openFileBrowser,
|
| 438 |
+
notebookTreeWidget,
|
| 439 |
+
];
|
| 440 |
+
/* harmony default export */ const lib = (plugins);
|
| 441 |
+
|
| 442 |
+
|
| 443 |
+
/***/ })
|
| 444 |
+
|
| 445 |
+
}]);
|
| 446 |
+
//# sourceMappingURL=7302.8dfb32b083b16efa038a.js.map?v=8dfb32b083b16efa038a
|
vlmpy310/lib/python3.10/site-packages/notebook/static/7360.85741af6d388bbd1f63d.js
ADDED
|
@@ -0,0 +1,244 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
(self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] = self["webpackChunk_JUPYTERLAB_CORE_OUTPUT"] || []).push([[7360],{
|
| 3 |
+
|
| 4 |
+
/***/ 7360:
|
| 5 |
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
| 6 |
+
|
| 7 |
+
__webpack_require__.r(__webpack_exports__);
|
| 8 |
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
| 9 |
+
/* harmony export */ groovy: () => (/* binding */ groovy)
|
| 10 |
+
/* harmony export */ });
|
| 11 |
+
function words(str) {
|
| 12 |
+
var obj = {}, words = str.split(" ");
|
| 13 |
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
| 14 |
+
return obj;
|
| 15 |
+
}
|
| 16 |
+
var keywords = words(
|
| 17 |
+
"abstract as assert boolean break byte case catch char class const continue def default " +
|
| 18 |
+
"do double else enum extends final finally float for goto if implements import in " +
|
| 19 |
+
"instanceof int interface long native new package private protected public return " +
|
| 20 |
+
"short static strictfp super switch synchronized threadsafe throw throws trait transient " +
|
| 21 |
+
"try void volatile while");
|
| 22 |
+
var blockKeywords = words("catch class def do else enum finally for if interface switch trait try while");
|
| 23 |
+
var standaloneKeywords = words("return break continue");
|
| 24 |
+
var atoms = words("null true false this");
|
| 25 |
+
|
| 26 |
+
var curPunc;
|
| 27 |
+
function tokenBase(stream, state) {
|
| 28 |
+
var ch = stream.next();
|
| 29 |
+
if (ch == '"' || ch == "'") {
|
| 30 |
+
return startString(ch, stream, state);
|
| 31 |
+
}
|
| 32 |
+
if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
| 33 |
+
curPunc = ch;
|
| 34 |
+
return null;
|
| 35 |
+
}
|
| 36 |
+
if (/\d/.test(ch)) {
|
| 37 |
+
stream.eatWhile(/[\w\.]/);
|
| 38 |
+
if (stream.eat(/eE/)) { stream.eat(/\+\-/); stream.eatWhile(/\d/); }
|
| 39 |
+
return "number";
|
| 40 |
+
}
|
| 41 |
+
if (ch == "/") {
|
| 42 |
+
if (stream.eat("*")) {
|
| 43 |
+
state.tokenize.push(tokenComment);
|
| 44 |
+
return tokenComment(stream, state);
|
| 45 |
+
}
|
| 46 |
+
if (stream.eat("/")) {
|
| 47 |
+
stream.skipToEnd();
|
| 48 |
+
return "comment";
|
| 49 |
+
}
|
| 50 |
+
if (expectExpression(state.lastToken, false)) {
|
| 51 |
+
return startString(ch, stream, state);
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
+
if (ch == "-" && stream.eat(">")) {
|
| 55 |
+
curPunc = "->";
|
| 56 |
+
return null;
|
| 57 |
+
}
|
| 58 |
+
if (/[+\-*&%=<>!?|\/~]/.test(ch)) {
|
| 59 |
+
stream.eatWhile(/[+\-*&%=<>|~]/);
|
| 60 |
+
return "operator";
|
| 61 |
+
}
|
| 62 |
+
stream.eatWhile(/[\w\$_]/);
|
| 63 |
+
if (ch == "@") { stream.eatWhile(/[\w\$_\.]/); return "meta"; }
|
| 64 |
+
if (state.lastToken == ".") return "property";
|
| 65 |
+
if (stream.eat(":")) { curPunc = "proplabel"; return "property"; }
|
| 66 |
+
var cur = stream.current();
|
| 67 |
+
if (atoms.propertyIsEnumerable(cur)) { return "atom"; }
|
| 68 |
+
if (keywords.propertyIsEnumerable(cur)) {
|
| 69 |
+
if (blockKeywords.propertyIsEnumerable(cur)) curPunc = "newstatement";
|
| 70 |
+
else if (standaloneKeywords.propertyIsEnumerable(cur)) curPunc = "standalone";
|
| 71 |
+
return "keyword";
|
| 72 |
+
}
|
| 73 |
+
return "variable";
|
| 74 |
+
}
|
| 75 |
+
tokenBase.isBase = true;
|
| 76 |
+
|
| 77 |
+
function startString(quote, stream, state) {
|
| 78 |
+
var tripleQuoted = false;
|
| 79 |
+
if (quote != "/" && stream.eat(quote)) {
|
| 80 |
+
if (stream.eat(quote)) tripleQuoted = true;
|
| 81 |
+
else return "string";
|
| 82 |
+
}
|
| 83 |
+
function t(stream, state) {
|
| 84 |
+
var escaped = false, next, end = !tripleQuoted;
|
| 85 |
+
while ((next = stream.next()) != null) {
|
| 86 |
+
if (next == quote && !escaped) {
|
| 87 |
+
if (!tripleQuoted) { break; }
|
| 88 |
+
if (stream.match(quote + quote)) { end = true; break; }
|
| 89 |
+
}
|
| 90 |
+
if (quote == '"' && next == "$" && !escaped) {
|
| 91 |
+
if (stream.eat("{")) {
|
| 92 |
+
state.tokenize.push(tokenBaseUntilBrace());
|
| 93 |
+
return "string";
|
| 94 |
+
} else if (stream.match(/^\w/, false)) {
|
| 95 |
+
state.tokenize.push(tokenVariableDeref);
|
| 96 |
+
return "string";
|
| 97 |
+
}
|
| 98 |
+
}
|
| 99 |
+
escaped = !escaped && next == "\\";
|
| 100 |
+
}
|
| 101 |
+
if (end) state.tokenize.pop();
|
| 102 |
+
return "string";
|
| 103 |
+
}
|
| 104 |
+
state.tokenize.push(t);
|
| 105 |
+
return t(stream, state);
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
function tokenBaseUntilBrace() {
|
| 109 |
+
var depth = 1;
|
| 110 |
+
function t(stream, state) {
|
| 111 |
+
if (stream.peek() == "}") {
|
| 112 |
+
depth--;
|
| 113 |
+
if (depth == 0) {
|
| 114 |
+
state.tokenize.pop();
|
| 115 |
+
return state.tokenize[state.tokenize.length-1](stream, state);
|
| 116 |
+
}
|
| 117 |
+
} else if (stream.peek() == "{") {
|
| 118 |
+
depth++;
|
| 119 |
+
}
|
| 120 |
+
return tokenBase(stream, state);
|
| 121 |
+
}
|
| 122 |
+
t.isBase = true;
|
| 123 |
+
return t;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
function tokenVariableDeref(stream, state) {
|
| 127 |
+
var next = stream.match(/^(\.|[\w\$_]+)/)
|
| 128 |
+
if (!next) {
|
| 129 |
+
state.tokenize.pop()
|
| 130 |
+
return state.tokenize[state.tokenize.length-1](stream, state)
|
| 131 |
+
}
|
| 132 |
+
return next[0] == "." ? null : "variable"
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
function tokenComment(stream, state) {
|
| 136 |
+
var maybeEnd = false, ch;
|
| 137 |
+
while (ch = stream.next()) {
|
| 138 |
+
if (ch == "/" && maybeEnd) {
|
| 139 |
+
state.tokenize.pop();
|
| 140 |
+
break;
|
| 141 |
+
}
|
| 142 |
+
maybeEnd = (ch == "*");
|
| 143 |
+
}
|
| 144 |
+
return "comment";
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
function expectExpression(last, newline) {
|
| 148 |
+
return !last || last == "operator" || last == "->" || /[\.\[\{\(,;:]/.test(last) ||
|
| 149 |
+
last == "newstatement" || last == "keyword" || last == "proplabel" ||
|
| 150 |
+
(last == "standalone" && !newline);
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
function Context(indented, column, type, align, prev) {
|
| 154 |
+
this.indented = indented;
|
| 155 |
+
this.column = column;
|
| 156 |
+
this.type = type;
|
| 157 |
+
this.align = align;
|
| 158 |
+
this.prev = prev;
|
| 159 |
+
}
|
| 160 |
+
function pushContext(state, col, type) {
|
| 161 |
+
return state.context = new Context(state.indented, col, type, null, state.context);
|
| 162 |
+
}
|
| 163 |
+
function popContext(state) {
|
| 164 |
+
var t = state.context.type;
|
| 165 |
+
if (t == ")" || t == "]" || t == "}")
|
| 166 |
+
state.indented = state.context.indented;
|
| 167 |
+
return state.context = state.context.prev;
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
// Interface
|
| 171 |
+
|
| 172 |
+
const groovy = {
|
| 173 |
+
name: "groovy",
|
| 174 |
+
startState: function(indentUnit) {
|
| 175 |
+
return {
|
| 176 |
+
tokenize: [tokenBase],
|
| 177 |
+
context: new Context(-indentUnit, 0, "top", false),
|
| 178 |
+
indented: 0,
|
| 179 |
+
startOfLine: true,
|
| 180 |
+
lastToken: null
|
| 181 |
+
};
|
| 182 |
+
},
|
| 183 |
+
|
| 184 |
+
token: function(stream, state) {
|
| 185 |
+
var ctx = state.context;
|
| 186 |
+
if (stream.sol()) {
|
| 187 |
+
if (ctx.align == null) ctx.align = false;
|
| 188 |
+
state.indented = stream.indentation();
|
| 189 |
+
state.startOfLine = true;
|
| 190 |
+
// Automatic semicolon insertion
|
| 191 |
+
if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) {
|
| 192 |
+
popContext(state); ctx = state.context;
|
| 193 |
+
}
|
| 194 |
+
}
|
| 195 |
+
if (stream.eatSpace()) return null;
|
| 196 |
+
curPunc = null;
|
| 197 |
+
var style = state.tokenize[state.tokenize.length-1](stream, state);
|
| 198 |
+
if (style == "comment") return style;
|
| 199 |
+
if (ctx.align == null) ctx.align = true;
|
| 200 |
+
|
| 201 |
+
if ((curPunc == ";" || curPunc == ":") && ctx.type == "statement") popContext(state);
|
| 202 |
+
// Handle indentation for {x -> \n ... }
|
| 203 |
+
else if (curPunc == "->" && ctx.type == "statement" && ctx.prev.type == "}") {
|
| 204 |
+
popContext(state);
|
| 205 |
+
state.context.align = false;
|
| 206 |
+
}
|
| 207 |
+
else if (curPunc == "{") pushContext(state, stream.column(), "}");
|
| 208 |
+
else if (curPunc == "[") pushContext(state, stream.column(), "]");
|
| 209 |
+
else if (curPunc == "(") pushContext(state, stream.column(), ")");
|
| 210 |
+
else if (curPunc == "}") {
|
| 211 |
+
while (ctx.type == "statement") ctx = popContext(state);
|
| 212 |
+
if (ctx.type == "}") ctx = popContext(state);
|
| 213 |
+
while (ctx.type == "statement") ctx = popContext(state);
|
| 214 |
+
}
|
| 215 |
+
else if (curPunc == ctx.type) popContext(state);
|
| 216 |
+
else if (ctx.type == "}" || ctx.type == "top" || (ctx.type == "statement" && curPunc == "newstatement"))
|
| 217 |
+
pushContext(state, stream.column(), "statement");
|
| 218 |
+
state.startOfLine = false;
|
| 219 |
+
state.lastToken = curPunc || style;
|
| 220 |
+
return style;
|
| 221 |
+
},
|
| 222 |
+
|
| 223 |
+
indent: function(state, textAfter, cx) {
|
| 224 |
+
if (!state.tokenize[state.tokenize.length-1].isBase) return null;
|
| 225 |
+
var firstChar = textAfter && textAfter.charAt(0), ctx = state.context;
|
| 226 |
+
if (ctx.type == "statement" && !expectExpression(state.lastToken, true)) ctx = ctx.prev;
|
| 227 |
+
var closing = firstChar == ctx.type;
|
| 228 |
+
if (ctx.type == "statement") return ctx.indented + (firstChar == "{" ? 0 : cx.unit);
|
| 229 |
+
else if (ctx.align) return ctx.column + (closing ? 0 : 1);
|
| 230 |
+
else return ctx.indented + (closing ? 0 : cx.unit);
|
| 231 |
+
},
|
| 232 |
+
|
| 233 |
+
languageData: {
|
| 234 |
+
indentOnInput: /^\s*[{}]$/,
|
| 235 |
+
commentTokens: {line: "//", block: {open: "/*", close: "*/"}},
|
| 236 |
+
closeBrackets: {brackets: ["(", "[", "{", "'", '"', "'''", '"""']}
|
| 237 |
+
}
|
| 238 |
+
};
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
/***/ })
|
| 242 |
+
|
| 243 |
+
}]);
|
| 244 |
+
//# sourceMappingURL=7360.85741af6d388bbd1f63d.js.map?v=85741af6d388bbd1f63d
|