28 lines
103 KiB
Text
28 lines
103 KiB
Text
|
{
|
||
|
"version": 3,
|
||
|
"sources": [
|
||
|
"components/jquery/jquery.min.js",
|
||
|
"base/js/namespace.js",
|
||
|
"base/js/events.js",
|
||
|
"base/js/page.js",
|
||
|
"auth/js/loginmain.js",
|
||
|
"auth/js/logoutmain.js",
|
||
|
"bidi/numericshaping.js",
|
||
|
"bidi/bidi.js",
|
||
|
"auth/js/main.js"
|
||
|
],
|
||
|
"names": [],
|
||
|
"mappings": "AAAA;AACA;AACA;AACA,ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,AC/EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
|
||
|
"file": "main.min.js",
|
||
|
"sourcesContent": [
|
||
|
"/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */\n!function(e,t){\"use strict\";\"object\"==typeof module&&\"object\"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error(\"jQuery requires a window with a document\");return t(e)}:t(e)}(\"undefined\"!=typeof window?window:this,function(C,e){\"use strict\";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return\"function\"==typeof e&&\"number\"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement(\"script\");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+\"\":\"object\"==typeof e||\"function\"==typeof e?n[o.call(e)]||\"object\":typeof e}var f=\"3.5.1\",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&\"length\"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&(\"array\"===n||0===t||\"number\"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:f,constructor:S,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for(\"boolean\"==typeof a&&(l=a,a=arguments[s]||{},s++),\"object\"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],\"__proto__\"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:\"jQuery\"+(f+Math.random()).replace(/\\D/g,\"\"),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||\"[object Object]\"!==o.call(e))&&(!(t=r(e))||\"function\"==typeof(n=v.call(t,\"constructor\")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?S.merge(n,\"string\"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:y}),\"function\"==typeof Symbol&&(S.fn[Symbol.iterator]=t[Symbol.iterator]),S.each(\"Boolean Number String Function Array Date RegExp Object Error Symbol\".split(\" \"),function(e,t){n[\"[object \"+t+\"]\"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,y,S=\"sizzle\"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(
|
||
|
"// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\n\nvar Jupyter = Jupyter || {};\n\nvar jprop = function(name, module_path){\n Object.defineProperty(Jupyter, name, {\n get: function() { \n console.warn('accessing `'+name+'` is deprecated. Use `requirejs(\"'+module_path+'\")`');\n return requirejs(module_path); \n },\n enumerable: true,\n configurable: false\n });\n}\n\nvar jglobal = function(name, module_path){\n Object.defineProperty(Jupyter, name, {\n get: function() { \n console.warn('accessing `'+name+'` is deprecated. Use `requirejs(\"'+module_path+'\").'+name+'`');\n return requirejs(module_path)[name]; \n },\n enumerable: true,\n configurable: false\n });\n}\n\ndefine('base/js/namespace',[],function(){\n \"use strict\";\n\n // expose modules\n \n jprop('utils','base/js/utils')\n \n //Jupyter.load_extensions = Jupyter.utils.load_extensions;\n // \n jprop('security','base/js/security');\n jprop('keyboard','base/js/keyboard');\n jprop('dialog','base/js/dialog');\n jprop('mathjaxutils','notebook/js/mathjaxutils');\n\n\n //// exposed constructors\n jglobal('CommManager','services/kernels/comm')\n jglobal('Comm','services/kernels/comm')\n\n jglobal('NotificationWidget','base/js/notificationwidget');\n jglobal('Kernel','services/kernels/kernel');\n jglobal('Session','services/sessions/session');\n jglobal('LoginWidget','auth/js/loginwidget');\n jglobal('Page','base/js/page');\n\n // notebook\n jglobal('TextCell','notebook/js/textcell');\n jglobal('OutputArea','notebook/js/outputarea');\n jglobal('KeyboardManager','notebook/js/keyboardmanager');\n jglobal('Completer','notebook/js/completer');\n jglobal('Notebook','notebook/js/notebook');\n jglobal('Tooltip','notebook/js/tooltip');\n jglobal('Toolbar','notebook/js/toolbar');\n jglobal('SaveWidget','notebook/js/savewidget');\n jglobal('Pager','notebook/js/pager');\n jglobal('QuickHelp','notebook/js/quickhelp');\n jglobal('MarkdownCell','notebook/js/textcell');\n jglobal('RawCell','notebook/js/textcell');\n jglobal('Cell','notebook/js/cell');\n jglobal('MainToolBar','notebook/js/maintoolbar');\n jglobal('NotebookNotificationArea','notebook/js/notificationarea');\n jglobal('NotebookTour', 'notebook/js/tour');\n jglobal('MenuBar', 'notebook/js/menubar');\n\n // tree\n jglobal('SessionList','tree/js/sessionlist');\n\n Jupyter.version = \"6.1.5\";\n Jupyter._target = '_blank';\n\n return Jupyter;\n});\n\n// deprecated since 4.0, remove in 5+\nvar IPython = Jupyter;\n\n",
|
||
|
"// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\n// Give us an object to bind all events to. This object should be created\n// before all other objects so it exists when others register event handlers.\n// To register an event handler:\n//\n// requirejs(['base/js/events'], function (events) {\n// events.on(\"event.Namespace\", function () { do_stuff(); });\n// });\n\ndefine('base/js/events',['jquery', 'base/js/namespace'], function($, Jupyter) {\n \"use strict\";\n \n // Events singleton\n if (!window._Events) {\n window._Events = function () {};\n window._events = new window._Events();\n }\n \n // Backwards compatibility.\n Jupyter.Events = window._Events;\n Jupyter.events = window._events;\n \n var events = $([window._events]);\n\n // catch and log errors in triggered events\n events._original_trigger = events.trigger;\n events.trigger = function (name, data) {\n try {\n this._original_trigger.apply(this, arguments);\n } catch (e) {\n console.error(\"Exception in event handler for \" + name, e, arguments);\n }\n }\n return events;\n});\n\n",
|
||
|
"// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\ndefine('base/js/page',[\n 'jquery',\n 'base/js/events',\n], function($, events){\n \"use strict\";\n\n var Page = function (header_div_selector, site_div_selector) {\n /**\n * Constructor\n *\n * Parameters\n * header_div_selector: string\n * site_div_selector: string\n */\n this.header_div_element = $(header_div_selector || 'div#header');\n this.site_div_element = $(site_div_selector || 'div#site');\n\n this.bind_events();\n };\n\n Page.prototype.bind_events = function () {\n // resize site on:\n // - window resize\n // - header change\n // - page load\n var _handle_resize = $.proxy(this._resize_site, this);\n\n $(window).resize(_handle_resize);\n\n // On document ready, resize codemirror.\n $(document).ready(_handle_resize);\n events.on('resize-header.Page', _handle_resize);\n };\n\n Page.prototype.show = function () {\n /**\n * The header and site divs start out hidden to prevent FLOUC.\n * Main scripts should call this method after styling everything.\n */\n this.show_header();\n this.show_site();\n };\n\n Page.prototype.show_header = function () {\n /**\n * The header and site divs start out hidden to prevent FLOUC.\n * Main scripts should call this method after styling everything.\n */\n this.header_div_element.css('display','block');\n };\n\n Page.prototype.show_site = function () {\n /**\n * The header and site divs start out hidden to prevent FLOUC.\n * Main scripts should call this method after styling everything.\n */\n this.site_div_element.css('display', 'block');\n this._resize_site();\n };\n\n Page.prototype._resize_site = function(e) {\n /**\n * Update the site's size.\n */\n\n // In the case an event is passed in, only trigger if the event does\n // *not* have a target DOM node (i.e., it is not bubbling up). See\n // https://bugs.jquery.com/ticket/9841#comment:8\n if (!(e && e.target && e.target.tagName)) {\n $('div#site').height($(window).height() - $('#header').height());\n }\n };\n\n return {'Page': Page};\n});\n\n",
|
||
|
"// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\ndefine('auth/js/loginmain',['jquery', 'base/js/namespace', 'base/js/page'], function($, IPython, page) {\n function login_main() {\n var page_instance = new page.Page('div#header', 'div#site');\n page_instance.show();\n $('input#password_input').focus();\n IPython.page = page_instance;\n }\n return login_main;\n});\n\n",
|
||
|
"// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\ndefine('auth/js/logoutmain',['base/js/namespace', 'base/js/page'], function(IPython, page) {\n function logout_main() {\n var page_instance = new page.Page('div#header', 'div#site');\n page_instance.show();\n\n IPython.page = page_instance;\n }\n return logout_main;\n});\n\n",
|
||
|
"// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\ndefine('bidi/numericshaping',[],\n function(bidi) {\n \"use strict\";\n\t\n var regex = /([0-9])|([\\u0660-\\u0669])|([\\u0608\\u060B\\u060D\\u061B-\\u064A\\u066D-\\u066F\\u0671-\\u06D5\\u06E5-\\u06E6\\u06EE-\\u06EF\\u06FA-\\u06FF\\u0750-\\u077F\\u08A0-\\u08E3\\u200F\\u202B\\u202E\\u2067\\uFB50-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFC\\uFDFE-\\uFDFF\\uFE70-\\uFEFE]+)|([^0-9\\u0660-\\u0669\\u0608\\u060B\\u060D\\u061B-\\u064A\\u066D-\\u066F\\u0671-\\u06D5\\u06E5-\\u06E6\\u06EE-\\u06EF\\u06FA-\\u06FF\\u0750-\\u077F\\u08A0-\\u08E3\\u200F\\u202B\\u202E\\u2067\\uFB50-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFDFC\\uFDFE-\\uFDFF\\uFE70-\\uFEFE\\u0600-\\u0607\\u0609-\\u060A\\u060C\\u060E-\\u061A\\u064B-\\u066C\\u0670\\u06D6-\\u06E4\\u06E7-\\u06ED\\u06F0-\\u06F9\\u08E4-\\u08FF\\uFD3E-\\uFD3F\\uFDD0-\\uFDEF\\uFDFD\\uFEFF\\u0000-\\u0040\\u005B-\\u0060\\u007B-\\u007F\\u0080-\\u00A9\\u00AB-\\u00B4\\u00B6-\\u00B9\\u00BB-\\u00BF\\u00D7\\u00F7\\u02B9-\\u02BA\\u02C2-\\u02CF\\u02D2-\\u02DF\\u02E5-\\u02ED\\u02EF-\\u02FF\\u2070\\u2074-\\u207E\\u2080-\\u208E\\u2100-\\u2101\\u2103-\\u2106\\u2108-\\u2109\\u2114\\u2116-\\u2118\\u211E-\\u2123\\u2125\\u2127\\u2129\\u212E\\u213A-\\u213B\\u2140-\\u2144\\u214A-\\u214D\\u2150-\\u215F\\u2189\\uA720-\\uA721\\uA788\\uFF01-\\uFF20\\uFF3B-\\uFF40\\uFF5B-\\uFF65\\uFFE0-\\uFFE6\\uFFE8-\\uFFEE]+)/g;\n\t\n var shape = function(text, shaperType) {\n text = text.toString();\n if (!text) { \n return text;\n }\n switch (shaperType) {\n case \"defaultNumeral\":\n return _shapeEuropean(text);\n case \"national\":\n return _shapeArabic(text);\n default:\n return text;\n }\n };\n \n var _shapeEuropean = function(text) {\n return text.replace(/[\\u0660-\\u0669]/g, function(c) {\n return c.charCodeAt(0) - 1632;\n });\n };\n\n var _shapeArabic = function(text) {\n return text.replace(/[0-9]/g, function(c) {\n return String.fromCharCode(parseInt(c) + 1632);\n });\n };\n \n var numericshaping = {\n shapeNumerals : shape\n };\n \n return numericshaping; \n});\n\n",
|
||
|
"// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\ndefine('bidi/bidi',['bidi/numericshaping'], function(numericshaping) {\n 'use strict';\n\n var shaperType = '';\n\n var _uiLang = function() {\n return navigator.language.toLowerCase();\n };\n\n var _loadLocale = function() {\n if (_isMirroringEnabled()) {\n document.body.dir = 'rtl';\n }\n\n requirejs(['moment'], function (moment) {\n console.log('Loaded moment locale', moment.locale(_uiLang()));\n });\n\n shaperType = _uiLang().split('-')[0] == 'ar' ? 'national' : 'defaultNumeral';\n };\n\n var _isMirroringEnabled = function() {\n return new RegExp('^(ar|ara|arc|ae|ave|egy|he|heb|nqo|pal|phn|sam|syc|syr|fa|per|fas|ckb|ur|urd)').test(_uiLang());\n };\n\n /**\n * @param value : the string to apply the bidi-support on it.\n * @param flag :indicates the type of bidi-support (Numeric-shaping ,Base-text-dir ).\n */\n var _applyBidi = function(value /*, flag*/) {\n value = numericshaping.shapeNumerals(value, shaperType);\n return value;\n };\n\n var bidi = {\n applyBidi: _applyBidi,\n isMirroringEnabled: _isMirroringEnabled,\n loadLocale: _loadLocale,\n };\n\n return bidi;\n});\n\n",
|
||
|
"// Copyright (c) Jupyter Development Team.\n// Distributed under the terms of the Modified BSD License.\n\ndefine('auth/js/main',['./loginmain', './logoutmain', 'bidi/bidi'], function (login_main, logout_main, bidi) {\n\tif(bidi.isMirroringEnabled()){\n\t\t$(\"body\").attr(\"dir\",\"rtl\");\n\t}\n return {\n login_main: login_main,\n logout_main: logout_main\n };\n});\n\n"
|
||
|
]
|
||
|
}
|