diff --git a/biz/webui/htdocs/js/index.js b/biz/webui/htdocs/js/index.js index cbbc8e1a3..aa4aff5b6 100644 --- a/biz/webui/htdocs/js/index.js +++ b/biz/webui/htdocs/js/index.js @@ -1,6 +1,6 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){function r(e){if(/\.json$/i.test(e.name)&&O.test(e.value))try{JSON.parse(e.value)}catch(t){Q.warn("Warning: the value of "+e.name+" can`t be parsed into json. "+t.message)}}function o(e,t){e=JSON.stringify(e);var n=new FormData,r=new File([e],"data.json",{type:"application/json"});return n.append(t||"rules",r),n}function i(e){return e=e.trim(),e?/^https?:\/\/[^/]/i.test(e)?e:void Q.error("Please input the correct url."):void Q.error("The url cannot be empty.")}function a(e){return function(t,n){if(!t)return E.showSystemError(n),e(!0);if(0!==t.ec)return Q.error(t.em),e(!0);try{if(t=t.body&&JSON.parse(t.body),t&&Object.keys(t).length)return e(!1,t);Q.info("No body data.")}catch(r){Q.error(r.message)}e(!0)}}function s(e){e.stopPropagation()}function l(e){if(e.networkMode)return"network";var t=location.hash.substring(1);return t=t?t.replace(/[?#].*$/,""):location.href.replace(/[?#].*$/,"").replace(/.*\//,""),e.rulesMode?"network"===t?"rules":t:e.pluginsMode&&"plugins"!==t?"network":t}function c(e,t){var n,r=e.length;for(n=0;r>n;n++)if(-1===h.inArray(e[n],t))return!1;var o=t.length;if(r!==o)for(n=0;o>n;n++)if(-1===h.inArray(t[n],e))return!1;return!0}function u(e){if(0==e.indexOf("{")){var t=e.lastIndexOf("}");return t>1&&e.substring(1,t)}return!1}function d(e){if(0==e.indexOf("(")){var t=e.lastIndexOf(")");return-1!=t&&e.substring(1,t)||""}return!1}var p=Object.assign||function(e){for(var t=1;tn?1:-1)}).forEach(function(n){var r=e[n];t.push({name:n.slice(0,-1),icon:"checkbox",mtime:r.mtime,homepage:r.homepage,latest:r.latest,hideLongProtocol:r.hideLongProtocol,hideShortProtocol:r.hideShortProtocol})}),t},reloadRules:function(e){var t=this,n=S.get("activeRules",!0)||e.current,r=[],o={};r.push(H),o.Default={name:H,fixed:!0,value:e.defaultRules,selected:!e.defaultRulesIsDisabled,isDefault:!0,active:n===H},e.list.forEach(function(e){r.push(e.name),e=o[e.name]={name:e.name,value:e.data,selected:e.selected,active:n===e.name}}),t.state.rules.reset(r,o),t.setState({})},reloadValues:function(e){var t=this,n=S.get("activeValues",!0)||e.current,r=[],o={};e.list.forEach(function(e){r.push(e.name),o[e.name]={name:e.name,value:e.data,active:n===e.name}}),t.state.values.reset(r,o),t.setState({})},reloadData:function(){var e=this,t=h(".w-reload-data-tips").closest(".w-confirm-reload-dialog"),n=t.find(".w-reload-data-tips").attr("data-name"),r="rules"===n,o=function(t,n){return t?void(r?(e.reloadRules(t),e.triggerRulesChange("reload")):(e.reloadValues(t),e.triggerValuesChange("reload"))):void E.showSystemError(n)};r?I.rules.list(o):I.values.list(o)},showReloadRules:function(){if("rules"===this.state.name&&this.rulesChanged){this.rulesChanged=!1;var e=this.state.rules.hasChanged();this.showReloadDialog("The rules has been modified.
Do you want to reload it.",e)}},showReloadValues:function(){if("values"===this.state.name&&this.valuesChanged){this.valuesChanged=!1;var e=this.state.values.hasChanged();this.showReloadDialog("The values has been modified.
Do you want to reload it.",e)}},componentDidUpdate:function(){this.showReloadRules(),this.showReloadValues()},showReloadDialog:function(e,t){var n=this.refs.confirmReload;n.show(),t&&(e+='

Note: There are unsaved changes.

'),h(".w-reload-data-tips").html(e).attr("data-name",this.state.name)},componentDidMount:function(){function e(e){if(e=e&&e.trim()){var t=e.indexOf("://")+3;if(e=-1!=t?e.substring(t):e,0===e.indexOf("{"))return t=e.lastIndexOf("}"),t>1?e.substring(1,t):null}}var t=this,n=new m(".w-copy-text");n.on("error",function(e){alert("Copy failed.")}),n=new m(".w-copy-text-with-tips"),n.on("error",function(e){Q.error("Copy failed.")}),n.on("success",function(e){Q.success("Copied clipboard.")});var r=function(e){e.preventDefault()};L.on("rulesChanged",function(){t.rulesChanged=!0,t.showReloadRules()}),L.on("updateGlobal",function(){t.setState({})}),L.on("valuesChanged",function(){t.valuesChanged=!0,t.showReloadValues()}),L.on("disableAllPlugins",function(e){t.disableAllPlugins(e)}),L.on("showFiles",function(e,n){t.files=t.files||n,t.showFiles()}),L.on("activeRules",function(){var e=I.rulesModal;e.exists(I.activeRulesName)&&(t.setRulesActive(I.activeRulesName,e),t.setState({}))}),L.on("activeValues",function(){var e=I.valuesModal;e.exists(I.activeValuesName)&&(t.setValuesActive(I.activeValuesName,e),t.setState({}))}),h(document).on("dragleave",r).on("dragenter",r).on("dragover",r).on("drop",function(e){e.preventDefault();var n=e.originalEvent.dataTransfer.files,r=n&&n[0];if(r){if(h(".w-files-dialog.in").length)return L.trigger("uploadFile",r);var o,i=t.state.name,a=h(e.target);if("network"===i){if(a.closest(".w-frames-composer").length)return;if(/\.log$/i.test(r.name))return r.size>Y?alert("The file size cannot exceed 2m."):void E.readFileAsText(r,function(e){e=E.parseLogs(e),e&&(null!==I.uploadLogs&&(I.uploadLogs=e),L.trigger("showLog"),L.trigger("uploadLogs",{logs:e}))});o=new FormData,o.append("importSessions",n[0]),t.uploadSessionsForm(o)}a.closest(".w-divider-left").length&&("rules"===i?(o=new FormData,o.append("rules",n[0]),t.rulesForm=o,t.refs.confirmImportRules.show()):"values"===i&&(o=new FormData,o.append("values",n[0]),t.valuesForm=o,t.refs.confirmImportValues.show()))}}).on("keydown",function(e){(e.metaKey||e.ctrlKey)&&82===e.keyCode&&e.preventDefault()});var i=function(e){var n=e.target;"A"==n.nodeName&&h(n).parent().hasClass("w-list-data")&&("rules"==t.state.name?t.removeRules():t.removeValues()),e.preventDefault()};h(window).on("hashchange",function(){var e=l(t.state);e&&-1==e.indexOf("rules")?-1!=e.indexOf("values")?t.showValues():-1!=e.indexOf("plugins")?t.showPlugins():t.showNetwork():t.showRules()}).on("keyup",function(e){if(27==e.keyCode){t.setMenuOptionsState();var n=h(".modal");"function"==typeof n.modal&&n.modal("hide")}}).on("keydown",function(e){if(46==e.keyCode&&i(e),!e.ctrlKey&&!e.metaKey)return void(112===e.keyCode?(e.preventDefault(),window.open("https://avwo.github.io/whistle/webui/"+t.state.name+".html")):116===e.keyCode&&e.preventDefault());77===e.keyCode&&t.toggleLeftMenu();var n="network"===t.state.name;n&&88==e.keyCode&&(E.isFocusEditor()||h(e.target).closest(".w-frames-list").length||t.clear()),68==e.keyCode&&i(e);var r=t.state.network;if(n&&83===e.keyCode){if(e.preventDefault(),h(".modal.in").length)return void(h(f.findDOMNode(t.refs.chooseFileType)).is(":visible")&&t.exportBySave());var o=e.target.nodeName;if("INPUT"===o||"TEXTAREA"===o)return;var a=r&&r.hasSelected();return void(a&&(h(f.findDOMNode(t.refs.chooseFileType)).modal("show"),setTimeout(function(){f.findDOMNode(t.refs.sessionsName).focus()},500)))}n&&73===e.keyCode&&(t.importSessions(e),e.preventDefault())});var a=function(){var e=t.state.name;return"rules"===e||"values"===e};h(document.body).on("mouseenter",W,function(t){if(a()&&(t.ctrlKey||t.metaKey)){var n=h(this);(n.hasClass("cm-js-http-url")||n.hasClass("cm-string")||n.hasClass("cm-js-at")||e(n.text()))&&n.addClass("w-is-link")}}).on("mouseleave",W,function(e){h(this).removeClass("w-is-link")}).on("mousedown",W,function(n){if(a()&&(n.ctrlKey||n.metaKey)){var r=h(this),o=r.text();if(r.hasClass("cm-js-at"))return void(_.test(o)&&window.open((RegExp.$1||"http:")+RegExp.$2));if(r.hasClass("cm-string"))return void(X.test(o)&&window.open((RegExp.$1||"http:")+RegExp.$2));if(r.hasClass("cm-js-http-url"))return/^https?:\/\//i.test(o)||(o="http:"+("/"===o[0]?"":"//")+o),void window.open(o);var i=e(o);return i?void t.showAndActiveValues({name:i}):void 0}}),"network"==t.state.name&&t.startLoadData(),I.on("settings",function(e){var n=t.state,r=e.server;(n.interceptHttpsConnects!==e.interceptHttpsConnects||n.enableHttp2!==e.enableHttp2||n.disabledAllRules!==e.disabledAllRules||n.allowMultipleChoice!==e.allowMultipleChoice||n.disabledAllPlugins!==e.disabledAllPlugins||n.multiEnv!=r.multiEnv||n.classic!=e.classic||n.ndp!=r.ndp||n.ndr!=r.ndr)&&(n.interceptHttpsConnects=e.interceptHttpsConnects,n.enableHttp2=e.enableHttp2,n.disabledAllRules=e.disabledAllRules,n.allowMultipleChoice=e.allowMultipleChoice,n.disabledAllPlugins=e.disabledAllPlugins,n.multiEnv=r.multiEnv,n.ndp=r.ndp,n.ndr=r.ndr,n.classic=e.classic,D.setPlugins(n),t.setState({}))}),I.on("rules",function(e){var n=t.state.rules,r=e.list;e.defaultRulesIsDisabled||-1!==r.indexOf("Default")||r.unshift("Default");var o=n.getSelectedNames();c(o,r)||(t.reselectRules(e,!0),t.setState({}))}),I.on("serverInfo",function(e){t.serverInfo=e}),L.on("executeComposer",function(){t.autoRefresh&&t.autoRefresh()});var s=function(e){return e&&!e.selected?[e]:void 0};L.on("updateUI",function(){t.setState({})}),L.on("replaySessions",function(e,n,r){var o=t.state.network,i=s(n)||o&&o.getSelectedList(),a=i&&i.length;return r&&1===a?(t.replayList=i,t.refs.setReplayCount.show(),void setTimeout(function(){var e=f.findDOMNode(t.refs.replayCount);e.select(),e.focus()},300)):void t.replay(e,i)}),L.on("importSessions",t.importSessions),L.on("filterSessions",t.showSettings),L.on("exportSessions",function(e,n){t.exportData(e,s(n))}),L.on("abortRequest",function(e,n){t.abort(s(n))}),L.on("uploadSessions",function(e,n){var r=s(n&&n.curItem),o=n&&n.upload;if("function"==typeof o){if(!r){var i=t.state.network;r=i&&i.getSelectedList(),r&&r.length&&(r=h.extend(!0,[],r))}r&&o(r)}}),L.on("removeIt",function(e,n){var r=t.state.network;n&&r&&(r.remove(n),t.setState({}))}),L.on("removeOthers",function(e,n){var r=t.state.network;n&&r&&(n.selected?r.removeUnselectedItems():r.removeOthers(n),t.setState({}))}),L.on("clearAll",t.clear),L.on("removeSelected",function(){var e=t.state.network;e&&(e.removeSelectedItems(),t.setState({}))}),L.on("removeUnselected",function(){var e=t.state.network;e&&(e.removeUnselectedItems(),t.setState({}))}),L.on("removeUnmarked",function(){var e=t.state.network;e&&(e.removeUnmarkedItems(),t.setState({}))}),L.on("saveRules",function(e,n){n.changed||!n.selected?t.selectRules(n):t.unselectRules(n)}),L.on("saveValues",function(e,n){t.saveValues(n)}),L.on("renameRules",function(e,n){t.showEditRules(n)}),L.on("renameValues",function(e,n){t.showEditValues(n)}),L.on("deleteRules",function(e,n){setTimeout(function(){t.removeRules(n)},0)}),L.on("deleteValues",function(e,n){setTimeout(function(){t.removeValues(n)},0)}),L.on("createRules",t.showCreateRules),L.on("createValues",t.showCreateValues),L.on("createRuleGroup",t.showCreateRuleGroup),L.on("createValueGroup",t.showCreateValueGroup),L.on("exportRules",t.exportData),L.on("exportValues",t.exportData),L.on("importRules",t.importRules),L.on("importValues",t.importValues),L.on("uploadRules",function(e,n){var r=o(n);r.append("replaceAll","1"),t._uploadRules(r,!0)}),L.on("uploadValues",function(e,n){var r=o(n,"values");r.append("replaceAll","1"),t._uploadValues(r,!0)});var u;h(document).on("visibilitychange",function(){clearTimeout(u),document.hidden||(u=setTimeout(function(){var e=t.scrollerAtBottom&&t.scrollerAtBottom();t.setState({},function(){e&&t.autoRefresh()})},100))}),setTimeout(function(){I.checkUpdate(function(e){e&&e.showUpdate&&t.setState({version:e.version,latestVersion:e.latestVersion},function(){h(f.findDOMNode(t.refs.showUpdateTipsDialog)).modal("show")})})},1e4),I.getLogIdList=this.getLogIdListFromRules,I.importAnySessions=t.importAnySessions,I.on("plugins",function(e){var n=t.createPluginsOptions(e.plugins),r=t.state.pluginsOptions,o=t.state.disabledPlugins,i=e.disabledPlugins;if(n.length==r.length){for(var a,s=0,l=n.length;l>s;s++){var c=n[s],u=r[s];if(c.name!=u.name||c.latest!==u.latest||c.mtime!=u.mtime||o[c.name]!=i[c.name]||c.hideLongProtocol!=u.hideLongProtocol||c.hideShortProtocol!=u.hideShortProtocol){a=!0;break}}if(!a)return}var d={plugins:e.plugins,disabledPlugins:e.disabledPlugins,pluginsOptions:n};D.setPlugins(d),t.setState(d)});try{var d=window.parent.onWhistleReady;"function"==typeof d&&d({url:location.href,importSessions:t.importAnySessions,importHarSessions:t.importHarSessions,clearSessions:t.clear})}catch(p){}},importAnySessions:function(e){e&&(Array.isArray(e)?I.addNetworkList(e):this.importHarSessions(e))},donotShowAgain:function(){I.donotShowAgain()},hideUpdateTipsDialog:function(){h(f.findDOMNode(this.refs.showUpdateTipsDialog)).modal("hide")},getAllRulesText:function(){var e=" "+this.getAllRulesValue();return e.replace(/#[^\r\n]*[\r\n]/g,"\n")},getLogIdListFromRules:function(){var e=this.getAllRulesText();if(e=e.match(/\slog:\/\/(?:\{[^\s]{1,36}\}|[^/\\{}()<>\s]{1,36})\s/g)){var t={};e=e.map(function(e){return e=E.removeProtocol(e.trim()),"{"===e[0]&&(e=e.slice(1,-1)),e}).filter(function(e){return e?t[e]?!1:(t[e]=1,!0):!1})}return e},getWeinreFromRules:function(){var e=this.state.values,t=this.getAllRulesText();if(t=t.match(/\sweinre:\/\/[^\s#]+\s/g)){var n={};t=t.map(function(t){t=E.removeProtocol(t.trim());var n=d(t);if(n!==!1)return n;var r=u(t);return r!==!1?(r=e.get(r),r&&r.value):t}).filter(function(e){return e?n[e]?!1:(n[e]=1,!0):!1})}return t},getValuesFromRules:function(){var e=" "+this.getAllRulesValue();return(e=e.match(/\s(?:[\w-]+:\/\/)?\{[^\s#]+\}/g))&&(e=e.map(function(e){return u(E.removeProtocol(e.trim()))}).filter(function(e){return!!e})),e},getAllRulesValue:function(){var e=[],t=[],n=[],r=this.state.rules;return r.list.forEach(function(o){var i=r.get(o),a=i.value||"";i.active?t.push(a):i.selected?n.push(a):e.push(a)}),r=this.state.values,r.list.forEach(function(t){/\.rules$/.test(t)&&e.push(r.get(t).value)}),t.concat(n).concat(e).join("\r\n")},preventBlur:function(e){"INPUT"!=e.target.nodeName&&e.preventDefault()},startLoadData:function(){function e(o,a){o=o||r.state.network,clearTimeout(i),i=null,"network"==r.state.name&&o&&(a=a||n(),o.update(a)&&a&&(i=setTimeout(e,3e3)),document.hidden||r.setState({network:o},function(){a&&t()}))}function t(){s.scrollTop=1e7}function n(){var e=a.find(".ReactVirtualized__Grid__innerScrollContainer")[0];return e?s.scrollTop+s.offsetHeight+5>e.offsetHeight:!0}var r=this;if(r._updateNetwork)return void r._updateNetwork();var o,i,a=h(".w-req-data-list .ReactVirtualized__Grid:first").scroll(function(){var t=r.state.network;o&&clearTimeout(o),o=null,t&&n()&&(o=setTimeout(function(){e(t,!0)},1e3))}),s=a[0];this.container=a,I.on("data",e),h(document).on("dblclick",".w-network-menu-list",function(e){h(e.target).hasClass("w-network-menu-list")&&(s.scrollTop=0)}),r._updateNetwork=e,r.autoRefresh=t,r.scrollerAtBottom=n},showPlugins:function(e){"plugins"!=this.state.name?(this.setMenuOptionsState(),this.hidePluginsOptions()):e&&!this.state.showLeftMenu&&this.showPluginsOptions(),this.setState({hasPlugins:!0,name:"plugins"}),E.changePageName("plugins")},handleAction:function(e){if("top"===e)return void(this.container[0].scrollTop=0);if("bottom"===e)return this.autoRefresh();if("pause"===e)return I.pauseNetworkRecord();var t="refresh"===e;return I.stopNetworkRecord(!t),t?this.autoRefresh():void 0},showNetwork:function(e){return"network"==this.state.name?void(e&&!this.state.showLeftMenu&&this.showNetworkOptions()):(this.setMenuOptionsState(),this.setState({hasNetwork:!0,name:"network"},function(){this.startLoadData()}),void E.changePageName("network"))},handleNetwork:function(e,t){var n=this.state.network;"removeAll"==e.id?this.clear():"removeSelected"==e.id?n&&n.removeSelectedItems():"removeUnselected"==e.id?n&&n.removeUnselectedItems():"exportWhistleFile"==e.id?this.exportSessions("whistle"):"exportSazFile"==e.id?this.exportSessions("Fiddler"):"importSessions"==e.id&&this.importSessions(t),this.hideNetworkOptions()},importData:function(e){switch(this.state.name){case"network":this.importSessions(e);break;case"rules":this.importRules(e);break;case"values":this.importValues(e)}},exportData:function(e,t){switch(this.state.name){case"network":var n=this.state.network,r=Array.isArray(t)||n&&n.hasSelected();if(this.currentFoucsItem=t,r){h(f.findDOMNode(this.refs.chooseFileType)).modal("show");var o=this;setTimeout(function(){f.findDOMNode(o.refs.sessionsName).focus()},500)}else Q.info("Please select the sessions first.");break;case"rules":this.showAndActiveRules({id:"exportRules"});break;case"values":this.showAndActiveValues({id:"exportValues"})}},importSessions:function(e,t){var n=this,r=e&&e.shiftKey||t&&t.shiftKey;return r?(n.refs.importRemoteSessions.show(),void setTimeout(function(){var e=f.findDOMNode(n.refs.sessionsRemoteUrl);e.focus(),e.select()},500)):void f.findDOMNode(n.refs.importSessions).click()},importRemoteSessions:function(e){if(!e||"click"===e.type||13===e.keyCode){var t=this,n=f.findDOMNode(t.refs.sessionsRemoteUrl),r=i(n.value);r&&(t.setState({pendingSessions:!0}),I.importRemote({url:r},a(function(e,n){t.setState({pendingSessions:!1}),e||(t.refs.importRemoteSessions.hide(),t.importAnySessions(n))})))}},importRules:function(e,t){var n=this,r=e&&e.shiftKey||t&&t.shiftKey;return r?(n.refs.importRemoteRules.show(),void setTimeout(function(){var e=f.findDOMNode(n.refs.rulesRemoteUrl);e.focus(),e.select()},500)):void f.findDOMNode(n.refs.importRules).click()},importRemoteRules:function(e){if(!e||"click"===e.type||13===e.keyCode){var t=this,n=f.findDOMNode(t.refs.rulesRemoteUrl),r=i(n.value);r&&(t.setState({pendingRules:!0}),I.importRemote({url:r},a(function(e,n){t.setState({pendingRules:!1}),e||(t.refs.importRemoteRules.hide(),n&&(t.rulesForm=o(n),t.refs.confirmImportRules.show()))})))}},importValues:function(e,t){var n=this,r=e&&e.shiftKey||t&&t.shiftKey;return r?(n.refs.importRemoteValues.show(),void setTimeout(function(){var e=f.findDOMNode(n.refs.valuesRemoteUrl);e.focus(),e.select()},500)):void f.findDOMNode(n.refs.importValues).click()},importRemoteValues:function(e){if(!e||"click"===e.type||13===e.keyCode){var t=this,n=f.findDOMNode(t.refs.valuesRemoteUrl),r=i(n.value);r&&(t.setState({pendingValues:!0}),I.importRemote({url:r},a(function(e,n){t.setState({pendingValues:!1}),e||(t.refs.importRemoteValues.hide(),n&&(t.valuesForm=o(n,"values"),t.refs.confirmImportValues.show()))})))}},_uploadRules:function(e,t){var n=this;I.upload.importRules(e,function(e,r){e?0===e.ec?(n.reloadRules(e),t&&Q.success("Successful synchronization Rules.")):alert(e.em):E.showSystemError(r)})},_uploadValues:function(e,t){var n=this;I.upload.importValues(e,function(e,r){e||E.showSystemError(r),0===e.ec?(n.reloadValues(e),t&&Q.success("Successful synchronization Values.")):alert(e.em)})},uploadRules:function(e){var t=this.rulesForm;if(this.rulesForm=null,t){var n=t.get("rules");if(!n||!/\.(txt|json)$/i.test(n.name))return alert("Only supports .txt or .json file.");if(n.size>P)return alert("The file size cannot exceed 6m.");h(e.target).hasClass("btn-danger")&&t.append("replaceAll","1"),this._uploadRules(t),f.findDOMNode(this.refs.importRules).value=""}},uploadValues:function(e){var t=this.valuesForm;if(this.valuesForm=null,t){var n=t.get("values");if(!n||!/\.(txt|json)$/i.test(n.name))return alert("Only supports .txt or .json file.");if(n.size>P)return alert("The file size cannot exceed 6m.");h(e.target).hasClass("btn-danger")&&t.append("replaceAll","1"),this._uploadValues(t),f.findDOMNode(this.refs.importValues).value=""}},uploadRulesForm:function(){this.rulesForm=new FormData(f.findDOMNode(this.refs.importRulesForm)),this.refs.confirmImportRules.show()},uploadValuesForm:function(){this.valuesForm=new FormData(f.findDOMNode(this.refs.importValuesForm)),this.refs.confirmImportValues.show()},clearNetwork:function(){this.clear(),this.hideNetworkOptions()},showAndActiveRules:function(e,t){if("rules"===this.state.name)switch(e.id){case"exportRules":this.refs.selectRulesDialog.show();break;case"importRules":this.importRules(t)}else this.setRulesActive(e.name),this.showRules();this.hideRulesOptions()},showRules:function(e){"rules"!=this.state.name?(this.setMenuOptionsState(),this.hideRulesOptions()):e&&!this.state.showLeftMenu&&this.showRulesOptions(e),this.setState({hasRules:!0,name:"rules"}),E.changePageName("rules")},showAndActiveValues:function(e,t){var n=this;if("values"===n.state.name&&e.id)switch(e.id){case"exportValues":n.refs.selectValuesDialog.show();break;case"importValues":this.importValues(t)}else{var r=n.state.values,o=e.name;r.exists(o)?n.setValuesActive(o):I.values.add({name:o},function(e,t){if(e&&0===e.ec){var i=r.add(o);n.setValuesActive(o),n.setState({activeValues:i})}else E.showSystemError(t)}),this.showValues()}n.hideValuesOptions()},showValues:function(e){"values"!=this.state.name?(this.setMenuOptionsState(),this.hideValuesOptions()):e&&!this.state.showLeftMenu&&this.showValuesOptions(e),this.setState({hasValues:!0,name:"values"}),E.changePageName("values")},showNetworkOptions:function(){"network"==this.state.name&&this.setState({showNetworkOptions:!0})},hideNetworkOptions:function(){this.setState({showRemoveOptions:!1,showAbortOptions:!1,showNetworkOptions:!1})},showRemoveOptions:function(){this.setState({showRemoveOptions:!0})},showAbortOptions:function(){var e=this.state.network,t=e&&e.getSelectedList();ee[0].disabled=!t||!t.filter(E.canAbort).length,this.setState({showAbortOptions:!0})},showCreateOptions:function(){this.setState({showCreateOptions:!0})},hideCreateOptions:function(){this.setState({showCreateOptions:!1})},hideRemoveOptions:function(){this.setState({showRemoveOptions:!1})},hideAbortOptions:function(){this.setState({showAbortOptions:!1})},showHelpOptions:function(){this.setState({showHelpOptions:!0})},hideHelpOptions:function(){this.setState({showHelpOptions:!1})},showHasNewVersion:function(e){this.setState({hasNewVersion:e})},showRulesOptions:function(e){var t,n=this,r=n.state.rules,o=r.data,i=r.list;if("rules"===n.state.name){var a=i.length;K[0].disabled=2>a,K[1].disabled=1>a,t=K}else t=[],i.forEach(function(e){t.push(o[e])});n.setState({rulesOptions:t,showRulesOptions:!0})},hideRulesOptions:function(){this.setState({showRulesOptions:!1})},showValuesOptions:function(e){var t,n=this,r=this.state.values.list;if("values"===n.state.name){var o=r.length;q[0].disabled=2>o,q[1].disabled=1>o,t=q}else{t=[];var i=n.getValuesFromRules()||[];i=E.unique(r.concat(i));var a=[];i.forEach(function(e){var n=-1!=r.indexOf(e),o={name:e,icon:n?"edit":"plus"};n?t.push(o):a.push(o)}),t=a.concat(t)}n.setState({valuesOptions:t,showValuesOptions:!0})},hideValuesOptions:function(){this.setState({showValuesOptions:!1})},showAndActivePlugins:function(e){this.hidePluginsOptions(),this.showPlugins(),this.showPluginTab(e.name)},showPluginTab:function(e){var t="Home",n=this.state.tabs||[];if(e&&e!=t)for(var r=0,o=n.length;o>r;r++)if(n[r].name==e){t=e,e=null;break}if(e&&this.state.plugins[e+":"]){if(n.length>=F)return alert("You can only open "+F+" tabs."),this.showPlugins();t=e,n.push({name:e,url:"plugin."+e+"/"})}this.setState({active:t,tabs:n})},activePluginTab:function(e){this.showPluginTab(h(e.target).attr("data-name"))},closePluginTab:function(e){var t=h(e.target).attr("data-name"),n=this.state.tabs||[];if(n)for(var r=0,o=n.length;o>r;r++)if(n[r].name==t){n.splice(r,1);var i=this.state.active;if(i==t){var a=n[r]||n[r-1];this.state.active=a?a.name:null}return this.setState({tabs:n})}},showPluginsOptions:function(e){this.setState({showPluginsOptions:!0})},hidePluginsOptions:function(){this.setState({showPluginsOptions:!1})},showWeinreOptionsQuick:function(e){var t=this.getWeinreFromRules();return t&&t.length?void h(e.target).closest("div").addClass("w-menu-wrapper-show"):void this.showAnonymousWeinre()},showWeinreOptions:function(e){var t=this,n=t.state.weinreOptions=t.getWeinreFromRules()||[];t.state.weinreOptions=E.unique(n).map(function(e){return{name:e,icon:"console"}}),t.setState({showWeinreOptions:!0})},hideWeinreOptions:function(){this.setState({showWeinreOptions:!1})},setMenuOptionsState:function(e,t){var n={showCreateRules:!1,showCreateValues:!1,showCreateRuleGroup:!1,showCreateValueGroup:!1,showEditRules:!1,showEditValues:!1,showCreateOptions:!1};e&&(n[e]=!0),this.setState(n,t)},hideRulesInput:function(){this.setState({showCreateRules:!1})},hideValuesInput:function(){this.setState({showCreateValues:!1})},hideRuleGroup:function(){this.setState({showCreateRuleGroup:!1})},hideValueGroup:function(){this.setState({showCreateValueGroup:!1})},hideRenameRuleInput:function(){this.setState({showEditRules:!1})},hideRenameValueInput:function(){this.setState({showEditValues:!1})},showCreateRules:function(){var e=f.findDOMNode(this.refs.createRulesInput);this.setState({showCreateRules:!0},function(){e.focus()})},showCreateValues:function(){var e=f.findDOMNode(this.refs.createValuesInput);this.setState({showCreateValues:!0},function(){e.focus()})},showCreateRuleGroup:function(){var e=f.findDOMNode(this.refs.createRuleGroupInput);this.setState({showCreateRuleGroup:!0},function(){e.focus()})},showCreateValueGroup:function(){var e=f.findDOMNode(this.refs.createValueGroupInput);this.setState({showCreateValueGroup:!0},function(){e.focus()})},showHttpsSettingsDialog:function(){h(f.findDOMNode(this.refs.rootCADialog)).modal("show")},interceptHttpsConnects:function(e){var t=this,n=e.target.checked;I.interceptHttpsConnects({interceptHttpsConnects:n?1:0},function(e,r){e&&0===e.ec?t.state.interceptHttpsConnects=n:E.showSystemError(r),t.setState({})})},enableHttp2:function(e){if(!I.supportH2)return window.confirm("The current version of Node.js cannot support HTTP/2.\nPlease upgrade to the latest LTS version.")&&window.open("https://nodejs.org/"),void this.setState({});var t=this,n=e.target.checked;I.enableHttp2({enableHttp2:n?1:0},function(e,r){e&&0===e.ec?t.state.enableHttp2=n:E.showSystemError(r),t.setState({})})},createRules:function(e){if(13==e.keyCode||"click"==e.type){var t=this,n=f.findDOMNode(t.refs.createRulesInput),r=h.trim(n.value);if(!r)return void Q.error("The name cannot be empty.");var o=t.state.rules;return o.exists(r)?void Q.error("The name '"+r+"' already exists."):void I.rules.add({name:r},function(e,i){if(e&&0===e.ec){var a=o.add(r);t.setRulesActive(r),n.value="",n.blur(),t.setState({activeRules:a}),t.triggerRulesChange("create")}else E.showSystemError(i)})}},createValues:function(e){if(13==e.keyCode||"click"==e.type){var t=this,n=f.findDOMNode(t.refs.createValuesInput),r=h.trim(n.value);if(!r)return void Q.error("The name cannot be empty.");if(/\s/.test(r))return void Q.error("The name cannot contain spaces.");if(/#/.test(r))return void Q.error("The name cannot contain #.");var o=t.state.values;return o.exists(r)?void Q.error("The name '"+r+"' already exists."):void I.values.add({name:r},function(e,i){if(e&&0===e.ec){var a=o.add(r);t.setValuesActive(r),n.value="",n.blur(),t.setState({activeValues:a}),t.triggerValuesChange("create")}else E.showSystemError(i); -})}},showEditRules:function(e){this.currentFoucsRules=e;var t=this.state.rules,n=e||t.getActive();if(n&&!n.isDefault){var r=f.findDOMNode(this.refs.editRulesInput);r.value=n.name,this.setState({showEditRules:!0,selectedRule:n},function(){r.select(),r.focus()})}},showEditValuesByDBClick:function(e){!e.changed&&this.showEditValues()},showEditValues:function(e){this.currentFoucsValues=e;var t=this.state.values,n=e||t.getActive();if(n&&!n.isDefault){var r=f.findDOMNode(this.refs.editValuesInput);r.value=n.name,this.setState({showEditValues:!0,selectedValue:n},function(){r.select(),r.focus()})}},editRules:function(e){if(13==e.keyCode||"click"==e.type){var t=this,n=t.state.rules,r=this.currentFoucsRules||n.getActive();if(r){var o=f.findDOMNode(t.refs.editRulesInput),i=h.trim(o.value);return i?n.exists(i)?void Q.error("The name '"+i+"' already exists."):void I.rules.rename({name:r.name,newName:i},function(e,a){e&&0===e.ec?(n.rename(r.name,i),t.currentFoucsRules||t.setRulesActive(i),o.value="",o.blur(),t.setState(t.currentFoucsRules?{}:{activeValues:r}),t.triggerRulesChange("rename")):E.showSystemError(a)}):void Q.error("The name cannot be empty.")}}},editValues:function(e){if(13==e.keyCode||"click"==e.type){var t=this,n=t.state.values,o=this.currentFoucsValues||n.getActive();if(o){var i=f.findDOMNode(t.refs.editValuesInput),a=h.trim(i.value);return a?n.exists(a)?void Q.error("The name '"+a+"' already exists."):void I.values.rename({name:o.name,newName:a},function(e,s){e&&0===e.ec?(n.rename(o.name,a),t.currentFoucsValues||t.setValuesActive(a),i.value="",i.blur(),t.setState(t.currentFoucsValues?{}:{activeValues:o}),t.triggerValuesChange("rename"),r(o)):E.showSystemError(s)}):void Q.error("The name cannot be empty.")}}},showAnonymousWeinre:function(){this.openWeinre()},showWeinre:function(e){this.openWeinre(e.name)},openWeinre:function(e){window.open("weinre/client/#"+(e||"anonymous")),this.setState({showWeinreOptions:!1})},onClickRulesOption:function(e){e.selected?this.unselectRules(e):this.selectRules(e)},selectRules:function(e){var t=this;return I.rules[e.isDefault?"enableDefault":"select"](e,function(n,r){n&&0===n.ec?(t.reselectRules(n),t.state.rules.setChanged(e.name,!1),t.setState({}),t.triggerRulesChange("save"),t.state.disabledAllRules&&confirm("All rules are disabled, do you want to enable them?")&&I.rules.disableAllRules({disabledAllRules:0},function(e,n){e&&0===e.ec?(t.state.disabledAllRules=!1,t.setState({})):E.showSystemError(n)})):E.showSystemError(r)}),!1},selectRulesByOptions:function(e){var t=this.state.rules.data[h(e.target).attr("data-name")];this[e.target.checked?"selectRules":"unselectRules"](t)},unselectRules:function(e){var t=this;return I.rules[e.isDefault?"disableDefault":"unselect"](e,function(e,n){e&&0===e.ec?(t.reselectRules(e),t.setState({})):E.showSystemError(n)}),!1},reselectRules:function(e,t){var n=this;n.state.rules.clearAllSelected(),n.setSelected(n.state.rules,"Default",!e.defaultRulesIsDisabled,t),e.list.forEach(function(e){n.setSelected(n.state.rules,e,!0,t)})},saveValues:function(e){if(e.changed){var t=this;return I.values.add(e,function(n,o){n&&0===n.ec?(t.setSelected(t.state.values,e.name),t.triggerValuesChange("save"),r(e)):E.showSystemError(o)}),!1}},setSelected:function(e,t,n,r){e.setSelected(t,n)&&(r||e.setChanged(t,!1),this.setState({curSelectedName:t}))},replayCountChange:function(e){var t=e.target.value.replace(/^\s*0*|[^\d]+/,""),n=t.slice(0,2);n>G&&(n=G),this.setState({replayCount:n})},clickReplay:function(e){e.shiftKey?L.trigger("replaySessions",[null,e.shiftKey]):this.replay(e)},replay:function(e,t,n){var r=this.state.network;if(t=Array.isArray(t)?t:r&&r.getSelectedList(),t&&t.length){var o=function(e){var t=e.req;E.canReplay(e)&&I.compose2({useH2:e.useH2?1:"",url:e.url,headers:E.getOriginalReqHeaders(e),method:t.method,base64:t.base64})};if(n>1){n=Math.min(n,G);var i=t[0];if(E.canReplay(i))for(var a=0;n>a;a++)o(i)}else t.slice(0,G).forEach(o);this.autoRefresh&&this.autoRefresh()}},composer:function(){L.trigger("composer")},showFiles:function(){this.refs.filesDialog.show(this.files)},clear:function(){var e=this.state.network;e&&this.setState({network:e.clear(),showRemoveOptions:!1})},removeRules:function(e){var t=this,n=this.state.rules,r=e||n.getActive();if(r&&!r.isDefault){var o=r.name;confirm("Are you sure to delete this rule group '"+o+"'.")&&I.rules.remove({name:o},function(r,i){if(r&&0===r.ec){var a=e&&!e.active?null:n.getSibling(o);a&&t.setRulesActive(a.name),n.remove(o),t.setState(e?{}:{activeRules:a}),t.triggerRulesChange("remove")}else E.showSystemError(i)})}},removeValues:function(e){var t=this,n=this.state.values,r=e||n.getActive();if(r&&!r.isDefault){var o=r.name;confirm("Are you sure to delete this Value '"+o+"'.")&&I.values.remove({name:o},function(r,i){if(r&&0===r.ec){var a=e&&!e.active?null:n.getSibling(o);a&&t.setValuesActive(a.name),n.remove(o),t.setState(e?{}:{activeValues:a}),t.triggerValuesChange("remove")}else E.showSystemError(i)})}},setRulesActive:function(e,t){t=t||this.state.rules,S.set("activeRules",e),t.setActive(e)},setValuesActive:function(e,t){t=t||this.state.values,S.set("activeValues",e),t.setActive(e)},showRulesSettings:function(){h(f.findDOMNode(this.refs.rulesSettingsDialog)).modal("show")},showValuesSettings:function(){h(f.findDOMNode(this.refs.valuesSettingsDialog)).modal("show")},toggleLeftMenu:function(){var e=!this.state.showLeftMenu;this.setState({showLeftMenu:e}),S.set("showLeftMenu",e?1:"")},handleCreate:function(e){"rules"==this.state.name?this.showCreateRules():this.showCreateValues()},onClickMenu:function(e){var t,n=h(e.target).closest("a"),r=this,o="rules"==r.state.name;n.hasClass("w-edit-menu")?o?r.showEditRules():r.showEditValues():n.hasClass("w-delete-menu")?o?r.removeRules():r.removeValues():n.hasClass("w-save-menu")&&(o?(t=r.state.rules.getChangedList(),t.length&&(t.forEach(function(e){r.selectRules(e)}),r.setState({}))):(t=r.state.values.getChangedList(),t.length&&(t.forEach(function(e){r.saveValues(e)}),r.setState({}))))},showSettings:function(e){var t=this.state.name;return"rules"===t?void this.showRulesSettings():"values"===t?void this.showValuesSettings():void this.refs.networkSettings.showDialog()},activeRules:function(e){S.set("activeRules",e.name),this.setState({activeRules:e})},activeValues:function(e){S.set("activeValues",e.name),this.setState({activeValues:e})},onRulesThemeChange:function(e){var t=e.target.value;S.set("rulesTheme",t),this.setState({rulesTheme:t})},onValuesThemeChange:function(e){var t=e.target.value;S.set("valuesTheme",t),this.setState({valuesTheme:t})},onRulesFontSizeChange:function(e){var t=e.target.value;S.set("rulesFontSize",t),this.setState({rulesFontSize:t})},onValuesFontSizeChange:function(e){var t=e.target.value;S.set("valuesFontSize",t),this.setState({valuesFontSize:t})},onRulesLineNumberChange:function(e){var t=e.target.checked;S.set("showRulesLineNumbers",t),this.setState({showRulesLineNumbers:t})},onValuesLineNumberChange:function(e){var t=e.target.checked;S.set("showValuesLineNumbers",t),this.setState({showValuesLineNumbers:t})},onRulesLineWrappingChange:function(e){var t=e.target.checked;S.set("autoRulesLineWrapping",t?1:""),this.setState({autoRulesLineWrapping:t})},onValuesLineWrappingChange:function(e){var t=e.target.checked;S.set("autoValuesLineWrapping",t?1:""),this.setState({autoValuesLineWrapping:t})},disableAllRules:function(e){var t=e.target,n=e.target.checked,r=this;"disableAll"!==t.name&&(n=!n),I.rules.disableAllRules({disabledAllRules:n?1:0},function(e,t){if(e&&0===e.ec){var o=r.state;o.disabledAllRules=n,r.setState({})}else E.showSystemError(t)}),e.preventDefault()},disableAllPlugins:function(e){var t,n=this,r=n.state;t="INPUT"===e.target.nodeName?!e.target.checked:!r.disabledAllPlugins,I.plugins.disableAllPlugins({disabledAllPlugins:t?1:0},function(e,o){e&&0===e.ec?(r.disabledAllPlugins=t,D.setPlugins(r),n.setState({})):E.showSystemError(o)}),e.preventDefault()},disablePlugin:function(e){var t=this,n=e.target;return t.state.ndp?Q.warn("Not allowed disable plugins."):void I.plugins.disablePlugin({name:h(n).attr("data-name"),disabled:n.checked?0:1},function(e,n){e&&0===e.ec?(t.state.disabledPlugins=e.data,D.setPlugins(t.state),t.setState({})):E.showSystemError(n)})},abort:function(e){if(!Array.isArray(e)){var t=this.state.network;e=t&&t.getSelectedList()}e&&(e=e.map(function(e){return E.canAbort(e)?e.id:void 0}),e.length&&I.abort({list:e.join()})),this.hideAbortOptions()},allowMultipleChoice:function(e){var t=this,n=e.target.checked;I.rules.allowMultipleChoice({allowMultipleChoice:n?1:0},function(e,r){e&&0===e.ec?t.setState({allowMultipleChoice:n}):E.showSystemError(r)})},enableBackRulesFirst:function(e){var t=this,n=e.target.checked;I.rules.enableBackRulesFirst({backRulesFirst:n?1:0},function(e,r){e&&0===e.ec?t.setState({backRulesFirst:n}):E.showSystemError(r)})},reinstallAllPlugins:function(){L.trigger("updateAllPlugins","reinstallAllPlugins")},chooseFileType:function(e){var t=e.target.value;S.set("exportFileType",t),this.setState({exportFileType:t})},uploadSessions:function(){this.uploadSessionsForm(new FormData(f.findDOMNode(this.refs.importSessionsForm))),f.findDOMNode(this.refs.importSessions).value=""},importHarSessions:function(e){if(e&&"object"==typeof e){var t=e.log.entries,n=[];t.forEach(function(e){if(e){var t=new Date(e.startedDateTime).getTime();if(!isNaN(t)){var r=e.request||{},o=e.response||{},i=E.parseHeadersFromHar(r.headers),a=E.parseHeadersFromHar(o.headers),s=e.clientIPAddress||"127.0.0.1",l=e.serverIPAddress||"",c={method:r.method,ip:s,httpVersion:"1.1",size:r.bodySize,headers:i.headers,rawHeaderNames:i.rawHeaderNames,body:r.postData&&r.postData.text||""},u={httpVersion:"1.1",statusCode:o.status,statusMessage:o.statusText,size:o.bodySize,headers:a.headers,rawHeaderNames:a.rawHeaderNames,ip:l,body:""},d=o.content,p=d&&d.text;p&&("IMG"===E.getContentType(d.mimeType)||p.length%4===0&&/^[a-z\d+/]+={0,2}$/i.test(p)?u.base64=p:u.body=p);var h={startTime:t,url:r.url,req:c,res:u,rules:{}},g=e.timings||{},f=Math.round(t+E.getTimeFromHar(e.time));t=Math.floor(t+E.getTimeFromHar(g.dns)),h.dnsTime=t,t=Math.floor(t+E.getTimeFromHar(g.connect)+E.getTimeFromHar(g.ssl)+E.getTimeFromHar(g.send)+E.getTimeFromHar(g.blocked)+E.getTimeFromHar(g.wait)),h.requestTime=t,t=Math.floor(t+E.getTimeFromHar(g.receive)),h.responseTime=t,h.endTime=Math.max(t,f),n.push(h)}}}),I.addNetworkList(n)}},uploadSessionsForm:function(e){var t=e.get("importSessions");if(!t||!/\.(txt|json|saz|har)$/i.test(t.name))return alert("Only supports .txt, .json, .saz or .har file.");if(t.size>V)return alert("The file size cannot exceed 64m.");var n=/\.txt$/i.test(t.name);if(n||/\.har$/i.test(t.name)){var r=this;return void E.readFileAsText(t,function(e){try{e=JSON.parse(e),n?I.addNetworkList(e):r.importHarSessions(e)}catch(t){alert("Incorrect file format.")}})}I.upload.importSessions(e,I.addNetworkList)},exportSessions:function(e,t){var n=this.state.network,r=this.currentFoucsItem;if(this.currentFoucsItem=null,r&&h(f.findDOMNode(this.refs.chooseFileType)).is(":visible")||(r=n&&n.getSelectedList()),r&&r.length){var o=f.findDOMNode(this.refs.exportSessionsForm);f.findDOMNode(this.refs.exportFilename).value=t||"",f.findDOMNode(this.refs.exportFileType).value=e,f.findDOMNode(this.refs.sessions).value=JSON.stringify(r,null," "),o.submit()}},exportBySave:function(e){if(!e||"click"===e.type||13===e.keyCode){var t=f.findDOMNode(this.refs.sessionsName),n=t.value.trim();t.value="",this.exportSessions(this.state.exportFileType,n),h(f.findDOMNode(this.refs.chooseFileType)).modal("hide")}},replayRepeat:function(e){e&&"click"!==e.type&&13!==e.keyCode||(this.refs.setReplayCount.hide(),this.replay("",this.replayList,this.state.replayCount),L.trigger("focusNetworkList"))},showAboutDialog:function(e){h(e.target).closest(".w-menu-enable").length&&this.refs.aboutDialog.showAboutInfo()},showCustomCertsInfo:function(){var e=this;e.loadingCerts||(e.loadingCerts=!0,I.getCustomCertsInfo(function(t,n){return e.loadingCerts=!1,t?void e.refs.certsInfoDialog.show(t):void E.showSystemError(n)}))},forceShowLeftMenu:function(){var e=this;clearTimeout(e.hideTimer),clearTimeout(e.showTimer),e.showTimer=setTimeout(function(){e.setState({forceShowLeftMenu:!0})},200)},forceHideLeftMenu:function(){var e=this;clearTimeout(e.hideTimer),clearTimeout(e.showTimer),e.hideTimer=setTimeout(function(){e.setState({forceShowLeftMenu:!1})},500)},render:function(){var e=this.state,t=e.networkMode,n=e.rulesMode,r=e.pluginsMode,o=e.multiEnv,i=e.name;t?i="network":n?i="network"===i?"rules":i:r&&(i="plugins"!==i?"network":i);var a=void 0===i||"network"==i,l="rules"==i,c="values"==i,u="plugins"==i,d=!0,h=!0,f=e.rulesTheme||"cobalt",m=e.valuesTheme||"cobalt",M=e.rulesFontSize||"14px",E=e.valuesFontSize||"14px",D=e.showRulesLineNumbers||!1,L=e.showValuesLineNumbers||!1,S=e.autoRulesLineWrapping,Q=e.autoValuesLineWrapping,O=e.rulesOptions,F=e.pluginsOptions,V={},P=e.showNetworkOptions,Y=e.showRulesOptions,G=e.showValuesOptions,W=e.showPluginsOptions,X=e.showWeinreOptions,_=e.showHelpOptions;O[0].name===H&&O.forEach(function(t,n){t.icon=n&&e.multiEnv?"edit":"checkbox",t.selected||(V[t.name]=1)});var K,q;if(l){q=e.rules.data;for(K in q)if(q[K].active){d=h=q[K].isDefault;break}}else if(c){q=e.values.data;for(K in q)if(q[K].active){d=h=!1;break}}if(e.network){e.network.rulesModal=e.rules,e.rules.editorTheme={theme:f,fontSize:M,lineNumbers:D};var te=e.networkOptions,ne=e.network.hasUnselected();e.network.hasSelected()?(te.forEach(function(e){e.disabled=!1,"removeUnselected"===e.id&&(e.disabled=!ne)}),$.forEach(function(e){e.disabled=!1,"removeUnselected"===e.id&&(e.disabled=!ne)})):(te.forEach(function(e){-1!==J.indexOf(e.id)?e.disabled=!0:"removeUnselected"===e.id&&(e.disabled=!ne)}),te[0].disabled=!ne,$.forEach(function(e){-1!==J.indexOf(e.id)?e.disabled=!0:"removeUnselected"===e.id&&(e.disabled=!ne)}))}var re,oe,ie=e.pendingSessions,ae=e.pendingRules,se=e.pendingValues,le=Z&&!e.forceShowLeftMenu,ce=t||e.showLeftMenu,ue=e.disabledAllPlugins;return ce&&Z&&(re=this.forceShowLeftMenu,oe=this.forceHideLeftMenu),g.createElement("div",{className:"main orient-vertical-box"+(ce?" w-show-left-menu":"")},g.createElement("div",{className:"w-menu w-"+i+"-menu-list",onMouseEnter:re,onMouseLeave:oe},g.createElement("a",{onClick:this.toggleLeftMenu,draggable:"false",className:"w-show-left-menu-btn",style:{display:t?"none":void 0},title:"Dock to "+(ce?"top":"left")+" (Ctrl[Command] + M)"},g.createElement("span",{className:"glyphicon glyphicon-chevron-"+(ce?le?"down":"up":"left")})),g.createElement("div",{style:{display:n?"none":void 0},onMouseEnter:this.showNetworkOptions,onMouseLeave:this.hideNetworkOptions,className:"w-nav-menu w-menu-wrapper"+(P?" w-menu-wrapper-show":"")},g.createElement("a",{onClick:this.showNetwork,onDoubleClick:this.clearNetwork,className:"w-network-menu",title:"Double click to remove all sessions",style:{background:"network"==i?"#ddd":null},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-globe"}),"Network"),g.createElement(T,{ref:"networkMenuItem",options:e.networkOptions,className:"w-network-menu-item",onClickOption:this.handleNetwork})),g.createElement("div",{style:{display:r?"none":void 0},onMouseEnter:this.showRulesOptions,onMouseLeave:this.hideRulesOptions,className:"w-nav-menu w-menu-wrapper"+(Y?" w-menu-wrapper-show":"")+(l?" w-menu-auto":"")},g.createElement("a",{onClick:this.showRules,className:"w-rules-menu",style:{background:"rules"==i?"#ddd":null},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-list"}),"Rules"),g.createElement(T,{ref:"rulesMenuItem",name:"rules"==i?null:"Open",options:O,checkedOptions:V,disabled:e.disabledAllRules,className:"w-rules-menu-item",onClick:this.showRules,onClickOption:this.showAndActiveRules,onChange:this.selectRulesByOptions})),g.createElement("div",{style:{display:r?"none":void 0},onMouseEnter:this.showValuesOptions,onMouseLeave:this.hideValuesOptions,className:"w-nav-menu w-menu-wrapper"+(G?" w-menu-wrapper-show":"")+(c?" w-menu-auto":"")},g.createElement("a",{onClick:this.showValues,className:"w-values-menu",style:{background:"values"==i?"#ddd":null},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-folder-close"}),"Values"),g.createElement(T,{ref:"valuesMenuItem",name:"values"==i?null:"Open",options:e.valuesOptions,className:"w-values-menu-item",onClick:this.showValues,onClickOption:this.showAndActiveValues})),g.createElement("div",{ref:"pluginsMenu",onMouseEnter:this.showPluginsOptions,onMouseLeave:this.hidePluginsOptions,className:"w-nav-menu w-menu-wrapper"+(W?" w-menu-wrapper-show":"")},g.createElement("a",{onClick:this.showPlugins,className:"w-plugins-menu",style:{background:"plugins"==i?"#ddd":null},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-list-alt"}),"Plugins"),g.createElement(T,{ref:"pluginsMenuItem",name:"plugins"==i?null:"Open",options:F,checkedOptions:e.disabledPlugins,disabled:ue,className:"w-plugins-menu-item",onClick:this.showPlugins,onChange:this.disablePlugin,onClickOption:this.showAndActivePlugins})),!e.ndp&&g.createElement("a",{onClick:this.disableAllPlugins,className:"w-enable-plugin-menu",style:{display:u?"":"none",color:ue?"#f66":void 0},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-"+(ue?"ok-circle":"ban-circle")}),ue?"EnableAll":"DisableAll"),g.createElement(z,{hide:!u}),g.createElement("a",{onClick:this.reinstallAllPlugins,className:"w-plugins-menu"+(u?"":" hide"),draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-download-alt"}),"ReinstallAll"),g.createElement("a",{onClick:this.importData,className:"w-import-menu",style:{display:u?"none":""},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-import"}),"Import"),g.createElement("a",{onClick:this.exportData,className:"w-export-menu",style:{display:u?"none":""},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-export"}),"Export"),g.createElement("div",{onMouseEnter:this.showRemoveOptions,onMouseLeave:this.hideRemoveOptions,style:{display:a?"":"none"},className:"w-menu-wrapper w-remove-menu-list w-menu-auto"+(e.showRemoveOptions?" w-menu-wrapper-show":"")},g.createElement("a",{onClick:this.clear,className:"w-remove-menu",title:"Ctrl[Command] + X",draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-remove"}),"Clear"),g.createElement(T,{options:$,className:"w-remove-menu-item",onClickOption:this.handleNetwork})),g.createElement("a",{onClick:this.onClickMenu,className:"w-save-menu",style:{display:a||u?"none":""},draggable:"false",title:"Ctrl[Command] + S"},g.createElement("span",{className:"glyphicon glyphicon-save-file"}),"Save"),g.createElement("a",{className:"w-create-menu",style:{display:a||u?"none":""},draggable:"false",onClick:this.handleCreate},g.createElement("span",{className:"glyphicon glyphicon-plus"}),"Create"),g.createElement("a",{onClick:this.onClickMenu,className:"w-edit-menu"+(d?" w-disabled":""),style:{display:a||u?"none":""},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-edit"}),"Rename"),g.createElement("div",{onMouseEnter:this.showAbortOptions,onMouseLeave:this.hideAbortOptions,style:{display:a?"":"none"},className:"w-menu-wrapper w-abort-menu-list w-menu-auto"+(e.showAbortOptions?" w-menu-wrapper-show":"")},g.createElement("a",{onClick:this.clickReplay,className:"w-replay-menu",draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-repeat"}),"Replay"),g.createElement(T,{options:ee,className:"w-remove-menu-item",onClickOption:this.abort})),g.createElement("a",{onClick:this.composer,className:"w-composer-menu",style:{display:a?"":"none"},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-edit"}),"Compose"),g.createElement(v,{hide:!a,onClick:this.handleAction}),g.createElement("a",{onClick:this.onClickMenu,className:"w-delete-menu"+(h?" w-disabled":""),style:{display:a||u?"none":""},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-trash"}),"Delete"),g.createElement(B,{onClick:this.showSettings,disabledRules:l&&e.disabledAllRules,isNetwork:a,hide:u}),g.createElement("a",{onClick:this.showFiles,className:"w-files-menu",draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-upload"}),"Files"),g.createElement("div",{onMouseEnter:this.showWeinreOptions,onMouseLeave:this.hideWeinreOptions,className:"w-menu-wrapper"+(X?" w-menu-wrapper-show":"")},g.createElement("a",{onClick:this.showWeinreOptionsQuick,onDoubleClick:this.showAnonymousWeinre,className:"w-weinre-menu",draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-console"}),"Weinre"),g.createElement(T,{ref:"weinreMenuItem",name:"anonymous",options:e.weinreOptions,className:"w-weinre-menu-item",onClick:this.showAnonymousWeinre,onClickOption:this.showWeinre})),g.createElement("a",{onClick:this.showHttpsSettingsDialog,className:"w-https-menu",draggable:"false",style:{color:I.hasInvalidCerts?"red":void 0}},g.createElement("span",{className:"glyphicon glyphicon-"+(e.interceptHttpsConnects?"ok":"lock")}),"HTTPS"),g.createElement("div",{onMouseEnter:this.showHelpOptions,onMouseLeave:this.hideHelpOptions,className:"w-menu-wrapper"+(_?" w-menu-wrapper-show":"")},g.createElement("a",{className:"w-help-menu"+(e.hasNewVersion?" w-menu-enable":""),onClick:this.showAboutDialog,title:e.hasNewVersion?"There is a new version of whistle":void 0,href:e.hasNewVersion?void 0:"https://github.com/avwo/whistle#whistle",target:e.hasNewVersion?void 0:"_blank"},g.createElement("span",{className:"glyphicon glyphicon-question-sign"}),"Help"),g.createElement(T,{ref:"helpMenuItem",options:e.helpOptions,name:g.createElement(b,{ref:"aboutDialog",onClick:this.hideHelpOptions,onCheckUpdate:this.showHasNewVersion}),className:"w-help-menu-item"})),g.createElement(y,{name:i}),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showCreateRules?"block":"none"},className:"shadow w-input-menu-item w-create-rules-input"},g.createElement("input",{ref:"createRulesInput",onKeyDown:this.createRules,onBlur:this.hideRulesInput,type:"text",maxLength:"64",placeholder:"Input the name"}),g.createElement("button",{type:"button",onClick:this.createRules,className:"btn btn-primary"},"+Rule")),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showCreateValues?"block":"none"},className:"shadow w-input-menu-item w-create-values-input"},g.createElement("input",{ref:"createValuesInput",onKeyDown:this.createValues,onBlur:this.hideValuesInput,type:"text",maxLength:"64",placeholder:"Input the key"}),g.createElement("button",{type:"button",onClick:this.createValues,className:"btn btn-primary"},"+Key")),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showCreateRuleGroup?"block":"none"},className:"shadow w-input-menu-item w-create-rules-input"},g.createElement("input",{ref:"createRuleGroupInput",onKeyDown:this.createRules,onBlur:this.hideRuleGroup,type:"text",maxLength:"64",placeholder:"Input the group name"}),g.createElement("button",{type:"button",onClick:this.createRuleGroup,className:"btn btn-primary"},"+Group")),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showCreateValueGroup?"block":"none"},className:"shadow w-input-menu-item w-create-values-input"},g.createElement("input",{ref:"createValueGroupInput",onKeyDown:this.createValues,onBlur:this.hideValueGroup,type:"text",maxLength:"64",placeholder:"Input the group name"}),g.createElement("button",{type:"button",onClick:this.createValueGroup,className:"btn btn-primary"},"+Group")),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showEditRules?"block":"none"},className:"shadow w-input-menu-item w-edit-rules-input"},g.createElement("input",{ref:"editRulesInput",onKeyDown:this.editRules,onBlur:this.hideRenameRuleInput,type:"text",maxLength:"64"}),g.createElement("button",{type:"button",onClick:this.editRules,className:"btn btn-primary"},"OK")),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showEditValues?"block":"none"},className:"shadow w-input-menu-item w-edit-values-input"},g.createElement("input",{ref:"editValuesInput",onKeyDown:this.editValues,onBlur:this.hideRenameValueInput,type:"text",maxLength:"64"}),g.createElement("button",{type:"button",onClick:this.editValues,className:"btn btn-primary"},"OK"))),g.createElement("div",{className:"w-container box fill"},g.createElement("div",{className:"w-left-menu"+(re?" w-hover-left-menu":""),style:{display:t||le?"none":void 0},onMouseEnter:re,onMouseLeave:oe},g.createElement("a",{onClick:this.showNetwork,onDoubleClick:this.clearNetwork,title:"Double click to remove all sessions",className:"w-network-menu",style:{background:"network"==i?"#ddd":null,display:n?"none":void 0},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-globe"}),g.createElement("i",null,"Network")),g.createElement("a",{onClick:this.showRules,className:"w-save-menu w-rules-menu",onDoubleClick:this.onClickMenu,title:"Double click to save all changed",style:{background:"rules"==i?"#ddd":null,display:r?"none":void 0},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-list"+(e.disabledAllRules?" w-disabled":"")}),g.createElement("i",null,!e.classic&&!e.ndr&&g.createElement("input",{onChange:this.disableAllRules,type:"checkbox",onClick:s,checked:!e.disabledAllRules,title:e.disabledAllRules?"Click to enable all rules":"Click to disable all rules"})," Rules"),g.createElement("i",{className:"w-menu-changed",style:{display:e.rules.hasChanged()?void 0:"none"}},"*")),g.createElement("a",{onClick:this.showValues,className:"w-save-menu w-values-menu",onDoubleClick:this.onClickMenu,title:"Double click to save all changed",style:{background:"values"==i?"#ddd":null,display:r?"none":void 0},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-folder-close"}),g.createElement("i",null,"Values"),g.createElement("i",{className:"w-menu-changed",style:{display:e.values.hasChanged()?void 0:"none"}},"*")),g.createElement("a",{onClick:this.showPlugins,className:"w-plugins-menu",style:{background:"plugins"==i?"#ddd":null},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-list-alt"+(ue?" w-disabled":"")}),g.createElement("i",null,!e.classic&&!e.ndp&&g.createElement("input",{onChange:this.disableAllPlugins,type:"checkbox",onClick:s,checked:!ue,title:ue?"Click to enable all plugins":"Click to disable all plugins"})," Plugins"))),e.hasRules?g.createElement(A,{ref:"rules",disabled:e.disabledAllRules,theme:f,lineWrapping:S,fontSize:M,lineNumbers:D,onSelect:this.selectRules,onUnselect:this.unselectRules,onActive:this.activeRules,modal:e.rules,hide:"rules"==i?!1:!0,name:"rules"}):void 0,e.hasValues?g.createElement(A,{theme:m,onDoubleClick:this.showEditValuesByDBClick,fontSize:E,lineWrapping:Q,lineNumbers:L,onSelect:this.saveValues,onActive:this.activeValues,modal:e.values,hide:"values"==i?!1:!0,className:"w-values-list"}):void 0,e.hasNetwork?g.createElement(w,{ref:"network",hide:"rules"===i||"values"===i||"plugins"===i,modal:e.network}):void 0,e.hasPlugins?g.createElement(C,p({},e,{onOpen:this.activePluginTab,onClose:this.closePluginTab,onActive:this.activePluginTab,onChange:this.disablePlugin,ref:"plugins",hide:"plugins"==i?!1:!0})):void 0),g.createElement("div",{ref:"rulesSettingsDialog",className:"modal fade w-rules-settings-dialog"},g.createElement("div",{className:"modal-dialog"},g.createElement("div",{className:"modal-content"},g.createElement("div",{className:"modal-body"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},g.createElement("span",{"aria-hidden":"true"},"×")),g.createElement(x,{theme:f,fontSize:M,lineNumbers:D,lineWrapping:S,onLineWrappingChange:this.onRulesLineWrappingChange,onThemeChange:this.onRulesThemeChange,onFontSizeChange:this.onRulesFontSizeChange,onLineNumberChange:this.onRulesLineNumberChange}),g.createElement("p",{className:"w-editor-settings-box"},g.createElement("label",null,g.createElement("input",{type:"checkbox",checked:e.backRulesFirst,onChange:this.enableBackRulesFirst})," Back rules first")),g.createElement("p",{className:"w-editor-settings-box"},g.createElement("label",{style:{color:o?"#aaa":void 0}},g.createElement("input",{type:"checkbox",disabled:o,checked:!o&&e.allowMultipleChoice,onChange:this.allowMultipleChoice})," Use multiple rules")),!e.ndr&&g.createElement("p",{className:"w-editor-settings-box"},g.createElement("label",{style:{color:e.disabledAllRules?"#f66":void 0}},g.createElement("input",{type:"checkbox",checked:e.disabledAllRules,onChange:this.disableAllRules,name:"disableAll"})," Disable all rules"))),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))))),g.createElement("div",{ref:"valuesSettingsDialog",className:"modal fade w-values-settings-dialog"},g.createElement("div",{className:"modal-dialog"},g.createElement("div",{className:"modal-content"},g.createElement("div",{className:"modal-body"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},g.createElement("span",{"aria-hidden":"true"},"×")),g.createElement(x,{theme:m,fontSize:E,lineNumbers:L,lineWrapping:Q,onLineWrappingChange:this.onValuesLineWrappingChange,onThemeChange:this.onValuesThemeChange,onFontSizeChange:this.onValuesFontSizeChange,onLineNumberChange:this.onValuesLineNumberChange})),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))))),g.createElement(N,{ref:"networkSettings"}),g.createElement("div",{ref:"rootCADialog",className:"modal fade w-https-dialog"},g.createElement("div",{className:"modal-dialog"},g.createElement("div",{className:"modal-content"},g.createElement("div",{className:"modal-body"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},g.createElement("span",{"aria-hidden":"true"},"×")),g.createElement("div",null,g.createElement("a",{className:"w-help-menu",title:"Click here to learn how to install root ca",href:"https://avwo.github.io/whistle/webui/https.html",target:"_blank"},g.createElement("span",{className:"glyphicon glyphicon-question-sign"})),g.createElement("a",{className:"w-download-rootca",title:"http://rootca.pro/",href:"cgi-bin/rootca",target:"downloadTargetFrame"},"Download RootCA")),g.createElement("a",{title:"http://rootca.pro/",href:"cgi-bin/rootca",target:"downloadTargetFrame"},g.createElement("img",{src:"img/qrcode.png"})),g.createElement("div",{className:"w-https-settings"},g.createElement("p",null,g.createElement("label",{title:o?"Use `pattern enable://capture` in rules to replace global configuration":void 0},g.createElement("input",{disabled:o,checked:e.interceptHttpsConnects,onChange:this.interceptHttpsConnects,type:"checkbox"})," Capture TUNNEL CONNECTs")),g.createElement("p",null,g.createElement("label",null,g.createElement("input",{checked:I.supportH2&&e.enableHttp2,onChange:this.enableHttp2,type:"checkbox"})," Enable HTTP/2")),g.createElement("a",{draggable:"false",style:{color:I.hasInvalidCerts?"red":void 0},onClick:this.showCustomCertsInfo},"View custom certs info"),g.createElement(R,{ref:"certsInfoDialog"}))),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))))),g.createElement("div",{ref:"chooseFileType",className:"modal fade w-choose-filte-type"},g.createElement("div",{className:"modal-dialog"},g.createElement("div",{className:"modal-content"},g.createElement("div",{className:"modal-body"},g.createElement("label",{className:"w-choose-filte-type-label"},"Save as:",g.createElement("input",{ref:"sessionsName", -onKeyDown:this.exportBySave,placeholder:"Input the filename",className:"form-control",maxLength:"64"}),g.createElement("select",{ref:"fileType",className:"form-control",value:e.exportFileType,onChange:this.chooseFileType},g.createElement("option",{value:"whistle"},"*.txt"),g.createElement("option",{value:"Fiddler"},"*.saz"))),g.createElement("a",{type:"button",onKeyDown:this.exportBySave,tabIndex:"0",onMouseDown:this.preventBlur,className:"btn btn-primary",onClick:this.exportBySave},"Export"))))),g.createElement(j,{ref:"setReplayCount",wstyle:"w-replay-count-dialog"},g.createElement("div",{className:"modal-body"},g.createElement("label",null,"Count:",g.createElement("input",{ref:"replayCount",onKeyDown:this.replayRepeat,onChange:this.replayCountChange,value:e.replayCount,className:"form-control",maxLength:"2"})),g.createElement("a",{type:"button",onKeyDown:this.replayRepeat,tabIndex:"0",onMouseDown:this.preventBlur,className:"btn btn-primary",onClick:this.replayRepeat},"Replay"))),g.createElement(j,{ref:"importRemoteRules",wstyle:"w-import-remote-dialog"},g.createElement("div",{className:"modal-body"},g.createElement("input",{readOnly:ae,ref:"rulesRemoteUrl",maxLength:"2048",onKeyDown:this.importRemoteRules,placeholder:"Input the url",style:{"ime-mode":"disabled"}})),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-primary",disabled:ae,onMouseDown:this.preventBlur,onClick:this.importRemoteRules},ae?"Importing rules":"Import rules"),g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))),g.createElement(j,{ref:"importRemoteSessions",wstyle:"w-import-remote-dialog"},g.createElement("div",{className:"modal-body"},g.createElement("input",{readOnly:ie,ref:"sessionsRemoteUrl",maxLength:"2048",onKeyDown:this.importRemoteSessions,placeholder:"Input the url",style:{"ime-mode":"disabled"}})),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-primary",disabled:ie,onMouseDown:this.preventBlur,onClick:this.importRemoteSessions},ie?"Importing sessions":"Import sessions"),g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))),g.createElement(j,{ref:"importRemoteValues",wstyle:"w-import-remote-dialog"},g.createElement("div",{className:"modal-body"},g.createElement("input",{readOnly:se,ref:"valuesRemoteUrl",maxLength:"2048",onKeyDown:this.importRemoteValues,placeholder:"Input the url",style:{"ime-mode":"disabled"}})),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-primary",disabled:se,onMouseDown:this.preventBlur,onClick:this.importRemoteValues},se?"Importing values":"Import values"),g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))),g.createElement("div",{ref:"showUpdateTipsDialog",className:"modal fade w-show-update-tips-dialog"},g.createElement("div",{className:"modal-dialog"},g.createElement("div",{className:"modal-content"},g.createElement("div",{className:"modal-body"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},g.createElement("span",{"aria-hidden":"true"},"×")),g.createElement("p",{className:"w-show-update-tips"},"whistle has important updates, it is recommended that you update to the latest version."),g.createElement("p",null,"Current version: ",e.version),g.createElement("p",null,"The latest stable version: ",e.latestVersion),g.createElement("p",null,"View change: ",g.createElement("a",{title:"Change log",href:"https://github.com/avwo/whistle/blob/master/CHANGELOG.md",target:"_blank"},"CHANGELOG.md"))),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-default",onClick:this.donotShowAgain,"data-dismiss":"modal"},"Don't show again"),g.createElement("a",{type:"button",className:"btn btn-primary",onClick:this.hideUpdateTipsDialog,href:"https://avwo.github.io/whistle/update.html",target:"_blank"},"Update now"))))),g.createElement(j,{ref:"confirmReload",wstyle:"w-confirm-reload-dialog"},g.createElement("div",{className:"modal-body w-confirm-reload"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},g.createElement("span",{"aria-hidden":"true"},"×")),g.createElement("div",{className:"w-reload-data-tips"})),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"No"),g.createElement("button",{type:"button",className:"btn btn-primary",onClick:this.reloadData,"data-dismiss":"modal"},"Yes"))),g.createElement(j,{ref:"confirmImportRules",wstyle:"w-confirm-import-dialog"},g.createElement("div",{className:"modal-body w-confirm-import"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},g.createElement("span",{"aria-hidden":"true"},"×")),"Whether to replace the existing rules?"),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-danger",onClick:this.uploadRules,"data-dismiss":"modal"},"Replace"),g.createElement("button",{type:"button",className:"btn btn-primary",onClick:this.uploadRules,"data-dismiss":"modal"},"Reserve"))),g.createElement(j,{ref:"confirmImportValues",wstyle:"w-confirm-import-dialog"},g.createElement("div",{className:"modal-body w-confirm-import"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},g.createElement("span",{"aria-hidden":"true"},"×")),"Whether to replace the existing values?"),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-danger",onClick:this.uploadValues,"data-dismiss":"modal"},"Replace"),g.createElement("button",{type:"button",className:"btn btn-primary",onClick:this.uploadValues,"data-dismiss":"modal"},"Reserve"))),g.createElement(U,{ref:"filesDialog"}),g.createElement(k,{ref:"selectRulesDialog",name:"rules",list:e.rules.list}),g.createElement(k,{ref:"selectValuesDialog",name:"values",list:e.values.list}),g.createElement("iframe",{name:"downloadTargetFrame",style:{display:"none"}}),g.createElement("form",{ref:"exportSessionsForm",action:"cgi-bin/sessions/export",style:{display:"none"},method:"post",target:"downloadTargetFrame"},g.createElement("input",{ref:"exportFilename",name:"exportFilename",type:"hidden"}),g.createElement("input",{ref:"exportFileType",name:"exportFileType",type:"hidden"}),g.createElement("input",{ref:"sessions",name:"sessions",type:"hidden"})),g.createElement("form",{ref:"importSessionsForm",encType:"multipart/form-data",style:{display:"none"}},g.createElement("input",{ref:"importSessions",onChange:this.uploadSessions,type:"file",name:"importSessions",accept:".txt,.json,.saz,.har"})),g.createElement("form",{ref:"importRulesForm",encType:"multipart/form-data",style:{display:"none"}},g.createElement("input",{ref:"importRules",onChange:this.uploadRulesForm,name:"rules",type:"file",accept:".txt,.json"})),g.createElement("form",{ref:"importValuesForm",encType:"multipart/form-data",style:{display:"none"}},g.createElement("input",{ref:"importValues",onChange:this.uploadValuesForm,name:"values",type:"file",accept:".txt,.json"})))}});I.getInitialData(function(e){f.render(g.createElement(te,{modal:e}),document.getElementById("container"))})},function(e,t,n){var r=n(2);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".w-menu{height:28px;border-top:1px solid #fcfcfc;background:#f1f3f4;padding-right:5pc;position:relative;z-index:1001}.w-menu a{text-decoration:none!important;color:#000;padding:0 5px;line-height:26px;height:26px;margin-right:5px;display:inline-block}.w-detail .glyphicon,.w-menu .glyphicon{margin-right:3px}.w-menu .glyphicon-folder-close,.w-menu .glyphicon-folder-open{margin-right:6px}.w-menu .w-online{position:absolute;right:0}.w-left-menu a:hover,.w-left-menu a:hover .w-disabled,.w-menu .w-online,.w-menu a:hover{color:#337ab7}.w-menu .w-offline{color:#ccc!important;cursor:default}.w-frames-action .w-disabled,.w-menu .w-disabled{color:#888!important;cursor:not-allowed!important}.w-left-menu .w-disabled{color:#888}.w-menu .w-menu-enable{color:#f66!important}.w-menu .w-menu-wrapper{display:inline-block;position:relative;height:30px}.w-show-update-tips{font-weight:700}.w-input-menu-item{display:block;position:absolute;background:#fff;border:1px solid #ccc;border-radius:2px;z-index:101;top:30px;display:none;white-space:nowrap}.w-input-menu-item input{width:246px;height:2pc;border:1px solid #ccc;border-radius:2px;padding:0 5px;vertical-align:middle}.w-input-menu-item .btn{height:2pc;padding:0 9pt;vertical-align:middle;border-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px}.w-create-rules-input{left:310px}.w-create-values-input{left:300px}.w-edit-rules-input{left:382px}.w-edit-values-input{left:372px}.w-show-left-menu .w-create-rules-input{left:210px}.w-show-left-menu .w-create-values-input{left:200px}.w-show-left-menu .w-edit-rules-input{left:282px}.w-show-left-menu .w-edit-values-input{left:17pc}.w-menu-wrapper .w-menu-item{display:none!important}.w-menu-wrapper-show .w-menu-item{display:block!important}.w-values-list .glyphicon{display:none!important}.w-values-list a{font-weight:400!important}.w-disabled .glyphicon-ok,.w-disabled .glyphicon-stop{color:#ccc!important}.w-rules-settings-dialog .modal-dialog{width:25pc}.w-values-settings-dialog .modal-dialog{width:300px}.w-show-update-tips-dialog .modal-dialog{width:21pc}.w-show-update-tips-dialog .modal-body p{margin-bottom:5px}.w-https-dialog .modal-dialog{width:340px}.w-https-help{margin-left:150px}.w-https-dialog .modal-dialog div{white-space:nowrap}.w-https-dialog a{display:inline-block}.w-download-rootca,.w-https-help{line-height:30px}.w-https-settings label{font-weight:400}.w-https-settings p{margin:10px 0}.w-is-link{cursor:pointer;text-decoration:underline}.w-choose-filte-type .modal-dialog{width:456px}.w-choose-filte-type-label{white-space:nowrap}.w-choose-filte-type-label .form-control{margin-left:10px;width:200px;display:inline-block;font-weight:400}.w-choose-filte-type-label select.form-control{margin:0 5px;width:5pc}.w-confirm-import-dialog .modal-dialog{width:20pc;font-weight:700}.w-show-left-menu-btn{padding:0 15px!important;margin-right:0!important}.w-left-menu{background:#f1f3f4;border:1px solid #ccc;border-bottom:none;display:none}.w-show-left-menu .w-left-menu{display:block;border-left:none}.w-show-left-menu .w-nav-menu{display:none}.w-left-menu a{display:block;position:relative;padding:10px 0 8px;width:45px;overflow:hidden;text-align:center;text-decoration:none!important;color:#000}.w-left-menu a span{margin-right:5px}.w-left-menu a i{display:block;font-style:normal;font-size:13px;zoom:1;transform:scale(0.7,0.7);width:66px;margin-left:-11px}.w-left-menu-tips{padding:6px 10px;display:none;left:47px;top:3px;position:absolute;z-index:1;border-radius:4px}.w-left-menu a:hover .w-left-menu-tips{display:block;color:#000;background-color:#f1f3f4;font-weight:700;border:1px solid #ccc}.w-left-menu a .w-left-menu-tips:hover,.w-menu .w-export-menu,.w-menu .w-import-menu,.w-menu .w-remove-menu-list{display:none}.w-show-left-menu .w-export-menu,.w-show-left-menu .w-import-menu,.w-show-left-menu .w-remove-menu-list{display:inline-block}.w-menu-changed{position:absolute;top:2px;left:2px;color:red}.w-replay-count-dialog .modal-content{width:236px;white-space:nowrap}.w-replay-count-dialog .modal-content label{width:auto}.w-replay-count-dialog input{display:inline-block;width:5pc;text-align:center;margin:0 10px}.w-import-remote-dialog .modal-content{width:525px}.w-import-remote-dialog input{width:500px;height:30px;line-height:30px;padding:5px}.w-https-menu .glyphicon-lock{color:#9e9e26}.w-hover-left-menu{position:absolute;z-index:1;height:auto;border-bottom:1px solid #ccc;min-height:0}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;tn;n++)if(-1===h.inArray(e[n],t))return!1;var o=t.length;if(r!==o)for(n=0;o>n;n++)if(-1===h.inArray(t[n],e))return!1;return!0}function u(e){if(0==e.indexOf("{")){var t=e.lastIndexOf("}");return t>1&&e.substring(1,t)}return!1}function d(e){if(0==e.indexOf("(")){var t=e.lastIndexOf(")");return-1!=t&&e.substring(1,t)||""}return!1}var p=Object.assign||function(e){for(var t=1;tn?1:-1)}).forEach(function(n){var r=e[n];t.push({name:n.slice(0,-1),icon:"checkbox",mtime:r.mtime,homepage:r.homepage,latest:r.latest,hideLongProtocol:r.hideLongProtocol,hideShortProtocol:r.hideShortProtocol})}),t},reloadRules:function(e){var t=this,n=S.get("activeRules",!0)||e.current,r=[],o={};r.push(H),o.Default={name:H,fixed:!0,value:e.defaultRules,selected:!e.defaultRulesIsDisabled,isDefault:!0,active:n===H},e.list.forEach(function(e){r.push(e.name),e=o[e.name]={name:e.name,value:e.data,selected:e.selected,active:n===e.name}}),t.state.rules.reset(r,o),t.setState({})},reloadValues:function(e){var t=this,n=S.get("activeValues",!0)||e.current,r=[],o={};e.list.forEach(function(e){r.push(e.name),o[e.name]={name:e.name,value:e.data,active:n===e.name}}),t.state.values.reset(r,o),t.setState({})},reloadData:function(){var e=this,t=h(".w-reload-data-tips").closest(".w-confirm-reload-dialog"),n=t.find(".w-reload-data-tips").attr("data-name"),r="rules"===n,o=function(t,n){return t?void(r?(e.reloadRules(t),e.triggerRulesChange("reload")):(e.reloadValues(t),e.triggerValuesChange("reload"))):void E.showSystemError(n)};r?I.rules.list(o):I.values.list(o)},showReloadRules:function(){if("rules"===this.state.name&&this.rulesChanged){this.rulesChanged=!1;var e=this.state.rules.hasChanged();this.showReloadDialog("The rules has been modified.
Do you want to reload it.",e)}},showReloadValues:function(){if("values"===this.state.name&&this.valuesChanged){this.valuesChanged=!1;var e=this.state.values.hasChanged();this.showReloadDialog("The values has been modified.
Do you want to reload it.",e)}},componentDidUpdate:function(){this.showReloadRules(),this.showReloadValues()},showReloadDialog:function(e,t){var n=this.refs.confirmReload;n.show(),t&&(e+='

Note: There are unsaved changes.

'),h(".w-reload-data-tips").html(e).attr("data-name",this.state.name)},componentDidMount:function(){function e(e){if(e=e&&e.trim()){var t=e.indexOf("://")+3;if(e=-1!=t?e.substring(t):e,0===e.indexOf("{"))return t=e.lastIndexOf("}"),t>1?e.substring(1,t):null}}var t=this,n=new m(".w-copy-text");n.on("error",function(e){alert("Copy failed.")}),n=new m(".w-copy-text-with-tips"),n.on("error",function(e){Q.error("Copy failed.")}),n.on("success",function(e){Q.success("Copied clipboard.")});var r=function(e){e.preventDefault()};L.on("rulesChanged",function(){t.rulesChanged=!0,t.showReloadRules()}),L.on("updateGlobal",function(){t.setState({})}),L.on("valuesChanged",function(){t.valuesChanged=!0,t.showReloadValues()}),L.on("disableAllPlugins",function(e){t.disableAllPlugins(e)}),L.on("showFiles",function(e,n){t.files=t.files||n,t.showFiles()}),L.on("activeRules",function(){var e=I.rulesModal;e.exists(I.activeRulesName)&&(t.setRulesActive(I.activeRulesName,e),t.setState({}))}),L.on("activeValues",function(){var e=I.valuesModal;e.exists(I.activeValuesName)&&(t.setValuesActive(I.activeValuesName,e),t.setState({}))}),h(document).on("dragleave",r).on("dragenter",r).on("dragover",r).on("drop",function(e){e.preventDefault();var n=e.originalEvent.dataTransfer.files,r=n&&n[0];if(r){if(h(".w-files-dialog.in").length)return L.trigger("uploadFile",r);var o,i=t.state.name,a=h(e.target);if("network"===i){if(a.closest(".w-frames-composer").length)return;if(/\.log$/i.test(r.name))return r.size>Y?alert("The file size cannot exceed 2m."):void E.readFileAsText(r,function(e){e=E.parseLogs(e),e&&(null!==I.uploadLogs&&(I.uploadLogs=e),L.trigger("showLog"),L.trigger("uploadLogs",{logs:e}))});o=new FormData,o.append("importSessions",n[0]),t.uploadSessionsForm(o)}a.closest(".w-divider-left").length&&("rules"===i?(o=new FormData,o.append("rules",n[0]),t.rulesForm=o,t.refs.confirmImportRules.show()):"values"===i&&(o=new FormData,o.append("values",n[0]),t.valuesForm=o,t.refs.confirmImportValues.show()))}}).on("keydown",function(e){(e.metaKey||e.ctrlKey)&&82===e.keyCode&&e.preventDefault()});var i=function(e){var n=e.target;"A"==n.nodeName&&h(n).parent().hasClass("w-list-data")&&("rules"==t.state.name?t.removeRules():t.removeValues()),e.preventDefault()};h(window).on("hashchange",function(){var e=l(t.state);e&&-1==e.indexOf("rules")?-1!=e.indexOf("values")?t.showValues():-1!=e.indexOf("plugins")?t.showPlugins():t.showNetwork():t.showRules()}).on("keyup",function(e){if(27==e.keyCode){t.setMenuOptionsState();var n=h(".modal");"function"==typeof n.modal&&n.modal("hide")}}).on("keydown",function(e){if(46==e.keyCode&&i(e),!e.ctrlKey&&!e.metaKey)return void(112===e.keyCode?(e.preventDefault(),window.open("https://avwo.github.io/whistle/webui/"+t.state.name+".html")):116===e.keyCode&&e.preventDefault());77===e.keyCode&&t.toggleLeftMenu();var n="network"===t.state.name;n&&88==e.keyCode&&(E.isFocusEditor()||h(e.target).closest(".w-frames-list").length||t.clear()),68==e.keyCode&&i(e);var r=t.state.network;if(n&&83===e.keyCode){if(e.preventDefault(),h(".modal.in").length)return void(h(f.findDOMNode(t.refs.chooseFileType)).is(":visible")&&t.exportBySave());var o=e.target.nodeName;if("INPUT"===o||"TEXTAREA"===o)return;var a=r&&r.hasSelected();return void(a&&(h(f.findDOMNode(t.refs.chooseFileType)).modal("show"),setTimeout(function(){f.findDOMNode(t.refs.sessionsName).focus()},500)))}n&&73===e.keyCode&&(t.importSessions(e),e.preventDefault()),(E.IS_MACOS&&"Backspace"===e.key&&e.metaKey===!0||!E.IS_MACOS&&"Delete"===e.key)&&("rules"===t.state.name?t.removeRules():"values"===t.state.name&&t.removeValues())});var a=function(){var e=t.state.name;return"rules"===e||"values"===e};h(document.body).on("mouseenter",W,function(t){if(a()&&(t.ctrlKey||t.metaKey)){var n=h(this);(n.hasClass("cm-js-http-url")||n.hasClass("cm-string")||n.hasClass("cm-js-at")||e(n.text()))&&n.addClass("w-is-link")}}).on("mouseleave",W,function(e){h(this).removeClass("w-is-link")}).on("mousedown",W,function(n){if(a()&&(n.ctrlKey||n.metaKey)){var r=h(this),o=r.text();if(r.hasClass("cm-js-at"))return void(_.test(o)&&window.open((RegExp.$1||"http:")+RegExp.$2));if(r.hasClass("cm-string"))return void(X.test(o)&&window.open((RegExp.$1||"http:")+RegExp.$2));if(r.hasClass("cm-js-http-url"))return/^https?:\/\//i.test(o)||(o="http:"+("/"===o[0]?"":"//")+o),void window.open(o);var i=e(o);return i?void t.showAndActiveValues({name:i}):void 0}}),"network"==t.state.name&&t.startLoadData(),I.on("settings",function(e){var n=t.state,r=e.server;(n.interceptHttpsConnects!==e.interceptHttpsConnects||n.enableHttp2!==e.enableHttp2||n.disabledAllRules!==e.disabledAllRules||n.allowMultipleChoice!==e.allowMultipleChoice||n.disabledAllPlugins!==e.disabledAllPlugins||n.multiEnv!=r.multiEnv||n.classic!=e.classic||n.ndp!=r.ndp||n.ndr!=r.ndr)&&(n.interceptHttpsConnects=e.interceptHttpsConnects,n.enableHttp2=e.enableHttp2,n.disabledAllRules=e.disabledAllRules,n.allowMultipleChoice=e.allowMultipleChoice,n.disabledAllPlugins=e.disabledAllPlugins,n.multiEnv=r.multiEnv,n.ndp=r.ndp,n.ndr=r.ndr,n.classic=e.classic,D.setPlugins(n),t.setState({}))}),I.on("rules",function(e){var n=t.state.rules,r=e.list;e.defaultRulesIsDisabled||-1!==r.indexOf("Default")||r.unshift("Default");var o=n.getSelectedNames();c(o,r)||(t.reselectRules(e,!0),t.setState({}))}),I.on("serverInfo",function(e){t.serverInfo=e}),L.on("executeComposer",function(){t.autoRefresh&&t.autoRefresh()});var s=function(e){return e&&!e.selected?[e]:void 0};L.on("updateUI",function(){t.setState({})}),L.on("replaySessions",function(e,n,r){var o=t.state.network,i=s(n)||o&&o.getSelectedList(),a=i&&i.length;return r&&1===a?(t.replayList=i,t.refs.setReplayCount.show(),void setTimeout(function(){var e=f.findDOMNode(t.refs.replayCount);e.select(),e.focus()},300)):void t.replay(e,i)}),L.on("importSessions",t.importSessions),L.on("filterSessions",t.showSettings),L.on("exportSessions",function(e,n){t.exportData(e,s(n))}),L.on("abortRequest",function(e,n){t.abort(s(n))}),L.on("uploadSessions",function(e,n){var r=s(n&&n.curItem),o=n&&n.upload;if("function"==typeof o){if(!r){var i=t.state.network;r=i&&i.getSelectedList(),r&&r.length&&(r=h.extend(!0,[],r))}r&&o(r)}}),L.on("removeIt",function(e,n){var r=t.state.network;n&&r&&(r.remove(n),t.setState({}))}),L.on("removeOthers",function(e,n){var r=t.state.network;n&&r&&(n.selected?r.removeUnselectedItems():r.removeOthers(n),t.setState({}))}),L.on("clearAll",t.clear),L.on("removeSelected",function(){var e=t.state.network;e&&(e.removeSelectedItems(),t.setState({}))}),L.on("removeUnselected",function(){var e=t.state.network;e&&(e.removeUnselectedItems(),t.setState({}))}),L.on("removeUnmarked",function(){var e=t.state.network;e&&(e.removeUnmarkedItems(),t.setState({}))}),L.on("saveRules",function(e,n){n.changed||!n.selected?t.selectRules(n):t.unselectRules(n)}),L.on("saveValues",function(e,n){t.saveValues(n)}),L.on("renameRules",function(e,n){t.showEditRules(n)}),L.on("renameValues",function(e,n){t.showEditValues(n)}),L.on("deleteRules",function(e,n){setTimeout(function(){t.removeRules(n)},0)}),L.on("deleteValues",function(e,n){setTimeout(function(){t.removeValues(n)},0)}),L.on("createRules",t.showCreateRules),L.on("createValues",t.showCreateValues),L.on("createRuleGroup",t.showCreateRuleGroup),L.on("createValueGroup",t.showCreateValueGroup),L.on("exportRules",t.exportData),L.on("exportValues",t.exportData),L.on("importRules",t.importRules),L.on("importValues",t.importValues),L.on("uploadRules",function(e,n){var r=o(n);r.append("replaceAll","1"),t._uploadRules(r,!0)}),L.on("uploadValues",function(e,n){var r=o(n,"values");r.append("replaceAll","1"),t._uploadValues(r,!0)});var u;h(document).on("visibilitychange",function(){clearTimeout(u),document.hidden||(u=setTimeout(function(){var e=t.scrollerAtBottom&&t.scrollerAtBottom();t.setState({},function(){e&&t.autoRefresh()})},100))}),setTimeout(function(){I.checkUpdate(function(e){e&&e.showUpdate&&t.setState({version:e.version,latestVersion:e.latestVersion},function(){h(f.findDOMNode(t.refs.showUpdateTipsDialog)).modal("show")})})},1e4),I.getLogIdList=this.getLogIdListFromRules,I.importAnySessions=t.importAnySessions,I.on("plugins",function(e){var n=t.createPluginsOptions(e.plugins),r=t.state.pluginsOptions,o=t.state.disabledPlugins,i=e.disabledPlugins;if(n.length==r.length){for(var a,s=0,l=n.length;l>s;s++){var c=n[s],u=r[s];if(c.name!=u.name||c.latest!==u.latest||c.mtime!=u.mtime||o[c.name]!=i[c.name]||c.hideLongProtocol!=u.hideLongProtocol||c.hideShortProtocol!=u.hideShortProtocol){a=!0;break}}if(!a)return}var d={plugins:e.plugins,disabledPlugins:e.disabledPlugins,pluginsOptions:n};D.setPlugins(d),t.setState(d)});try{var d=window.parent.onWhistleReady;"function"==typeof d&&d({url:location.href,importSessions:t.importAnySessions,importHarSessions:t.importHarSessions,clearSessions:t.clear})}catch(p){}},importAnySessions:function(e){e&&(Array.isArray(e)?I.addNetworkList(e):this.importHarSessions(e))},donotShowAgain:function(){I.donotShowAgain()},hideUpdateTipsDialog:function(){h(f.findDOMNode(this.refs.showUpdateTipsDialog)).modal("hide")},getAllRulesText:function(){var e=" "+this.getAllRulesValue();return e.replace(/#[^\r\n]*[\r\n]/g,"\n")},getLogIdListFromRules:function(){var e=this.getAllRulesText();if(e=e.match(/\slog:\/\/(?:\{[^\s]{1,36}\}|[^/\\{}()<>\s]{1,36})\s/g)){var t={};e=e.map(function(e){return e=E.removeProtocol(e.trim()),"{"===e[0]&&(e=e.slice(1,-1)),e}).filter(function(e){return e?t[e]?!1:(t[e]=1,!0):!1})}return e},getWeinreFromRules:function(){var e=this.state.values,t=this.getAllRulesText();if(t=t.match(/\sweinre:\/\/[^\s#]+\s/g)){var n={};t=t.map(function(t){t=E.removeProtocol(t.trim());var n=d(t);if(n!==!1)return n;var r=u(t);return r!==!1?(r=e.get(r),r&&r.value):t}).filter(function(e){return e?n[e]?!1:(n[e]=1,!0):!1})}return t},getValuesFromRules:function(){var e=" "+this.getAllRulesValue();return(e=e.match(/\s(?:[\w-]+:\/\/)?\{[^\s#]+\}/g))&&(e=e.map(function(e){return u(E.removeProtocol(e.trim()))}).filter(function(e){return!!e})),e},getAllRulesValue:function(){var e=[],t=[],n=[],r=this.state.rules;return r.list.forEach(function(o){var i=r.get(o),a=i.value||"";i.active?t.push(a):i.selected?n.push(a):e.push(a)}),r=this.state.values,r.list.forEach(function(t){/\.rules$/.test(t)&&e.push(r.get(t).value)}),t.concat(n).concat(e).join("\r\n")},preventBlur:function(e){"INPUT"!=e.target.nodeName&&e.preventDefault()},startLoadData:function(){function e(o,a){o=o||r.state.network,clearTimeout(i),i=null,"network"==r.state.name&&o&&(a=a||n(),o.update(a)&&a&&(i=setTimeout(e,3e3)),document.hidden||r.setState({network:o},function(){a&&t()}))}function t(){s.scrollTop=1e7}function n(){var e=a.find(".ReactVirtualized__Grid__innerScrollContainer")[0];return e?s.scrollTop+s.offsetHeight+5>e.offsetHeight:!0}var r=this;if(r._updateNetwork)return void r._updateNetwork();var o,i,a=h(".w-req-data-list .ReactVirtualized__Grid:first").scroll(function(){var t=r.state.network;o&&clearTimeout(o),o=null,t&&n()&&(o=setTimeout(function(){e(t,!0)},1e3))}),s=a[0];this.container=a,I.on("data",e),h(document).on("dblclick",".w-network-menu-list",function(e){h(e.target).hasClass("w-network-menu-list")&&(s.scrollTop=0)}),r._updateNetwork=e,r.autoRefresh=t,r.scrollerAtBottom=n},showPlugins:function(e){"plugins"!=this.state.name?(this.setMenuOptionsState(),this.hidePluginsOptions()):e&&!this.state.showLeftMenu&&this.showPluginsOptions(),this.setState({hasPlugins:!0,name:"plugins"}),E.changePageName("plugins")},handleAction:function(e){if("top"===e)return void(this.container[0].scrollTop=0);if("bottom"===e)return this.autoRefresh();if("pause"===e)return I.pauseNetworkRecord();var t="refresh"===e;return I.stopNetworkRecord(!t),t?this.autoRefresh():void 0},showNetwork:function(e){return"network"==this.state.name?void(e&&!this.state.showLeftMenu&&this.showNetworkOptions()):(this.setMenuOptionsState(),this.setState({hasNetwork:!0,name:"network"},function(){this.startLoadData()}),void E.changePageName("network"))},handleNetwork:function(e,t){var n=this.state.network;"removeAll"==e.id?this.clear():"removeSelected"==e.id?n&&n.removeSelectedItems():"removeUnselected"==e.id?n&&n.removeUnselectedItems():"exportWhistleFile"==e.id?this.exportSessions("whistle"):"exportSazFile"==e.id?this.exportSessions("Fiddler"):"importSessions"==e.id&&this.importSessions(t),this.hideNetworkOptions()},importData:function(e){switch(this.state.name){case"network":this.importSessions(e);break;case"rules":this.importRules(e);break;case"values":this.importValues(e)}},exportData:function(e,t){switch(this.state.name){case"network":var n=this.state.network,r=Array.isArray(t)||n&&n.hasSelected();if(this.currentFoucsItem=t,r){h(f.findDOMNode(this.refs.chooseFileType)).modal("show");var o=this;setTimeout(function(){f.findDOMNode(o.refs.sessionsName).focus()},500)}else Q.info("Please select the sessions first.");break;case"rules":this.showAndActiveRules({id:"exportRules"});break;case"values":this.showAndActiveValues({id:"exportValues"})}},importSessions:function(e,t){var n=this,r=e&&e.shiftKey||t&&t.shiftKey;return r?(n.refs.importRemoteSessions.show(),void setTimeout(function(){var e=f.findDOMNode(n.refs.sessionsRemoteUrl);e.focus(),e.select()},500)):void f.findDOMNode(n.refs.importSessions).click()},importRemoteSessions:function(e){if(!e||"click"===e.type||13===e.keyCode){var t=this,n=f.findDOMNode(t.refs.sessionsRemoteUrl),r=i(n.value);r&&(t.setState({pendingSessions:!0}),I.importRemote({url:r},a(function(e,n){t.setState({pendingSessions:!1}),e||(t.refs.importRemoteSessions.hide(),t.importAnySessions(n))})))}},importRules:function(e,t){var n=this,r=e&&e.shiftKey||t&&t.shiftKey;return r?(n.refs.importRemoteRules.show(),void setTimeout(function(){var e=f.findDOMNode(n.refs.rulesRemoteUrl);e.focus(),e.select()},500)):void f.findDOMNode(n.refs.importRules).click()},importRemoteRules:function(e){if(!e||"click"===e.type||13===e.keyCode){var t=this,n=f.findDOMNode(t.refs.rulesRemoteUrl),r=i(n.value);r&&(t.setState({pendingRules:!0}),I.importRemote({url:r},a(function(e,n){t.setState({pendingRules:!1}),e||(t.refs.importRemoteRules.hide(),n&&(t.rulesForm=o(n),t.refs.confirmImportRules.show()))})))}},importValues:function(e,t){var n=this,r=e&&e.shiftKey||t&&t.shiftKey;return r?(n.refs.importRemoteValues.show(),void setTimeout(function(){var e=f.findDOMNode(n.refs.valuesRemoteUrl);e.focus(),e.select()},500)):void f.findDOMNode(n.refs.importValues).click()},importRemoteValues:function(e){if(!e||"click"===e.type||13===e.keyCode){var t=this,n=f.findDOMNode(t.refs.valuesRemoteUrl),r=i(n.value);r&&(t.setState({pendingValues:!0}),I.importRemote({url:r},a(function(e,n){t.setState({pendingValues:!1}),e||(t.refs.importRemoteValues.hide(),n&&(t.valuesForm=o(n,"values"),t.refs.confirmImportValues.show()))})))}},_uploadRules:function(e,t){var n=this;I.upload.importRules(e,function(e,r){e?0===e.ec?(n.reloadRules(e),t&&Q.success("Successful synchronization Rules.")):alert(e.em):E.showSystemError(r)})},_uploadValues:function(e,t){var n=this;I.upload.importValues(e,function(e,r){e||E.showSystemError(r),0===e.ec?(n.reloadValues(e),t&&Q.success("Successful synchronization Values.")):alert(e.em)})},uploadRules:function(e){var t=this.rulesForm;if(this.rulesForm=null,t){var n=t.get("rules");if(!n||!/\.(txt|json)$/i.test(n.name))return alert("Only supports .txt or .json file.");if(n.size>P)return alert("The file size cannot exceed 6m.");h(e.target).hasClass("btn-danger")&&t.append("replaceAll","1"),this._uploadRules(t),f.findDOMNode(this.refs.importRules).value=""}},uploadValues:function(e){var t=this.valuesForm;if(this.valuesForm=null,t){var n=t.get("values");if(!n||!/\.(txt|json)$/i.test(n.name))return alert("Only supports .txt or .json file.");if(n.size>P)return alert("The file size cannot exceed 6m.");h(e.target).hasClass("btn-danger")&&t.append("replaceAll","1"),this._uploadValues(t),f.findDOMNode(this.refs.importValues).value=""}},uploadRulesForm:function(){this.rulesForm=new FormData(f.findDOMNode(this.refs.importRulesForm)),this.refs.confirmImportRules.show()},uploadValuesForm:function(){this.valuesForm=new FormData(f.findDOMNode(this.refs.importValuesForm)),this.refs.confirmImportValues.show()},clearNetwork:function(){this.clear(),this.hideNetworkOptions()},showAndActiveRules:function(e,t){if("rules"===this.state.name)switch(e.id){case"exportRules":this.refs.selectRulesDialog.show();break;case"importRules":this.importRules(t)}else this.setRulesActive(e.name),this.showRules();this.hideRulesOptions()},showRules:function(e){"rules"!=this.state.name?(this.setMenuOptionsState(),this.hideRulesOptions()):e&&!this.state.showLeftMenu&&this.showRulesOptions(e),this.setState({hasRules:!0,name:"rules"}),E.changePageName("rules")},showAndActiveValues:function(e,t){var n=this;if("values"===n.state.name&&e.id)switch(e.id){case"exportValues":n.refs.selectValuesDialog.show();break;case"importValues":this.importValues(t)}else{var r=n.state.values,o=e.name;r.exists(o)?n.setValuesActive(o):I.values.add({name:o},function(e,t){if(e&&0===e.ec){var i=r.add(o);n.setValuesActive(o),n.setState({activeValues:i})}else E.showSystemError(t)}),this.showValues()}n.hideValuesOptions()},showValues:function(e){"values"!=this.state.name?(this.setMenuOptionsState(),this.hideValuesOptions()):e&&!this.state.showLeftMenu&&this.showValuesOptions(e),this.setState({hasValues:!0,name:"values"}),E.changePageName("values")},showNetworkOptions:function(){"network"==this.state.name&&this.setState({showNetworkOptions:!0})},hideNetworkOptions:function(){this.setState({showRemoveOptions:!1,showAbortOptions:!1,showNetworkOptions:!1})},showRemoveOptions:function(){this.setState({showRemoveOptions:!0})},showAbortOptions:function(){var e=this.state.network,t=e&&e.getSelectedList();ee[0].disabled=!t||!t.filter(E.canAbort).length,this.setState({showAbortOptions:!0})},showCreateOptions:function(){this.setState({showCreateOptions:!0})},hideCreateOptions:function(){this.setState({showCreateOptions:!1})},hideRemoveOptions:function(){this.setState({showRemoveOptions:!1})},hideAbortOptions:function(){this.setState({showAbortOptions:!1})},showHelpOptions:function(){this.setState({showHelpOptions:!0})},hideHelpOptions:function(){this.setState({showHelpOptions:!1})},showHasNewVersion:function(e){this.setState({hasNewVersion:e})},showRulesOptions:function(e){var t,n=this,r=n.state.rules,o=r.data,i=r.list;if("rules"===n.state.name){var a=i.length;K[0].disabled=2>a,K[1].disabled=1>a,t=K}else t=[],i.forEach(function(e){t.push(o[e])});n.setState({rulesOptions:t,showRulesOptions:!0})},hideRulesOptions:function(){this.setState({showRulesOptions:!1})},showValuesOptions:function(e){var t,n=this,r=this.state.values.list;if("values"===n.state.name){var o=r.length;q[0].disabled=2>o,q[1].disabled=1>o,t=q}else{t=[];var i=n.getValuesFromRules()||[];i=E.unique(r.concat(i));var a=[];i.forEach(function(e){var n=-1!=r.indexOf(e),o={name:e,icon:n?"edit":"plus"};n?t.push(o):a.push(o)}),t=a.concat(t)}n.setState({valuesOptions:t,showValuesOptions:!0})},hideValuesOptions:function(){this.setState({showValuesOptions:!1})},showAndActivePlugins:function(e){this.hidePluginsOptions(),this.showPlugins(),this.showPluginTab(e.name)},showPluginTab:function(e){var t="Home",n=this.state.tabs||[];if(e&&e!=t)for(var r=0,o=n.length;o>r;r++)if(n[r].name==e){t=e,e=null;break}if(e&&this.state.plugins[e+":"]){if(n.length>=F)return alert("You can only open "+F+" tabs."),this.showPlugins();t=e,n.push({name:e,url:"plugin."+e+"/"})}this.setState({active:t,tabs:n})},activePluginTab:function(e){this.showPluginTab(h(e.target).attr("data-name"))},closePluginTab:function(e){var t=h(e.target).attr("data-name"),n=this.state.tabs||[];if(n)for(var r=0,o=n.length;o>r;r++)if(n[r].name==t){n.splice(r,1);var i=this.state.active;if(i==t){var a=n[r]||n[r-1];this.state.active=a?a.name:null}return this.setState({tabs:n})}},showPluginsOptions:function(e){this.setState({showPluginsOptions:!0})},hidePluginsOptions:function(){this.setState({showPluginsOptions:!1})},showWeinreOptionsQuick:function(e){var t=this.getWeinreFromRules();return t&&t.length?void h(e.target).closest("div").addClass("w-menu-wrapper-show"):void this.showAnonymousWeinre()},showWeinreOptions:function(e){var t=this,n=t.state.weinreOptions=t.getWeinreFromRules()||[];t.state.weinreOptions=E.unique(n).map(function(e){return{name:e,icon:"console"}}),t.setState({showWeinreOptions:!0})},hideWeinreOptions:function(){this.setState({showWeinreOptions:!1})},setMenuOptionsState:function(e,t){var n={showCreateRules:!1,showCreateValues:!1,showCreateRuleGroup:!1,showCreateValueGroup:!1,showEditRules:!1,showEditValues:!1,showCreateOptions:!1};e&&(n[e]=!0),this.setState(n,t)},hideRulesInput:function(){this.setState({showCreateRules:!1})},hideValuesInput:function(){this.setState({showCreateValues:!1})},hideRuleGroup:function(){this.setState({showCreateRuleGroup:!1})},hideValueGroup:function(){this.setState({showCreateValueGroup:!1})},hideRenameRuleInput:function(){this.setState({showEditRules:!1})},hideRenameValueInput:function(){this.setState({showEditValues:!1})},showCreateRules:function(){var e=f.findDOMNode(this.refs.createRulesInput);this.setState({showCreateRules:!0},function(){e.focus()})},showCreateValues:function(){var e=f.findDOMNode(this.refs.createValuesInput);this.setState({showCreateValues:!0},function(){e.focus()})},showCreateRuleGroup:function(){var e=f.findDOMNode(this.refs.createRuleGroupInput);this.setState({showCreateRuleGroup:!0},function(){e.focus()})},showCreateValueGroup:function(){var e=f.findDOMNode(this.refs.createValueGroupInput);this.setState({showCreateValueGroup:!0},function(){e.focus()})},showHttpsSettingsDialog:function(){h(f.findDOMNode(this.refs.rootCADialog)).modal("show")},interceptHttpsConnects:function(e){var t=this,n=e.target.checked;I.interceptHttpsConnects({interceptHttpsConnects:n?1:0},function(e,r){e&&0===e.ec?t.state.interceptHttpsConnects=n:E.showSystemError(r),t.setState({})})},enableHttp2:function(e){if(!I.supportH2)return window.confirm("The current version of Node.js cannot support HTTP/2.\nPlease upgrade to the latest LTS version.")&&window.open("https://nodejs.org/"),void this.setState({});var t=this,n=e.target.checked;I.enableHttp2({enableHttp2:n?1:0},function(e,r){e&&0===e.ec?t.state.enableHttp2=n:E.showSystemError(r),t.setState({})})},createRules:function(e){if(13==e.keyCode||"click"==e.type){var t=this,n=f.findDOMNode(t.refs.createRulesInput),r=h.trim(n.value);if(!r)return void Q.error("The name cannot be empty.");var o=t.state.rules;return o.exists(r)?void Q.error("The name '"+r+"' already exists."):void I.rules.add({name:r},function(e,i){if(e&&0===e.ec){var a=o.add(r);t.setRulesActive(r),n.value="",n.blur(),t.setState({activeRules:a}),t.triggerRulesChange("create")}else E.showSystemError(i)})}},createValues:function(e){if(13==e.keyCode||"click"==e.type){var t=this,n=f.findDOMNode(t.refs.createValuesInput),r=h.trim(n.value);if(!r)return void Q.error("The name cannot be empty.");if(/\s/.test(r))return void Q.error("The name cannot contain spaces.");if(/#/.test(r))return void Q.error("The name cannot contain #.");var o=t.state.values;return o.exists(r)?void Q.error("The name '"+r+"' already exists."):void I.values.add({ +name:r},function(e,i){if(e&&0===e.ec){var a=o.add(r);t.setValuesActive(r),n.value="",n.blur(),t.setState({activeValues:a}),t.triggerValuesChange("create")}else E.showSystemError(i)})}},showEditRules:function(e){this.currentFoucsRules=e;var t=this.state.rules,n=e||t.getActive();if(n&&!n.isDefault){var r=f.findDOMNode(this.refs.editRulesInput);r.value=n.name,this.setState({showEditRules:!0,selectedRule:n},function(){r.select(),r.focus()})}},showEditValuesByDBClick:function(e){!e.changed&&this.showEditValues()},showEditValues:function(e){this.currentFoucsValues=e;var t=this.state.values,n=e||t.getActive();if(n&&!n.isDefault){var r=f.findDOMNode(this.refs.editValuesInput);r.value=n.name,this.setState({showEditValues:!0,selectedValue:n},function(){r.select(),r.focus()})}},editRules:function(e){if(13==e.keyCode||"click"==e.type){var t=this,n=t.state.rules,r=this.currentFoucsRules||n.getActive();if(r){var o=f.findDOMNode(t.refs.editRulesInput),i=h.trim(o.value);return i?n.exists(i)?void Q.error("The name '"+i+"' already exists."):void I.rules.rename({name:r.name,newName:i},function(e,a){e&&0===e.ec?(n.rename(r.name,i),t.currentFoucsRules||t.setRulesActive(i),o.value="",o.blur(),t.setState(t.currentFoucsRules?{}:{activeValues:r}),t.triggerRulesChange("rename")):E.showSystemError(a)}):void Q.error("The name cannot be empty.")}}},editValues:function(e){if(13==e.keyCode||"click"==e.type){var t=this,n=t.state.values,o=this.currentFoucsValues||n.getActive();if(o){var i=f.findDOMNode(t.refs.editValuesInput),a=h.trim(i.value);return a?n.exists(a)?void Q.error("The name '"+a+"' already exists."):void I.values.rename({name:o.name,newName:a},function(e,s){e&&0===e.ec?(n.rename(o.name,a),t.currentFoucsValues||t.setValuesActive(a),i.value="",i.blur(),t.setState(t.currentFoucsValues?{}:{activeValues:o}),t.triggerValuesChange("rename"),r(o)):E.showSystemError(s)}):void Q.error("The name cannot be empty.")}}},showAnonymousWeinre:function(){this.openWeinre()},showWeinre:function(e){this.openWeinre(e.name)},openWeinre:function(e){window.open("weinre/client/#"+(e||"anonymous")),this.setState({showWeinreOptions:!1})},onClickRulesOption:function(e){e.selected?this.unselectRules(e):this.selectRules(e)},selectRules:function(e){var t=this;return I.rules[e.isDefault?"enableDefault":"select"](e,function(n,r){n&&0===n.ec?(t.reselectRules(n),t.state.rules.setChanged(e.name,!1),t.setState({}),t.triggerRulesChange("save"),t.state.disabledAllRules&&confirm("All rules are disabled, do you want to enable them?")&&I.rules.disableAllRules({disabledAllRules:0},function(e,n){e&&0===e.ec?(t.state.disabledAllRules=!1,t.setState({})):E.showSystemError(n)})):E.showSystemError(r)}),!1},selectRulesByOptions:function(e){var t=this.state.rules.data[h(e.target).attr("data-name")];this[e.target.checked?"selectRules":"unselectRules"](t)},unselectRules:function(e){var t=this;return I.rules[e.isDefault?"disableDefault":"unselect"](e,function(e,n){e&&0===e.ec?(t.reselectRules(e),t.setState({})):E.showSystemError(n)}),!1},reselectRules:function(e,t){var n=this;n.state.rules.clearAllSelected(),n.setSelected(n.state.rules,"Default",!e.defaultRulesIsDisabled,t),e.list.forEach(function(e){n.setSelected(n.state.rules,e,!0,t)})},saveValues:function(e){if(e.changed){var t=this;return I.values.add(e,function(n,o){n&&0===n.ec?(t.setSelected(t.state.values,e.name),t.triggerValuesChange("save"),r(e)):E.showSystemError(o)}),!1}},setSelected:function(e,t,n,r){e.setSelected(t,n)&&(r||e.setChanged(t,!1),this.setState({curSelectedName:t}))},replayCountChange:function(e){var t=e.target.value.replace(/^\s*0*|[^\d]+/,""),n=t.slice(0,2);n>G&&(n=G),this.setState({replayCount:n})},clickReplay:function(e){e.shiftKey?L.trigger("replaySessions",[null,e.shiftKey]):this.replay(e)},replay:function(e,t,n){var r=this.state.network;if(t=Array.isArray(t)?t:r&&r.getSelectedList(),t&&t.length){var o=function(e){var t=e.req;E.canReplay(e)&&I.compose2({useH2:e.useH2?1:"",url:e.url,headers:E.getOriginalReqHeaders(e),method:t.method,base64:t.base64})};if(n>1){n=Math.min(n,G);var i=t[0];if(E.canReplay(i))for(var a=0;n>a;a++)o(i)}else t.slice(0,G).forEach(o);this.autoRefresh&&this.autoRefresh()}},composer:function(){L.trigger("composer")},showFiles:function(){this.refs.filesDialog.show(this.files)},clear:function(){var e=this.state.network;e&&this.setState({network:e.clear(),showRemoveOptions:!1})},removeRules:function(e){var t=this,n=this.state.rules,r=e||n.getActive();if(r&&!r.isDefault){var o=r.name;confirm("Are you sure to delete this rule group '"+o+"'.")&&I.rules.remove({name:o},function(r,i){if(r&&0===r.ec){var a=e&&!e.active?null:n.getSibling(o);a&&t.setRulesActive(a.name),n.remove(o),t.setState(e?{}:{activeRules:a}),t.triggerRulesChange("remove")}else E.showSystemError(i)})}},removeValues:function(e){var t=this,n=this.state.values,r=e||n.getActive();if(r&&!r.isDefault){var o=r.name;confirm("Are you sure to delete this Value '"+o+"'.")&&I.values.remove({name:o},function(r,i){if(r&&0===r.ec){var a=e&&!e.active?null:n.getSibling(o);a&&t.setValuesActive(a.name),n.remove(o),t.setState(e?{}:{activeValues:a}),t.triggerValuesChange("remove")}else E.showSystemError(i)})}},setRulesActive:function(e,t){t=t||this.state.rules,S.set("activeRules",e),t.setActive(e)},setValuesActive:function(e,t){t=t||this.state.values,S.set("activeValues",e),t.setActive(e)},showRulesSettings:function(){h(f.findDOMNode(this.refs.rulesSettingsDialog)).modal("show")},showValuesSettings:function(){h(f.findDOMNode(this.refs.valuesSettingsDialog)).modal("show")},toggleLeftMenu:function(){var e=!this.state.showLeftMenu;this.setState({showLeftMenu:e}),S.set("showLeftMenu",e?1:"")},handleCreate:function(e){"rules"==this.state.name?this.showCreateRules():this.showCreateValues()},onClickMenu:function(e){var t,n=h(e.target).closest("a"),r=this,o="rules"==r.state.name;n.hasClass("w-edit-menu")?o?r.showEditRules():r.showEditValues():n.hasClass("w-delete-menu")?o?r.removeRules():r.removeValues():n.hasClass("w-save-menu")&&(o?(t=r.state.rules.getChangedList(),t.length&&(t.forEach(function(e){r.selectRules(e)}),r.setState({}))):(t=r.state.values.getChangedList(),t.length&&(t.forEach(function(e){r.saveValues(e)}),r.setState({}))))},showSettings:function(e){var t=this.state.name;return"rules"===t?void this.showRulesSettings():"values"===t?void this.showValuesSettings():void this.refs.networkSettings.showDialog()},activeRules:function(e){S.set("activeRules",e.name),this.setState({activeRules:e})},activeValues:function(e){S.set("activeValues",e.name),this.setState({activeValues:e})},onRulesThemeChange:function(e){var t=e.target.value;S.set("rulesTheme",t),this.setState({rulesTheme:t})},onValuesThemeChange:function(e){var t=e.target.value;S.set("valuesTheme",t),this.setState({valuesTheme:t})},onRulesFontSizeChange:function(e){var t=e.target.value;S.set("rulesFontSize",t),this.setState({rulesFontSize:t})},onValuesFontSizeChange:function(e){var t=e.target.value;S.set("valuesFontSize",t),this.setState({valuesFontSize:t})},onRulesLineNumberChange:function(e){var t=e.target.checked;S.set("showRulesLineNumbers",t),this.setState({showRulesLineNumbers:t})},onValuesLineNumberChange:function(e){var t=e.target.checked;S.set("showValuesLineNumbers",t),this.setState({showValuesLineNumbers:t})},onRulesLineWrappingChange:function(e){var t=e.target.checked;S.set("autoRulesLineWrapping",t?1:""),this.setState({autoRulesLineWrapping:t})},onValuesLineWrappingChange:function(e){var t=e.target.checked;S.set("autoValuesLineWrapping",t?1:""),this.setState({autoValuesLineWrapping:t})},disableAllRules:function(e){var t=e.target,n=e.target.checked,r=this;"disableAll"!==t.name&&(n=!n),I.rules.disableAllRules({disabledAllRules:n?1:0},function(e,t){if(e&&0===e.ec){var o=r.state;o.disabledAllRules=n,r.setState({})}else E.showSystemError(t)}),e.preventDefault()},disableAllPlugins:function(e){var t,n=this,r=n.state;t="INPUT"===e.target.nodeName?!e.target.checked:!r.disabledAllPlugins,I.plugins.disableAllPlugins({disabledAllPlugins:t?1:0},function(e,o){e&&0===e.ec?(r.disabledAllPlugins=t,D.setPlugins(r),n.setState({})):E.showSystemError(o)}),e.preventDefault()},disablePlugin:function(e){var t=this,n=e.target;return t.state.ndp?Q.warn("Not allowed disable plugins."):void I.plugins.disablePlugin({name:h(n).attr("data-name"),disabled:n.checked?0:1},function(e,n){e&&0===e.ec?(t.state.disabledPlugins=e.data,D.setPlugins(t.state),t.setState({})):E.showSystemError(n)})},abort:function(e){if(!Array.isArray(e)){var t=this.state.network;e=t&&t.getSelectedList()}e&&(e=e.map(function(e){return E.canAbort(e)?e.id:void 0}),e.length&&I.abort({list:e.join()})),this.hideAbortOptions()},allowMultipleChoice:function(e){var t=this,n=e.target.checked;I.rules.allowMultipleChoice({allowMultipleChoice:n?1:0},function(e,r){e&&0===e.ec?t.setState({allowMultipleChoice:n}):E.showSystemError(r)})},enableBackRulesFirst:function(e){var t=this,n=e.target.checked;I.rules.enableBackRulesFirst({backRulesFirst:n?1:0},function(e,r){e&&0===e.ec?t.setState({backRulesFirst:n}):E.showSystemError(r)})},reinstallAllPlugins:function(){L.trigger("updateAllPlugins","reinstallAllPlugins")},chooseFileType:function(e){var t=e.target.value;S.set("exportFileType",t),this.setState({exportFileType:t})},uploadSessions:function(){this.uploadSessionsForm(new FormData(f.findDOMNode(this.refs.importSessionsForm))),f.findDOMNode(this.refs.importSessions).value=""},importHarSessions:function(e){if(e&&"object"==typeof e){var t=e.log.entries,n=[];t.forEach(function(e){if(e){var t=new Date(e.startedDateTime).getTime();if(!isNaN(t)){var r=e.request||{},o=e.response||{},i=E.parseHeadersFromHar(r.headers),a=E.parseHeadersFromHar(o.headers),s=e.clientIPAddress||"127.0.0.1",l=e.serverIPAddress||"",c={method:r.method,ip:s,httpVersion:"1.1",size:r.bodySize,headers:i.headers,rawHeaderNames:i.rawHeaderNames,body:r.postData&&r.postData.text||""},u={httpVersion:"1.1",statusCode:o.status,statusMessage:o.statusText,size:o.bodySize,headers:a.headers,rawHeaderNames:a.rawHeaderNames,ip:l,body:""},d=o.content,p=d&&d.text;p&&("IMG"===E.getContentType(d.mimeType)||p.length%4===0&&/^[a-z\d+/]+={0,2}$/i.test(p)?u.base64=p:u.body=p);var h={startTime:t,url:r.url,req:c,res:u,rules:{}},g=e.timings||{},f=Math.round(t+E.getTimeFromHar(e.time));t=Math.floor(t+E.getTimeFromHar(g.dns)),h.dnsTime=t,t=Math.floor(t+E.getTimeFromHar(g.connect)+E.getTimeFromHar(g.ssl)+E.getTimeFromHar(g.send)+E.getTimeFromHar(g.blocked)+E.getTimeFromHar(g.wait)),h.requestTime=t,t=Math.floor(t+E.getTimeFromHar(g.receive)),h.responseTime=t,h.endTime=Math.max(t,f),n.push(h)}}}),I.addNetworkList(n)}},uploadSessionsForm:function(e){var t=e.get("importSessions");if(!t||!/\.(txt|json|saz|har)$/i.test(t.name))return alert("Only supports .txt, .json, .saz or .har file.");if(t.size>V)return alert("The file size cannot exceed 64m.");var n=/\.txt$/i.test(t.name);if(n||/\.har$/i.test(t.name)){var r=this;return void E.readFileAsText(t,function(e){try{e=JSON.parse(e),n?I.addNetworkList(e):r.importHarSessions(e)}catch(t){alert("Incorrect file format.")}})}I.upload.importSessions(e,I.addNetworkList)},exportSessions:function(e,t){var n=this.state.network,r=this.currentFoucsItem;if(this.currentFoucsItem=null,r&&h(f.findDOMNode(this.refs.chooseFileType)).is(":visible")||(r=n&&n.getSelectedList()),r&&r.length){var o=f.findDOMNode(this.refs.exportSessionsForm);f.findDOMNode(this.refs.exportFilename).value=t||"",f.findDOMNode(this.refs.exportFileType).value=e,f.findDOMNode(this.refs.sessions).value=JSON.stringify(r,null," "),o.submit()}},exportBySave:function(e){if(!e||"click"===e.type||13===e.keyCode){var t=f.findDOMNode(this.refs.sessionsName),n=t.value.trim();t.value="",this.exportSessions(this.state.exportFileType,n),h(f.findDOMNode(this.refs.chooseFileType)).modal("hide")}},replayRepeat:function(e){e&&"click"!==e.type&&13!==e.keyCode||(this.refs.setReplayCount.hide(),this.replay("",this.replayList,this.state.replayCount),L.trigger("focusNetworkList"))},showAboutDialog:function(e){h(e.target).closest(".w-menu-enable").length&&this.refs.aboutDialog.showAboutInfo()},showCustomCertsInfo:function(){var e=this;e.loadingCerts||(e.loadingCerts=!0,I.getCustomCertsInfo(function(t,n){return e.loadingCerts=!1,t?void e.refs.certsInfoDialog.show(t):void E.showSystemError(n)}))},forceShowLeftMenu:function(){var e=this;clearTimeout(e.hideTimer),clearTimeout(e.showTimer),e.showTimer=setTimeout(function(){e.setState({forceShowLeftMenu:!0})},200)},forceHideLeftMenu:function(){var e=this;clearTimeout(e.hideTimer),clearTimeout(e.showTimer),e.hideTimer=setTimeout(function(){e.setState({forceShowLeftMenu:!1})},500)},render:function(){var e=this.state,t=e.networkMode,n=e.rulesMode,r=e.pluginsMode,o=e.multiEnv,i=e.name;t?i="network":n?i="network"===i?"rules":i:r&&(i="plugins"!==i?"network":i);var a=void 0===i||"network"==i,l="rules"==i,c="values"==i,u="plugins"==i,d=!0,h=!0,f=e.rulesTheme||"cobalt",m=e.valuesTheme||"cobalt",M=e.rulesFontSize||"14px",E=e.valuesFontSize||"14px",D=e.showRulesLineNumbers||!1,L=e.showValuesLineNumbers||!1,S=e.autoRulesLineWrapping,Q=e.autoValuesLineWrapping,O=e.rulesOptions,F=e.pluginsOptions,V={},P=e.showNetworkOptions,Y=e.showRulesOptions,G=e.showValuesOptions,W=e.showPluginsOptions,X=e.showWeinreOptions,_=e.showHelpOptions;O[0].name===H&&O.forEach(function(t,n){t.icon=n&&e.multiEnv?"edit":"checkbox",t.selected||(V[t.name]=1)});var K,q;if(l){q=e.rules.data;for(K in q)if(q[K].active){d=h=q[K].isDefault;break}}else if(c){q=e.values.data;for(K in q)if(q[K].active){d=h=!1;break}}if(e.network){e.network.rulesModal=e.rules,e.rules.editorTheme={theme:f,fontSize:M,lineNumbers:D};var te=e.networkOptions,ne=e.network.hasUnselected();e.network.hasSelected()?(te.forEach(function(e){e.disabled=!1,"removeUnselected"===e.id&&(e.disabled=!ne)}),$.forEach(function(e){e.disabled=!1,"removeUnselected"===e.id&&(e.disabled=!ne)})):(te.forEach(function(e){-1!==J.indexOf(e.id)?e.disabled=!0:"removeUnselected"===e.id&&(e.disabled=!ne)}),te[0].disabled=!ne,$.forEach(function(e){-1!==J.indexOf(e.id)?e.disabled=!0:"removeUnselected"===e.id&&(e.disabled=!ne)}))}var re,oe,ie=e.pendingSessions,ae=e.pendingRules,se=e.pendingValues,le=Z&&!e.forceShowLeftMenu,ce=t||e.showLeftMenu,ue=e.disabledAllPlugins;return ce&&Z&&(re=this.forceShowLeftMenu,oe=this.forceHideLeftMenu),g.createElement("div",{className:"main orient-vertical-box"+(ce?" w-show-left-menu":"")},g.createElement("div",{className:"w-menu w-"+i+"-menu-list",onMouseEnter:re,onMouseLeave:oe},g.createElement("a",{onClick:this.toggleLeftMenu,draggable:"false",className:"w-show-left-menu-btn",style:{display:t?"none":void 0},title:"Dock to "+(ce?"top":"left")+" (Ctrl[Command] + M)"},g.createElement("span",{className:"glyphicon glyphicon-chevron-"+(ce?le?"down":"up":"left")})),g.createElement("div",{style:{display:n?"none":void 0},onMouseEnter:this.showNetworkOptions,onMouseLeave:this.hideNetworkOptions,className:"w-nav-menu w-menu-wrapper"+(P?" w-menu-wrapper-show":"")},g.createElement("a",{onClick:this.showNetwork,onDoubleClick:this.clearNetwork,className:"w-network-menu",title:"Double click to remove all sessions",style:{background:"network"==i?"#ddd":null},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-globe"}),"Network"),g.createElement(T,{ref:"networkMenuItem",options:e.networkOptions,className:"w-network-menu-item",onClickOption:this.handleNetwork})),g.createElement("div",{style:{display:r?"none":void 0},onMouseEnter:this.showRulesOptions,onMouseLeave:this.hideRulesOptions,className:"w-nav-menu w-menu-wrapper"+(Y?" w-menu-wrapper-show":"")+(l?" w-menu-auto":"")},g.createElement("a",{onClick:this.showRules,className:"w-rules-menu",style:{background:"rules"==i?"#ddd":null},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-list"}),"Rules"),g.createElement(T,{ref:"rulesMenuItem",name:"rules"==i?null:"Open",options:O,checkedOptions:V,disabled:e.disabledAllRules,className:"w-rules-menu-item",onClick:this.showRules,onClickOption:this.showAndActiveRules,onChange:this.selectRulesByOptions})),g.createElement("div",{style:{display:r?"none":void 0},onMouseEnter:this.showValuesOptions,onMouseLeave:this.hideValuesOptions,className:"w-nav-menu w-menu-wrapper"+(G?" w-menu-wrapper-show":"")+(c?" w-menu-auto":"")},g.createElement("a",{onClick:this.showValues,className:"w-values-menu",style:{background:"values"==i?"#ddd":null},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-folder-close"}),"Values"),g.createElement(T,{ref:"valuesMenuItem",name:"values"==i?null:"Open",options:e.valuesOptions,className:"w-values-menu-item",onClick:this.showValues,onClickOption:this.showAndActiveValues})),g.createElement("div",{ref:"pluginsMenu",onMouseEnter:this.showPluginsOptions,onMouseLeave:this.hidePluginsOptions,className:"w-nav-menu w-menu-wrapper"+(W?" w-menu-wrapper-show":"")},g.createElement("a",{onClick:this.showPlugins,className:"w-plugins-menu",style:{background:"plugins"==i?"#ddd":null},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-list-alt"}),"Plugins"),g.createElement(T,{ref:"pluginsMenuItem",name:"plugins"==i?null:"Open",options:F,checkedOptions:e.disabledPlugins,disabled:ue,className:"w-plugins-menu-item",onClick:this.showPlugins,onChange:this.disablePlugin,onClickOption:this.showAndActivePlugins})),!e.ndp&&g.createElement("a",{onClick:this.disableAllPlugins,className:"w-enable-plugin-menu",style:{display:u?"":"none",color:ue?"#f66":void 0},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-"+(ue?"ok-circle":"ban-circle")}),ue?"EnableAll":"DisableAll"),g.createElement(z,{hide:!u}),g.createElement("a",{onClick:this.reinstallAllPlugins,className:"w-plugins-menu"+(u?"":" hide"),draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-download-alt"}),"ReinstallAll"),g.createElement("a",{onClick:this.importData,className:"w-import-menu",style:{display:u?"none":""},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-import"}),"Import"),g.createElement("a",{onClick:this.exportData,className:"w-export-menu",style:{display:u?"none":""},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-export"}),"Export"),g.createElement("div",{onMouseEnter:this.showRemoveOptions,onMouseLeave:this.hideRemoveOptions,style:{display:a?"":"none"},className:"w-menu-wrapper w-remove-menu-list w-menu-auto"+(e.showRemoveOptions?" w-menu-wrapper-show":"")},g.createElement("a",{onClick:this.clear,className:"w-remove-menu",title:"Ctrl[Command] + X",draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-remove"}),"Clear"),g.createElement(T,{options:$,className:"w-remove-menu-item",onClickOption:this.handleNetwork})),g.createElement("a",{onClick:this.onClickMenu,className:"w-save-menu",style:{display:a||u?"none":""},draggable:"false",title:"Ctrl[Command] + S"},g.createElement("span",{className:"glyphicon glyphicon-save-file"}),"Save"),g.createElement("a",{className:"w-create-menu",style:{display:a||u?"none":""},draggable:"false",onClick:this.handleCreate},g.createElement("span",{className:"glyphicon glyphicon-plus"}),"Create"),g.createElement("a",{onClick:this.onClickMenu,className:"w-edit-menu"+(d?" w-disabled":""),style:{display:a||u?"none":""},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-edit"}),"Rename"),g.createElement("div",{onMouseEnter:this.showAbortOptions,onMouseLeave:this.hideAbortOptions,style:{display:a?"":"none"},className:"w-menu-wrapper w-abort-menu-list w-menu-auto"+(e.showAbortOptions?" w-menu-wrapper-show":"")},g.createElement("a",{onClick:this.clickReplay,className:"w-replay-menu",draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-repeat"}),"Replay"),g.createElement(T,{options:ee,className:"w-remove-menu-item",onClickOption:this.abort})),g.createElement("a",{onClick:this.composer,className:"w-composer-menu",style:{display:a?"":"none"},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-edit"}),"Compose"),g.createElement(v,{hide:!a,onClick:this.handleAction}),g.createElement("a",{onClick:this.onClickMenu,className:"w-delete-menu"+(h?" w-disabled":""),style:{display:a||u?"none":""},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-trash"}),"Delete"),g.createElement(B,{onClick:this.showSettings,disabledRules:l&&e.disabledAllRules,isNetwork:a,hide:u}),g.createElement("a",{onClick:this.showFiles,className:"w-files-menu",draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-upload"}),"Files"),g.createElement("div",{onMouseEnter:this.showWeinreOptions,onMouseLeave:this.hideWeinreOptions,className:"w-menu-wrapper"+(X?" w-menu-wrapper-show":"")},g.createElement("a",{onClick:this.showWeinreOptionsQuick,onDoubleClick:this.showAnonymousWeinre,className:"w-weinre-menu",draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-console"}),"Weinre"),g.createElement(T,{ref:"weinreMenuItem",name:"anonymous",options:e.weinreOptions,className:"w-weinre-menu-item",onClick:this.showAnonymousWeinre,onClickOption:this.showWeinre})),g.createElement("a",{onClick:this.showHttpsSettingsDialog,className:"w-https-menu",draggable:"false",style:{color:I.hasInvalidCerts?"red":void 0}},g.createElement("span",{className:"glyphicon glyphicon-"+(e.interceptHttpsConnects?"ok":"lock")}),"HTTPS"),g.createElement("div",{onMouseEnter:this.showHelpOptions,onMouseLeave:this.hideHelpOptions,className:"w-menu-wrapper"+(_?" w-menu-wrapper-show":"")},g.createElement("a",{className:"w-help-menu"+(e.hasNewVersion?" w-menu-enable":""),onClick:this.showAboutDialog,title:e.hasNewVersion?"There is a new version of whistle":void 0,href:e.hasNewVersion?void 0:"https://github.com/avwo/whistle#whistle",target:e.hasNewVersion?void 0:"_blank"},g.createElement("span",{className:"glyphicon glyphicon-question-sign"}),"Help"),g.createElement(T,{ref:"helpMenuItem",options:e.helpOptions,name:g.createElement(b,{ref:"aboutDialog",onClick:this.hideHelpOptions,onCheckUpdate:this.showHasNewVersion}),className:"w-help-menu-item"})),g.createElement(y,{name:i}),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showCreateRules?"block":"none"},className:"shadow w-input-menu-item w-create-rules-input"},g.createElement("input",{ref:"createRulesInput",onKeyDown:this.createRules,onBlur:this.hideRulesInput,type:"text",maxLength:"64",placeholder:"Input the name"}),g.createElement("button",{type:"button",onClick:this.createRules,className:"btn btn-primary"},"+Rule")),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showCreateValues?"block":"none"},className:"shadow w-input-menu-item w-create-values-input"},g.createElement("input",{ref:"createValuesInput",onKeyDown:this.createValues,onBlur:this.hideValuesInput,type:"text",maxLength:"64",placeholder:"Input the key"}),g.createElement("button",{type:"button",onClick:this.createValues,className:"btn btn-primary"},"+Key")),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showCreateRuleGroup?"block":"none"},className:"shadow w-input-menu-item w-create-rules-input"},g.createElement("input",{ref:"createRuleGroupInput",onKeyDown:this.createRules,onBlur:this.hideRuleGroup,type:"text",maxLength:"64",placeholder:"Input the group name"}),g.createElement("button",{type:"button",onClick:this.createRuleGroup,className:"btn btn-primary"},"+Group")),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showCreateValueGroup?"block":"none"},className:"shadow w-input-menu-item w-create-values-input"},g.createElement("input",{ref:"createValueGroupInput",onKeyDown:this.createValues,onBlur:this.hideValueGroup,type:"text",maxLength:"64",placeholder:"Input the group name"}),g.createElement("button",{type:"button",onClick:this.createValueGroup,className:"btn btn-primary"},"+Group")),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showEditRules?"block":"none"},className:"shadow w-input-menu-item w-edit-rules-input"},g.createElement("input",{ref:"editRulesInput",onKeyDown:this.editRules,onBlur:this.hideRenameRuleInput,type:"text",maxLength:"64"}),g.createElement("button",{type:"button",onClick:this.editRules,className:"btn btn-primary"},"OK")),g.createElement("div",{onMouseDown:this.preventBlur,style:{display:e.showEditValues?"block":"none"},className:"shadow w-input-menu-item w-edit-values-input"},g.createElement("input",{ref:"editValuesInput",onKeyDown:this.editValues,onBlur:this.hideRenameValueInput,type:"text",maxLength:"64"}),g.createElement("button",{type:"button",onClick:this.editValues,className:"btn btn-primary"},"OK"))),g.createElement("div",{className:"w-container box fill"},g.createElement("div",{className:"w-left-menu"+(re?" w-hover-left-menu":""),style:{display:t||le?"none":void 0},onMouseEnter:re,onMouseLeave:oe},g.createElement("a",{onClick:this.showNetwork,onDoubleClick:this.clearNetwork,title:"Double click to remove all sessions",className:"w-network-menu",style:{background:"network"==i?"#ddd":null,display:n?"none":void 0},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-globe"}),g.createElement("i",null,"Network")),g.createElement("a",{onClick:this.showRules,className:"w-save-menu w-rules-menu",onDoubleClick:this.onClickMenu,title:"Double click to save all changed",style:{background:"rules"==i?"#ddd":null,display:r?"none":void 0},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-list"+(e.disabledAllRules?" w-disabled":"")}),g.createElement("i",null,!e.classic&&!e.ndr&&g.createElement("input",{onChange:this.disableAllRules,type:"checkbox",onClick:s,checked:!e.disabledAllRules,title:e.disabledAllRules?"Click to enable all rules":"Click to disable all rules"})," Rules"),g.createElement("i",{className:"w-menu-changed",style:{display:e.rules.hasChanged()?void 0:"none"}},"*")),g.createElement("a",{onClick:this.showValues,className:"w-save-menu w-values-menu",onDoubleClick:this.onClickMenu,title:"Double click to save all changed",style:{background:"values"==i?"#ddd":null,display:r?"none":void 0},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-folder-close"}),g.createElement("i",null,"Values"),g.createElement("i",{className:"w-menu-changed",style:{display:e.values.hasChanged()?void 0:"none"}},"*")),g.createElement("a",{onClick:this.showPlugins,className:"w-plugins-menu",style:{background:"plugins"==i?"#ddd":null},draggable:"false"},g.createElement("span",{className:"glyphicon glyphicon-list-alt"+(ue?" w-disabled":"")}),g.createElement("i",null,!e.classic&&!e.ndp&&g.createElement("input",{onChange:this.disableAllPlugins,type:"checkbox",onClick:s,checked:!ue,title:ue?"Click to enable all plugins":"Click to disable all plugins"})," Plugins"))),e.hasRules?g.createElement(A,{ref:"rules",disabled:e.disabledAllRules,theme:f,lineWrapping:S,fontSize:M,lineNumbers:D,onSelect:this.selectRules,onUnselect:this.unselectRules,onActive:this.activeRules,modal:e.rules,hide:"rules"==i?!1:!0,name:"rules"}):void 0,e.hasValues?g.createElement(A,{theme:m,onDoubleClick:this.showEditValuesByDBClick,fontSize:E,lineWrapping:Q,lineNumbers:L,onSelect:this.saveValues,onActive:this.activeValues,modal:e.values,hide:"values"==i?!1:!0,className:"w-values-list"}):void 0,e.hasNetwork?g.createElement(w,{ref:"network",hide:"rules"===i||"values"===i||"plugins"===i,modal:e.network}):void 0,e.hasPlugins?g.createElement(C,p({},e,{onOpen:this.activePluginTab,onClose:this.closePluginTab,onActive:this.activePluginTab,onChange:this.disablePlugin,ref:"plugins",hide:"plugins"==i?!1:!0})):void 0),g.createElement("div",{ref:"rulesSettingsDialog",className:"modal fade w-rules-settings-dialog"},g.createElement("div",{className:"modal-dialog"},g.createElement("div",{className:"modal-content"},g.createElement("div",{className:"modal-body"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},g.createElement("span",{"aria-hidden":"true"},"×")),g.createElement(x,{theme:f,fontSize:M,lineNumbers:D,lineWrapping:S,onLineWrappingChange:this.onRulesLineWrappingChange,onThemeChange:this.onRulesThemeChange,onFontSizeChange:this.onRulesFontSizeChange,onLineNumberChange:this.onRulesLineNumberChange}),g.createElement("p",{className:"w-editor-settings-box"},g.createElement("label",null,g.createElement("input",{type:"checkbox",checked:e.backRulesFirst,onChange:this.enableBackRulesFirst})," Back rules first")),g.createElement("p",{className:"w-editor-settings-box"},g.createElement("label",{style:{color:o?"#aaa":void 0}},g.createElement("input",{type:"checkbox",disabled:o,checked:!o&&e.allowMultipleChoice,onChange:this.allowMultipleChoice})," Use multiple rules")),!e.ndr&&g.createElement("p",{className:"w-editor-settings-box"},g.createElement("label",{style:{color:e.disabledAllRules?"#f66":void 0}},g.createElement("input",{type:"checkbox",checked:e.disabledAllRules,onChange:this.disableAllRules,name:"disableAll"})," Disable all rules"))),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))))),g.createElement("div",{ref:"valuesSettingsDialog",className:"modal fade w-values-settings-dialog"},g.createElement("div",{className:"modal-dialog"},g.createElement("div",{className:"modal-content"},g.createElement("div",{className:"modal-body"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},g.createElement("span",{"aria-hidden":"true"},"×")),g.createElement(x,{theme:m,fontSize:E,lineNumbers:L,lineWrapping:Q,onLineWrappingChange:this.onValuesLineWrappingChange,onThemeChange:this.onValuesThemeChange,onFontSizeChange:this.onValuesFontSizeChange,onLineNumberChange:this.onValuesLineNumberChange})),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))))),g.createElement(N,{ref:"networkSettings"}),g.createElement("div",{ref:"rootCADialog",className:"modal fade w-https-dialog"},g.createElement("div",{className:"modal-dialog"},g.createElement("div",{className:"modal-content"},g.createElement("div",{className:"modal-body"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},g.createElement("span",{"aria-hidden":"true"},"×")),g.createElement("div",null,g.createElement("a",{className:"w-help-menu",title:"Click here to learn how to install root ca",href:"https://avwo.github.io/whistle/webui/https.html",target:"_blank"},g.createElement("span",{className:"glyphicon glyphicon-question-sign"})),g.createElement("a",{className:"w-download-rootca",title:"http://rootca.pro/",href:"cgi-bin/rootca",target:"downloadTargetFrame"},"Download RootCA")),g.createElement("a",{title:"http://rootca.pro/",href:"cgi-bin/rootca",target:"downloadTargetFrame"},g.createElement("img",{src:"img/qrcode.png"})),g.createElement("div",{className:"w-https-settings"},g.createElement("p",null,g.createElement("label",{title:o?"Use `pattern enable://capture` in rules to replace global configuration":void 0},g.createElement("input",{disabled:o,checked:e.interceptHttpsConnects,onChange:this.interceptHttpsConnects,type:"checkbox"})," Capture TUNNEL CONNECTs")),g.createElement("p",null,g.createElement("label",null,g.createElement("input",{checked:I.supportH2&&e.enableHttp2,onChange:this.enableHttp2,type:"checkbox"})," Enable HTTP/2")),g.createElement("a",{draggable:"false",style:{color:I.hasInvalidCerts?"red":void 0},onClick:this.showCustomCertsInfo},"View custom certs info"),g.createElement(R,{ref:"certsInfoDialog"}))),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))))),g.createElement("div",{ref:"chooseFileType",className:"modal fade w-choose-filte-type"},g.createElement("div",{className:"modal-dialog"},g.createElement("div",{ +className:"modal-content"},g.createElement("div",{className:"modal-body"},g.createElement("label",{className:"w-choose-filte-type-label"},"Save as:",g.createElement("input",{ref:"sessionsName",onKeyDown:this.exportBySave,placeholder:"Input the filename",className:"form-control",maxLength:"64"}),g.createElement("select",{ref:"fileType",className:"form-control",value:e.exportFileType,onChange:this.chooseFileType},g.createElement("option",{value:"whistle"},"*.txt"),g.createElement("option",{value:"Fiddler"},"*.saz"))),g.createElement("a",{type:"button",onKeyDown:this.exportBySave,tabIndex:"0",onMouseDown:this.preventBlur,className:"btn btn-primary",onClick:this.exportBySave},"Export"))))),g.createElement(j,{ref:"setReplayCount",wstyle:"w-replay-count-dialog"},g.createElement("div",{className:"modal-body"},g.createElement("label",null,"Count:",g.createElement("input",{ref:"replayCount",onKeyDown:this.replayRepeat,onChange:this.replayCountChange,value:e.replayCount,className:"form-control",maxLength:"2"})),g.createElement("a",{type:"button",onKeyDown:this.replayRepeat,tabIndex:"0",onMouseDown:this.preventBlur,className:"btn btn-primary",onClick:this.replayRepeat},"Replay"))),g.createElement(j,{ref:"importRemoteRules",wstyle:"w-import-remote-dialog"},g.createElement("div",{className:"modal-body"},g.createElement("input",{readOnly:ae,ref:"rulesRemoteUrl",maxLength:"2048",onKeyDown:this.importRemoteRules,placeholder:"Input the url",style:{"ime-mode":"disabled"}})),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-primary",disabled:ae,onMouseDown:this.preventBlur,onClick:this.importRemoteRules},ae?"Importing rules":"Import rules"),g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))),g.createElement(j,{ref:"importRemoteSessions",wstyle:"w-import-remote-dialog"},g.createElement("div",{className:"modal-body"},g.createElement("input",{readOnly:ie,ref:"sessionsRemoteUrl",maxLength:"2048",onKeyDown:this.importRemoteSessions,placeholder:"Input the url",style:{"ime-mode":"disabled"}})),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-primary",disabled:ie,onMouseDown:this.preventBlur,onClick:this.importRemoteSessions},ie?"Importing sessions":"Import sessions"),g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))),g.createElement(j,{ref:"importRemoteValues",wstyle:"w-import-remote-dialog"},g.createElement("div",{className:"modal-body"},g.createElement("input",{readOnly:se,ref:"valuesRemoteUrl",maxLength:"2048",onKeyDown:this.importRemoteValues,placeholder:"Input the url",style:{"ime-mode":"disabled"}})),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-primary",disabled:se,onMouseDown:this.preventBlur,onClick:this.importRemoteValues},se?"Importing values":"Import values"),g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"Close"))),g.createElement("div",{ref:"showUpdateTipsDialog",className:"modal fade w-show-update-tips-dialog"},g.createElement("div",{className:"modal-dialog"},g.createElement("div",{className:"modal-content"},g.createElement("div",{className:"modal-body"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close"},g.createElement("span",{"aria-hidden":"true"},"×")),g.createElement("p",{className:"w-show-update-tips"},"whistle has important updates, it is recommended that you update to the latest version."),g.createElement("p",null,"Current version: ",e.version),g.createElement("p",null,"The latest stable version: ",e.latestVersion),g.createElement("p",null,"View change: ",g.createElement("a",{title:"Change log",href:"https://github.com/avwo/whistle/blob/master/CHANGELOG.md",target:"_blank"},"CHANGELOG.md"))),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-default",onClick:this.donotShowAgain,"data-dismiss":"modal"},"Don't show again"),g.createElement("a",{type:"button",className:"btn btn-primary",onClick:this.hideUpdateTipsDialog,href:"https://avwo.github.io/whistle/update.html",target:"_blank"},"Update now"))))),g.createElement(j,{ref:"confirmReload",wstyle:"w-confirm-reload-dialog"},g.createElement("div",{className:"modal-body w-confirm-reload"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},g.createElement("span",{"aria-hidden":"true"},"×")),g.createElement("div",{className:"w-reload-data-tips"})),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-default","data-dismiss":"modal"},"No"),g.createElement("button",{type:"button",className:"btn btn-primary",onClick:this.reloadData,"data-dismiss":"modal"},"Yes"))),g.createElement(j,{ref:"confirmImportRules",wstyle:"w-confirm-import-dialog"},g.createElement("div",{className:"modal-body w-confirm-import"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},g.createElement("span",{"aria-hidden":"true"},"×")),"Whether to replace the existing rules?"),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-danger",onClick:this.uploadRules,"data-dismiss":"modal"},"Replace"),g.createElement("button",{type:"button",className:"btn btn-primary",onClick:this.uploadRules,"data-dismiss":"modal"},"Reserve"))),g.createElement(j,{ref:"confirmImportValues",wstyle:"w-confirm-import-dialog"},g.createElement("div",{className:"modal-body w-confirm-import"},g.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},g.createElement("span",{"aria-hidden":"true"},"×")),"Whether to replace the existing values?"),g.createElement("div",{className:"modal-footer"},g.createElement("button",{type:"button",className:"btn btn-danger",onClick:this.uploadValues,"data-dismiss":"modal"},"Replace"),g.createElement("button",{type:"button",className:"btn btn-primary",onClick:this.uploadValues,"data-dismiss":"modal"},"Reserve"))),g.createElement(U,{ref:"filesDialog"}),g.createElement(k,{ref:"selectRulesDialog",name:"rules",list:e.rules.list}),g.createElement(k,{ref:"selectValuesDialog",name:"values",list:e.values.list}),g.createElement("iframe",{name:"downloadTargetFrame",style:{display:"none"}}),g.createElement("form",{ref:"exportSessionsForm",action:"cgi-bin/sessions/export",style:{display:"none"},method:"post",target:"downloadTargetFrame"},g.createElement("input",{ref:"exportFilename",name:"exportFilename",type:"hidden"}),g.createElement("input",{ref:"exportFileType",name:"exportFileType",type:"hidden"}),g.createElement("input",{ref:"sessions",name:"sessions",type:"hidden"})),g.createElement("form",{ref:"importSessionsForm",encType:"multipart/form-data",style:{display:"none"}},g.createElement("input",{ref:"importSessions",onChange:this.uploadSessions,type:"file",name:"importSessions",accept:".txt,.json,.saz,.har"})),g.createElement("form",{ref:"importRulesForm",encType:"multipart/form-data",style:{display:"none"}},g.createElement("input",{ref:"importRules",onChange:this.uploadRulesForm,name:"rules",type:"file",accept:".txt,.json"})),g.createElement("form",{ref:"importValuesForm",encType:"multipart/form-data",style:{display:"none"}},g.createElement("input",{ref:"importValues",onChange:this.uploadValuesForm,name:"values",type:"file",accept:".txt,.json"})))}});I.getInitialData(function(e){f.render(g.createElement(te,{modal:e}),document.getElementById("container"))})},function(e,t,n){var r=n(2);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".w-menu{height:28px;border-top:1px solid #fcfcfc;background:#f1f3f4;padding-right:5pc;position:relative;z-index:1001}.w-menu a{text-decoration:none!important;color:#000;padding:0 5px;line-height:26px;height:26px;margin-right:5px;display:inline-block}.w-detail .glyphicon,.w-menu .glyphicon{margin-right:3px}.w-menu .glyphicon-folder-close,.w-menu .glyphicon-folder-open{margin-right:6px}.w-menu .w-online{position:absolute;right:0}.w-left-menu a:hover,.w-left-menu a:hover .w-disabled,.w-menu .w-online,.w-menu a:hover{color:#337ab7}.w-menu .w-offline{color:#ccc!important;cursor:default}.w-frames-action .w-disabled,.w-menu .w-disabled{color:#888!important;cursor:not-allowed!important}.w-left-menu .w-disabled{color:#888}.w-menu .w-menu-enable{color:#f66!important}.w-menu .w-menu-wrapper{display:inline-block;position:relative;height:30px}.w-show-update-tips{font-weight:700}.w-input-menu-item{display:block;position:absolute;background:#fff;border:1px solid #ccc;border-radius:2px;z-index:101;top:30px;display:none;white-space:nowrap}.w-input-menu-item input{width:246px;height:2pc;border:1px solid #ccc;border-radius:2px;padding:0 5px;vertical-align:middle}.w-input-menu-item .btn{height:2pc;padding:0 9pt;vertical-align:middle;border-radius:0;border-top-right-radius:2px;border-bottom-right-radius:2px}.w-create-rules-input{left:310px}.w-create-values-input{left:300px}.w-edit-rules-input{left:382px}.w-edit-values-input{left:372px}.w-show-left-menu .w-create-rules-input{left:210px}.w-show-left-menu .w-create-values-input{left:200px}.w-show-left-menu .w-edit-rules-input{left:282px}.w-show-left-menu .w-edit-values-input{left:17pc}.w-menu-wrapper .w-menu-item{display:none!important}.w-menu-wrapper-show .w-menu-item{display:block!important}.w-values-list .glyphicon{display:none!important}.w-values-list a{font-weight:400!important}.w-disabled .glyphicon-ok,.w-disabled .glyphicon-stop{color:#ccc!important}.w-rules-settings-dialog .modal-dialog{width:25pc}.w-values-settings-dialog .modal-dialog{width:300px}.w-show-update-tips-dialog .modal-dialog{width:21pc}.w-show-update-tips-dialog .modal-body p{margin-bottom:5px}.w-https-dialog .modal-dialog{width:340px}.w-https-help{margin-left:150px}.w-https-dialog .modal-dialog div{white-space:nowrap}.w-https-dialog a{display:inline-block}.w-download-rootca,.w-https-help{line-height:30px}.w-https-settings label{font-weight:400}.w-https-settings p{margin:10px 0}.w-is-link{cursor:pointer;text-decoration:underline}.w-choose-filte-type .modal-dialog{width:456px}.w-choose-filte-type-label{white-space:nowrap}.w-choose-filte-type-label .form-control{margin-left:10px;width:200px;display:inline-block;font-weight:400}.w-choose-filte-type-label select.form-control{margin:0 5px;width:5pc}.w-confirm-import-dialog .modal-dialog{width:20pc;font-weight:700}.w-show-left-menu-btn{padding:0 15px!important;margin-right:0!important}.w-left-menu{background:#f1f3f4;border:1px solid #ccc;border-bottom:none;display:none}.w-show-left-menu .w-left-menu{display:block;border-left:none}.w-show-left-menu .w-nav-menu{display:none}.w-left-menu a{display:block;position:relative;padding:10px 0 8px;width:45px;overflow:hidden;text-align:center;text-decoration:none!important;color:#000}.w-left-menu a span{margin-right:5px}.w-left-menu a i{display:block;font-style:normal;font-size:13px;zoom:1;transform:scale(0.7,0.7);width:66px;margin-left:-11px}.w-left-menu-tips{padding:6px 10px;display:none;left:47px;top:3px;position:absolute;z-index:1;border-radius:4px}.w-left-menu a:hover .w-left-menu-tips{display:block;color:#000;background-color:#f1f3f4;font-weight:700;border:1px solid #ccc}.w-left-menu a .w-left-menu-tips:hover,.w-menu .w-export-menu,.w-menu .w-import-menu,.w-menu .w-remove-menu-list{display:none}.w-show-left-menu .w-export-menu,.w-show-left-menu .w-import-menu,.w-show-left-menu .w-remove-menu-list{display:inline-block}.w-menu-changed{position:absolute;top:2px;left:2px;color:red}.w-replay-count-dialog .modal-content{width:236px;white-space:nowrap}.w-replay-count-dialog .modal-content label{width:auto}.w-replay-count-dialog input{display:inline-block;width:5pc;text-align:center;margin:0 10px}.w-import-remote-dialog .modal-content{width:525px}.w-import-remote-dialog input{width:500px;height:30px;line-height:30px;padding:5px}.w-https-menu .glyphicon-lock{color:#9e9e26}.w-hover-left-menu{position:absolute;z-index:1;height:auto;border-bottom:1px solid #ccc;min-height:0}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t.fill{width:0}.orient-vertical-box>.fill{height:0}.table{table-layout:fixed;margin:0!important}.table .w-empty{text-align:center;font-style:italic;color:#ccc}.w-expand-collapse{margin-left:5px;height:20px;line-height:1pc;font-size:9pt;color:#000}.w-arrow,.w-arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.w-arrow{border-width:7px}.w-arrow:after{content:"";border-width:6px}.w-arrow-left{top:50%;left:-7px;margin-top:-7px;border-right-color:#ccc;border-right-color:rgba(0,0,0,.25);border-left-width:0}.w-arrow-left:after{bottom:-6px;left:1px;border-right-color:#f1f3f4;border-left-width:0}.w-arrow-right{top:50%;right:-7px;margin-top:-7px;border-left-color:#ccc;border-left-color:rgba(0,0,0,.25);border-right-width:0}.w-arrow-right:after{bottom:-6px;right:1px;border-left-color:#ffffe0;border-right-width:0}.modal-dialog .modal-body,.modal-dialog .modal-footer{padding:10px}.modal-footer .btn{padding:5px 10px}.cm-header{text-decoration:line-through}.cm-s-ambiance ::-webkit-scrollbar-thumb,.cm-s-blackboard ::-webkit-scrollbar-thumb,.cm-s-cobalt ::-webkit-scrollbar-thumb,.cm-s-dark ::-webkit-scrollbar-thumb,.cm-s-erlang-dark ::-webkit-scrollbar-thumb,.cm-s-lesser-dark ::-webkit-scrollbar-thumb,.cm-s-midnight ::-webkit-scrollbar-thumb,.cm-s-monokai ::-webkit-scrollbar-thumb,.cm-s-night ::-webkit-scrollbar-thumb,.cm-s-twilight ::-webkit-scrollbar-thumb,.cm-s-vibrant-ink ::-webkit-scrollbar-thumb,.cm-s-xq-dark ::-webkit-scrollbar-thumb{background-color:hsla(0,0%,100%,.5)}.cm-s-ambiance ::-webkit-scrollbar-thumb:hover,.cm-s-blackboard ::-webkit-scrollbar-thumb:hover,.cm-s-cobalt ::-webkit-scrollbar-thumb:hover,.cm-s-dark ::-webkit-scrollbar-thumb:hover,.cm-s-erlang-dark ::-webkit-scrollbar-thumb:hover,.cm-s-lesser-dark ::-webkit-scrollbar-thumb:hover,.cm-s-midnight ::-webkit-scrollbar-thumb:hover,.cm-s-monokai ::-webkit-scrollbar-thumb:hover,.cm-s-night ::-webkit-scrollbar-thumb:hover,.cm-s-twilight ::-webkit-scrollbar-thumb:hover,.cm-s-vibrant-ink ::-webkit-scrollbar-thumb:hover,.cm-s-xq-dark ::-webkit-scrollbar-thumb:hover{background-color:hsla(0,0%,100%,.7)}.cm-s-ambiance ::-webkit-scrollbar-track:hover,.cm-s-blackboard ::-webkit-scrollbar-track:hover,.cm-s-cobalt ::-webkit-scrollbar-track:hover,.cm-s-dark ::-webkit-scrollbar-track:hover,.cm-s-erlang-dark ::-webkit-scrollbar-track:hover,.cm-s-lesser-dark ::-webkit-scrollbar-track:hover,.cm-s-midnight ::-webkit-scrollbar-track:hover,.cm-s-monokai ::-webkit-scrollbar-track:hover,.cm-s-night ::-webkit-scrollbar-track:hover,.cm-s-twilight ::-webkit-scrollbar-track:hover,.cm-s-vibrant-ink ::-webkit-scrollbar-track:hover,.cm-s-xq-dark ::-webkit-scrollbar-track:hover{background-color:hsla(0,0%,100%,.15)}.w-offline-status .w-left-menu a,.w-offline-status .w-menu a{color:#ccc!important}body .cm-s-cobalt span.cm-number{color:#ff1605}.w-hide-no-value .w-no-value{display:none!important}.w-detail .w-dock-btn{border:none;background:transparent;padding:4px 0;width:20px;text-align:center;position:absolute;right:0;top:0;outline:0}.w-detail .w-dock-btn .glyphicon{margin:0!important}.btn.active,.btn:active{box-shadow:none!important}.CodeMirror-hints{z-index:999999!important}.w-mark td,.w-mark th{background-color:#3b88fd!important;color:#fff!important}.ReactVirtualized__Grid.ReactVirtualized__List{outline:0}.w-not-allowed{cursor:not-allowed}.w-bold{font-weight:700!important}a{cursor:pointer}',""])},function(e,t,n){var r=n(197);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".w-divider-con .w-divider{border:none}.w-list-data{border-top:1px solid #ccc;background:#fafafa;overflow-x:hidden;overflow-y:auto;outline:0}.w-list-data a{display:block;padding-left:10px;line-height:2pc;position:relative;border-bottom:1px solid #ccc;color:#000;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff;outline:0}.w-list-data a .glyphicon-ok{position:absolute;top:50%;right:10px;margin-top:-8px;color:#5bbd72;display:none}.w-list-content{border:1px solid #ccc;border-left:none}.w-list-data .w-changed:before{content:'*';color:red;margin-right:5px}.w-list-data a:hover{color:#337ab7}.w-list-data .w-active{background:#337ab7;color:#fff!important}.w-list-data .w-selected{font-weight:500}.w-list-data .w-selected .glyphicon-ok{display:inline-block}.w-list-data span.w-whistle-tpl{display:block;width:8px;height:8px;position:absolute;right:3px;top:2px;background:center center no-repeat;background-size:100%}.w-list-data .w-list-group-wrap{background-color:#f1f3f4;border-bottom:1px solid #ccc}.w-list-data .w-list-group-wrap.w-active,.w-list-data .w-list-group-wrap:hover{background-color:#ddd}.w-list-group-wrap>a{margin-left:9pt;border-bottom:none;border-left:1px solid #ccc;border-top:1px solid #ccc;display:none}.w-list-data .w-list-group{background-color:transparent;padding-left:5px;cursor:default;color:#000!important;margin:0;border-left:none;border-top:none;display:block}.w-group-expand>a{display:block}.w-list-group .glyphicon-triangle-bottom,.w-list-group .glyphicon-triangle-right{font-size:9pt;margin-right:3px;display:inline-block!important}",""])},function(e,t,n){function r(e){return e}function o(e,t){return e==t?0:e>t?-1:1}function i(e){return e&&"string"==typeof e}function a(){ue=le=ce=null}function s(e,t){if(e&&"function"==typeof t&&"string"==typeof e&&(e=de.trim(e))){var n=xe[e]=xe[e]||[];-1==de.inArray(t,n)&&n.push(t)}}function l(e,t){var n=xe[e];if(n){if("function"==typeof t){var r=de.inArray(t,n);return void(-1!=r&&n.splice(r,1))}delete xe[e]}}function c(e,t,n){if(e&&(t||""!==t)){"string"==typeof t&&(t=t.split("."));for(var r=0,o=t.length-1;o>=r;r++){var i=t[r];if(!(i in e))return n;if(e=e[i],r==o)return e;if(!e)return n}}return n}function u(e){var t=e.hostIp;if(!t)return e.serverIp;if(e.realIp)e.serverIp=e.realIp+", "+t,delete e.realIp;else if(!e.serverIp){var n=e.res||"";n.phost&&n.phost!=t&&(t=n.phost+", "+t);var o=B(c(n,"headers.x-whistle-response-for"));o&&(t=o!==t&&-1===o.trim().split(/\s*,\s*/).indexOf(t)?o+", "+t:o,e.serverIp=t.trim().split(/\s*,\s*/).filter(r).join(", "))}return e.serverIp||t}function d(e){return!(!e||"false"===e)}function p(e){return e&&"string"!=typeof e&&(e=e["content-type"]||e.contentType),"string"==typeof e?e.split(";")[0].trim().toLowerCase():""}function h(e){if(e=p(e)){if(-1!=e.indexOf("javascript"))return"JS";if(-1!=e.indexOf("css"))return"CSS";if(-1!=e.indexOf("html"))return"HTML";if(-1!=e.indexOf("json"))return"JSON";if(-1!=e.indexOf("xml"))return"XML";if(-1!=e.indexOf("text/"))return"TEXT";if(-1!=e.indexOf("image/"))return"IMG"}return null}function g(e){return e?(e=h(e),e&&"IMG"!==e):!0}function f(e){var t=e.indexOf("://");t=-1==t?0:t+3;var n=e.indexOf("/",t);return e=-1==n?e.substring(t):e.substring(t,n)}function m(e,t,n){if(!e)return"";var r=Object.keys(e),o=n?r.indexOf("content-encoding"):-1;return-1!==o&&r.splice(o,1),r.map(function(n){var r=e[n];return n=t&&t[n]||n,Array.isArray(r)?r.map(function(e){return n+": "+e}).join("\r\n"):n+": "+r}).join("\r\n")}function A(e){return"string"==typeof e?e.trim().toLowerCase():e}function M(e){var t=A(e&&e["content-encoding"]||e);return"gzip"===t||"deflate"===t?t:null}function w(e){var t=e.indexOf("://");return-1==t?e:e.substring(t+3)}function b(e,t){if("string"==typeof e&&(e=e.trim())){if(t){if(!/({[\w\W]*}|\[[\w\W]*\])/.test(e))return;e=RegExp.$1}try{return De(e,t)}catch(n){return we(e)}}}function y(e,t){window._$hasBigNumberJson=!1;var n=b(e,!0);if(n||!e||!t)return n;try{return b(t(e),!0)}catch(r){}}function T(e){return/^post$/i.test(e.method)&&/urlencoded/i.test(e.headers&&e.headers["content-type"])}function v(e){return void 0===e?"":e+""}function x(e){var t=window.open("editor.html");t.getValue=function(){return e},t.setValue&&t.setValue(e)}function N(e){return je[e]}function C(e,t){if("function"==typeof e.find)return e.find(t);for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n,e))return o}}function I(e){if(!e.closed&&e.frames){var t=e.frames[e.frames.length-1];t&&(t.closed||t.err)&&(e.closed=!0)}return e.closed}function E(e,t){return t.key1?(e=e.toLowerCase(),-1===e.indexOf(t.key1)?" hide":t.key2&&-1===e.indexOf(t.key2)?" hide":t.key3&&-1===e.indexOf(t.key3)?" hide":""):""}function D(e){e.hide=!1}function L(e){var t=e.toLocaleString();if(!Ue.test(t))return t;var n=RegExp["$&"],r=e.getTime()%1e3;return 10>r?r="00"+r:100>r&&(r="0"+r),t.replace(n,n+"."+r)}function S(e){return e>0?new Array(e+1).join("0"):""}function j(e,t){return e=e.toString(16).toUpperCase(),S(t-e.length)+e}function k(e){for(var t,n,r=e.length,o=Math.max(6,r.toString(16).length),i=[],a=Math.ceil(r/16),s=0;a>s;s++){var l=16*s,c=Math.min(16+l,r);t=j(Math.max(c-16,0),o)+" ";for(var u="";c>l;l++)n=e[l],t+=" "+j(n,2),u+=n>31&&127>n||n>159?String.fromCharCode(n):".";i.push(t+new Array(3*(17-u.length)).join(" ")+u)}return i.join("\n")}function B(e,t){if(!e||"string"!=typeof e)return"";var n=e.replace(He," ");try{return decodeURIComponent(n)}catch(r){}if(!t&&ze&&Oe.test(n))try{var o=[];if(n.replace(Re,function(e){e.length>1?o.push(parseInt(e.substring(1),16)):o.push(String.fromCharCode(e))}),!t(o))return ze.decode(new window.Uint8Array(o))}catch(r){}return e}function U(e){try{return encodeURIComponent(e)}catch(t){}return e}function Q(e){try{return pe(e)}catch(t){}return[]}function z(e){var t=Q(e),n={hex:k(t)};if(!be(t))try{n.text=ze.decode(t)}catch(r){}if(!n.text)try{n.text=fe(e)}catch(r){n.text=e}return n}function R(e){var t=p(e.headers);return t&&"IMG"===h(t)?t:""}function O(e){if(e)try{return k(Q(e))}catch(t){}return e}function H(e){return"Closed"+(e.code?" ("+e.code+")":"")}function F(e,t){if(!e[Ve]||!e[Pe]){if(!e.base64){var n=e.body||e.text;if((e.closed||e.err)&&(n=String(e.err||H(e))),n)try{n=String(n),e.base64=me(n),e[Ve]=n,e[Pe]=O(e.base64)}catch(r){}finally{delete e.body,delete e.bin,delete e.text}if(!e.base64)return}var o=!t&&R(e);if(o)e[Ve]="data:"+o+";base64,"+e.base64,e[Pe]=O(e.base64);else{var i=z(e.base64);e[Ve]=i.text,e[Pe]=i.hex}}}function V(e,t){return F(e,t),e[Ve]||""}function P(e){var t=e.headers&&e.headers["content-type"];return Ge.test(t)||We.test(V(e))?RegExp.$1.toUpperCase():"UTF8"}function Y(e,t){try{var n=JSON.parse(e);if(n&&"object"==typeof n)return n;!t&&ye.error("Error: not a json object.")}catch(r){if(n=we(e))return n;!t&&ye.error("Error: "+r.message)}}function G(e){var t={};return e=e.split(Te),e.forEach(function(e){var n=e.indexOf(":"),r="";if(-1!=n){r=e.substring(n+1).trim();var o=e.substring(0,n).trim(),i=t[o];i?(Array.isArray(i)||(t[o]=i=[i]),i.push(r)):t[o]=r}}),t}function W(e){return"string"!=typeof e?!1:(e=e.toUpperCase(),!("GET"===e||"HEAD"===e||"OPTIONS"===e||"CONNECT"===e))}function X(e){return e?e.split(".").map(function(e){return e=parseInt(e,10)||0,e>9?e:"0"+e}).join("."):""}function _(e,t){var n="",r="",o=e&&e.indexOf("-");return o>-1&&(n=e.slice(o+1),e=e.slice(0,o)),o=t&&t.indexOf("-"),o>-1&&(r=t.slice(o+1),t=t.slice(0,o)),e=X(e),t=X(t),e>t?!0:t>e?!1:r>n}function J(e){var t=e.indexOf(" ")+2;return e.substring(t,e.indexOf(" ",t)).trim()}function Z(e){try{var t=window.parent.onWhistlePageChange;"function"==typeof t&&_e!==e&&(_e=e,t(e,location.href))}catch(n){}}function K(e){var t=location.hash.substring(1),n=t.indexOf("?");t=-1===n?"":t.substring(n),location.hash=e+t,Z(e)}function q(e,t,n){var r,o=new FileReader,i=function(e,n){return r?void 0:(r=!0,e?(o.abort(),alert(e.message)):void t(n))},a="text"===n;return o[a?"readAsText":"readAsArrayBuffer"](e),o.onerror=i,o.onabort=function(){i(new Error("Aborted"))},o.onload=function(){var e=o.result;try{a||(e=new window.Uint8Array(e),e="base64"===n?he(e):e),i(null,e)}catch(t){i(t)}},o}function $(e,t,n){var r=e.length,o=t&&t.length;if(!r||!o)return-1;var i=t[0],a=e.indexOf(i,n||0);if(1===o)return a;for(var s=-1;-1!==a;){s=a;for(var l=0;o>l;l++)if(t[l]!==e[l+a]){s=-1,a=e.indexOf(i,a+1);break}if(-1!==s)return s}return s}function ee(e,t,n){var r=e.length,o=t.length,i=new window.Uint8Array(r+o+(n?n.length:0));return i.set(e),i.set(t,r),n&&i.set(n,r+o),i}function te(e){try{return e=Ae(e),pe(e)}catch(t){}return null}function ne(e){try{return pe(e)}catch(t){}return null}function re(e){try{e=fe(he(e)).split("\r\n")}catch(t){return}if(et.test(e[0])){var n={name:RegExp.$1||RegExp.$2,value:""};if(nt.test(e[1])){n.type=RegExp.$1;var r=e[0].indexOf("name="+RegExp["$&"]);tt.test(e[0].substring(r+1))&&(n.value=RegExp.$1||RegExp.$2)}return n}}function oe(e,t){for(var n="--"+t,r=te(n+"\r\n"),o=te("\r\n"+n),i=r.length,a=$(e,r),s=[];a>=0;){a+=i;var l=$(e,$e,a);if(-1===l)return s;var c=$(e,o,l+2);if(-1===c)return s;var u=e.slice(a,l);l+=4;var d=l>=c?"":e.slice(l,c);if(u=re(u)){if(u.type)u.data=d;else try{u.value=d&&fe(he(d))}catch(p){}s.push(u)}a=$(e,r,c+2)}return s}function ie(e){var t='Content-Disposition: form-data; name="'+e.name+'"',n=e.data;return n?(t+='; filename="'+e.value+'"',e.type&&(t+="\r\nContent-Type: "+e.type)):n=e.value&&te(e.value),t?(t=te(t+"\r\n\r\n"),n?ee(t,n,rt):t):void 0}function ae(){return"----WhistleUploadForm"+Date.now().toString(16)+Math.floor(1e11*Math.random()).toString(16)}function se(e){var t,n="",r=e.length;for(t=2;r>t;t+=3)n+=ot[e[t-2]>>2],n+=ot[(3&e[t-2])<<4|e[t-1]>>4],n+=ot[(15&e[t-1])<<2|e[t]>>6],n+=ot[63&e[t]];return t===r+1&&(n+=ot[e[t-2]>>2],n+=ot[(3&e[t-2])<<4],n+="=="),t===r&&(n+=ot[e[t-2]>>2],n+=ot[(3&e[t-2])<<4|e[t-1]>>4],n+=ot[(15&e[t-1])<<2],n+="="),n}var le,ce,ue,de=n(5),pe=n(199).toByteArray,he=n(199).fromByteArray,ge=n(200).Base64,fe=ge.decode,me=ge.encode,Ae=ge.toBase64,Me=n(201),we=n(204),be=n(205),ye=n(206),Te=/\r\n|\r|\n/g,ve=/[:\[][\s\n\r]*-?[\d.]{16,}[\s\n\r]*[,\}\]]/,xe={},Ne=0,Ce=["fatal","error","warn","info","debug"];t.noop=r,t.compare=o,t.isString=function(e){return"string"==typeof e},t.parseLogs=function(e){try{e=JSON.parse(e)}catch(t){}if(Array.isArray(e)){for(var n,r=0,o=0,a=e.length;a>o;o++){var s=e[o];if(s&&void 0!==s.text&&(n=n||[],s.id=++Ne,s.date=s.date>0?s.date:0,i(s.level)?(s.level=s.level.toLowerCase(),-1===Ce.indexOf(s.level)&&(s.level="info")):s.level="info",n.push(s),++r>=100))return n}return n}},t.preventDefault=function(e){8==e.keyCode&&e.preventDefault()},t.preventBlur=function(e){e.preventDefault()},t.getBase64FromHexText=function(e,t){if(!e)return"";if(/[^\da-f\s]/i.test(e))return!1;e=e.replace(/\s+/g,"");var n=e.length;if(n%2===1)return!1;if(t)return!0;e=e.match(/../g).map(function(e){return parseInt(e,16)});try{return he(e)}catch(r){}return!1},de(document).on("mousedown",function(e){a();var t=de(e.target);Object.keys(xe).some(function(e){return le=t.closest(e),le.length?(ue=xe[e],!0):void(le=null)}),le&&ue&&(ce=e,e.preventDefault())}).on("mousemove",function(e){le&&(ue.forEach(function(t){t(le,e.clientX-ce.clientX,e.clientY-ce.clientY,ce.clientX,ce.clientY)}),ce=e)}).on("mouseup",a).on("mouseout",function(e){!e.relatedTarget&&a()}),t.addDragEvent=s,t.removeDragEvent=l;var Ie=1;t.getKey=function(){return"w-reactkey-"+Ie++},t.getProperty=c,t.getServerIp=u,t.getBoolean=d,t.showSystemError=function(e){e=e||{};var t=e.status;return t?401==t?alert("You do not have permission to operate."):413==t?alert("The content is too large."):void alert("System error, try again later."):alert("Please check the proxy settings or whether whistle has been started.")},t.getClasses=function(e){var t=[];for(var n in e)e[n]&&t.push(n);return t.join(" ")},t.getExtension=function(e){var t,n=h(e);return"XML"===n&&(t=p(e),0===t.indexOf("image/")&&(n="IMG")),"IMG"!==n?n?"."+("TEXT"===n?"txt":n.toLowerCase()):"":(t=t||p(e),t=t.substring(t.indexOf("/")+1).toLowerCase(),/\w+/.test(t)?"."+RegExp["$&"]:"")},t.getContentType=h,t.isText=g;var Ee=/^head$/i;t.hasBody=function(e,t){if(t&&Ee.test(t.method))return!1;var n=e.statusCode;return!(204==n||n>=300&&400>n||n>=100&&199>=n)},t.getHostname=function(e){e=f(e);var t=e.lastIndexOf(":");return-1==t?e:e.substring(0,t)},t.getHost=f,t.getProtocol=function(e){var t=e.indexOf("://");return-1==t?"TUNNEL":e.substring(0,t).toUpperCase()},t.ensureVisible=function(e,t,n){e=de(e),t=de(t);var r=e.offset().top-t.offset().top;if(r){var o,i=t[0].offsetHeight,a=e[0].offsetHeight;if(0>r)return void(n?(o=Math.ceil((i-a)/2),o=Math.max(0,t.scrollTop()+r-o),t.scrollTop(o)):t.scrollTop(t.scrollTop()+r-2));r+=a-i,r>0&&(n?(o=Math.ceil(i/2),o=Math.max(0,t.scrollTop()+r+o),t.scrollTop(o)):t.scrollTop(t.scrollTop()+r+2))}},t.parseQueryString=function(e,t,n,r,o){var i={};return window.___hasFormData=!1,e&&(e=(e+"").trim())?(t=t||"&",n=n||"=",e.split(t).forEach(function(e){e=e.split(n);var t=e[0],a=e.slice(1).join("=");if(t||a){var s=a,l=t;r==decodeURIComponent&&(r=B);try{a=r?r(s):a}catch(c){}try{t=r?r(l):t}catch(c){}if(!o&&t in i){var u=i[t];Array.isArray(u)?u.push(a):i[t]=[u,a]}else i[t]=a;window.___hasFormData=!0}}),i):i},t.objectToString=m,t.getOriginalReqHeaders=function(e){var t=e.req,n=de.extend({},t.headers,e.rulesHeaders,!0);return e.clientId&&!n["x-whistle-client-id"]&&(n["x-whistle-client-id"]=e.clientId),M(n)&&delete n["content-encoding"],m(n,t.rawHeaderNames)},t.removeProtocol=w,t.getPath=function(e){e=w(e);var t=e.indexOf("/");return-1==t?"/":e.substring(t)};var De=function(e,t){var n;return t&&ve.test(e)?(window._$hasBigNumberJson=!0,n=Me.parse(e)):n=JSON.parse(e),"object"==typeof n?n:null};t.evalJson=we,t.parseJSON=b,t.unique=function(e,t){var n=[];if(t)for(var r=e.length-1;r>=0;r--){var o=e[r];-1==n.indexOf(o)&&n.unshift(o)}else e.forEach(function(e){-1==n.indexOf(e)&&n.push(e)});return n},t.getFilename=function(e,t){var n=e.url;if(e.isHttps)return n;if(t&&e.filename)return e.filename;if(e.simplePath)return e.simplePath;n=w(n.replace(/[?#].*/,""));var r=n.lastIndexOf("/"),o=-1!=r&&n.substring(r+1);return o||(t?(n=n.substring(0,r),r=n.lastIndexOf("/"),o=-1===r?n:n.substring(r+1)):o="/"),e[t?"filename":"simplePath"]=o,o};var Le={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"};t.getStatusMessage=function(e){return e.statusCode?"string"==typeof e.statusMessage?e.statusMessage:Le[e.statusCode]||"unknown":""},t.isUrlEncoded=T,t.toString=v,t.openEditor=x;var Se=/['<> "&]/g,je={'"':""","<":"<",">":">","&":"&"," ":" ","'":"'"},ke=/\r?\n/g,Be=/\s/g;t.escape=function(e){return null==e?e:(e=(e+"").replace(Se,N),e.replace(ke,"
").replace(Be," "))},t.findArray=C,t.isFocusEditor=function(){var e=document.activeElement,t=e&&e.nodeName;return"INPUT"!==t&&"TEXTAREA"!==t?!1:!e.readOnly&&!e.disabled},t.getMenuPosition=function(e,t,n){var r=e.pageX,o=e.pageY,i=document.documentElement,a=i.clientWidth;return r+t-window.scrollX>=a&&(r=Math.max(r-t,window.scrollX+1)),o+n-window.scrollY>=i.clientHeight-25&&(o=Math.max(o-n,window.scrollY+1)),{top:o,left:r,marginRight:a-r}},t.canReplay=function(e){return!e.isHttps||"tunnel"===e.req.headers["x-whistle-policy"]||/^wss?:/.test(e.url)},t.socketIsClosed=I,t.canAbort=function(e){return e.lost||e.endTime?e.reqError||e.resError?!1:!!e.frames&&!I(e):!0},t.asCURL=function(e){if(!e)return e;var t=e.req,n=e.url.replace(/^ws/,"http"),r=t.method,o=["curl","-X",r,JSON.stringify(n)],i=t.headers,a=t.rawHeaderNames||{};Object.keys(i).forEach(function(e){"content-length"!==e&&"content-encoding"!==e&&"accept-encoding"!==e&&o.push("-H",JSON.stringify((a[e]||e)+": "+i[e]))});var s=g(t.headers)||T(t)?V(t,!0):"";return s&&o.push("-d",JSON.stringify(s)),o.join(" ")},t.parseHeadersFromHar=function(e){var t={},n={};return Array.isArray(e)&&e.forEach(function(e){var r=e.name,o=r.toLowerCase();t[o]=e.value,n[o]=r}),{headers:t,rawHeaderNames:n}},t.getTimeFromHar=function(e){return e>0?e:0},t.parseKeyword=function(e){e=e.toLowerCase().split(/\s+/g);for(var t={},n=0,r=0;3>=r;r++){var o=e[r];o&&0===o.indexOf("level:")?t.level=o.substring(6):3>n&&(++n,t["key"+n]=o)}return t},t.hasVisibleLog=function(e){var t=e.length;if(!t)return!1;for(var n=0;t>n;n++)if(!e[n].hide)return!0},t.trimLogList=function(e,t,n){var r=e.length;if(n){for(var o=0;t>0&&r>o;)e[o].hide?(--r,--t,e.splice(o,1)):++o;t=e.length-100}return t>0&&e.splice(0,t),e};var Ue=/\b\d\d?:\d\d?:\d\d?\b/;t.toLocaleString=L,t.filterLogList=function(e,t){return e?t?void e.forEach(function(e){var n=t.level;if(n&&e.level!==n)e.hide=!0;else{var r="Date: "+L(new Date(e.date))+e.logId+"\r\n"+e.text;e.hide=E(r,t)}}):void e.forEach(D):void 0},t.checkLogText=E,t.scrollAtBottom=function(e,t){return e.scrollTop+e.offsetHeight+5>t.offsetHeight},t.triggerListChange=function(e,t){try{var n=window.parent["rules"===e?"onWhistleRulesChange":"onWhistleValuesChange"];"function"==typeof n&&n(t)}catch(r){}};var Qe=/^\/(.+)\/(i?m?|m?i)$/;t.toRegExp=function(e){if(e){e=Qe.test(e);try{e=e&&new RegExp(RegExp.$1,RegExp.$2)}catch(t){return}return e}};var ze,Re=/%[a-f\d]{2}|./gi,Oe=/%[a-f\d]{2}/i,He=/\+/g;if(window.TextDecoder)try{ze=new TextDecoder("GB18030")}catch(Fe){}t.decodeURIComponentSafe=B,t.encodeURIComponent=U;var Ve="$body",Pe="$hex",Ye="$json";window.Symbol&&(Ve=window.Symbol["for"](Ve),Pe=window.Symbol["for"](Pe),Ye=window.Symbol["for"](Ye)),t.getHexFromBase64=O,t.getJson=function(e,t,n){if(null==e[Ye]){var r=V(e,t);r=r&&y(r,n),e[Ye]=r?{json:r,str:(window._$hasBigNumberJson?Me:JSON).stringify(r,null," ")}:""}return e[Ye]},t.getBody=V,t.getHex=function(e){return F(e),e[Pe]||""};var Ge=/charset=([\w-]+)/i,We=/]*\bcharset=(?:'|")?([\w-]+)[^>]*>/i;t.openPreview=function(e){if(e){var t=e.res,n=h(t.headers),r="IMG"===n;if(r||"HTML"===n){var o=e.url;o=/^((?:http|ws)s?:)?\/\//i.test(o)?RegExp.$1?o.replace(/^ws/,"http"):"http:"+o:"http://"+o;var i=r?"UTF8":P(t);o+=(-1===o.indexOf("?")?"":"&")+"???WHISTLE_PREVIEW_CHARSET="+i,window.open(o+"???#"+(r?V(t):t.base64))}}},t.parseRawJson=Y,t.parseHeaders=function(e){return e="string"==typeof e?e.trim():null,e?Y(e,!0)||G(e):{}},t.hasRequestBody=W;var Xe=/([^\x00-\xFF]|[\r\n%])/g;t.encodeNonLatin1Char=function(e){return e&&"string"==typeof e?e.replace(Xe,U):""},t.compareVersion=_,t.getHexText=function(e){return e?e.split("\n").map(J).join("\n"):""};var _e;t.triggerPageChange=Z;var Je;t.triggerRulesActiveChange=function(e){if(Je!==e){Je=e;try{var t=window.parent.onWhistleRulesActiveChange;"function"==typeof t&&t(e,location.href)}catch(n){}}};var Ze;t.triggerValuesActiveChange=function(e){if(Ze!==e){Ze=e;try{var t=window.parent.onWhistleValuesActiveChange;"function"==typeof t&&t(e,location.href)}catch(n){}}},t.changePageName=K,t.getTempName=function(){return Date.now()+""+Math.floor(1e4*Math.random())},t.readFile=q,t.readFileAsBase64=function(e,t){return q(e,t,"base64")},t.readFileAsText=function(e,t){return q(e,t,"text")},t.addPluginMenus=function(e,t,n,r){var o=e.list=t,i=o.length;if(i){e.hide=!1;for(var a=r,s=0;i>s;s++){var l=o[s];l.required?(l.disabled=r,r||(a=!1)):a=l.disabled=!1}var c=i-2;e.top=c>0?Math.min(n,c):void 0,e.disabled=a}else e.hide=!0},t.parseImportData=function(e,t,n){var r,o=[];return Object.keys(e).forEach(function(i){var a=e[i];if(null!=a){if(n)if("object"==typeof a)try{a=JSON.stringify(a,null," ")}catch(s){return}else a+="";if("string"==typeof a){var l,c=t&&t.get(i);c&&(l=c.value&&c.value!=a,r=r||l),o.push({name:i,value:a,isConflict:l})}}}),o.hasConflict=r,o},t.getSize=function(e){return 1024>e?e:(e=(e/1024).toFixed(2),1024>e?e+"k":(e=(e/1024).toFixed(2),1024>e?e+"m":(e/1024).toFixed(2)+"G"))};var Ke=/^\s*multipart\//i,qe=/boundary=(?:"([^"]+)"|([^;]+))/i,$e=te("\r\n\r\n"),et=/name=(?:"([^"]+)"|([^;]+))/i,tt=/filename=(?:"([^"]+)"|([^;]+))/i,nt=/^\s*content-type:\s*([^\s]+)/i,rt=te("\r\n");t.isUploadForm=function(e){var t=e.headers&&e.headers["content-type"];return Ke.test(t)},t.parseUploadBody=function(e){if(e.base64){var t=e.headers&&e.headers["content-type"];if(qe.test(t)){var n=RegExp.$1||RegExp.$2,r=ne(e.base64);return r&&oe(r,n)}}};var ot=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];t.getMultiBody=function(e){var t,n=ae(),r=te("--"+n+"\r\n");return e.forEach(function(e){e=ie(e),e&&(e=ee(r,e),t=t?ee(t,e):e)}),t=t&&ee(t,te("--"+n+"--")),{boundary:n,length:t?t.length:0,base64:t&&se(t)}}},function(e,t){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function r(e){var t=n(e),r=t[0],o=t[1];return 3*(r+o)/4-o}function o(e,t,n){return 3*(t+n)/4-n}function i(e){var t,r,i=n(e),a=i[0],s=i[1],l=new d(o(e,a,s)),c=0,p=s>0?a-4:a;for(r=0;p>r;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===s&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function a(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function s(e,t,n){for(var r,o=[],i=t;n>i;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(a(r));return o.join("")}function l(e){for(var t,n=e.length,r=n%3,o=[],i=16383,a=0,l=n-r;l>a;a+=i)o.push(s(e,a,a+i>l?l:a+i));return 1===r?(t=e[n-1],o.push(c[t>>2]+c[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(c[t>>10]+c[t>>4&63]+c[t<<2&63]+"=")),o.join("")}t.byteLength=r,t.toByteArray=i,t.fromByteArray=l;for(var c=[],u=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,g=p.length;g>h;++h)c[h]=p[h],u[p.charCodeAt(h)]=h;u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(global){!function(e,t){module.exports=t(e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if("undefined"!=typeof module&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(err){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},n=0,r=e.length;r>n;n++)t[e.charAt(n)]=n;return t}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(e){if(e.length<2){var t=e.charCodeAt(0);return 128>t?e:2048>t?fromCharCode(192|t>>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)}var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),t>=2?"=":b64chars.charAt(n>>>6&63),t>=1?"=":b64chars.charAt(63&n)];return r.join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(e){var t="[object Uint8Array]"===Object.prototype.toString.call(e);return t?e.toString("base64"):btoa(utob(String(e)))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,""):_encode(e)},encodeURI=function(e){return encode(e,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return fromCharCode((n>>>10)+55296)+fromCharCode((1023&n)+56320);case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,n=t%4,r=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),o=[fromCharCode(r>>>16),fromCharCode(r>>>8&255),fromCharCode(255&r)];return o.length-=[0,0,2,1][n],o.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,function(e){ -return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(e){return encode(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),"undefined"!=typeof module&&module.exports?module.exports.Base64=global.Base64:(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return global.Base64}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))),{Base64:global.Base64}})}).call(exports,function(){return this}())},function(e,t,n){t.parse=n(202),t.stringify=n(203)},function(e,t){e.exports=function(){var e,t,n,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},i=function(t){throw{name:"SyntaxError",message:t,at:e,text:n}},a=function(r){return r&&r!==t&&i("Expected '"+r+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(){var e,n="";for("-"===t&&(n="-",a("-"));t>="0"&&"9">=t;)n+=t,a();if("."===t)for(n+=".";a()&&t>="0"&&"9">=t;)n+=t;if("e"===t||"E"===t)for(n+=t,a(),("-"===t||"+"===t)&&(n+=t,a());t>="0"&&"9">=t;)n+=t,a();return n.length>15?(e=new String(n),e._$isNumber=!0,e):(e=+n,isFinite(e)?e:void i("Bad number"))},l=function(){var e,n,r,s="";if('"'===t)for(;a();){if('"'===t)return a(),s;if("\\"===t)if(a(),"u"===t){for(r=0,n=0;4>n&&(e=parseInt(a(),16),isFinite(e));n+=1)r=16*r+e;s+=String.fromCharCode(r)}else{if("string"!=typeof o[t])break;s+=o[t]}else s+=t}i("Bad string")},c=function(){for(;t&&" ">=t;)a()},u=function(){switch(t){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}i("Unexpected '"+t+"'")},d=function(){var e=[];if("["===t){if(a("["),c(),"]"===t)return a("]"),e;for(;t;){if(e.push(r()),c(),"]"===t)return a("]"),e;a(","),c()}}i("Bad array")},p=function(){var e,n={};if("{"===t){if(a("{"),c(),"}"===t)return a("}"),n;for(;t;){if(e=l(),c(),a(":"),Object.hasOwnProperty.call(n,e)&&i("Duplicate key '"+e+"'"),n[e]=r(),c(),"}"===t)return a("}"),n;a(","),c()}}i("Bad object")};return r=function(){switch(c(),t){case"{":return p();case"[":return d();case'"':return l();case"-":return s();default:return t>="0"&&"9">=t?s():u()}},function(o,a){var s;return n=o,e=0,t=" ",s=r(),c(),t&&i("Syntax error"),"function"==typeof a?function l(e,t){var n,r,o=e[t];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r=l(o,n),void 0!==r?o[n]=r:delete o[n]);return a.call(e,t,o)}({"":s},""):s}}()},function(e,t){function n(e){return 10>e?"0"+e:e}function r(){return this.valueOf()}function o(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,function(e){var t=c[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function i(e,t){var n,r,a,c,d,p=s,h=t[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),"function"==typeof u&&(h=u.call(t,e,h)),typeof h){case"string":return o(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(s+=l,d=[],"[object Array]"===Object.prototype.toString.apply(h)){for(c=h.length,n=0;c>n;n+=1)d[n]=i(n,h)||"null";return a=0===d.length?"[]":s?"[\n"+s+d.join(",\n"+s)+"\n"+p+"]":"["+d.join(",")+"]",s=p,a}if(h._$isNumber)return h.toString();if(u&&"object"==typeof u)for(c=u.length,n=0;c>n;n+=1)"string"==typeof u[n]&&(r=u[n],a=i(r,h),a&&d.push(o(r)+(s?": ":":")+a));else for(r in h)Object.prototype.hasOwnProperty.call(h,r)&&(a=i(r,h),a&&d.push(o(r)+(s?": ":":")+a));return a=0===d.length?"{}":s?"{\n"+s+d.join(",\n"+s)+"\n"+p+"}":"{"+d.join(",")+"}",s=p,a}}var a=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=r,Number.prototype.toJSON=r,String.prototype.toJSON=r);var s,l,c,u;c={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},e.exports=function(e,t,n){var r;if(s="",l="","number"==typeof n)for(r=0;n>r;r+=1)l+=" ";else"string"==typeof n&&(l=n);if(u=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return i("",{"":e})}},function(module,exports){function evalJson(str){if(JSON_RE.test(str))with(ctx)try{return eval("("+str+")")}catch(e){}}var JSON_RE=/^\s*(?:\{[\w\W]*\}|\[[\w\W]*\])\s*$/,ctx={},throwError={get:function(){throw new Error("undefined")}};if(Object.defineProperty){Object.defineProperty(ctx,"console",throwError);for(var i in window)ctx[i]=void 0,Object.defineProperty(ctx,i,throwError)}module.exports=evalJson},function(e,t){function n(e,t){t=t||0;for(var n=Math.min(e.length,r);n>t;t++){var o=e[t];if(!(9==o||10==o||13==o||o>=32&&126>=o)){++t;var i=e[t];if(o>=194&&223>=o){if(i>=128&&191>=i)continue;return!i}++t;var a=e[t];if(224==o){if(i>=160&&191>=i&&a>=128&&191>=a)continue;return!a}if(o>=225&&236>=o||238==o||239==o){if(i>=128&&191>=i&&a>=128&&191>=a)continue;return!a}if(237==o){if(i>=128&&159>=i&&a>=128&&191>=a)continue;return!a}++t;var s=e[t];if(240==o){if(i>=144&&191>=i&&a>=128&&191>=a&&s>=128&&191>=s)continue;return!s}if(o>=241&&243>=o){if(i>=128&&191>=i&&a>=128&&191>=a&&s>=128&&191>=s)continue;return!s}if(244==o){if(i>=128&&143>=i&&a>=128&&191>=a&&s>=128&&191>=s)continue;return!s}return!1}}return!0}var r=32768;e.exports=function(e){return n(e)?!0:0===e[0]&&n(e,5)}},function(e,t,n){function r(e,t){"warn"===t?t="warning":"error"===t&&(t="danger");var n=i[t];return n||(n=o('
'),n.appendTo(document.body),i[t]=n),n.text(e),n.stop(!0,!0).show(),n.css("marginLeft",-n[0].offsetWidth/2),n.delay(2e3).fadeOut(1600),n}var o=n(5);n(207);var i={};["error","warn","info","success"].forEach(function(e){t[e]=function(t){return r(t,e)}})},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".w-message{position:fixed;top:30px;left:50%;z-index:999999999;padding:8px 20px!important;max-width:410px}",""])},function(e,t,n){n(186),n(210);var r=n(5),o=n(6),i=n(38),a=n(198),s={display:"none"};a.addDragEvent(".w-divider",function(e,t,n){e=e.parent();var r=e.parent(),o=!r.hasClass("box"),i=e.hasClass("w-divider-right"),a=o?e[0].offsetHeight-(i?n:-n):e[0].offsetWidth-(i?t:-t),s=r[0][o?"offsetHeight":"offsetWidth"];e[o?"height":"width"](Math.min(s-5,Math.max(5,a)))});var l=o.createClass({displayName:"Divider",componentDidMount:function(){this.reset()},triggerDOMReady:function(){this.__inited||(this.__inited=!0,this.props.onDOMReady&&this.props.onDOMReady())},reset:function(){var e=this,t=i.findDOMNode(e.refs.divider),n=a.getBoolean(e.props.vertical),o=n?"height":"width",s=r(t),l=s.children(".w-divider-left"),c=s.children(".w-divider-right");if(l.add(c).css({height:"auto",width:"auto"}),e._leftWidth>0)return l[o](e._leftWidth),void e.triggerDOMReady();var u=parseInt(e.props.rightWidth,10);return u>0?(c[o](Math.max(u,5)),void e.triggerDOMReady()):void setTimeout(function(){u=(n?t.offsetHeight:t.offsetWidth)/2,c[o](Math.max(u,5)),e.triggerDOMReady()},10)},render:function(){var e=a.getBoolean(this.props.vertical),t=o.createElement("div",{className:"w-divider"}),n=parseInt(this.props.leftWidth,10);return n>0?this._leftWidth=n:n=0,o.createElement("div",{ref:"divider",className:(e?"orient-vertical-box":"box")+" fill w-divider-con "+(this.props.className||"")+(a.getBoolean(this.props.hide)?" hide":"")},o.createElement("div",{className:(n?"":"fill ")+"w-divider-left orient-vertical-box "+(this.props.leftClassName||"")},n?t:"",this.props.children[0]),o.createElement("div",{style:this.props.hideRight?s:void 0,className:(n?"fill ":"")+"w-divider-right orient-vertical-box "+(this.props.rightClassName||"")},n?"":t,this.props.children[1]))}});e.exports=l},function(e,t,n){var r=n(211);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".w-divider-left,.w-divider-right{overflow:hidden;position:relative}.w-divider-con.box>.w-divider-right{min-width:5px!important}.w-divider-con.orient-vertical-box>.w-divider-right{min-height:5px!important}.w-divider{position:absolute;z-index:1}.w-divider-con.box>div>.w-divider{top:0;width:5px;height:100%;cursor:ew-resize}.w-divider-con.box>.w-divider-left>.w-divider{right:0;border-right:1px solid #ccc}.w-divider-con.box>.w-divider-right>.w-divider{left:0;border-left:1px solid #ccc}.w-divider-con.orient-vertical-box>div>.w-divider{left:0;height:5px;width:100%;cursor:ns-resize}.w-divider-con.orient-vertical-box>.w-divider-left>.w-divider{bottom:0;border-bottom:1px solid #ccc}.w-divider-con.orient-vertical-box>.w-divider-right>.w-divider{top:0;border-top:1px solid #ccc}",""])},function(e,t,n){function r(e){return document.querySelector?document.querySelector(e):o(e).length}n(213),n(215),n(217),n(219),n(221),n(223),n(225),n(227),n(229),n(231),n(233),n(235),n(237),n(239),n(241),n(243),n(245),n(247),n(249),n(251),n(196),n(253);var o=n(5),i=n(6),a=n(38),s=n(255),l=n(206),c=16384;n(256),n(257),n(258),n(259),n(260),n(262),n(263),n(264),n(265),n(266);var u=n(267),d=["default","neat","elegant","erlang-dark","night","monokai","cobalt","eclipse","rubyblue","lesser-dark","xq-dark","xq-light","ambiance","blackboard","vibrant-ink","solarized dark","solarized light","twilight","midnight"];n(277);var p="cobalt",h="16px",g=/^()\s*#\s*/,f=/^(\s*)\/\/+\s?/,m=/\S/,A=i.createClass({displayName:"Editor",getThemes:function(){return d},setMode:function(e){/^(javascript|css|xml|rules|markdown)$/i.test(e)?e=RegExp.$1.toLowerCase():/^(js|pac|jsx|json)$/i.test(e)?e="javascript":/^(html|wtpl)?$/i.test(e)?e="htmlmixed":/^md$/i.test(e)&&(e="markdown"),this._mode=e,this._editor&&this._editor.setOption("mode",e)},setValue:function(e){e=this._value=null==e?"":e+"",this._editor&&this._editor.getValue()!=e&&this._editor.setValue(e)},getValue:function(){return this._editor?"":this._editor.getValue()},setTheme:function(e){e=this._theme=e||p,this._editor&&this._editor.setOption("theme",e)},setFontSize:function(e){e=this._fontSize=e||h,this._editor&&(a.findDOMNode(this.refs.editor).style.fontSize=e)},showLineNumber:function(e){e=this._showLineNumber=e===!1?!1:!0,this._editor&&this._editor.setOption("lineNumbers",e)},showLineWrapping:function(e){e=this._showLineNumber=e===!1?!1:!0,this._editor&&this._editor.setOption("lineWrapping",e)},setReadOnly:function(e){e=this._readOnly=e===!1||"false"===e?!1:!0,this._editor&&this._editor.setOption("readOnly",e)},setAutoComplete:function(){var e=this.isRulesEditor(),t=e?u.getExtraKeys():{};/\(Macintosh;/i.test(window.navigator.userAgent)||(t["Ctrl-F"]="findPersistent"),t["Cmd-F"]="findPersistent";var n=this._editor;n.setOption("extraKeys",t);var o;e&&n.on("keyup",function(e,t){clearTimeout(o);var i=8===t.keyCode;(i||13===t.keyCode)&&(o=setTimeout(function(){r(".CodeMirror-hints")||(n._byDelete=!0,n._byEnter=!i,n.execCommand("autocomplete"))},300))})},isRulesEditor:function(){return"rules"===this.props.name||"rules"===this._mode},componentDidMount:function(){function e(){var n=r.offsetHeight||0;10>n?(t&&clearTimeout(t),t=setTimeout(e,300)):i.setSize(null,n)}var t,n=this,r=a.findDOMNode(n.refs.editor),i=n._editor=s(r);i.on("change",function(e){"function"==typeof n.props.onChange&&i.getValue()!==(n.props.value||"")&&n.props.onChange.call(n,e)}),i.on("mousedown",function(e,t){if(t.ctrlKey||t.metaKey){var n=o(t.target);(n.hasClass("cm-js-type")||n.hasClass("cm-js-at")||n.hasClass("cm-js-http-url"))&&t.preventDefault()}}),n._init(!0),o(r).find(".CodeMirror").addClass("fill"),e(),o(window).on("resize",function(){t&&clearTimeout(t),t=null,t=setTimeout(e,30)}),o(r).on("keydown",function(e){var t=n.isRulesEditor(),r="javascript"==n._mode;if(t){var o={name:n.props.name,url:location.href};if(!e.ctrlKey&&!e.metaKey&&112===e.keyCode){var a=u.getHelpUrl(n._editor,o);return a&&window.open(a),e.stopPropagation(),e.preventDefault(),!0}try{var s=window.parent.onWhistleRulesEditorKeyDown;if("function"==typeof s&&s(e,o)===!1)return e.stopPropagation(),e.preventDefault(),!0}catch(e){}}if((t||r)&&(e.ctrlKey||e.metaKey)&&191==e.keyCode){var l=i.listSelections();if(l&&l.length){var c,d=t?g:f,p=e.shiftKey,h=[];l.forEach(function(e){var n,r,o,a=e.anchor,s=e.head,l=[];a.line>s.line&&(o=a,a=s,s=o);for(var u=a.line;u<=s.line;u++){var g=i.getLine(u);d.test(g)?n=!0:m.test(g)&&(r=!0),l.push(g)}if(!(c=!n&&!r)){var f,A,M;r?(f=l.length-1,A=l[0],M=l[f],l=l.map(function(e){return m.test(e)?p&&d.test(e)?e.replace(d,"$1"):(t?"# ":"// ")+e:e})):(A=l[0],f=l.length-1,M=l[f],l=l.map(function(e){return e.replace(d,"$1")})),0!=a.ch&&(a.ch+=l[0].length-A.length,a.ch<0&&(a.ch=0)),0!=s.ch&&s!=a&&(s.ch+=l[f].length-M.length,s.ch<0&&(s.ch=0)),o?(i.replaceRange(l.join("\n")+"\n",{line:s.line+1,ch:0},{line:a.line,ch:0}),h.push({anchor:s,head:a})):(i.replaceRange(l.join("\n")+"\n",{line:a.line,ch:0},{line:s.line+1,ch:0}),h.push({anchor:a,head:s}))}}),c||i.setSelections(h)}}})},_init:function(e){var t=this;this.setMode(t.props.mode);var n=t.props.value;if(e&&n&&n.length>c){var r=l.info("Loading...");t.timer=setTimeout(function(){r.hide(),t.timer=null,t.setValue(t.props.value)},500)}else t.timer||t.setValue(n);t.setTheme(t.props.theme),t.setFontSize(t.props.fontSize),t.setTheme(t.props.theme),t.showLineNumber(t.props.lineNumbers||!1),t.showLineWrapping(t.props.lineWrapping||!1),t.setReadOnly(t.props.readOnly||!1),t.setAutoComplete()},componentDidUpdate:function(){this._init()},render:function(){return i.createElement("div",{tabIndex:"0",ref:"editor",className:"fill orient-vertical-box w-list-content"})}});e.exports=A},function(e,t,n){var r=n(214);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".CodeMirror{font-family:monospace;height:300px;color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror div.CodeMirror-cursor{border-left:1px solid #000}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.CodeMirror.cm-fat-cursor div.CodeMirror-cursor{width:auto;border:0;background:#7e7}.CodeMirror.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{width:auto;border:0;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;margin-bottom:-30px;*zoom:1;*display:inline}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-measure pre{position:static}.CodeMirror div.CodeMirror-cursor{position:absolute;border-right:none;width:0}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.CodeMirror span{*vertical-align:text-bottom}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:none}",""])},function(e,t,n){var r=n(216);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-neat span.cm-comment{color:#a86}.cm-s-neat span.cm-keyword{line-height:1em;font-weight:700;color:blue}.cm-s-neat span.cm-string{color:#a22}.cm-s-neat span.cm-builtin{line-height:1em;font-weight:700;color:#077}.cm-s-neat span.cm-special{line-height:1em;font-weight:700;color:#0aa}.cm-s-neat span.cm-variable{color:#000}.cm-s-neat span.cm-atom,.cm-s-neat span.cm-number{color:#3a3}.cm-s-neat span.cm-meta{color:#555}.cm-s-neat span.cm-link{color:#3a3}.cm-s-neat .CodeMirror-activeline-background{background:#e8f2ff!important}.cm-s-neat .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}",""])},function(e,t,n){var r=n(218);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-elegant span.cm-atom,.cm-s-elegant span.cm-number,.cm-s-elegant span.cm-string{color:#762}.cm-s-elegant span.cm-comment{color:#262;font-style:italic;line-height:1em}.cm-s-elegant span.cm-meta{color:#555;font-style:italic;line-height:1em}.cm-s-elegant span.cm-variable{color:#000}.cm-s-elegant span.cm-variable-2{color:#b11}.cm-s-elegant span.cm-qualifier{color:#555}.cm-s-elegant span.cm-keyword{color:#730}.cm-s-elegant span.cm-builtin{color:#30a}.cm-s-elegant span.cm-link{color:#762}.cm-s-elegant span.cm-error{background-color:#fdd}.cm-s-elegant .CodeMirror-activeline-background{background:#e8f2ff!important}.cm-s-elegant .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}",""])},function(e,t,n){var r=n(220);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-erlang-dark.CodeMirror{background:#002240;color:#fff}.cm-s-erlang-dark div.CodeMirror-selected{background:#b36539!important}.cm-s-erlang-dark .CodeMirror-line::selection,.cm-s-erlang-dark .CodeMirror-line>span::selection,.cm-s-erlang-dark .CodeMirror-line>span>span::selection{background:rgba(179,101,57,.99)}.cm-s-erlang-dark .CodeMirror-line::-moz-selection,.cm-s-erlang-dark .CodeMirror-line>span::-moz-selection,.cm-s-erlang-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(179,101,57,.99)}.cm-s-erlang-dark .CodeMirror-gutters{background:#002240;border-right:1px solid #aaa}.cm-s-erlang-dark .CodeMirror-guttermarker{color:#fff}.cm-s-erlang-dark .CodeMirror-guttermarker-subtle,.cm-s-erlang-dark .CodeMirror-linenumber{color:#d0d0d0}.cm-s-erlang-dark .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-erlang-dark span.cm-quote{color:#ccc}.cm-s-erlang-dark span.cm-atom{color:#f133f1}.cm-s-erlang-dark span.cm-attribute{color:#ff80e1}.cm-s-erlang-dark span.cm-bracket{color:#ff9d00}.cm-s-erlang-dark span.cm-builtin{color:#eaa}.cm-s-erlang-dark span.cm-comment{color:#77f}.cm-s-erlang-dark span.cm-def{color:#e7a}.cm-s-erlang-dark span.cm-keyword{color:#ffee80}.cm-s-erlang-dark span.cm-meta{color:#50fefe}.cm-s-erlang-dark span.cm-number{color:#ffd0d0}.cm-s-erlang-dark span.cm-operator{color:#d55}.cm-s-erlang-dark span.cm-property,.cm-s-erlang-dark span.cm-qualifier{color:#ccc}.cm-s-erlang-dark span.cm-special{color:#fbb}.cm-s-erlang-dark span.cm-string{color:#3ad900}.cm-s-erlang-dark span.cm-string-2{color:#ccc}.cm-s-erlang-dark span.cm-tag{color:#9effff}.cm-s-erlang-dark span.cm-variable{color:#50fe50}.cm-s-erlang-dark span.cm-variable-2{color:#e0e}.cm-s-erlang-dark span.cm-variable-3{color:#ccc}.cm-s-erlang-dark span.cm-error{color:#9d1e15}.cm-s-erlang-dark .CodeMirror-activeline-background{background:#013461!important}.cm-s-erlang-dark .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""])},function(e,t,n){var r=n(222);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-night.CodeMirror{background:#0a001f;color:#f8f8f8}.cm-s-night div.CodeMirror-selected{background:#447!important}.cm-s-night .CodeMirror-line::selection,.cm-s-night .CodeMirror-line>span::selection,.cm-s-night .CodeMirror-line>span>span::selection{background:rgba(68,68,119,.99)}.cm-s-night .CodeMirror-line::-moz-selection,.cm-s-night .CodeMirror-line>span::-moz-selection,.cm-s-night .CodeMirror-line>span>span::-moz-selection{background:rgba(68,68,119,.99)}.cm-s-night .CodeMirror-gutters{background:#0a001f;border-right:1px solid #aaa}.cm-s-night .CodeMirror-guttermarker{color:#fff}.cm-s-night .CodeMirror-guttermarker-subtle{color:#bbb}.cm-s-night .CodeMirror-linenumber{color:#f8f8f8}.cm-s-night .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-night span.cm-atom{color:#845dc4}.cm-s-night span.cm-attribute,.cm-s-night span.cm-number{color:#ffd500}.cm-s-night span.cm-keyword{color:#599eff}.cm-s-night span.cm-string{color:#37f14a}.cm-s-night span.cm-meta{color:#7678e2}.cm-s-night span.cm-tag,.cm-s-night span.cm-variable-2{color:#99b2ff}.cm-s-night span.cm-def,.cm-s-night span.cm-variable-3{color:#fff}.cm-s-night span.cm-bracket{color:#8da6ce}.cm-s-night span.cm-comment{color:#6900a1}.cm-s-night span.cm-builtin,.cm-s-night span.cm-special{color:#ff9e59}.cm-s-night span.cm-link{color:#845dc4}.cm-s-night span.cm-error{color:#9d1e15}.cm-s-night .CodeMirror-activeline-background{background:#1c005a!important}.cm-s-night .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""])},function(e,t,n){var r=n(224);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-monokai.CodeMirror{background:#272822;color:#f8f8f2}.cm-s-monokai div.CodeMirror-selected{background:#49483e!important}.cm-s-monokai .CodeMirror-line::selection,.cm-s-monokai .CodeMirror-line>span::selection,.cm-s-monokai .CodeMirror-line>span>span::selection{background:rgba(73,72,62,.99)}.cm-s-monokai .CodeMirror-line::-moz-selection,.cm-s-monokai .CodeMirror-line>span::-moz-selection,.cm-s-monokai .CodeMirror-line>span>span::-moz-selection{background:rgba(73,72,62,.99)}.cm-s-monokai .CodeMirror-gutters{background:#272822;border-right:0}.cm-s-monokai .CodeMirror-guttermarker{color:#fff}.cm-s-monokai .CodeMirror-guttermarker-subtle,.cm-s-monokai .CodeMirror-linenumber{color:#d0d0d0}.cm-s-monokai .CodeMirror-cursor{border-left:1px solid #f8f8f0!important}.cm-s-monokai span.cm-comment{color:#75715e}.cm-s-monokai span.cm-atom,.cm-s-monokai span.cm-number{color:#ae81ff}.cm-s-monokai span.cm-attribute,.cm-s-monokai span.cm-property{color:#a6e22e}.cm-s-monokai span.cm-keyword{color:#f92672}.cm-s-monokai span.cm-string{color:#e6db74}.cm-s-monokai span.cm-variable{color:#f8f8f2}.cm-s-monokai span.cm-variable-2{color:#9effff}.cm-s-monokai span.cm-variable-3{color:#66d9ef}.cm-s-monokai span.cm-def{color:#fd971f}.cm-s-monokai span.cm-bracket{color:#f8f8f2}.cm-s-monokai span.cm-tag{color:#f92672}.cm-s-monokai span.cm-header,.cm-s-monokai span.cm-link{color:#ae81ff}.cm-s-monokai span.cm-error{background:#f92672;color:#f8f8f0}.cm-s-monokai .CodeMirror-activeline-background{background:#373831!important}.cm-s-monokai .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},function(e,t,n){var r=n(226);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-cobalt.CodeMirror{background:#002240;color:#fff}.cm-s-cobalt div.CodeMirror-selected{background:#b36539!important}.cm-s-cobalt .CodeMirror-line::selection,.cm-s-cobalt .CodeMirror-line>span::selection,.cm-s-cobalt .CodeMirror-line>span>span::selection{background:rgba(179,101,57,.99)}.cm-s-cobalt .CodeMirror-line::-moz-selection,.cm-s-cobalt .CodeMirror-line>span::-moz-selection,.cm-s-cobalt .CodeMirror-line>span>span::-moz-selection{background:rgba(179,101,57,.99)}.cm-s-cobalt .CodeMirror-gutters{background:#002240;border-right:1px solid #aaa}.cm-s-cobalt .CodeMirror-guttermarker{color:#ffee80}.cm-s-cobalt .CodeMirror-guttermarker-subtle,.cm-s-cobalt .CodeMirror-linenumber{color:#d0d0d0}.cm-s-cobalt .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-cobalt span.cm-comment{color:#08f}.cm-s-cobalt span.cm-atom{color:#845dc4}.cm-s-cobalt span.cm-attribute,.cm-s-cobalt span.cm-number{color:#ff80e1}.cm-s-cobalt span.cm-keyword{color:#ffee80}.cm-s-cobalt span.cm-string{color:#3ad900}.cm-s-cobalt span.cm-meta{color:#ff9d00}.cm-s-cobalt span.cm-tag,.cm-s-cobalt span.cm-variable-2{color:#9effff}.cm-s-cobalt span.cm-def,.cm-s-cobalt span.cm-variable-3{color:#fff}.cm-s-cobalt span.cm-bracket{color:#d8d8d8}.cm-s-cobalt span.cm-builtin,.cm-s-cobalt span.cm-special{color:#ff9e59}.cm-s-cobalt span.cm-link{color:#845dc4}.cm-s-cobalt span.cm-error{color:#9d1e15}.cm-s-cobalt .CodeMirror-activeline-background{background:#002d57!important}.cm-s-cobalt .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""])},function(e,t,n){var r=n(228);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-eclipse span.cm-meta{color:#ff1717}.cm-s-eclipse span.cm-keyword{line-height:1em;font-weight:700;color:#7f0055}.cm-s-eclipse span.cm-atom{color:#219}.cm-s-eclipse span.cm-number{color:#164}.cm-s-eclipse span.cm-def{color:#00f}.cm-s-eclipse span.cm-variable{color:#000}.cm-s-eclipse span.cm-variable-2,.cm-s-eclipse span.cm-variable-3{color:#0000c0}.cm-s-eclipse span.cm-operator,.cm-s-eclipse span.cm-property{color:#000}.cm-s-eclipse span.cm-comment{color:#3f7f5f}.cm-s-eclipse span.cm-string{color:#2a00ff}.cm-s-eclipse span.cm-string-2{color:#f50}.cm-s-eclipse span.cm-qualifier{color:#555}.cm-s-eclipse span.cm-builtin{color:#30a}.cm-s-eclipse span.cm-bracket{color:#cc7}.cm-s-eclipse span.cm-tag{color:#170}.cm-s-eclipse span.cm-attribute{color:#00c}.cm-s-eclipse span.cm-link{color:#219}.cm-s-eclipse span.cm-error{color:red}.cm-s-eclipse .CodeMirror-activeline-background{background:#e8f2ff!important}.cm-s-eclipse .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}",""])},function(e,t,n){var r=n(230);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-rubyblue.CodeMirror{background:#112435;color:#fff}.cm-s-rubyblue div.CodeMirror-selected{background:#38566f!important}.cm-s-rubyblue .CodeMirror-line::selection,.cm-s-rubyblue .CodeMirror-line>span::selection,.cm-s-rubyblue .CodeMirror-line>span>span::selection{background:rgba(56,86,111,.99)}.cm-s-rubyblue .CodeMirror-line::-moz-selection,.cm-s-rubyblue .CodeMirror-line>span::-moz-selection,.cm-s-rubyblue .CodeMirror-line>span>span::-moz-selection{background:rgba(56,86,111,.99)}.cm-s-rubyblue .CodeMirror-gutters{background:#1f4661;border-right:7px solid #3e7087}.cm-s-rubyblue .CodeMirror-guttermarker{color:#fff}.cm-s-rubyblue .CodeMirror-guttermarker-subtle{color:#3e7087}.cm-s-rubyblue .CodeMirror-linenumber{color:#fff}.cm-s-rubyblue .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-rubyblue span.cm-comment{color:#999;font-style:italic;line-height:1em}.cm-s-rubyblue span.cm-atom{color:#f4c20b}.cm-s-rubyblue span.cm-attribute,.cm-s-rubyblue span.cm-number{color:#82c6e0}.cm-s-rubyblue span.cm-keyword{color:#f0f}.cm-s-rubyblue span.cm-string{color:#f08047}.cm-s-rubyblue span.cm-meta{color:#f0f}.cm-s-rubyblue span.cm-tag,.cm-s-rubyblue span.cm-variable-2{color:#7bd827}.cm-s-rubyblue span.cm-def,.cm-s-rubyblue span.cm-variable-3{color:#fff}.cm-s-rubyblue span.cm-bracket{color:#f0f}.cm-s-rubyblue span.cm-link{color:#f4c20b}.cm-s-rubyblue span.CodeMirror-matchingbracket{color:#f0f!important}.cm-s-rubyblue span.cm-builtin,.cm-s-rubyblue span.cm-special{color:#ff9d00}.cm-s-rubyblue span.cm-error{color:#af2018}.cm-s-rubyblue .CodeMirror-activeline-background{background:#173047!important}",""])},function(e,t,n){var r=n(232);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-lesser-dark{line-height:1.3em}.cm-s-lesser-dark.CodeMirror{background:#262626;color:#ebefe7;text-shadow:0 -1px 1px #262626}.cm-s-lesser-dark div.CodeMirror-selected{background:#45443b!important}.cm-s-lesser-dark .CodeMirror-line::selection,.cm-s-lesser-dark .CodeMirror-line>span::selection,.cm-s-lesser-dark .CodeMirror-line>span>span::selection{background:rgba(69,68,59,.99)}.cm-s-lesser-dark .CodeMirror-line::-moz-selection,.cm-s-lesser-dark .CodeMirror-line>span::-moz-selection,.cm-s-lesser-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(69,68,59,.99)}.cm-s-lesser-dark .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-lesser-dark pre{padding:0 8px}.cm-s-lesser-dark.CodeMirror span.CodeMirror-matchingbracket{color:#7efc7e}.cm-s-lesser-dark .CodeMirror-gutters{background:#262626;border-right:1px solid #aaa}.cm-s-lesser-dark .CodeMirror-guttermarker{color:#599eff}.cm-s-lesser-dark .CodeMirror-guttermarker-subtle,.cm-s-lesser-dark .CodeMirror-linenumber{color:#777}.cm-s-lesser-dark span.cm-header{color:#a0a}.cm-s-lesser-dark span.cm-quote{color:#090}.cm-s-lesser-dark span.cm-keyword{color:#599eff}.cm-s-lesser-dark span.cm-atom{color:#c2b470}.cm-s-lesser-dark span.cm-number{color:#b35e4d}.cm-s-lesser-dark span.cm-def{color:#fff}.cm-s-lesser-dark span.cm-variable{color:#d9bf8c}.cm-s-lesser-dark span.cm-variable-2{color:#669199}.cm-s-lesser-dark span.cm-variable-3{color:#fff}.cm-s-lesser-dark span.cm-operator,.cm-s-lesser-dark span.cm-property{color:#92a75c}.cm-s-lesser-dark span.cm-comment{color:#666}.cm-s-lesser-dark span.cm-string{color:#bcd279}.cm-s-lesser-dark span.cm-string-2{color:#f50}.cm-s-lesser-dark span.cm-meta{color:#738c73}.cm-s-lesser-dark span.cm-qualifier{color:#555}.cm-s-lesser-dark span.cm-builtin{color:#ff9e59}.cm-s-lesser-dark span.cm-bracket{color:#ebefe7}.cm-s-lesser-dark span.cm-tag{color:#669199}.cm-s-lesser-dark span.cm-attribute{color:#00c}.cm-s-lesser-dark span.cm-hr{color:#999}.cm-s-lesser-dark span.cm-link{color:#00c}.cm-s-lesser-dark span.cm-error{color:#9d1e15}.cm-s-lesser-dark .CodeMirror-activeline-background{background:#3c3a3a!important}.cm-s-lesser-dark .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""]); +},function(e,t,n){var r=n(195);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,'.main,body,html{margin:0;padding:0;width:100%;height:100%}#container{min-width:810pt;min-height:35pc}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-button{width:10px;height:1px}::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:rgba(0,0,0,.5);border-radius:8px;min-height:30px}::-webkit-scrollbar-thumb:hover{background-clip:padding-box;background-color:rgba(0,0,0,.7);border-radius:8px}::-webkit-scrollbar-thumb,::-webkit-scrollbar-track{border-left:2px solid transparent;border-right:2px solid transparent}::-webkit-scrollbar-track:hover{background-clip:padding-box;background-color:rgba(0,0,0,.15)}.cm-error-rule{text-decoration:line-through!important;color:#af2018!important;font-style:italic}pre{background:transparent;border:none;padding:0;margin:0;font-size:9pt;font-family:inherit;display:block;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}.n-monospace{font-family:monospace}body .CodeMirror pre{font-family:consolas,monospace}input[type=checkbox],input[type=radio]{margin:0;vertical-align:text-bottom}.glyphicon-ban-circle{color:#f66}.w-filter-input{width:100%;background:rgba(0,0,0,.8);height:30px;color:#fff;padding:2px 5px;border:none;border-top:1px solid #ccc;border-bottom:1px solid #ccc}.shadow{border:1px solid rgba(0,0,0,.15)!important;box-shadow:0 6px 9pt rgba(0,0,0,.175)!important}textarea[readonly]{outline:0}textarea{resize:none;display:block;font-size:9pt}.hide{display:none!important}.box,.orient-vertical-box{display:-webkit-box;display:-moz-box;display:box}.orient-vertical-box{-moz-box-orient:vertical;-webkit-box-orient:vertical;box-orient:vertical}.fill{-moz-box-flex:1;-webkit-box-flex:1;box-flex:1}.box>.fill{width:0}.orient-vertical-box>.fill{height:0}.table{table-layout:fixed;margin:0!important}.table .w-empty{text-align:center;font-style:italic;color:#ccc}.w-expand-collapse{margin-left:5px;height:20px;line-height:1pc;font-size:9pt;color:#000}.w-arrow,.w-arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.w-arrow{border-width:7px}.w-arrow:after{content:"";border-width:6px}.w-arrow-left{top:50%;left:-7px;margin-top:-7px;border-right-color:#ccc;border-right-color:rgba(0,0,0,.25);border-left-width:0}.w-arrow-left:after{bottom:-6px;left:1px;border-right-color:#f1f3f4;border-left-width:0}.w-arrow-right{top:50%;right:-7px;margin-top:-7px;border-left-color:#ccc;border-left-color:rgba(0,0,0,.25);border-right-width:0}.w-arrow-right:after{bottom:-6px;right:1px;border-left-color:#ffffe0;border-right-width:0}.modal-dialog .modal-body,.modal-dialog .modal-footer{padding:10px}.modal-footer .btn{padding:5px 10px}.cm-header{text-decoration:line-through}.cm-s-ambiance ::-webkit-scrollbar-thumb,.cm-s-blackboard ::-webkit-scrollbar-thumb,.cm-s-cobalt ::-webkit-scrollbar-thumb,.cm-s-dark ::-webkit-scrollbar-thumb,.cm-s-erlang-dark ::-webkit-scrollbar-thumb,.cm-s-lesser-dark ::-webkit-scrollbar-thumb,.cm-s-midnight ::-webkit-scrollbar-thumb,.cm-s-monokai ::-webkit-scrollbar-thumb,.cm-s-night ::-webkit-scrollbar-thumb,.cm-s-twilight ::-webkit-scrollbar-thumb,.cm-s-vibrant-ink ::-webkit-scrollbar-thumb,.cm-s-xq-dark ::-webkit-scrollbar-thumb{background-color:hsla(0,0%,100%,.5)}.cm-s-ambiance ::-webkit-scrollbar-thumb:hover,.cm-s-blackboard ::-webkit-scrollbar-thumb:hover,.cm-s-cobalt ::-webkit-scrollbar-thumb:hover,.cm-s-dark ::-webkit-scrollbar-thumb:hover,.cm-s-erlang-dark ::-webkit-scrollbar-thumb:hover,.cm-s-lesser-dark ::-webkit-scrollbar-thumb:hover,.cm-s-midnight ::-webkit-scrollbar-thumb:hover,.cm-s-monokai ::-webkit-scrollbar-thumb:hover,.cm-s-night ::-webkit-scrollbar-thumb:hover,.cm-s-twilight ::-webkit-scrollbar-thumb:hover,.cm-s-vibrant-ink ::-webkit-scrollbar-thumb:hover,.cm-s-xq-dark ::-webkit-scrollbar-thumb:hover{background-color:hsla(0,0%,100%,.7)}.cm-s-ambiance ::-webkit-scrollbar-track:hover,.cm-s-blackboard ::-webkit-scrollbar-track:hover,.cm-s-cobalt ::-webkit-scrollbar-track:hover,.cm-s-dark ::-webkit-scrollbar-track:hover,.cm-s-erlang-dark ::-webkit-scrollbar-track:hover,.cm-s-lesser-dark ::-webkit-scrollbar-track:hover,.cm-s-midnight ::-webkit-scrollbar-track:hover,.cm-s-monokai ::-webkit-scrollbar-track:hover,.cm-s-night ::-webkit-scrollbar-track:hover,.cm-s-twilight ::-webkit-scrollbar-track:hover,.cm-s-vibrant-ink ::-webkit-scrollbar-track:hover,.cm-s-xq-dark ::-webkit-scrollbar-track:hover{background-color:hsla(0,0%,100%,.15)}.w-offline-status .w-left-menu a,.w-offline-status .w-menu a{color:#ccc!important}body .cm-s-cobalt span.cm-number{color:#ff1605}.w-hide-no-value .w-no-value{display:none!important}.w-detail .w-dock-btn{border:none;background:transparent;padding:4px 0;width:20px;text-align:center;position:absolute;right:0;top:0;outline:0}.w-detail .w-dock-btn .glyphicon{margin:0!important}.btn.active,.btn:active{box-shadow:none!important}.CodeMirror-hints{z-index:999999!important}.w-mark td,.w-mark th{background-color:#3b88fd!important;color:#fff!important}.ReactVirtualized__Grid.ReactVirtualized__List{outline:0}.w-not-allowed{cursor:not-allowed}.w-bold{font-weight:700!important}a{cursor:pointer}',""])},function(e,t,n){var r=n(197);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".w-divider-con .w-divider{border:none}.w-list-data{border-top:1px solid #ccc;background:#fafafa;overflow-x:hidden;overflow-y:auto;outline:0}.w-list-data a{display:block;padding-left:10px;line-height:2pc;position:relative;border-bottom:1px solid #ccc;color:#000;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff;outline:0}.w-list-data a .glyphicon-ok{position:absolute;top:50%;right:10px;margin-top:-8px;color:#5bbd72;display:none}.w-list-content{border:1px solid #ccc;border-left:none}.w-list-data .w-changed:before{content:'*';color:red;margin-right:5px}.w-list-data a:hover{color:#337ab7}.w-list-data .w-active{background:#337ab7;color:#fff!important}.w-list-data .w-selected{font-weight:500}.w-list-data .w-selected .glyphicon-ok{display:inline-block}.w-list-data span.w-whistle-tpl{display:block;width:8px;height:8px;position:absolute;right:3px;top:2px;background:center center no-repeat;background-size:100%}.w-list-data .w-list-group-wrap{background-color:#f1f3f4;border-bottom:1px solid #ccc}.w-list-data .w-list-group-wrap.w-active,.w-list-data .w-list-group-wrap:hover{background-color:#ddd}.w-list-group-wrap>a{margin-left:9pt;border-bottom:none;border-left:1px solid #ccc;border-top:1px solid #ccc;display:none}.w-list-data .w-list-group{background-color:transparent;padding-left:5px;cursor:default;color:#000!important;margin:0;border-left:none;border-top:none;display:block}.w-group-expand>a{display:block}.w-list-group .glyphicon-triangle-bottom,.w-list-group .glyphicon-triangle-right{font-size:9pt;margin-right:3px;display:inline-block!important}",""])},function(e,t,n){function r(e){return e}function o(e,t){return e==t?0:e>t?-1:1}function i(e){return e&&"string"==typeof e}function a(){ue=le=ce=null}function s(e,t){if(e&&"function"==typeof t&&"string"==typeof e&&(e=de.trim(e))){var n=xe[e]=xe[e]||[];-1==de.inArray(t,n)&&n.push(t)}}function l(e,t){var n=xe[e];if(n){if("function"==typeof t){var r=de.inArray(t,n);return void(-1!=r&&n.splice(r,1))}delete xe[e]}}function c(e,t,n){if(e&&(t||""!==t)){"string"==typeof t&&(t=t.split("."));for(var r=0,o=t.length-1;o>=r;r++){var i=t[r];if(!(i in e))return n;if(e=e[i],r==o)return e;if(!e)return n}}return n}function u(e){var t=e.hostIp;if(!t)return e.serverIp;if(e.realIp)e.serverIp=e.realIp+", "+t,delete e.realIp;else if(!e.serverIp){var n=e.res||"";n.phost&&n.phost!=t&&(t=n.phost+", "+t);var o=B(c(n,"headers.x-whistle-response-for"));o&&(t=o!==t&&-1===o.trim().split(/\s*,\s*/).indexOf(t)?o+", "+t:o,e.serverIp=t.trim().split(/\s*,\s*/).filter(r).join(", "))}return e.serverIp||t}function d(e){return!(!e||"false"===e)}function p(e){return e&&"string"!=typeof e&&(e=e["content-type"]||e.contentType),"string"==typeof e?e.split(";")[0].trim().toLowerCase():""}function h(e){if(e=p(e)){if(-1!=e.indexOf("javascript"))return"JS";if(-1!=e.indexOf("css"))return"CSS";if(-1!=e.indexOf("html"))return"HTML";if(-1!=e.indexOf("json"))return"JSON";if(-1!=e.indexOf("xml"))return"XML";if(-1!=e.indexOf("text/"))return"TEXT";if(-1!=e.indexOf("image/"))return"IMG"}return null}function g(e){return e?(e=h(e),e&&"IMG"!==e):!0}function f(e){var t=e.indexOf("://");t=-1==t?0:t+3;var n=e.indexOf("/",t);return e=-1==n?e.substring(t):e.substring(t,n)}function m(e,t,n){if(!e)return"";var r=Object.keys(e),o=n?r.indexOf("content-encoding"):-1;return-1!==o&&r.splice(o,1),r.map(function(n){var r=e[n];return n=t&&t[n]||n,Array.isArray(r)?r.map(function(e){return n+": "+e}).join("\r\n"):n+": "+r}).join("\r\n")}function A(e){return"string"==typeof e?e.trim().toLowerCase():e}function M(e){var t=A(e&&e["content-encoding"]||e);return"gzip"===t||"deflate"===t?t:null}function w(e){var t=e.indexOf("://");return-1==t?e:e.substring(t+3)}function b(e,t){if("string"==typeof e&&(e=e.trim())){if(t){if(!/({[\w\W]*}|\[[\w\W]*\])/.test(e))return;e=RegExp.$1}try{return Le(e,t)}catch(n){return we(e)}}}function y(e,t){window._$hasBigNumberJson=!1;var n=b(e,!0);if(n||!e||!t)return n;try{return b(t(e),!0)}catch(r){}}function T(e){return/^post$/i.test(e.method)&&/urlencoded/i.test(e.headers&&e.headers["content-type"])}function v(e){return void 0===e?"":e+""}function x(e){var t=window.open("editor.html");t.getValue=function(){return e},t.setValue&&t.setValue(e)}function N(e){return ke[e]}function C(e,t){if("function"==typeof e.find)return e.find(t);for(var n=0,r=e.length;r>n;n++){var o=e[n];if(t(o,n,e))return o}}function I(e){if(!e.closed&&e.frames){var t=e.frames[e.frames.length-1];t&&(t.closed||t.err)&&(e.closed=!0)}return e.closed}function E(e,t){return t.key1?(e=e.toLowerCase(),-1===e.indexOf(t.key1)?" hide":t.key2&&-1===e.indexOf(t.key2)?" hide":t.key3&&-1===e.indexOf(t.key3)?" hide":""):""}function D(e){e.hide=!1}function L(e){var t=e.toLocaleString();if(!Qe.test(t))return t;var n=RegExp["$&"],r=e.getTime()%1e3;return 10>r?r="00"+r:100>r&&(r="0"+r),t.replace(n,n+"."+r)}function S(e){return e>0?new Array(e+1).join("0"):""}function j(e,t){return e=e.toString(16).toUpperCase(),S(t-e.length)+e}function k(e){for(var t,n,r=e.length,o=Math.max(6,r.toString(16).length),i=[],a=Math.ceil(r/16),s=0;a>s;s++){var l=16*s,c=Math.min(16+l,r);t=j(Math.max(c-16,0),o)+" ";for(var u="";c>l;l++)n=e[l],t+=" "+j(n,2),u+=n>31&&127>n||n>159?String.fromCharCode(n):".";i.push(t+new Array(3*(17-u.length)).join(" ")+u)}return i.join("\n")}function B(e,t){if(!e||"string"!=typeof e)return"";var n=e.replace(Fe," ");try{return decodeURIComponent(n)}catch(r){}if(!t&&Re&&He.test(n))try{var o=[];if(n.replace(Oe,function(e){e.length>1?o.push(parseInt(e.substring(1),16)):o.push(String.fromCharCode(e))}),!t(o))return Re.decode(new window.Uint8Array(o))}catch(r){}return e}function U(e){try{return encodeURIComponent(e)}catch(t){}return e}function Q(e){try{return pe(e)}catch(t){}return[]}function z(e){var t=Q(e),n={hex:k(t)};if(!be(t))try{n.text=Re.decode(t)}catch(r){}if(!n.text)try{n.text=fe(e)}catch(r){n.text=e}return n}function R(e){var t=p(e.headers);return t&&"IMG"===h(t)?t:""}function O(e){if(e)try{return k(Q(e))}catch(t){}return e}function H(e){return"Closed"+(e.code?" ("+e.code+")":"")}function F(e,t){if(!e[Pe]||!e[Ye]){if(!e.base64){var n=e.body||e.text;if((e.closed||e.err)&&(n=String(e.err||H(e))),n)try{n=String(n),e.base64=me(n),e[Pe]=n,e[Ye]=O(e.base64)}catch(r){}finally{delete e.body,delete e.bin,delete e.text}if(!e.base64)return}var o=!t&&R(e);if(o)e[Pe]="data:"+o+";base64,"+e.base64,e[Ye]=O(e.base64);else{var i=z(e.base64);e[Pe]=i.text,e[Ye]=i.hex}}}function V(e,t){return F(e,t),e[Pe]||""}function P(e){var t=e.headers&&e.headers["content-type"];return We.test(t)||Xe.test(V(e))?RegExp.$1.toUpperCase():"UTF8"}function Y(e,t){try{var n=JSON.parse(e);if(n&&"object"==typeof n)return n;!t&&ye.error("Error: not a json object.")}catch(r){if(n=we(e))return n;!t&&ye.error("Error: "+r.message)}}function G(e){var t={};return e=e.split(Te),e.forEach(function(e){var n=e.indexOf(":"),r="";if(-1!=n){r=e.substring(n+1).trim();var o=e.substring(0,n).trim(),i=t[o];i?(Array.isArray(i)||(t[o]=i=[i]),i.push(r)):t[o]=r}}),t}function W(e){return"string"!=typeof e?!1:(e=e.toUpperCase(),!("GET"===e||"HEAD"===e||"OPTIONS"===e||"CONNECT"===e))}function X(e){return e?e.split(".").map(function(e){return e=parseInt(e,10)||0,e>9?e:"0"+e}).join("."):""}function _(e,t){var n="",r="",o=e&&e.indexOf("-");return o>-1&&(n=e.slice(o+1),e=e.slice(0,o)),o=t&&t.indexOf("-"),o>-1&&(r=t.slice(o+1),t=t.slice(0,o)),e=X(e),t=X(t),e>t?!0:t>e?!1:r>n}function J(e){var t=e.indexOf(" ")+2;return e.substring(t,e.indexOf(" ",t)).trim()}function Z(e){try{var t=window.parent.onWhistlePageChange;"function"==typeof t&&Je!==e&&(Je=e,t(e,location.href))}catch(n){}}function K(e){var t=location.hash.substring(1),n=t.indexOf("?");t=-1===n?"":t.substring(n),location.hash=e+t,Z(e)}function q(e,t,n){var r,o=new FileReader,i=function(e,n){return r?void 0:(r=!0,e?(o.abort(),alert(e.message)):void t(n))},a="text"===n;return o[a?"readAsText":"readAsArrayBuffer"](e),o.onerror=i,o.onabort=function(){i(new Error("Aborted"))},o.onload=function(){var e=o.result;try{a||(e=new window.Uint8Array(e),e="base64"===n?he(e):e),i(null,e)}catch(t){i(t)}},o}function $(e,t,n){var r=e.length,o=t&&t.length;if(!r||!o)return-1;var i=t[0],a=e.indexOf(i,n||0);if(1===o)return a;for(var s=-1;-1!==a;){s=a;for(var l=0;o>l;l++)if(t[l]!==e[l+a]){s=-1,a=e.indexOf(i,a+1);break}if(-1!==s)return s}return s}function ee(e,t,n){var r=e.length,o=t.length,i=new window.Uint8Array(r+o+(n?n.length:0));return i.set(e),i.set(t,r),n&&i.set(n,r+o),i}function te(e){try{return e=Ae(e),pe(e)}catch(t){}return null}function ne(e){try{return pe(e)}catch(t){}return null}function re(e){try{e=fe(he(e)).split("\r\n")}catch(t){return}if(tt.test(e[0])){var n={name:RegExp.$1||RegExp.$2,value:""};if(rt.test(e[1])){n.type=RegExp.$1;var r=e[0].indexOf("name="+RegExp["$&"]);nt.test(e[0].substring(r+1))&&(n.value=RegExp.$1||RegExp.$2)}return n}}function oe(e,t){for(var n="--"+t,r=te(n+"\r\n"),o=te("\r\n"+n),i=r.length,a=$(e,r),s=[];a>=0;){a+=i;var l=$(e,et,a);if(-1===l)return s;var c=$(e,o,l+2);if(-1===c)return s;var u=e.slice(a,l);l+=4;var d=l>=c?"":e.slice(l,c);if(u=re(u)){if(u.type)u.data=d;else try{u.value=d&&fe(he(d))}catch(p){}s.push(u)}a=$(e,r,c+2)}return s}function ie(e){var t='Content-Disposition: form-data; name="'+e.name+'"',n=e.data;return n?(t+='; filename="'+e.value+'"',e.type&&(t+="\r\nContent-Type: "+e.type)):n=e.value&&te(e.value),t?(t=te(t+"\r\n\r\n"),n?ee(t,n,ot):t):void 0}function ae(){return"----WhistleUploadForm"+Date.now().toString(16)+Math.floor(1e11*Math.random()).toString(16)}function se(e){var t,n="",r=e.length;for(t=2;r>t;t+=3)n+=it[e[t-2]>>2],n+=it[(3&e[t-2])<<4|e[t-1]>>4],n+=it[(15&e[t-1])<<2|e[t]>>6],n+=it[63&e[t]];return t===r+1&&(n+=it[e[t-2]>>2],n+=it[(3&e[t-2])<<4],n+="=="),t===r&&(n+=it[e[t-2]>>2],n+=it[(3&e[t-2])<<4|e[t-1]>>4],n+=it[(15&e[t-1])<<2],n+="="),n}var le,ce,ue,de=n(5),pe=n(199).toByteArray,he=n(199).fromByteArray,ge=n(200).Base64,fe=ge.decode,me=ge.encode,Ae=ge.toBase64,Me=n(201),we=n(204),be=n(205),ye=n(206),Te=/\r\n|\r|\n/g,ve=/[:\[][\s\n\r]*-?[\d.]{16,}[\s\n\r]*[,\}\]]/,xe={},Ne=0,Ce=["fatal","error","warn","info","debug"],Ie=navigator.userAgent.indexOf("Macintosh")>=0;t.IS_MACOS=Ie,t.noop=r,t.compare=o,t.isString=function(e){return"string"==typeof e},t.parseLogs=function(e){try{e=JSON.parse(e)}catch(t){}if(Array.isArray(e)){for(var n,r=0,o=0,a=e.length;a>o;o++){var s=e[o];if(s&&void 0!==s.text&&(n=n||[],s.id=++Ne,s.date=s.date>0?s.date:0,i(s.level)?(s.level=s.level.toLowerCase(),-1===Ce.indexOf(s.level)&&(s.level="info")):s.level="info",n.push(s),++r>=100))return n}return n}},t.preventDefault=function(e){8==e.keyCode&&e.preventDefault()},t.preventBlur=function(e){e.preventDefault()},t.getBase64FromHexText=function(e,t){if(!e)return"";if(/[^\da-f\s]/i.test(e))return!1;e=e.replace(/\s+/g,"");var n=e.length;if(n%2===1)return!1;if(t)return!0;e=e.match(/../g).map(function(e){return parseInt(e,16)});try{return he(e)}catch(r){}return!1},de(document).on("mousedown",function(e){a();var t=de(e.target);Object.keys(xe).some(function(e){return le=t.closest(e),le.length?(ue=xe[e],!0):void(le=null)}),le&&ue&&(ce=e,e.preventDefault())}).on("mousemove",function(e){le&&(ue.forEach(function(t){t(le,e.clientX-ce.clientX,e.clientY-ce.clientY,ce.clientX,ce.clientY)}),ce=e)}).on("mouseup",a).on("mouseout",function(e){!e.relatedTarget&&a()}),t.addDragEvent=s,t.removeDragEvent=l;var Ee=1;t.getKey=function(){return"w-reactkey-"+Ee++},t.getProperty=c,t.getServerIp=u,t.getBoolean=d,t.showSystemError=function(e){e=e||{};var t=e.status;return t?401==t?alert("You do not have permission to operate."):413==t?alert("The content is too large."):void alert("System error, try again later."):alert("Please check the proxy settings or whether whistle has been started.")},t.getClasses=function(e){var t=[];for(var n in e)e[n]&&t.push(n);return t.join(" ")},t.getExtension=function(e){var t,n=h(e);return"XML"===n&&(t=p(e),0===t.indexOf("image/")&&(n="IMG")),"IMG"!==n?n?"."+("TEXT"===n?"txt":n.toLowerCase()):"":(t=t||p(e),t=t.substring(t.indexOf("/")+1).toLowerCase(),/\w+/.test(t)?"."+RegExp["$&"]:"")},t.getContentType=h,t.isText=g;var De=/^head$/i;t.hasBody=function(e,t){if(t&&De.test(t.method))return!1;var n=e.statusCode;return!(204==n||n>=300&&400>n||n>=100&&199>=n)},t.getHostname=function(e){e=f(e);var t=e.lastIndexOf(":");return-1==t?e:e.substring(0,t)},t.getHost=f,t.getProtocol=function(e){var t=e.indexOf("://");return-1==t?"TUNNEL":e.substring(0,t).toUpperCase()},t.ensureVisible=function(e,t,n){e=de(e),t=de(t);var r=e.offset().top-t.offset().top;if(r){var o,i=t[0].offsetHeight,a=e[0].offsetHeight;if(0>r)return void(n?(o=Math.ceil((i-a)/2),o=Math.max(0,t.scrollTop()+r-o),t.scrollTop(o)):t.scrollTop(t.scrollTop()+r-2));r+=a-i,r>0&&(n?(o=Math.ceil(i/2),o=Math.max(0,t.scrollTop()+r+o),t.scrollTop(o)):t.scrollTop(t.scrollTop()+r+2))}},t.parseQueryString=function(e,t,n,r,o){var i={};return window.___hasFormData=!1,e&&(e=(e+"").trim())?(t=t||"&",n=n||"=",e.split(t).forEach(function(e){e=e.split(n);var t=e[0],a=e.slice(1).join("=");if(t||a){var s=a,l=t;r==decodeURIComponent&&(r=B);try{a=r?r(s):a}catch(c){}try{t=r?r(l):t}catch(c){}if(!o&&t in i){var u=i[t];Array.isArray(u)?u.push(a):i[t]=[u,a]}else i[t]=a;window.___hasFormData=!0}}),i):i},t.objectToString=m,t.getOriginalReqHeaders=function(e){var t=e.req,n=de.extend({},t.headers,e.rulesHeaders,!0);return e.clientId&&!n["x-whistle-client-id"]&&(n["x-whistle-client-id"]=e.clientId),M(n)&&delete n["content-encoding"],m(n,t.rawHeaderNames)},t.removeProtocol=w,t.getPath=function(e){e=w(e);var t=e.indexOf("/");return-1==t?"/":e.substring(t)};var Le=function(e,t){var n;return t&&ve.test(e)?(window._$hasBigNumberJson=!0,n=Me.parse(e)):n=JSON.parse(e),"object"==typeof n?n:null};t.evalJson=we,t.parseJSON=b,t.unique=function(e,t){var n=[];if(t)for(var r=e.length-1;r>=0;r--){var o=e[r];-1==n.indexOf(o)&&n.unshift(o)}else e.forEach(function(e){-1==n.indexOf(e)&&n.push(e)});return n},t.getFilename=function(e,t){var n=e.url;if(e.isHttps)return n;if(t&&e.filename)return e.filename;if(e.simplePath)return e.simplePath;n=w(n.replace(/[?#].*/,""));var r=n.lastIndexOf("/"),o=-1!=r&&n.substring(r+1);return o||(t?(n=n.substring(0,r),r=n.lastIndexOf("/"),o=-1===r?n:n.substring(r+1)):o="/"),e[t?"filename":"simplePath"]=o,o};var Se={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Time-out",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Large",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Time-out",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"};t.getStatusMessage=function(e){return e.statusCode?"string"==typeof e.statusMessage?e.statusMessage:Se[e.statusCode]||"unknown":""},t.isUrlEncoded=T,t.toString=v,t.openEditor=x;var je=/['<> "&]/g,ke={'"':""","<":"<",">":">","&":"&"," ":" ","'":"'"},Be=/\r?\n/g,Ue=/\s/g;t.escape=function(e){return null==e?e:(e=(e+"").replace(je,N),e.replace(Be,"
").replace(Ue," "))},t.findArray=C,t.isFocusEditor=function(){var e=document.activeElement,t=e&&e.nodeName;return"INPUT"!==t&&"TEXTAREA"!==t?!1:!e.readOnly&&!e.disabled},t.getMenuPosition=function(e,t,n){var r=e.pageX,o=e.pageY,i=document.documentElement,a=i.clientWidth;return r+t-window.scrollX>=a&&(r=Math.max(r-t,window.scrollX+1)),o+n-window.scrollY>=i.clientHeight-25&&(o=Math.max(o-n,window.scrollY+1)),{top:o,left:r,marginRight:a-r}},t.canReplay=function(e){return!e.isHttps||"tunnel"===e.req.headers["x-whistle-policy"]||/^wss?:/.test(e.url)},t.socketIsClosed=I,t.canAbort=function(e){return e.lost||e.endTime?e.reqError||e.resError?!1:!!e.frames&&!I(e):!0},t.asCURL=function(e){if(!e)return e;var t=e.req,n=e.url.replace(/^ws/,"http"),r=t.method,o=["curl","-X",r,JSON.stringify(n)],i=t.headers,a=t.rawHeaderNames||{};Object.keys(i).forEach(function(e){"content-length"!==e&&"content-encoding"!==e&&"accept-encoding"!==e&&o.push("-H",JSON.stringify((a[e]||e)+": "+i[e]))});var s=g(t.headers)||T(t)?V(t,!0):"";return s&&o.push("-d",JSON.stringify(s)),o.join(" ")},t.parseHeadersFromHar=function(e){var t={},n={};return Array.isArray(e)&&e.forEach(function(e){var r=e.name,o=r.toLowerCase();t[o]=e.value,n[o]=r}),{headers:t,rawHeaderNames:n}},t.getTimeFromHar=function(e){return e>0?e:0},t.parseKeyword=function(e){e=e.toLowerCase().split(/\s+/g);for(var t={},n=0,r=0;3>=r;r++){var o=e[r];o&&0===o.indexOf("level:")?t.level=o.substring(6):3>n&&(++n,t["key"+n]=o)}return t},t.hasVisibleLog=function(e){var t=e.length;if(!t)return!1;for(var n=0;t>n;n++)if(!e[n].hide)return!0},t.trimLogList=function(e,t,n){var r=e.length;if(n){for(var o=0;t>0&&r>o;)e[o].hide?(--r,--t,e.splice(o,1)):++o;t=e.length-100}return t>0&&e.splice(0,t),e};var Qe=/\b\d\d?:\d\d?:\d\d?\b/;t.toLocaleString=L,t.filterLogList=function(e,t){return e?t?void e.forEach(function(e){var n=t.level;if(n&&e.level!==n)e.hide=!0;else{var r="Date: "+L(new Date(e.date))+e.logId+"\r\n"+e.text;e.hide=E(r,t)}}):void e.forEach(D):void 0},t.checkLogText=E,t.scrollAtBottom=function(e,t){return e.scrollTop+e.offsetHeight+5>t.offsetHeight},t.triggerListChange=function(e,t){try{var n=window.parent["rules"===e?"onWhistleRulesChange":"onWhistleValuesChange"];"function"==typeof n&&n(t)}catch(r){}};var ze=/^\/(.+)\/(i?m?|m?i)$/;t.toRegExp=function(e){if(e){e=ze.test(e);try{e=e&&new RegExp(RegExp.$1,RegExp.$2)}catch(t){return}return e}};var Re,Oe=/%[a-f\d]{2}|./gi,He=/%[a-f\d]{2}/i,Fe=/\+/g;if(window.TextDecoder)try{Re=new TextDecoder("GB18030")}catch(Ve){}t.decodeURIComponentSafe=B,t.encodeURIComponent=U;var Pe="$body",Ye="$hex",Ge="$json";window.Symbol&&(Pe=window.Symbol["for"](Pe),Ye=window.Symbol["for"](Ye),Ge=window.Symbol["for"](Ge)),t.getHexFromBase64=O,t.getJson=function(e,t,n){if(null==e[Ge]){var r=V(e,t);r=r&&y(r,n),e[Ge]=r?{json:r,str:(window._$hasBigNumberJson?Me:JSON).stringify(r,null," ")}:""}return e[Ge]},t.getBody=V,t.getHex=function(e){return F(e),e[Ye]||""};var We=/charset=([\w-]+)/i,Xe=/]*\bcharset=(?:'|")?([\w-]+)[^>]*>/i;t.openPreview=function(e){if(e){var t=e.res,n=h(t.headers),r="IMG"===n;if(r||"HTML"===n){var o=e.url;o=/^((?:http|ws)s?:)?\/\//i.test(o)?RegExp.$1?o.replace(/^ws/,"http"):"http:"+o:"http://"+o;var i=r?"UTF8":P(t);o+=(-1===o.indexOf("?")?"":"&")+"???WHISTLE_PREVIEW_CHARSET="+i,window.open(o+"???#"+(r?V(t):t.base64))}}},t.parseRawJson=Y,t.parseHeaders=function(e){return e="string"==typeof e?e.trim():null,e?Y(e,!0)||G(e):{}},t.hasRequestBody=W;var _e=/([^\x00-\xFF]|[\r\n%])/g;t.encodeNonLatin1Char=function(e){return e&&"string"==typeof e?e.replace(_e,U):""},t.compareVersion=_,t.getHexText=function(e){return e?e.split("\n").map(J).join("\n"):""};var Je;t.triggerPageChange=Z;var Ze;t.triggerRulesActiveChange=function(e){if(Ze!==e){Ze=e;try{var t=window.parent.onWhistleRulesActiveChange;"function"==typeof t&&t(e,location.href)}catch(n){}}};var Ke;t.triggerValuesActiveChange=function(e){if(Ke!==e){Ke=e;try{var t=window.parent.onWhistleValuesActiveChange;"function"==typeof t&&t(e,location.href)}catch(n){}}},t.changePageName=K,t.getTempName=function(){return Date.now()+""+Math.floor(1e4*Math.random())},t.readFile=q,t.readFileAsBase64=function(e,t){return q(e,t,"base64")},t.readFileAsText=function(e,t){return q(e,t,"text")},t.addPluginMenus=function(e,t,n,r){var o=e.list=t,i=o.length;if(i){e.hide=!1;for(var a=r,s=0;i>s;s++){var l=o[s];l.required?(l.disabled=r,r||(a=!1)):a=l.disabled=!1}var c=i-2;e.top=c>0?Math.min(n,c):void 0,e.disabled=a}else e.hide=!0},t.parseImportData=function(e,t,n){var r,o=[];return Object.keys(e).forEach(function(i){var a=e[i];if(null!=a){if(n)if("object"==typeof a)try{a=JSON.stringify(a,null," ")}catch(s){return}else a+="";if("string"==typeof a){var l,c=t&&t.get(i);c&&(l=c.value&&c.value!=a,r=r||l),o.push({name:i,value:a,isConflict:l})}}}),o.hasConflict=r,o},t.getSize=function(e){return 1024>e?e:(e=(e/1024).toFixed(2),1024>e?e+"k":(e=(e/1024).toFixed(2),1024>e?e+"m":(e/1024).toFixed(2)+"G"))};var qe=/^\s*multipart\//i,$e=/boundary=(?:"([^"]+)"|([^;]+))/i,et=te("\r\n\r\n"),tt=/name=(?:"([^"]+)"|([^;]+))/i,nt=/filename=(?:"([^"]+)"|([^;]+))/i,rt=/^\s*content-type:\s*([^\s]+)/i,ot=te("\r\n");t.isUploadForm=function(e){var t=e.headers&&e.headers["content-type"];return qe.test(t)},t.parseUploadBody=function(e){if(e.base64){var t=e.headers&&e.headers["content-type"];if($e.test(t)){var n=RegExp.$1||RegExp.$2,r=ne(e.base64);return r&&oe(r,n)}}};var it=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];t.getMultiBody=function(e){var t,n=ae(),r=te("--"+n+"\r\n");return e.forEach(function(e){e=ie(e),e&&(e=ee(r,e),t=t?ee(t,e):e)}),t=t&&ee(t,te("--"+n+"--")),{boundary:n,length:t?t.length:0,base64:t&&se(t)}}},function(e,t){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function r(e){var t=n(e),r=t[0],o=t[1];return 3*(r+o)/4-o}function o(e,t,n){return 3*(t+n)/4-n}function i(e){var t,r,i=n(e),a=i[0],s=i[1],l=new d(o(e,a,s)),c=0,p=s>0?a-4:a;for(r=0;p>r;r+=4)t=u[e.charCodeAt(r)]<<18|u[e.charCodeAt(r+1)]<<12|u[e.charCodeAt(r+2)]<<6|u[e.charCodeAt(r+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===s&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function a(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function s(e,t,n){for(var r,o=[],i=t;n>i;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(a(r));return o.join("")}function l(e){for(var t,n=e.length,r=n%3,o=[],i=16383,a=0,l=n-r;l>a;a+=i)o.push(s(e,a,a+i>l?l:a+i));return 1===r?(t=e[n-1],o.push(c[t>>2]+c[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(c[t>>10]+c[t>>4&63]+c[t<<2&63]+"=")),o.join("")}t.byteLength=r,t.toByteArray=i,t.fromByteArray=l;for(var c=[],u=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,g=p.length;g>h;++h)c[h]=p[h],u[p.charCodeAt(h)]=h;u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(global){!function(e,t){module.exports=t(e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if("undefined"!=typeof module&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(err){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},n=0,r=e.length;r>n;n++)t[e.charAt(n)]=n;return t}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(e){if(e.length<2){var t=e.charCodeAt(0);return 128>t?e:2048>t?fromCharCode(192|t>>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)}var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),t>=2?"=":b64chars.charAt(n>>>6&63),t>=1?"=":b64chars.charAt(63&n)];return r.join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(e){var t="[object Uint8Array]"===Object.prototype.toString.call(e);return t?e.toString("base64"):btoa(utob(String(e)))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,""):_encode(e)},encodeURI=function(e){return encode(e,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return fromCharCode((n>>>10)+55296)+fromCharCode((1023&n)+56320);case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,n=t%4,r=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),o=[fromCharCode(r>>>16),fromCharCode(r>>>8&255),fromCharCode(255&r)];return o.length-=[0,0,2,1][n],o.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e)); +},decode=function(e){return _decode(String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(e){return encode(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),"undefined"!=typeof module&&module.exports?module.exports.Base64=global.Base64:(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return global.Base64}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))),{Base64:global.Base64}})}).call(exports,function(){return this}())},function(e,t,n){t.parse=n(202),t.stringify=n(203)},function(e,t){e.exports=function(){var e,t,n,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},i=function(t){throw{name:"SyntaxError",message:t,at:e,text:n}},a=function(r){return r&&r!==t&&i("Expected '"+r+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},s=function(){var e,n="";for("-"===t&&(n="-",a("-"));t>="0"&&"9">=t;)n+=t,a();if("."===t)for(n+=".";a()&&t>="0"&&"9">=t;)n+=t;if("e"===t||"E"===t)for(n+=t,a(),("-"===t||"+"===t)&&(n+=t,a());t>="0"&&"9">=t;)n+=t,a();return n.length>15?(e=new String(n),e._$isNumber=!0,e):(e=+n,isFinite(e)?e:void i("Bad number"))},l=function(){var e,n,r,s="";if('"'===t)for(;a();){if('"'===t)return a(),s;if("\\"===t)if(a(),"u"===t){for(r=0,n=0;4>n&&(e=parseInt(a(),16),isFinite(e));n+=1)r=16*r+e;s+=String.fromCharCode(r)}else{if("string"!=typeof o[t])break;s+=o[t]}else s+=t}i("Bad string")},c=function(){for(;t&&" ">=t;)a()},u=function(){switch(t){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}i("Unexpected '"+t+"'")},d=function(){var e=[];if("["===t){if(a("["),c(),"]"===t)return a("]"),e;for(;t;){if(e.push(r()),c(),"]"===t)return a("]"),e;a(","),c()}}i("Bad array")},p=function(){var e,n={};if("{"===t){if(a("{"),c(),"}"===t)return a("}"),n;for(;t;){if(e=l(),c(),a(":"),Object.hasOwnProperty.call(n,e)&&i("Duplicate key '"+e+"'"),n[e]=r(),c(),"}"===t)return a("}"),n;a(","),c()}}i("Bad object")};return r=function(){switch(c(),t){case"{":return p();case"[":return d();case'"':return l();case"-":return s();default:return t>="0"&&"9">=t?s():u()}},function(o,a){var s;return n=o,e=0,t=" ",s=r(),c(),t&&i("Syntax error"),"function"==typeof a?function l(e,t){var n,r,o=e[t];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r=l(o,n),void 0!==r?o[n]=r:delete o[n]);return a.call(e,t,o)}({"":s},""):s}}()},function(e,t){function n(e){return 10>e?"0"+e:e}function r(){return this.valueOf()}function o(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,function(e){var t=c[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function i(e,t){var n,r,a,c,d,p=s,h=t[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),"function"==typeof u&&(h=u.call(t,e,h)),typeof h){case"string":return o(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(s+=l,d=[],"[object Array]"===Object.prototype.toString.apply(h)){for(c=h.length,n=0;c>n;n+=1)d[n]=i(n,h)||"null";return a=0===d.length?"[]":s?"[\n"+s+d.join(",\n"+s)+"\n"+p+"]":"["+d.join(",")+"]",s=p,a}if(h._$isNumber)return h.toString();if(u&&"object"==typeof u)for(c=u.length,n=0;c>n;n+=1)"string"==typeof u[n]&&(r=u[n],a=i(r,h),a&&d.push(o(r)+(s?": ":":")+a));else for(r in h)Object.prototype.hasOwnProperty.call(h,r)&&(a=i(r,h),a&&d.push(o(r)+(s?": ":":")+a));return a=0===d.length?"{}":s?"{\n"+s+d.join(",\n"+s)+"\n"+p+"}":"{"+d.join(",")+"}",s=p,a}}var a=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=r,Number.prototype.toJSON=r,String.prototype.toJSON=r);var s,l,c,u;c={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},e.exports=function(e,t,n){var r;if(s="",l="","number"==typeof n)for(r=0;n>r;r+=1)l+=" ";else"string"==typeof n&&(l=n);if(u=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return i("",{"":e})}},function(module,exports){function evalJson(str){if(JSON_RE.test(str))with(ctx)try{return eval("("+str+")")}catch(e){}}var JSON_RE=/^\s*(?:\{[\w\W]*\}|\[[\w\W]*\])\s*$/,ctx={},throwError={get:function(){throw new Error("undefined")}};if(Object.defineProperty){Object.defineProperty(ctx,"console",throwError);for(var i in window)ctx[i]=void 0,Object.defineProperty(ctx,i,throwError)}module.exports=evalJson},function(e,t){function n(e,t){t=t||0;for(var n=Math.min(e.length,r);n>t;t++){var o=e[t];if(!(9==o||10==o||13==o||o>=32&&126>=o)){++t;var i=e[t];if(o>=194&&223>=o){if(i>=128&&191>=i)continue;return!i}++t;var a=e[t];if(224==o){if(i>=160&&191>=i&&a>=128&&191>=a)continue;return!a}if(o>=225&&236>=o||238==o||239==o){if(i>=128&&191>=i&&a>=128&&191>=a)continue;return!a}if(237==o){if(i>=128&&159>=i&&a>=128&&191>=a)continue;return!a}++t;var s=e[t];if(240==o){if(i>=144&&191>=i&&a>=128&&191>=a&&s>=128&&191>=s)continue;return!s}if(o>=241&&243>=o){if(i>=128&&191>=i&&a>=128&&191>=a&&s>=128&&191>=s)continue;return!s}if(244==o){if(i>=128&&143>=i&&a>=128&&191>=a&&s>=128&&191>=s)continue;return!s}return!1}}return!0}var r=32768;e.exports=function(e){return n(e)?!0:0===e[0]&&n(e,5)}},function(e,t,n){function r(e,t){"warn"===t?t="warning":"error"===t&&(t="danger");var n=i[t];return n||(n=o('
'),n.appendTo(document.body),i[t]=n),n.text(e),n.stop(!0,!0).show(),n.css("marginLeft",-n[0].offsetWidth/2),n.delay(2e3).fadeOut(1600),n}var o=n(5);n(207);var i={};["error","warn","info","success"].forEach(function(e){t[e]=function(t){return r(t,e)}})},function(e,t,n){var r=n(208);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".w-message{position:fixed;top:30px;left:50%;z-index:999999999;padding:8px 20px!important;max-width:410px}",""])},function(e,t,n){n(186),n(210);var r=n(5),o=n(6),i=n(38),a=n(198),s={display:"none"};a.addDragEvent(".w-divider",function(e,t,n){e=e.parent();var r=e.parent(),o=!r.hasClass("box"),i=e.hasClass("w-divider-right"),a=o?e[0].offsetHeight-(i?n:-n):e[0].offsetWidth-(i?t:-t),s=r[0][o?"offsetHeight":"offsetWidth"];e[o?"height":"width"](Math.min(s-5,Math.max(5,a)))});var l=o.createClass({displayName:"Divider",componentDidMount:function(){this.reset()},triggerDOMReady:function(){this.__inited||(this.__inited=!0,this.props.onDOMReady&&this.props.onDOMReady())},reset:function(){var e=this,t=i.findDOMNode(e.refs.divider),n=a.getBoolean(e.props.vertical),o=n?"height":"width",s=r(t),l=s.children(".w-divider-left"),c=s.children(".w-divider-right");if(l.add(c).css({height:"auto",width:"auto"}),e._leftWidth>0)return l[o](e._leftWidth),void e.triggerDOMReady();var u=parseInt(e.props.rightWidth,10);return u>0?(c[o](Math.max(u,5)),void e.triggerDOMReady()):void setTimeout(function(){u=(n?t.offsetHeight:t.offsetWidth)/2,c[o](Math.max(u,5)),e.triggerDOMReady()},10)},render:function(){var e=a.getBoolean(this.props.vertical),t=o.createElement("div",{className:"w-divider"}),n=parseInt(this.props.leftWidth,10);return n>0?this._leftWidth=n:n=0,o.createElement("div",{ref:"divider",className:(e?"orient-vertical-box":"box")+" fill w-divider-con "+(this.props.className||"")+(a.getBoolean(this.props.hide)?" hide":"")},o.createElement("div",{className:(n?"":"fill ")+"w-divider-left orient-vertical-box "+(this.props.leftClassName||"")},n?t:"",this.props.children[0]),o.createElement("div",{style:this.props.hideRight?s:void 0,className:(n?"fill ":"")+"w-divider-right orient-vertical-box "+(this.props.rightClassName||"")},n?"":t,this.props.children[1]))}});e.exports=l},function(e,t,n){var r=n(211);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".w-divider-left,.w-divider-right{overflow:hidden;position:relative}.w-divider-con.box>.w-divider-right{min-width:5px!important}.w-divider-con.orient-vertical-box>.w-divider-right{min-height:5px!important}.w-divider{position:absolute;z-index:1}.w-divider-con.box>div>.w-divider{top:0;width:5px;height:100%;cursor:ew-resize}.w-divider-con.box>.w-divider-left>.w-divider{right:0;border-right:1px solid #ccc}.w-divider-con.box>.w-divider-right>.w-divider{left:0;border-left:1px solid #ccc}.w-divider-con.orient-vertical-box>div>.w-divider{left:0;height:5px;width:100%;cursor:ns-resize}.w-divider-con.orient-vertical-box>.w-divider-left>.w-divider{bottom:0;border-bottom:1px solid #ccc}.w-divider-con.orient-vertical-box>.w-divider-right>.w-divider{top:0;border-top:1px solid #ccc}",""])},function(e,t,n){function r(e){return document.querySelector?document.querySelector(e):o(e).length}n(213),n(215),n(217),n(219),n(221),n(223),n(225),n(227),n(229),n(231),n(233),n(235),n(237),n(239),n(241),n(243),n(245),n(247),n(249),n(251),n(196),n(253);var o=n(5),i=n(6),a=n(38),s=n(255),l=n(206),c=16384;n(256),n(257),n(258),n(259),n(260),n(262),n(263),n(264),n(265),n(266);var u=n(267),d=["default","neat","elegant","erlang-dark","night","monokai","cobalt","eclipse","rubyblue","lesser-dark","xq-dark","xq-light","ambiance","blackboard","vibrant-ink","solarized dark","solarized light","twilight","midnight"];n(277);var p="cobalt",h="16px",g=/^()\s*#\s*/,f=/^(\s*)\/\/+\s?/,m=/\S/,A=i.createClass({displayName:"Editor",getThemes:function(){return d},setMode:function(e){/^(javascript|css|xml|rules|markdown)$/i.test(e)?e=RegExp.$1.toLowerCase():/^(js|pac|jsx|json)$/i.test(e)?e="javascript":/^(html|wtpl)?$/i.test(e)?e="htmlmixed":/^md$/i.test(e)&&(e="markdown"),this._mode=e,this._editor&&this._editor.setOption("mode",e)},setValue:function(e){e=this._value=null==e?"":e+"",this._editor&&this._editor.getValue()!=e&&this._editor.setValue(e)},getValue:function(){return this._editor?"":this._editor.getValue()},setTheme:function(e){e=this._theme=e||p,this._editor&&this._editor.setOption("theme",e)},setFontSize:function(e){e=this._fontSize=e||h,this._editor&&(a.findDOMNode(this.refs.editor).style.fontSize=e)},showLineNumber:function(e){e=this._showLineNumber=e===!1?!1:!0,this._editor&&this._editor.setOption("lineNumbers",e)},showLineWrapping:function(e){e=this._showLineNumber=e===!1?!1:!0,this._editor&&this._editor.setOption("lineWrapping",e)},setReadOnly:function(e){e=this._readOnly=e===!1||"false"===e?!1:!0,this._editor&&this._editor.setOption("readOnly",e)},setAutoComplete:function(){var e=this.isRulesEditor(),t=e?u.getExtraKeys():{};/\(Macintosh;/i.test(window.navigator.userAgent)||(t["Ctrl-F"]="findPersistent"),t["Cmd-F"]="findPersistent";var n=this._editor;n.setOption("extraKeys",t);var o;e&&n.on("keyup",function(e,t){clearTimeout(o);var i=8===t.keyCode;(i||13===t.keyCode)&&(o=setTimeout(function(){r(".CodeMirror-hints")||(n._byDelete=!0,n._byEnter=!i,n.execCommand("autocomplete"))},300))})},isRulesEditor:function(){return"rules"===this.props.name||"rules"===this._mode},componentDidMount:function(){function e(){var n=r.offsetHeight||0;10>n?(t&&clearTimeout(t),t=setTimeout(e,300)):i.setSize(null,n)}var t,n=this,r=a.findDOMNode(n.refs.editor),i=n._editor=s(r);i.on("change",function(e){"function"==typeof n.props.onChange&&i.getValue()!==(n.props.value||"")&&n.props.onChange.call(n,e)}),i.on("mousedown",function(e,t){if(t.ctrlKey||t.metaKey){var n=o(t.target);(n.hasClass("cm-js-type")||n.hasClass("cm-js-at")||n.hasClass("cm-js-http-url"))&&t.preventDefault()}}),n._init(!0),o(r).find(".CodeMirror").addClass("fill"),e(),o(window).on("resize",function(){t&&clearTimeout(t),t=null,t=setTimeout(e,30)}),o(r).on("keydown",function(e){var t=n.isRulesEditor(),r="javascript"==n._mode;if(t){var o={name:n.props.name,url:location.href};if(!e.ctrlKey&&!e.metaKey&&112===e.keyCode){var a=u.getHelpUrl(n._editor,o);return a&&window.open(a),e.stopPropagation(),e.preventDefault(),!0}try{var s=window.parent.onWhistleRulesEditorKeyDown;if("function"==typeof s&&s(e,o)===!1)return e.stopPropagation(),e.preventDefault(),!0}catch(e){}}if((t||r)&&(e.ctrlKey||e.metaKey)&&191==e.keyCode){var l=i.listSelections();if(l&&l.length){var c,d=t?g:f,p=e.shiftKey,h=[];l.forEach(function(e){var n,r,o,a=e.anchor,s=e.head,l=[];a.line>s.line&&(o=a,a=s,s=o);for(var u=a.line;u<=s.line;u++){var g=i.getLine(u);d.test(g)?n=!0:m.test(g)&&(r=!0),l.push(g)}if(!(c=!n&&!r)){var f,A,M;r?(f=l.length-1,A=l[0],M=l[f],l=l.map(function(e){return m.test(e)?p&&d.test(e)?e.replace(d,"$1"):(t?"# ":"// ")+e:e})):(A=l[0],f=l.length-1,M=l[f],l=l.map(function(e){return e.replace(d,"$1")})),0!=a.ch&&(a.ch+=l[0].length-A.length,a.ch<0&&(a.ch=0)),0!=s.ch&&s!=a&&(s.ch+=l[f].length-M.length,s.ch<0&&(s.ch=0)),o?(i.replaceRange(l.join("\n")+"\n",{line:s.line+1,ch:0},{line:a.line,ch:0}),h.push({anchor:s,head:a})):(i.replaceRange(l.join("\n")+"\n",{line:a.line,ch:0},{line:s.line+1,ch:0}),h.push({anchor:a,head:s}))}}),c||i.setSelections(h)}}})},_init:function(e){var t=this;this.setMode(t.props.mode);var n=t.props.value;if(e&&n&&n.length>c){var r=l.info("Loading...");t.timer=setTimeout(function(){r.hide(),t.timer=null,t.setValue(t.props.value)},500)}else t.timer||t.setValue(n);t.setTheme(t.props.theme),t.setFontSize(t.props.fontSize),t.setTheme(t.props.theme),t.showLineNumber(t.props.lineNumbers||!1),t.showLineWrapping(t.props.lineWrapping||!1),t.setReadOnly(t.props.readOnly||!1),t.setAutoComplete()},componentDidUpdate:function(){this._init()},render:function(){return i.createElement("div",{tabIndex:"0",ref:"editor",className:"fill orient-vertical-box w-list-content"})}});e.exports=A},function(e,t,n){var r=n(214);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".CodeMirror{font-family:monospace;height:300px;color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror div.CodeMirror-cursor{border-left:1px solid #000}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.CodeMirror.cm-fat-cursor div.CodeMirror-cursor{width:auto;border:0;background:#7e7}.CodeMirror.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{width:auto;border:0;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;margin-bottom:-30px;*zoom:1;*display:inline}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper{-webkit-user-select:none;-moz-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-code{outline:0}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-measure pre{position:static}.CodeMirror div.CodeMirror-cursor{position:absolute;border-right:none;width:0}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.CodeMirror span{*vertical-align:text-bottom}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:''}span.CodeMirror-selectedtext{background:none}",""])},function(e,t,n){var r=n(216);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-neat span.cm-comment{color:#a86}.cm-s-neat span.cm-keyword{line-height:1em;font-weight:700;color:blue}.cm-s-neat span.cm-string{color:#a22}.cm-s-neat span.cm-builtin{line-height:1em;font-weight:700;color:#077}.cm-s-neat span.cm-special{line-height:1em;font-weight:700;color:#0aa}.cm-s-neat span.cm-variable{color:#000}.cm-s-neat span.cm-atom,.cm-s-neat span.cm-number{color:#3a3}.cm-s-neat span.cm-meta{color:#555}.cm-s-neat span.cm-link{color:#3a3}.cm-s-neat .CodeMirror-activeline-background{background:#e8f2ff!important}.cm-s-neat .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}",""])},function(e,t,n){var r=n(218);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-elegant span.cm-atom,.cm-s-elegant span.cm-number,.cm-s-elegant span.cm-string{color:#762}.cm-s-elegant span.cm-comment{color:#262;font-style:italic;line-height:1em}.cm-s-elegant span.cm-meta{color:#555;font-style:italic;line-height:1em}.cm-s-elegant span.cm-variable{color:#000}.cm-s-elegant span.cm-variable-2{color:#b11}.cm-s-elegant span.cm-qualifier{color:#555}.cm-s-elegant span.cm-keyword{color:#730}.cm-s-elegant span.cm-builtin{color:#30a}.cm-s-elegant span.cm-link{color:#762}.cm-s-elegant span.cm-error{background-color:#fdd}.cm-s-elegant .CodeMirror-activeline-background{background:#e8f2ff!important}.cm-s-elegant .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}",""])},function(e,t,n){var r=n(220);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-erlang-dark.CodeMirror{background:#002240;color:#fff}.cm-s-erlang-dark div.CodeMirror-selected{background:#b36539!important}.cm-s-erlang-dark .CodeMirror-line::selection,.cm-s-erlang-dark .CodeMirror-line>span::selection,.cm-s-erlang-dark .CodeMirror-line>span>span::selection{background:rgba(179,101,57,.99)}.cm-s-erlang-dark .CodeMirror-line::-moz-selection,.cm-s-erlang-dark .CodeMirror-line>span::-moz-selection,.cm-s-erlang-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(179,101,57,.99)}.cm-s-erlang-dark .CodeMirror-gutters{background:#002240;border-right:1px solid #aaa}.cm-s-erlang-dark .CodeMirror-guttermarker{color:#fff}.cm-s-erlang-dark .CodeMirror-guttermarker-subtle,.cm-s-erlang-dark .CodeMirror-linenumber{color:#d0d0d0}.cm-s-erlang-dark .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-erlang-dark span.cm-quote{color:#ccc}.cm-s-erlang-dark span.cm-atom{color:#f133f1}.cm-s-erlang-dark span.cm-attribute{color:#ff80e1}.cm-s-erlang-dark span.cm-bracket{color:#ff9d00}.cm-s-erlang-dark span.cm-builtin{color:#eaa}.cm-s-erlang-dark span.cm-comment{color:#77f}.cm-s-erlang-dark span.cm-def{color:#e7a}.cm-s-erlang-dark span.cm-keyword{color:#ffee80}.cm-s-erlang-dark span.cm-meta{color:#50fefe}.cm-s-erlang-dark span.cm-number{color:#ffd0d0}.cm-s-erlang-dark span.cm-operator{color:#d55}.cm-s-erlang-dark span.cm-property,.cm-s-erlang-dark span.cm-qualifier{color:#ccc}.cm-s-erlang-dark span.cm-special{color:#fbb}.cm-s-erlang-dark span.cm-string{color:#3ad900}.cm-s-erlang-dark span.cm-string-2{color:#ccc}.cm-s-erlang-dark span.cm-tag{color:#9effff}.cm-s-erlang-dark span.cm-variable{color:#50fe50}.cm-s-erlang-dark span.cm-variable-2{color:#e0e}.cm-s-erlang-dark span.cm-variable-3{color:#ccc}.cm-s-erlang-dark span.cm-error{color:#9d1e15}.cm-s-erlang-dark .CodeMirror-activeline-background{background:#013461!important}.cm-s-erlang-dark .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""])},function(e,t,n){var r=n(222);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-night.CodeMirror{background:#0a001f;color:#f8f8f8}.cm-s-night div.CodeMirror-selected{background:#447!important}.cm-s-night .CodeMirror-line::selection,.cm-s-night .CodeMirror-line>span::selection,.cm-s-night .CodeMirror-line>span>span::selection{background:rgba(68,68,119,.99)}.cm-s-night .CodeMirror-line::-moz-selection,.cm-s-night .CodeMirror-line>span::-moz-selection,.cm-s-night .CodeMirror-line>span>span::-moz-selection{background:rgba(68,68,119,.99)}.cm-s-night .CodeMirror-gutters{background:#0a001f;border-right:1px solid #aaa}.cm-s-night .CodeMirror-guttermarker{color:#fff}.cm-s-night .CodeMirror-guttermarker-subtle{color:#bbb}.cm-s-night .CodeMirror-linenumber{color:#f8f8f8}.cm-s-night .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-night span.cm-atom{color:#845dc4}.cm-s-night span.cm-attribute,.cm-s-night span.cm-number{color:#ffd500}.cm-s-night span.cm-keyword{color:#599eff}.cm-s-night span.cm-string{color:#37f14a}.cm-s-night span.cm-meta{color:#7678e2}.cm-s-night span.cm-tag,.cm-s-night span.cm-variable-2{color:#99b2ff}.cm-s-night span.cm-def,.cm-s-night span.cm-variable-3{color:#fff}.cm-s-night span.cm-bracket{color:#8da6ce}.cm-s-night span.cm-comment{color:#6900a1}.cm-s-night span.cm-builtin,.cm-s-night span.cm-special{color:#ff9e59}.cm-s-night span.cm-link{color:#845dc4}.cm-s-night span.cm-error{color:#9d1e15}.cm-s-night .CodeMirror-activeline-background{background:#1c005a!important}.cm-s-night .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""])},function(e,t,n){var r=n(224);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-monokai.CodeMirror{background:#272822;color:#f8f8f2}.cm-s-monokai div.CodeMirror-selected{background:#49483e!important}.cm-s-monokai .CodeMirror-line::selection,.cm-s-monokai .CodeMirror-line>span::selection,.cm-s-monokai .CodeMirror-line>span>span::selection{background:rgba(73,72,62,.99)}.cm-s-monokai .CodeMirror-line::-moz-selection,.cm-s-monokai .CodeMirror-line>span::-moz-selection,.cm-s-monokai .CodeMirror-line>span>span::-moz-selection{background:rgba(73,72,62,.99)}.cm-s-monokai .CodeMirror-gutters{background:#272822;border-right:0}.cm-s-monokai .CodeMirror-guttermarker{color:#fff}.cm-s-monokai .CodeMirror-guttermarker-subtle,.cm-s-monokai .CodeMirror-linenumber{color:#d0d0d0}.cm-s-monokai .CodeMirror-cursor{border-left:1px solid #f8f8f0!important}.cm-s-monokai span.cm-comment{color:#75715e}.cm-s-monokai span.cm-atom,.cm-s-monokai span.cm-number{color:#ae81ff}.cm-s-monokai span.cm-attribute,.cm-s-monokai span.cm-property{color:#a6e22e}.cm-s-monokai span.cm-keyword{color:#f92672}.cm-s-monokai span.cm-string{color:#e6db74}.cm-s-monokai span.cm-variable{color:#f8f8f2}.cm-s-monokai span.cm-variable-2{color:#9effff}.cm-s-monokai span.cm-variable-3{color:#66d9ef}.cm-s-monokai span.cm-def{color:#fd971f}.cm-s-monokai span.cm-bracket{color:#f8f8f2}.cm-s-monokai span.cm-tag{color:#f92672}.cm-s-monokai span.cm-header,.cm-s-monokai span.cm-link{color:#ae81ff}.cm-s-monokai span.cm-error{background:#f92672;color:#f8f8f0}.cm-s-monokai .CodeMirror-activeline-background{background:#373831!important}.cm-s-monokai .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},function(e,t,n){var r=n(226);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-cobalt.CodeMirror{background:#002240;color:#fff}.cm-s-cobalt div.CodeMirror-selected{background:#b36539!important}.cm-s-cobalt .CodeMirror-line::selection,.cm-s-cobalt .CodeMirror-line>span::selection,.cm-s-cobalt .CodeMirror-line>span>span::selection{background:rgba(179,101,57,.99)}.cm-s-cobalt .CodeMirror-line::-moz-selection,.cm-s-cobalt .CodeMirror-line>span::-moz-selection,.cm-s-cobalt .CodeMirror-line>span>span::-moz-selection{background:rgba(179,101,57,.99)}.cm-s-cobalt .CodeMirror-gutters{background:#002240;border-right:1px solid #aaa}.cm-s-cobalt .CodeMirror-guttermarker{color:#ffee80}.cm-s-cobalt .CodeMirror-guttermarker-subtle,.cm-s-cobalt .CodeMirror-linenumber{color:#d0d0d0}.cm-s-cobalt .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-cobalt span.cm-comment{color:#08f}.cm-s-cobalt span.cm-atom{color:#845dc4}.cm-s-cobalt span.cm-attribute,.cm-s-cobalt span.cm-number{color:#ff80e1}.cm-s-cobalt span.cm-keyword{color:#ffee80}.cm-s-cobalt span.cm-string{color:#3ad900}.cm-s-cobalt span.cm-meta{color:#ff9d00}.cm-s-cobalt span.cm-tag,.cm-s-cobalt span.cm-variable-2{color:#9effff}.cm-s-cobalt span.cm-def,.cm-s-cobalt span.cm-variable-3{color:#fff}.cm-s-cobalt span.cm-bracket{color:#d8d8d8}.cm-s-cobalt span.cm-builtin,.cm-s-cobalt span.cm-special{color:#ff9e59}.cm-s-cobalt span.cm-link{color:#845dc4}.cm-s-cobalt span.cm-error{color:#9d1e15}.cm-s-cobalt .CodeMirror-activeline-background{background:#002d57!important}.cm-s-cobalt .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""])},function(e,t,n){var r=n(228);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-eclipse span.cm-meta{color:#ff1717}.cm-s-eclipse span.cm-keyword{line-height:1em;font-weight:700;color:#7f0055}.cm-s-eclipse span.cm-atom{color:#219}.cm-s-eclipse span.cm-number{color:#164}.cm-s-eclipse span.cm-def{color:#00f}.cm-s-eclipse span.cm-variable{color:#000}.cm-s-eclipse span.cm-variable-2,.cm-s-eclipse span.cm-variable-3{color:#0000c0}.cm-s-eclipse span.cm-operator,.cm-s-eclipse span.cm-property{color:#000}.cm-s-eclipse span.cm-comment{color:#3f7f5f}.cm-s-eclipse span.cm-string{color:#2a00ff}.cm-s-eclipse span.cm-string-2{color:#f50}.cm-s-eclipse span.cm-qualifier{color:#555}.cm-s-eclipse span.cm-builtin{color:#30a}.cm-s-eclipse span.cm-bracket{color:#cc7}.cm-s-eclipse span.cm-tag{color:#170}.cm-s-eclipse span.cm-attribute{color:#00c}.cm-s-eclipse span.cm-link{color:#219}.cm-s-eclipse span.cm-error{color:red}.cm-s-eclipse .CodeMirror-activeline-background{background:#e8f2ff!important}.cm-s-eclipse .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important}",""])},function(e,t,n){var r=n(230);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-rubyblue.CodeMirror{background:#112435;color:#fff}.cm-s-rubyblue div.CodeMirror-selected{background:#38566f!important}.cm-s-rubyblue .CodeMirror-line::selection,.cm-s-rubyblue .CodeMirror-line>span::selection,.cm-s-rubyblue .CodeMirror-line>span>span::selection{background:rgba(56,86,111,.99)}.cm-s-rubyblue .CodeMirror-line::-moz-selection,.cm-s-rubyblue .CodeMirror-line>span::-moz-selection,.cm-s-rubyblue .CodeMirror-line>span>span::-moz-selection{background:rgba(56,86,111,.99)}.cm-s-rubyblue .CodeMirror-gutters{background:#1f4661;border-right:7px solid #3e7087}.cm-s-rubyblue .CodeMirror-guttermarker{color:#fff}.cm-s-rubyblue .CodeMirror-guttermarker-subtle{color:#3e7087}.cm-s-rubyblue .CodeMirror-linenumber{color:#fff}.cm-s-rubyblue .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-rubyblue span.cm-comment{color:#999;font-style:italic;line-height:1em}.cm-s-rubyblue span.cm-atom{color:#f4c20b}.cm-s-rubyblue span.cm-attribute,.cm-s-rubyblue span.cm-number{color:#82c6e0}.cm-s-rubyblue span.cm-keyword{color:#f0f}.cm-s-rubyblue span.cm-string{color:#f08047}.cm-s-rubyblue span.cm-meta{color:#f0f}.cm-s-rubyblue span.cm-tag,.cm-s-rubyblue span.cm-variable-2{color:#7bd827}.cm-s-rubyblue span.cm-def,.cm-s-rubyblue span.cm-variable-3{color:#fff}.cm-s-rubyblue span.cm-bracket{color:#f0f}.cm-s-rubyblue span.cm-link{color:#f4c20b}.cm-s-rubyblue span.CodeMirror-matchingbracket{color:#f0f!important}.cm-s-rubyblue span.cm-builtin,.cm-s-rubyblue span.cm-special{color:#ff9d00}.cm-s-rubyblue span.cm-error{color:#af2018}.cm-s-rubyblue .CodeMirror-activeline-background{background:#173047!important}",""])},function(e,t,n){var r=n(232);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-lesser-dark{line-height:1.3em}.cm-s-lesser-dark.CodeMirror{background:#262626;color:#ebefe7;text-shadow:0 -1px 1px #262626}.cm-s-lesser-dark div.CodeMirror-selected{background:#45443b!important}.cm-s-lesser-dark .CodeMirror-line::selection,.cm-s-lesser-dark .CodeMirror-line>span::selection,.cm-s-lesser-dark .CodeMirror-line>span>span::selection{background:rgba(69,68,59,.99)}.cm-s-lesser-dark .CodeMirror-line::-moz-selection,.cm-s-lesser-dark .CodeMirror-line>span::-moz-selection,.cm-s-lesser-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(69,68,59,.99)}.cm-s-lesser-dark .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-lesser-dark pre{padding:0 8px}.cm-s-lesser-dark.CodeMirror span.CodeMirror-matchingbracket{color:#7efc7e}.cm-s-lesser-dark .CodeMirror-gutters{background:#262626;border-right:1px solid #aaa}.cm-s-lesser-dark .CodeMirror-guttermarker{color:#599eff}.cm-s-lesser-dark .CodeMirror-guttermarker-subtle,.cm-s-lesser-dark .CodeMirror-linenumber{color:#777}.cm-s-lesser-dark span.cm-header{color:#a0a}.cm-s-lesser-dark span.cm-quote{color:#090}.cm-s-lesser-dark span.cm-keyword{color:#599eff}.cm-s-lesser-dark span.cm-atom{color:#c2b470}.cm-s-lesser-dark span.cm-number{color:#b35e4d}.cm-s-lesser-dark span.cm-def{color:#fff}.cm-s-lesser-dark span.cm-variable{color:#d9bf8c}.cm-s-lesser-dark span.cm-variable-2{color:#669199}.cm-s-lesser-dark span.cm-variable-3{color:#fff}.cm-s-lesser-dark span.cm-operator,.cm-s-lesser-dark span.cm-property{color:#92a75c}.cm-s-lesser-dark span.cm-comment{color:#666}.cm-s-lesser-dark span.cm-string{color:#bcd279}.cm-s-lesser-dark span.cm-string-2{color:#f50}.cm-s-lesser-dark span.cm-meta{color:#738c73}.cm-s-lesser-dark span.cm-qualifier{color:#555}.cm-s-lesser-dark span.cm-builtin{color:#ff9e59}.cm-s-lesser-dark span.cm-bracket{color:#ebefe7}.cm-s-lesser-dark span.cm-tag{color:#669199}.cm-s-lesser-dark span.cm-attribute{color:#00c}.cm-s-lesser-dark span.cm-hr{color:#999}.cm-s-lesser-dark span.cm-link{color:#00c}.cm-s-lesser-dark span.cm-error{color:#9d1e15}.cm-s-lesser-dark .CodeMirror-activeline-background{background:#3c3a3a!important}.cm-s-lesser-dark .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""]); },function(e,t,n){var r=n(234);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-xq-dark.CodeMirror{background:#0a001f;color:#f8f8f8}.cm-s-xq-dark .CodeMirror-selected{background:#27007a!important}.cm-s-xq-dark .CodeMirror-line::selection,.cm-s-xq-dark .CodeMirror-line>span::selection,.cm-s-xq-dark .CodeMirror-line>span>span::selection{background:rgba(39,0,122,.99)}.cm-s-xq-dark .CodeMirror-line::-moz-selection,.cm-s-xq-dark .CodeMirror-line>span::-moz-selection,.cm-s-xq-dark .CodeMirror-line>span>span::-moz-selection{background:rgba(39,0,122,.99)}.cm-s-xq-dark .CodeMirror-gutters{background:#0a001f;border-right:1px solid #aaa}.cm-s-xq-dark .CodeMirror-guttermarker{color:#ffbd40}.cm-s-xq-dark .CodeMirror-guttermarker-subtle,.cm-s-xq-dark .CodeMirror-linenumber{color:#f8f8f8}.cm-s-xq-dark .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-xq-dark span.cm-keyword{color:#ffbd40}.cm-s-xq-dark span.cm-atom{color:#6c8cd5}.cm-s-xq-dark span.cm-number{color:#164}.cm-s-xq-dark span.cm-def{color:#fff;text-decoration:underline}.cm-s-xq-dark span.cm-variable{color:#fff}.cm-s-xq-dark span.cm-variable-2{color:#eee}.cm-s-xq-dark span.cm-variable-3{color:#ddd}.cm-s-xq-dark span.cm-comment{color:gray}.cm-s-xq-dark span.cm-string{color:#9fee00}.cm-s-xq-dark span.cm-meta{color:#ff0}.cm-s-xq-dark span.cm-qualifier{color:#fff700}.cm-s-xq-dark span.cm-builtin{color:#30a}.cm-s-xq-dark span.cm-bracket{color:#cc7}.cm-s-xq-dark span.cm-tag{color:#ffbd40}.cm-s-xq-dark span.cm-attribute{color:#fff700}.cm-s-xq-dark span.cm-error{color:red}.cm-s-xq-dark .CodeMirror-activeline-background{background:#27282e!important}.cm-s-xq-dark .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""])},function(e,t,n){var r=n(236);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-xq-light span.cm-keyword{line-height:1em;font-weight:700;color:#5a5cad}.cm-s-xq-light span.cm-atom{color:#6c8cd5}.cm-s-xq-light span.cm-number{color:#164}.cm-s-xq-light span.cm-def{text-decoration:underline}.cm-s-xq-light span.cm-variable,.cm-s-xq-light span.cm-variable-2,.cm-s-xq-light span.cm-variable-3{color:#000}.cm-s-xq-light span.cm-comment{color:#0080ff;font-style:italic}.cm-s-xq-light span.cm-string{color:red}.cm-s-xq-light span.cm-meta{color:#ff0}.cm-s-xq-light span.cm-qualifier{color:grey}.cm-s-xq-light span.cm-builtin{color:#7ea656}.cm-s-xq-light span.cm-bracket{color:#cc7}.cm-s-xq-light span.cm-tag{color:#3f7f7f}.cm-s-xq-light span.cm-attribute{color:#7f007f}.cm-s-xq-light span.cm-error{color:red}.cm-s-xq-light .CodeMirror-activeline-background{background:#e8f2ff!important}.cm-s-xq-light .CodeMirror-matchingbracket{outline:1px solid grey;color:#000!important;background:#ff0}",""])},function(e,t,n){var r=n(238);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,'.cm-s-ambiance .cm-header{color:blue}.cm-s-ambiance .cm-quote{color:#24c2c7}.cm-s-ambiance .cm-keyword{color:#cda869}.cm-s-ambiance .cm-atom{color:#cf7ea9}.cm-s-ambiance .cm-number{color:#78cf8a}.cm-s-ambiance .cm-def{color:#aac6e3}.cm-s-ambiance .cm-variable{color:#ffb795}.cm-s-ambiance .cm-variable-2{color:#eed1b3}.cm-s-ambiance .cm-variable-3{color:#faded3}.cm-s-ambiance .cm-property{color:#eed1b3}.cm-s-ambiance .cm-operator{color:#fa8d6a}.cm-s-ambiance .cm-comment{color:#555;font-style:italic}.cm-s-ambiance .cm-string{color:#8f9d6a}.cm-s-ambiance .cm-string-2{color:#9d937c}.cm-s-ambiance .cm-meta{color:#d2a8a1}.cm-s-ambiance .cm-qualifier{color:#ff0}.cm-s-ambiance .cm-builtin{color:#99c}.cm-s-ambiance .cm-bracket{color:#24c2c7}.cm-s-ambiance .cm-tag{color:#fee4ff}.cm-s-ambiance .cm-attribute{color:#9b859d}.cm-s-ambiance .cm-hr{color:pink}.cm-s-ambiance .cm-link{color:#f4c20b}.cm-s-ambiance .cm-special{color:#ff9d00}.cm-s-ambiance .cm-error{color:#af2018}.cm-s-ambiance .CodeMirror-matchingbracket{color:#0f0}.cm-s-ambiance .CodeMirror-nonmatchingbracket{color:#f22}.cm-s-ambiance .CodeMirror-selected{background:hsla(0,0%,100%,.15)}.cm-s-ambiance .CodeMirror-line::selection,.cm-s-ambiance .CodeMirror-line>span::selection,.cm-s-ambiance .CodeMirror-line>span>span::selection,.cm-s-ambiance.CodeMirror-focused .CodeMirror-selected{background:hsla(0,0%,100%,.1)}.cm-s-ambiance .CodeMirror-line::-moz-selection,.cm-s-ambiance .CodeMirror-line>span::-moz-selection,.cm-s-ambiance .CodeMirror-line>span>span::-moz-selection{background:hsla(0,0%,100%,.1)}.cm-s-ambiance.CodeMirror{line-height:1.4em;color:#e6e1dc;background-color:#202020;box-shadow:inset 0 0 10px #000}.cm-s-ambiance .CodeMirror-gutters{background:#3d3d3d;border-right:1px solid #4d4d4d;box-shadow:0 10px 20px #000}.cm-s-ambiance .CodeMirror-linenumber{text-shadow:0 1px 1px #4d4d4d;color:#111;padding:0 5px}.cm-s-ambiance .CodeMirror-guttermarker{color:#aaa}.cm-s-ambiance .CodeMirror-guttermarker-subtle{color:#111}.cm-s-ambiance .CodeMirror-lines .CodeMirror-cursor{border-left:1px solid #7991e8}.cm-s-ambiance .CodeMirror-activeline-background{background:none repeat scroll 0 0 hsla(0,0%,100%,.031)}.cm-s-ambiance .CodeMirror-gutters,.cm-s-ambiance.CodeMirror{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAQAAAAHUWYVAABFFUlEQVQYGbzBCeDVU/74/6fj9HIcx/FRHx9JCFmzMyGRURhLZIkUsoeRfUjS2FNDtr6WkMhO9sm+S8maJfu+Jcsg+/o/c+Z4z/t97/vezy3z+z8ekGlnYICG/o7gdk+wmSHZ1z4pJItqapjoKXWahm8NmV6eOTbWUOp6/6a/XIg6GQqmenJ2lDHyvCFZ2cBDbmtHA043VFhHwXxClWmeYAdLhV00Bd85go8VmaFCkbVkzlQENzfBDZ5gtN7HwF0KDrTwJ0dypSOzpaKCMwQHKTIreYIxlmhXTzTWkVm+LTynZhiSBT3RZQ7aGfjGEd3qyXQ1FDymqbKxpspERQN2MiRjNZlFFQXfCNFm9nM1zpAsoYjmtRTc5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fEfKl5ISLQ0MEKR8YOB2QfCxJBjrKPCN4f9MkaSsqoVXJBmP7EpFZ9UQfOoOFwSzBN4MQ8LsGrymlipcJQhmy0GaQjPqCHaXRwuCZwRbqK2Fg9wlClZqYicrIgMdZfxTQ0c7TBIbrChxmuzoKG8XRaSrIhhiyNFJkrC7oIAWMEOQa5aBekPCRknCo4IKPrYkvCDI8aYmY7WFtprgekcJZ3oLIqssCSMtFbQTJKwXYy3BY5oCh2iKPCpJOE+zRdpYgi6O2KmOAgvVCYaU4ySRek1sgyFhJ403QFHiVEmJHwtybO1gs8Hr5+BETQX3War0qZngYGgtVZtoqd6vFSk/UwdZElYqyjrF4HXUeFspIi9IGKf4j92pKGAdCYMVsbcV3kRF0N+R8LUd5PCsIGWoxDtBkCI0nKofdJQxT+LtZflvuc8Q3CjwWkq8KwUpHzkK/NmSsclCL0nseQdj5FRH5CNHSgtLiW80Of5HU9Hhlsga9bnBq3fEVltKfO5IaSTmGjjc4J0otcP7QsJUSQM8pEj5/wCuUuC2DWz8AAAAAElFTkSuQmCC")}',""])},function(e,t,n){var r=n(240);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-blackboard.CodeMirror{background:#0c1021;color:#f8f8f8}.cm-s-blackboard .CodeMirror-selected{background:#253b76!important}.cm-s-blackboard .CodeMirror-line::selection,.cm-s-blackboard .CodeMirror-line>span::selection,.cm-s-blackboard .CodeMirror-line>span>span::selection{background:rgba(37,59,118,.99)}.cm-s-blackboard .CodeMirror-line::-moz-selection,.cm-s-blackboard .CodeMirror-line>span::-moz-selection,.cm-s-blackboard .CodeMirror-line>span>span::-moz-selection{background:rgba(37,59,118,.99)}.cm-s-blackboard .CodeMirror-gutters{background:#0c1021;border-right:0}.cm-s-blackboard .CodeMirror-guttermarker{color:#fbde2d}.cm-s-blackboard .CodeMirror-guttermarker-subtle,.cm-s-blackboard .CodeMirror-linenumber{color:#888}.cm-s-blackboard .CodeMirror-cursor{border-left:1px solid #a7a7a7!important}.cm-s-blackboard .cm-keyword{color:#fbde2d}.cm-s-blackboard .cm-atom,.cm-s-blackboard .cm-number{color:#d8fa3c}.cm-s-blackboard .cm-def{color:#8da6ce}.cm-s-blackboard .cm-variable{color:#ff6400}.cm-s-blackboard .cm-operator{color:#fbde2d}.cm-s-blackboard .cm-comment{color:#aeaeae}.cm-s-blackboard .cm-string,.cm-s-blackboard .cm-string-2{color:#61ce3c}.cm-s-blackboard .cm-meta{color:#d8fa3c}.cm-s-blackboard .cm-attribute,.cm-s-blackboard .cm-builtin,.cm-s-blackboard .cm-tag{color:#8da6ce}.cm-s-blackboard .cm-header{color:#ff6400}.cm-s-blackboard .cm-hr{color:#aeaeae}.cm-s-blackboard .cm-link{color:#8da6ce}.cm-s-blackboard .cm-error{background:#9d1e15;color:#f8f8f8}.cm-s-blackboard .CodeMirror-activeline-background{background:#3c3636!important}.cm-s-blackboard .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""])},function(e,t,n){var r=n(242);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-vibrant-ink.CodeMirror{background:#000;color:#fff}.cm-s-vibrant-ink .CodeMirror-selected{background:#35493c!important}.cm-s-vibrant-ink .CodeMirror-line::selection,.cm-s-vibrant-ink .CodeMirror-line>span::selection,.cm-s-vibrant-ink .CodeMirror-line>span>span::selection{background:rgba(53,73,60,.99)}.cm-s-vibrant-ink .CodeMirror-line::-moz-selection,.cm-s-vibrant-ink .CodeMirror-line>span::-moz-selection,.cm-s-vibrant-ink .CodeMirror-line>span>span::-moz-selection{background:rgba(53,73,60,.99)}.cm-s-vibrant-ink .CodeMirror-gutters{background:#002240;border-right:1px solid #aaa}.cm-s-vibrant-ink .CodeMirror-guttermarker{color:#fff}.cm-s-vibrant-ink .CodeMirror-guttermarker-subtle,.cm-s-vibrant-ink .CodeMirror-linenumber{color:#d0d0d0}.cm-s-vibrant-ink .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-vibrant-ink .cm-keyword{color:#cc7832}.cm-s-vibrant-ink .cm-atom{color:#fc0}.cm-s-vibrant-ink .cm-number{color:#ffee98}.cm-s-vibrant-ink .cm-def{color:#8da6ce}.cm-s-vibrant span.cm-def,.cm-s-vibrant span.cm-tag,.cm-s-vibrant-ink span.cm-variable-2,.cm-s-vibrant-ink span.cm-variable-3{color:#ffc66d}.cm-s-vibrant-ink .cm-operator{color:#888}.cm-s-vibrant-ink .cm-comment{color:gray;font-weight:700}.cm-s-vibrant-ink .cm-string{color:#a5c25c}.cm-s-vibrant-ink .cm-string-2{color:red}.cm-s-vibrant-ink .cm-meta{color:#d8fa3c}.cm-s-vibrant-ink .cm-attribute,.cm-s-vibrant-ink .cm-builtin,.cm-s-vibrant-ink .cm-tag{color:#8da6ce}.cm-s-vibrant-ink .cm-header{color:#ff6400}.cm-s-vibrant-ink .cm-hr{color:#aeaeae}.cm-s-vibrant-ink .cm-link{color:blue}.cm-s-vibrant-ink .cm-error{border-bottom:1px solid red}.cm-s-vibrant-ink .CodeMirror-activeline-background{background:#27282e!important}.cm-s-vibrant-ink .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""]); },function(e,t,n){var r=n(244);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".solarized.base03{color:#002b36}.solarized.base02{color:#073642}.solarized.base01{color:#586e75}.solarized.base00{color:#657b83}.solarized.base0{color:#839496}.solarized.base1{color:#93a1a1}.solarized.base2{color:#eee8d5}.solarized.base3{color:#fdf6e3}.solarized.solar-yellow{color:#b58900}.solarized.solar-orange{color:#cb4b16}.solarized.solar-red{color:#dc322f}.solarized.solar-magenta{color:#d33682}.solarized.solar-violet{color:#6c71c4}.solarized.solar-blue{color:#268bd2}.solarized.solar-cyan{color:#2aa198}.solarized.solar-green{color:#859900}.cm-s-solarized{line-height:1.45em;color-profile:sRGB;rendering-intent:auto}.cm-s-solarized.cm-s-dark{color:#839496;background-color:#002b36;text-shadow:#002b36 0 1px}.cm-s-solarized.cm-s-light{background-color:#fdf6e3;color:#657b83;text-shadow:#eee8d5 0 1px}.cm-s-solarized .CodeMirror-widget{text-shadow:none}.cm-s-solarized .cm-header{color:#586e75}.cm-s-solarized .cm-quote{color:#93a1a1}.cm-s-solarized .cm-keyword{color:#cb4b16}.cm-s-solarized .cm-atom,.cm-s-solarized .cm-number{color:#d33682}.cm-s-solarized .cm-def{color:#2aa198}.cm-s-solarized .cm-variable{color:#839496}.cm-s-solarized .cm-variable-2{color:#b58900}.cm-s-solarized .cm-variable-3{color:#6c71c4}.cm-s-solarized .cm-property{color:#2aa198}.cm-s-solarized .cm-operator{color:#6c71c4}.cm-s-solarized .cm-comment{color:#586e75;font-style:italic}.cm-s-solarized .cm-string{color:#859900}.cm-s-solarized .cm-string-2{color:#b58900}.cm-s-solarized .cm-meta{color:#859900}.cm-s-solarized .cm-qualifier{color:#b58900}.cm-s-solarized .cm-builtin{color:#d33682}.cm-s-solarized .cm-bracket{color:#cb4b16}.cm-s-solarized .CodeMirror-matchingbracket{color:#859900}.cm-s-solarized .CodeMirror-nonmatchingbracket{color:#dc322f}.cm-s-solarized .cm-tag{color:#93a1a1}.cm-s-solarized .cm-attribute{color:#2aa198}.cm-s-solarized .cm-hr{color:transparent;border-top:1px solid #586e75;display:block}.cm-s-solarized .cm-link{color:#93a1a1;cursor:pointer}.cm-s-solarized .cm-special{color:#6c71c4}.cm-s-solarized .cm-em{color:#999;text-decoration:underline;text-decoration-style:dotted}.cm-s-solarized .cm-strong{color:#eee}.cm-s-solarized .cm-error,.cm-s-solarized .cm-invalidchar{color:#586e75;border-bottom:1px dotted #dc322f}.cm-s-solarized.cm-s-dark .CodeMirror-selected{background:#073642}.cm-s-solarized.cm-s-dark.CodeMirror ::selection{background:rgba(7,54,66,.99)}.cm-s-dark .CodeMirror-line>span::-moz-selection,.cm-s-dark .CodeMirror-line>span>span::-moz-selection,.cm-s-solarized.cm-s-dark .CodeMirror-line::-moz-selection{background:rgba(7,54,66,.99)}.cm-s-light .CodeMirror-line>span::selection,.cm-s-light .CodeMirror-line>span>span::selection,.cm-s-solarized.cm-s-light .CodeMirror-line::selection,.cm-s-solarized.cm-s-light .CodeMirror-selected{background:#eee8d5}.cm-s-ligh .CodeMirror-line>span::-moz-selection,.cm-s-ligh .CodeMirror-line>span>span::-moz-selection,.cm-s-solarized.cm-s-light .CodeMirror-line::-moz-selection{background:#eee8d5}.cm-s-solarized.CodeMirror{box-shadow:inset 7px 0 9pt -6px #000}.cm-s-solarized .CodeMirror-gutters{border-right:1px solid}.cm-s-solarized.cm-s-dark .CodeMirror-gutters{background-color:#002b36;border-color:#00232c}.cm-s-solarized.cm-s-dark .CodeMirror-linenumber{text-shadow:#021014 0 -1px}.cm-s-solarized.cm-s-light .CodeMirror-gutters{background-color:#fdf6e3;border-color:#eee8d5}.cm-s-solarized .CodeMirror-linenumber{color:#586e75;padding:0 5px}.cm-s-solarized .CodeMirror-guttermarker-subtle{color:#586e75}.cm-s-solarized.cm-s-dark .CodeMirror-guttermarker{color:#ddd}.cm-s-solarized.cm-s-light .CodeMirror-guttermarker{color:#cb4b16}.cm-s-solarized .CodeMirror-gutter .CodeMirror-gutter-text{color:#586e75}.cm-s-solarized .CodeMirror-lines .CodeMirror-cursor{border-left:1px solid #819090}.cm-s-solarized.cm-s-dark .CodeMirror-activeline-background{background:hsla(0,0%,100%,.1)}.cm-s-solarized.cm-s-light .CodeMirror-activeline-background{background:rgba(0,0,0,.1)}",""])},function(e,t,n){var r=n(246);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-twilight.CodeMirror{background:#141414;color:#f7f7f7}.cm-s-twilight .CodeMirror-selected{background:#323232!important}.cm-s-twilight .CodeMirror-line::selection,.cm-s-twilight .CodeMirror-line>span::selection,.cm-s-twilight .CodeMirror-line>span>span::selection{background:rgba(50,50,50,.99)}.cm-s-twilight .CodeMirror-line::-moz-selection,.cm-s-twilight .CodeMirror-line>span::-moz-selection,.cm-s-twilight .CodeMirror-line>span>span::-moz-selection{background:rgba(50,50,50,.99)}.cm-s-twilight .CodeMirror-gutters{background:#222;border-right:1px solid #aaa}.cm-s-twilight .CodeMirror-guttermarker{color:#fff}.cm-s-twilight .CodeMirror-guttermarker-subtle,.cm-s-twilight .CodeMirror-linenumber{color:#aaa}.cm-s-twilight .CodeMirror-cursor{border-left:1px solid #fff!important}.cm-s-twilight .cm-keyword{color:#f9ee98}.cm-s-twilight .cm-atom{color:#fc0}.cm-s-twilight .cm-number{color:#ca7841}.cm-s-twilight .cm-def{color:#8da6ce}.cm-s-twilight span.cm-def,.cm-s-twilight span.cm-tag,.cm-s-twilight span.cm-variable-2,.cm-s-twilight span.cm-variable-3{color:#607392}.cm-s-twilight .cm-operator{color:#cda869}.cm-s-twilight .cm-comment{color:#777;font-style:italic;font-weight:400}.cm-s-twilight .cm-string{color:#8f9d6a;font-style:italic}.cm-s-twilight .cm-string-2{color:#bd6b18}.cm-s-twilight .cm-meta{background-color:#141414;color:#f7f7f7}.cm-s-twilight .cm-builtin{color:#cda869}.cm-s-twilight .cm-tag{color:#997643}.cm-s-twilight .cm-attribute{color:#d6bb6d}.cm-s-twilight .cm-header{color:#ff6400}.cm-s-twilight .cm-hr{color:#aeaeae}.cm-s-twilight .cm-link{color:#ad9361;font-style:italic;text-decoration:none}.cm-s-twilight .cm-error{border-bottom:1px solid red}.cm-s-twilight .CodeMirror-activeline-background{background:#27282e!important}.cm-s-twilight .CodeMirror-matchingbracket{outline:1px solid grey;color:#fff!important}",""])},function(e,t,n){var r=n(248);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".cm-s-midnight span.CodeMirror-matchhighlight{background:#494949}.cm-s-midnight.CodeMirror-focused span.CodeMirror-matchhighlight{background:#314d67!important}.cm-s-midnight .CodeMirror-activeline-background{background:#253540!important}.cm-s-midnight.CodeMirror{background:#0f192a;color:#d1edff;border-top:1px solid #000;border-bottom:1px solid #000}.cm-s-midnight div.CodeMirror-selected{background:#314d67!important}.cm-s-midnight .CodeMirror-line::selection,.cm-s-midnight .CodeMirror-line>span::selection,.cm-s-midnight .CodeMirror-line>span>span::selection{background:rgba(49,77,103,.99)}.cm-s-midnight .CodeMirror-line::-moz-selection,.cm-s-midnight .CodeMirror-line>span::-moz-selection,.cm-s-midnight .CodeMirror-line>span>span::-moz-selection{background:rgba(49,77,103,.99)}.cm-s-midnight .CodeMirror-gutters{background:#0f192a;border-right:1px solid}.cm-s-midnight .CodeMirror-guttermarker{color:#fff}.cm-s-midnight .CodeMirror-guttermarker-subtle,.cm-s-midnight .CodeMirror-linenumber{color:#d0d0d0}.cm-s-midnight .CodeMirror-cursor{border-left:1px solid #f8f8f0!important}.cm-s-midnight span.cm-comment{color:#428bdd}.cm-s-midnight span.cm-atom{color:#ae81ff}.cm-s-midnight span.cm-number{color:#d1edff}.cm-s-midnight span.cm-attribute,.cm-s-midnight span.cm-property{color:#a6e22e}.cm-s-midnight span.cm-keyword{color:#e83737}.cm-s-midnight span.cm-string{color:#1dc116}.cm-s-midnight span.cm-variable,.cm-s-midnight span.cm-variable-2{color:#ffaa3e}.cm-s-midnight span.cm-def{color:#4dd}.cm-s-midnight span.cm-bracket{color:#d1edff}.cm-s-midnight span.cm-tag{color:#449}.cm-s-midnight span.cm-link{color:#ae81ff}.cm-s-midnight span.cm-error{background:#f92672;color:#f8f8f0}.cm-s-midnight .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}",""])},function(e,t,n){var r=n(250);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".CodeMirror-dialog{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.CodeMirror-dialog-top{border-bottom:1px solid #eee;top:0}.CodeMirror-dialog-bottom{border-top:1px solid #eee;bottom:0}.CodeMirror-dialog input{border:none;outline:0;background:transparent;width:20em;color:inherit;font-family:monospace}.CodeMirror-dialog button{font-size:70%}",""])},function(e,t,n){var r=n(252);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".CodeMirror-search-match{background:gold;border-top:1px solid orange;border-bottom:1px solid orange;box-sizing:border-box;opacity:.5}",""])},function(e,t,n){var r=n(254);"string"==typeof r&&(r=[[e.id,r,""]]);n(4)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(),t.push([e.id,".CodeMirror-hints li.CodeMirror-hint-active:after{content:'F1';position:absolute;right:0;font-size:9pt}.CodeMirror-hints .CodeMirror-hint{max-width:unset;position:relative;padding-right:20px;font-family:consolas,monospace;font-size:14px}",""])},function(e,t,n){!function(t){e.exports=t()}(function(){"use strict";function e(n,r){if(!(this instanceof e))return new e(n,r);this.options=r=r?Uo(r):{},Uo(_i,r,!1),h(r);var o=r.value;"string"==typeof o&&(o=new Ma(o,r.mode,null,r.lineSeparator)),this.doc=o;var i=new e.inputStyles[r.inputStyle](this),a=this.display=new t(n,o,i);a.wrapper.CodeMirror=this,c(this),s(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),r.autofocus&&!xi&&a.input.focus(),A(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,draggingText:!1,highlight:new Io,keySeq:null,specialChars:null};var l=this;gi&&11>fi&&setTimeout(function(){l.display.input.reset(!0)},20),Ft(this),Xo(),wt(this),this.curOp.forceUpdate=!0,Xr(this,o),r.autofocus&&!xi||l.hasFocus()?setTimeout(Qo(gn,this),20):fn(this);for(var u in Ji)Ji.hasOwnProperty(u)&&Ji[u](this,r[u],Zi);T(this),r.finishInit&&r.finishInit(this);for(var d=0;dfi&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),mi||di&&xi||(r.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(r.wrapper):e(r.wrapper)),r.viewFrom=r.viewTo=t.first,r.reportedViewFrom=r.reportedViewTo=t.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,n.init(r)}function n(t){t.doc.mode=e.getMode(t.options,t.doc.modeOption),r(t)}function r(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.frontier=e.doc.first,Re(e,100),e.state.modeGen++,e.curOp&&Bt(e)}function o(e){e.options.lineWrapping?(Ya(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Pa(e.display.wrapper,"CodeMirror-wrap"),p(e)),a(e),Bt(e),at(e),setTimeout(function(){M(e)},100)}function i(e){var t=At(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Mt(e.display)-3);return function(o){if(wr(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;at.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function h(e){var t=So(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function g(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Pe(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Ge(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function f(e,t,n){this.cm=n;var r=this.vert=Ho("div",[Ho("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=Ho("div",[Ho("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(o),xa(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),xa(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedOverlay=!1,gi&&8>fi&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function m(){}function A(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&Pa(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new e.scrollbarModel[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),xa(e,"mousedown",function(){t.state.focused&&setTimeout(function(){t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,n){"horizontal"==n?tn(t,e):en(t,e)},t),t.display.scrollbars.addClass&&Ya(t.display.wrapper,t.display.scrollbars.addClass)}function M(e,t){t||(t=g(e));var n=e.display.barWidth,r=e.display.barHeight;w(e,t);for(var o=0;4>o&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&S(e),w(e,g(e)),n=e.display.barWidth,r=e.display.barHeight}function w(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function b(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Ve(e));var o=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,i=$r(t,r),a=$r(t,o);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;i>s?(i=s,a=$r(t,eo(_r(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(i=$r(t,eo(_r(t,l))-e.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function y(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=x(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Ht(e))return!1;T(e)&&(Qt(e),t.dims=k(e));var o=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(o,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),Si&&(i=Ar(e.doc,i),a=Mr(e.doc,a));var s=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Ot(e,i,a),n.viewOffset=eo(_r(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Ht(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Po();return l>4&&(n.lineDiv.style.display="none"),B(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,c&&Po()!=c&&c.offsetHeight&&c.focus(),Fo(n.cursorDiv),Fo(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Re(e,400)),n.updateLineNumbers=null,!0}function E(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=We(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Pe(e.display)-Xe(e),n.top)}),t.visible=b(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&I(e,t);r=!1){S(e);var o=g(e);ke(e),L(e,o),M(e,o)}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function D(e,t){var n=new N(e,t);if(I(e,n)){S(e),E(e,n);var r=g(e);ke(e),L(e,r),M(e,r),n.finish()}}function L(e,t){e.display.sizer.style.minHeight=t.docHeight+"px";var n=t.docHeight+e.display.barHeight;e.display.heightForcer.style.top=n+"px",e.display.gutters.style.height=Math.max(n+Ge(e),t.clientHeight)+"px"}function S(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;rfi){var a=i.node.offsetTop+i.node.offsetHeight;o=a-n,n=a}else{var s=i.node.getBoundingClientRect();o=s.bottom-s.top}var l=i.line.height-o;if(2>o&&(o=At(t)),(l>.001||-.001>l)&&(Kr(i.line,o),j(i.line),i.rest))for(var c=0;c=t&&d.lineNumber;d.changes&&(So(d.changes,"gutter")>-1&&(p=!1),U(e,d,c,n)),p&&(Fo(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(v(e.options,c)))),s=d.node.nextSibling}else{var h=P(e,d,c,n);a.insertBefore(h,s)}c+=d.size}for(;s;)s=r(s)}function U(e,t,n,r){for(var o=0;ofi&&(e.node.style.zIndex=2)),e.node}function z(e){var t=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(t&&(t+=" CodeMirror-linebackground"),e.background)t?e.background.className=t:(e.background.parentNode.removeChild(e.background),e.background=null);else if(t){var n=Q(e);e.background=n.insertBefore(Ho("div",null,t),n.firstChild)}}function R(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Ur(e,t)}function O(e,t){var n=t.text.className,r=R(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,H(t)):n&&(t.text.className=n)}function H(e){z(e),e.line.wrapClass?Q(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var t=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=t||""}function F(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=Q(t);t.gutterBackground=Ho("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),o.insertBefore(t.gutterBackground,t.text)}var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=Q(t),a=t.gutter=Ho("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(a),o.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(Ho("div",v(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var s=0;s1)if(Bi&&Bi.join("\n")==t){if(r.ranges.length%Bi.length==0){l=[];for(var c=0;c=0;c--){var u=r.ranges[c],d=u.from(),p=u.to();u.empty()&&(n&&n>0?d=ji(d.line,d.ch-n):e.state.overwrite&&!a&&(p=ji(p.line,Math.min(_r(i,p.line).text.length,p.ch+Lo(s).length))));var h=e.curOp.updateInput,g={from:d,to:p,text:l?l[c%l.length]:s,origin:o||(a?"paste":e.state.cutIncoming?"cut":"+input")};vn(e.doc,g),yo(e,"inputRead",e,g)}t&&!a&&ee(e,t),Un(e),e.curOp.updateInput=h,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function $(e,t){var n=e.clipboardData&&e.clipboardData.getData("text/plain");return n?(e.preventDefault(),Et(t,function(){q(t,n,0,null,"paste")}),!0):void 0}function ee(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s-1){a=zn(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(_r(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=zn(e,o.head.line,"smart"));a&&yo(e,"electricInput",e,o.head.line)}}}function te(e){for(var t=[],n=[],r=0;ro?c.map:u[o],a=0;ao?e.line:e.rest[o]),d=i[a]+r;return(0>r||s!=t)&&(d=i[a+(r?1:0)]),ji(l,d)}}}var o=e.text.firstChild,i=!1;if(!t||!Ha(o,t))return se(ji(qr(e.line),0),!0);if(t==o&&(i=!0,t=o.childNodes[n],n=0,!t)){var a=e.rest?Lo(e.rest):e.line;return se(ji(qr(a),a.text.length),i)}var s=3==t.nodeType?t:null,l=t;for(s||1!=t.childNodes.length||3!=t.firstChild.nodeType||(s=t.firstChild,n&&(n=s.nodeValue.length));l.parentNode!=o;)l=l.parentNode;var c=e.measure,u=c.maps,d=r(s,l,n);if(d)return se(d,i);for(var p=l.nextSibling,h=s?s.nodeValue.length-n:0;p;p=p.nextSibling){if(d=r(p,p.firstChild,0))return se(ji(d.line,d.ch-h),i);h+=p.textContent.length}for(var g=l.previousSibling,h=n;g;g=g.previousSibling){if(d=r(g,g.firstChild,-1))return se(ji(d.line,d.ch+h),i);h+=p.textContent.length}}function ue(e,t,n,r,o){function i(e){return function(t){return t.id==e}}function a(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return""==n&&(n=t.textContent.replace(/\u200b/g,"")),void(s+=n);var u,d=t.getAttribute("cm-marker");if(d){var p=e.findMarks(ji(r,0),ji(o+1,0),i(+d));return void(p.length&&(u=p[0].find())&&(s+=Jr(e.doc,u.from,u.to).join(c)))}if("false"==t.getAttribute("contenteditable"))return;for(var h=0;h=0){var a=J(i.from(),o.from()),s=_(i.to(),o.to()),l=i.empty()?o.from()==o.head:i.from()==i.head;t>=r&&--t,e.splice(--r,2,new pe(l?s:a,l?a:s))}}return new de(e,t)}function ge(e,t){return new de([new pe(e,t||e)],0)}function fe(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function me(e,t){if(t.linen?ji(n,_r(e,n).text.length):Ae(t,_r(e,t.line).text.length)}function Ae(e,t){var n=e.ch;return null==n||n>t?ji(e.line,t):0>n?ji(e.line,0):e}function Me(e,t){return t>=e.first&&t=i.ch:c.to>i.ch))){if(r&&(Ca(u,"beforeCursorEnter"),u.explicitlyCleared)){if(s.markedSpans){--l;continue}break}if(!u.atomic)continue;var d=u.find(0>a?-1:1);if(0==ki(d,i)&&(d.ch+=a,d.ch<0?d=d.line>e.first?me(e,ji(d.line-1)):null:d.ch>s.text.length&&(d=d.linet&&(t=0),t=Math.round(t),r=Math.round(r),s.appendChild(Ho("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px; top: "+t+"px; width: "+(null==n?u-e:n)+"px; height: "+(r-t)+"px"))}function o(t,n,o){function i(n,r){return dt(e,ji(t,n),"div",d,r)}var s,l,d=_r(a,t),p=d.text.length;return qo(to(d),n||0,null==o?p:o,function(e,t,a){var d,h,g,f=i(e,"left");if(e==t)d=f,h=g=f.left;else{if(d=i(t-1,"right"),"rtl"==a){var m=f;f=d,d=m}h=f.left,g=d.right}null==n&&0==e&&(h=c),d.top-f.top>3&&(r(h,f.top,null,f.bottom),h=c,f.bottoml.bottom||d.bottom==l.bottom&&d.right>l.right)&&(l=d),c+1>h&&(h=c),r(h,d.top,g-h,d.bottom)}),{start:s,end:l}}var i=e.display,a=e.doc,s=document.createDocumentFragment(),l=Ye(e.display),c=l.left,u=Math.max(i.sizerWidth,We(e)-i.sizer.offsetLeft)-l.right,d=t.from(),p=t.to();if(d.line==p.line)o(d.line,d.ch,p.ch);else{var h=_r(a,d.line),g=_r(a,p.line),f=fr(h)==fr(g),m=o(d.line,d.ch,f?h.text.length+1:null).end,A=o(p.line,f?0:null,p.ch).start;f&&(m.top0?t.blinker=setInterval(function(){t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Re(e,t){e.doc.mode.startState&&e.doc.frontier=e.display.viewTo)){var n=+new Date+e.options.workTime,r=na(t.mode,Fe(e,t.frontier)),o=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(t.frontier>=e.display.viewFrom){var a=i.styles,s=Sr(e,i,r,!0);i.styles=s.styles;var l=i.styleClasses,c=s.classes;c?i.styleClasses=c:l&&(i.styleClasses=null);for(var u=!a||a.length!=i.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),d=0;!u&&dn?(Re(e,e.options.workDelay),!0):void 0}),o.length&&Et(e,function(){for(var t=0;ta;--s){if(s<=i.first)return i.first;var l=_r(i,s-1);if(l.stateAfter&&(!n||s<=i.frontier))return s;var c=ka(l.text,null,e.options.tabSize);(null==o||r>c)&&(o=s-1,r=c)}return o}function Fe(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return!0;var i=He(e,t,n),a=i>r.first&&_r(r,i-1).stateAfter;return a=a?na(r.mode,a):ra(r.mode),r.iter(i,t,function(n){kr(e,n.text,a);var s=i==t-1||i%5==0||i>=o.viewFrom&&i2&&i.push((l.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}function Je(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Ze(e,t){t=fr(t);var n=qr(t),r=e.display.externalMeasured=new jt(e.doc,t,n);r.lineN=n;var o=r.built=Ur(e,r);return r.text=o.pre,Vo(e.display.lineMeasure,o.pre),r}function Ke(e,t,n,r){return et(e,$e(e,t),n,r)}function qe(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt?(o=0,i=1,a="left"):c>t?(o=t-l,i=o+1):(s==e.length-3||t==c&&e[s+3]>t)&&(i=c-l,o=i-1,t>=c&&(a="right")),null!=o){if(r=e[s+2],l==c&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)r=e[(s-=3)+2],a="left";if("right"==n&&o==c-l)for(;su;u++){for(;s&&Oo(t.line.text.charAt(i.coverStart+s));)--s;for(;i.coverStart+lfi&&0==s&&l==i.coverEnd-i.coverStart)o=a.parentNode.getBoundingClientRect();else if(gi&&e.options.lineWrapping){var d=Qa(a,s,l).getClientRects();o=d.length?d["right"==r?d.length-1:0]:Ri}else o=Qa(a,s,l).getBoundingClientRect()||Ri;if(o.left||o.right||0==s)break;l=s,s-=1,c="right"}gi&&11>fi&&(o=rt(e.display.measure,o))}else{s>0&&(c=r="right");var d;o=e.options.lineWrapping&&(d=a.getClientRects()).length>1?d["right"==r?d.length-1:0]:a.getBoundingClientRect()}if(gi&&9>fi&&!s&&(!o||!o.left&&!o.right)){var p=a.parentNode.getClientRects()[0];o=p?{left:p.left,right:p.left+Mt(e.display),top:p.top,bottom:p.bottom}:Ri}for(var h=o.top-t.rect.top,g=o.bottom-t.rect.top,f=(h+g)/2,m=t.view.measure.heights,u=0;un.from?a(e-1):a(e,r)}r=r||_r(e.doc,t.line),o||(o=$e(e,r));var l=to(r),c=t.ch;if(!l)return a(c);var u=si(l,c),d=s(c,u);return null!=qa&&(d.other=s(c,qa)),d}function ht(e,t){var n=0,t=me(e.doc,t);e.options.lineWrapping||(n=Mt(e.display)*t.ch);var r=_r(e.doc,t.line),o=eo(r)+Ve(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function gt(e,t,n,r){var o=ji(e,t);return o.xRel=r,n&&(o.outside=!0),o}function ft(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,0>n)return gt(r.first,0,!0,-1);var o=$r(r,n),i=r.first+r.size-1;if(o>i)return gt(r.first+r.size-1,_r(r,i).text.length,!0,1);0>t&&(t=0);for(var a=_r(r,o);;){var s=mt(e,a,o,t,n),l=hr(a),c=l&&l.find(0,!0);if(!l||!(s.ch>c.from.ch||s.ch==c.from.ch&&s.xRel>0))return s;o=qr(a=c.to.line)}}function mt(e,t,n,r,o){function i(r){var o=pt(e,ji(n,r),"line",t,c);return s=!0,a>o.bottom?o.left-l:am)return gt(n,h,A,1);for(;;){if(u?h==p||h==ci(t,p,1):1>=h-p){for(var M=g>r||m-r>=r-g?p:h,w=r-(M==p?g:m);Oo(t.text.charAt(M));)++M;var b=gt(n,M,M==p?f:A,-1>w?-1:w>1?1:0);return b}var y=Math.ceil(d/2),T=p+y;if(u){T=p;for(var v=0;y>v;++v)T=ci(t,T,1)}var x=i(T);x>r?(h=T,m=x,(A=s)&&(m+=1e3),d=y):(p=T,g=x,f=s,d-=y)}}function At(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Ui){Ui=Ho("pre");for(var t=0;49>t;++t)Ui.appendChild(document.createTextNode("x")),Ui.appendChild(Ho("br"));Ui.appendChild(document.createTextNode("x"))}Vo(e.measure,Ui);var n=Ui.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),Fo(e.measure),n||1}function Mt(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=Ho("span","xxxxxxxxxx"),n=Ho("pre",[t]);Vo(e.measure,n);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function wt(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Hi},Oi?Oi.ops.push(e.curOp):e.curOp.ownsGroup=Oi={ops:[e.curOp],delayedCallbacks:[]}}function bt(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new N(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function xt(e){e.updatedDisplay=e.mustUpdate&&I(e.cm,e.update)}function Nt(e){var t=e.cm,n=t.display;e.updatedDisplay&&S(t),e.barMeasure=g(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ke(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Ge(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-We(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ct(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLefti;i=r){var a=new jt(e.doc,_r(e.doc,i),i);r=i+a.size,o.push(a)}return o}function Bt(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var o=e.display;if(r&&nt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Si&&Ar(e.doc,t)o.viewFrom?Qt(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)Qt(e);else if(t<=o.viewFrom){var i=Rt(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):Qt(e)}else if(n>=o.viewTo){var i=Rt(e,t,t,-1);i?(o.view=o.view.slice(0,i.index),o.viewTo=i.lineN):Qt(e)}else{var a=Rt(e,t,t,-1),s=Rt(e,n,n+r,1);a&&s?(o.view=o.view.slice(0,a.index).concat(kt(e,a.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=r):Qt(e)}var l=o.externalMeasured;l&&(n=o.lineN&&t=r.viewTo)){var i=r.view[zt(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==So(a,n)&&a.push(n)}}}function Qt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function zt(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,0>t)return null;for(var n=e.display.view,r=0;rt)return r}function Rt(e,t,n,r){var o,i=zt(e,t),a=e.display.view;if(!Si||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=0,l=e.display.viewFrom;i>s;s++)l+=a[s].size;if(l!=t){if(r>0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,n+=o}for(;Ar(e.doc,n)!=n;){if(i==(0>r?0:a.length-1))return null;n+=r*a[i-(0>r?1:0)].size,i+=r}return{index:i,lineN:n}}function Ot(e,t,n){var r=e.display,o=r.view;0==o.length||t>=r.viewTo||n<=r.viewFrom?(r.view=kt(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=kt(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,zt(e,n)))),r.viewTo=n}function Ht(e){for(var t=e.display.view,n=0,r=0;r400}var o=e.display;xa(o.scroller,"mousedown",Dt(e,Wt)),gi&&11>fi?xa(o.scroller,"dblclick",Dt(e,function(t){if(!vo(e,t)){var n=Gt(e,t);if(n&&!Kt(e,t)&&!Yt(e.display,t)){ya(t);var r=e.findWordAt(n);ye(e.doc,r.anchor,r.head)}}})):xa(o.scroller,"dblclick",function(t){vo(e,t)||ya(t)}),Di||xa(o.scroller,"contextmenu",function(t){mn(e,t)});var i,a={end:0};xa(o.scroller,"touchstart",function(e){if(!n(e)){clearTimeout(i);var t=+new Date;o.activeTouch={start:t,moved:!1,prev:t-a.end<=300?a:null},1==e.touches.length&&(o.activeTouch.left=e.touches[0].pageX,o.activeTouch.top=e.touches[0].pageY)}}),xa(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),xa(o.scroller,"touchend",function(n){var i=o.activeTouch;if(i&&!Yt(o,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var a,s=e.coordsChar(o.activeTouch,"page");a=!i.prev||r(i,i.prev)?new pe(s,s):!i.prev.prev||r(i,i.prev.prev)?e.findWordAt(s):new pe(ji(s.line,0),me(e.doc,ji(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),ya(n)}t()}),xa(o.scroller,"touchcancel",t),xa(o.scroller,"scroll",function(){o.scroller.clientHeight&&(en(e,o.scroller.scrollTop),tn(e,o.scroller.scrollLeft,!0),Ca(e,"scroll",e))}),xa(o.scroller,"mousewheel",function(t){nn(e,t)}),xa(o.scroller,"DOMMouseScroll",function(t){nn(e,t)}),xa(o.wrapper,"scroll",function(){o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={simple:function(t){vo(e,t)||va(t)},start:function(t){$t(e,t)},drop:Dt(e,qt)};var s=o.input.getField();xa(s,"keyup",function(t){dn.call(e,t)}),xa(s,"keydown",Dt(e,cn)),xa(s,"keypress",Dt(e,pn)),xa(s,"focus",Qo(gn,e)),xa(s,"blur",Qo(fn,e))}function Vt(t,n,r){var o=r&&r!=e.Init;if(!n!=!o){var i=t.display.dragFunctions,a=n?xa:Na;a(t.display.scroller,"dragstart",i.start),a(t.display.scroller,"dragenter",i.simple),a(t.display.scroller,"dragover",i.simple),a(t.display.scroller,"drop",i.drop)}}function Pt(e){var t=e.display;(t.lastWrapHeight!=t.wrapper.clientHeight||t.lastWrapWidth!=t.wrapper.clientWidth)&&(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function Yt(e,t){for(var n=wo(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Gt(e,t,n,r){var o=e.display;if(!n&&"true"==wo(t).getAttribute("cm-not-content"))return null;var i,a,s=o.lineSpace.getBoundingClientRect();try{i=t.clientX-s.left,a=t.clientY-s.top}catch(t){return null}var l,c=ft(e,i,a);if(r&&1==c.xRel&&(l=_r(e.doc,c.line).text).length==c.ch){var u=ka(l,l.length,e.options.tabSize)-l.length;c=ji(c.line,Math.max(0,Math.round((i-Ye(e.display).left)/Mt(e.display))-u))}return c}function Wt(e){var t=this,n=t.display;if(!(n.activeTouch&&n.input.supportsTouch()||vo(t,e))){if(n.shift=e.shiftKey,Yt(n,e))return void(mi||(n.scroller.draggable=!1,setTimeout(function(){n.scroller.draggable=!0},100)));if(!Kt(t,e)){var r=Gt(t,e);switch(window.focus(),bo(e)){case 1:r?Xt(t,e,r):wo(e)==n.scroller&&ya(e);break;case 2:mi&&(t.state.lastMiddleDown=+new Date),r&&ye(t.doc,r),setTimeout(function(){n.input.focus()},20),ya(e);break;case 3:Di?mn(t,e):hn(t)}}}}function Xt(e,t,n){gi?setTimeout(Qo(Z,e),0):e.curOp.focus=Po();var r,o=+new Date;zi&&zi.time>o-400&&0==ki(zi.pos,n)?r="triple":Qi&&Qi.time>o-400&&0==ki(Qi.pos,n)?(r="double",zi={time:o,pos:n}):(r="single",Qi={time:o,pos:n});var i,a=e.doc.sel,s=Ni?t.metaKey:t.ctrlKey;e.options.dragDrop&&Wa&&!K(e)&&"single"==r&&(i=a.contains(n))>-1&&(ki((i=a.ranges[i]).from(),n)<0||n.xRel>0)&&(ki(i.to(),n)>0||n.xRel<0)?_t(e,t,n,s):Jt(e,t,n,r,s)}function _t(e,t,n,r){var o=e.display,i=+new Date,a=Dt(e,function(s){mi&&(o.scroller.draggable=!1),e.state.draggingText=!1,Na(document,"mouseup",a),Na(o.scroller,"drop",a),Math.abs(t.clientX-s.clientX)+Math.abs(t.clientY-s.clientY)<10&&(ya(s),!r&&+new Date-200=g;g++){var A=_r(c,g).text,M=Eo(A,l,i);l==h?o.push(new pe(ji(g,M),ji(g,M))):A.length>M&&o.push(new pe(ji(g,M),ji(g,Eo(A,h,i))))}o.length||o.push(new pe(n,n)),Ie(c,he(p.ranges.slice(0,d).concat(o),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var w=u,b=w.anchor,y=t;if("single"!=r){if("double"==r)var T=e.findWordAt(t);else var T=new pe(ji(t.line,0),me(c,ji(t.line+1,0)));ki(T.anchor,b)>0?(y=T.head,b=J(w.from(),T.anchor)):(y=T.anchor,b=_(w.to(),T.head))}var o=p.ranges.slice(0);o[d]=new pe(me(c,b),y),Ie(c,he(o,d),Sa)}}function a(t){var n=++M,o=Gt(e,t,!0,"rect"==r);if(o)if(0!=ki(o,m)){e.curOp.focus=Po(),i(o);var s=b(l,c);(o.line>=s.to||o.lineA.bottom?20:0;u&&setTimeout(Dt(e,function(){M==n&&(l.scroller.scrollTop+=u,a(t))}),50)}}function s(e){M=1/0,ya(e),l.input.focus(),Na(document,"mousemove",w),Na(document,"mouseup",y),c.history.lastSelOrigin=null}var l=e.display,c=e.doc;ya(t);var u,d,p=c.sel,h=p.ranges;if(o&&!t.shiftKey?(d=c.sel.contains(n),u=d>-1?h[d]:new pe(n,n)):(u=c.sel.primary(),d=c.sel.primIndex),t.altKey)r="rect",o||(u=new pe(n,n)),n=Gt(e,t,!0,!0),d=-1;else if("double"==r){var g=e.findWordAt(n);u=e.display.shift||c.extend?be(c,u,g.anchor,g.head):g}else if("triple"==r){var f=new pe(ji(n.line,0),me(c,ji(n.line+1,0)));u=e.display.shift||c.extend?be(c,u,f.anchor,f.head):f}else u=be(c,u,n);o?-1==d?(d=h.length,Ie(c,he(h.concat([u]),d),{scroll:!1,origin:"*mouse"})):h.length>1&&h[d].empty()&&"single"==r&&!t.shiftKey?(Ie(c,he(h.slice(0,d).concat(h.slice(d+1)),0)),p=c.sel):ve(c,d,u,Sa):(d=0,Ie(c,new de([u],0),Sa),p=c.sel);var m=n,A=l.wrapper.getBoundingClientRect(),M=0,w=Dt(e,function(e){bo(e)?a(e):s(e)}),y=Dt(e,s);xa(document,"mousemove",w),xa(document,"mouseup",y)}function Zt(e,t,n,r,o){try{var i=t.clientX,a=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ya(t);var s=e.display,l=s.lineDiv.getBoundingClientRect();if(a>l.bottom||!No(e,n))return Mo(t);a-=l.top-s.viewOffset;for(var c=0;c=i){var d=$r(e.doc,a),p=e.options.gutters[c];return o(e,n,e,d,p,t),Mo(t)}}}function Kt(e,t){return Zt(e,t,"gutterClick",!0,yo)}function qt(e){var t=this;if(!vo(t,e)&&!Yt(t.display,e)){ya(e),gi&&(Fi=+new Date);var n=Gt(t,e,!0),r=e.dataTransfer.files;if(n&&!K(t))if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,i=Array(o),a=0,s=function(e,r){var s=new FileReader;s.onload=Dt(t,function(){if(i[r]=s.result,++a==o){n=me(t.doc,n);var e={from:n,to:n,text:t.doc.splitLines(i.join(t.doc.lineSeparator())),origin:"paste"};vn(t.doc,e),Ce(t.doc,ge(n,Xi(e)))}}),s.readAsText(e)},l=0;o>l;++l)s(r[l],l);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){t.display.input.focus()},20);try{var i=e.dataTransfer.getData("Text");if(i){if(t.state.draggingText&&!(Ni?e.altKey:e.ctrlKey))var c=t.listSelections();if(Ee(t.doc,ge(n,n)),c)for(var l=0;la.clientWidth||o&&a.scrollHeight>a.clientHeight){if(o&&Ni&&mi)e:for(var s=t.target,l=i.view;s!=a;s=s.parentNode)for(var c=0;cu?d=Math.max(0,d+u-50):p=Math.min(e.doc.height,p+u+50),D(e,{top:d,bottom:p})}20>Vi&&(null==i.wheelStartX?(i.wheelStartX=a.scrollLeft,i.wheelStartY=a.scrollTop,i.wheelDX=r,i.wheelDY=o,setTimeout(function(){if(null!=i.wheelStartX){var e=a.scrollLeft-i.wheelStartX,t=a.scrollTop-i.wheelStartY,n=t&&i.wheelDY&&t/i.wheelDY||e&&i.wheelDX&&e/i.wheelDX;i.wheelStartX=i.wheelStartY=null,n&&(Pi=(Pi*Vi+n)/(Vi+1),++Vi)}},200)):(i.wheelDX+=r,i.wheelDY+=o))}}function rn(e,t,n){if("string"==typeof t&&(t=oa[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,o=!1;try{K(e)&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),o=t(e)!=Da}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function on(e,t,n){for(var r=0;rfi&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=sn(t,e);wi&&(Wi=r?n:null,!r&&88==n&&!Ja&&(Ni?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||un(t)}}function un(e){function t(e){18!=e.keyCode&&e.altKey||(Pa(n,"CodeMirror-crosshair"),Na(document,"keyup",t),Na(document,"mouseover",t))}var n=e.display.lineDiv;Ya(n,"CodeMirror-crosshair"),xa(document,"keyup",t), diff --git a/biz/webui/htdocs/src/js/index.js b/biz/webui/htdocs/src/js/index.js index c5cf447c6..79a8b004d 100644 --- a/biz/webui/htdocs/src/js/index.js +++ b/biz/webui/htdocs/src/js/index.js @@ -749,6 +749,17 @@ var Index = React.createClass({ self.importSessions(e); e.preventDefault(); } + + if ( + (util.IS_MACOS && e.key === 'Backspace' && e.metaKey === true) || + (!util.IS_MACOS && e.key === 'Delete') + ) { + if (self.state.name === 'rules') { + self.removeRules(); + } else if (self.state.name === 'values') { + self.removeValues(); + } + } }); function getKey(url) { diff --git a/biz/webui/htdocs/src/js/util.js b/biz/webui/htdocs/src/js/util.js index 658a6fc0a..4b1af4493 100644 --- a/biz/webui/htdocs/src/js/util.js +++ b/biz/webui/htdocs/src/js/util.js @@ -17,6 +17,10 @@ var dragTarget, dragOffset, dragCallback; var logTempId = 0; var LEVELS = ['fatal', 'error', 'warn', 'info', 'debug']; +var IS_MACOS = navigator.userAgent.indexOf('Macintosh') >= 0; + +exports.IS_MACOS = IS_MACOS; + function noop(_) { return _; } @@ -277,7 +281,7 @@ exports.getExtension = function(headers) { } type = type || getRawType(headers); type = type.substring(type.indexOf('/') + 1).toLowerCase(); - return /\w+/.test(type) ? '.' + RegExp['$&'] : ''; + return /\w+/.test(type) ? '.' + RegExp['$&'] : ''; }; function getContentType(type) {