webpackJsonp([54],{ /***/ 1021: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["g"] = isThenable; /* harmony export (immutable) */ __webpack_exports__["e"] = createCancelablePromise; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Delayer; }); /* harmony export (immutable) */ __webpack_exports__["h"] = timeout; /* harmony export (immutable) */ __webpack_exports__["f"] = disposableTimeout; /* unused harmony export first */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return TimeoutTimer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return IntervalTimer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return RunOnceScheduler; }); /* unused harmony export runWhenIdle */ /* unused harmony export IdleValue */ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__cancellation_js__ = __webpack_require__(1678); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__errors_js__ = __webpack_require__(956); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lifecycle_js__ = __webpack_require__(825); /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); function isThenable(obj) { return obj && typeof obj.then === 'function'; } function createCancelablePromise(callback) { var source = new __WEBPACK_IMPORTED_MODULE_0__cancellation_js__["a" /* CancellationTokenSource */](); var thenable = callback(source.token); var promise = new Promise(function (resolve, reject) { source.token.onCancellationRequested(function () { reject(__WEBPACK_IMPORTED_MODULE_1__errors_js__["a" /* canceled */]()); }); Promise.resolve(thenable).then(function (value) { source.dispose(); resolve(value); }, function (err) { source.dispose(); reject(err); }); }); return new /** @class */ (function () { function class_1() { } class_1.prototype.cancel = function () { source.cancel(); }; class_1.prototype.then = function (resolve, reject) { return promise.then(resolve, reject); }; class_1.prototype.catch = function (reject) { return this.then(undefined, reject); }; class_1.prototype.finally = function (onfinally) { return promise.finally(onfinally); }; return class_1; }()); } /** * A helper to delay execution of a task that is being requested often. * * Following the throttler, now imagine the mail man wants to optimize the number of * trips proactively. The trip itself can be long, so he decides not to make the trip * as soon as a letter is submitted. Instead he waits a while, in case more * letters are submitted. After said waiting period, if no letters were submitted, he * decides to make the trip. Imagine that N more letters were submitted after the first * one, all within a short period of time between each other. Even though N+1 * submissions occurred, only 1 delivery was made. * * The delayer offers this behavior via the trigger() method, into which both the task * to be executed and the waiting period (delay) must be passed in as arguments. Following * the example: * * const delayer = new Delayer(WAITING_PERIOD); * const letters = []; * * function letterReceived(l) { * letters.push(l); * delayer.trigger(() => { return makeTheTrip(); }); * } */ var Delayer = /** @class */ (function () { function Delayer(defaultDelay) { this.defaultDelay = defaultDelay; this.timeout = null; this.completionPromise = null; this.doResolve = null; this.task = null; } Delayer.prototype.trigger = function (task, delay) { var _this = this; if (delay === void 0) { delay = this.defaultDelay; } this.task = task; this.cancelTimeout(); if (!this.completionPromise) { this.completionPromise = new Promise(function (c, e) { _this.doResolve = c; _this.doReject = e; }).then(function () { _this.completionPromise = null; _this.doResolve = null; var task = _this.task; _this.task = null; return task(); }); } this.timeout = setTimeout(function () { _this.timeout = null; _this.doResolve(null); }, delay); return this.completionPromise; }; Delayer.prototype.isTriggered = function () { return this.timeout !== null; }; Delayer.prototype.cancel = function () { this.cancelTimeout(); if (this.completionPromise) { this.doReject(__WEBPACK_IMPORTED_MODULE_1__errors_js__["a" /* canceled */]()); this.completionPromise = null; } }; Delayer.prototype.cancelTimeout = function () { if (this.timeout !== null) { clearTimeout(this.timeout); this.timeout = null; } }; Delayer.prototype.dispose = function () { this.cancelTimeout(); }; return Delayer; }()); function timeout(millis, token) { if (!token) { return createCancelablePromise(function (token) { return timeout(millis, token); }); } return new Promise(function (resolve, reject) { var handle = setTimeout(resolve, millis); token.onCancellationRequested(function () { clearTimeout(handle); reject(__WEBPACK_IMPORTED_MODULE_1__errors_js__["a" /* canceled */]()); }); }); } function disposableTimeout(handler, timeout) { if (timeout === void 0) { timeout = 0; } var timer = setTimeout(handler, timeout); return Object(__WEBPACK_IMPORTED_MODULE_2__lifecycle_js__["e" /* toDisposable */])(function () { return clearTimeout(timer); }); } function first(promiseFactories, shouldStop, defaultValue) { if (shouldStop === void 0) { shouldStop = function (t) { return !!t; }; } if (defaultValue === void 0) { defaultValue = null; } var index = 0; var len = promiseFactories.length; var loop = function () { if (index >= len) { return Promise.resolve(defaultValue); } var factory = promiseFactories[index++]; var promise = Promise.resolve(factory()); return promise.then(function (result) { if (shouldStop(result)) { return Promise.resolve(result); } return loop(); }); }; return loop(); } var TimeoutTimer = /** @class */ (function (_super) { __extends(TimeoutTimer, _super); function TimeoutTimer(runner, timeout) { var _this = _super.call(this) || this; _this._token = -1; if (typeof runner === 'function' && typeof timeout === 'number') { _this.setIfNotSet(runner, timeout); } return _this; } TimeoutTimer.prototype.dispose = function () { this.cancel(); _super.prototype.dispose.call(this); }; TimeoutTimer.prototype.cancel = function () { if (this._token !== -1) { clearTimeout(this._token); this._token = -1; } }; TimeoutTimer.prototype.cancelAndSet = function (runner, timeout) { var _this = this; this.cancel(); this._token = setTimeout(function () { _this._token = -1; runner(); }, timeout); }; TimeoutTimer.prototype.setIfNotSet = function (runner, timeout) { var _this = this; if (this._token !== -1) { // timer is already set return; } this._token = setTimeout(function () { _this._token = -1; runner(); }, timeout); }; return TimeoutTimer; }(__WEBPACK_IMPORTED_MODULE_2__lifecycle_js__["a" /* Disposable */])); var IntervalTimer = /** @class */ (function (_super) { __extends(IntervalTimer, _super); function IntervalTimer() { var _this = _super.call(this) || this; _this._token = -1; return _this; } IntervalTimer.prototype.dispose = function () { this.cancel(); _super.prototype.dispose.call(this); }; IntervalTimer.prototype.cancel = function () { if (this._token !== -1) { clearInterval(this._token); this._token = -1; } }; IntervalTimer.prototype.cancelAndSet = function (runner, interval) { this.cancel(); this._token = setInterval(function () { runner(); }, interval); }; return IntervalTimer; }(__WEBPACK_IMPORTED_MODULE_2__lifecycle_js__["a" /* Disposable */])); var RunOnceScheduler = /** @class */ (function () { function RunOnceScheduler(runner, timeout) { this.timeoutToken = -1; this.runner = runner; this.timeout = timeout; this.timeoutHandler = this.onTimeout.bind(this); } /** * Dispose RunOnceScheduler */ RunOnceScheduler.prototype.dispose = function () { this.cancel(); this.runner = null; }; /** * Cancel current scheduled runner (if any). */ RunOnceScheduler.prototype.cancel = function () { if (this.isScheduled()) { clearTimeout(this.timeoutToken); this.timeoutToken = -1; } }; /** * Cancel previous runner (if any) & schedule a new runner. */ RunOnceScheduler.prototype.schedule = function (delay) { if (delay === void 0) { delay = this.timeout; } this.cancel(); this.timeoutToken = setTimeout(this.timeoutHandler, delay); }; /** * Returns true if scheduled. */ RunOnceScheduler.prototype.isScheduled = function () { return this.timeoutToken !== -1; }; RunOnceScheduler.prototype.onTimeout = function () { this.timeoutToken = -1; if (this.runner) { this.doRun(); } }; RunOnceScheduler.prototype.doRun = function () { if (this.runner) { this.runner(); } }; return RunOnceScheduler; }()); /** * Execute the callback the next time the browser is idle */ var runWhenIdle; (function () { if (typeof requestIdleCallback !== 'function' || typeof cancelIdleCallback !== 'function') { var dummyIdle_1 = Object.freeze({ didTimeout: true, timeRemaining: function () { return 15; } }); runWhenIdle = function (runner) { var handle = setTimeout(function () { return runner(dummyIdle_1); }); var disposed = false; return { dispose: function () { if (disposed) { return; } disposed = true; clearTimeout(handle); } }; }; } else { runWhenIdle = function (runner, timeout) { var handle = requestIdleCallback(runner, typeof timeout === 'number' ? { timeout: timeout } : undefined); var disposed = false; return { dispose: function () { if (disposed) { return; } disposed = true; cancelIdleCallback(handle); } }; }; } })(); /** * An implementation of the "idle-until-urgent"-strategy as introduced * here: https://philipwalton.com/articles/idle-until-urgent/ */ var IdleValue = /** @class */ (function () { function IdleValue(executor) { var _this = this; this._executor = function () { try { _this._value = executor(); } catch (err) { _this._error = err; } finally { _this._didRun = true; } }; this._handle = runWhenIdle(function () { return _this._executor(); }); } IdleValue.prototype.dispose = function () { this._handle.dispose(); }; IdleValue.prototype.getValue = function () { if (!this._didRun) { this._handle.dispose(); this._executor(); } if (this._error) { throw this._error; } return this._value; }; return IdleValue; }()); //#endregion /***/ }), /***/ 1036: /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a */} // {/*
*/} // {/*
*/} // {/*{data&&data.work_description}*/} // {/*
*/} // {/*
*/} // {/**/} // {/**/} // // {/*
*/} // {/*
*/} // {/*
图形统计
*/} // {/**/} // {/*
*/} // {/*
*/} // // {/*
*/} // {/*
*/} // {/*
实训详情
*/} // {/**/} // {/*{*/} // {/*data&&data.shixun_detail.map((item,key)=>{*/} // {/*return(*/} // {/*
*/} // {/*
*/} // {/*

*/} // {/**/} // {/**/} // {/**/} // {/**/} // {/*第{item.position}关*/} // {/**/} // {/*{item.subject}*/} // {/**/} // {/**/} // {/*

*/} // {/**/} // {/*
*/} // // {/*{item.st===0?
*/} // {/*
*/} // {/*

*/} // {/*最近通过的代码*/} // {/*{item.path}*/} // {/*

*/} // // {/*
*/} // {/*
  • */} // {/**/} // {/*
  • */} // {/*
    */} // {/*
    */} // {/*
    :""}*/} // {/*
    */} // {/*)*/} // {/*})*/} // {/*}*/} // {/*
    */} // {/*
    */} // {/**/} // /***/ }), /***/ 4381: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_table_style_css__ = __webpack_require__(1141); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_antd_lib_table_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_antd_lib_table_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_table__ = __webpack_require__(1142); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_antd_lib_table___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_antd_lib_table__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_input_number_style_css__ = __webpack_require__(1067); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_antd_lib_input_number_style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_antd_lib_input_number_style_css__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_input_number__ = __webpack_require__(1068); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_antd_lib_input_number___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_antd_lib_input_number__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react__ = __webpack_require__(0); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_educoder__ = __webpack_require__(5); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_router_dom__ = __webpack_require__(45); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_moment__ = __webpack_require__(85); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_moment___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_moment__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_monaco_editor__ = __webpack_require__(1837); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_monaco_editor___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react_monaco_editor__); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_axios__ = __webpack_require__(12); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_axios__); var _createClass=function(){function defineProperties(target,props){for(var i=0;imaxsum){_this.props.showNotification("\u4E0D\u80FD\u5927\u4E8E\u5173\u5361\u5206\u503C"+maxsum);_this.setState({customsids:id});}else{var work_id=_this.props.data.work_id;var url="/student_works/"+work_id+"/adjust_review_score.json";__WEBPACK_IMPORTED_MODULE_9_axios___default.a.post(url,{type:"review",score:score,challenge_id:id,code_rate:code_rate,copy_user_id:copy_user_id}).then(function(result){if(result.data.status===0){_this.props.updatas();_this.props.showNotification(result.data.message);}else{_this.props.showNotification(result.data.message);}}).catch(function(error){});}}else{_this.props.showNotification("调分为空将不会修改之前的分数");}};_this.state={loadingstate:true,datas:undefined};return _this;}_createClass(ShixunCustomsPass,[{key:"componentDidMount",value:function componentDidMount(){}},{key:"render",value:function render(){var _this2=this;var data=this.props.data;var customsids=this.state.customsids;// console.log(data) var datas=[];data&&data.challenge_list.forEach(function(item,key){datas.push({customs:{position:item.position,subject:item.subject},taskname:{name:item.username},openingtime:item.end_time===null?"无":item.end_time===undefined?"无":item.end_time===""?"无":__WEBPACK_IMPORTED_MODULE_7_moment___default()(item.end_time).format('YYYY-MM-DD HH:mm:ss'),evaluating:{final_score:item.final_score,all_score:item.all_score},finishtime:item.copy_username,elapsedtime:item.copy_end_time===null?"无":item.copy_end_time===undefined?"无":item.copy_end_time===""?"无":__WEBPACK_IMPORTED_MODULE_7_moment___default()(item.copy_end_time).format('YYYY-MM-DD HH:mm:ss'),empvalue:item.code_rate,challenge_id:{id:item.id},copy_user_id:item.copy_user_id// adjustmentminute:asdasd });});var columns=[{title:'关卡',dataIndex:'customs',key:'customs',className:"customsPass",render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",null,__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("style",null,"\n\t .backgroud4CACFF{\n\t background: #4CACFF;\n\t }\n\t .fontpass{\n\t overflow: hidden;\n\t\t\t\t\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\t\t\t\t\twhite-space: nowrap;\n\t\t\t\t\t\t\t\twidth: 346px;\n\t }\n\t "),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"panel-inner-icon mr15 fl mt3 backgroud4CACFF"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("i",{className:"fa fa-code font-16 color_white"})),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"fl mt3 font-14 fontpass"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"font-bd mr15"},"\u7B2C",record.customs.position,"\u5173"),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"font-14",title:record.customs.subject},record.customs.subject)));}},{title:'被查作品',dataIndex:'taskname',key:'taskname',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"colorC8161D"},record.taskname.name);}},{title:'被查作品完成时间',dataIndex:'openingtime',key:'openingtime',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"color-grey-9"},record.openingtime);}},{title:'得分/满分',key:'evaluating',dataIndex:'evaluating',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"color-grey-9"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{style:{color:'#FF6800'}},record.evaluating.final_score),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"color-grey-9"},"/",record.evaluating.all_score));}},{title:'疑被抄袭作品',key:'finishtime',dataIndex:'finishtime',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"color-green"},record.finishtime);}},{title:'疑被抄袭作品完成时间',key:'elapsedtime',dataIndex:'elapsedtime',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"color-grey-9"},record.elapsedtime);}},{title:'调分',key:'adjustmentminute',dataIndex:'adjustmentminute',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",null,__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("a",null,record.copy_user_id===null?"":__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_3_antd_lib_input_number___default.a,{size:"small",className:customsids===record.challenge_id.id?"bor-red":"",defaultValue:record.evaluating.final_score,onBlur:function onBlur(e){return _this2.editgame_scores(e,record.challenge_id.id,record.evaluating.all_score,record.empvalue,record.copy_user_id);}// min={0} max={record.game_scores.game_score_full} })));}},{title:'相似度',key:'empvalue',dataIndex:'empvalue',render:function render(text,record){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"colorC8161D"},record.empvalue,"%");}}];// { // title: '调分', // key: 'adjustmentminute', // dataIndex: 'adjustmentminute', // // render: (text, record) => ( // // 6小时 50分钟 6秒 // // ), // }, if(this.props.isAdmin()===false){columns.some(function(item,key){if(item.title==="调分"){columns.splice(key,1);return true;}});}return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",null,__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("style",null,"\n\t\t\t\t.ant-table-thead > tr > th{\n\t\t\t\t text-align: center;\n\t\t\t\t\t}\n\t\t\t\t.tasknamebox{\n\t\t\t width: 50px;\n\t\t\t height: 24px;\n\t\t\t border: 1px solid rgba(221,23,23,1);\n\t\t\t border-radius: 12px;\n\t\t\t color: rgba(221,23,23,1);\n\t\t\t display: inline-block;\n\t\t\t\t\tline-height: 24px;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\t}\n\t\t\t\t .ant-table-tbody > tr > td{\n font-size:14px;\n\t\t\t\t\t}\n\t\t\t\t\t.task-hide{\n\t\t\t\t\t max-width: 345px;\n\t\t\t\t\t overflow: hidden;\n\t\t\t\t\t white-space: nowrap;\n\t\t\t\t\t text-overflow: ellipsis;\n\t\t\t\t\t}\n\t\t\t\t\t.ant-table-tbody > tr{\n\t\t\t\t\t height:64px;\n\t\t\t\t\t}\n\t\t\t\t\t.colorC8161D{\n\t\t\t\t\t color:#C8161D;\n\t\t\t\t\t}\n\t\t\t\t .ant-table-tbody> tr > td{\n\t\t\t\t text-align: center;\n\t\t\t\t\t}\n\t\t\t\t\t.customsPass{\n text-align: left !important;\n\t\t\t\t\t}\n\t\t\t\t\t.ant-table-thead > tr > th, .ant-table-tbody > tr > td {\n\t\t\t\t\t\t\tpadding: 16px 12px;\n\t\t\t\t\t}\n\t\t\t"),datas===undefined?"":__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1_antd_lib_table___default.a,{dataSource:datas,columns:columns,pagination:false}),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:"stud-class-set bor-bottom-greyE mt20"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:"clearfix edu-back-white poll_list pad40px"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:"font-16 color-dark-21 shixunreporttitle mb20"},"\u5B9E\u8BAD\u8BE6\u60C5"),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("style",null,"\n\t .poll_list a{\n\t padding:0px !important;\n\t }\n\t .backgroud4CACFF{\n\t background: #4CACFF;\n\t }\n\t "),data&&data.challenge_list.map(function(item,key){// console.log("203challenge_list下面的数据"); // console.log(item); // console.log(JSON.stringify(item)); return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{key:key,className:"mb20"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:"font-16 color-dark-21 ml20 mr20"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{className:"clearfix mb20"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"panel-inner-icon mr15 fl mt3 backgroud4CACFF"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("i",{className:"fa fa-code font-16 color_white"})),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"fl mt3 font-14"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"font-bd mr15"},"\u7B2C",item.position,"\u5173"),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("a",null,__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"font-14"},item.subject))),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"fr codeboxright"},"\u4EE3\u7801\u6587\u4EF6\uFF1A",item.code_list.length===0?"无":item.code_list[0].path===undefined?"无":item.code_list[0].path))),item.code_list.length===0?"":item.code_list.map(function(ite,k){return __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:"font-16 color-dark-21 ml20 mr20",key:k},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:" mt15"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("p",{className:"clearfix pt5 pb5 codebox"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"fl"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"colorC8161D"},item.username),"\u7684\u4EE3\u7801\u6587\u4EF6"),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"fr"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("span",{className:"color-green"},item.copy_username),"\u7684\u4EE3\u7801\u6587\u4EF6")),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.borderccc{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t border:1px solid #ccc\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"),__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("div",{className:"test-code mt20 borderccc"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement("li",{className:"clearfix"},__WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_8_react_monaco_editor__["MonacoDiffEditor"],{height:"500"// language="javascript" ,original:ite.origin_content,value:ite.target_content// options={options} })))));}));}))));}}]);return ShixunCustomsPass;}(__WEBPACK_IMPORTED_MODULE_4_react__["Component"]);/* harmony default export */ __webpack_exports__["a"] = (ShixunCustomsPass); /***/ }), /***/ 815: /***/ (function(module, exports) { /** * Checks if `value` is classified as an `Array` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an array, else `false`. * @example * * _.isArray([1, 2, 3]); * // => true * * _.isArray(document.body.children); * // => false * * _.isArray('abc'); * // => false * * _.isArray(_.noop); * // => false */ var isArray = Array.isArray; module.exports = isArray; /***/ }), /***/ 816: /***/ (function(module, exports, __webpack_require__) { var baseIsNative = __webpack_require__(871), getValue = __webpack_require__(874); /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : undefined; } module.exports = getNative; /***/ }), /***/ 817: /***/ (function(module, exports, __webpack_require__) { var eq = __webpack_require__(820); /** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { var length = array.length; while (length--) { if (eq(array[length][0], key)) { return length; } } return -1; } module.exports = assocIndexOf; /***/ }), /***/ 818: /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(816); /* Built-in method references that are verified to be native. */ var nativeCreate = getNative(Object, 'create'); module.exports = nativeCreate; /***/ }), /***/ 819: /***/ (function(module, exports, __webpack_require__) { var isKeyable = __webpack_require__(883); /** * Gets the data for `map`. * * @private * @param {Object} map The map to query. * @param {string} key The reference key. * @returns {*} Returns the map data. */ function getMapData(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] : data.map; } module.exports = getMapData; /***/ }), /***/ 820: /***/ (function(module, exports) { /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq(value, other) { return value === other || (value !== value && other !== other); } module.exports = eq; /***/ }), /***/ 821: /***/ (function(module, exports, __webpack_require__) { var isSymbol = __webpack_require__(299); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** * Converts `value` to a string key if it's not a string or symbol. * * @private * @param {*} value The value to inspect. * @returns {string|symbol} Returns the key. */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { return value; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = toKey; /***/ }), /***/ 822: /***/ (function(module, exports, __webpack_require__) { var listCacheClear = __webpack_require__(866), listCacheDelete = __webpack_require__(867), listCacheGet = __webpack_require__(868), listCacheHas = __webpack_require__(869), listCacheSet = __webpack_require__(870); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `ListCache`. ListCache.prototype.clear = listCacheClear; ListCache.prototype['delete'] = listCacheDelete; ListCache.prototype.get = listCacheGet; ListCache.prototype.has = listCacheHas; ListCache.prototype.set = listCacheSet; module.exports = ListCache; /***/ }), /***/ 824: /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** Used to detect unsigned integer values. */ var reIsUint = /^(?:0|[1-9]\d*)$/; /** * Checks if `value` is a valid array-like index. * * @private * @param {*} value The value to check. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == 'number' || (type != 'symbol' && reIsUint.test(value))) && (value > -1 && value % 1 == 0 && value < length); } module.exports = isIndex; /***/ }), /***/ 825: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export isDisposable */ /* harmony export (immutable) */ __webpack_exports__["d"] = dispose; /* harmony export (immutable) */ __webpack_exports__["c"] = combinedDisposable; /* harmony export (immutable) */ __webpack_exports__["e"] = toDisposable; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Disposable; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return ImmortalReference; }); function isDisposable(thing) { return typeof thing.dispose === 'function' && thing.dispose.length === 0; } function dispose(first) { var rest = []; for (var _i = 1; _i < arguments.length; _i++) { rest[_i - 1] = arguments[_i]; } if (Array.isArray(first)) { first.forEach(function (d) { return d && d.dispose(); }); return []; } else if (rest.length === 0) { if (first) { first.dispose(); return first; } return undefined; } else { dispose(first); dispose(rest); return []; } } function combinedDisposable(disposables) { return { dispose: function () { return dispose(disposables); } }; } function toDisposable(fn) { return { dispose: function () { fn(); } }; } var Disposable = /** @class */ (function () { function Disposable() { this._toDispose = []; this._lifecycle_disposable_isDisposed = false; } Disposable.prototype.dispose = function () { this._lifecycle_disposable_isDisposed = true; this._toDispose = dispose(this._toDispose); }; Disposable.prototype._register = function (t) { if (this._lifecycle_disposable_isDisposed) { console.warn('Registering disposable on object that has already been disposed.'); t.dispose(); } else { this._toDispose.push(t); } return t; }; Disposable.None = Object.freeze({ dispose: function () { } }); return Disposable; }()); var ImmortalReference = /** @class */ (function () { function ImmortalReference(object) { this.object = object; } ImmortalReference.prototype.dispose = function () { }; return ImmortalReference; }()); /***/ }), /***/ 826: /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__(815), isKey = __webpack_require__(835), stringToPath = __webpack_require__(888), toString = __webpack_require__(863); /** * Casts `value` to a path array if it's not one. * * @private * @param {*} value The value to inspect. * @param {Object} [object] The object to query keys on. * @returns {Array} Returns the cast property path array. */ function castPath(value, object) { if (isArray(value)) { return value; } return isKey(value, object) ? [value] : stringToPath(toString(value)); } module.exports = castPath; /***/ }), /***/ 828: /***/ (function(module, exports) { /** Used as references for various `Number` constants. */ var MAX_SAFE_INTEGER = 9007199254740991; /** * Checks if `value` is a valid array-like length. * * **Note:** This method is loosely based on * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. * @example * * _.isLength(3); * // => true * * _.isLength(Number.MIN_VALUE); * // => false * * _.isLength(Infinity); * // => false * * _.isLength('3'); * // => false */ function isLength(value) { return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; } module.exports = isLength; /***/ }), /***/ 829: /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(816), root = __webpack_require__(162); /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'); module.exports = Map; /***/ }), /***/ 830: /***/ (function(module, exports, __webpack_require__) { var mapCacheClear = __webpack_require__(875), mapCacheDelete = __webpack_require__(882), mapCacheGet = __webpack_require__(884), mapCacheHas = __webpack_require__(885), mapCacheSet = __webpack_require__(886); /** * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function MapCache(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `MapCache`. MapCache.prototype.clear = mapCacheClear; MapCache.prototype['delete'] = mapCacheDelete; MapCache.prototype.get = mapCacheGet; MapCache.prototype.has = mapCacheHas; MapCache.prototype.set = mapCacheSet; module.exports = MapCache; /***/ }), /***/ 831: /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(297), isObject = __webpack_require__(163); /** `Object#toString` result references. */ var asyncTag = '[object AsyncFunction]', funcTag = '[object Function]', genTag = '[object GeneratorFunction]', proxyTag = '[object Proxy]'; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction(value) { if (!isObject(value)) { return false; } // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 9 which returns 'object' for typed arrays and other constructors. var tag = baseGetTag(value); return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; } module.exports = isFunction; /***/ }), /***/ 833: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Event; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Emitter; }); /* unused harmony export EventMultiplexer */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EventBufferer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return Relay; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__errors_js__ = __webpack_require__(956); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__functional_js__ = __webpack_require__(1888); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__lifecycle_js__ = __webpack_require__(825); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__linkedList_js__ = __webpack_require__(1679); /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ var Event; (function (Event) { var _disposable = { dispose: function () { } }; Event.None = function () { return _disposable; }; /** * Given an event, returns another event which only fires once. */ function once(event) { return function (listener, thisArgs, disposables) { if (thisArgs === void 0) { thisArgs = null; } // we need this, in case the event fires during the listener call var didFire = false; var result; result = event(function (e) { if (didFire) { return; } else if (result) { result.dispose(); } else { didFire = true; } return listener.call(thisArgs, e); }, null, disposables); if (didFire) { result.dispose(); } return result; }; } Event.once = once; /** * Given an event and a `map` function, returns another event which maps each element * throught the mapping function. */ function map(event, map) { return snapshot(function (listener, thisArgs, disposables) { if (thisArgs === void 0) { thisArgs = null; } return event(function (i) { return listener.call(thisArgs, map(i)); }, null, disposables); }); } Event.map = map; /** * Given an event and an `each` function, returns another identical event and calls * the `each` function per each element. */ function forEach(event, each) { return snapshot(function (listener, thisArgs, disposables) { if (thisArgs === void 0) { thisArgs = null; } return event(function (i) { each(i); listener.call(thisArgs, i); }, null, disposables); }); } Event.forEach = forEach; function filter(event, filter) { return snapshot(function (listener, thisArgs, disposables) { if (thisArgs === void 0) { thisArgs = null; } return event(function (e) { return filter(e) && listener.call(thisArgs, e); }, null, disposables); }); } Event.filter = filter; /** * Given an event, returns the same event but typed as `Event`. */ function signal(event) { return event; } Event.signal = signal; /** * Given a collection of events, returns a single event which emits * whenever any of the provided events emit. */ function any() { var events = []; for (var _i = 0; _i < arguments.length; _i++) { events[_i] = arguments[_i]; } return function (listener, thisArgs, disposables) { if (thisArgs === void 0) { thisArgs = null; } return Object(__WEBPACK_IMPORTED_MODULE_2__lifecycle_js__["c" /* combinedDisposable */])(events.map(function (event) { return event(function (e) { return listener.call(thisArgs, e); }, null, disposables); })); }; } Event.any = any; /** * Given an event and a `merge` function, returns another event which maps each element * and the cummulative result throught the `merge` function. Similar to `map`, but with memory. */ function reduce(event, merge, initial) { var output = initial; return map(event, function (e) { output = merge(output, e); return output; }); } Event.reduce = reduce; /** * Given a chain of event processing functions (filter, map, etc), each * function will be invoked per event & per listener. Snapshotting an event * chain allows each function to be invoked just once per event. */ function snapshot(event) { var listener; var emitter = new Emitter({ onFirstListenerAdd: function () { listener = event(emitter.fire, emitter); }, onLastListenerRemove: function () { listener.dispose(); } }); return emitter.event; } Event.snapshot = snapshot; function debounce(event, merge, delay, leading, leakWarningThreshold) { if (delay === void 0) { delay = 100; } if (leading === void 0) { leading = false; } var subscription; var output = undefined; var handle = undefined; var numDebouncedCalls = 0; var emitter = new Emitter({ leakWarningThreshold: leakWarningThreshold, onFirstListenerAdd: function () { subscription = event(function (cur) { numDebouncedCalls++; output = merge(output, cur); if (leading && !handle) { emitter.fire(output); } clearTimeout(handle); handle = setTimeout(function () { var _output = output; output = undefined; handle = undefined; if (!leading || numDebouncedCalls > 1) { emitter.fire(_output); } numDebouncedCalls = 0; }, delay); }); }, onLastListenerRemove: function () { subscription.dispose(); } }); return emitter.event; } Event.debounce = debounce; /** * Given an event, it returns another event which fires only once and as soon as * the input event emits. The event data is the number of millis it took for the * event to fire. */ function stopwatch(event) { var start = new Date().getTime(); return map(once(event), function (_) { return new Date().getTime() - start; }); } Event.stopwatch = stopwatch; /** * Given an event, it returns another event which fires only when the event * element changes. */ function latch(event) { var firstCall = true; var cache; return filter(event, function (value) { var shouldEmit = firstCall || value !== cache; firstCall = false; cache = value; return shouldEmit; }); } Event.latch = latch; /** * Buffers the provided event until a first listener comes * along, at which point fire all the events at once and * pipe the event from then on. * * ```typescript * const emitter = new Emitter(); * const event = emitter.event; * const bufferedEvent = buffer(event); * * emitter.fire(1); * emitter.fire(2); * emitter.fire(3); * // nothing... * * const listener = bufferedEvent(num => console.log(num)); * // 1, 2, 3 * * emitter.fire(4); * // 4 * ``` */ function buffer(event, nextTick, _buffer) { if (nextTick === void 0) { nextTick = false; } if (_buffer === void 0) { _buffer = []; } var buffer = _buffer.slice(); var listener = event(function (e) { if (buffer) { buffer.push(e); } else { emitter.fire(e); } }); var flush = function () { if (buffer) { buffer.forEach(function (e) { return emitter.fire(e); }); } buffer = null; }; var emitter = new Emitter({ onFirstListenerAdd: function () { if (!listener) { listener = event(function (e) { return emitter.fire(e); }); } }, onFirstListenerDidAdd: function () { if (buffer) { if (nextTick) { setTimeout(flush); } else { flush(); } } }, onLastListenerRemove: function () { if (listener) { listener.dispose(); } listener = null; } }); return emitter.event; } Event.buffer = buffer; /** * Similar to `buffer` but it buffers indefinitely and repeats * the buffered events to every new listener. */ function echo(event, nextTick, buffer) { if (nextTick === void 0) { nextTick = false; } if (buffer === void 0) { buffer = []; } buffer = buffer.slice(); event(function (e) { buffer.push(e); emitter.fire(e); }); var flush = function (listener, thisArgs) { return buffer.forEach(function (e) { return listener.call(thisArgs, e); }); }; var emitter = new Emitter({ onListenerDidAdd: function (emitter, listener, thisArgs) { if (nextTick) { setTimeout(function () { return flush(listener, thisArgs); }); } else { flush(listener, thisArgs); } } }); return emitter.event; } Event.echo = echo; var ChainableEvent = /** @class */ (function () { function ChainableEvent(event) { this.event = event; } ChainableEvent.prototype.map = function (fn) { return new ChainableEvent(map(this.event, fn)); }; ChainableEvent.prototype.forEach = function (fn) { return new ChainableEvent(forEach(this.event, fn)); }; ChainableEvent.prototype.filter = function (fn) { return new ChainableEvent(filter(this.event, fn)); }; ChainableEvent.prototype.reduce = function (merge, initial) { return new ChainableEvent(reduce(this.event, merge, initial)); }; ChainableEvent.prototype.latch = function () { return new ChainableEvent(latch(this.event)); }; ChainableEvent.prototype.on = function (listener, thisArgs, disposables) { return this.event(listener, thisArgs, disposables); }; ChainableEvent.prototype.once = function (listener, thisArgs, disposables) { return once(this.event)(listener, thisArgs, disposables); }; return ChainableEvent; }()); function chain(event) { return new ChainableEvent(event); } Event.chain = chain; function fromNodeEventEmitter(emitter, eventName, map) { if (map === void 0) { map = function (id) { return id; }; } var fn = function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } return result.fire(map.apply(void 0, args)); }; var onFirstListenerAdd = function () { return emitter.on(eventName, fn); }; var onLastListenerRemove = function () { return emitter.removeListener(eventName, fn); }; var result = new Emitter({ onFirstListenerAdd: onFirstListenerAdd, onLastListenerRemove: onLastListenerRemove }); return result.event; } Event.fromNodeEventEmitter = fromNodeEventEmitter; function fromPromise(promise) { var emitter = new Emitter(); var shouldEmit = false; promise .then(undefined, function () { return null; }) .then(function () { if (!shouldEmit) { setTimeout(function () { return emitter.fire(undefined); }, 0); } else { emitter.fire(undefined); } }); shouldEmit = true; return emitter.event; } Event.fromPromise = fromPromise; function toPromise(event) { return new Promise(function (c) { return once(event)(c); }); } Event.toPromise = toPromise; })(Event || (Event = {})); var _globalLeakWarningThreshold = -1; var LeakageMonitor = /** @class */ (function () { function LeakageMonitor(customThreshold, name) { if (name === void 0) { name = Math.random().toString(18).slice(2, 5); } this.customThreshold = customThreshold; this.name = name; this._warnCountdown = 0; } LeakageMonitor.prototype.dispose = function () { if (this._stacks) { this._stacks.clear(); } }; LeakageMonitor.prototype.check = function (listenerCount) { var _this = this; var threshold = _globalLeakWarningThreshold; if (typeof this.customThreshold === 'number') { threshold = this.customThreshold; } if (threshold <= 0 || listenerCount < threshold) { return undefined; } if (!this._stacks) { this._stacks = new Map(); } var stack = new Error().stack.split('\n').slice(3).join('\n'); var count = (this._stacks.get(stack) || 0); this._stacks.set(stack, count + 1); this._warnCountdown -= 1; if (this._warnCountdown <= 0) { // only warn on first exceed and then every time the limit // is exceeded by 50% again this._warnCountdown = threshold * 0.5; // find most frequent listener and print warning var topStack_1; var topCount_1 = 0; this._stacks.forEach(function (count, stack) { if (!topStack_1 || topCount_1 < count) { topStack_1 = stack; topCount_1 = count; } }); console.warn("[" + this.name + "] potential listener LEAK detected, having " + listenerCount + " listeners already. MOST frequent listener (" + topCount_1 + "):"); console.warn(topStack_1); } return function () { var count = (_this._stacks.get(stack) || 0); _this._stacks.set(stack, count - 1); }; }; return LeakageMonitor; }()); /** * The Emitter can be used to expose an Event to the public * to fire it from the insides. * Sample: class Document { private _onDidChange = new Emitter<(value:string)=>any>(); public onDidChange = this._onDidChange.event; // getter-style // get onDidChange(): Event<(value:string)=>any> { // return this._onDidChange.event; // } private _doIt() { //... this._onDidChange.fire(value); } } */ var Emitter = /** @class */ (function () { function Emitter(options) { this._disposed = false; this._options = options; this._leakageMon = _globalLeakWarningThreshold > 0 ? new LeakageMonitor(this._options && this._options.leakWarningThreshold) : undefined; } Object.defineProperty(Emitter.prototype, "event", { /** * For the public to allow to subscribe * to events from this Emitter */ get: function () { var _this = this; if (!this._event) { this._event = function (listener, thisArgs, disposables) { if (!_this._listeners) { _this._listeners = new __WEBPACK_IMPORTED_MODULE_3__linkedList_js__["a" /* LinkedList */](); } var firstListener = _this._listeners.isEmpty(); if (firstListener && _this._options && _this._options.onFirstListenerAdd) { _this._options.onFirstListenerAdd(_this); } var remove = _this._listeners.push(!thisArgs ? listener : [listener, thisArgs]); if (firstListener && _this._options && _this._options.onFirstListenerDidAdd) { _this._options.onFirstListenerDidAdd(_this); } if (_this._options && _this._options.onListenerDidAdd) { _this._options.onListenerDidAdd(_this, listener, thisArgs); } // check and record this emitter for potential leakage var removeMonitor; if (_this._leakageMon) { removeMonitor = _this._leakageMon.check(_this._listeners.size); } var result; result = { dispose: function () { if (removeMonitor) { removeMonitor(); } result.dispose = Emitter._noop; if (!_this._disposed) { remove(); if (_this._options && _this._options.onLastListenerRemove) { var hasListeners = (_this._listeners && !_this._listeners.isEmpty()); if (!hasListeners) { _this._options.onLastListenerRemove(_this); } } } } }; if (Array.isArray(disposables)) { disposables.push(result); } return result; }; } return this._event; }, enumerable: true, configurable: true }); /** * To be kept private to fire an event to * subscribers */ Emitter.prototype.fire = function (event) { if (this._listeners) { // put all [listener,event]-pairs into delivery queue // then emit all event. an inner/nested event might be // the driver of this if (!this._deliveryQueue) { this._deliveryQueue = []; } for (var iter = this._listeners.iterator(), e = iter.next(); !e.done; e = iter.next()) { this._deliveryQueue.push([e.value, event]); } while (this._deliveryQueue.length > 0) { var _a = this._deliveryQueue.shift(), listener = _a[0], event_1 = _a[1]; try { if (typeof listener === 'function') { listener.call(undefined, event_1); } else { listener[0].call(listener[1], event_1); } } catch (e) { Object(__WEBPACK_IMPORTED_MODULE_0__errors_js__["e" /* onUnexpectedError */])(e); } } } }; Emitter.prototype.dispose = function () { if (this._listeners) { this._listeners = undefined; } if (this._deliveryQueue) { this._deliveryQueue.length = 0; } if (this._leakageMon) { this._leakageMon.dispose(); } this._disposed = true; }; Emitter._noop = function () { }; return Emitter; }()); var EventMultiplexer = /** @class */ (function () { function EventMultiplexer() { var _this = this; this.hasListeners = false; this.events = []; this.emitter = new Emitter({ onFirstListenerAdd: function () { return _this.onFirstListenerAdd(); }, onLastListenerRemove: function () { return _this.onLastListenerRemove(); } }); } Object.defineProperty(EventMultiplexer.prototype, "event", { get: function () { return this.emitter.event; }, enumerable: true, configurable: true }); EventMultiplexer.prototype.add = function (event) { var _this = this; var e = { event: event, listener: null }; this.events.push(e); if (this.hasListeners) { this.hook(e); } var dispose = function () { if (_this.hasListeners) { _this.unhook(e); } var idx = _this.events.indexOf(e); _this.events.splice(idx, 1); }; return Object(__WEBPACK_IMPORTED_MODULE_2__lifecycle_js__["e" /* toDisposable */])(Object(__WEBPACK_IMPORTED_MODULE_1__functional_js__["a" /* once */])(dispose)); }; EventMultiplexer.prototype.onFirstListenerAdd = function () { var _this = this; this.hasListeners = true; this.events.forEach(function (e) { return _this.hook(e); }); }; EventMultiplexer.prototype.onLastListenerRemove = function () { var _this = this; this.hasListeners = false; this.events.forEach(function (e) { return _this.unhook(e); }); }; EventMultiplexer.prototype.hook = function (e) { var _this = this; e.listener = e.event(function (r) { return _this.emitter.fire(r); }); }; EventMultiplexer.prototype.unhook = function (e) { if (e.listener) { e.listener.dispose(); } e.listener = null; }; EventMultiplexer.prototype.dispose = function () { this.emitter.dispose(); }; return EventMultiplexer; }()); /** * The EventBufferer is useful in situations in which you want * to delay firing your events during some code. * You can wrap that code and be sure that the event will not * be fired during that wrap. * * ``` * const emitter: Emitter; * const delayer = new EventDelayer(); * const delayedEvent = delayer.wrapEvent(emitter.event); * * delayedEvent(console.log); * * delayer.bufferEvents(() => { * emitter.fire(); // event will not be fired yet * }); * * // event will only be fired at this point * ``` */ var EventBufferer = /** @class */ (function () { function EventBufferer() { this.buffers = []; } EventBufferer.prototype.wrapEvent = function (event) { var _this = this; return function (listener, thisArgs, disposables) { return event(function (i) { var buffer = _this.buffers[_this.buffers.length - 1]; if (buffer) { buffer.push(function () { return listener.call(thisArgs, i); }); } else { listener.call(thisArgs, i); } }, undefined, disposables); }; }; EventBufferer.prototype.bufferEvents = function (fn) { var buffer = []; this.buffers.push(buffer); var r = fn(); this.buffers.pop(); buffer.forEach(function (flush) { return flush(); }); return r; }; return EventBufferer; }()); /** * A Relay is an event forwarder which functions as a replugabble event pipe. * Once created, you can connect an input event to it and it will simply forward * events from that input event through its own `event` property. The `input` * can be changed at any point in time. */ var Relay = /** @class */ (function () { function Relay() { var _this = this; this.listening = false; this.inputEvent = Event.None; this.inputEventListener = __WEBPACK_IMPORTED_MODULE_2__lifecycle_js__["a" /* Disposable */].None; this.emitter = new Emitter({ onFirstListenerDidAdd: function () { _this.listening = true; _this.inputEventListener = _this.inputEvent(_this.emitter.fire, _this.emitter); }, onLastListenerRemove: function () { _this.listening = false; _this.inputEventListener.dispose(); } }); this.event = this.emitter.event; } Object.defineProperty(Relay.prototype, "input", { set: function (event) { this.inputEvent = event; if (this.listening) { this.inputEventListener.dispose(); this.inputEventListener = event(this.emitter.fire, this.emitter); } }, enumerable: true, configurable: true }); Relay.prototype.dispose = function () { this.inputEventListener.dispose(); this.emitter.dispose(); }; return Relay; }()); /***/ }), /***/ 835: /***/ (function(module, exports, __webpack_require__) { var isArray = __webpack_require__(815), isSymbol = __webpack_require__(299); /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/; /** * Checks if `value` is a property name and not a property path. * * @private * @param {*} value The value to check. * @param {Object} [object] The object to query keys on. * @returns {boolean} Returns `true` if `value` is a property name, else `false`. */ function isKey(value, object) { if (isArray(value)) { return false; } var type = typeof value; if (type == 'number' || type == 'symbol' || type == 'boolean' || value == null || isSymbol(value)) { return true; } return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)); } module.exports = isKey; /***/ }), /***/ 836: /***/ (function(module, exports, __webpack_require__) { var baseIsArguments = __webpack_require__(887), isObjectLike = __webpack_require__(296); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Built-in value references. */ var propertyIsEnumerable = objectProto.propertyIsEnumerable; /** * Checks if `value` is likely an `arguments` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, * else `false`. * @example * * _.isArguments(function() { return arguments; }()); * // => true * * _.isArguments([1, 2, 3]); * // => false */ var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { return isObjectLike(value) && hasOwnProperty.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee'); }; module.exports = isArguments; /***/ }), /***/ 837: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony default export */ __webpack_exports__["a"] = ({ ZERO: 48, NINE: 57, NUMPAD_ZERO: 96, NUMPAD_NINE: 105, BACKSPACE: 8, DELETE: 46, ENTER: 13, ARROW_UP: 38, ARROW_DOWN: 40 }); /***/ }), /***/ 838: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createReactContext = _interopRequireDefault(__webpack_require__(294)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var MenuContext = (0, _createReactContext["default"])({ inlineCollapsed: false }); var _default = MenuContext; exports["default"] = _default; //# sourceMappingURL=MenuContext.js.map /***/ }), /***/ 839: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return INTERNAL_COL_DEFINE; }); /* harmony export (immutable) */ __webpack_exports__["d"] = measureScrollbar; /* harmony export (immutable) */ __webpack_exports__["b"] = debounce; /* harmony export (immutable) */ __webpack_exports__["e"] = remove; /* harmony export (immutable) */ __webpack_exports__["c"] = getDataAndAriaProps; var scrollbarVerticalSize; var scrollbarHorizontalSize; // Measure scrollbar width for padding body during modal show/hide var scrollbarMeasure = { position: 'absolute', top: '-9999px', width: '50px', height: '50px' }; // This const is used for colgroup.col internal props. And should not provides to user. var INTERNAL_COL_DEFINE = 'RC_TABLE_INTERNAL_COL_DEFINE'; function measureScrollbar(_ref) { var _ref$direction = _ref.direction, direction = _ref$direction === void 0 ? 'vertical' : _ref$direction, prefixCls = _ref.prefixCls; if (typeof document === 'undefined' || typeof window === 'undefined') { return 0; } var isVertical = direction === 'vertical'; if (isVertical && scrollbarVerticalSize) { return scrollbarVerticalSize; } if (!isVertical && scrollbarHorizontalSize) { return scrollbarHorizontalSize; } var scrollDiv = document.createElement('div'); Object.keys(scrollbarMeasure).forEach(function (scrollProp) { scrollDiv.style[scrollProp] = scrollbarMeasure[scrollProp]; }); // apply hide scrollbar className ahead scrollDiv.className = "".concat(prefixCls, "-hide-scrollbar scroll-div-append-to-body"); // Append related overflow style if (isVertical) { scrollDiv.style.overflowY = 'scroll'; } else { scrollDiv.style.overflowX = 'scroll'; } document.body.appendChild(scrollDiv); var size = 0; if (isVertical) { size = scrollDiv.offsetWidth - scrollDiv.clientWidth; scrollbarVerticalSize = size; } else { size = scrollDiv.offsetHeight - scrollDiv.clientHeight; scrollbarHorizontalSize = size; } document.body.removeChild(scrollDiv); return size; } function debounce(func, wait, immediate) { var timeout; function debounceFunc() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } var context = this; // https://fb.me/react-event-pooling if (args[0] && args[0].persist) { args[0].persist(); } var later = function later() { timeout = null; if (!immediate) { func.apply(context, args); } }; var callNow = immediate && !timeout; clearTimeout(timeout); timeout = setTimeout(later, wait); if (callNow) { func.apply(context, args); } } debounceFunc.cancel = function cancel() { if (timeout) { clearTimeout(timeout); timeout = null; } }; return debounceFunc; } function remove(array, item) { var index = array.indexOf(item); var front = array.slice(0, index); var last = array.slice(index + 1, array.length); return front.concat(last); } /** * Returns only data- and aria- key/value pairs * @param {object} props */ function getDataAndAriaProps(props) { return Object.keys(props).reduce(function (memo, key) { if (key.substr(0, 5) === 'data-' || key.substr(0, 5) === 'aria-') { memo[key] = props[key]; } return memo; }, {}); } /***/ }), /***/ 842: /***/ (function(module, exports, __webpack_require__) { var defineProperty = __webpack_require__(853); /** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * * @private * @param {Object} object The object to modify. * @param {string} key The key of the property to assign. * @param {*} value The value to assign. */ function baseAssignValue(object, key, value) { if (key == '__proto__' && defineProperty) { defineProperty(object, key, { 'configurable': true, 'enumerable': true, 'value': value, 'writable': true }); } else { object[key] = value; } } module.exports = baseAssignValue; /***/ }), /***/ 843: /***/ (function(module, exports, __webpack_require__) { var baseGet = __webpack_require__(845); /** * Gets the value at `path` of `object`. If the resolved value is * `undefined`, the `defaultValue` is returned in its place. * * @static * @memberOf _ * @since 3.7.0 * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @param {*} [defaultValue] The value returned for `undefined` resolved values. * @returns {*} Returns the resolved value. * @example * * var object = { 'a': [{ 'b': { 'c': 3 } }] }; * * _.get(object, 'a[0].b.c'); * // => 3 * * _.get(object, ['a', '0', 'b', 'c']); * // => 3 * * _.get(object, 'a.b.c', 'default'); * // => 'default' */ function get(object, path, defaultValue) { var result = object == null ? undefined : baseGet(object, path); return result === undefined ? defaultValue : result; } module.exports = get; /***/ }), /***/ 844: /***/ (function(module, exports) { /** Used for built-in method references. */ var funcProto = Function.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource(func) { if (func != null) { try { return funcToString.call(func); } catch (e) {} try { return (func + ''); } catch (e) {} } return ''; } module.exports = toSource; /***/ }), /***/ 845: /***/ (function(module, exports, __webpack_require__) { var castPath = __webpack_require__(826), toKey = __webpack_require__(821); /** * The base implementation of `_.get` without support for default values. * * @private * @param {Object} object The object to query. * @param {Array|string} path The path of the property to get. * @returns {*} Returns the resolved value. */ function baseGet(object, path) { path = castPath(path, object); var index = 0, length = path.length; while (object != null && index < length) { object = object[toKey(path[index++])]; } return (index && index == length) ? object : undefined; } module.exports = baseGet; /***/ }), /***/ 846: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Range; }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__position_js__ = __webpack_require__(854); /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /** * A range in the editor. (startLineNumber,startColumn) is <= (endLineNumber,endColumn) */ var Range = /** @class */ (function () { function Range(startLineNumber, startColumn, endLineNumber, endColumn) { if ((startLineNumber > endLineNumber) || (startLineNumber === endLineNumber && startColumn > endColumn)) { this.startLineNumber = endLineNumber; this.startColumn = endColumn; this.endLineNumber = startLineNumber; this.endColumn = startColumn; } else { this.startLineNumber = startLineNumber; this.startColumn = startColumn; this.endLineNumber = endLineNumber; this.endColumn = endColumn; } } /** * Test if this range is empty. */ Range.prototype.isEmpty = function () { return Range.isEmpty(this); }; /** * Test if `range` is empty. */ Range.isEmpty = function (range) { return (range.startLineNumber === range.endLineNumber && range.startColumn === range.endColumn); }; /** * Test if position is in this range. If the position is at the edges, will return true. */ Range.prototype.containsPosition = function (position) { return Range.containsPosition(this, position); }; /** * Test if `position` is in `range`. If the position is at the edges, will return true. */ Range.containsPosition = function (range, position) { if (position.lineNumber < range.startLineNumber || position.lineNumber > range.endLineNumber) { return false; } if (position.lineNumber === range.startLineNumber && position.column < range.startColumn) { return false; } if (position.lineNumber === range.endLineNumber && position.column > range.endColumn) { return false; } return true; }; /** * Test if range is in this range. If the range is equal to this range, will return true. */ Range.prototype.containsRange = function (range) { return Range.containsRange(this, range); }; /** * Test if `otherRange` is in `range`. If the ranges are equal, will return true. */ Range.containsRange = function (range, otherRange) { if (otherRange.startLineNumber < range.startLineNumber || otherRange.endLineNumber < range.startLineNumber) { return false; } if (otherRange.startLineNumber > range.endLineNumber || otherRange.endLineNumber > range.endLineNumber) { return false; } if (otherRange.startLineNumber === range.startLineNumber && otherRange.startColumn < range.startColumn) { return false; } if (otherRange.endLineNumber === range.endLineNumber && otherRange.endColumn > range.endColumn) { return false; } return true; }; /** * A reunion of the two ranges. * The smallest position will be used as the start point, and the largest one as the end point. */ Range.prototype.plusRange = function (range) { return Range.plusRange(this, range); }; /** * A reunion of the two ranges. * The smallest position will be used as the start point, and the largest one as the end point. */ Range.plusRange = function (a, b) { var startLineNumber; var startColumn; var endLineNumber; var endColumn; if (b.startLineNumber < a.startLineNumber) { startLineNumber = b.startLineNumber; startColumn = b.startColumn; } else if (b.startLineNumber === a.startLineNumber) { startLineNumber = b.startLineNumber; startColumn = Math.min(b.startColumn, a.startColumn); } else { startLineNumber = a.startLineNumber; startColumn = a.startColumn; } if (b.endLineNumber > a.endLineNumber) { endLineNumber = b.endLineNumber; endColumn = b.endColumn; } else if (b.endLineNumber === a.endLineNumber) { endLineNumber = b.endLineNumber; endColumn = Math.max(b.endColumn, a.endColumn); } else { endLineNumber = a.endLineNumber; endColumn = a.endColumn; } return new Range(startLineNumber, startColumn, endLineNumber, endColumn); }; /** * A intersection of the two ranges. */ Range.prototype.intersectRanges = function (range) { return Range.intersectRanges(this, range); }; /** * A intersection of the two ranges. */ Range.intersectRanges = function (a, b) { var resultStartLineNumber = a.startLineNumber; var resultStartColumn = a.startColumn; var resultEndLineNumber = a.endLineNumber; var resultEndColumn = a.endColumn; var otherStartLineNumber = b.startLineNumber; var otherStartColumn = b.startColumn; var otherEndLineNumber = b.endLineNumber; var otherEndColumn = b.endColumn; if (resultStartLineNumber < otherStartLineNumber) { resultStartLineNumber = otherStartLineNumber; resultStartColumn = otherStartColumn; } else if (resultStartLineNumber === otherStartLineNumber) { resultStartColumn = Math.max(resultStartColumn, otherStartColumn); } if (resultEndLineNumber > otherEndLineNumber) { resultEndLineNumber = otherEndLineNumber; resultEndColumn = otherEndColumn; } else if (resultEndLineNumber === otherEndLineNumber) { resultEndColumn = Math.min(resultEndColumn, otherEndColumn); } // Check if selection is now empty if (resultStartLineNumber > resultEndLineNumber) { return null; } if (resultStartLineNumber === resultEndLineNumber && resultStartColumn > resultEndColumn) { return null; } return new Range(resultStartLineNumber, resultStartColumn, resultEndLineNumber, resultEndColumn); }; /** * Test if this range equals other. */ Range.prototype.equalsRange = function (other) { return Range.equalsRange(this, other); }; /** * Test if range `a` equals `b`. */ Range.equalsRange = function (a, b) { return (!!a && !!b && a.startLineNumber === b.startLineNumber && a.startColumn === b.startColumn && a.endLineNumber === b.endLineNumber && a.endColumn === b.endColumn); }; /** * Return the end position (which will be after or equal to the start position) */ Range.prototype.getEndPosition = function () { return new __WEBPACK_IMPORTED_MODULE_0__position_js__["a" /* Position */](this.endLineNumber, this.endColumn); }; /** * Return the start position (which will be before or equal to the end position) */ Range.prototype.getStartPosition = function () { return new __WEBPACK_IMPORTED_MODULE_0__position_js__["a" /* Position */](this.startLineNumber, this.startColumn); }; /** * Transform to a user presentable string representation. */ Range.prototype.toString = function () { return '[' + this.startLineNumber + ',' + this.startColumn + ' -> ' + this.endLineNumber + ',' + this.endColumn + ']'; }; /** * Create a new range using this range's start position, and using endLineNumber and endColumn as the end position. */ Range.prototype.setEndPosition = function (endLineNumber, endColumn) { return new Range(this.startLineNumber, this.startColumn, endLineNumber, endColumn); }; /** * Create a new range using this range's end position, and using startLineNumber and startColumn as the start position. */ Range.prototype.setStartPosition = function (startLineNumber, startColumn) { return new Range(startLineNumber, startColumn, this.endLineNumber, this.endColumn); }; /** * Create a new empty range using this range's start position. */ Range.prototype.collapseToStart = function () { return Range.collapseToStart(this); }; /** * Create a new empty range using this range's start position. */ Range.collapseToStart = function (range) { return new Range(range.startLineNumber, range.startColumn, range.startLineNumber, range.startColumn); }; // --- Range.fromPositions = function (start, end) { if (end === void 0) { end = start; } return new Range(start.lineNumber, start.column, end.lineNumber, end.column); }; Range.lift = function (range) { if (!range) { return null; } return new Range(range.startLineNumber, range.startColumn, range.endLineNumber, range.endColumn); }; /** * Test if `obj` is an `IRange`. */ Range.isIRange = function (obj) { return (obj && (typeof obj.startLineNumber === 'number') && (typeof obj.startColumn === 'number') && (typeof obj.endLineNumber === 'number') && (typeof obj.endColumn === 'number')); }; /** * Test if the two ranges are touching in any way. */ Range.areIntersectingOrTouching = function (a, b) { // Check if `a` is before `b` if (a.endLineNumber < b.startLineNumber || (a.endLineNumber === b.startLineNumber && a.endColumn < b.startColumn)) { return false; } // Check if `b` is before `a` if (b.endLineNumber < a.startLineNumber || (b.endLineNumber === a.startLineNumber && b.endColumn < a.startColumn)) { return false; } // These ranges must intersect return true; }; /** * Test if the two ranges are intersecting. If the ranges are touching it returns true. */ Range.areIntersecting = function (a, b) { // Check if `a` is before `b` if (a.endLineNumber < b.startLineNumber || (a.endLineNumber === b.startLineNumber && a.endColumn <= b.startColumn)) { return false; } // Check if `b` is before `a` if (b.endLineNumber < a.startLineNumber || (b.endLineNumber === a.startLineNumber && b.endColumn <= a.startColumn)) { return false; } // These ranges must intersect return true; }; /** * A function that compares ranges, useful for sorting ranges * It will first compare ranges on the startPosition and then on the endPosition */ Range.compareRangesUsingStarts = function (a, b) { if (a && b) { var aStartLineNumber = a.startLineNumber | 0; var bStartLineNumber = b.startLineNumber | 0; if (aStartLineNumber === bStartLineNumber) { var aStartColumn = a.startColumn | 0; var bStartColumn = b.startColumn | 0; if (aStartColumn === bStartColumn) { var aEndLineNumber = a.endLineNumber | 0; var bEndLineNumber = b.endLineNumber | 0; if (aEndLineNumber === bEndLineNumber) { var aEndColumn = a.endColumn | 0; var bEndColumn = b.endColumn | 0; return aEndColumn - bEndColumn; } return aEndLineNumber - bEndLineNumber; } return aStartColumn - bStartColumn; } return aStartLineNumber - bStartLineNumber; } var aExists = (a ? 1 : 0); var bExists = (b ? 1 : 0); return aExists - bExists; }; /** * A function that compares ranges, useful for sorting ranges * It will first compare ranges on the endPosition and then on the startPosition */ Range.compareRangesUsingEnds = function (a, b) { if (a.endLineNumber === b.endLineNumber) { if (a.endColumn === b.endColumn) { if (a.startLineNumber === b.startLineNumber) { return a.startColumn - b.startColumn; } return a.startLineNumber - b.startLineNumber; } return a.endColumn - b.endColumn; } return a.endLineNumber - b.endLineNumber; }; /** * Test if the range spans multiple lines. */ Range.spansMultipleLines = function (range) { return range.endLineNumber > range.startLineNumber; }; return Range; }()); /***/ }), /***/ 847: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return empty; }); /* harmony export (immutable) */ __webpack_exports__["r"] = isFalsyOrWhitespace; /* unused harmony export pad */ /* harmony export (immutable) */ __webpack_exports__["o"] = format; /* harmony export (immutable) */ __webpack_exports__["l"] = escape; /* harmony export (immutable) */ __webpack_exports__["m"] = escapeRegExpCharacters; /* unused harmony export trim */ /* harmony export (immutable) */ __webpack_exports__["y"] = ltrim; /* unused harmony export rtrim */ /* harmony export (immutable) */ __webpack_exports__["g"] = convertSimple2RegExpPattern; /* harmony export (immutable) */ __webpack_exports__["B"] = startsWith; /* harmony export (immutable) */ __webpack_exports__["j"] = endsWith; /* harmony export (immutable) */ __webpack_exports__["h"] = createRegExp; /* harmony export (immutable) */ __webpack_exports__["A"] = regExpLeadsToEndlessLoop; /* harmony export (immutable) */ __webpack_exports__["z"] = regExpFlags; /* harmony export (immutable) */ __webpack_exports__["n"] = firstNonWhitespaceIndex; /* harmony export (immutable) */ __webpack_exports__["p"] = getLeadingWhitespace; /* harmony export (immutable) */ __webpack_exports__["x"] = lastNonWhitespaceIndex; /* unused harmony export compare */ /* harmony export (immutable) */ __webpack_exports__["v"] = isLowerAsciiLetter; /* harmony export (immutable) */ __webpack_exports__["w"] = isUpperAsciiLetter; /* harmony export (immutable) */ __webpack_exports__["k"] = equalsIgnoreCase; /* harmony export (immutable) */ __webpack_exports__["C"] = startsWithIgnoreCase; /* harmony export (immutable) */ __webpack_exports__["b"] = commonPrefixLength; /* harmony export (immutable) */ __webpack_exports__["c"] = commonSuffixLength; /* harmony export (immutable) */ __webpack_exports__["t"] = isHighSurrogate; /* harmony export (immutable) */ __webpack_exports__["u"] = isLowSurrogate; /* harmony export (immutable) */ __webpack_exports__["f"] = containsRTL; /* harmony export (immutable) */ __webpack_exports__["d"] = containsEmoji; /* harmony export (immutable) */ __webpack_exports__["q"] = isBasicASCII; /* harmony export (immutable) */ __webpack_exports__["e"] = containsFullWidthCharacter; /* harmony export (immutable) */ __webpack_exports__["s"] = isFullWidthCharacter; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return UTF8_BOM_CHARACTER; }); /* harmony export (immutable) */ __webpack_exports__["D"] = startsWithUTF8BOM; /* unused harmony export safeBtoa */ /* unused harmony export repeat */ /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /** * The empty string. */ var empty = ''; function isFalsyOrWhitespace(str) { if (!str || typeof str !== 'string') { return true; } return str.trim().length === 0; } /** * @returns the provided number with the given number of preceding zeros. */ function pad(n, l, char) { if (char === void 0) { char = '0'; } var str = '' + n; var r = [str]; for (var i = str.length; i < l; i++) { r.push(char); } return r.reverse().join(''); } var _formatRegexp = /{(\d+)}/g; /** * Helper to produce a string with a variable number of arguments. Insert variable segments * into the string using the {n} notation where N is the index of the argument following the string. * @param value string to which formatting is applied * @param args replacements for {n}-entries */ function format(value) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } if (args.length === 0) { return value; } return value.replace(_formatRegexp, function (match, group) { var idx = parseInt(group, 10); return isNaN(idx) || idx < 0 || idx >= args.length ? match : args[idx]; }); } /** * Converts HTML characters inside the string to use entities instead. Makes the string safe from * being used e.g. in HTMLElement.innerHTML. */ function escape(html) { return html.replace(/[<>&]/g, function (match) { switch (match) { case '<': return '<'; case '>': return '>'; case '&': return '&'; default: return match; } }); } /** * Escapes regular expression characters in a given string */ function escapeRegExpCharacters(value) { return value.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g, '\\$&'); } /** * Removes all occurrences of needle from the beginning and end of haystack. * @param haystack string to trim * @param needle the thing to trim (default is a blank) */ function trim(haystack, needle) { if (needle === void 0) { needle = ' '; } var trimmed = ltrim(haystack, needle); return rtrim(trimmed, needle); } /** * Removes all occurrences of needle from the beginning of haystack. * @param haystack string to trim * @param needle the thing to trim */ function ltrim(haystack, needle) { if (!haystack || !needle) { return haystack; } var needleLen = needle.length; if (needleLen === 0 || haystack.length === 0) { return haystack; } var offset = 0; while (haystack.indexOf(needle, offset) === offset) { offset = offset + needleLen; } return haystack.substring(offset); } /** * Removes all occurrences of needle from the end of haystack. * @param haystack string to trim * @param needle the thing to trim */ function rtrim(haystack, needle) { if (!haystack || !needle) { return haystack; } var needleLen = needle.length, haystackLen = haystack.length; if (needleLen === 0 || haystackLen === 0) { return haystack; } var offset = haystackLen, idx = -1; while (true) { idx = haystack.lastIndexOf(needle, offset - 1); if (idx === -1 || idx + needleLen !== offset) { break; } if (idx === 0) { return ''; } offset = idx; } return haystack.substring(0, offset); } function convertSimple2RegExpPattern(pattern) { return pattern.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, '\\$&').replace(/[\*]/g, '.*'); } /** * Determines if haystack starts with needle. */ function startsWith(haystack, needle) { if (haystack.length < needle.length) { return false; } if (haystack === needle) { return true; } for (var i = 0; i < needle.length; i++) { if (haystack[i] !== needle[i]) { return false; } } return true; } /** * Determines if haystack ends with needle. */ function endsWith(haystack, needle) { var diff = haystack.length - needle.length; if (diff > 0) { return haystack.indexOf(needle, diff) === diff; } else if (diff === 0) { return haystack === needle; } else { return false; } } function createRegExp(searchString, isRegex, options) { if (options === void 0) { options = {}; } if (!searchString) { throw new Error('Cannot create regex from empty string'); } if (!isRegex) { searchString = escapeRegExpCharacters(searchString); } if (options.wholeWord) { if (!/\B/.test(searchString.charAt(0))) { searchString = '\\b' + searchString; } if (!/\B/.test(searchString.charAt(searchString.length - 1))) { searchString = searchString + '\\b'; } } var modifiers = ''; if (options.global) { modifiers += 'g'; } if (!options.matchCase) { modifiers += 'i'; } if (options.multiline) { modifiers += 'm'; } if (options.unicode) { modifiers += 'u'; } return new RegExp(searchString, modifiers); } function regExpLeadsToEndlessLoop(regexp) { // Exit early if it's one of these special cases which are meant to match // against an empty string if (regexp.source === '^' || regexp.source === '^$' || regexp.source === '$' || regexp.source === '^\\s*$') { return false; } // We check against an empty string. If the regular expression doesn't advance // (e.g. ends in an endless loop) it will match an empty string. var match = regexp.exec(''); return !!(match && regexp.lastIndex === 0); } function regExpFlags(regexp) { return (regexp.global ? 'g' : '') + (regexp.ignoreCase ? 'i' : '') + (regexp.multiline ? 'm' : '') + (regexp.unicode ? 'u' : ''); } /** * Returns first index of the string that is not whitespace. * If string is empty or contains only whitespaces, returns -1 */ function firstNonWhitespaceIndex(str) { for (var i = 0, len = str.length; i < len; i++) { var chCode = str.charCodeAt(i); if (chCode !== 32 /* Space */ && chCode !== 9 /* Tab */) { return i; } } return -1; } /** * Returns the leading whitespace of the string. * If the string contains only whitespaces, returns entire string */ function getLeadingWhitespace(str, start, end) { if (start === void 0) { start = 0; } if (end === void 0) { end = str.length; } for (var i = start; i < end; i++) { var chCode = str.charCodeAt(i); if (chCode !== 32 /* Space */ && chCode !== 9 /* Tab */) { return str.substring(start, i); } } return str.substring(start, end); } /** * Returns last index of the string that is not whitespace. * If string is empty or contains only whitespaces, returns -1 */ function lastNonWhitespaceIndex(str, startIndex) { if (startIndex === void 0) { startIndex = str.length - 1; } for (var i = startIndex; i >= 0; i--) { var chCode = str.charCodeAt(i); if (chCode !== 32 /* Space */ && chCode !== 9 /* Tab */) { return i; } } return -1; } function compare(a, b) { if (a < b) { return -1; } else if (a > b) { return 1; } else { return 0; } } function isLowerAsciiLetter(code) { return code >= 97 /* a */ && code <= 122 /* z */; } function isUpperAsciiLetter(code) { return code >= 65 /* A */ && code <= 90 /* Z */; } function isAsciiLetter(code) { return isLowerAsciiLetter(code) || isUpperAsciiLetter(code); } function equalsIgnoreCase(a, b) { var len1 = a ? a.length : 0; var len2 = b ? b.length : 0; if (len1 !== len2) { return false; } return doEqualsIgnoreCase(a, b); } function doEqualsIgnoreCase(a, b, stopAt) { if (stopAt === void 0) { stopAt = a.length; } if (typeof a !== 'string' || typeof b !== 'string') { return false; } for (var i = 0; i < stopAt; i++) { var codeA = a.charCodeAt(i); var codeB = b.charCodeAt(i); if (codeA === codeB) { continue; } // a-z A-Z if (isAsciiLetter(codeA) && isAsciiLetter(codeB)) { var diff = Math.abs(codeA - codeB); if (diff !== 0 && diff !== 32) { return false; } } // Any other charcode else { if (String.fromCharCode(codeA).toLowerCase() !== String.fromCharCode(codeB).toLowerCase()) { return false; } } } return true; } function startsWithIgnoreCase(str, candidate) { var candidateLength = candidate.length; if (candidate.length > str.length) { return false; } return doEqualsIgnoreCase(str, candidate, candidateLength); } /** * @returns the length of the common prefix of the two strings. */ function commonPrefixLength(a, b) { var i, len = Math.min(a.length, b.length); for (i = 0; i < len; i++) { if (a.charCodeAt(i) !== b.charCodeAt(i)) { return i; } } return len; } /** * @returns the length of the common suffix of the two strings. */ function commonSuffixLength(a, b) { var i, len = Math.min(a.length, b.length); var aLastIndex = a.length - 1; var bLastIndex = b.length - 1; for (i = 0; i < len; i++) { if (a.charCodeAt(aLastIndex - i) !== b.charCodeAt(bLastIndex - i)) { return i; } } return len; } // --- unicode // http://en.wikipedia.org/wiki/Surrogate_pair // Returns the code point starting at a specified index in a string // Code points U+0000 to U+D7FF and U+E000 to U+FFFF are represented on a single character // Code points U+10000 to U+10FFFF are represented on two consecutive characters //export function getUnicodePoint(str:string, index:number, len:number):number { // let chrCode = str.charCodeAt(index); // if (0xD800 <= chrCode && chrCode <= 0xDBFF && index + 1 < len) { // let nextChrCode = str.charCodeAt(index + 1); // if (0xDC00 <= nextChrCode && nextChrCode <= 0xDFFF) { // return (chrCode - 0xD800) << 10 + (nextChrCode - 0xDC00) + 0x10000; // } // } // return chrCode; //} function isHighSurrogate(charCode) { return (0xD800 <= charCode && charCode <= 0xDBFF); } function isLowSurrogate(charCode) { return (0xDC00 <= charCode && charCode <= 0xDFFF); } /** * Generated using https://github.com/alexandrudima/unicode-utils/blob/master/generate-rtl-test.js */ var CONTAINS_RTL = /(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/; /** * Returns true if `str` contains any Unicode character that is classified as "R" or "AL". */ function containsRTL(str) { return CONTAINS_RTL.test(str); } /** * Generated using https://github.com/alexandrudima/unicode-utils/blob/master/generate-emoji-test.js */ var CONTAINS_EMOJI = /(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/; function containsEmoji(str) { return CONTAINS_EMOJI.test(str); } var IS_BASIC_ASCII = /^[\t\n\r\x20-\x7E]*$/; /** * Returns true if `str` contains only basic ASCII characters in the range 32 - 126 (including 32 and 126) or \n, \r, \t */ function isBasicASCII(str) { return IS_BASIC_ASCII.test(str); } function containsFullWidthCharacter(str) { for (var i = 0, len = str.length; i < len; i++) { if (isFullWidthCharacter(str.charCodeAt(i))) { return true; } } return false; } function isFullWidthCharacter(charCode) { // Do a cheap trick to better support wrapping of wide characters, treat them as 2 columns // http://jrgraphix.net/research/unicode_blocks.php // 2E80 — 2EFF CJK Radicals Supplement // 2F00 — 2FDF Kangxi Radicals // 2FF0 — 2FFF Ideographic Description Characters // 3000 — 303F CJK Symbols and Punctuation // 3040 — 309F Hiragana // 30A0 — 30FF Katakana // 3100 — 312F Bopomofo // 3130 — 318F Hangul Compatibility Jamo // 3190 — 319F Kanbun // 31A0 — 31BF Bopomofo Extended // 31F0 — 31FF Katakana Phonetic Extensions // 3200 — 32FF Enclosed CJK Letters and Months // 3300 — 33FF CJK Compatibility // 3400 — 4DBF CJK Unified Ideographs Extension A // 4DC0 — 4DFF Yijing Hexagram Symbols // 4E00 — 9FFF CJK Unified Ideographs // A000 — A48F Yi Syllables // A490 — A4CF Yi Radicals // AC00 — D7AF Hangul Syllables // [IGNORE] D800 — DB7F High Surrogates // [IGNORE] DB80 — DBFF High Private Use Surrogates // [IGNORE] DC00 — DFFF Low Surrogates // [IGNORE] E000 — F8FF Private Use Area // F900 — FAFF CJK Compatibility Ideographs // [IGNORE] FB00 — FB4F Alphabetic Presentation Forms // [IGNORE] FB50 — FDFF Arabic Presentation Forms-A // [IGNORE] FE00 — FE0F Variation Selectors // [IGNORE] FE20 — FE2F Combining Half Marks // [IGNORE] FE30 — FE4F CJK Compatibility Forms // [IGNORE] FE50 — FE6F Small Form Variants // [IGNORE] FE70 — FEFF Arabic Presentation Forms-B // FF00 — FFEF Halfwidth and Fullwidth Forms // [https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms] // of which FF01 - FF5E fullwidth ASCII of 21 to 7E // [IGNORE] and FF65 - FFDC halfwidth of Katakana and Hangul // [IGNORE] FFF0 — FFFF Specials charCode = +charCode; // @perf return ((charCode >= 0x2E80 && charCode <= 0xD7AF) || (charCode >= 0xF900 && charCode <= 0xFAFF) || (charCode >= 0xFF01 && charCode <= 0xFF5E)); } // -- UTF-8 BOM var UTF8_BOM_CHARACTER = String.fromCharCode(65279 /* UTF8_BOM */); function startsWithUTF8BOM(str) { return !!(str && str.length > 0 && str.charCodeAt(0) === 65279 /* UTF8_BOM */); } function safeBtoa(str) { return btoa(encodeURIComponent(str)); // we use encodeURIComponent because btoa fails for non Latin 1 values } function repeat(s, count) { var result = ''; for (var i = 0; i < count; i++) { result += s; } return result; } /***/ }), /***/ 848: /***/ (function(module, exports, __webpack_require__) { "use strict"; __webpack_require__(27); __webpack_require__(901); __webpack_require__(298); //# sourceMappingURL=css.js.map /***/ }), /***/ 849: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _Pagination = _interopRequireDefault(__webpack_require__(911)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _default = _Pagination["default"]; exports["default"] = _default; //# sourceMappingURL=index.js.map /***/ }), /***/ 850: /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__(831), isLength = __webpack_require__(828); /** * Checks if `value` is array-like. A value is considered array-like if it's * not a function and has a `value.length` that's an integer greater than or * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @example * * _.isArrayLike([1, 2, 3]); * // => true * * _.isArrayLike(document.body.children); * // => true * * _.isArrayLike('abc'); * // => true * * _.isArrayLike(_.noop); * // => false */ function isArrayLike(value) { return value != null && isLength(value.length) && !isFunction(value); } module.exports = isArrayLike; /***/ }), /***/ 851: /***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(162), stubFalse = __webpack_require__(945); /** Detect free variable `exports`. */ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; /** Detect free variable `module`. */ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module; /** Detect the popular CommonJS extension `module.exports`. */ var moduleExports = freeModule && freeModule.exports === freeExports; /** Built-in value references. */ var Buffer = moduleExports ? root.Buffer : undefined; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; /** * Checks if `value` is a buffer. * * @static * @memberOf _ * @since 4.3.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. * @example * * _.isBuffer(new Buffer(2)); * // => true * * _.isBuffer(new Uint8Array(2)); * // => false */ var isBuffer = nativeIsBuffer || stubFalse; module.exports = isBuffer; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(300)(module))) /***/ }), /***/ 852: /***/ (function(module, exports, __webpack_require__) { var baseIsTypedArray = __webpack_require__(946), baseUnary = __webpack_require__(947), nodeUtil = __webpack_require__(948); /* Node.js helper references. */ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; /** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; module.exports = isTypedArray; /***/ }), /***/ 853: /***/ (function(module, exports, __webpack_require__) { var getNative = __webpack_require__(816); var defineProperty = (function() { try { var func = getNative(Object, 'defineProperty'); func({}, '', {}); return func; } catch (e) {} }()); module.exports = defineProperty; /***/ }), /***/ 854: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Position; }); /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ /** * A position in the editor. */ var Position = /** @class */ (function () { function Position(lineNumber, column) { this.lineNumber = lineNumber; this.column = column; } /** * Create a new postion from this position. * * @param newLineNumber new line number * @param newColumn new column */ Position.prototype.with = function (newLineNumber, newColumn) { if (newLineNumber === void 0) { newLineNumber = this.lineNumber; } if (newColumn === void 0) { newColumn = this.column; } if (newLineNumber === this.lineNumber && newColumn === this.column) { return this; } else { return new Position(newLineNumber, newColumn); } }; /** * Derive a new position from this position. * * @param deltaLineNumber line number delta * @param deltaColumn column delta */ Position.prototype.delta = function (deltaLineNumber, deltaColumn) { if (deltaLineNumber === void 0) { deltaLineNumber = 0; } if (deltaColumn === void 0) { deltaColumn = 0; } return this.with(this.lineNumber + deltaLineNumber, this.column + deltaColumn); }; /** * Test if this position equals other position */ Position.prototype.equals = function (other) { return Position.equals(this, other); }; /** * Test if position `a` equals position `b` */ Position.equals = function (a, b) { if (!a && !b) { return true; } return (!!a && !!b && a.lineNumber === b.lineNumber && a.column === b.column); }; /** * Test if this position is before other position. * If the two positions are equal, the result will be false. */ Position.prototype.isBefore = function (other) { return Position.isBefore(this, other); }; /** * Test if position `a` is before position `b`. * If the two positions are equal, the result will be false. */ Position.isBefore = function (a, b) { if (a.lineNumber < b.lineNumber) { return true; } if (b.lineNumber < a.lineNumber) { return false; } return a.column < b.column; }; /** * Test if this position is before other position. * If the two positions are equal, the result will be true. */ Position.prototype.isBeforeOrEqual = function (other) { return Position.isBeforeOrEqual(this, other); }; /** * Test if position `a` is before position `b`. * If the two positions are equal, the result will be true. */ Position.isBeforeOrEqual = function (a, b) { if (a.lineNumber < b.lineNumber) { return true; } if (b.lineNumber < a.lineNumber) { return false; } return a.column <= b.column; }; /** * A function that compares positions, useful for sorting */ Position.compare = function (a, b) { var aLineNumber = a.lineNumber | 0; var bLineNumber = b.lineNumber | 0; if (aLineNumber === bLineNumber) { var aColumn = a.column | 0; var bColumn = b.column | 0; return aColumn - bColumn; } return aLineNumber - bLineNumber; }; /** * Clone this position. */ Position.prototype.clone = function () { return new Position(this.lineNumber, this.column); }; /** * Convert to a human-readable representation. */ Position.prototype.toString = function () { return '(' + this.lineNumber + ',' + this.column + ')'; }; // --- /** * Create a `Position` from an `IPosition`. */ Position.lift = function (pos) { return new Position(pos.lineNumber, pos.column); }; /** * Test if `obj` is an `IPosition`. */ Position.isIPosition = function (obj) { return (obj && (typeof obj.lineNumber === 'number') && (typeof obj.column === 'number')); }; return Position; }()); /***/ }), /***/ 855: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _util; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return IInstantiationService; }); /* harmony export (immutable) */ __webpack_exports__["c"] = createDecorator; /* harmony export (immutable) */ __webpack_exports__["d"] = optional; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ // ------ internal util var _util; (function (_util) { _util.serviceIds = new Map(); _util.DI_TARGET = '$di$target'; _util.DI_DEPENDENCIES = '$di$dependencies'; function getServiceDependencies(ctor) { return ctor[_util.DI_DEPENDENCIES] || []; } _util.getServiceDependencies = getServiceDependencies; })(_util || (_util = {})); var IInstantiationService = createDecorator('instantiationService'); function storeServiceDependency(id, target, index, optional) { if (target[_util.DI_TARGET] === target) { target[_util.DI_DEPENDENCIES].push({ id: id, index: index, optional: optional }); } else { target[_util.DI_DEPENDENCIES] = [{ id: id, index: index, optional: optional }]; target[_util.DI_TARGET] = target; } } /** * A *only* valid way to create a {{ServiceIdentifier}}. */ function createDecorator(serviceId) { if (_util.serviceIds.has(serviceId)) { return _util.serviceIds.get(serviceId); } var id = function (target, key, index) { if (arguments.length !== 3) { throw new Error('@IServiceName-decorator can only be used to decorate a parameter'); } storeServiceDependency(id, target, index, false); }; id.toString = function () { return serviceId; }; _util.serviceIds.set(serviceId, id); return id; } /** * Mark a service dependency as optional. */ function optional(serviceIdentifier) { return function (target, key, index) { if (arguments.length !== 3) { throw new Error('@optional-decorator can only be used to decorate a parameter'); } storeServiceDependency(serviceIdentifier, target, index, true); }; } /***/ }), /***/ 856: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (immutable) */ __webpack_exports__["m"] = clearNode; /* harmony export (immutable) */ __webpack_exports__["F"] = removeNode; /* harmony export (immutable) */ __webpack_exports__["B"] = isInDOM; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return hasClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return addClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return addClasses; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "D", function() { return removeClass; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "E", function() { return removeClasses; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "M", function() { return toggleClass; }); /* harmony export (immutable) */ __webpack_exports__["g"] = addDisposableListener; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return addStandardDisposableListener; }); /* harmony export (immutable) */ __webpack_exports__["h"] = addDisposableNonBubblingMouseOutListener; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I", function() { return runAtThisOrScheduleAtNextAnimationFrame; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "K", function() { return scheduleAtNextAnimationFrame; }); /* harmony export (immutable) */ __webpack_exports__["i"] = addDisposableThrottledListener; /* unused harmony export getComputedStyle */ /* unused harmony export Dimension */ /* harmony export (immutable) */ __webpack_exports__["u"] = getTopLeftOffset; /* harmony export (immutable) */ __webpack_exports__["s"] = getDomNodePagePosition; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return StandardWindow; }); /* harmony export (immutable) */ __webpack_exports__["w"] = getTotalWidth; /* harmony export (immutable) */ __webpack_exports__["r"] = getContentWidth; /* harmony export (immutable) */ __webpack_exports__["q"] = getContentHeight; /* harmony export (immutable) */ __webpack_exports__["v"] = getTotalHeight; /* harmony export (immutable) */ __webpack_exports__["z"] = isAncestor; /* harmony export (immutable) */ __webpack_exports__["p"] = findParentWithClass; /* harmony export (immutable) */ __webpack_exports__["o"] = createStyleSheet; /* unused harmony export createCSSRule */ /* harmony export (immutable) */ __webpack_exports__["C"] = removeCSSRulesContainingSelector; /* harmony export (immutable) */ __webpack_exports__["A"] = isHTMLElement; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return EventType; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return EventHelper; }); /* harmony export (immutable) */ __webpack_exports__["J"] = saveParentsScrollTop; /* harmony export (immutable) */ __webpack_exports__["H"] = restoreParentsScrollTop; /* harmony export (immutable) */ __webpack_exports__["N"] = trackFocus; /* harmony export (immutable) */ __webpack_exports__["l"] = append; /* harmony export (immutable) */ __webpack_exports__["a"] = $; /* harmony export (immutable) */ __webpack_exports__["L"] = show; /* harmony export (immutable) */ __webpack_exports__["y"] = hide; /* harmony export (immutable) */ __webpack_exports__["G"] = removeTabIndexAndUpdateFocus; /* harmony export (immutable) */ __webpack_exports__["t"] = getElementsByTagName; /* harmony export (immutable) */ __webpack_exports__["n"] = computeScreenAwareSize; /* harmony export (immutable) */ __webpack_exports__["O"] = windowOpenNoOpener; /* harmony export (immutable) */ __webpack_exports__["k"] = animate; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__browser_js__ = __webpack_require__(1149); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__event_js__ = __webpack_require__(1357); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__keyboardEvent_js__ = __webpack_require__(1323); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mouseEvent_js__ = __webpack_require__(1279); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common_async_js__ = __webpack_require__(1021); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common_errors_js__ = __webpack_require__(956); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__common_event_js__ = __webpack_require__(833); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__common_lifecycle_js__ = __webpack_require__(825); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__common_platform_js__ = __webpack_require__(894); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__common_arrays_js__ = __webpack_require__(1202); /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); function clearNode(node) { while (node.firstChild) { node.removeChild(node.firstChild); } } function removeNode(node) { if (node.parentNode) { node.parentNode.removeChild(node); } } function isInDOM(node) { while (node) { if (node === document.body) { return true; } node = node.parentNode; } return false; } var _manualClassList = new /** @class */ (function () { function class_1() { } class_1.prototype._findClassName = function (node, className) { var classes = node.className; if (!classes) { this._lastStart = -1; return; } className = className.trim(); var classesLen = classes.length, classLen = className.length; if (classLen === 0) { this._lastStart = -1; return; } if (classesLen < classLen) { this._lastStart = -1; return; } if (classes === className) { this._lastStart = 0; this._lastEnd = classesLen; return; } var idx = -1, idxEnd; while ((idx = classes.indexOf(className, idx + 1)) >= 0) { idxEnd = idx + classLen; // a class that is followed by another class if ((idx === 0 || classes.charCodeAt(idx - 1) === 32 /* Space */) && classes.charCodeAt(idxEnd) === 32 /* Space */) { this._lastStart = idx; this._lastEnd = idxEnd + 1; return; } // last class if (idx > 0 && classes.charCodeAt(idx - 1) === 32 /* Space */ && idxEnd === classesLen) { this._lastStart = idx - 1; this._lastEnd = idxEnd; return; } // equal - duplicate of cmp above if (idx === 0 && idxEnd === classesLen) { this._lastStart = 0; this._lastEnd = idxEnd; return; } } this._lastStart = -1; }; class_1.prototype.hasClass = function (node, className) { this._findClassName(node, className); return this._lastStart !== -1; }; class_1.prototype.addClasses = function (node) { var _this = this; var classNames = []; for (var _i = 1; _i < arguments.length; _i++) { classNames[_i - 1] = arguments[_i]; } classNames.forEach(function (nameValue) { return nameValue.split(' ').forEach(function (name) { return _this.addClass(node, name); }); }); }; class_1.prototype.addClass = function (node, className) { if (!node.className) { // doesn't have it for sure node.className = className; } else { this._findClassName(node, className); // see if it's already there if (this._lastStart === -1) { node.className = node.className + ' ' + className; } } }; class_1.prototype.removeClass = function (node, className) { this._findClassName(node, className); if (this._lastStart === -1) { return; // Prevent styles invalidation if not necessary } else { node.className = node.className.substring(0, this._lastStart) + node.className.substring(this._lastEnd); } }; class_1.prototype.removeClasses = function (node) { var _this = this; var classNames = []; for (var _i = 1; _i < arguments.length; _i++) { classNames[_i - 1] = arguments[_i]; } classNames.forEach(function (nameValue) { return nameValue.split(' ').forEach(function (name) { return _this.removeClass(node, name); }); }); }; class_1.prototype.toggleClass = function (node, className, shouldHaveIt) { this._findClassName(node, className); if (this._lastStart !== -1 && (shouldHaveIt === undefined || !shouldHaveIt)) { this.removeClass(node, className); } if (this._lastStart === -1 && (shouldHaveIt === undefined || shouldHaveIt)) { this.addClass(node, className); } }; return class_1; }()); var _nativeClassList = new /** @class */ (function () { function class_2() { } class_2.prototype.hasClass = function (node, className) { return Boolean(className) && node.classList && node.classList.contains(className); }; class_2.prototype.addClasses = function (node) { var _this = this; var classNames = []; for (var _i = 1; _i < arguments.length; _i++) { classNames[_i - 1] = arguments[_i]; } classNames.forEach(function (nameValue) { return nameValue.split(' ').forEach(function (name) { return _this.addClass(node, name); }); }); }; class_2.prototype.addClass = function (node, className) { if (className && node.classList) { node.classList.add(className); } }; class_2.prototype.removeClass = function (node, className) { if (className && node.classList) { node.classList.remove(className); } }; class_2.prototype.removeClasses = function (node) { var _this = this; var classNames = []; for (var _i = 1; _i < arguments.length; _i++) { classNames[_i - 1] = arguments[_i]; } classNames.forEach(function (nameValue) { return nameValue.split(' ').forEach(function (name) { return _this.removeClass(node, name); }); }); }; class_2.prototype.toggleClass = function (node, className, shouldHaveIt) { if (node.classList) { node.classList.toggle(className, shouldHaveIt); } }; return class_2; }()); // In IE11 there is only partial support for `classList` which makes us keep our // custom implementation. Otherwise use the native implementation, see: http://caniuse.com/#search=classlist var _classList = __WEBPACK_IMPORTED_MODULE_0__browser_js__["j" /* isIE */] ? _manualClassList : _nativeClassList; var hasClass = _classList.hasClass.bind(_classList); var addClass = _classList.addClass.bind(_classList); var addClasses = _classList.addClasses.bind(_classList); var removeClass = _classList.removeClass.bind(_classList); var removeClasses = _classList.removeClasses.bind(_classList); var toggleClass = _classList.toggleClass.bind(_classList); var DomListener = /** @class */ (function () { function DomListener(node, type, handler, useCapture) { this._node = node; this._type = type; this._handler = handler; this._useCapture = (useCapture || false); this._node.addEventListener(this._type, this._handler, this._useCapture); } DomListener.prototype.dispose = function () { if (!this._handler) { // Already disposed return; } this._node.removeEventListener(this._type, this._handler, this._useCapture); // Prevent leakers from holding on to the dom or handler func this._node = null; this._handler = null; }; return DomListener; }()); function addDisposableListener(node, type, handler, useCapture) { return new DomListener(node, type, handler, useCapture); } function _wrapAsStandardMouseEvent(handler) { return function (e) { return handler(new __WEBPACK_IMPORTED_MODULE_3__mouseEvent_js__["a" /* StandardMouseEvent */](e)); }; } function _wrapAsStandardKeyboardEvent(handler) { return function (e) { return handler(new __WEBPACK_IMPORTED_MODULE_2__keyboardEvent_js__["a" /* StandardKeyboardEvent */](e)); }; } var addStandardDisposableListener = function addStandardDisposableListener(node, type, handler, useCapture) { var wrapHandler = handler; if (type === 'click' || type === 'mousedown') { wrapHandler = _wrapAsStandardMouseEvent(handler); } else if (type === 'keydown' || type === 'keypress' || type === 'keyup') { wrapHandler = _wrapAsStandardKeyboardEvent(handler); } return addDisposableListener(node, type, wrapHandler, useCapture); }; function addDisposableNonBubblingMouseOutListener(node, handler) { return addDisposableListener(node, 'mouseout', function (e) { // Mouse out bubbles, so this is an attempt to ignore faux mouse outs coming from children elements var toElement = (e.relatedTarget || e.target); while (toElement && toElement !== node) { toElement = toElement.parentNode; } if (toElement === node) { return; } handler(e); }); } var _animationFrame = null; function doRequestAnimationFrame(callback) { if (!_animationFrame) { var emulatedRequestAnimationFrame = function (callback) { return setTimeout(function () { return callback(new Date().getTime()); }, 0); }; _animationFrame = (self.requestAnimationFrame || self.msRequestAnimationFrame || self.webkitRequestAnimationFrame || self.mozRequestAnimationFrame || self.oRequestAnimationFrame || emulatedRequestAnimationFrame); } return _animationFrame.call(self, callback); } /** * Schedule a callback to be run at the next animation frame. * This allows multiple parties to register callbacks that should run at the next animation frame. * If currently in an animation frame, `runner` will be executed immediately. * @return token that can be used to cancel the scheduled runner (only if `runner` was not executed immediately). */ var runAtThisOrScheduleAtNextAnimationFrame; /** * Schedule a callback to be run at the next animation frame. * This allows multiple parties to register callbacks that should run at the next animation frame. * If currently in an animation frame, `runner` will be executed at the next animation frame. * @return token that can be used to cancel the scheduled runner. */ var scheduleAtNextAnimationFrame; var AnimationFrameQueueItem = /** @class */ (function () { function AnimationFrameQueueItem(runner, priority) { if (priority === void 0) { priority = 0; } this._runner = runner; this.priority = priority; this._canceled = false; } AnimationFrameQueueItem.prototype.dispose = function () { this._canceled = true; }; AnimationFrameQueueItem.prototype.execute = function () { if (this._canceled) { return; } try { this._runner(); } catch (e) { Object(__WEBPACK_IMPORTED_MODULE_5__common_errors_js__["e" /* onUnexpectedError */])(e); } }; // Sort by priority (largest to lowest) AnimationFrameQueueItem.sort = function (a, b) { return b.priority - a.priority; }; return AnimationFrameQueueItem; }()); (function () { /** * The runners scheduled at the next animation frame */ var NEXT_QUEUE = []; /** * The runners scheduled at the current animation frame */ var CURRENT_QUEUE = null; /** * A flag to keep track if the native requestAnimationFrame was already called */ var animFrameRequested = false; /** * A flag to indicate if currently handling a native requestAnimationFrame callback */ var inAnimationFrameRunner = false; var animationFrameRunner = function () { animFrameRequested = false; CURRENT_QUEUE = NEXT_QUEUE; NEXT_QUEUE = []; inAnimationFrameRunner = true; while (CURRENT_QUEUE.length > 0) { CURRENT_QUEUE.sort(AnimationFrameQueueItem.sort); var top_1 = CURRENT_QUEUE.shift(); top_1.execute(); } inAnimationFrameRunner = false; }; scheduleAtNextAnimationFrame = function (runner, priority) { if (priority === void 0) { priority = 0; } var item = new AnimationFrameQueueItem(runner, priority); NEXT_QUEUE.push(item); if (!animFrameRequested) { animFrameRequested = true; doRequestAnimationFrame(animationFrameRunner); } return item; }; runAtThisOrScheduleAtNextAnimationFrame = function (runner, priority) { if (inAnimationFrameRunner) { var item = new AnimationFrameQueueItem(runner, priority); CURRENT_QUEUE.push(item); return item; } else { return scheduleAtNextAnimationFrame(runner, priority); } }; })(); var MINIMUM_TIME_MS = 16; var DEFAULT_EVENT_MERGER = function (lastEvent, currentEvent) { return currentEvent; }; var TimeoutThrottledDomListener = /** @class */ (function (_super) { __extends(TimeoutThrottledDomListener, _super); function TimeoutThrottledDomListener(node, type, handler, eventMerger, minimumTimeMs) { if (eventMerger === void 0) { eventMerger = DEFAULT_EVENT_MERGER; } if (minimumTimeMs === void 0) { minimumTimeMs = MINIMUM_TIME_MS; } var _this = _super.call(this) || this; var lastEvent = null; var lastHandlerTime = 0; var timeout = _this._register(new __WEBPACK_IMPORTED_MODULE_4__common_async_js__["d" /* TimeoutTimer */]()); var invokeHandler = function () { lastHandlerTime = (new Date()).getTime(); handler(lastEvent); lastEvent = null; }; _this._register(addDisposableListener(node, type, function (e) { lastEvent = eventMerger(lastEvent, e); var elapsedTime = (new Date()).getTime() - lastHandlerTime; if (elapsedTime >= minimumTimeMs) { timeout.cancel(); invokeHandler(); } else { timeout.setIfNotSet(invokeHandler, minimumTimeMs - elapsedTime); } })); return _this; } return TimeoutThrottledDomListener; }(__WEBPACK_IMPORTED_MODULE_7__common_lifecycle_js__["a" /* Disposable */])); function addDisposableThrottledListener(node, type, handler, eventMerger, minimumTimeMs) { return new TimeoutThrottledDomListener(node, type, handler, eventMerger, minimumTimeMs); } function getComputedStyle(el) { return document.defaultView.getComputedStyle(el, null); } // Adapted from WinJS // Converts a CSS positioning string for the specified element to pixels. var convertToPixels = (function () { return function (element, value) { return parseFloat(value) || 0; }; })(); function getDimension(element, cssPropertyName, jsPropertyName) { var computedStyle = getComputedStyle(element); var value = '0'; if (computedStyle) { if (computedStyle.getPropertyValue) { value = computedStyle.getPropertyValue(cssPropertyName); } else { // IE8 value = computedStyle.getAttribute(jsPropertyName); } } return convertToPixels(element, value); } var sizeUtils = { getBorderLeftWidth: function (element) { return getDimension(element, 'border-left-width', 'borderLeftWidth'); }, getBorderRightWidth: function (element) { return getDimension(element, 'border-right-width', 'borderRightWidth'); }, getBorderTopWidth: function (element) { return getDimension(element, 'border-top-width', 'borderTopWidth'); }, getBorderBottomWidth: function (element) { return getDimension(element, 'border-bottom-width', 'borderBottomWidth'); }, getPaddingLeft: function (element) { return getDimension(element, 'padding-left', 'paddingLeft'); }, getPaddingRight: function (element) { return getDimension(element, 'padding-right', 'paddingRight'); }, getPaddingTop: function (element) { return getDimension(element, 'padding-top', 'paddingTop'); }, getPaddingBottom: function (element) { return getDimension(element, 'padding-bottom', 'paddingBottom'); }, getMarginLeft: function (element) { return getDimension(element, 'margin-left', 'marginLeft'); }, getMarginTop: function (element) { return getDimension(element, 'margin-top', 'marginTop'); }, getMarginRight: function (element) { return getDimension(element, 'margin-right', 'marginRight'); }, getMarginBottom: function (element) { return getDimension(element, 'margin-bottom', 'marginBottom'); }, __commaSentinel: false }; // ---------------------------------------------------------------------------------------- // Position & Dimension var Dimension = /** @class */ (function () { function Dimension(width, height) { this.width = width; this.height = height; } return Dimension; }()); function getTopLeftOffset(element) { // Adapted from WinJS.Utilities.getPosition // and added borders to the mix var offsetParent = element.offsetParent, top = element.offsetTop, left = element.offsetLeft; while ((element = element.parentNode) !== null && element !== document.body && element !== document.documentElement) { top -= element.scrollTop; var c = getComputedStyle(element); if (c) { left -= c.direction !== 'rtl' ? element.scrollLeft : -element.scrollLeft; } if (element === offsetParent) { left += sizeUtils.getBorderLeftWidth(element); top += sizeUtils.getBorderTopWidth(element); top += element.offsetTop; left += element.offsetLeft; offsetParent = element.offsetParent; } } return { left: left, top: top }; } /** * Returns the position of a dom node relative to the entire page. */ function getDomNodePagePosition(domNode) { var bb = domNode.getBoundingClientRect(); return { left: bb.left + StandardWindow.scrollX, top: bb.top + StandardWindow.scrollY, width: bb.width, height: bb.height }; } var StandardWindow = new /** @class */ (function () { function class_3() { } Object.defineProperty(class_3.prototype, "scrollX", { get: function () { if (typeof window.scrollX === 'number') { // modern browsers return window.scrollX; } else { return document.body.scrollLeft + document.documentElement.scrollLeft; } }, enumerable: true, configurable: true }); Object.defineProperty(class_3.prototype, "scrollY", { get: function () { if (typeof window.scrollY === 'number') { // modern browsers return window.scrollY; } else { return document.body.scrollTop + document.documentElement.scrollTop; } }, enumerable: true, configurable: true }); return class_3; }()); // Adapted from WinJS // Gets the width of the element, including margins. function getTotalWidth(element) { var margin = sizeUtils.getMarginLeft(element) + sizeUtils.getMarginRight(element); return element.offsetWidth + margin; } function getContentWidth(element) { var border = sizeUtils.getBorderLeftWidth(element) + sizeUtils.getBorderRightWidth(element); var padding = sizeUtils.getPaddingLeft(element) + sizeUtils.getPaddingRight(element); return element.offsetWidth - border - padding; } // Adapted from WinJS // Gets the height of the content of the specified element. The content height does not include borders or padding. function getContentHeight(element) { var border = sizeUtils.getBorderTopWidth(element) + sizeUtils.getBorderBottomWidth(element); var padding = sizeUtils.getPaddingTop(element) + sizeUtils.getPaddingBottom(element); return element.offsetHeight - border - padding; } // Adapted from WinJS // Gets the height of the element, including its margins. function getTotalHeight(element) { var margin = sizeUtils.getMarginTop(element) + sizeUtils.getMarginBottom(element); return element.offsetHeight + margin; } // ---------------------------------------------------------------------------------------- function isAncestor(testChild, testAncestor) { while (testChild) { if (testChild === testAncestor) { return true; } testChild = testChild.parentNode; } return false; } function findParentWithClass(node, clazz, stopAtClazzOrNode) { while (node) { if (hasClass(node, clazz)) { return node; } if (stopAtClazzOrNode) { if (typeof stopAtClazzOrNode === 'string') { if (hasClass(node, stopAtClazzOrNode)) { return null; } } else { if (node === stopAtClazzOrNode) { return null; } } } node = node.parentNode; } return null; } function createStyleSheet(container) { if (container === void 0) { container = document.getElementsByTagName('head')[0]; } var style = document.createElement('style'); style.type = 'text/css'; style.media = 'screen'; container.appendChild(style); return style; } var _sharedStyleSheet = null; function getSharedStyleSheet() { if (!_sharedStyleSheet) { _sharedStyleSheet = createStyleSheet(); } return _sharedStyleSheet; } function getDynamicStyleSheetRules(style) { if (style && style.sheet && style.sheet.rules) { // Chrome, IE return style.sheet.rules; } if (style && style.sheet && style.sheet.cssRules) { // FF return style.sheet.cssRules; } return []; } function createCSSRule(selector, cssText, style) { if (style === void 0) { style = getSharedStyleSheet(); } if (!style || !cssText) { return; } style.sheet.insertRule(selector + '{' + cssText + '}', 0); } function removeCSSRulesContainingSelector(ruleName, style) { if (style === void 0) { style = getSharedStyleSheet(); } if (!style) { return; } var rules = getDynamicStyleSheetRules(style); var toDelete = []; for (var i = 0; i < rules.length; i++) { var rule = rules[i]; if (rule.selectorText.indexOf(ruleName) !== -1) { toDelete.push(i); } } for (var i = toDelete.length - 1; i >= 0; i--) { style.sheet.deleteRule(toDelete[i]); } } function isHTMLElement(o) { if (typeof HTMLElement === 'object') { return o instanceof HTMLElement; } return o && typeof o === 'object' && o.nodeType === 1 && typeof o.nodeName === 'string'; } var EventType = { // Mouse CLICK: 'click', DBLCLICK: 'dblclick', MOUSE_UP: 'mouseup', MOUSE_DOWN: 'mousedown', MOUSE_OVER: 'mouseover', MOUSE_MOVE: 'mousemove', MOUSE_OUT: 'mouseout', MOUSE_ENTER: 'mouseenter', MOUSE_LEAVE: 'mouseleave', CONTEXT_MENU: 'contextmenu', WHEEL: 'wheel', // Keyboard KEY_DOWN: 'keydown', KEY_PRESS: 'keypress', KEY_UP: 'keyup', // HTML Document LOAD: 'load', UNLOAD: 'unload', ABORT: 'abort', ERROR: 'error', RESIZE: 'resize', SCROLL: 'scroll', // Form SELECT: 'select', CHANGE: 'change', SUBMIT: 'submit', RESET: 'reset', FOCUS: 'focus', FOCUS_IN: 'focusin', FOCUS_OUT: 'focusout', BLUR: 'blur', INPUT: 'input', // Local Storage STORAGE: 'storage', // Drag DRAG_START: 'dragstart', DRAG: 'drag', DRAG_ENTER: 'dragenter', DRAG_LEAVE: 'dragleave', DRAG_OVER: 'dragover', DROP: 'drop', DRAG_END: 'dragend', // Animation ANIMATION_START: __WEBPACK_IMPORTED_MODULE_0__browser_js__["m" /* isWebKit */] ? 'webkitAnimationStart' : 'animationstart', ANIMATION_END: __WEBPACK_IMPORTED_MODULE_0__browser_js__["m" /* isWebKit */] ? 'webkitAnimationEnd' : 'animationend', ANIMATION_ITERATION: __WEBPACK_IMPORTED_MODULE_0__browser_js__["m" /* isWebKit */] ? 'webkitAnimationIteration' : 'animationiteration' }; var EventHelper = { stop: function (e, cancelBubble) { if (e.preventDefault) { e.preventDefault(); } else { // IE8 e.returnValue = false; } if (cancelBubble) { if (e.stopPropagation) { e.stopPropagation(); } else { // IE8 e.cancelBubble = true; } } } }; function saveParentsScrollTop(node) { var r = []; for (var i = 0; node && node.nodeType === node.ELEMENT_NODE; i++) { r[i] = node.scrollTop; node = node.parentNode; } return r; } function restoreParentsScrollTop(node, state) { for (var i = 0; node && node.nodeType === node.ELEMENT_NODE; i++) { if (node.scrollTop !== state[i]) { node.scrollTop = state[i]; } node = node.parentNode; } } var FocusTracker = /** @class */ (function () { function FocusTracker(element) { var _this = this; this._onDidFocus = new __WEBPACK_IMPORTED_MODULE_6__common_event_js__["a" /* Emitter */](); this.onDidFocus = this._onDidFocus.event; this._onDidBlur = new __WEBPACK_IMPORTED_MODULE_6__common_event_js__["a" /* Emitter */](); this.onDidBlur = this._onDidBlur.event; this.disposables = []; var hasFocus = isAncestor(document.activeElement, element); var loosingFocus = false; var onFocus = function () { loosingFocus = false; if (!hasFocus) { hasFocus = true; _this._onDidFocus.fire(); } }; var onBlur = function () { if (hasFocus) { loosingFocus = true; window.setTimeout(function () { if (loosingFocus) { loosingFocus = false; hasFocus = false; _this._onDidBlur.fire(); } }, 0); } }; Object(__WEBPACK_IMPORTED_MODULE_1__event_js__["a" /* domEvent */])(element, EventType.FOCUS, true)(onFocus, null, this.disposables); Object(__WEBPACK_IMPORTED_MODULE_1__event_js__["a" /* domEvent */])(element, EventType.BLUR, true)(onBlur, null, this.disposables); } FocusTracker.prototype.dispose = function () { this.disposables = Object(__WEBPACK_IMPORTED_MODULE_7__common_lifecycle_js__["d" /* dispose */])(this.disposables); this._onDidFocus.dispose(); this._onDidBlur.dispose(); }; return FocusTracker; }()); function trackFocus(element) { return new FocusTracker(element); } function append(parent) { var children = []; for (var _i = 1; _i < arguments.length; _i++) { children[_i - 1] = arguments[_i]; } children.forEach(function (child) { return parent.appendChild(child); }); return children[children.length - 1]; } var SELECTOR_REGEX = /([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/; function $(description, attrs) { var children = []; for (var _i = 2; _i < arguments.length; _i++) { children[_i - 2] = arguments[_i]; } var match = SELECTOR_REGEX.exec(description); if (!match) { throw new Error('Bad use of emmet'); } var result = document.createElement(match[1] || 'div'); if (match[3]) { result.id = match[3]; } if (match[4]) { result.className = match[4].replace(/\./g, ' ').trim(); } attrs = attrs || {}; Object.keys(attrs).forEach(function (name) { var value = attrs[name]; if (/^on\w+$/.test(name)) { result[name] = value; } else if (name === 'selected') { if (value) { result.setAttribute(name, 'true'); } } else { result.setAttribute(name, value); } }); Object(__WEBPACK_IMPORTED_MODULE_9__common_arrays_js__["b" /* coalesce */])(children) .forEach(function (child) { if (child instanceof Node) { result.appendChild(child); } else { result.appendChild(document.createTextNode(child)); } }); return result; } function show() { var elements = []; for (var _i = 0; _i < arguments.length; _i++) { elements[_i] = arguments[_i]; } for (var _a = 0, elements_1 = elements; _a < elements_1.length; _a++) { var element = elements_1[_a]; element.style.display = ''; element.removeAttribute('aria-hidden'); } } function hide() { var elements = []; for (var _i = 0; _i < arguments.length; _i++) { elements[_i] = arguments[_i]; } for (var _a = 0, elements_2 = elements; _a < elements_2.length; _a++) { var element = elements_2[_a]; element.style.display = 'none'; element.setAttribute('aria-hidden', 'true'); } } function findParentWithAttribute(node, attribute) { while (node) { if (node instanceof HTMLElement && node.hasAttribute(attribute)) { return node; } node = node.parentNode; } return null; } function removeTabIndexAndUpdateFocus(node) { if (!node || !node.hasAttribute('tabIndex')) { return; } // If we are the currently focused element and tabIndex is removed, // standard DOM behavior is to move focus to the element. We // typically never want that, rather put focus to the closest element // in the hierarchy of the parent DOM nodes. if (document.activeElement === node) { var parentFocusable = findParentWithAttribute(node.parentElement, 'tabIndex'); if (parentFocusable) { parentFocusable.focus(); } } node.removeAttribute('tabindex'); } function getElementsByTagName(tag) { return Array.prototype.slice.call(document.getElementsByTagName(tag), 0); } /** * Find a value usable for a dom node size such that the likelihood that it would be * displayed with constant screen pixels size is as high as possible. * * e.g. We would desire for the cursors to be 2px (CSS px) wide. Under a devicePixelRatio * of 1.25, the cursor will be 2.5 screen pixels wide. Depending on how the dom node aligns/"snaps" * with the screen pixels, it will sometimes be rendered with 2 screen pixels, and sometimes with 3 screen pixels. */ function computeScreenAwareSize(cssPx) { var screenPx = window.devicePixelRatio * cssPx; return Math.max(1, Math.floor(screenPx)) / window.devicePixelRatio; } /** * See https://github.com/Microsoft/monaco-editor/issues/601 * To protect against malicious code in the linked site, particularly phishing attempts, * the window.opener should be set to null to prevent the linked site from having access * to change the location of the current page. * See https://mathiasbynens.github.io/rel-noopener/ */ function windowOpenNoOpener(url) { if (__WEBPACK_IMPORTED_MODULE_8__common_platform_js__["e" /* isNative */] || __WEBPACK_IMPORTED_MODULE_0__browser_js__["h" /* isEdgeWebView */]) { // In VSCode, window.open() always returns null... // The same is true for a WebView (see https://github.com/Microsoft/monaco-editor/issues/628) window.open(url); } else { var newTab = window.open(); if (newTab) { newTab.opener = null; newTab.location.href = url; } } } function animate(fn) { var step = function () { fn(); stepDisposable = scheduleAtNextAnimationFrame(step); }; var stepDisposable = scheduleAtNextAnimationFrame(step); return Object(__WEBPACK_IMPORTED_MODULE_7__common_lifecycle_js__["e" /* toDisposable */])(function () { return stepDisposable.dispose(); }); } /***/ }), /***/ 857: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = exports.SiderContext = void 0; var _createReactContext = _interopRequireDefault(__webpack_require__(294)); var React = _interopRequireWildcard(__webpack_require__(0)); var _reactLifecyclesCompat = __webpack_require__(7); var _classnames = _interopRequireDefault(__webpack_require__(3)); var _omit = _interopRequireDefault(__webpack_require__(43)); var _layout = __webpack_require__(933); var _configProvider = __webpack_require__(9); var _icon = _interopRequireDefault(__webpack_require__(25)); var _isNumeric = _interopRequireDefault(__webpack_require__(939)); function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } var __rest = void 0 && (void 0).__rest || function (s, e) { var t = {}; for (var p in s) { if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; } if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; // matchMedia polyfill for // https://github.com/WickyNilliams/enquire.js/issues/82 // TODO: Will be removed in antd 4.0 because we will no longer support ie9 if (typeof window !== 'undefined') { var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) { return { media: mediaQuery, matches: false, addListener: function addListener() {}, removeListener: function removeListener() {} }; }; // ref: https://github.com/ant-design/ant-design/issues/18774 if (!window.matchMedia) window.matchMedia = matchMediaPolyfill; } var dimensionMaxMap = { xs: '479.98px', sm: '575.98px', md: '767.98px', lg: '991.98px', xl: '1199.98px', xxl: '1599.98px' }; var SiderContext = (0, _createReactContext["default"])({}); exports.SiderContext = SiderContext; var generateId = function () { var i = 0; return function () { var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; i += 1; return "".concat(prefix).concat(i); }; }(); var InternalSider = /*#__PURE__*/ function (_React$Component) { _inherits(InternalSider, _React$Component); function InternalSider(props) { var _this; _classCallCheck(this, InternalSider); _this = _possibleConstructorReturn(this, _getPrototypeOf(InternalSider).call(this, props)); _this.responsiveHandler = function (mql) { _this.setState({ below: mql.matches }); var onBreakpoint = _this.props.onBreakpoint; if (onBreakpoint) { onBreakpoint(mql.matches); } if (_this.state.collapsed !== mql.matches) { _this.setCollapsed(mql.matches, 'responsive'); } }; _this.setCollapsed = function (collapsed, type) { if (!('collapsed' in _this.props)) { _this.setState({ collapsed: collapsed }); } var onCollapse = _this.props.onCollapse; if (onCollapse) { onCollapse(collapsed, type); } }; _this.toggle = function () { var collapsed = !_this.state.collapsed; _this.setCollapsed(collapsed, 'clickTrigger'); }; _this.belowShowChange = function () { _this.setState(function (_ref) { var belowShow = _ref.belowShow; return { belowShow: !belowShow }; }); }; _this.renderSider = function (_ref2) { var _classNames; var getPrefixCls = _ref2.getPrefixCls; var _a = _this.props, customizePrefixCls = _a.prefixCls, className = _a.className, theme = _a.theme, collapsible = _a.collapsible, reverseArrow = _a.reverseArrow, trigger = _a.trigger, style = _a.style, width = _a.width, collapsedWidth = _a.collapsedWidth, zeroWidthTriggerStyle = _a.zeroWidthTriggerStyle, others = __rest(_a, ["prefixCls", "className", "theme", "collapsible", "reverseArrow", "trigger", "style", "width", "collapsedWidth", "zeroWidthTriggerStyle"]); var prefixCls = getPrefixCls('layout-sider', customizePrefixCls); var divProps = (0, _omit["default"])(others, ['collapsed', 'defaultCollapsed', 'onCollapse', 'breakpoint', 'onBreakpoint', 'siderHook', 'zeroWidthTriggerStyle']); var rawWidth = _this.state.collapsed ? collapsedWidth : width; // use "px" as fallback unit for width var siderWidth = (0, _isNumeric["default"])(rawWidth) ? "".concat(rawWidth, "px") : String(rawWidth); // special trigger when collapsedWidth == 0 var zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? React.createElement("span", { onClick: _this.toggle, className: "".concat(prefixCls, "-zero-width-trigger ").concat(prefixCls, "-zero-width-trigger-").concat(reverseArrow ? 'right' : 'left'), style: zeroWidthTriggerStyle }, React.createElement(_icon["default"], { type: "bars" })) : null; var iconObj = { expanded: reverseArrow ? React.createElement(_icon["default"], { type: "right" }) : React.createElement(_icon["default"], { type: "left" }), collapsed: reverseArrow ? React.createElement(_icon["default"], { type: "left" }) : React.createElement(_icon["default"], { type: "right" }) }; var status = _this.state.collapsed ? 'collapsed' : 'expanded'; var defaultTrigger = iconObj[status]; var triggerDom = trigger !== null ? zeroWidthTrigger || React.createElement("div", { className: "".concat(prefixCls, "-trigger"), onClick: _this.toggle, style: { width: siderWidth } }, trigger || defaultTrigger) : null; var divStyle = _extends(_extends({}, style), { flex: "0 0 ".concat(siderWidth), maxWidth: siderWidth, minWidth: siderWidth, width: siderWidth }); var siderCls = (0, _classnames["default"])(className, prefixCls, "".concat(prefixCls, "-").concat(theme), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-collapsed"), !!_this.state.collapsed), _defineProperty(_classNames, "".concat(prefixCls, "-has-trigger"), collapsible && trigger !== null && !zeroWidthTrigger), _defineProperty(_classNames, "".concat(prefixCls, "-below"), !!_this.state.below), _defineProperty(_classNames, "".concat(prefixCls, "-zero-width"), parseFloat(siderWidth) === 0), _classNames)); return React.createElement("aside", _extends({ className: siderCls }, divProps, { style: divStyle }), React.createElement("div", { className: "".concat(prefixCls, "-children") }, _this.props.children), collapsible || _this.state.below && zeroWidthTrigger ? triggerDom : null); }; _this.uniqueId = generateId('ant-sider-'); var matchMedia; if (typeof window !== 'undefined') { matchMedia = window.matchMedia; } if (matchMedia && props.breakpoint && props.breakpoint in dimensionMaxMap) { _this.mql = matchMedia("(max-width: ".concat(dimensionMaxMap[props.breakpoint], ")")); } var collapsed; if ('collapsed' in props) { collapsed = props.collapsed; } else { collapsed = props.defaultCollapsed; } _this.state = { collapsed: collapsed, below: false }; return _this; } _createClass(InternalSider, [{ key: "componentDidMount", value: function componentDidMount() { if (this.mql) { this.mql.addListener(this.responsiveHandler); this.responsiveHandler(this.mql); } if (this.props.siderHook) { this.props.siderHook.addSider(this.uniqueId); } } }, { key: "componentWillUnmount", value: function componentWillUnmount() { if (this.mql) { this.mql.removeListener(this.responsiveHandler); } if (this.props.siderHook) { this.props.siderHook.removeSider(this.uniqueId); } } }, { key: "render", value: function render() { var collapsed = this.state.collapsed; var collapsedWidth = this.props.collapsedWidth; return React.createElement(SiderContext.Provider, { value: { siderCollapsed: collapsed, collapsedWidth: collapsedWidth } }, React.createElement(_configProvider.ConfigConsumer, null, this.renderSider)); } }], [{ key: "getDerivedStateFromProps", value: function getDerivedStateFromProps(nextProps) { if ('collapsed' in nextProps) { return { collapsed: nextProps.collapsed }; } return null; } }]); return InternalSider; }(React.Component); InternalSider.defaultProps = { collapsible: false, defaultCollapsed: false, reverseArrow: false, width: 200, collapsedWidth: 80, style: {}, theme: 'dark' }; (0, _reactLifecyclesCompat.polyfill)(InternalSider); // eslint-disable-next-line react/prefer-stateless-function var Sider = /*#__PURE__*/ function (_React$Component2) { _inherits(Sider, _React$Component2); function Sider() { _classCallCheck(this, Sider); return _possibleConstructorReturn(this, _getPrototypeOf(Sider).apply(this, arguments)); } _createClass(Sider, [{ key: "render", value: function render() { var _this2 = this; return React.createElement(_layout.LayoutContext.Consumer, null, function (context) { return React.createElement(InternalSider, _extends({}, context, _this2.props)); }); } }]); return Sider; }(React.Component); exports["default"] = Sider; //# sourceMappingURL=Sider.js.map /***/ }), /***/ 860: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Pagination__ = __webpack_require__(903); /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__Pagination__["a"]; }); /***/ }), /***/ 862: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcard(__webpack_require__(0)); var _rcMenu = _interopRequireWildcard(__webpack_require__(167)); var _classnames = _interopRequireDefault(__webpack_require__(3)); var _omit = _interopRequireDefault(__webpack_require__(43)); var _reactLifecyclesCompat = __webpack_require__(7); var _SubMenu = _interopRequireDefault(__webpack_require__(954)); var _MenuItem = _interopRequireDefault(__webpack_require__(955)); var _configProvider = __webpack_require__(9); var _warning = _interopRequireDefault(__webpack_require__(40)); var _Sider = __webpack_require__(857); var _raf = _interopRequireDefault(__webpack_require__(175)); var _motion = _interopRequireDefault(__webpack_require__(929)); var _MenuContext = _interopRequireDefault(__webpack_require__(838)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } var InternalMenu = /*#__PURE__*/ function (_React$Component) { _inherits(InternalMenu, _React$Component); function InternalMenu(props) { var _this; _classCallCheck(this, InternalMenu); _this = _possibleConstructorReturn(this, _getPrototypeOf(InternalMenu).call(this, props)); // Restore vertical mode when menu is collapsed responsively when mounted // https://github.com/ant-design/ant-design/issues/13104 // TODO: not a perfect solution, looking a new way to avoid setting switchingModeFromInline in this situation _this.handleMouseEnter = function (e) { _this.restoreModeVerticalFromInline(); var onMouseEnter = _this.props.onMouseEnter; if (onMouseEnter) { onMouseEnter(e); } }; _this.handleTransitionEnd = function (e) { // when inlineCollapsed menu width animation finished // https://github.com/ant-design/ant-design/issues/12864 var widthCollapsed = e.propertyName === 'width' && e.target === e.currentTarget; // Fix SVGElement e.target.className.indexOf is not a function // https://github.com/ant-design/ant-design/issues/15699 var className = e.target.className; // SVGAnimatedString.animVal should be identical to SVGAnimatedString.baseVal, unless during an animation. var classNameValue = Object.prototype.toString.call(className) === '[object SVGAnimatedString]' ? className.animVal : className; // Fix for , the width transition won't trigger when menu is collapsed // https://github.com/ant-design/ant-design-pro/issues/2783 var iconScaled = e.propertyName === 'font-size' && classNameValue.indexOf('anticon') >= 0; if (widthCollapsed || iconScaled) { _this.restoreModeVerticalFromInline(); } }; _this.handleClick = function (e) { _this.handleOpenChange([]); var onClick = _this.props.onClick; if (onClick) { onClick(e); } }; _this.handleOpenChange = function (openKeys) { _this.setOpenKeys(openKeys); var onOpenChange = _this.props.onOpenChange; if (onOpenChange) { onOpenChange(openKeys); } }; _this.renderMenu = function (_ref) { var getPopupContainer = _ref.getPopupContainer, getPrefixCls = _ref.getPrefixCls; var _this$props = _this.props, customizePrefixCls = _this$props.prefixCls, className = _this$props.className, theme = _this$props.theme, collapsedWidth = _this$props.collapsedWidth; var passProps = (0, _omit["default"])(_this.props, ['collapsedWidth', 'siderCollapsed']); var menuMode = _this.getRealMenuMode(); var menuOpenMotion = _this.getOpenMotionProps(menuMode); var prefixCls = getPrefixCls('menu', customizePrefixCls); var menuClassName = (0, _classnames["default"])(className, "".concat(prefixCls, "-").concat(theme), _defineProperty({}, "".concat(prefixCls, "-inline-collapsed"), _this.getInlineCollapsed())); var menuProps = _extends({ openKeys: _this.state.openKeys, onOpenChange: _this.handleOpenChange, className: menuClassName, mode: menuMode }, menuOpenMotion); if (menuMode !== 'inline') { // closing vertical popup submenu after click it menuProps.onClick = _this.handleClick; } // https://github.com/ant-design/ant-design/issues/8587 var hideMenu = _this.getInlineCollapsed() && (collapsedWidth === 0 || collapsedWidth === '0' || collapsedWidth === '0px'); if (hideMenu) { menuProps.openKeys = []; } return React.createElement(_rcMenu["default"], _extends({ getPopupContainer: getPopupContainer }, passProps, menuProps, { prefixCls: prefixCls, onTransitionEnd: _this.handleTransitionEnd, onMouseEnter: _this.handleMouseEnter })); }; (0, _warning["default"])(!('onOpen' in props || 'onClose' in props), 'Menu', '`onOpen` and `onClose` are removed, please use `onOpenChange` instead, ' + 'see: https://u.ant.design/menu-on-open-change.'); (0, _warning["default"])(!('inlineCollapsed' in props && props.mode !== 'inline'), 'Menu', '`inlineCollapsed` should only be used when `mode` is inline.'); (0, _warning["default"])(!(props.siderCollapsed !== undefined && 'inlineCollapsed' in props), 'Menu', '`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.'); var openKeys; if ('openKeys' in props) { openKeys = props.openKeys; } else if ('defaultOpenKeys' in props) { openKeys = props.defaultOpenKeys; } _this.state = { openKeys: openKeys || [], switchingModeFromInline: false, inlineOpenKeys: [], prevProps: props }; return _this; } _createClass(InternalMenu, [{ key: "componentWillUnmount", value: function componentWillUnmount() { _raf["default"].cancel(this.mountRafId); } }, { key: "setOpenKeys", value: function setOpenKeys(openKeys) { if (!('openKeys' in this.props)) { this.setState({ openKeys: openKeys }); } } }, { key: "getRealMenuMode", value: function getRealMenuMode() { var inlineCollapsed = this.getInlineCollapsed(); if (this.state.switchingModeFromInline && inlineCollapsed) { return 'inline'; } var mode = this.props.mode; return inlineCollapsed ? 'vertical' : mode; } }, { key: "getInlineCollapsed", value: function getInlineCollapsed() { var inlineCollapsed = this.props.inlineCollapsed; if (this.props.siderCollapsed !== undefined) { return this.props.siderCollapsed; } return inlineCollapsed; } }, { key: "getOpenMotionProps", value: function getOpenMotionProps(menuMode) { var _this$props2 = this.props, openTransitionName = _this$props2.openTransitionName, openAnimation = _this$props2.openAnimation, motion = _this$props2.motion; // Provides by user if (motion) { return { motion: motion }; } if (openAnimation) { (0, _warning["default"])(typeof openAnimation === 'string', 'Menu', '`openAnimation` do not support object. Please use `motion` instead.'); return { openAnimation: openAnimation }; } if (openTransitionName) { return { openTransitionName: openTransitionName }; } // Default logic if (menuMode === 'horizontal') { return { motion: { motionName: 'slide-up' } }; } if (menuMode === 'inline') { return { motion: _motion["default"] }; } // When mode switch from inline // submenu should hide without animation return { motion: { motionName: this.state.switchingModeFromInline ? '' : 'zoom-big' } }; } }, { key: "restoreModeVerticalFromInline", value: function restoreModeVerticalFromInline() { var switchingModeFromInline = this.state.switchingModeFromInline; if (switchingModeFromInline) { this.setState({ switchingModeFromInline: false }); } } }, { key: "render", value: function render() { return React.createElement(_MenuContext["default"].Provider, { value: { inlineCollapsed: this.getInlineCollapsed() || false, antdMenuTheme: this.props.theme } }, React.createElement(_configProvider.ConfigConsumer, null, this.renderMenu)); } }], [{ key: "getDerivedStateFromProps", value: function getDerivedStateFromProps(nextProps, prevState) { var prevProps = prevState.prevProps; var newState = { prevProps: nextProps }; if (prevProps.mode === 'inline' && nextProps.mode !== 'inline') { newState.switchingModeFromInline = true; } if ('openKeys' in nextProps) { newState.openKeys = nextProps.openKeys; } else { // [Legacy] Old code will return after `openKeys` changed. // Not sure the reason, we should keep this logic still. if (nextProps.inlineCollapsed && !prevProps.inlineCollapsed || nextProps.siderCollapsed && !prevProps.siderCollapsed) { newState.switchingModeFromInline = true; newState.inlineOpenKeys = prevState.openKeys; newState.openKeys = []; } if (!nextProps.inlineCollapsed && prevProps.inlineCollapsed || !nextProps.siderCollapsed && prevProps.siderCollapsed) { newState.openKeys = prevState.inlineOpenKeys; newState.inlineOpenKeys = []; } } return newState; } }]); return InternalMenu; }(React.Component); InternalMenu.defaultProps = { className: '', theme: 'light', focusable: false }; (0, _reactLifecyclesCompat.polyfill)(InternalMenu); // We should keep this as ref-able var Menu = /*#__PURE__*/ function (_React$Component2) { _inherits(Menu, _React$Component2); function Menu() { _classCallCheck(this, Menu); return _possibleConstructorReturn(this, _getPrototypeOf(Menu).apply(this, arguments)); } _createClass(Menu, [{ key: "render", value: function render() { var _this2 = this; return React.createElement(_Sider.SiderContext.Consumer, null, function (context) { return React.createElement(InternalMenu, _extends({}, _this2.props, context)); }); } }]); return Menu; }(React.Component); exports["default"] = Menu; Menu.Divider = _rcMenu.Divider; Menu.Item = _MenuItem["default"]; Menu.SubMenu = _SubMenu["default"]; Menu.ItemGroup = _rcMenu.ItemGroup; //# sourceMappingURL=index.js.map /***/ }), /***/ 863: /***/ (function(module, exports, __webpack_require__) { var baseToString = __webpack_require__(864); /** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to convert. * @returns {string} Returns the converted string. * @example * * _.toString(null); * // => '' * * _.toString(-0); * // => '-0' * * _.toString([1, 2, 3]); * // => '1,2,3' */ function toString(value) { return value == null ? '' : baseToString(value); } module.exports = toString; /***/ }), /***/ 864: /***/ (function(module, exports, __webpack_require__) { var Symbol = __webpack_require__(171), arrayMap = __webpack_require__(891), isArray = __webpack_require__(815), isSymbol = __webpack_require__(299); /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0; /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, symbolToString = symbolProto ? symbolProto.toString : undefined; /** * The base implementation of `_.toString` which doesn't convert nullish * values to empty strings. * * @private * @param {*} value The value to process. * @returns {string} Returns the string. */ function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { return value; } if (isArray(value)) { // Recursively convert values (susceptible to call stack limits). return arrayMap(value, baseToString) + ''; } if (isSymbol(value)) { return symbolToString ? symbolToString.call(value) : ''; } var result = (value + ''); return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; } module.exports = baseToString; /***/ }), /***/ 865: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var React = _interopRequireWildcard(__webpack_require__(0)); var _rcDropdown = _interopRequireDefault(__webpack_require__(1038)); var _classnames = _interopRequireDefault(__webpack_require__(3)); var _configProvider = __webpack_require__(9); var _warning = _interopRequireDefault(__webpack_require__(40)); var _icon = _interopRequireDefault(__webpack_require__(25)); var _type = __webpack_require__(69); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } var Placements = (0, _type.tuple)('topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight'); var Dropdown = /*#__PURE__*/ function (_React$Component) { _inherits(Dropdown, _React$Component); function Dropdown() { var _this; _classCallCheck(this, Dropdown); _this = _possibleConstructorReturn(this, _getPrototypeOf(Dropdown).apply(this, arguments)); _this.renderOverlay = function (prefixCls) { // rc-dropdown already can process the function of overlay, but we have check logic here. // So we need render the element to check and pass back to rc-dropdown. var overlay = _this.props.overlay; var overlayNode; if (typeof overlay === 'function') { overlayNode = overlay(); } else { overlayNode = overlay; } overlayNode = React.Children.only(overlayNode); var overlayProps = overlayNode.props; // Warning if use other mode (0, _warning["default"])(!overlayProps.mode || overlayProps.mode === 'vertical', 'Dropdown', "mode=\"".concat(overlayProps.mode, "\" is not supported for Dropdown's Menu.")); // menu cannot be selectable in dropdown defaultly // menu should be focusable in dropdown defaultly var _overlayProps$selecta = overlayProps.selectable, selectable = _overlayProps$selecta === void 0 ? false : _overlayProps$selecta, _overlayProps$focusab = overlayProps.focusable, focusable = _overlayProps$focusab === void 0 ? true : _overlayProps$focusab; var expandIcon = React.createElement("span", { className: "".concat(prefixCls, "-menu-submenu-arrow") }, React.createElement(_icon["default"], { type: "right", className: "".concat(prefixCls, "-menu-submenu-arrow-icon") })); var fixedModeOverlay = typeof overlayNode.type === 'string' ? overlay : React.cloneElement(overlayNode, { mode: 'vertical', selectable: selectable, focusable: focusable, expandIcon: expandIcon }); return fixedModeOverlay; }; _this.renderDropDown = function (_ref) { var getContextPopupContainer = _ref.getPopupContainer, getPrefixCls = _ref.getPrefixCls; var _this$props = _this.props, customizePrefixCls = _this$props.prefixCls, children = _this$props.children, trigger = _this$props.trigger, disabled = _this$props.disabled, getPopupContainer = _this$props.getPopupContainer; var prefixCls = getPrefixCls('dropdown', customizePrefixCls); var child = React.Children.only(children); var dropdownTrigger = React.cloneElement(child, { className: (0, _classnames["default"])(child.props.className, "".concat(prefixCls, "-trigger")), disabled: disabled }); var triggerActions = disabled ? [] : trigger; var alignPoint; if (triggerActions && triggerActions.indexOf('contextMenu') !== -1) { alignPoint = true; } return React.createElement(_rcDropdown["default"], _extends({ alignPoint: alignPoint }, _this.props, { prefixCls: prefixCls, getPopupContainer: getPopupContainer || getContextPopupContainer, transitionName: _this.getTransitionName(), trigger: triggerActions, overlay: function overlay() { return _this.renderOverlay(prefixCls); } }), dropdownTrigger); }; return _this; } _createClass(Dropdown, [{ key: "getTransitionName", value: function getTransitionName() { var _this$props2 = this.props, _this$props2$placemen = _this$props2.placement, placement = _this$props2$placemen === void 0 ? '' : _this$props2$placemen, transitionName = _this$props2.transitionName; if (transitionName !== undefined) { return transitionName; } if (placement.indexOf('top') >= 0) { return 'slide-down'; } return 'slide-up'; } }, { key: "render", value: function render() { return React.createElement(_configProvider.ConfigConsumer, null, this.renderDropDown); } }]); return Dropdown; }(React.Component); exports["default"] = Dropdown; Dropdown.defaultProps = { mouseEnterDelay: 0.15, mouseLeaveDelay: 0.1, placement: 'bottomLeft' }; //# sourceMappingURL=dropdown.js.map /***/ }), /***/ 866: /***/ (function(module, exports) { /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear() { this.__data__ = []; this.size = 0; } module.exports = listCacheClear; /***/ }), /***/ 867: /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(817); /** Used for built-in method references. */ var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete(key) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { return false; } var lastIndex = data.length - 1; if (index == lastIndex) { data.pop(); } else { splice.call(data, index, 1); } --this.size; return true; } module.exports = listCacheDelete; /***/ }), /***/ 868: /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(817); /** * Gets the list cache value for `key`. * * @private * @name get * @memberOf ListCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function listCacheGet(key) { var data = this.__data__, index = assocIndexOf(data, key); return index < 0 ? undefined : data[index][1]; } module.exports = listCacheGet; /***/ }), /***/ 869: /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(817); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } module.exports = listCacheHas; /***/ }), /***/ 870: /***/ (function(module, exports, __webpack_require__) { var assocIndexOf = __webpack_require__(817); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else { data[index][1] = value; } return this; } module.exports = listCacheSet; /***/ }), /***/ 871: /***/ (function(module, exports, __webpack_require__) { var isFunction = __webpack_require__(831), isMasked = __webpack_require__(872), isObject = __webpack_require__(163), toSource = __webpack_require__(844); /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** Used to detect if a method is native. */ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' ); /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { return false; } var pattern = isFunction(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource(value)); } module.exports = baseIsNative; /***/ }), /***/ 872: /***/ (function(module, exports, __webpack_require__) { var coreJsData = __webpack_require__(873); /** Used to detect methods masquerading as native. */ var maskSrcKey = (function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); return uid ? ('Symbol(src)_1.' + uid) : ''; }()); /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { return !!maskSrcKey && (maskSrcKey in func); } module.exports = isMasked; /***/ }), /***/ 873: /***/ (function(module, exports, __webpack_require__) { var root = __webpack_require__(162); /** Used to detect overreaching core-js shims. */ var coreJsData = root['__core-js_shared__']; module.exports = coreJsData; /***/ }), /***/ 874: /***/ (function(module, exports) { /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue(object, key) { return object == null ? undefined : object[key]; } module.exports = getValue; /***/ }), /***/ 875: /***/ (function(module, exports, __webpack_require__) { var Hash = __webpack_require__(876), ListCache = __webpack_require__(822), Map = __webpack_require__(829); /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear() { this.size = 0; this.__data__ = { 'hash': new Hash, 'map': new (Map || ListCache), 'string': new Hash }; } module.exports = mapCacheClear; /***/ }), /***/ 876: /***/ (function(module, exports, __webpack_require__) { var hashClear = __webpack_require__(877), hashDelete = __webpack_require__(878), hashGet = __webpack_require__(879), hashHas = __webpack_require__(880), hashSet = __webpack_require__(881); /** * Creates a hash object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Hash(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } // Add methods to `Hash`. Hash.prototype.clear = hashClear; Hash.prototype['delete'] = hashDelete; Hash.prototype.get = hashGet; Hash.prototype.has = hashHas; Hash.prototype.set = hashSet; module.exports = Hash; /***/ }), /***/ 877: /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(818); /** * Removes all key-value entries from the hash. * * @private * @name clear * @memberOf Hash */ function hashClear() { this.__data__ = nativeCreate ? nativeCreate(null) : {}; this.size = 0; } module.exports = hashClear; /***/ }), /***/ 878: /***/ (function(module, exports) { /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } module.exports = hashDelete; /***/ }), /***/ 879: /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(818); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Gets the hash value for `key`. * * @private * @name get * @memberOf Hash * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function hashGet(key) { var data = this.__data__; if (nativeCreate) { var result = data[key]; return result === HASH_UNDEFINED ? undefined : result; } return hasOwnProperty.call(data, key) ? data[key] : undefined; } module.exports = hashGet; /***/ }), /***/ 880: /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(818); /** Used for built-in method references. */ var objectProto = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty = objectProto.hasOwnProperty; /** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { var data = this.__data__; return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key); } module.exports = hashHas; /***/ }), /***/ 881: /***/ (function(module, exports, __webpack_require__) { var nativeCreate = __webpack_require__(818); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** * Sets the hash `key` to `value`. * * @private * @name set * @memberOf Hash * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; return this; } module.exports = hashSet; /***/ }), /***/ 882: /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(819); /** * Removes `key` and its value from the map. * * @private * @name delete * @memberOf MapCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { var result = getMapData(this, key)['delete'](key); this.size -= result ? 1 : 0; return result; } module.exports = mapCacheDelete; /***/ }), /***/ 883: /***/ (function(module, exports) { /** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { var type = typeof value; return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') ? (value !== '__proto__') : (value === null); } module.exports = isKeyable; /***/ }), /***/ 884: /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(819); /** * Gets the map value for `key`. * * @private * @name get * @memberOf MapCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function mapCacheGet(key) { return getMapData(this, key).get(key); } module.exports = mapCacheGet; /***/ }), /***/ 885: /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(819); /** * Checks if a map value for `key` exists. * * @private * @name has * @memberOf MapCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { return getMapData(this, key).has(key); } module.exports = mapCacheHas; /***/ }), /***/ 886: /***/ (function(module, exports, __webpack_require__) { var getMapData = __webpack_require__(819); /** * Sets the map `key` to `value`. * * @private * @name set * @memberOf MapCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } module.exports = mapCacheSet; /***/ }), /***/ 887: /***/ (function(module, exports, __webpack_require__) { var baseGetTag = __webpack_require__(297), isObjectLike = __webpack_require__(296); /** `Object#toString` result references. */ var argsTag = '[object Arguments]'; /** * The base implementation of `_.isArguments`. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an `arguments` object, */ function baseIsArguments(value) { return isObjectLike(value) && baseGetTag(value) == argsTag; } module.exports = baseIsArguments; /***/ }), /***/ 888: /***/ (function(module, exports, __webpack_require__) { var memoizeCapped = __webpack_require__(889); /** Used to match property names within property paths. */ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** Used to match backslashes in property paths. */ var reEscapeChar = /\\(\\)?/g; /** * Converts `string` to a property path array. * * @private * @param {string} string The string to convert. * @returns {Array} Returns the property path array. */ var stringToPath = memoizeCapped(function(string) { var result = []; if (string.charCodeAt(0) === 46 /* . */) { result.push(''); } string.replace(rePropName, function(match, number, quote, subString) { result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match)); }); return result; }); module.exports = stringToPath; /***/ }), /***/ 889: /***/ (function(module, exports, __webpack_require__) { var memoize = __webpack_require__(890); /** Used as the maximum memoize cache size. */ var MAX_MEMOIZE_SIZE = 500; /** * A specialized version of `_.memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private * @param {Function} func The function to have its output memoized. * @returns {Function} Returns the new memoized function. */ function memoizeCapped(func) { var result = memoize(func, function(key) { if (cache.size === MAX_MEMOIZE_SIZE) { cache.clear(); } return key; }); var cache = result.cache; return result; } module.exports = memoizeCapped; /***/ }), /***/ 890: /***/ (function(module, exports, __webpack_require__) { var MapCache = __webpack_require__(830); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the * arguments provided to the memoized function. By default, the first argument * provided to the memoized function is used as the map cache key. The `func` * is invoked with the `this` binding of the memoized function. * * **Note:** The cache is exposed as the `cache` property on the memoized * function. Its creation may be customized by replacing the `_.memoize.Cache` * constructor with one whose instances implement the * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object) * method interface of `clear`, `delete`, `get`, `has`, and `set`. * * @static * @memberOf _ * @since 0.1.0 * @category Function * @param {Function} func The function to have its output memoized. * @param {Function} [resolver] The function to resolve the cache key. * @returns {Function} Returns the new memoized function. * @example * * var object = { 'a': 1, 'b': 2 }; * var other = { 'c': 3, 'd': 4 }; * * var values = _.memoize(_.values); * values(object); * // => [1, 2] * * values(other); * // => [3, 4] * * object.a = 2; * values(object); * // => [1, 2] * * // Modify the result cache. * values.cache.set(object, ['a', 'b']); * values(object); * // => ['a', 'b'] * * // Replace `_.memoize.Cache`. * _.memoize.Cache = WeakMap; */ function memoize(func, resolver) { if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) { throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function() { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; if (cache.has(key)) { return cache.get(key); } var result = func.apply(this, args); memoized.cache = cache.set(key, result) || cache; return result; }; memoized.cache = new (memoize.Cache || MapCache); return memoized; } // Expose `MapCache`. memoize.Cache = MapCache; module.exports = memoize; /***/ }), /***/ 891: /***/ (function(module, exports) { /** * A specialized version of `_.map` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} iteratee The function invoked per iteration. * @returns {Array} Returns the new mapped array. */ function arrayMap(array, iteratee) { var index = -1, length = array == null ? 0 : array.length, result = Array(length); while (++index < length) { result[index] = iteratee(array[index], index, array); } return result; } module.exports = arrayMap; /***/ }), /***/ 894: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(process, global) {/* unused harmony export LANGUAGE_DEFAULT */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return isWindows; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isMacintosh; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isLinux; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isNative; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isWeb; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return globals; }); /* harmony export (immutable) */ __webpack_exports__["h"] = setImmediate; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return OS; }); /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ var LANGUAGE_DEFAULT = 'en'; var _isWindows = false; var _isMacintosh = false; var _isLinux = false; var _isNative = false; var _isWeb = false; var _locale = undefined; var _language = LANGUAGE_DEFAULT; var _translationsConfigFile = undefined; var isElectronRenderer = (typeof process !== 'undefined' && typeof process.versions !== 'undefined' && typeof process.versions.electron !== 'undefined' && process.type === 'renderer'); // OS detection if (typeof navigator === 'object' && !isElectronRenderer) { var userAgent = navigator.userAgent; _isWindows = userAgent.indexOf('Windows') >= 0; _isMacintosh = userAgent.indexOf('Macintosh') >= 0; _isLinux = userAgent.indexOf('Linux') >= 0; _isWeb = true; _locale = navigator.language; _language = _locale; } else if (typeof process === 'object') { _isWindows = (process.platform === 'win32'); _isMacintosh = (process.platform === 'darwin'); _isLinux = (process.platform === 'linux'); _locale = LANGUAGE_DEFAULT; _language = LANGUAGE_DEFAULT; var rawNlsConfig = Object({"NODE_ENV":"production","PUBLIC_URL":"/react/build/."})['VSCODE_NLS_CONFIG']; if (rawNlsConfig) { try { var nlsConfig = JSON.parse(rawNlsConfig); var resolved = nlsConfig.availableLanguages['*']; _locale = nlsConfig.locale; // VSCode's default language is 'en' _language = resolved ? resolved : LANGUAGE_DEFAULT; _translationsConfigFile = nlsConfig._translationsConfigFile; } catch (e) { } } _isNative = true; } var _platform = 0 /* Web */; if (_isNative) { if (_isMacintosh) { _platform = 1 /* Mac */; } else if (_isWindows) { _platform = 3 /* Windows */; } else if (_isLinux) { _platform = 2 /* Linux */; } } var isWindows = _isWindows; var isMacintosh = _isMacintosh; var isLinux = _isLinux; var isNative = _isNative; var isWeb = _isWeb; var _globals = (typeof self === 'object' ? self : typeof global === 'object' ? global : {}); var globals = _globals; var _setImmediate = null; function setImmediate(callback) { if (_setImmediate === null) { if (globals.setImmediate) { _setImmediate = globals.setImmediate.bind(globals); } else if (typeof process !== 'undefined' && typeof process.nextTick === 'function') { _setImmediate = process.nextTick.bind(process); } else { _setImmediate = globals.setTimeout.bind(globals); } } return _setImmediate(callback); } var OS = (_isMacintosh ? 2 /* Macintosh */ : (_isWindows ? 1 /* Windows */ : 3 /* Linux */)); /* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(110), __webpack_require__(34))) /***/ }), /***/ 895: /***/ (function(module, exports, __webpack_require__) { var ListCache = __webpack_require__(822), stackClear = __webpack_require__(940), stackDelete = __webpack_require__(941), stackGet = __webpack_require__(942), stackHas = __webpack_require__(943), stackSet = __webpack_require__(944); /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } // Add methods to `Stack`. Stack.prototype.clear = stackClear; Stack.prototype['delete'] = stackDelete; Stack.prototype.get = stackGet; Stack.prototype.has = stackHas; Stack.prototype.set = stackSet; module.exports = Stack; /***/ }), /***/ 901: /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a