All Downloads are FREE. Search and download functionalities are using the official Maven repository.

urule-asserts.js.ulEditor.bundle.js Maven / Gradle / Ivy

!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}function i(t){return function(e,n,r,o){if(""===e)return void n(o,[]);var i=window._server+"/common/scriptValidation";$.ajax({url:i,type:"POST",data:{type:t,content:e},success:function(t){if(t){var e=!0,r=!1,i=void 0;try{for(var A,a=t[Symbol.iterator]();!(e=(A=a.next()).done);e=!0){var s=A.value;s.from={line:s.line-1},s.to={line:s.line-1}}}catch(t){r=!0,i=t}finally{try{!e&&a.return&&a.return()}finally{if(r)throw i}}n(o,t)}else n(o,[])},error:function(t){t&&t.responseText?bootbox.alert("语法检查操作失败:"+t.responseText+""):bootbox.alert("语法检查操作失败,服务端出错")}})}}function A(){var t=$(document).height()-60;codeMirror.setSize("100%",t),window._dirty=!1;var e=(0,N.getParameter)("file");if(!e||e.length<1)return void alert("当前编辑器未指定具体文件!");var n='',r=$('');$("#toolbarContainer").append(r),$("#saveButton").click(function(){l(e,!1)}),$("#saveButtonNewVersion").click(function(){l(e,!0)}),$("#configParameterButton").click(function(){C.eventEmitter.emit(C.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"ParameterLibrary",callback:function(t,e){var n="jcr:"+t;"LATEST"!==e&&(n+=":"+e),a("ParameterLibrary",n)}})}),$("#addVarButton").click(function(){C.eventEmitter.emit(C.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"VariableLibrary",callback:function(t,e){var n="jcr:"+t;"LATEST"!==e&&(n+=":"+e),a("VariableLibrary",n)}})}),$("#addConstantsButton").click(function(){C.eventEmitter.emit(C.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"ConstantLibrary",callback:function(t,e){var n="jcr:"+t;"LATEST"!==e&&(n+=":"+e),a("ConstantLibrary",n)}})}),$("#addActionButton").click(function(){C.eventEmitter.emit(C.OPEN_KNOWLEDGE_TREE_DIALOG,{project:window._project,fileType:"ActionLibrary",callback:function(t,e){var n="jcr:"+t;"LATEST"!==e&&(n+=":"+e),a("ActionLibrary",n)}})}),window._dirty=!1;var o=window._server+"/uleditor/loadUL";$.ajax({url:o,type:"POST",data:{file:e},error:function(t){t&&t.responseText?bootbox.alert("文件加载失败:"+t.responseText+""):bootbox.alert("文件加载失败,服务端出错")},success:function(t){codeMirror.setValue(t),$("#saveButton").addClass("disabled"),$("#saveButtonNewVersion").addClass("disabled"),codeMirror.on("change",function(){c()}),s()}})}function a(t,e){codeMirror.replaceSelection("import"+t+' "'+e+'";'),s()}function s(){var t=((0,N.getParameter)("file"),codeMirror.getValue());if(!t||t.length<10)return void p.MsgBox.alert("请先输入脚本.");var e=window._server+"/uleditor/loadULLibs";$.ajax({url:e,type:"POST",data:{content:t},error:function(t){t&&t.responseText?bootbox.alert("资源库加载失败:"+t.responseText+""):bootbox.alert("资源库加载失败,服务端出错")},success:function(t){codeMirror._library=t}})}function l(t,e){if($("#saveButton").hasClass("disabled"))return!1;var n=codeMirror.getValue(),r={content:n,file:t,newVersion:e},o=window._server+"/common/saveFile";e?bootbox.prompt("请输入新版本描述.",function(t){t&&(r.versionComment=t,(0,N.ajaxSave)(o,r,function(){u()}))}):(0,N.ajaxSave)(o,r,function(){u()})}function c(){window._dirty||(window._dirty=!0,$("#saveButton").html(" *保存"),$("#saveButton").removeClass("disabled"),$("#saveButtonNewVersion").html(" *保存新版本"),$("#saveButtonNewVersion").removeClass("disabled"))}function u(){window._dirty&&(window._dirty=!1,$("#saveButton").html(" 保存"),$("#saveButton").addClass("disabled"),$("#saveButtonNewVersion").html(" 保存新版本"),$("#saveButtonNewVersion").addClass("disabled"))}n(1),n(390),n(392),n(394),n(507);var g=n(14),d=o(g),M=n(41),h=o(M),p=n(241),f=n(406),I=o(f);n(420),n(421),n(405),n(509),n(510),n(511);var T=n(370),E=o(T),N=n(226),w=n(339),C=r(w);$(document).ready(function(){h.default.render(d.default.createElement(E.default,null),document.getElementById("dialogContainer")),I.default.commands.autocomplete=function(t){t.showHint({hint:I.default.hint.urule})};var t=document.getElementById("codeEditor");window.codeMirror=I.default.fromTextArea(t,{lineNumbers:!0,mode:"rulemixed",extraKeys:{"Alt-/":"autocomplete"},gutters:["CodeMirror-linenumbers","CodeMirror-lint-markers"],lint:{getAnnotations:i("Script"),async:!0}}),codeMirror.on("change",function(t,e){t.getValue();"."==e.text&&I.default.commands.autocomplete(codeMirror)}),A()})},function(t,e,n){var r=n(2);"string"==typeof r&&(r=[[t.id,r,""]]);n(9)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,'/*!\n * Bootstrap v3.3.7 (http://getbootstrap.com)\n * Copyright 2011-2016 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}\n/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:Glyphicons Halflings;src:url('+n(4)+");src:url("+n(4)+"?#iefix) format('embedded-opentype'),url("+n(5)+") format('woff2'),url("+n(6)+") format('woff'),url("+n(7)+") format('truetype'),url("+n(8)+'#glyphicons_halflingsregular) format(\'svg\')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:Glyphicons Halflings;font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"*"}.glyphicon-plus:before{content:"+"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\\20AC"}.glyphicon-minus:before{content:"\\2212"}.glyphicon-cloud:before{content:"\\2601"}.glyphicon-envelope:before{content:"\\2709"}.glyphicon-pencil:before{content:"\\270F"}.glyphicon-glass:before{content:"\\E001"}.glyphicon-music:before{content:"\\E002"}.glyphicon-search:before{content:"\\E003"}.glyphicon-heart:before{content:"\\E005"}.glyphicon-star:before{content:"\\E006"}.glyphicon-star-empty:before{content:"\\E007"}.glyphicon-user:before{content:"\\E008"}.glyphicon-film:before{content:"\\E009"}.glyphicon-th-large:before{content:"\\E010"}.glyphicon-th:before{content:"\\E011"}.glyphicon-th-list:before{content:"\\E012"}.glyphicon-ok:before{content:"\\E013"}.glyphicon-remove:before{content:"\\E014"}.glyphicon-zoom-in:before{content:"\\E015"}.glyphicon-zoom-out:before{content:"\\E016"}.glyphicon-off:before{content:"\\E017"}.glyphicon-signal:before{content:"\\E018"}.glyphicon-cog:before{content:"\\E019"}.glyphicon-trash:before{content:"\\E020"}.glyphicon-home:before{content:"\\E021"}.glyphicon-file:before{content:"\\E022"}.glyphicon-time:before{content:"\\E023"}.glyphicon-road:before{content:"\\E024"}.glyphicon-download-alt:before{content:"\\E025"}.glyphicon-download:before{content:"\\E026"}.glyphicon-upload:before{content:"\\E027"}.glyphicon-inbox:before{content:"\\E028"}.glyphicon-play-circle:before{content:"\\E029"}.glyphicon-repeat:before{content:"\\E030"}.glyphicon-refresh:before{content:"\\E031"}.glyphicon-list-alt:before{content:"\\E032"}.glyphicon-lock:before{content:"\\E033"}.glyphicon-flag:before{content:"\\E034"}.glyphicon-headphones:before{content:"\\E035"}.glyphicon-volume-off:before{content:"\\E036"}.glyphicon-volume-down:before{content:"\\E037"}.glyphicon-volume-up:before{content:"\\E038"}.glyphicon-qrcode:before{content:"\\E039"}.glyphicon-barcode:before{content:"\\E040"}.glyphicon-tag:before{content:"\\E041"}.glyphicon-tags:before{content:"\\E042"}.glyphicon-book:before{content:"\\E043"}.glyphicon-bookmark:before{content:"\\E044"}.glyphicon-print:before{content:"\\E045"}.glyphicon-camera:before{content:"\\E046"}.glyphicon-font:before{content:"\\E047"}.glyphicon-bold:before{content:"\\E048"}.glyphicon-italic:before{content:"\\E049"}.glyphicon-text-height:before{content:"\\E050"}.glyphicon-text-width:before{content:"\\E051"}.glyphicon-align-left:before{content:"\\E052"}.glyphicon-align-center:before{content:"\\E053"}.glyphicon-align-right:before{content:"\\E054"}.glyphicon-align-justify:before{content:"\\E055"}.glyphicon-list:before{content:"\\E056"}.glyphicon-indent-left:before{content:"\\E057"}.glyphicon-indent-right:before{content:"\\E058"}.glyphicon-facetime-video:before{content:"\\E059"}.glyphicon-picture:before{content:"\\E060"}.glyphicon-map-marker:before{content:"\\E062"}.glyphicon-adjust:before{content:"\\E063"}.glyphicon-tint:before{content:"\\E064"}.glyphicon-edit:before{content:"\\E065"}.glyphicon-share:before{content:"\\E066"}.glyphicon-check:before{content:"\\E067"}.glyphicon-move:before{content:"\\E068"}.glyphicon-step-backward:before{content:"\\E069"}.glyphicon-fast-backward:before{content:"\\E070"}.glyphicon-backward:before{content:"\\E071"}.glyphicon-play:before{content:"\\E072"}.glyphicon-pause:before{content:"\\E073"}.glyphicon-stop:before{content:"\\E074"}.glyphicon-forward:before{content:"\\E075"}.glyphicon-fast-forward:before{content:"\\E076"}.glyphicon-step-forward:before{content:"\\E077"}.glyphicon-eject:before{content:"\\E078"}.glyphicon-chevron-left:before{content:"\\E079"}.glyphicon-chevron-right:before{content:"\\E080"}.glyphicon-plus-sign:before{content:"\\E081"}.glyphicon-minus-sign:before{content:"\\E082"}.glyphicon-remove-sign:before{content:"\\E083"}.glyphicon-ok-sign:before{content:"\\E084"}.glyphicon-question-sign:before{content:"\\E085"}.glyphicon-info-sign:before{content:"\\E086"}.glyphicon-screenshot:before{content:"\\E087"}.glyphicon-remove-circle:before{content:"\\E088"}.glyphicon-ok-circle:before{content:"\\E089"}.glyphicon-ban-circle:before{content:"\\E090"}.glyphicon-arrow-left:before{content:"\\E091"}.glyphicon-arrow-right:before{content:"\\E092"}.glyphicon-arrow-up:before{content:"\\E093"}.glyphicon-arrow-down:before{content:"\\E094"}.glyphicon-share-alt:before{content:"\\E095"}.glyphicon-resize-full:before{content:"\\E096"}.glyphicon-resize-small:before{content:"\\E097"}.glyphicon-exclamation-sign:before{content:"\\E101"}.glyphicon-gift:before{content:"\\E102"}.glyphicon-leaf:before{content:"\\E103"}.glyphicon-fire:before{content:"\\E104"}.glyphicon-eye-open:before{content:"\\E105"}.glyphicon-eye-close:before{content:"\\E106"}.glyphicon-warning-sign:before{content:"\\E107"}.glyphicon-plane:before{content:"\\E108"}.glyphicon-calendar:before{content:"\\E109"}.glyphicon-random:before{content:"\\E110"}.glyphicon-comment:before{content:"\\E111"}.glyphicon-magnet:before{content:"\\E112"}.glyphicon-chevron-up:before{content:"\\E113"}.glyphicon-chevron-down:before{content:"\\E114"}.glyphicon-retweet:before{content:"\\E115"}.glyphicon-shopping-cart:before{content:"\\E116"}.glyphicon-folder-close:before{content:"\\E117"}.glyphicon-folder-open:before{content:"\\E118"}.glyphicon-resize-vertical:before{content:"\\E119"}.glyphicon-resize-horizontal:before{content:"\\E120"}.glyphicon-hdd:before{content:"\\E121"}.glyphicon-bullhorn:before{content:"\\E122"}.glyphicon-bell:before{content:"\\E123"}.glyphicon-certificate:before{content:"\\E124"}.glyphicon-thumbs-up:before{content:"\\E125"}.glyphicon-thumbs-down:before{content:"\\E126"}.glyphicon-hand-right:before{content:"\\E127"}.glyphicon-hand-left:before{content:"\\E128"}.glyphicon-hand-up:before{content:"\\E129"}.glyphicon-hand-down:before{content:"\\E130"}.glyphicon-circle-arrow-right:before{content:"\\E131"}.glyphicon-circle-arrow-left:before{content:"\\E132"}.glyphicon-circle-arrow-up:before{content:"\\E133"}.glyphicon-circle-arrow-down:before{content:"\\E134"}.glyphicon-globe:before{content:"\\E135"}.glyphicon-wrench:before{content:"\\E136"}.glyphicon-tasks:before{content:"\\E137"}.glyphicon-filter:before{content:"\\E138"}.glyphicon-briefcase:before{content:"\\E139"}.glyphicon-fullscreen:before{content:"\\E140"}.glyphicon-dashboard:before{content:"\\E141"}.glyphicon-paperclip:before{content:"\\E142"}.glyphicon-heart-empty:before{content:"\\E143"}.glyphicon-link:before{content:"\\E144"}.glyphicon-phone:before{content:"\\E145"}.glyphicon-pushpin:before{content:"\\E146"}.glyphicon-usd:before{content:"\\E148"}.glyphicon-gbp:before{content:"\\E149"}.glyphicon-sort:before{content:"\\E150"}.glyphicon-sort-by-alphabet:before{content:"\\E151"}.glyphicon-sort-by-alphabet-alt:before{content:"\\E152"}.glyphicon-sort-by-order:before{content:"\\E153"}.glyphicon-sort-by-order-alt:before{content:"\\E154"}.glyphicon-sort-by-attributes:before{content:"\\E155"}.glyphicon-sort-by-attributes-alt:before{content:"\\E156"}.glyphicon-unchecked:before{content:"\\E157"}.glyphicon-expand:before{content:"\\E158"}.glyphicon-collapse-down:before{content:"\\E159"}.glyphicon-collapse-up:before{content:"\\E160"}.glyphicon-log-in:before{content:"\\E161"}.glyphicon-flash:before{content:"\\E162"}.glyphicon-log-out:before{content:"\\E163"}.glyphicon-new-window:before{content:"\\E164"}.glyphicon-record:before{content:"\\E165"}.glyphicon-save:before{content:"\\E166"}.glyphicon-open:before{content:"\\E167"}.glyphicon-saved:before{content:"\\E168"}.glyphicon-import:before{content:"\\E169"}.glyphicon-export:before{content:"\\E170"}.glyphicon-send:before{content:"\\E171"}.glyphicon-floppy-disk:before{content:"\\E172"}.glyphicon-floppy-saved:before{content:"\\E173"}.glyphicon-floppy-remove:before{content:"\\E174"}.glyphicon-floppy-save:before{content:"\\E175"}.glyphicon-floppy-open:before{content:"\\E176"}.glyphicon-credit-card:before{content:"\\E177"}.glyphicon-transfer:before{content:"\\E178"}.glyphicon-cutlery:before{content:"\\E179"}.glyphicon-header:before{content:"\\E180"}.glyphicon-compressed:before{content:"\\E181"}.glyphicon-earphone:before{content:"\\E182"}.glyphicon-phone-alt:before{content:"\\E183"}.glyphicon-tower:before{content:"\\E184"}.glyphicon-stats:before{content:"\\E185"}.glyphicon-sd-video:before{content:"\\E186"}.glyphicon-hd-video:before{content:"\\E187"}.glyphicon-subtitles:before{content:"\\E188"}.glyphicon-sound-stereo:before{content:"\\E189"}.glyphicon-sound-dolby:before{content:"\\E190"}.glyphicon-sound-5-1:before{content:"\\E191"}.glyphicon-sound-6-1:before{content:"\\E192"}.glyphicon-sound-7-1:before{content:"\\E193"}.glyphicon-copyright-mark:before{content:"\\E194"}.glyphicon-registration-mark:before{content:"\\E195"}.glyphicon-cloud-download:before{content:"\\E197"}.glyphicon-cloud-upload:before{content:"\\E198"}.glyphicon-tree-conifer:before{content:"\\E199"}.glyphicon-tree-deciduous:before{content:"\\E200"}.glyphicon-cd:before{content:"\\E201"}.glyphicon-save-file:before{content:"\\E202"}.glyphicon-open-file:before{content:"\\E203"}.glyphicon-level-up:before{content:"\\E204"}.glyphicon-copy:before{content:"\\E205"}.glyphicon-paste:before{content:"\\E206"}.glyphicon-alert:before{content:"\\E209"}.glyphicon-equalizer:before{content:"\\E210"}.glyphicon-king:before{content:"\\E211"}.glyphicon-queen:before{content:"\\E212"}.glyphicon-pawn:before{content:"\\E213"}.glyphicon-bishop:before{content:"\\E214"}.glyphicon-knight:before{content:"\\E215"}.glyphicon-baby-formula:before{content:"\\E216"}.glyphicon-tent:before{content:"\\26FA"}.glyphicon-blackboard:before{content:"\\E218"}.glyphicon-bed:before{content:"\\E219"}.glyphicon-apple:before{content:"\\F8FF"}.glyphicon-erase:before{content:"\\E221"}.glyphicon-hourglass:before{content:"\\231B"}.glyphicon-lamp:before{content:"\\E223"}.glyphicon-duplicate:before{content:"\\E224"}.glyphicon-piggy-bank:before{content:"\\E225"}.glyphicon-scissors:before{content:"\\E226"}.glyphicon-bitcoin:before,.glyphicon-btc:before,.glyphicon-xbt:before{content:"\\E227"}.glyphicon-jpy:before,.glyphicon-yen:before{content:"\\A5"}.glyphicon-rub:before,.glyphicon-ruble:before{content:"\\20BD"}.glyphicon-scale:before{content:"\\E230"}.glyphicon-ice-lolly:before{content:"\\E231"}.glyphicon-ice-lolly-tasted:before{content:"\\E232"}.glyphicon-education:before{content:"\\E233"}.glyphicon-option-horizontal:before{content:"\\E234"}.glyphicon-option-vertical:before{content:"\\E235"}.glyphicon-menu-hamburger:before{content:"\\E236"}.glyphicon-modal-window:before{content:"\\E237"}.glyphicon-oil:before{content:"\\E238"}.glyphicon-grain:before{content:"\\E239"}.glyphicon-sunglasses:before{content:"\\E240"}.glyphicon-text-size:before{content:"\\E241"}.glyphicon-text-color:before{content:"\\E242"}.glyphicon-text-background:before{content:"\\E243"}.glyphicon-object-align-top:before{content:"\\E244"}.glyphicon-object-align-bottom:before{content:"\\E245"}.glyphicon-object-align-horizontal:before{content:"\\E246"}.glyphicon-object-align-left:before{content:"\\E247"}.glyphicon-object-align-vertical:before{content:"\\E248"}.glyphicon-object-align-right:before{content:"\\E249"}.glyphicon-triangle-right:before{content:"\\E250"}.glyphicon-triangle-left:before{content:"\\E251"}.glyphicon-triangle-bottom:before{content:"\\E252"}.glyphicon-triangle-top:before{content:"\\E253"}.glyphicon-console:before{content:"\\E254"}.glyphicon-superscript:before{content:"\\E255"}.glyphicon-subscript:before{content:"\\E256"}.glyphicon-menu-left:before{content:"\\E257"}.glyphicon-menu-right:before{content:"\\E258"}.glyphicon-menu-down:before{content:"\\E259"}.glyphicon-menu-up:before{content:"\\E260"}*,:after,:before{box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail>img,.thumbnail a>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-inline,.list-unstyled{padding-left:0;list-style:none}.list-inline{margin-left:-5px}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:\'\\2014   \\A0\'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:\'\'}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:\'\\A0   \\2014\'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,Courier New,monospace}code{color:#c7254e;background-color:#f9f2f4;border-radius:4px}code,kbd{padding:2px 4px;font-size:90%}kbd{color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777}caption,th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered,.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;margin:0}fieldset,legend{padding:0;border:0}legend{display:block;width:100%;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=checkbox]:focus,input[type=file]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{padding-top:7px}.form-control,output{display:block;font-size:14px;line-height:1.42857143;color:#555}.form-control{width:100%;height:34px;padding:6px 12px;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control:focus{border-color:#66afe9;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=datetime-local].form-control,input[type=month].form-control,input[type=time].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],.input-group-sm input[type=time],input[type=date].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm,input[type=time].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],.input-group-lg input[type=time],input[type=date].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg,input[type=time].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox-inline input[type=checkbox],.checkbox input[type=checkbox],.radio-inline input[type=radio],.radio input[type=radio]{position:absolute;margin-top:4px\\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}.checkbox-inline.disabled,.checkbox.disabled label,.radio-inline.disabled,.radio.disabled label,fieldset[disabled] .checkbox-inline,fieldset[disabled] .checkbox label,fieldset[disabled] .radio-inline,fieldset[disabled] .radio label,fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success.checkbox-inline label,.has-success.checkbox label,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.radio-inline label,.has-success.radio label{color:#3c763d}.has-success .form-control{border-color:#3c763d;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning.checkbox-inline label,.has-warning.checkbox label,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.radio-inline label,.has-warning.radio label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error.checkbox-inline label,.has-error.checkbox label,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.radio-inline label,.has-error.radio label{color:#a94442}.has-error .form-control{border-color:#a94442;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.btn-default:hover,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary.active,.btn-primary:active,.btn-primary:hover,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success.active,.btn-success:active,.btn-success:hover,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info.active,.btn-info:active,.btn-info:hover,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.btn-warning:hover,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger.active,.btn-danger:active,.btn-danger:hover,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio],[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group .form-control:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group .form-control:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{font-size:0;white-space:nowrap}.input-group-btn,.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li,.nav>li>a{position:relative;display:block}.nav>li>a{padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container-fluid .navbar-brand,.navbar>.container .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin:8px -15px;border-top:1px solid transparent;border-bottom:1px solid transparent;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.1),0 1px 0 hsla(0,0%,100%,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-nav>li>a,.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>li>a,.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\\A0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;background-color:#eee}.jumbotron,.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container-fluid .jumbotron,.container .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container-fluid .jumbotron,.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail>img,.thumbnail a>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{0%{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle,.panel-title{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.list-group+.panel-footer,.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table-responsive>.table caption,.panel>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:transparent;border:0}.modal,.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translateY(-25%);transform:translateY(-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0);transform:translate(0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px}.tooltip.top-left .tooltip-arrow,.tooltip.top-right .tooltip-arrow{bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{left:5px}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel,.carousel-inner{position:relative}.carousel-inner{width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:left .6s ease-in-out;transition:left .6s ease-in-out}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media (-webkit-transform-3d),all and (transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translateZ(0);transform:translateZ(0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:transparent;filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5),rgba(0,0,0,.0001));background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(90deg,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#80000000\',endColorstr=\'#00000000\',GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001),rgba(0,0,0,.5));background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(90deg,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#00000000\',endColorstr=\'#80000000\',GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:\'\\2039\'}.carousel-control .icon-next:before{content:\'\\203A\'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\\9;background-color:transparent;border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}}',""]);
},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&T.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",i(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",i(t,e),e}function l(t,e){var n,r,o;if(e.singleton){var i=I++;n=f||(f=a(e)),r=c.bind(null,n,i,!1),o=c.bind(null,n,i,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),r=g.bind(null,n),o=function(){A(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),r=u.bind(null,n),o=function(){A(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function c(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=E(e,o);else{var i=document.createTextNode(o),A=t.childNodes;A[e]&&t.removeChild(A[e]),A.length?t.insertBefore(i,A[e]):t.appendChild(i)}}function u(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function g(t,e){var n=e.css,r=e.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=t.href;t.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},M=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},h=M(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),p=M(function(){return document.head||document.getElementsByTagName("head")[0]}),f=null,I=0,T=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=h()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=o(t);return r(n,e),function(t){for(var i=[],A=0;A1){for(var p=Array(h),f=0;f1){for(var T=Array(I),E=0;E>"),m={array:A("array"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:a(),arrayOf:s,element:l(),instanceOf:c,node:M(),objectOf:g,oneOf:u,oneOfType:d,shape:h};o.prototype=Error.prototype,t.exports=m},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e){"use strict";t.exports="15.4.1"},function(t,e,n){"use strict";function r(t){return i.isValidElement(t)?void 0:o("143"),t}var o=n(19),i=n(21);n(20);t.exports=r},function(t,e,n){"use strict";t.exports=n(42)},function(t,e,n){"use strict";var r=n(43),o=n(48),i=n(174),A=n(71),a=n(68),s=n(179),l=n(180),c=n(181),u=n(182);n(56);o.inject();var g={findDOMNode:l,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:s,unstable_batchedUpdates:a.batchedUpdates,unstable_renderSubtreeIntoContainer:u};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(t){return t._renderedComponent&&(t=c(t)),t?r.getNodeFromInstance(t):null}},Mount:i,Reconciler:A});t.exports=g},function(t,e,n){"use strict";function r(t){for(var e;e=t._renderedComponent;)t=e;return t}function o(t,e){var n=r(t);n._hostNode=e,e[h]=n}function i(t){var e=t._hostNode;e&&(delete e[h],t._hostNode=null)}function A(t,e){if(!(t._flags&M.hasCachedChildNodes)){var n=t._renderedChildren,i=e.firstChild;t:for(var A in n)if(n.hasOwnProperty(A)){var a=n[A],s=r(a)._domID;if(0!==s){for(;null!==i;i=i.nextSibling)if(1===i.nodeType&&i.getAttribute(d)===String(s)||8===i.nodeType&&i.nodeValue===" react-text: "+s+" "||8===i.nodeType&&i.nodeValue===" react-empty: "+s+" "){o(a,i);continue t}c("32",s)}}t._flags|=M.hasCachedChildNodes}}function a(t){if(t[h])return t[h];for(var e=[];!t[h];){if(e.push(t),!t.parentNode)return null;t=t.parentNode}for(var n,r;t&&(r=t[h]);t=e.pop())n=r,e.length&&A(r,t);return n}function s(t){var e=a(t);return null!=e&&e._hostNode===t?e:null}function l(t){if(void 0===t._hostNode?c("33"):void 0,t._hostNode)return t._hostNode;for(var e=[];!t._hostNode;)e.push(t),t._hostParent?void 0:c("34"),t=t._hostParent;for(;e.length;t=e.pop())A(t,t._hostNode);return t._hostNode}var c=n(44),u=n(45),g=n(47),d=(n(46),u.ID_ATTRIBUTE_NAME),M=g,h="__reactInternalInstance$"+Math.random().toString(36).slice(2),p={getClosestInstanceFromNode:a,getInstanceFromNode:s,getNodeFromInstance:l,precacheChildNodes:A,precacheNode:o,uncacheNode:i};t.exports=p},function(t,e){"use strict";function n(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r8&&N<=11),y=32,x=String.fromCharCode(y),D={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},m=!1,b=null,B={eventTypes:D,extractEvents:function(t,e,n,r){return[l(t,e,n,r),g(t,e,n,r)]}};t.exports=B},function(t,e,n){"use strict";function r(t,e,n){var r=e.dispatchConfig.phasedRegistrationNames[n];return f(t,r)}function o(t,e,n){var o=r(t,n,e);o&&(n._dispatchListeners=h(n._dispatchListeners,o),n._dispatchInstances=h(n._dispatchInstances,t))}function i(t){t&&t.dispatchConfig.phasedRegistrationNames&&M.traverseTwoPhase(t._targetInst,o,t)}function A(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst,n=e?M.getParentInstance(e):null;M.traverseTwoPhase(n,o,t)}}function a(t,e,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=f(t,r);o&&(n._dispatchListeners=h(n._dispatchListeners,o),n._dispatchInstances=h(n._dispatchInstances,t))}}function s(t){t&&t.dispatchConfig.registrationName&&a(t._targetInst,null,t)}function l(t){p(t,i)}function c(t){p(t,A)}function u(t,e,n,r){M.traverseEnterLeave(n,r,a,t,e)}function g(t){p(t,s)}var d=n(52),M=n(54),h=n(58),p=n(59),f=(n(56),d.getListener),I={accumulateTwoPhaseDispatches:l,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:g,accumulateEnterLeaveDispatches:u};t.exports=I},function(t,e,n){"use strict";function r(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}function o(t,e,n){switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(e));default:return!1}}var i=n(44),A=n(53),a=n(54),s=n(55),l=n(58),c=n(59),u=(n(46),{}),g=null,d=function(t,e){t&&(a.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t))},M=function(t){return d(t,!0)},h=function(t){return d(t,!1)},p=function(t){return"."+t._rootNodeID},f={injection:{injectEventPluginOrder:A.injectEventPluginOrder,injectEventPluginsByName:A.injectEventPluginsByName},putListener:function(t,e,n){"function"!=typeof n?i("94",e,typeof n):void 0;var r=p(t),o=u[e]||(u[e]={});o[r]=n;var a=A.registrationNameModules[e];a&&a.didPutListener&&a.didPutListener(t,e,n)},getListener:function(t,e){var n=u[e];if(o(e,t._currentElement.type,t._currentElement.props))return null;var r=p(t);return n&&n[r]},deleteListener:function(t,e){var n=A.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e);var r=u[e];if(r){var o=p(t);delete r[o]}},deleteAllListeners:function(t){var e=p(t);for(var n in u)if(u.hasOwnProperty(n)&&u[n][e]){var r=A.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(t,n),delete u[n][e]}},extractEvents:function(t,e,n,r){for(var o,i=A.plugins,a=0;a-1?void 0:A("96",t),!l.plugins[n]){e.extractEvents?void 0:A("97",t),l.plugins[n]=e;var r=e.eventTypes;for(var i in r)o(r[i],e,i)?void 0:A("98",i,t)}}}function o(t,e,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?A("99",n):void 0,l.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];i(a,e,n)}return!0}return!!t.registrationName&&(i(t.registrationName,e,n),!0)}function i(t,e,n){l.registrationNameModules[t]?A("100",t):void 0,l.registrationNameModules[t]=e,l.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var A=n(44),a=(n(46),null),s={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){a?A("101"):void 0,a=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];s.hasOwnProperty(n)&&s[n]===o||(s[n]?A("102",n):void 0,s[n]=o,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return l.registrationNameModules[e.registrationName]||null;if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=l.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){a=null;for(var t in s)s.hasOwnProperty(t)&&delete s[t];l.plugins.length=0;var e=l.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=l.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=l},function(t,e,n){"use strict";function r(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function o(t){return"topMouseMove"===t||"topTouchMove"===t}function i(t){return"topMouseDown"===t||"topTouchStart"===t}function A(t,e,n,r){var o=t.type||"unknown-event";t.currentTarget=f.getNodeFromInstance(r),e?h.invokeGuardedCallbackWithCatch(o,n,t):h.invokeGuardedCallback(o,n,t),t.currentTarget=null}function a(t,e){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var o=0;o1?1-e:void 0;return this._fallbackText=o.slice(t,a),this._fallbackText}}),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r=n(44),o=(n(46),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),i=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},A=function(t,e,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},a=function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)},s=function(t,e,n,r,o){var i=this;if(i.instancePool.length){var A=i.instancePool.pop();return i.call(A,t,e,n,r,o),A}return new i(t,e,n,r,o)},l=function(t){var e=this;t instanceof e?void 0:r("25"),t.destructor(),e.instancePool.length8));var j=!1;E.canUseDOM&&(j=x("input")&&(!document.documentMode||document.documentMode>11));var S={get:function(){return v.get.call(this)},set:function(t){L=""+t,v.set.call(this,t)}},U={eventTypes:m,extractEvents:function(t,e,n,o){var i,A,a=e?N.getNodeFromInstance(e):window;if(r(a)?Q?i=s:A=l:D(a)?j?i=d:(i=h,A=M):p(a)&&(i=f),i){var c=i(t,e);if(c){var u=C.getPooled(m.change,c,n,o);return u.type="change",T.accumulateTwoPhaseDispatches(u),u}}A&&A(t,a,e)}};t.exports=U},function(t,e,n){"use strict";function r(){m.ReactReconcileTransaction&&N?void 0:c("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=g.getPooled(),this.reconcileTransaction=m.ReactReconcileTransaction.getPooled(!0)}function i(t,e,n,o,i,A){return r(),N.batchedUpdates(t,e,n,o,i,A)}function A(t,e){return t._mountOrder-e._mountOrder}function a(t){var e=t.dirtyComponentsLength;e!==f.length?c("124",e,f.length):void 0,f.sort(A),I++;for(var n=0;n]/,s=n(91),l=s(function(t,e){if(t.namespaceURI!==i.svg||"innerHTML"in t)t.innerHTML=e;else{r=r||document.createElement("div"),r.innerHTML=""+e+"";for(var n=r.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(o.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),A.test(e)||"<"===e[0]&&a.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e}),c=null}t.exports=l},function(t,e){"use strict";var n=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,o){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,o)})}:t};t.exports=n},function(t,e,n){"use strict";var r=n(60),o=n(93),i=n(90),A=function(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e};r.canUseDOM&&("textContent"in document.documentElement||(A=function(t,e){return 3===t.nodeType?void(t.nodeValue=e):void i(t,o(e))})),t.exports=A},function(t,e){"use strict";function n(t){var e=""+t,n=o.exec(e);if(!n)return e;var r,i="",A=0,a=0;for(A=n.index;A]/;t.exports=r},function(t,e,n){"use strict";var r=n(44),o=n(88),i=n(60),A=n(95),a=n(57),s=(n(46),{dangerouslyReplaceNodeWithMarkup:function(t,e){if(i.canUseDOM?void 0:r("56"),e?void 0:r("57"),"HTML"===t.nodeName?r("58"):void 0,"string"==typeof e){var n=A(e,a)[0];t.parentNode.replaceChild(n,t)}else o.replaceChildWithTree(t,e)}});t.exports=s},function(t,e,n){"use strict";function r(t){var e=t.match(c);return e&&e[1].toLowerCase()}function o(t,e){var n=l;l?void 0:s(!1);var o=r(t),i=o&&a(o);if(i){n.innerHTML=i[1]+t+i[2];for(var c=i[0];c--;)n=n.lastChild}else n.innerHTML=t;var u=n.getElementsByTagName("script");u.length&&(e?void 0:s(!1),A(u).forEach(e));for(var g=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return g}var i=n(60),A=n(96),a=n(97),s=n(46),l=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;t.exports=o},function(t,e,n){"use strict";function r(t){var e=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?A(!1):void 0,"number"!=typeof e?A(!1):void 0,0===e||e-1 in t?void 0:A(!1),"function"==typeof t.callee?A(!1):void 0,t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),r=0;r":A.innerHTML="<"+t+">",a[t]=!A.firstChild),a[t]?g[t]:null}var o=n(60),i=n(46),A=o.canUseDOM?document.createElement("div"):null,a={},s=[1,'"],l=[1,"","
"],c=[3,"","
"],u=[1,'',""],g={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:s,option:s,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},d=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];d.forEach(function(t){g[t]=u,a[t]=!0}),t.exports=r},function(t,e,n){"use strict";var r=n(87),o=n(43),i={dangerouslyProcessChildrenUpdates:function(t,e){var n=o.getNodeFromInstance(t);r.processUpdates(n,e)}};t.exports=i},function(t,e,n){"use strict";function r(t){if(t){var e=t._currentElement._owner||null;if(e){var n=e.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(t,e){e&&(J[t._tag]&&(null!=e.children||null!=e.dangerouslySetInnerHTML?h("137",t._tag,t._currentElement._owner?" Check the render method of "+t._currentElement._owner.getName()+".":""):void 0),null!=e.dangerouslySetInnerHTML&&(null!=e.children?h("60"):void 0,"object"==typeof e.dangerouslySetInnerHTML&&H in e.dangerouslySetInnerHTML?void 0:h("61")),null!=e.style&&"object"!=typeof e.style?h("62",r(t)):void 0)}function i(t,e,n,r){if(!(r instanceof j)){var o=t._hostContainerInfo,i=o._node&&o._node.nodeType===G,a=i?o._node:o._ownerDocument;Y(e,a),r.getReactMountReady().enqueue(A,{inst:t,registrationName:e,listener:n})}}function A(){var t=this;C.putListener(t.inst,t.registrationName,t.listener)}function a(){var t=this;b.postMountWrapper(t)}function s(){var t=this;v.postMountWrapper(t)}function l(){var t=this;B.postMountWrapper(t)}function c(){var t=this;t._rootNodeID?void 0:h("63");var e=z(t);switch(e?void 0:h("64"),t._tag){case"iframe":case"object":t._wrapperState.listeners=[x.trapBubbledEvent("topLoad","load",e)];break;case"video":case"audio":t._wrapperState.listeners=[];for(var n in P)P.hasOwnProperty(n)&&t._wrapperState.listeners.push(x.trapBubbledEvent(n,P[n],e));break;case"source":t._wrapperState.listeners=[x.trapBubbledEvent("topError","error",e)];break;case"img":t._wrapperState.listeners=[x.trapBubbledEvent("topError","error",e),x.trapBubbledEvent("topLoad","load",e)];break;case"form":t._wrapperState.listeners=[x.trapBubbledEvent("topReset","reset",e),x.trapBubbledEvent("topSubmit","submit",e)];break;case"input":case"select":case"textarea":t._wrapperState.listeners=[x.trapBubbledEvent("topInvalid","invalid",e)]}}function u(){L.postUpdateWrapper(this)}function g(t){_.call(K,t)||(Z.test(t)?void 0:h("65",t),K[t]=!0)}function d(t,e){return t.indexOf("-")>=0||null!=e.is}function M(t){var e=t.type;g(e),this._currentElement=t,this._tag=e.toLowerCase(),this._namespaceURI=null, this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var h=n(44),p=n(16),f=n(100),I=n(102),T=n(88),E=n(89),N=n(45),w=n(110),C=n(52),y=n(53),x=n(112),D=n(47),m=n(43),b=n(115),B=n(118),L=n(119),v=n(120),Q=(n(74),n(121)),j=n(141),S=(n(57),n(93)),U=(n(46),n(77),n(130),n(144),n(56),D),k=C.deleteListener,z=m.getNodeFromInstance,Y=x.listenTo,R=y.registrationNameModules,F={string:!0,number:!0},O="style",H="__html",V={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},G=11,P={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},X={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},W={listing:!0,pre:!0,textarea:!0},J=p({menuitem:!0},X),Z=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,K={},_={}.hasOwnProperty,q=1;M.displayName="ReactDOMComponent",M.Mixin={mountComponent:function(t,e,n,r){this._rootNodeID=q++,this._domID=n._idCounter++,this._hostParent=e,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(c,this);break;case"input":b.mountWrapper(this,i,e),i=b.getHostProps(this,i),t.getReactMountReady().enqueue(c,this);break;case"option":B.mountWrapper(this,i,e),i=B.getHostProps(this,i);break;case"select":L.mountWrapper(this,i,e),i=L.getHostProps(this,i),t.getReactMountReady().enqueue(c,this);break;case"textarea":v.mountWrapper(this,i,e),i=v.getHostProps(this,i),t.getReactMountReady().enqueue(c,this)}o(this,i);var A,u;null!=e?(A=e._namespaceURI,u=e._tag):n._tag&&(A=n._namespaceURI,u=n._tag),(null==A||A===E.svg&&"foreignobject"===u)&&(A=E.html),A===E.html&&("svg"===this._tag?A=E.svg:"math"===this._tag&&(A=E.mathml)),this._namespaceURI=A;var g;if(t.useCreateElement){var d,M=n._ownerDocument;if(A===E.html)if("script"===this._tag){var h=M.createElement("div"),p=this._currentElement.type;h.innerHTML="<"+p+">",d=h.removeChild(h.firstChild)}else d=i.is?M.createElement(this._currentElement.type,i.is):M.createElement(this._currentElement.type);else d=M.createElementNS(A,this._currentElement.type);m.precacheNode(this,d),this._flags|=U.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(d),this._updateDOMProperties(null,i,t);var I=T(d);this._createInitialChildren(t,i,r,I),g=I}else{var N=this._createOpenTagMarkupAndPutListeners(t,i),C=this._createContentMarkup(t,i,r);g=!C&&X[this._tag]?N+"/>":N+">"+C+""}switch(this._tag){case"input":t.getReactMountReady().enqueue(a,this),i.autoFocus&&t.getReactMountReady().enqueue(f.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(s,this),i.autoFocus&&t.getReactMountReady().enqueue(f.focusDOMComponent,this);break;case"select":i.autoFocus&&t.getReactMountReady().enqueue(f.focusDOMComponent,this);break;case"button":i.autoFocus&&t.getReactMountReady().enqueue(f.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(l,this)}return g},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(null!=o)if(R.hasOwnProperty(r))o&&i(this,r,o,t);else{r===O&&(o&&(o=this._previousStyleCopy=p({},e.style)),o=I.createMarkupForStyles(o,this));var A=null;null!=this._tag&&d(this._tag,e)?V.hasOwnProperty(r)||(A=w.createMarkupForCustomAttribute(r,o)):A=w.createMarkupForProperty(r,o),A&&(n+=" "+A)}}return t.renderToStaticMarkup?n:(this._hostParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(t,e,n){var r="",o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=F[typeof e.children]?e.children:null,A=null!=i?null:e.children;if(null!=i)r=S(i);else if(null!=A){var a=this.mountChildren(A,t,n);r=a.join("")}}return W[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&T.queueHTML(r,o.__html);else{var i=F[typeof e.children]?e.children:null,A=null!=i?null:e.children;if(null!=i)T.queueText(r,i);else if(null!=A)for(var a=this.mountChildren(A,t,n),s=0;s1)for(var n=1;n0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(t,e){var n=a.get(t);if(!n){return null}return n}var A=n(44),a=(n(22),n(123)),s=(n(74),n(68)),l=(n(46),n(56),{isMounted:function(t){var e=a.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e,n){l.validateCallback(e,n);var o=i(t);return o?(o._pendingCallbacks?o._pendingCallbacks.push(e):o._pendingCallbacks=[e],void r(o)):null},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],r(t)},enqueueForceUpdate:function(t){var e=i(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,r(e))},enqueueReplaceState:function(t,e){var n=i(t,"replaceState");n&&(n._pendingStateQueue=[e],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(t,e){var n=i(t,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(e),r(n)}},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,r(t)},validateCallback:function(t,e){t&&"function"!=typeof t?A("122",e,o(t)):void 0}});t.exports=l},function(t,e,n){"use strict";var r=(n(16),n(57)),o=(n(56),r);t.exports=o},function(t,e,n){"use strict";var r=n(16),o=n(88),i=n(43),A=function(t){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};r(A.prototype,{mountComponent:function(t,e,n,r){var A=n._idCounter++;this._domID=A,this._hostParent=e,this._hostContainerInfo=n;var a=" react-empty: "+this._domID+" ";if(t.useCreateElement){var s=n._ownerDocument,l=s.createComment(a);return i.precacheNode(this,l),o(l)}return t.renderToStaticMarkup?"":""},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),t.exports=A},function(t,e,n){"use strict";function r(t,e){"_hostNode"in t?void 0:s("33"),"_hostNode"in e?void 0:s("33");for(var n=0,r=t;r;r=r._hostParent)n++;for(var o=0,i=e;i;i=i._hostParent)o++;for(;n-o>0;)t=t._hostParent,n--;for(;o-n>0;)e=e._hostParent,o--;for(var A=n;A--;){if(t===e)return t;t=t._hostParent,e=e._hostParent}return null}function o(t,e){"_hostNode"in t?void 0:s("35"),"_hostNode"in e?void 0:s("35");for(;e;){if(e===t)return!0;e=e._hostParent}return!1}function i(t){return"_hostNode"in t?void 0:s("36"),t._hostParent}function A(t,e,n){for(var r=[];t;)r.push(t),t=t._hostParent;var o;for(o=r.length;o-- >0;)e(r[o],"captured",n);for(o=0;o0;)n(s[l],"captured",i)}var s=n(44);n(46);t.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:A,traverseEnterLeave:a}},function(t,e,n){"use strict";var r=n(44),o=n(16),i=n(87),A=n(88),a=n(43),s=n(93),l=(n(46),n(144),function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(l.prototype,{mountComponent:function(t,e,n,r){var o=n._idCounter++,i=" react-text: "+o+" ",l=" /react-text ";if(this._domID=o,this._hostParent=e,t.useCreateElement){var c=n._ownerDocument,u=c.createComment(i),g=c.createComment(l),d=A(c.createDocumentFragment());return A.queueChild(d,A(u)),this._stringText&&A.queueChild(d,A(c.createTextNode(this._stringText))),A.queueChild(d,A(g)),a.precacheNode(this,u),this._closingComment=g,d}var M=s(this._stringText);return t.renderToStaticMarkup?M:""+M+""},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var e=a.getNodeFromInstance(this),n=e.nextSibling;;){if(null==n?r("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,a.uncacheNode(this)}}),t.exports=l},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(16),i=n(68),A=n(75),a=n(57),s={initialize:a,close:function(){g.isBatchingUpdates=!1}},l={initialize:a,close:i.flushBatchedUpdates.bind(i)},c=[l,s];o(r.prototype,A,{getTransactionWrappers:function(){return c}});var u=new r,g={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,o,i){var A=g.isBatchingUpdates;return g.isBatchingUpdates=!0,A?t(e,n,r,o,i):u.perform(t,null,e,n,r,o,i)}};t.exports=g},function(t,e,n){"use strict";function r(t){for(;t._hostParent;)t=t._hostParent;var e=u.getNodeFromInstance(t),n=e.parentNode;return u.getClosestInstanceFromNode(n)}function o(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function i(t){var e=d(t.nativeEvent),n=u.getClosestInstanceFromNode(e),o=n;do t.ancestors.push(o),o=o&&r(o);while(o);for(var i=0;ie.end?(n=e.end,r=e.start):(n=e.start,r=e.end),o.moveToElementText(t),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function a(t,e){if(window.getSelection){var n=window.getSelection(),r=t[c()].length,o=Math.min(e.start,r),i=void 0===e.end?o:Math.min(e.end,r);if(!n.extend&&o>i){var A=i;i=o,o=A}var a=l(t,o),s=l(t,i);if(a&&s){var u=document.createRange();u.setStart(a.node,a.offset),n.removeAllRanges(),o>i?(n.addRange(u),n.extend(s.node,s.offset)):(u.setEnd(s.node,s.offset),n.addRange(u))}}}var s=n(60),l=n(156),c=n(63),u=s.canUseDOM&&"selection"in document&&!("getSelection"in window),g={getOffsets:u?o:i,setOffsets:u?A:a};t.exports=g},function(t,e){"use strict";function n(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function r(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function o(t,e){for(var o=n(t),i=0,A=0;o;){if(3===o.nodeType){if(A=i+o.textContent.length,i<=e&&A>=e)return{node:o,offset:e-i};i=A}o=n(r(o))}}t.exports=o},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!o(t)&&(o(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var o=n(158);t.exports=r},function(t,e,n){"use strict";function r(t){return o(t)&&3==t.nodeType}var o=n(159);t.exports=r},function(t,e){"use strict";function n(t){return!(!t||!("function"==typeof Node?t instanceof Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(t){return document.body}}t.exports=n},function(t,e){"use strict";var n={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},r={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position", underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},o={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(r).forEach(function(t){o.Properties[t]=0,r[t]&&(o.DOMAttributeNames[t]=r[t])}),t.exports=o},function(t,e,n){"use strict";function r(t){if("selectionStart"in t&&s.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(t,e){if(I||null==h||h!==c())return null;var n=r(h);if(!f||!g(f,n)){f=n;var o=l.getPooled(M.select,p,t,e);return o.type="select",o.target=h,i.accumulateTwoPhaseDispatches(o),o}return null}var i=n(51),A=n(60),a=n(43),s=n(154),l=n(65),c=n(160),u=n(78),g=n(130),d=A.canUseDOM&&"documentMode"in document&&document.documentMode<=11,M={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},h=null,p=null,f=null,I=!1,T=!1,E={eventTypes:M,extractEvents:function(t,e,n,r){if(!T)return null;var i=e?a.getNodeFromInstance(e):window;switch(t){case"topFocus":(u(i)||"true"===i.contentEditable)&&(h=i,p=e,f=null);break;case"topBlur":h=null,p=null,f=null;break;case"topMouseDown":I=!0;break;case"topContextMenu":case"topMouseUp":return I=!1,o(n,r);case"topSelectionChange":if(d)break;case"topKeyDown":case"topKeyUp":return o(n,r)}return null},didPutListener:function(t,e,n){"onSelect"===e&&(T=!0)}};t.exports=E},function(t,e,n){"use strict";function r(t){return"."+t._rootNodeID}function o(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}var i=n(44),A=n(150),a=n(51),s=n(43),l=n(164),c=n(165),u=n(65),g=n(166),d=n(167),M=n(81),h=n(170),p=n(171),f=n(172),I=n(82),T=n(173),E=n(57),N=n(168),w=(n(46),{}),C={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(t){var e=t[0].toUpperCase()+t.slice(1),n="on"+e,r="top"+e,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};w[t]=o,C[r]=o});var y={},x={eventTypes:w,extractEvents:function(t,e,n,r){var o=C[t];if(!o)return null;var A;switch(t){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":A=u;break;case"topKeyPress":if(0===N(n))return null;case"topKeyDown":case"topKeyUp":A=d;break;case"topBlur":case"topFocus":A=g;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":A=M;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":A=h;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":A=p;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":A=l;break;case"topTransitionEnd":A=f;break;case"topScroll":A=I;break;case"topWheel":A=T;break;case"topCopy":case"topCut":case"topPaste":A=c}A?void 0:i("86",t);var s=A.getPooled(o,e,n,r);return a.accumulateTwoPhaseDispatches(s),s},didPutListener:function(t,e,n){if("onClick"===e&&!o(t._tag)){var i=r(t),a=s.getNodeFromInstance(t);y[i]||(y[i]=A.listen(a,"click",E))}},willDeleteListener:function(t,e){if("onClick"===e&&!o(t._tag)){var n=r(t);y[n].remove(),delete y[n]}}};t.exports=x},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(65),i={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(65),i={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(82),i={relatedTarget:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(82),i=n(168),A=n(169),a=n(84),s={key:A,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:a,charCode:function(t){return"keypress"===t.type?i(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?i(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};o.augmentClass(r,s),t.exports=r},function(t,e){"use strict";function n(t){var e,n=t.keyCode;return"charCode"in t?(e=t.charCode,0===e&&13===n&&(e=13)):e=n,e>=32||13===e?e:0}t.exports=n},function(t,e,n){"use strict";function r(t){if(t.key){var e=i[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var n=o(t);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===t.type||"keyup"===t.type?A[t.keyCode]||"Unidentified":""}var o=n(168),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},A={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(81),i={dataTransfer:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(82),i=n(84),A={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,A),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(65),i={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){return o.call(this,t,e,n,r)}var o=n(81),i={deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e){for(var n=Math.min(t.length,e.length),r=0;r.":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var A,a=p.createElement(Y,{child:e});if(t){var s=w.get(t);A=s._processChildContext(s._context)}else A=m;var c=g(n);if(c){var u=c._currentElement,M=u.props.child;if(L(M,e)){var h=c._renderedComponent.getPublicInstance(),f=r&&function(){r.call(h)};return R._updateRootComponent(c,a,A,n,f),h}R.unmountComponentAtNode(n)}var I=o(n),T=I&&!!i(I),E=l(n),N=T&&!c&&!E,C=R._renderNewRootComponent(a,n,N,A)._renderedComponent.getPublicInstance();return r&&r.call(C),C},render:function(t,e,n){return R._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){c(t)?void 0:d("40");var e=g(t);if(!e){l(t),1===t.nodeType&&t.hasAttribute(Q);return!1}return delete k[e._instance.rootID],D.batchedUpdates(s,e,t,!1),!0},_mountImageIntoNode:function(t,e,n,i,A){if(c(e)?void 0:d("41"),i){var a=o(e);if(C.canReuseMarkup(t,a))return void I.precacheNode(n,a);var s=a.getAttribute(C.CHECKSUM_ATTR_NAME);a.removeAttribute(C.CHECKSUM_ATTR_NAME);var l=a.outerHTML;a.setAttribute(C.CHECKSUM_ATTR_NAME,s);var u=t,g=r(u,l),h=" (client) "+u.substring(g-20,g+20)+"\n (server) "+l.substring(g-20,g+20);e.nodeType===S?d("42",h):void 0}if(e.nodeType===S?d("43"):void 0,A.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);M.insertTreeBefore(e,t,null)}else B(e,t),I.precacheNode(n,e.firstChild)}};t.exports=R},function(t,e,n){"use strict";function r(t,e){var n={_topLevelWrapper:t,_idCounter:1,_ownerDocument:e?e.nodeType===o?e:e.ownerDocument:null,_node:e,_tag:e?e.nodeName.toLowerCase():null,_namespaceURI:e?e.namespaceURI:null};return n}var o=(n(144),9);t.exports=r},function(t,e){"use strict";var n={useCreateElement:!0,useFiber:!1};t.exports=n},function(t,e,n){"use strict";var r=n(178),o=/\/?>/,i=/^<\!\-\-/,A={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return i.test(t)?t:t.replace(o," "+A.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(A.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(t);return o===n}};t.exports=A},function(t,e){"use strict";function n(t){for(var e=1,n=0,o=0,i=t.length,A=i&-4;o服务端错误:"+t.responseText+""):bootbox.alert("服务端出错")}})}function i(t,e){if("number"==typeof t&&(t=new Date(t)),"string"==typeof t)return t;var n={"M+":t.getMonth()+1,"d+":t.getDate(),"H+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));for(var r in n)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?n[r]:("00"+n[r]).substr((""+n[r]).length)));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.nextIFrameId=n,e.getParameter=r,e.ajaxSave=o,e.formatDate=i,window.iframe_id_=1},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(){var t="_ui_"+c++;return t}function i(t,e){var n=window._server+"/frame/loadFileVersions";$.ajax({url:n,data:{file:t},type:"POST",success:function(t){a(t),e(t)},error:function(){alert("加载文件["+t+"]的版本信息失败.")}})}function A(t,e){var n=window._server+"/common/loadResourceTreeData";$.ajax({url:n,data:t,type:"POST",success:function(t){a(t),e(t)},error:function(){alert("加载资源失败.")}})}function a(t){switch(t.type){case"root":t._icon=l.default.frameStyle.getRootIcon(),t._style=l.default.frameStyle.getRootIconStyle();break;case"folder":t._icon=l.default.frameStyle.getFolderIcon(),t._style=l.default.frameStyle.getFolderIconStyle();break;case"rule":t._icon=l.default.frameStyle.getRuleIcon(),t._style=l.default.frameStyle.getRuleIconStyle(),t.editorPath="/ruleeditor";break;case"project":t._icon=l.default.frameStyle.getProjectIcon(),t._style=l.default.frameStyle.getProjectIconStyle();break;case"resource":t._icon=l.default.frameStyle.getResourceIcon(),t._style=l.default.frameStyle.getResourceIconStyle();break;case"resourcePackage":t._icon=l.default.frameStyle.getResourcePackageIcon(),t._style=l.default.frameStyle.getResourcePackageIconStyle(),t.editorPath="/packageeditor";break;case"lib":t._icon=l.default.frameStyle.getLibIcon(),t._style=l.default.frameStyle.getLibIconStyle();break;case"action":t._icon=l.default.frameStyle.getActionIcon(),t._style=l.default.frameStyle.getActionIconStyle(),t.editorPath="/actioneditor";break;case"parameter":t._icon=l.default.frameStyle.getParameterIcon(),t._style=l.default.frameStyle.getParameterIconStyle(),t.editorPath="/parametereditor";break;case"constant":t._icon=l.default.frameStyle.getConstantIcon(),t._style=l.default.frameStyle.getConstantIconStyle(),t.editorPath="/constanteditor";break;case"variable":t._icon=l.default.frameStyle.getVariableIcon(),t._style=l.default.frameStyle.getVariableIconStyle(),t.editorPath="/variableeditor";break;case"ruleLib":t._icon=l.default.frameStyle.getRuleLibIcon(),t._style=l.default.frameStyle.getRuleLibIconStyle();break;case"decisionTableLib":t._icon=l.default.frameStyle.getDecisionTableLibIcon(),t._style=l.default.frameStyle.getDecisionTableLibIconStyle();break;case"decisionTreeLib":t._icon=l.default.frameStyle.getDecisionTreeLibIcon(),t._style=l.default.frameStyle.getDecisionTreeLibIconStyle();break;case"flowLib":t._icon=l.default.frameStyle.getFlowLibIcon(),t._style=l.default.frameStyle.getFlowLibIconStyle();break;case"ul":t._icon=l.default.frameStyle.getUlIcon(),t._style=l.default.frameStyle.getUlIconStyle(),t.editorPath="/uleditor";break;case"decisionTable":t._icon=l.default.frameStyle.getDecisionTableIcon(),t._style=l.default.frameStyle.getDecisionTableIconStyle(),t.editorPath="/decisiontableeditor";break;case"scriptDecisionTable":t._icon=l.default.frameStyle.getScriptDecisionTableIcon(),t._style=l.default.frameStyle.getScriptDecisionTableIconStyle(),t.editorPath="/scriptdecisiontableeditor";break;case"decisionTree":t._icon=l.default.frameStyle.getDecisionTreeIcon(),t._style=l.default.frameStyle.getDecisionTreeIconStyle(),t.editorPath="/decisiontreeditor";break;case"flow":t._icon=l.default.frameStyle.getFlowIcon(),t._style=l.default.frameStyle.getFlowIconStyle(),t.editorPath="/floweditor";break;case"scorecard":t._icon=l.default.frameStyle.getScorecardIcon(),t._style=l.default.frameStyle.getScorecardIconStyle(),t.editorPath="/scorecardeditor"}var e=t.children;e&&e.forEach(function(t,e){a(t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueID=o,e.loadFileVersions=i,e.loadResourceTreeData=A;var s=n(228),l=r(s),c=1},function(t,e){"use strict";function n(t,e){return window._frameStyles?window._frameStyles[t]:e}Object.defineProperty(e,"__esModule",{value:!0});var r={};r.frameStyle={getRootIcon:function(){return n("rootIcon","rf rf-root")},getRootIconStyle:function(){return n("rootIconStyle",{color:"rgb(102, 102, 102)"})},getProjectIcon:function(){return n("projectIcon","rf rf-project")},getProjectIconStyle:function(){return n("projectIconStyle",{color:"rgb(188, 15, 105)"})},getResourceIcon:function(){return n("resourceIcon","rf rf-library")},getResourceIconStyle:function(){return n("resourceIconStyle",{color:"rgb(88, 45, 170)"})},getResourcePackageIcon:function(){return n("resourcePackageIcon","rf rf-package")},getResourcePackageIconStyle:function(){return n("resourcePackageIconStyle",{color:"rgb(180, 133, 19)"})},getLibIcon:function(){return n("libIcon","rf rf-database")},getLibIconStyle:function(){return n("libIconStyle",{color:"rgb(24, 121, 27)"})},getActionIcon:function(){return n("actionIcon","rf rf-action")},getActionIconStyle:function(){return n("actionIconStyle",{color:"rgb(24, 121, 27)"})},getVariableIcon:function(){return n("variableIcon","rf rf-variable")},getVariableIconStyle:function(){return n("variableIconStyle",{color:"rgb(24, 121, 27)"})},getConstantIcon:function(){return n("constantIcon","rf rf-constant")},getConstantIconStyle:function(){return n("constantIconStyle",{color:"rgb(24, 121, 27)"})},getParameterIcon:function(){return n("parameterIcon","rf rf-parameter")},getParameterIconStyle:function(){return n("parameterIconStyle",{color:"rgb(24, 121, 27)"})},getRuleIcon:function(){return n("ruleIcon","rf rf-rule")},getRuleIconStyle:function(){return n("ruleIconStyle",{color:"rgb(31, 90, 163)"})},getUlIcon:function(){return n("ulIcon","rf rf-script")},getUlIconStyle:function(){return n("ulIconStyle",{color:"rgb(31, 90, 163)"})},getRuleLibIcon:function(){return n("ruleLibIcon","rf rf-rule")},getRuleLibIconStyle:function(){return n("ruleLibIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTableIcon:function(){return n("decisionTableIcon","rf rf-table")},getDecisionTableIconStyle:function(){return n("decisionTableIconStyle",{color:"rgb(31, 90, 163)"})},getScriptDecisionTableIcon:function(){return n("scriptDecisionTableIcon","rf rf-scripttable")},getScriptDecisionTableIconStyle:function(){return n("scriptDecisionTableIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTableLibIcon:function(){return n("decisionTableLibIcon","rf rf-table")},getDecisionTableLibIconStyle:function(){return n("decisionTableLibIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTreeIcon:function(){return n("decisionTreeIcon","rf rf-tree")},getDecisionTreeIconStyle:function(){return n("decisionTreeIconStyle",{color:"rgb(31, 90, 163)"})},getDecisionTreeLibIcon:function(){return n("decisionTreeLibIcon","rf rf-tree")},getDecisionTreeLibIconStyle:function(){return n("decisionTreeLibIconStyle",{color:"rgb(31, 90, 163)"})},getScorecardIcon:function(){return n("scorecardIcon","rf rf-scorecard")},getScorecardIconStyle:function(){return n("scorecardIconStyle",{color:"rgb(31, 90, 163)"})},getScorecardLibIcon:function(){return n("scorecardLibIcon","rf rf-scorecard")},getScorecardLibIconStyle:function(){return n("scorecardLibIconStyle",{color:"rgb(31, 90, 163)"})},getFlowIcon:function(){return n("flowIcon","rf rf-flow")},getFlowIconStyle:function(){return n("flowIconStyle",{color:"rgb(31, 90, 163)"})},getFlowLibIcon:function(){return n("flowLibIcon","rf rf-flow")},getFlowLibIconStyle:function(){return n("flowLibIconStyle",{color:"rgb(31, 90, 163)"})},getFolderIcon:function(){return n("flowIcon","rf rf-folder")},getFolderIconStyle:function(){return n("flowIconStyle",{color:"rgb(224, 126, 1)"})}},e.default=r},,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function A(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n-1&&(c=!0),!1}}),c?l.show():l.hide()}}}}},{key:"render",value:function(){var t=this,e=this.props,n=e.headers,r=e.operationConfig,o=e.dispatch,i=e.selectFirst,A=(e.uniqueKey,this.props.rows||[]),a=[],s=[];n.forEach(function(e,n){e.editable?a.push(l.default.createElement("td",{key:(0,p.uniqueID)(),style:{width:e.width}},l.default.createElement("label",null,e.label),l.default.createElement(h.default,{onchange:t.props.onchange,onblur:function(e){t.setState({display:"none"}),t.props.onblur(e)},header:e,display:t.state.display}))):a.push(l.default.createElement("td",{key:(0,p.uniqueID)(),style:{width:e.width}},l.default.createElement("label",null,e.label)))}),r&&a.push(l.default.createElement("td",{key:(0,p.uniqueID)(),style:{width:r.width}},l.default.createElement("label",null,"操作列")));var c=l.default.createElement("tr",{key:"filterrow",style:{background:"#eee"}},n.map(function(e,n){return e.filterable?l.default.createElement("td",{key:(0,p.uniqueID)()},l.default.createElement("input",{type:"text",onKeyPress:t.onFilter.bind(t,n),name:e.id,className:"form-control",style:{height:"26px"},placeholder:"请输入过滤条件,回车查询..."})):l.default.createElement("td",{key:(0,p.uniqueID)()}," ")}),r?l.default.createElement("td",null):null);s.push(c),A.forEach(function(e,A){e.id||(e.id=(0,p.uniqueID)());var a=e.id;0===A&&i?s.push(l.default.createElement(d.default,{key:a,select:!0,ready:t.props.ready,headers:n,dispatch:o,rowClick:t.props.rowClick,operations:r?r.operations:null,rowData:e,rowIndex:A})):s.push(l.default.createElement(d.default,{key:a,ready:t.props.ready,headers:n,dispatch:o,rowClick:t.props.rowClick,operations:r?r.operations:null,rowData:e,rowIndex:A}))});var u={margin:0,width:this.props.width?this.props.width:"100%"};return l.default.createElement("table",{className:"table table-bordered",style:u},l.default.createElement("thead",null,l.default.createElement("tr",{className:"well"},a)),l.default.createElement("tbody",null,s))}}]),e}(s.Component);f.propTypes={headers:l.default.PropTypes.array.isRequired,operationConfig:s.PropTypes.object},e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function A(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n');break;case"date":this.cellEditor=$('');break;case"boolean":this.cellEditor=$('');break;case"list":this.cellEditor=$(''),this.cellEditor.dblclick(function(){var r=e[t];r&&""!==r||(r="{}");var o=JSON.parse(r)||{},i=o.rows||[],A=o.type,a=function(r){var o={type:A,rows:r},i=JSON.stringify(o);e[t]=i;var a=n.find("div");a.html(i)};if(A){var s=null,l=!0,c=!1,u=void 0;try{for(var g,d=simulatorCategoryData[Symbol.iterator]();!(l=(g=d.next()).done);l=!0){var M=g.value;if(A===M.clazz){s=M;break}}}catch(t){c=!0,u=t}finally{try{!l&&d.return&&d.return()}finally{if(c)throw u}}var p=s.variables||[];h.eventEmitter.emit(h.SHOW_CHILD_LIST_DIALOG,{variables:p,rows:i,callback:a})}else!function(){var t=window.simulatorCategoryData||[],e=$(''),n=!0,r=!1,o=void 0;try{for(var s,l=t[Symbol.iterator]();!(n=(s=l.next()).done);n=!0){var c=s.value;e.append('")}}catch(t){r=!0,o=t}finally{try{!n&&l.return&&l.return()}finally{if(r)throw o}}e.append(''),f.MsgBox.dialog("选择子对象类型",e,function(){if(A=e.val(),!A||""===A)return void f.MsgBox.alert("请先选择子对象类型!");var n=null,r=!0,o=!1,s=void 0; try{for(var l,c=t[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value;if(A===u.clazz){n=u;break}}}catch(t){o=!0,s=t}finally{try{!r&&c.return&&c.return()}finally{if(o)throw s}}var g=n.variables||[];h.eventEmitter.emit(h.SHOW_CHILD_LIST_DIALOG,{variables:g,rows:i,callback:a})})}()});break;default:this.cellEditor=$('')}n.append(this.cellEditor),this.cellEditor.blur(function(){e[t]=$(this).val();var r=n.find("div");r.html(e[t]),r.show(),$(this).hide()})}this.cellEditor.val(e[t]),this.cellEditor.show(),this.cellEditor.focus()}},{key:"render",value:function(){var t=this,e=this.props,n=e.rowData,r=e.header,o=r.dateFormat,i=n[r.name];if(o){var A=new Date(i);i=(0,p.formatDate)(A,o)}i&&"object"===("undefined"==typeof i?"undefined":s(i))&&(i=JSON.stringify(i));var a={marginTop:"5px",minHeight:"26px",wordBreak:"break-all"};return u.default.createElement("td",{style:{padding:"1px 5px"}},u.default.createElement("div",{style:a,onClick:function(e){if(r.editable){var o=e.target;$(o).css({display:"none"}),n._editorType?t._showEditor(r.name):h.eventEmitter.emit(h.SHOW_CELL_EDITOR,{targetDiv:o,rowData:n,colId:r.id})}}},i))}}]),e}(c.Component);e.default=I},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.eventEmitter=e.HIDE_CHILD_LIST_DIALOG=e.SHOW_CHILD_LIST_DIALOG=e.HIDE_CELL_EDITOR=e.SHOW_CELL_EDITOR=void 0;var o=n(240),i=r(o);e.SHOW_CELL_EDITOR="show_cell_editor",e.HIDE_CELL_EDITOR="hide_cell_editor",e.SHOW_CHILD_LIST_DIALOG="show_child_list_dialog",e.HIDE_CHILD_LIST_DIALOG="hide_child_list_dialog",e.eventEmitter=new i.default.EventEmitter},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function o(t){return"number"==typeof t}function i(t){return"object"==typeof t&&null!==t}function A(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,o,a,s,l;if(this._events||(this._events={}),"error"===t&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}if(n=this._events[t],A(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(i(n))for(a=Array.prototype.slice.call(arguments,1),l=n.slice(),o=l.length,s=0;s0&&this._events[t].length>o&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),o||(o=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var o=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,o,A,a;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],A=n.length,o=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(i(n)){for(a=A;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){o=a;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){var r=n(242).default,o=n(243).default,i=n(251),A=n(252).default,a=n(302);t.exports={Tool:r,Node:o,MsgBox:i,Event:a,FlowDesigner:A}},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n"}}},{key:"getConnectionPropertiesProducer",value:function(){return function(){return"
"}}},{key:"_newNodeInstance",value:function(t,e,n){var r=this.newNode();return r?(r._tool=this,r._initConfigs(this.getConfigs()),n||(n=this._buildNodeName()),r._createFigure(this.context,{x:t,y:e},n),r):null}},{key:"_buildNodeName",value:function(){var t=this.getType()+this.count++,e=!1,n=!0,r=!1,o=void 0;try{for(var i,A=this.context.allFigures[Symbol.iterator]();!(n=(i=A.next()).done);n=!0){var a=i.value;if(a instanceof Node&&a.name===t){e=!0;break}}}catch(t){r=!0,o=t}finally{try{!n&&A.return&&A.return()}finally{if(r)throw o}}return e?this._buildNodeName():t}}]),t}();e.default=o},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);es-c&&as-c&&a>l-c?this.attr("cursor","se-resize"):Al-c?this.attr("cursor","sw-resize"):this.attr("cursor","move")}}},r=function(n){if(!this.dragging){var r=t.currentTool;if(r){if(r instanceof d.default||r instanceof u.default||(t.currentTool=t.selectTool,r=t.currentTool,t.flowDesigner.nodeToolbar.children("label").removeClass("active")),r instanceof u.default)if(0===t.selectionFigures.length)t.selectFigure(e);else{var o=!1,i=!0,A=!1,a=void 0;try{for(var s,c=t.selectionFigures[Symbol.iterator]();!(i=(s=c.next()).done);i=!0){var g=s.value;if(g===e){o=!0;break}}}catch(t){A=!0,a=t}finally{try{!i&&c.return&&c.return()}finally{if(A)throw a}}o||(t.resetSelection(),t.selectFigure(e))}if(r instanceof d.default){var M=n.offsetX,p=n.offsetY,f=t.currentConnection;if(f){if(0===e.in)return void h.alert("当前节点不允许有进入的连线.");if(e.in!==-1&&e.toConnections.length>=e.in)return void h.alert("当前节点进入的连线最多只能有"+e.in+"条.");f.endX=M,f.endY=p,f.from!==e?!function(){f.endPath(e),t.currentConnection=null;var n=f.from.uuid,r=e.uuid,o=f.uuid;t.addRedoUndo({redo:function(){var e=t.getNodeByUUID(n),i=t.getNodeByUUID(r);f=new l.default(e,{endX:e.rect.attr("x"),endY:e.rect.attr("y")}),f.uuid=o,f.endPath(i)},undo:function(){e.context.removeFigureByUUID(o)}})}():h.alert("连线的起始节点不能为同一节点.")}else{if(0===e.out)return void h.alert("当前节点不允许有出去的连线.");if(e.out!==-1&&e.fromConnections.length>=e.out)return void h.alert("当前节点出去的连线最多只能有"+e.out+"条.");f=new l.default(e,{endX:M,endY:p}),t.currentConnection=f}}}}};this.rect.mouseover(n),this.rect.mousedown(r),this.icon.mouseover(n),this.icon.mousedown(r);var o=function(){var n=e.rect,r=t.currentTool;if(r&&r instanceof u.default){var o=!1,i=t.selectionFigures,A=!0,a=!1,s=void 0;try{for(var c,g=i[Symbol.iterator]();!(A=(c=g.next()).done);A=!0){var d=c.value;if(d===e){o=!0;break}}}catch(t){a=!0,s=t}finally{try{!A&&g.return&&g.return()}finally{if(a)throw s}}if(!o)return void t.resetSelection();i.forEach(function(t,e){t instanceof l.default||t._recordRectPosition()}),n.ow=n.attr("width"),n.oh=n.attr("height"),n.dragging=!0}},i=function(n,r){var o=t.currentTool;if(o&&o instanceof u.default){e.context.snapto&&(n-=n%10,r-=r%10);var i=t.selectionFigures,A=e.rect,a=(e.icon,A.ox+n),s=A.oy+r;if(!(a<1||s<1)){e.context.resizePaper(a+150,s+150);var c=void 0,g=void 0;switch(this.attr("cursor")){case"nw-resize":c=A.ow-n,g=A.oh-r,c>20&&g>20&&A.attr({x:a,y:s,width:c,height:g});break;case"ne-resize":c=A.ow+n,g=A.oh-r,c>20&&g>20&&A.attr({y:s,width:c,height:g});break;case"se-resize":c=A.ow+n,g=A.oh+r,c>20&&g>20&&A.attr({width:c,height:g});break;case"sw-resize":c=A.ow-n,g=A.oh+r,c>20&&g>20&&A.attr({x:a,width:c,height:g});break;default:i.forEach(function(t,e){t instanceof l.default||t._moveRect(n,r)})}i.forEach(function(t,e){t instanceof l.default||(t._moveAndResizeTextAndIcon(),t._resetConnections())})}}},A=function(){e.rect.dragging=!1;var n=[],r=new Map,o=new Map,i=e.rect.ow,A=e.rect.oh,a=e.rect.attr("width"),s=e.rect.attr("height"),c=e.uuid,u=!0,g=!1,d=void 0;try{for(var M,h=t.selectionFigures[Symbol.iterator]();!(u=(M=h.next()).done);u=!0){var p=M.value;if(!(p instanceof l.default)){n.push(p.uuid);var f=p.rect.ox,I=p.rect.oy;f=f?f:0,I=I?I:0;var T=p.rect.attr("x"),E=p.rect.attr("y");r.set(p.uuid,{x:T,y:E}),o.set(p.uuid,{x:f,y:I})}}}catch(t){g=!0,d=t}finally{try{!u&&h.return&&h.return()}finally{if(g)throw d}}e.context.addRedoUndo({redo:function(){var e=!0,o=!1,i=void 0;try{for(var A,l=n[Symbol.iterator]();!(e=(A=l.next()).done);e=!0){var u=A.value,g=t.getNodeByUUID(u),d=r.get(u);g.rect.attr({x:d.x,y:d.y}),u===c&&g.rect.attr({width:a,height:s})}}catch(t){o=!0,i=t}finally{try{!e&&l.return&&l.return()}finally{if(o)throw i}}var M=!0,h=!1,p=void 0;try{for(var f,I=n[Symbol.iterator]();!(M=(f=I.next()).done);M=!0){var T=f.value,E=t.getNodeByUUID(T);E._moveAndResizeTextAndIcon(),E._resetConnections()}}catch(t){h=!0,p=t}finally{try{!M&&I.return&&I.return()}finally{if(h)throw p}}},undo:function(){var e=!0,r=!1,a=void 0;try{for(var s,l=n[Symbol.iterator]();!(e=(s=l.next()).done);e=!0){var u=s.value,g=t.getNodeByUUID(u),d=o.get(u);g.rect.attr({x:d.x,y:d.y}),u===c&&g.rect.attr({width:i,height:A})}}catch(t){r=!0,a=t}finally{try{!e&&l.return&&l.return()}finally{if(r)throw a}}var M=!0,h=!1,p=void 0;try{for(var f,I=n[Symbol.iterator]();!(M=(f=I.next()).done);M=!0){var T=f.value,E=t.getNodeByUUID(T);E._moveAndResizeTextAndIcon(),E._resetConnections()}}catch(t){h=!0,p=t}finally{try{!M&&I.return&&I.return()}finally{if(h)throw p}}}})};this.rect.drag(i,o,A),this.icon.drag(i,o,A)}},{key:"remove",value:function(){var t=this,e=[].concat(i(this.toConnections)),n=[].concat(i(this.fromConnections));e.forEach(function(e,n){t.context.removeFigureByUUID(e.uuid)}),n.forEach(function(e,n){t.context.removeFigureByUUID(e.uuid)}),this.text.remove(),this.icon.remove(),this.rect.remove()}},{key:"_recordRectPosition",value:function(){this.rect.ox=this.rect.attr("x"),this.rect.oy=this.rect.attr("y")}},{key:"_moveRect",value:function(t,e){var n=void 0,r=void 0;this.rect.ox&&0!==this.rect.ox?(n=this.rect.ox+t,r=this.rect.oy+e):(n=this.rect.attr("x")+t,r=this.rect.attr("x")+e),this.rect.attr({x:n,y:r})}},{key:"_moveAndResizeTextAndIcon",value:function(){var t=this.rect.attr("width"),e=this.rect.attr("height");this.text.attr({x:this.rect.attr("x")+t/2,y:this.rect.attr("y")+e-16}),this.icon.attr({x:this.rect.attr("x"),y:this.rect.attr("y"),width:t,height:e-30})}},{key:"_resetConnections",value:function(){var t=[].concat(i(this.fromConnections),i(this.toConnections));t.forEach(function(t,e){t.updatePath()})}},{key:"getPathInfo",value:function(t){var e=this.rect.attr("x"),n=this.rect.attr("y"),r=this.rect.attr("width"),o=this.rect.attr("height");return t&&(e-=5,n-=5,r+=10,o+=10),"M "+e+" "+n+" L "+(e+r)+" "+n+" L "+(e+r)+" "+(n+o)+" L "+e+" "+(n+o)+" L "+e+" "+n}}]),t}();e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},A=function(){function t(t,e){for(var n=0;n0){({x:t[1][1],y:t[1][2]});return{x:u[0].x,y:u[0].y}}return null}},{key:"_buildToFigureIntersetion",value:function(t,e){if(e){var n=this.to.rect,r=n.attr("x"),o=n.attr("y"),i=n.attr("width"),A=n.attr("height");r+=i/2,o+=A/2-10;var a=t.x,l=t.y;t=[],t.push(["M",a,l]),t.push(["L",r,o])}var c=this.to.getPathInfo(!0),u=s.default.pathIntersection(c,t);if(u.length>0){({x:t[0][1],y:t[0][2]});return{x:u[0].x,y:u[0].y}}return null}},{key:"_buildCurveLinePathInfo",value:function(){var t=this.from.rect,e=t.attr("x"),n=t.attr("y"),r=t.attr("width"),o=t.attr("height");e+=r/2,n+=o/2-10;var i=this.endX,A=this.endY,a=0,l=0,c=null;if(this.to){var u=this.to.rect;i=u.attr("x"),A=u.attr("y"),a=u.attr("width"),l=u.attr("height"),i+=a/2,A+=l/2-10}var g=this.from.getPathInfo(!0),d=Math.abs(e+r/2-(i-a/2)),M=Math.abs(n+o/2-(A-l/2)),h="M"+e+" "+n;if(d>=M){var p=h+" L"+i+" "+n,f=s.default.pathIntersection(g,p);if(f.length>0&&(e=f[0].x,n=f[0].y,h="M"+f[0].x+" "+f[0].y),this.to){var I="M"+e+" "+A+" L"+i+" "+A,T=this.to.getPathInfo(!0);f=s.default.pathIntersection(T,I),f.length>0&&(i=f[0].x,A=f[0].y,e0&&(e=C[0].x,n=C[0].y,h="M"+C[0].x+" "+C[0].y),this.to){var y="M"+i+" "+n+" L"+i+" "+A,x=this.to.getPathInfo(!0);C=s.default.pathIntersection(x,y),C.length>0&&(i=C[0].x,A=C[0].y,n=1e3&&delete a[s.shift()],s.push(A),a[A]=t[b](e,i),n?n(a[A]):a[A])}return o}function i(){return this.hex}function A(t,e){for(var n=[],r=0,o=t.length;o-2*!e>r;r+=2){var i=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?o-4==r?i[3]={x:+t[0],y:+t[1]}:o-2==r&&(i[2]={x:+t[0],y:+t[1]},i[3]={x:+t[2],y:+t[3]}):i[0]={x:+t[o-2],y:+t[o-1]}:o-4==r?i[3]=i[2]:r||(i[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n}function a(t,e,n,r,o){var i=-3*e+9*n-9*r+3*o,A=t*i+6*e-12*n+6*r;return t*A-3*e+3*n}function s(t,e,n,r,o,i,A,s,l){null==l&&(l=1),l=l>1?1:l<0?0:l;for(var c=l/2,u=12,g=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],M=0,h=0;hM;)g/=2,d+=(cR(o,A)||R(e,r)R(i,a))){var s=(t*r-e*n)*(o-A)-(t-n)*(o*a-i*A),l=(t*r-e*n)*(i-a)-(e-r)*(o*a-i*A),c=(t-n)*(i-a)-(e-r)*(o-A);if(c){var u=s/c,g=l/c,d=+u.toFixed(2),M=+g.toFixed(2);if(!(d<+F(t,n).toFixed(2)||d>+R(t,n).toFixed(2)||d<+F(o,A).toFixed(2)||d>+R(o,A).toFixed(2)||M<+F(e,r).toFixed(2)||M>+R(e,r).toFixed(2)||M<+F(i,a).toFixed(2)||M>+R(i,a).toFixed(2)))return{x:u,y:g}}}}function u(t,n,r){var o=e.bezierBBox(t),i=e.bezierBBox(n);if(!e.isBBoxIntersect(o,i))return r?0:[];for(var A=s.apply(0,t),a=s.apply(0,n),l=R(~~(A/5),1),u=R(~~(a/5),1),g=[],d=[],M={},h=r?0:[],p=0;p=0&&D<=1.001&&m>=0&&m<=1.001&&(r?h++:h.push({x:x.x,y:x.y,t1:F(D,1),t2:F(m,1)}))}}return h}function g(t,n,r){t=e._path2curve(t),n=e._path2curve(n);for(var o,i,A,a,s,l,c,g,d,M,h=r?0:[],p=0,f=t.length;pr)return r;for(;ni?n=o:r=o,o=(r-n)/2+n}return o}var l=3*e,c=3*(r-e)-l,u=1-l-c,g=3*n,d=3*(o-n)-g,M=1-g-d;return a(t,1/(200*i))}function p(t,e){var n=[],r={};if(this.ms=e,this.times=1,t){for(var o in t)t[y](o)&&(r[q(o)]=t[o],n.push(q(o)));n.sort(ct)}this.anim=r,this.top=n[n.length-1],this.percents=n}function f(n,r,o,i,A,a){o=q(o);var s,l,c,u,g,M,p=n.ms,f={},I={},T={};if(i)for(w=0,C=ie.length;wi*n.top){o=n.percents[w],g=n.percents[w-1]||0,p=p/n.top*(o-g),u=n.percents[w+1],s=n.anim[o];break}i&&r.attr(n.anim[n.percents[w]])}if(s){if(l)l.initstatus=i,l.start=new Date-l.ms*i;else{for(var x in s)if(s[y](x)&&(nt[y](x)||r.paper.customAttributes[y](x)))switch(f[x]=r.attr(x),null==f[x]&&(f[x]=et[x]),I[x]=s[x],nt[x]){case G:T[x]=(I[x]-f[x])/p;break;case"colour":f[x]=e.getRGB(f[x]);var D=e.getRGB(I[x]);T[x]={r:(D.r-f[x].r)/p,g:(D.g-f[x].g)/p,b:(D.b-f[x].b)/p};break;case"path":var m=St(f[x],I[x]),b=m[1];for(f[x]=m[0],T[x]=[],w=0,C=f[x].length;w',pt=ft.firstChild,pt.style.behavior="url(#default#VML)",!pt||"object"!=typeof pt.adj)return e.type=v;ft=null}e.svg=!(e.vml="VML"==e.type),e._Paper=m,e.fn=E=m.prototype=e.prototype,e._id=0,e.is=function(t,e){return e=z.call(e),"finite"==e?!Z[y](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||W.call(t).slice(8,-1).toLowerCase()==e},e.angle=function(t,n,r,o,i,A){if(null==i){var a=t-r,s=n-o;return a||s?(180+180*Y.atan2(-s,-a)/V+360)%360:0}return e.angle(t,n,i,A)-e.angle(r,o,i,A)},e.rad=function(t){return t%360*V/180},e.deg=function(t){return Math.round(180*t/V%360*1e3)/1e3},e.snapTo=function(t,n,r){if(r=e.is(r,"finite")?r:10,e.is(t,X)){for(var o=t.length;o--;)if(O(t[o]-n)<=r)return t[o]}else{t=+t;var i=n%t;if(it-r)return n-i+t}return n};e.createUUID=function(t,e){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(t,e).toUpperCase()}}(/[xy]/g,function(t){var e=16*Y.random()|0,n="x"==t?e:3&e|8;return n.toString(16)});e.setWindow=function(n){t("raphael.setWindow",e,x.win,n),x.win=n,x.doc=x.win.document,e._engine.initWin&&e._engine.initWin(x.win)};var It=function(t){if(e.vml){var n,r=/^\s+|\s+$/g;try{var i=new ActiveXObject("htmlfile");i.write(""),i.close(),n=i.body}catch(t){n=createPopup().document.body}var A=n.createTextRange();It=o(function(t){try{n.style.color=j(t).replace(r,v);var e=A.queryCommandValue("ForeColor");return e=(255&e)<<16|65280&e|(16711680&e)>>>16,"#"+("000000"+e.toString(16)).slice(-6)}catch(t){return"none"}})}else{var a=x.doc.createElement("i");a.title="Raphaël Colour Picker",a.style.display="none",x.doc.body.appendChild(a),It=o(function(t){return a.style.color=t,x.doc.defaultView.getComputedStyle(a,v).getPropertyValue("color")})}return It(t)},Tt=function(){return"hsb("+[this.h,this.s,this.b]+")"},Et=function(){return"hsl("+[this.h,this.s,this.l]+")"},Nt=function(){return this.hex},wt=function(t,n,r){if(null==n&&e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(r=t.b,n=t.g,t=t.r),null==n&&e.is(t,P)){var o=e.getRGB(t);t=o.r,n=o.g,r=o.b}return(t>1||n>1||r>1)&&(t/=255,n/=255,r/=255),[t,n,r]},Ct=function(t,n,r,o){t*=255,n*=255,r*=255;var i={r:t,g:n,b:r,hex:e.rgb(t,n,r),toString:Nt};return e.is(o,"finite")&&(i.opacity=o),i};e.color=function(t){var n;return e.is(t,"object")&&"h"in t&&"s"in t&&"b"in t?(n=e.hsb2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):e.is(t,"object")&&"h"in t&&"s"in t&&"l"in t?(n=e.hsl2rgb(t),t.r=n.r,t.g=n.g,t.b=n.b,t.hex=n.hex):(e.is(t,"string")&&(t=e.getRGB(t)),e.is(t,"object")&&"r"in t&&"g"in t&&"b"in t?(n=e.rgb2hsl(t),t.h=n.h,t.s=n.s,t.l=n.l,n=e.rgb2hsb(t),t.v=n.b):(t={hex:"none"},t.r=t.g=t.b=t.h=t.s=t.v=t.l=-1)),t.toString=Nt,t},e.hsb2rgb=function(t,e,n,r){this.is(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,r=t.o,t=t.h),t*=360;var o,i,A,a,s;return t=t%360/60,s=n*e,a=s*(1-O(t%2-1)),o=i=A=n-s,t=~~t,o+=[s,a,0,0,a,s][t],i+=[a,s,s,a,0,0][t],A+=[0,0,a,s,s,a][t],Ct(o,i,A,r)},e.hsl2rgb=function(t,e,n,r){this.is(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(t>1||e>1||n>1)&&(t/=360,e/=100,n/=100),t*=360;var o,i,A,a,s;return t=t%360/60,s=2*e*(n<.5?n:1-n),a=s*(1-O(t%2-1)),o=i=A=n-s/2,t=~~t,o+=[s,a,0,0,a,s][t],i+=[a,s,s,a,0,0][t],A+=[0,0,a,s,s,a][t],Ct(o,i,A,r)},e.rgb2hsb=function(t,e,n){n=wt(t,e,n),t=n[0],e=n[1],n=n[2];var r,o,i,A;return i=R(t,e,n),A=i-F(t,e,n),r=0==A?null:i==t?(e-n)/A:i==e?(n-t)/A+2:(t-e)/A+4,r=(r+360)%6*60/360,o=0==A?0:A/i,{h:r,s:o,b:i,toString:Tt}},e.rgb2hsl=function(t,e,n){n=wt(t,e,n),t=n[0],e=n[1],n=n[2];var r,o,i,A,a,s;return A=R(t,e,n),a=F(t,e,n),s=A-a,r=0==s?null:A==t?(e-n)/s:A==e?(n-t)/s+2:(t-e)/s+4,r=(r+360)%6*60/360,i=(A+a)/2,o=0==s?0:i<.5?s/(2*i):s/(2-2*i),{h:r,s:o,l:i,toString:Et}},e._path2string=function(){return this.join(",").replace(it,"$1")};e._preload=function(t,e){var n=x.doc.createElement("img");n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(this),this.onload=null,x.doc.body.removeChild(this)},n.onerror=function(){x.doc.body.removeChild(this)},x.doc.body.appendChild(n),n.src=t};e.getRGB=o(function(t){if(!t||(t=j(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:i};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:i};!(ot[y](t.toLowerCase().substring(0,2))||"#"==t.charAt())&&(t=It(t));var n,r,o,A,a,s,l=t.match(J);return l?(l[2]&&(o=$(l[2].substring(5),16),r=$(l[2].substring(3,5),16),n=$(l[2].substring(1,3),16)),l[3]&&(o=$((a=l[3].charAt(3))+a,16),r=$((a=l[3].charAt(2))+a,16),n=$((a=l[3].charAt(1))+a,16)),l[4]&&(s=l[4][S](rt),n=q(s[0]),"%"==s[0].slice(-1)&&(n*=2.55),r=q(s[1]),"%"==s[1].slice(-1)&&(r*=2.55),o=q(s[2]),"%"==s[2].slice(-1)&&(o*=2.55),"rgba"==l[1].toLowerCase().slice(0,4)&&(A=q(s[3])),s[3]&&"%"==s[3].slice(-1)&&(A/=100)),l[5]?(s=l[5][S](rt),n=q(s[0]),"%"==s[0].slice(-1)&&(n*=2.55),r=q(s[1]),"%"==s[1].slice(-1)&&(r*=2.55),o=q(s[2]),"%"==s[2].slice(-1)&&(o*=2.55),("deg"==s[0].slice(-3)||"°"==s[0].slice(-1))&&(n/=360),"hsba"==l[1].toLowerCase().slice(0,4)&&(A=q(s[3])),s[3]&&"%"==s[3].slice(-1)&&(A/=100),e.hsb2rgb(n,r,o,A)):l[6]?(s=l[6][S](rt),n=q(s[0]),"%"==s[0].slice(-1)&&(n*=2.55),r=q(s[1]),"%"==s[1].slice(-1)&&(r*=2.55),o=q(s[2]),"%"==s[2].slice(-1)&&(o*=2.55),("deg"==s[0].slice(-3)||"°"==s[0].slice(-1))&&(n/=360),"hsla"==l[1].toLowerCase().slice(0,4)&&(A=q(s[3])),s[3]&&"%"==s[3].slice(-1)&&(A/=100),e.hsl2rgb(n,r,o,A)):(l={r:n,g:r,b:o,toString:i},l.hex="#"+(16777216|o|r<<8|n<<16).toString(16).slice(1),e.is(A,"finite")&&(l.opacity=A),l)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:i}},e),e.hsb=o(function(t,n,r){return e.hsb2rgb(t,n,r).hex}),e.hsl=o(function(t,n,r){return e.hsl2rgb(t,n,r).hex}),e.rgb=o(function(t,e,n){function r(t){return t+.5|0}return"#"+(16777216|r(n)|r(e)<<8|r(t)<<16).toString(16).slice(1)}),e.getColor=function(t){var e=this.getColor.start=this.getColor.start||{h:0,s:1,b:t||.75},n=this.hsb2rgb(e.h,e.s,e.b);return e.h+=.075,e.h>1&&(e.h=0,e.s-=.2,e.s<=0&&(this.getColor.start={h:0,s:1,b:e.b})),n.hex},e.getColor.reset=function(){delete this.start},e.parsePathString=function(t){if(!t)return null;var n=yt(t);if(n.arr)return Dt(n.arr);var r={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},o=[];return e.is(t,X)&&e.is(t[0],X)&&(o=Dt(t)),o.length||j(t).replace(At,function(t,e,n){var i=[],A=e.toLowerCase();if(n.replace(st,function(t,e){e&&i.push(+e)}),"m"==A&&i.length>2&&(o.push([e][B](i.splice(0,2))),A="l",e="m"==e?"l":"L"),"r"==A)o.push([e][B](i));else for(;i.length>=r[A]&&(o.push([e][B](i.splice(0,r[A]))),r[A]););}),o.toString=e._path2string,n.arr=Dt(o),o},e.parseTransformString=o(function(t){if(!t)return null;var n=[];return e.is(t,X)&&e.is(t[0],X)&&(n=Dt(t)),n.length||j(t).replace(at,function(t,e,r){var o=[];z.call(e);r.replace(st,function(t,e){e&&o.push(+e)}),n.push([e][B](o))}),n.toString=e._path2string,n});var yt=function(t){var e=yt.ps=yt.ps||{};return e[t]?e[t].sleep=100:e[t]={sleep:100},setTimeout(function(){for(var n in e)e[y](n)&&n!=t&&(e[n].sleep--,!e[n].sleep&&delete e[n])}),e[t]};e.findDotsAtSegment=function(t,e,n,r,o,i,A,a,s){var l=1-s,c=H(l,3),u=H(l,2),g=s*s,d=g*s,M=c*t+3*u*s*n+3*l*s*s*o+d*A,h=c*e+3*u*s*r+3*l*s*s*i+d*a,p=t+2*s*(n-t)+g*(o-2*n+t),f=e+2*s*(r-e)+g*(i-2*r+e),I=n+2*s*(o-n)+g*(A-2*o+n),T=r+2*s*(i-r)+g*(a-2*i+r),E=l*t+s*n,N=l*e+s*r,w=l*o+s*A,C=l*i+s*a,y=90-180*Y.atan2(p-I,f-T)/V;return(p>I||f=t.x&&e<=t.x2&&n>=t.y&&n<=t.y2},e.isBBoxIntersect=function(t,n){var r=e.isPointInsideBBox;return r(n,t.x,t.y)||r(n,t.x2,t.y)||r(n,t.x,t.y2)||r(n,t.x2,t.y2)||r(t,n.x,n.y)||r(t,n.x2,n.y)||r(t,n.x,n.y2)||r(t,n.x2,n.y2)||(t.xn.x||n.xt.x)&&(t.yn.y||n.yt.y)},e.pathIntersection=function(t,e){return g(t,e)},e.pathIntersectionNumber=function(t,e){return g(t,e,1)},e.isPointInsidePath=function(t,n,r){var o=e.pathBBox(t);return e.isPointInsideBBox(o,n,r)&&g(t,[["M",n,r],["H",o.x2+10]],1)%2==1},e._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var xt=e.pathBBox=function(t){var e=yt(t);if(e.bbox)return n(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};t=St(t);for(var r,o=0,i=0,A=[],a=[],s=0,l=t.length;s1&&(I=Y.sqrt(I),n*=I,r*=I);var T=n*n,E=r*r,N=(A==a?-1:1)*Y.sqrt(O((T*E-T*f*f-E*p*p)/(T*f*f+E*p*p))),w=N*n*f/r+(t+s)/2,C=N*-r*p/n+(e+l)/2,y=Y.asin(((e-C)/r).toFixed(9)),x=Y.asin(((l-C)/r).toFixed(9));y=tx&&(y-=2*V),!a&&x>y&&(x-=2*V)}var D=x-y;if(O(D)>g){var m=x,b=s,L=l;x=y+g*(a&&x>y?1:-1),s=w+n*Y.cos(x),l=C+r*Y.sin(x),M=vt(s,l,n,r,i,0,a,b,L,[x,m,w,C])}D=x-y;var v=Y.cos(y),Q=Y.sin(y),j=Y.cos(x),U=Y.sin(x),k=Y.tan(D/4),z=4/3*n*k,R=4/3*r*k,F=[t,e],H=[t+z*Q,e-R*v],G=[s+z*U,l-R*j],P=[s,l];if(H[0]=2*F[0]-H[0],H[1]=2*F[1]-H[1],c)return[H,G,P][B](M);M=[H,G,P][B](M).join()[S](",");for(var X=[],W=0,J=M.length;W"1e12"&&(g=.5),O(d)>"1e12"&&(d=.5),g>0&&g<1&&(s=Qt(t,e,n,r,o,i,A,a,g),h.push(s.x),M.push(s.y)),d>0&&d<1&&(s=Qt(t,e,n,r,o,i,A,a,d),h.push(s.x),M.push(s.y)),l=i-2*r+e-(a-2*i+r),c=2*(r-e)-2*(i-r),u=e-r,g=(-c+Y.sqrt(c*c-4*l*u))/2/l,d=(-c-Y.sqrt(c*c-4*l*u))/2/l,O(g)>"1e12"&&(g=.5),O(d)>"1e12"&&(d=.5),g>0&&g<1&&(s=Qt(t,e,n,r,o,i,A,a,g),h.push(s.x),M.push(s.y)),d>0&&d<1&&(s=Qt(t,e,n,r,o,i,A,a,d),h.push(s.x),M.push(s.y)),{min:{x:F[b](0,h),y:F[b](0,M)},max:{x:R[b](0,h),y:R[b](0,M)}}}),St=e._path2curve=o(function(t,e){var n=!e&&yt(t);if(!e&&n.curve)return Dt(n.curve);for(var r=bt(t),o=e&&bt(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},A={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a=(function(t,e,n){var r,o,i={T:1,Q:1};if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in i)&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"][B](vt[b](0,[e.x,e.y][B](t.slice(1))));break;case"S":"C"==n||"S"==n?(r=2*e.x-e.bx,o=2*e.y-e.by):(r=e.x,o=e.y),t=["C",r,o][B](t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"][B](Lt(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"][B](Lt(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"][B](Bt(e.x,e.y,t[1],t[2]));break;case"H":t=["C"][B](Bt(e.x,e.y,t[1],e.y));break;case"V":t=["C"][B](Bt(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"][B](Bt(e.x,e.y,e.X,e.Y))}return t}),s=function(t,e){if(t[e].length>7){t[e].shift();for(var n=t[e];n.length;)c[e]="A",o&&(u[e]="A"),t.splice(e++,0,["C"][B](n.splice(0,6)));t.splice(e,1),h=R(r.length,o&&o.length||0)}},l=function(t,e,n,i,A){t&&e&&"M"==t[A][0]&&"M"!=e[A][0]&&(e.splice(A,0,["M",i.x,i.y]),n.bx=0,n.by=0,n.x=t[A][1],n.y=t[A][2],h=R(r.length,o&&o.length||0))},c=[],u=[],g="",d="",M=0,h=R(r.length,o&&o.length||0);Mo){if(n&&!g.start){if(c=$t(A,a,s[1],s[2],s[3],s[4],s[5],s[6],o-d),u+=["C"+c.start.x,c.start.y,c.m.x,c.m.y,c.x,c.y],i)return u;g.start=u,u=["M"+c.x,c.y+"C"+c.n.x,c.n.y,c.end.x,c.end.y,s[5],s[6]].join(),d+=l,A=+s[5],a=+s[6];continue}if(!t&&!n)return c=$t(A,a,s[1],s[2],s[3],s[4],s[5],s[6],o-d),{x:c.x,y:c.y,alpha:c.alpha}}d+=l,A=+s[5],a=+s[6]}u+=s.shift()+s}return g.end=u,c=t?d:n?g:e.findDotsAtSegment(A,a,s[0],s[1],s[2],s[3],s[4],s[5],1),c.alpha&&(c={x:c.x,y:c.y,alpha:c.alpha}),c}},ee=te(1),ne=te(),re=te(0,1);e.getTotalLength=ee,e.getPointAtLength=ne,e.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return re(t,e).end;var r=re(t,n,1);return e?re(r,e).end:r},Zt.getTotalLength=function(){var t=this.getPath();if(t)return this.node.getTotalLength?this.node.getTotalLength():ee(t)},Zt.getPointAtLength=function(t){var e=this.getPath();if(e)return ne(e,t)},Zt.getPath=function(){var t,n=e._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return n&&(t=n(this)),t},Zt.getSubpath=function(t,n){var r=this.getPath();if(r)return e.getSubpath(r,t,n)};var oe=e.easing_formulas={linear:function(t){return t},"<":function(t){return H(t,1.7)},">":function(t){return H(t,.48)},"<>":function(t){var e=.48-t/1.04,n=Y.sqrt(.1734+e*e),r=n-e,o=H(O(r),1/3)*(r<0?-1:1),i=-n-e,A=H(O(i),1/3)*(i<0?-1:1),a=o+A+.5;return 3*(1-a)*a*a+a*a*a},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){t-=1;var e=1.70158;return t*t*((e+1)*t+e)+1},elastic:function(t){return t==!!t?t:H(2,-10*t)*Y.sin((t-.075)*(2*V)/.3)+1},bounce:function(t){var e,n=7.5625,r=2.75;return t<1/r?e=n*t*t:t<2/r?(t-=1.5/r,e=n*t*t+.75):t<2.5/r?(t-=2.25/r,e=n*t*t+.9375):(t-=2.625/r,e=n*t*t+.984375),e}};oe.easeIn=oe["ease-in"]=oe["<"],oe.easeOut=oe["ease-out"]=oe[">"],oe.easeInOut=oe["ease-in-out"]=oe["<>"],oe["back-in"]=oe.backIn,oe["back-out"]=oe.backOut;var ie=[],Ae=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},ae=function(){for(var n=+new Date,r=0;r1&&!o.next){for(A in g)g[y](A)&&(h[A]=o.totalOrigin[A]);o.el.attr(h),f(o.anim,o.el,o.anim.percents[0],null,o.totalOrigin,o.repeat-1)}o.next&&!o.stop&&f(o.anim,o.el,o.next,null,o.totalOrigin,o.repeat)}}}ie.length&&Ae(ae)},se=function(t){return t>255?255:t<0?0:t};Zt.animateWith=function(t,n,r,o,i,A){var a=this;if(a.removed)return A&&A.call(a),a;var s=r instanceof p?r:e.animation(r,o,i,A);f(s,a,s.percents[0],null,a.attr());for(var l=0,c=ie.length;ls&&(s=c)}s+="%",!t[s].callback&&(t[s].callback=o)}return new p(t,n)},Zt.animate=function(t,n,r,o){var i=this;if(i.removed)return o&&o.call(i),i;var A=t instanceof p?t:e.animation(t,n,r,o);return f(A,i,A.percents[0],null,i.attr()),i},Zt.setTime=function(t,e){return t&&null!=e&&this.status(t,F(e,t.ms)/t.ms),this},Zt.status=function(t,e){var n,r,o=[],i=0;if(null!=e)return f(t,this,-1,F(e,1)),this;for(n=ie.length;i1)for(var r=0,o=n.length;r.5)-1;s(g-.5,2)+s(d-.5,2)>.25&&(d=i.sqrt(.25-s(g-.5,2))*o+.5)&&.5!=d&&(d=d.toFixed(5)-1e-5*o)}return u}),o=o.split(/\s*\-\s*/),"linear"==l){var E=o.shift();if(E=-r(E),isNaN(E))return null;var N=[0,0,i.cos(t.rad(E)),i.sin(t.rad(E))],w=1/(A(a(N[2]),a(N[3]))||1);N[2]*=w,N[3]*=w,N[2]<0&&(N[0]=-N[2],N[2]=0),N[3]<0&&(N[1]=-N[3],N[3]=0)}var C=t._parseDots(o);if(!C)return null;if(c=c.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&c!=e.gradient.id&&(h.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){I=p(l+"Gradient",{id:c}),e.gradient=I,p(I,"radial"==l?{fx:g,fy:d}:{x1:N[0],y1:N[1],x2:N[2],y2:N[3],gradientTransform:e.matrix.invert()}),h.defs.appendChild(I);for(var y=0,x=C.length;y1?j.opacity/100:j.opacity});case"stroke":j=t.getRGB(h),s.setAttribute(M,j.hex),"stroke"==M&&j[e]("opacity")&&p(s,{"stroke-opacity":j.opacity>1?j.opacity/100:j.opacity}),"stroke"==M&&r._.arrows&&("startString"in r._.arrows&&N(r,r._.arrows.startString),"endString"in r._.arrows&&N(r,r._.arrows.endString,1));break;case"gradient":("circle"==r.type||"ellipse"==r.type||"r"!=n(h).charAt())&&f(r,h);break;case"opacity":c.gradient&&!c[e]("stroke-opacity")&&p(s,{"stroke-opacity":h>1?h/100:h});case"fill-opacity":if(c.gradient){S=t._g.doc.getElementById(s.getAttribute("fill").replace(/^url\(#|\)$/g,u)),S&&(U=S.getElementsByTagName("stop"),p(U[U.length-1],{"stop-opacity":h}));break}default:"font-size"==M&&(h=o(h,10)+"px");var k=M.replace(/(\-.)/g,function(t){return t.substring(1).toUpperCase()});s.style[k]=h,r._.dirty=1,s.setAttribute(M,h)}}D(r,i),s.style.visibility=g},x=1.2,D=function(r,i){if("text"==r.type&&(i[e]("text")||i[e]("font")||i[e]("font-size")||i[e]("x")||i[e]("y"))){var A=r.attrs,a=r.node,s=a.firstChild?o(t._g.doc.defaultView.getComputedStyle(a.firstChild,u).getPropertyValue("font-size"),10):10;if(i[e]("text")){for(A.text=i.text;a.firstChild;)a.removeChild(a.firstChild);for(var l,c=n(i.text).split("\n"),g=[],d=0,M=c.length;d"));var Z=X.getBoundingClientRect();I.W=g.w=(Z.right-Z.left)/W,I.H=g.h=(Z.bottom-Z.top)/W,I.X=g.x,I.Y=g.y+I.H/2,("x"in s||"y"in s)&&(I.path.v=t.format("m{0},{1}l{2},{1}",i(g.x*E),i(g.y*E),i(g.x*E)+1));for(var K=["x","y","text","font","font-family","font-weight","font-style","font-size"],_=0,q=K.length;_.25&&(n=o.sqrt(.25-a(e-.5,2))*(2*(n>.5)-1)+.5),l=e+d+n),M}),i=i.split(/\s*\-\s*/),"linear"==s){var c=i.shift();if(c=-r(c),isNaN(c))return null}var u=t._parseDots(i);if(!u)return null;if(e=e.shape||e.node,u.length){e.removeChild(A),A.on=!0,A.method="none",A.color=u[0].color,A.color2=u[u.length-1].color;for(var g=[],h=0,p=u.length;h')}}catch(t){v=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},t._engine.initWin(t._g.win),t._engine.create=function(){var e=t._getContainer.apply(0,arguments),n=e.container,r=e.height,o=e.width,i=e.x,A=e.y;if(!n)throw new Error("VML container not found.");var a=new t._Paper,s=a.canvas=t._g.doc.createElement("div"),l=s.style;return i=i||0,A=A||0,o=o||512,r=r||342,a.width=o,a.height=r,o==+o&&(o+="px"),r==+r&&(r+="px"),a.coordsize=1e3*E+d+1e3*E,a.coordorigin="0 0",a.span=t._g.doc.createElement("span"),a.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",s.appendChild(a.span),l.cssText=t.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",o,r),1==n?(t._g.doc.body.appendChild(s),l.left=i+"px",l.top=A+"px",l.position="absolute"):n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),a.renderfix=function(){},a},t.prototype.clear=function(){t.eve("raphael.clear",this),this.canvas.innerHTML=M,this.span=t._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},t.prototype.remove=function(){t.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?t._removedFactory(e):null;return!0};var Q=t.st;for(var j in L)L[e](j)&&!Q[e](j)&&(Q[j]=function(t){return function(){var e=arguments;return this.forEach(function(n){n[t].apply(n,e)})}}(j))}}.apply(e,r),!(void 0!==o&&(t.exports=o))}])})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n1&&(o=(t+1)/2),r.splice(o,1),2===r.length)r=e.connection._buildStraightLinePathInfo();else{var i=r[1],A=e.connection._buildFromFigureIntersetion({x:i[1],y:i[2]},!0),a=r[0];a[1]=A.x,a[2]=A.y;var s=r[r.length-2],l=e.connection._buildToFigureIntersetion({x:s[1],y:s[2]},!0),c=r[r.length-1];c[1]=l.x,c[2]=l.y}e.path.attr("path",r),e.remove()});var g=function(r,o){e.context.snapto&&(r-=r%10,o-=o%10);var a=this.ox+r,s=this.oy+o;if(!(a<1||s<1)){e.context.resizePaper(a+15,s+15),this.attr("x",a),this.attr("y",s),A=Math.round(t/2);var l=e.path.attr("path"),c=l.length,u=void 0,g=void 0,d=void 0,M=2*(n.length-1)-1;if(0===t||1===t){if(d=l[1],u=e.connection._buildFromFigureIntersetion({x:d[1],y:d[2]},!0),g=n[0],2===n.length){var h=e.connection._buildToFigureIntersetion({x:a,y:s},!0);if(h){var p=n[n.length-1];p[1]=h.x,p[2]=h.y}}}else M!==t&&M!==t+1&&M!==t+2||(d=l[c-2],u=e.connection._buildToFigureIntersetion({x:a,y:s},!0),g=n[n.length-1]);u&&(g[1]=u.x,g[2]=u.y);var f=[];n.forEach(function(t,e){i?e===A?f.push(["L",a,s]):f.push(t):(f.push(t),e===A&&f.push(["L",a,s]))}),e.path.attr("path",f),e.connection._buildText()}},d=function(){this.ox=this.attr("x"),this.oy=this.attr("y"),e.controller.removeOthers(e),this.oldConnectionPathInfo=e.connection.buildPathInfo()},M=function(){var t=e.connection.buildPathInfo(),n=this.oldConnectionPathInfo,r=e.connection.uuid;e.context.addRedoUndo({redo:function(){var n=e.context.getNodeByUUID(r);n.pathInfo=t,n.updatePath(),n._buildText()},undo:function(){var t=e.context.getNodeByUUID(r);t.pathInfo=n,t.updatePath(),t._buildText()}})};this.rect.drag(g,d,M)}},{key:"remove",value:function(){this.rect.remove()}}]),t}();e.default=o},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n'}}]),e}(l.default);e.default=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function A(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n'}}]),e}(l.default);e.default=c},function(t,e){"use strict";function n(t){var e=A("消息提示",t);e.modal("show")}function r(t,e){var n=A("确认提示",t,[{name:"确认",click:function(){e.call(this)}}]);n.modal("show")}function o(t,e,n){var r=A(t,e,[{name:"确认",click:function(){n.call(this)}}]);r.modal("show")}function i(t,e,n,r,o){var i=A(t,e,n,o);if(i.modal("show"),r){var a=!0,s=!1,l=void 0;try{for(var c,u=r[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var g=c.value;i.on(g.name,g.callback)}}catch(t){s=!0,l=t}finally{try{!a&&u.return&&u.return()}finally{if(s)throw l}}}}function A(t,e,n,r){var o=this,i="modal-dialog"+(r?" modal-lg":""),A=$(''),s=$('
');A.append(s);var l=$(''),n.append(this.toolbar),this.toolbarInfo=$(''),this.toolbar.append(this.toolbarInfo),this.nodeToolbar=$('
'),n.append(this.nodeToolbar),this.canvasContainer=$('
'),this.canvasContainer.css("height",$(window).height()-100),n.append(this.canvasContainer),this.context=new c.default(this.canvasContainer),this.canvas=new s.default(this.context),this.context.flowDesigner=this;var r="_prop_container",o=$('
');this.canvasContainer.append(o);var A=$('');o.append(A),A.mousedown(function(t){t.preventDefault()}),this.propContainer=$('
');var a=$('
');a.append('
属性值修改后,请回车以确认
'),a.append(this.propContainer),o.append(a),o.draggable();var l=$("#__prop_panel_tool__");l.click(function(){a.toggle();var t=a.css("display");t&&"none"!==t?(l.removeClass("glyphicon-circle-arrow-left"),l.addClass("glyphicon-circle-arrow-down")):(l.removeClass("glyphicon-circle-arrow-down"),l.addClass("glyphicon-circle-arrow-left"))}),this._bindSnapToEvent(),this._bindShortcutKey()}return A(t,[{key:"setInfo",value:function(t){this.toolbarInfo.html(t)}},{key:"addNode",value:function(t){if(!t.type)return void I.alert("添加节点没有type属性,无法添加.");if(!t.x||!t.y||!t.name)return void I.alert("添加节点需要有x、y及name属性,否则无法添加");if(!this.context.toolsMap.has(t.type))return void I.alert("添加的节点类型"+t.type+"不存在.");var e=this.context.toolsMap.get(t.type),n=t.x,r=t.y,o=t.width,i=t.height,A=t.name;n=parseInt(n),r=parseInt(r),o=parseInt(o),i=parseInt(i);var a=n+o+10,s=r+i+10;this.context.resizePaper(a+50,s+50);var l=e._newNodeInstance(n,r,A);l.initFromJson(t)}},{key:"_bindShortcutKey",value:function(){var t=this,e=!1;$(document).keydown(function(n){17===n.which&&(e=!0),e&&(90===n.which?t.context.undoManager.undo():89===n.which&&t.context.undoManager.redo())}).keyup(function(t){17===t.which&&(e=!1)})}},{key:"_bindSnapToEvent",value:function(){var t=this;g.eventEmitter.on(g.SNAPTO_SELECTED,function(){t.canvasContainer.hasClass("snaptogrid")?(t.canvasContainer.removeClass("snaptogrid"),t.canvasContainer.addClass("nosnaptogrid"),t.context.snapto=!1):(t.canvasContainer.removeClass("nosnaptogrid"),t.canvasContainer.addClass("snaptogrid"),t.context.snapto=!0)})}},{key:"buildDesigner",value:function(){this._buildTools(),this._bindSelectionEvent()}},{key:"getPropertiesProducer",value:function(){return function(){return"
"}}},{key:"_buildTools",value:function(){var t=this,e=this.context,n=this,r=!0,o=!1,i=void 0;try{for(var A,a=function(){var e=A.value,n=$('");n.click(function(){e.click.call(this)}),t.toolbar.append(n)},s=this.buttons[Symbol.iterator]();!(r=(A=s.next()).done);r=!0)a()}catch(t){o=!0,i=t}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}var l=$('');this.toolbar.append(l),l.click(function(t){e.cancelConnection(),e.currentTool=e.selectTool,n.nodeToolbar.children("label").removeClass("active")});var c=$('');this.toolbar.append(c),c.click(function(t){e.cancelConnection(),e.currentTool=e.connectionTool,n.nodeToolbar.children("label").removeClass("active")});var u=$('');this.toolbar.append(u),u.click(function(t){e.cancelConnection(),e.undoManager.undo(),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var d=$('');this.toolbar.append(d),d.click(function(t){e.cancelConnection(),e.undoManager.redo(),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var M=$('');this.toolbar.append(M),M.click(function(t){e.cancelConnection(),g.eventEmitter.emit(g.SNAPTO_SELECTED),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var h=$('');this.toolbar.append(h),h.click(function(t){e.cancelConnection(),g.eventEmitter.emit(g.REMOVE_CLICKED),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var p=$('');this.toolbar.append(p),p.click(function(t){e.cancelConnection(),g.eventEmitter.emit(g.ALIGN_CENTER),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var f=$('');this.toolbar.append(f),f.click(function(t){e.cancelConnection(),g.eventEmitter.emit(g.ALIGN_MIDDLE),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool});var I=$('');this.toolbar.append(I),I.click(function(t){e.cancelConnection(),g.eventEmitter.emit(g.UNIFY_SIZE),n.nodeToolbar.children("label").removeClass("active"),e.currentTool=e.selectTool}),this._buildNodeTools()}},{key:"_buildNodeTools",value:function(){var t=this,e=!0,n=!1,r=void 0;try{for(var o,i=function(){var e=o.value,n=$('\n \n ");t.nodeToolbar.append(n),n.click(function(){g.eventEmitter.emit(g.TRIGGER_TOOL,e.getType())})},A=this.context.toolsMap.values()[Symbol.iterator]();!(e=(o=A.next()).done);e=!0)i()}catch(t){n=!0,r=t}finally{try{!e&&A.return&&A.return()}finally{if(n)throw r}}}},{key:"_bindSelectionEvent",value:function(){var t=this,e=this;g.eventEmitter.on(g.OBJECT_SELECTED,function(n){if(t.propContainer.empty(),n instanceof M.default){var r=n.name||n.text.attr("text"),o=$('
'),i=$('');o.append(i),t.propContainer.append(o),i.change(function(t){var r=$(this).val(),o=n.name,i=n.uuid,A=!1,a=!0,s=!1,l=void 0;try{for(var c,u=e.context.allFigures[Symbol.iterator]();!(a=(c=u.next()).done);a=!0){var g=c.value;if(g instanceof M.default&&g!==n&&g.name===r){A=!0;break}}}catch(t){s=!0,l=t}finally{try{!a&&u.return&&u.return()}finally{if(s)throw l}}return A?void I.alert("节点名已存在!"):(n.name=r,n.text.attr("text",$(this).val()),void e.context.addRedoUndo({redo:function(){var t=e.context.getNodeByUUID(i);t.name=r,t.text.attr("text",r)},undo:function(){var t=e.context.getNodeByUUID(i);t.name=o,t.text.attr("text",o)}}))}),t.propContainer.append(n._tool.getPropertiesProducer().call(n))}else if(n instanceof p.default){var A=$('
'),a=$('');A.append(a),t.propContainer.append(A),a.change(function(t){var r=$(this).val(),o=n.name,i=n.uuid,A=n.from.fromConnections,a=!1,s=!0,l=!1,c=void 0;try{for(var u,g=A[Symbol.iterator]();!(s=(u=g.next()).done);s=!0){var d=u.value;if(d!==n&&d.name===r){a=!0;break}}}catch(t){l=!0,c=t}finally{try{!s&&g.return&&g.return()}finally{if(l)throw c}}return a?void I.alert("连线名已存在"):(n.name=r,n._buildText(),void e.context.addRedoUndo({redo:function(){var t=e.context.getNodeByUUID(i);t.name=r,t._buildText()},undo:function(){var t=e.context.getNodeByUUID(i);t.name=o,t._buildText()}}))});var s=$('
'),l=$('');s.append(l),l.val(n.type),l.change(function(t){var r=$(this).val(),o=n.uuid,i=n.type;n.type=r,n.updatePath(),e.context.resetSelection(),e.context.addRedoUndo({redo:function(){var t=e.context.getNodeByUUID(o);t.type=r,t.updatePath()},undo:function(){var t=e.context.getNodeByUUID(o);t.type=i,t.updatePath()}})}),t.propContainer.append(s),t.propContainer.append(n.from._tool.getConnectionPropertiesProducer().call(n))}}),g.eventEmitter.on(g.CANVAS_SELECTED,function(){t.propContainer.empty(),t.propContainer.append(t.getPropertiesProducer().call(t))}),g.eventEmitter.emit(g.CANVAS_SELECTED)}},{key:"addButton",value:function(t){return t.icon&&t.tip&&t.click?(this.buttons.push(t),!0):(I.alert("添加到设计器工具栏的按钮对象必须要有icon、tip及click三个属性."),!1)}},{key:"addTool",value:function(t){return t.context=this.context,this.context.registerTool(t),this}},{key:"toJSON",value:function(){return this.elementsToJSON()}},{key:"validate",value:function(){var t=[],e=!0,n=!1,r=void 0;try{for(var o,i=this.context.allFigures[Symbol.iterator]();!(e=(o=i.next()).done);e=!0){var A=o.value;if(A instanceof M.default){var a=A.validate();a&&t.push(a)}}}catch(t){n=!0,r=t}finally{try{!e&&i.return&&i.return()}finally{if(n)throw r}}if(t.length>0){var s="";return t.forEach(function(t,e){s+=e+1+"."+t+"
"}),s='错误:
'+s+"
",I.alert(s),!1}return!0}},{key:"elementsToJSON",value:function(){var t=[];return this.context.allFigures.forEach(function(e,n){e instanceof M.default&&t.push(e.toJSON())}),t}}]),t}();e.default=T},function(t,e,n){var r=n(254);"string"==typeof r&&(r=[[t.id,r,""]]);n(9)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,"@font-face{font-family:fd;src:url("+n(255)+");src:url("+n(255)+") format('embedded-opentype'),url("+n(256)+") format('woff'),url("+n(257)+") format('truetype'),url("+n(258)+') format(\'svg\')}.fd{font-family:fd!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale}.fd-delete:before{content:"\\E605"}.fd-undo:before{content:"\\E609"}.fd-snapto:before{content:"\\E603"}.fd-redo:before{content:"\\E60A"}.fd-select:before{content:"\\E601"}.fd-align-center:before{content:"\\E607"}.fd-align-middle:before{content:"\\E608"}.fd-line:before{content:"\\E602"}.fd-samesize:before{content:"\\E606"}',""])},function(t,e){t.exports="data:application/vnd.ms-fontobject;base64,cB0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sDgssC8riiAgPLAEI0KKOCMgLkawAiVGUlggPFkusSQBFCuwBEMusCQrLbA5LLAAFrAEJbAEJiAuRyNHI2GwBkUrIyA8IC4jOLEkARQrLbA6LLEJBCVCsAAWsAQlsAQlIC5HI0cjYSCwBCNCsAZFKyCwYFBYILBAUVizAiADIBuzAiYDGllCQiMgR7AEQ7CAYmAgsAArIIqKYSCwAkNgZCOwA0NhZFBYsAJDYRuwA0NgWbADJbCAYmGwAiVGYTgjIDwjOBshICBGI0ewACsjYTghWbEkARQrLbA7LLAuKy6xJAEUKy2wPCywLyshIyAgPLAEI0IjOLEkARQrsARDLrAkKy2wPSywABUgR7AAI0KyAAEBFRQTLrAqKi2wPiywABUgR7AAI0KyAAEBFRQTLrAqKi2wPyyxAAEUE7ArKi2wQCywLSotsEEssAAWRSMgLiBGiiNhOLEkARQrLbBCLLAJI0KwQSstsEMssgAAOistsEQssgABOistsEUssgEAOistsEYssgEBOistsEcssgAAOystsEgssgABOystsEkssgEAOystsEossgEBOystsEsssgAANystsEwssgABNystsE0ssgEANystsE4ssgEBNystsE8ssgAAOSstsFAssgABOSstsFEssgEAOSstsFIssgEBOSstsFMssgAAPCstsFQssgABPCstsFUssgEAPCstsFYssgEBPCstsFcssgAAOCstsFgssgABOCstsFkssgEAOCstsFossgEBOCstsFsssDArLrEkARQrLbBcLLAwK7A0Ky2wXSywMCuwNSstsF4ssAAWsDArsDYrLbBfLLAxKy6xJAEUKy2wYCywMSuwNCstsGEssDErsDUrLbBiLLAxK7A2Ky2wYyywMisusSQBFCstsGQssDIrsDQrLbBlLLAyK7A1Ky2wZiywMiuwNistsGcssDMrLrEkARQrLbBoLLAzK7A0Ky2waSywMyuwNSstsGossDMrsDYrLbBrLCuwCGWwAyRQeLABFTAtAABLuADIUlixAQGOWbkIAAgAYyCwASNEILADI3CwDkUgIEu4AA5RS7AGU1pYsDQbsChZYGYgilVYsAIlYbABRWMjYrACI0SzCgkFBCuzCgsFBCuzDg8FBCtZsgQoCUVSR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MS41IC0xOTN0MTQwIC0xNDB0MTkyLjUgLTUxLjVxMTEgMCAxOC41IC03LjV0Ny41IC0xOHQtNy41IC0xOHQtMTguNSAtNy41cS04NyAwIC0xNjYuNSAzM3QtMTQxIDk0LjV0LTk0LjUgMTQxdC0zMyAxNjd0MzMgMTY2LjV0OTQgMTQxaDF6IiAvPg0KICA8L2ZvbnQ+DQo8L2RlZnM+PC9zdmc+DQo="},function(t,e,n){var r=n(260);"string"==typeof r&&(r=[[t.id,r,""]]);n(9)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,".fd-toolbar{border:1px solid #ddd;width:100%;background:#fff}.fd-node-toolbar{border-left:1px solid #ddd;border-right:1px solid #ddd;width:100%;background:#fff}.fd-canvas-container{border:1px solid #eee;background-color:#fff}.fd-property-panel{width:400px;border:1px solid #999;border-radius:5px;top:36px;left:600px;position:absolute;background:#fff;box-shadow:5px 5px 5px #888}.snaptogrid{background-image:url("+n(261)+")}.nosnaptogrid{background-image:none}",""])},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAHUlEQVQYV2NkYGAwBuKzQIwXMBJSAJMfVUidcAQAnUQBC6jEGBUAAAAASUVORK5CYII="},function(t,e,n){n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274)},function(t,e){+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}t.fn.emulateTransitionEnd=function(e){var n=!1,r=this;t(this).one("bsTransitionEnd",function(){n=!0});var o=function(){n||t(r).trigger(t.support.transition.end)};return setTimeout(o,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.alert");o||n.data("bs.alert",o=new r(this)),"string"==typeof e&&o[e].call(n)})}var n='[data-dismiss="alert"]',r=function(e){t(e).on("click",n,this.close)};r.VERSION="3.3.7",r.TRANSITION_DURATION=150,r.prototype.close=function(e){function n(){A.detach().trigger("closed.bs.alert").remove()}var o=t(this),i=o.attr("data-target");i||(i=o.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,""));var A=t("#"===i?[]:i);e&&e.preventDefault(),A.length||(A=o.closest(".alert")),A.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(A.removeClass("in"),t.support.transition&&A.hasClass("fade")?A.one("bsTransitionEnd",n).emulateTransitionEnd(r.TRANSITION_DURATION):n())};var o=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=r,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click.bs.alert.data-api",n,r.prototype.close)}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),o=r.data("bs.button"),i="object"==typeof e&&e;o||r.data("bs.button",o=new n(this,i)),"toggle"==e?o.toggle():e&&o.setState(e)})}var n=function(e,r){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,r),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(e){var n="disabled",r=this.$element,o=r.is("input")?"val":"html",i=r.data();e+="Text",null==i.resetText&&r.data("resetText",r[o]()),setTimeout(t.proxy(function(){r[o](null==i[e]?this.options[e]:i[e]),"loadingText"==e?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=t.fn.button;t.fn.button=e,t.fn.button.Constructor=n,t.fn.button.noConflict=function(){return t.fn.button=r,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var r=t(n.target).closest(".btn");e.call(r,"toggle"),t(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),o=r.data("bs.carousel"),i=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e),A="string"==typeof e?e:i.slide;o||r.data("bs.carousel",o=new n(this,i)),"number"==typeof e?o.to(e):A?o[A]():i.interval&&o.pause().cycle()})}var n=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},n.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},n.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e),r="prev"==t&&0===n||"next"==t&&n==this.$items.length-1;if(r&&!this.options.wrap)return e;var o="prev"==t?-1:1,i=(n+o)%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},n.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(e,r){var o=this.$element.find(".item.active"),i=r||this.getItemForDirection(e,o),A=this.interval,a="next"==e?"left":"right",s=this;if(i.hasClass("active"))return this.sliding=!1;var l=i[0],c=t.Event("slide.bs.carousel",{relatedTarget:l,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,A&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=t(this.$indicators.children()[this.getItemIndex(i)]);u&&u.addClass("active")}var g=t.Event("slid.bs.carousel",{relatedTarget:l,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(i.addClass(e),i[0].offsetWidth,o.addClass(a),i.addClass(a),o.one("bsTransitionEnd",function(){i.removeClass([e,a].join(" ")).addClass("active"),o.removeClass(["active",a].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(g)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(o.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(g)),A&&this.cycle(),this}};var r=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=n,t.fn.carousel.noConflict=function(){return t.fn.carousel=r,this};var o=function(n){var r,o=t(this),i=t(o.attr("data-target")||(r=o.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""));if(i.hasClass("carousel")){var A=t.extend({},i.data(),o.data()),a=o.attr("data-slide-to");a&&(A.interval=!1),e.call(i,A),a&&i.data("bs.carousel").to(a),n.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var n=t(this);e.call(n,n.data())})})}(jQuery)},function(t,e){+function(t){"use strict";function e(e){var n,r=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(r)}function n(e){return this.each(function(){var n=t(this),o=n.data("bs.collapse"),i=t.extend({},r.DEFAULTS,n.data(),"object"==typeof e&&e);!o&&i.toggle&&/show|hide/.test(e)&&(i.toggle=!1),o||n.data("bs.collapse",o=new r(this,i)),"string"==typeof e&&o[e]()})}var r=function(e,n){this.$element=t(e),this.options=t.extend({},r.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};r.VERSION="3.3.7",r.TRANSITION_DURATION=350,r.DEFAULTS={toggle:!0},r.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},r.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(e=o.data("bs.collapse"),e&&e.transitioning))){var i=t.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){o&&o.length&&(n.call(o,"hide"),e||o.data("bs.collapse",null));var A=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[A](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[A](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var s=t.camelCase(["scroll",A].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(r.TRANSITION_DURATION)[A](this.$element[0][s])}}}},r.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(r.TRANSITION_DURATION):o.call(this)}}},r.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},r.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(n,r){var o=t(r);this.addAriaAndCollapsedClass(e(o),o)},this)).end()},r.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=r,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(r){var o=t(this);o.attr("data-target")||r.preventDefault();var i=e(o),A=i.data("bs.collapse"),a=A?"toggle":o.data();n.call(i,a)})}(jQuery)},function(t,e){+function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r=n&&t(n);return r&&r.length?r:e.parent()}function n(n){n&&3===n.which||(t(o).remove(),t(i).each(function(){var r=t(this),o=e(r),i={relatedTarget:this};o.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(o[0],n.target)||(o.trigger(n=t.Event("hide.bs.dropdown",i)),n.isDefaultPrevented()||(r.attr("aria-expanded","false"),o.removeClass("open").trigger(t.Event("hidden.bs.dropdown",i)))))}))}function r(e){return this.each(function(){var n=t(this),r=n.data("bs.dropdown");r||n.data("bs.dropdown",r=new A(this)),"string"==typeof e&&r[e].call(n)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',A=function(e){t(e).on("click.bs.dropdown",this.toggle)};A.VERSION="3.3.7",A.prototype.toggle=function(r){var o=t(this);if(!o.is(".disabled, :disabled")){var i=e(o),A=i.hasClass("open");if(n(),!A){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var a={relatedTarget:this};if(i.trigger(r=t.Event("show.bs.dropdown",a)),r.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},A.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var r=t(this);if(n.preventDefault(),n.stopPropagation(),!r.is(".disabled, :disabled")){var o=e(r),A=o.hasClass("open");if(!A&&27!=n.which||A&&27==n.which)return 27==n.which&&o.find(i).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",s=o.find(".dropdown-menu"+a);if(s.length){var l=s.index(n.target);38==n.which&&l>0&&l--,40==n.which&&ldocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,r){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),i=o.length;i--;){var A=o[i];if("click"==A)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=A){var a="hover"==A?"mouseenter":"focusin",s="hover"==A?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,r){n[t]!=r&&(e[t]=r)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var r=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!r)return;var o=this,i=this.tip(),A=this.getUID(this.type);this.setContent(),i.attr("id",A),this.$element.attr("aria-describedby",A),this.options.animation&&i.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,l=s.test(a);l&&(a=a.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this), this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=i[0].offsetWidth,g=i[0].offsetHeight;if(l){var d=a,M=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+g>M.bottom?"top":"top"==a&&c.top-gM.width?"left":"left"==a&&c.left-uA.top+A.height&&(o.top=A.top+A.height-s)}else{var l=e.left-i,c=e.left+i+n;lA.right&&(o.left=A.left+A.width-c)}return o},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var r=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=r,this}}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),o=r.data("bs.popover"),i="object"==typeof e&&e;!o&&/destroy|hide/.test(e)||(o||r.data("bs.popover",o=new n(this,i)),"string"==typeof e&&o[e]())})}var n=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.7",n.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=r,this}}(jQuery)},function(t,e){+function(t){"use strict";function e(n,r){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var r=t(this),o=r.data("bs.scrollspy"),i="object"==typeof n&&n;o||r.data("bs.scrollspy",o=new e(this,i)),"string"==typeof n&&o[n]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),o=e.data("target")||e.attr("href"),i=/^#./.test(o)&&t(o);return i&&i.length&&i.is(":visible")&&[[i[n]().top+r,o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,i=this.targets,A=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=r)return A!=(t=i[i.length-1])&&this.activate(t);if(A&&e=o[t]&&(void 0===o[t+1]||e .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}var A=r.find("> .active"),a=o&&t.support.transition&&(A.length&&A.hasClass("fade")||!!r.find("> .fade").length);A.length&&a?A.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),A.removeClass("in")};var r=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=n,t.fn.tab.noConflict=function(){return t.fn.tab=r,this};var o=function(n){n.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),o=r.data("bs.affix"),i="object"==typeof e&&e;o||r.data("bs.affix",o=new n(this,i)),"string"==typeof e&&o[e]()})}var n=function(e,r){this.options=t.extend({},n.DEFAULTS,r),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(t,e,n,r){var o=this.$target.scrollTop(),i=this.$element.offset(),A=this.$target.height();if(null!=n&&"top"==this.affixed)return o=t-r&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},n.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),r=this.options.offset,o=r.top,i=r.bottom,A=Math.max(t(document).height(),t(document.body).height());"object"!=typeof r&&(i=o=r),"function"==typeof o&&(o=r.top(this.$element)),"function"==typeof i&&(i=r.bottom(this.$element));var a=this.getState(A,e,o,i);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var s="affix"+(a?"-"+a:""),l=t.Event(s+".bs.affix");if(this.$element.trigger(l),l.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(s).trigger(s.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:A-e-i})}};var r=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=n,t.fn.affix.noConflict=function(){return t.fn.affix=r,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var n=t(this),r=n.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),e.call(n,r)})})}(jQuery)},function(t,e){"use strict";!function(t){t.fn.draggable=function(e){var n=t.extend({handle:0,exclude:0},e);return this.each(function(){var e,r,o=t(this),i=n.handle?t(n.handle,o):o;i.on({mousedown:function(i){var A=i.target,a="",s=!1;if(A&&(a=A.className,a&&(a=a.trim(),a.indexOf("cm-")>-1?s=!0:a.indexOf("CodeMirror-")>-1&&(s=!0))),(!a||"form-control"!==a&&"presentation"!==a&&!s)&&!(a.indexOf("ureport")>-1||a.indexOf("ds_name")>-1||a.indexOf("dataset_name")>-1||"A"===A.tagName||"INPUT"===A.tagName||A&&"presentation"===t(A).attr("role")||n.exclude&&~t.inArray(i.target,t(n.exclude,o)))){var l=o.offset();e=i.pageX-l.left,r=i.pageY-l.top,t(document).on("mousemove.drag",function(t){o.offset({top:t.pageY-r,left:t.pageX-e})})}},mouseup:function(e){t(document).off("mousemove.drag")}})})}}(jQuery)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n0&&A.push(u)}else{var p=u.rect,f=p.getBBox();(f.x>=n.x&&f.x<=n.x2||f.x2>=n.x&&f.x2<=n.x2)&&(f.y>=n.y&&f.y<=n.y2||f.y2>=n.y&&f.y2<=n.y2)&&s.push(u)}}s.length>0?s.forEach(function(t,e){o.addSelection(t)}):A.forEach(function(t,e){o.addSelection(t)}),o.endSelect()}}var r=null,o=this.context,i=o.paper;i.set();this.canvas=i.rect(0,0,i.width,i.height).attr({fill:"#FFF",opacity:0}),this.canvas.toBack(),this.canvas.drag(e,t,n),this.canvas.click(function(t){var e=o.currentTool;if(!(!e||e instanceof u.default||e instanceof l.default)){var n=t.offsetX,r=t.offsetY,i=e._newNodeInstance(n,r);i&&!function(){var t=i.uuid,A=i.name,a=i.toJSON();o.addRedoUndo({redo:function(){i=e._newNodeInstance(n,r,A),i.initFromJson(a)},undo:function(){o.removeFigureByUUID(t)}})}()}}),this.canvas.mousemove(function(t){if(o.currentTool&&o.currentTool instanceof u.default){var e=o.currentConnection;if(e){var n=t.offsetX,r=t.offsetY;e.endX=n,e.endY=r,e.updatePath()}}})}}]),t}();e.default=M},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);en&&this.container.width(t+10),e>r&&this.container.height(e+10)}},{key:"addRedoUndo",value:function(t){this.undoManager.add(t)}},{key:"addSelection",value:function(t){this.selectionFigures.push(t),t instanceof T.default?this.selectionPaths.push(t.path):this.selectionRects.push(t.rect)}},{key:"endSelect",value:function(){this.selectionRects.attr("stroke","#FF9800"),this.selectionPaths.attr({stroke:"#999","stroke-dasharray":"20"});var t=null;this.selectionFigures.forEach(function(e,n){t||(t=e),e instanceof T.default&&e.select()}),t&&N.eventEmitter.emit(N.OBJECT_SELECTED,t)}},{key:"resetSelection",value:function(){this.selectionRects.attr("stroke","#fff"),this.selectionPaths.attr({stroke:"#999","stroke-dasharray":"none"}),this.selectionRects=this.paper.set(),this.selectionPaths=this.paper.set(),this.selectionFigures.forEach(function(t,e){t instanceof T.default&&t.unSelect()}),this.selectionFigures.splice(0,this.selectionFigures.length),N.eventEmitter.emit(N.CANVAS_SELECTED)}},{key:"registerTool",value:function(t){var e=t.getType();if(this.toolsMap.has(e))throw"Figure ["+e+"] already exist.";this.toolsMap.set(e,t)}},{key:"nextUUID",value:function(){return d.default.v1()}},{key:"getFigureById",value:function(t){var e=void 0,n=!0,r=!1,o=void 0;try{for(var i,A=this.allFigures[Symbol.iterator]();!(n=(i=A.next()).done);n=!0){var a=i.value;if(a instanceof C.default&&(a.rect.id===t||a.icon.id===t||a.text.id===t)){e=a;break}}}catch(t){r=!0,o=t}finally{try{!n&&A.return&&A.return()}finally{if(r)throw o}}return e}},{key:"getNodeByUUID",value:function(t){var e=void 0,n=!0,r=!1,o=void 0;try{for(var i,A=this.allFigures[Symbol.iterator]();!(n=(i=A.next()).done);n=!0){var a=i.value;if(a.uuid===t){e=a;break}}}catch(t){r=!0,o=t}finally{try{!n&&A.return&&A.return()}finally{if(r)throw o}}return e}},{key:"removeFigureByUUID",value:function(t){var e=this.getNodeByUUID(t),n=this.allFigures.indexOf(e);this.allFigures.splice(n,1),e.remove()}},{key:"cancelConnection",value:function(){if(this.currentConnection){var t=this.currentConnection.from.fromConnections,e=t.indexOf(this.currentConnection);t.splice(e,1),this.currentConnection.path.remove(),this.currentConnection.text&&this.currentConnection.text.remove()}this.currentConnection=null}},{key:"_initEvent",value:function(){var t=this;N.eventEmitter.on(N.TRIGGER_TOOL,function(e){if(!t.toolsMap.has(e))throw"Node "+e+" not exist.";t.currentTool=t.toolsMap.get(e),t.cancelConnection()}),N.eventEmitter.on(N.REMOVE_CLICKED,function(){var e=[].concat(i(t.selectionFigures));0!==e&&(t.resetSelection(),e.forEach(function(e,n){var r=e.toJSON(),o=e.uuid,i=t;e instanceof T.default?t.addRedoUndo({redo:function(){var t=i.getNodeByUUID(o),e=t.from.uuid,n=t.to.uuid,A=i.context.getNodeByUUID(e),a=i.context.getNodeByUUID(n),s=new T.default(A,{x:A.rect.attr("x"),y:A.rect.attr("y")});A.fromConnections.push(s),a.toConnections.push(s),s.to=a,s.fromJSON(r)},undo:function(){i.removeFigureByUUID(o)}}):!function(){var n=e._tool;t.addRedoUndo({redo:function(){i.removeFigureByUUID(o)},undo:function(){var t=n._newNodeInstance(10,10,"");t&&(t.initFromJson(r),t._buildConnections())}})}(),t.removeFigureByUUID(o)}))}),N.eventEmitter.on(N.ALIGN_CENTER,function(){var e=-1,n=-1,r=void 0,o=new Map,i=0,A=!0,a=!1,s=void 0;try{for(var l,c=t.selectionFigures[Symbol.iterator]();!(A=(l=c.next()).done);A=!0){var u=l.value;if(u instanceof T.default)break;var g={oldXY:{x:u.rect.attr("x"),y:u.rect.attr("y")}};0===i?(e=u.rect.attr("x"),r=u.rect.attr("width"),e+=r/2):u.moveTo(e,n),g.newXY={x:u.rect.attr("x"),y:u.rect.attr("y")},o.set(u.uuid,g),i++}}catch(t){a=!0,s=t}finally{try{!A&&c.return&&c.return()}finally{if(a)throw s}}var d=t;t.addRedoUndo({redo:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=o.keys()[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var A=r.value,a=d.getNodeByUUID(A),s=o.get(A),l=s.newXY;a.move(l.x,l.y,a.rect.attr("width"),a.rect.attr("height"))}}catch(t){e=!0,n=t}finally{try{!t&&i.return&&i.return()}finally{if(e)throw n}}},undo:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=o.keys()[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var A=r.value,a=d.getNodeByUUID(A),s=o.get(A),l=s.oldXY;a.move(l.x,l.y,a.rect.attr("width"),a.rect.attr("height"))}}catch(t){e=!0,n=t}finally{try{!t&&i.return&&i.return()}finally{if(e)throw n}}}})}),N.eventEmitter.on(N.ALIGN_MIDDLE,function(){var e=-1,n=-1,r=void 0,o=new Map,i=0,A=!0,a=!1,s=void 0;try{for(var l,c=t.selectionFigures[Symbol.iterator]();!(A=(l=c.next()).done);A=!0){var u=l.value;if(u instanceof T.default)break;var g={oldXY:{x:u.rect.attr("x"),y:u.rect.attr("y")}};0===i?(n=u.rect.attr("y"),r=u.rect.attr("height"),n+=r/2):u.moveTo(e,n),g.newXY={x:u.rect.attr("x"),y:u.rect.attr("y")},o.set(u.uuid,g),i++}}catch(t){a=!0,s=t}finally{try{!A&&c.return&&c.return()}finally{if(a)throw s}}var d=t;t.addRedoUndo({redo:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=o.keys()[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var A=r.value,a=d.getNodeByUUID(A),s=o.get(A),l=s.newXY;a.move(l.x,l.y,a.rect.attr("width"),a.rect.attr("height"))}}catch(t){e=!0,n=t}finally{try{!t&&i.return&&i.return()}finally{if(e)throw n}}},undo:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=o.keys()[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var A=r.value,a=d.getNodeByUUID(A),s=o.get(A),l=s.oldXY;a.move(l.x,l.y,a.rect.attr("width"),a.rect.attr("height"))}}catch(t){e=!0,n=t}finally{try{!t&&i.return&&i.return()}finally{if(e)throw n}}}})}),N.eventEmitter.on(N.UNIFY_SIZE,function(){var e=void 0,n=void 0,r=new Map,o=0,i=!0,A=!1,a=void 0;try{for(var s,l=t.selectionFigures[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var c=s.value;if(c instanceof T.default)break;var u={oldWH:{w:c.rect.attr("width"),h:c.rect.attr("height")}};0===o?(e=c.rect.attr("width"),n=c.rect.attr("height")):c.changeSize(e,n),u.newWH={w:c.rect.attr("width"),h:c.rect.attr("height")},r.set(c.uuid,u),o++}}catch(t){A=!0,a=t}finally{try{!i&&l.return&&l.return()}finally{if(A)throw a}}var g=t;t.addRedoUndo({redo:function(){var t=!0,e=!1,n=void 0;try{for(var o,i=r.keys()[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var A=o.value,a=g.getNodeByUUID(A),s=r.get(A),l=s.newWH;a.changeSize(l.w,l.h)}}catch(t){e=!0,n=t}finally{try{!t&&i.return&&i.return()}finally{if(e)throw n}}},undo:function(){var t=!0,e=!1,n=void 0;try{for(var o,i=r.keys()[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){var A=o.value,a=g.getNodeByUUID(A),s=r.get(A),l=s.oldWH;a.changeSize(l.w,l.h)}}catch(t){e=!0,n=t}finally{try{!t&&i.return&&i.return()}finally{if(e)throw n}}}})})}},{key:"_initBuiltinTools",value:function(){this.selectTool=new h.default,this.connectionTool=new f.default,this.selectTool.context=this,this.connectionTool.context=this,this.currentTool=this.selectTool}}]),t}();e.default=y},function(t,e,n){var r;!function(){"use strict";function o(t,e,n){return t.splice(e,!n||1+n-e+(!(n<0^e>=0)&&(n<0||-1)*t.length)),t.length}var i=function(){var t,e,n=[],r=-1,i=0,A=!1;return e=function(t,e){return t&&"function"==typeof t[e]?(A=!0,t[e](),A=!1,this):this},{add:function(e){return A?this:(n.splice(r+1,n.length-r),n.push(e),i&&n.length>i&&o(n,0,-(i+1)),r=n.length-1,t&&t(),this)},setCallback:function(e){t=e},undo:function(){var o=n[r];return o?(e(o,"undo"),r-=1,t&&t(),this):this},redo:function(){var o=n[r+1];return o?(e(o,"redo"),r+=1,t&&t(),this):this},clear:function(){var e=n.length;n=[],r=-1,t&&e>0&&t()},hasUndo:function(){return r!==-1},hasRedo:function(){return r>>((3&e)<<3)&255;return n},"undefined"!=typeof console&&console.warn&&console.warn("[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()")}}function a(){try{var t=n(284).randomBytes;M=g=t&&function(){return t(16)},g()}catch(t){}}function s(t,e,n){var r=e&&n||0,o=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){o<16&&(e[r+o++]=I[t])});o<16;)e[r+o++]=0;return e}function l(t,e){var n=e||0,r=f;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}function c(t,e,n){var r=e&&n||0,o=e||[];t=t||{};var i=null!=t.clockseq?t.clockseq:w,A=null!=t.msecs?t.msecs:(new Date).getTime(),a=null!=t.nsecs?t.nsecs:y+1,s=A-C+(a-y)/1e4;if(s<0&&null==t.clockseq&&(i=i+1&16383),(s<0||A>C)&&null==t.nsecs&&(a=0),a>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");C=A,y=a,w=i,A+=122192928e5;var c=(1e4*(268435455&A)+a)%4294967296;o[r++]=c>>>24&255,o[r++]=c>>>16&255,o[r++]=c>>>8&255,o[r++]=255&c;var u=A/4294967296*1e4&268435455;o[r++]=u>>>8&255,o[r++]=255&u,o[r++]=u>>>24&15|16,o[r++]=u>>>16&255,o[r++]=i>>>8|128,o[r++]=255&i;for(var g=t.node||N,d=0;d<6;d++)o[r+d]=g[d];return e?e:l(o)}function u(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new p(16):null,t=null),t=t||{};var o=t.random||(t.rng||g)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;i++)e[r+i]=o[i];return e||l(o)}var g,d,M,h;i?A():a();for(var p="function"==typeof o?o:Array,f=[],I={},T=0;T<256;T++)f[T]=(T+256).toString(16).substr(1),I[f[T]]=T;var E=g(),N=[1|E[0],E[1],E[2],E[3],E[4],E[5]],w=16383&(E[6]<<8|E[7]),C=0,y=0,x=u;x.v1=c,x.v4=u,x.parse=s,x.unparse=l,x.BufferClass=p,x._rng=g,x._mathRNG=d,x._nodeRNG=M,x._whatwgRNG=h,"undefined"!=typeof t&&t.exports?t.exports=x:(r=function(){return x}.call(e,n,e,t),!(void 0!==r&&(t.exports=r)))}("undefined"!=typeof window?window:null)}).call(e,n(280).Buffer)},function(t,e,n){(function(t,r){"use strict";function o(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function i(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(e,n){if(i()=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function p(e){return+e!=e&&(e=0),t.alloc(+e)}function f(e,n){if(t.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var o=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return J(e).length;default:if(o)return P(e).length;n=(""+n).toLowerCase(),o=!0}}function I(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return j(this,e,n);case"utf8":case"utf-8":return B(this,e,n);case"ascii":return v(this,e,n);case"latin1":case"binary":return Q(this,e,n);case"base64":return b(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function T(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function E(e,n,r,o,i){if(0===e.length)return-1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof n&&(n=t.from(n,o)),t.isBuffer(n))return 0===n.length?-1:N(e,n,r,o,i);if("number"==typeof n)return n&=255,t.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):N(e,[n],r,o,i); throw new TypeError("val must be string, number or Buffer")}function N(t,e,n,r,o){function i(t,e){return 1===A?t[e]:t.readUInt16BE(e*A)}var A=1,a=t.length,s=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;A=2,a/=2,s/=2,n/=2}var l;if(o){var c=-1;for(l=n;la&&(n=a-s),l=n;l>=0;l--){for(var u=!0,g=0;go&&(r=o)):r=o;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var A=0;A239?4:i>223?3:i>191?2:1;if(o+a<=n){var s,l,c,u;switch(a){case 1:i<128&&(A=i);break;case 2:s=t[o+1],128===(192&s)&&(u=(31&i)<<6|63&s,u>127&&(A=u));break;case 3:s=t[o+1],l=t[o+2],128===(192&s)&&128===(192&l)&&(u=(15&i)<<12|(63&s)<<6|63&l,u>2047&&(u<55296||u>57343)&&(A=u));break;case 4:s=t[o+1],l=t[o+2],c=t[o+3],128===(192&s)&&128===(192&l)&&128===(192&c)&&(u=(15&i)<<18|(63&s)<<12|(63&l)<<6|63&c,u>65535&&u<1114112&&(A=u))}}null===A?(A=65533,a=1):A>65535&&(A-=65536,r.push(A>>>10&1023|55296),A=56320|1023&A),r.push(A),o+=a}return L(r)}function L(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var o="",i=e;in)throw new RangeError("Trying to access beyond buffer length")}function k(e,n,r,o,i,A){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>i||ne.length)throw new RangeError("Index out of range")}function z(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o>>8*(r?o:1-o)}function Y(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o>>8*(r?o:3-o)&255}function R(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,r,o){return o||R(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),q.write(t,e,n,r,23,4),n+4}function O(t,e,n,r,o){return o||R(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),q.write(t,e,n,r,52,8),n+8}function H(t){if(t=V(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function V(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function G(t){return t<16?"0"+t.toString(16):t.toString(16)}function P(t,e){e=e||1/0;for(var n,r=t.length,o=null,i=[],A=0;A55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(A+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(t){for(var e=[],n=0;n>8,o=n%256,i.push(o),i.push(r);return i}function J(t){return _.toByteArray(H(t))}function Z(t,e,n,r){for(var o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function K(t){return t!==t}var _=n(281),q=n(282),$=n(283);e.Buffer=t,e.SlowBuffer=p,e.INSPECT_MAX_BYTES=50,t.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:o(),e.kMaxLength=i(),t.poolSize=8192,t._augment=function(e){return e.__proto__=t.prototype,e},t.from=function(t,e,n){return a(null,t,e,n)},t.TYPED_ARRAY_SUPPORT&&(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0})),t.alloc=function(t,e,n){return l(null,t,e,n)},t.allocUnsafe=function(t){return c(null,t)},t.allocUnsafeSlow=function(t){return c(null,t)},t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,n){if(!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var r=e.length,o=n.length,i=0,A=Math.min(r,o);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},t.prototype.compare=function(e,n,r,o,i){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===r&&(r=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),n<0||r>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&n>=r)return 0;if(o>=i)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var A=i-o,a=r-n,s=Math.min(A,a),l=this.slice(o,i),c=e.slice(n,r),u=0;uo)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return C(this,t,e,n);case"ascii":return y(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return D(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;t.prototype.slice=function(e,n){var r=this.length;e=~~e,n=void 0===n?r:~~n,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n0&&(o*=256);)r+=this[t+--e]*o;return r},t.prototype.readUInt8=function(t,e){return e||U(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||U(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||U(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||U(t,e,this.length);for(var r=this[t],o=1,i=0;++i=o&&(r-=Math.pow(2,8*e)),r},t.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||U(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},t.prototype.readInt8=function(t,e){return e||U(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},t.prototype.readInt16LE=function(t,e){e||U(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(t,e){e||U(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(t,e){return e||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||U(t,4,this.length),q.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||U(t,4,this.length),q.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||U(t,8,this.length),q.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||U(t,8,this.length),q.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;k(this,t,e,n,o,0)}var i=1,A=0;for(this[e]=255&t;++A=0&&(A*=256);)this[e+i]=t/A&255;return e+n},t.prototype.writeUInt8=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},t.prototype.writeUInt16LE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):z(this,e,n,!0),n+2},t.prototype.writeUInt16BE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):z(this,e,n,!1),n+2},t.prototype.writeUInt32LE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):Y(this,e,n,!0),n+4},t.prototype.writeUInt32BE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):Y(this,e,n,!1),n+4},t.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);k(this,t,e,n,o-1,-o)}var i=0,A=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+n},t.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);k(this,t,e,n,o-1,-o)}var i=n-1,A=1,a=0;for(this[e+i]=255&t;--i>=0&&(A*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/A>>0)-a&255;return e+n},t.prototype.writeInt8=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},t.prototype.writeInt16LE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):z(this,e,n,!0),n+2},t.prototype.writeInt16BE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):z(this,e,n,!1),n+2},t.prototype.writeInt32LE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):Y(this,e,n,!0),n+4},t.prototype.writeInt32BE=function(e,n,r){return e=+e,n|=0,r||k(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):Y(this,e,n,!1),n+4},t.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},t.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},t.prototype.writeDoubleLE=function(t,e,n){return O(this,t,e,!0,n)},t.prototype.writeDoubleBE=function(t,e,n){return O(this,t,e,!1,n)},t.prototype.copy=function(e,n,r,o){if(r||(r=0),o||0===o||(o=this.length),n>=e.length&&(n=e.length),n||(n=0),o>0&&o=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-n=0;--i)e[i+n]=this[i+r];else if(A<1e3||!t.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var A;if("number"==typeof e)for(A=n;A0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function r(t){return 3*t.length/4-n(t)}function o(t){var e,r,o,i,A,a,s=t.length;A=n(t),a=new c(3*s/4-A),o=A>0?s-4:s;var u=0;for(e=0,r=0;e>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===A?(i=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===A&&(i=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}function i(t){return s[t>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}function A(t,e,n){for(var r,o=[],A=e;Ac?c:l+a));return 1===r?(e=t[n-1],o+=s[e>>2],o+=s[e<<4&63],o+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],o+=s[e>>10],o+=s[e>>4&63],o+=s[e<<2&63],o+="="),i.push(o),i.join("")}e.byteLength=r,e.toByteArray=o,e.fromByteArray=a;for(var s=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,d=u.length;g>1,c=-7,u=n?o-1:0,g=n?-1:1,d=t[e+u];for(u+=g,i=d&(1<<-c)-1,d>>=-c,c+=a;c>0;i=256*i+t[e+u],u+=g,c-=8);for(A=i&(1<<-c)-1,i>>=-c,c+=r;c>0;A=256*A+t[e+u],u+=g,c-=8);if(0===i)i=1-l;else{if(i===s)return A?NaN:(d?-1:1)*(1/0);A+=Math.pow(2,r),i-=l}return(d?-1:1)*A*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var A,a,s,l=8*i-o-1,c=(1<>1,g=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,M=r?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,A=c):(A=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-A))<1&&(A--,s*=2),e+=A+u>=1?g/s:g*Math.pow(2,1-u),e*s>=2&&(A++,s/=2),A+u>=c?(a=0,A=c):A+u>=1?(a=(e*s-1)*Math.pow(2,o),A+=u):(a=e*Math.pow(2,u-1)*Math.pow(2,o),A=0));o>=8;t[n+d]=255&a,d+=M,a/=256,o-=8);for(A=A<0;t[n+d]=255&A,d+=M,A/=256,l-=8);t[n+d-M]|=128*h}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){function r(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function o(t,e){for(var n in t)e(t[n],n)}var i=n(285);e.createHash=n(287),e.createHmac=n(299),e.randomBytes=function(e,n){if(!n||!n.call)return new t(i(e));try{n.call(this,void 0,new t(i(e)))}catch(t){n(t)}},e.getHashes=function(){return["sha1","sha256","sha512","md5","rmd160"]};var A=n(300)(e);e.pbkdf2=A.pbkdf2,e.pbkdf2Sync=A.pbkdf2Sync,o(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman"],function(t){e[t]=function(){r("sorry,",t,"is not implemented yet")}})}).call(e,n(280).Buffer)},function(t,e,n){(function(e,r){!function(){var o=("undefined"==typeof window?e:window)||{};_crypto=o.crypto||o.msCrypto||n(286),t.exports=function(t){if(_crypto.getRandomValues){var e=new r(t);return _crypto.getRandomValues(e),e}if(_crypto.randomBytes)return _crypto.randomBytes(t);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(e,function(){return this}(),n(280).Buffer)},function(t,e){},function(t,e,n){(function(e){function r(t){return function(){var n=[],r={update:function(t,r){return e.isBuffer(t)||(t=new e(t,r)),n.push(t),this},digest:function(r){var o=e.concat(n),i=t(o);return n=null,r?i.toString(r):i}};return r}}var o=n(288),i=r(n(296)),A=r(n(298));t.exports=function(t){return"md5"===t?new i:"rmd160"===t?new A:o(t)}}).call(e,n(280).Buffer)},function(t,e,n){var e=t.exports=function(t){var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n},r=n(280).Buffer,o=n(289)(r);e.sha1=n(290)(r,o),e.sha256=n(294)(r,o),e.sha512=n(295)(r,o)},function(t,e){t.exports=function(t){function e(e,n){this._block=new t(e),this._finalSize=n,this._blockSize=e,this._len=0,this._s=0}return e.prototype.init=function(){this._s=0,this._len=0},e.prototype.update=function(e,n){"string"==typeof e&&(n=n||"utf8",e=new t(e,n));for(var r=this._len+=e.length,o=this._s=this._s||0,i=0,A=this._block;o=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e}},function(t,e,n){var r=n(291).inherits;t.exports=function(t,e){function n(){return M.length?M.pop().init():this instanceof n?(this._w=d,e.call(this,64,56),this._h=null,void this.init()):new n}function o(t,e,n,r){return t<20?e&n|~e&r:t<40?e^n^r:t<60?e&n|e&r|n&r:e^n^r}function i(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function A(t,e){return t+e|0}function a(t,e){return t<>>32-e}var s=0,l=4,c=8,u=12,g=16,d=new("undefined"==typeof Int32Array?Array:Int32Array)(80),M=[];return r(n,e),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,e.prototype.init.call(this),this},n.prototype._POOL=M,n.prototype._update=function(t){var e,n,r,s,l,c,u,g,d,M;e=c=this._a,n=u=this._b,r=g=this._c,s=d=this._d,l=M=this._e;for(var h=this._w,p=0;p<80;p++){var f=h[p]=p<16?t.readInt32BE(4*p):a(h[p-3]^h[p-8]^h[p-14]^h[p-16],1),I=A(A(a(e,5),o(p,n,r,s)),A(A(l,f),i(p)));l=s,s=r,r=a(n,30),n=e,e=I}this._a=A(e,c),this._b=A(n,u),this._c=A(r,g),this._d=A(s,d),this._e=A(l,M)},n.prototype._hash=function(){M.length<100&&M.push(this);var e=new t(20);return e.writeInt32BE(0|this._a,s),e.writeInt32BE(0|this._b,l),e.writeInt32BE(0|this._c,c),e.writeInt32BE(0|this._d,u),e.writeInt32BE(0|this._e,g),e},n}},function(t,e,n){(function(t,r){function o(t,n){var r={seen:[],stylize:A};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&e._extend(r,n),N(r.showHidden)&&(r.showHidden=!1),N(r.depth)&&(r.depth=2),N(r.colors)&&(r.colors=!1),N(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),s(r,t,r.depth)}function i(t,e){var n=o.styles[e];return n?"["+o.colors[n][0]+"m"+t+"["+o.colors[n][1]+"m":t}function A(t,e){return t}function a(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function s(t,n,r){if(t.customInspect&&n&&D(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return T(o)||(o=s(t,o,r)),o}var i=l(t,n);if(i)return i;var A=Object.keys(n),h=a(A);if(t.showHidden&&(A=Object.getOwnPropertyNames(n)),x(n)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return c(n);if(0===A.length){if(D(n)){var p=n.name?": "+n.name:"";return t.stylize("[Function"+p+"]","special")}if(w(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(y(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return c(n)}var f="",I=!1,E=["{","}"];if(M(n)&&(I=!0,E=["[","]"]),D(n)){var N=n.name?": "+n.name:"";f=" [Function"+N+"]"}if(w(n)&&(f=" "+RegExp.prototype.toString.call(n)),y(n)&&(f=" "+Date.prototype.toUTCString.call(n)),x(n)&&(f=" "+c(n)),0===A.length&&(!I||0==n.length))return E[0]+f+E[1];if(r<0)return w(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var C;return C=I?u(t,n,r,h,A):A.map(function(e){return g(t,n,r,h,e,I)}),t.seen.pop(),d(C,f,E)}function l(t,e){if(N(e))return t.stylize("undefined","undefined");if(T(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return I(e)?t.stylize(""+e,"number"):h(e)?t.stylize(""+e,"boolean"):p(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function u(t,e,n,r,o){for(var i=[],A=0,a=e.length;A-1&&(a=i?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),N(A)){if(i&&o.match(/^\d+$/))return a;A=JSON.stringify(""+o),A.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(A=A.substr(1,A.length-2),A=t.stylize(A,"name")):(A=A.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),A=t.stylize(A,"string"))}return A+": "+a}function d(t,e,n){var r=0,o=t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function M(t){return Array.isArray(t)}function h(t){return"boolean"==typeof t}function p(t){return null===t}function f(t){return null==t}function I(t){return"number"==typeof t}function T(t){return"string"==typeof t}function E(t){return"symbol"==typeof t}function N(t){return void 0===t}function w(t){return C(t)&&"[object RegExp]"===b(t)}function C(t){return"object"==typeof t&&null!==t}function y(t){return C(t)&&"[object Date]"===b(t)}function x(t){return C(t)&&("[object Error]"===b(t)||t instanceof Error)}function D(t){return"function"==typeof t}function m(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function b(t){return Object.prototype.toString.call(t)}function B(t){return t<10?"0"+t.toString(10):t.toString(10)}function L(){var t=new Date,e=[B(t.getHours()),B(t.getMinutes()),B(t.getSeconds())].join(":");return[t.getDate(),U[t.getMonth()],e].join(" ")}function v(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Q=/%[sdj%]/g;e.format=function(t){if(!T(t)){for(var e=[],n=0;n=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),a=r[n];n>>e|t<<32-e}function i(t,e){return t>>>e}function A(t,e,n){return t&e^~t&n}function a(t,e,n){return t&e^t&n^e&n}function s(t){return o(t,2)^o(t,13)^o(t,22)}function l(t){return o(t,6)^o(t,11)^o(t,25)}function c(t){return o(t,7)^o(t,18)^i(t,3)}function u(t){return o(t,17)^o(t,19)^i(t,10)}var g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],d=new Array(64);return r(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,r,o,i,d,M,h,p,f,I=this._w;e=0|this._a,n=0|this._b,r=0|this._c,o=0|this._d,i=0|this._e,d=0|this._f,M=0|this._g,h=0|this._h;for(var T=0;T<64;T++){var E=I[T]=T<16?t.readInt32BE(4*T):u(I[T-2])+I[T-7]+c(I[T-15])+I[T-16];p=h+l(i)+A(i,d,M)+g[T]+E,f=s(e)+a(e,n,r),h=M,M=d,d=i,i=o+p,o=r,r=n,n=e,e=p+f}this._a=e+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=o+this._d|0,this._e=i+this._e|0,this._f=d+this._f|0,this._g=M+this._g|0,this._h=h+this._h|0},n.prototype._hash=function(){var e=new t(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},n}},function(t,e,n){var r=n(291).inherits;t.exports=function(t,e){function n(){this.init(),this._w=s,e.call(this,128,112)}function o(t,e,n){return t>>>n|e<<32-n}function i(t,e,n){return t&e^~t&n}function A(t,e,n){return t&e^t&n^e&n}var a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160); return r(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,r,s,l,c,u,g,d,M,h,p,f,I,T,E,N=this._w;e=0|this._a,n=0|this._b,r=0|this._c,s=0|this._d,l=0|this._e,c=0|this._f,u=0|this._g,g=0|this._h,d=0|this._al,M=0|this._bl,h=0|this._cl,p=0|this._dl,f=0|this._el,I=0|this._fl,T=0|this._gl,E=0|this._hl;for(var w=0;w<80;w++){var C,y,x=2*w;if(w<16)C=N[x]=t.readInt32BE(4*x),y=N[x+1]=t.readInt32BE(4*x+4);else{var D=N[x-30],m=N[x-30+1],b=o(D,m,1)^o(D,m,8)^D>>>7,B=o(m,D,1)^o(m,D,8)^o(m,D,7);D=N[x-4],m=N[x-4+1];var L=o(D,m,19)^o(m,D,29)^D>>>6,v=o(m,D,19)^o(D,m,29)^o(m,D,6),Q=N[x-14],j=N[x-14+1],S=N[x-32],U=N[x-32+1];y=B+j,C=b+Q+(y>>>0>>0?1:0),y+=v,C=C+L+(y>>>0>>0?1:0),y+=U,C=C+S+(y>>>0>>0?1:0),N[x]=C,N[x+1]=y}var k=A(e,n,r),z=A(d,M,h),Y=o(e,d,28)^o(d,e,2)^o(d,e,7),R=o(d,e,28)^o(e,d,2)^o(e,d,7),F=o(l,f,14)^o(l,f,18)^o(f,l,9),O=o(f,l,14)^o(f,l,18)^o(l,f,9),H=a[x],V=a[x+1],G=i(l,c,u),P=i(f,I,T),X=E+O,W=g+F+(X>>>0>>0?1:0);X+=P,W=W+G+(X>>>0

>>0?1:0),X+=V,W=W+H+(X>>>0>>0?1:0),X+=y,W=W+C+(X>>>0>>0?1:0);var J=R+z,Z=Y+k+(J>>>0>>0?1:0);g=u,E=T,u=c,T=I,c=l,I=f,f=p+X|0,l=s+W+(f>>>0

>>0?1:0)|0,s=r,p=h,r=n,h=M,n=e,M=d,d=X+J|0,e=W+Z+(d>>>0>>0?1:0)|0}this._al=this._al+d|0,this._bl=this._bl+M|0,this._cl=this._cl+h|0,this._dl=this._dl+p|0,this._el=this._el+f|0,this._fl=this._fl+I|0,this._gl=this._gl+T|0,this._hl=this._hl+E|0,this._a=this._a+e+(this._al>>>0>>0?1:0)|0,this._b=this._b+n+(this._bl>>>0>>0?1:0)|0,this._c=this._c+r+(this._cl>>>0>>0?1:0)|0,this._d=this._d+s+(this._dl>>>0

>>0?1:0)|0,this._e=this._e+l+(this._el>>>0>>0?1:0)|0,this._f=this._f+c+(this._fl>>>0>>0?1:0)|0,this._g=this._g+u+(this._gl>>>0>>0?1:0)|0,this._h=this._h+g+(this._hl>>>0>>0?1:0)|0},n.prototype._hash=function(){function e(t,e,r){n.writeInt32BE(t,r),n.writeInt32BE(e,r+4)}var n=new t(64);return e(this._a,this._al,0),e(this._b,this._bl,8),e(this._c,this._cl,16),e(this._d,this._dl,24),e(this._e,this._el,32),e(this._f,this._fl,40),e(this._g,this._gl,48),e(this._h,this._hl,56),n},n}},function(t,e,n){function r(t,e){t[e>>5]|=128<>>9<<4)+14]=e;for(var n=1732584193,r=-271733879,o=-1732584194,c=271733878,u=0;u>16)+(e>>16)+(n>>16);return r<<16|65535&n}function c(t,e){return t<>>32-e}var u=n(297);t.exports=function(t){return u.hash(t,r,16)}},function(t,e,n){(function(e){function n(t,n){if(t.length%i!==0){var r=t.length+(i-t.length%i);t=e.concat([t,A],r)}for(var o=[],a=n?t.readInt32BE:t.readInt32LE,s=0;s>>32-e}function s(t){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof t&&(t=new e(t,"utf8"));var r=h(t),o=8*t.length,i=8*t.length;r[o>>>5]|=128<<24-o%32,r[(o+64>>>9<<4)+14]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);for(var A=0;A>>24)|4278255360&(a<<24|a>>>8)}var s=p(n);return new e(s)}t.exports=s;var l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],M=[1352829926,1548603684,1836072691,2053994217,0],h=function(t){for(var e=[],n=0,r=0;n>>5]|=t[n]<<24-r%32;return e},p=function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},f=function(t,e,s){for(var h=0;h<16;h++){var p=s+h,f=e[p];e[p]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}var I,T,E,N,w,C,y,x,D,m;C=I=t[0],y=T=t[1],x=E=t[2],D=N=t[3],m=w=t[4];for(var b,h=0;h<80;h+=1)b=I+e[s+l[h]]|0,b+=h<16?n(T,E,N)+d[0]:h<32?r(T,E,N)+d[1]:h<48?o(T,E,N)+d[2]:h<64?i(T,E,N)+d[3]:A(T,E,N)+d[4],b|=0,b=a(b,u[h]),b=b+w|0,I=w,w=N,N=a(E,10),E=T,T=b,b=C+e[s+c[h]]|0,b+=h<16?A(y,x,D)+M[0]:h<32?i(y,x,D)+M[1]:h<48?o(y,x,D)+M[2]:h<64?r(y,x,D)+M[3]:n(y,x,D)+M[4],b|=0,b=a(b,g[h]),b=b+m|0,C=m,m=D,D=a(x,10),x=y,y=b;b=t[1]+E+D|0,t[1]=t[2]+N+m|0,t[2]=t[3]+w+C|0,t[3]=t[4]+I+y|0,t[4]=t[0]+T+x|0,t[0]=b}}).call(e,n(280).Buffer)},function(t,e,n){(function(e){function r(t,n){if(!(this instanceof r))return new r(t,n);this._opad=s,this._alg=t;var A="sha512"===t?128:64;n=this._key=e.isBuffer(n)?n:new e(n),n.length>A?n=o(t).update(n).digest():n.length(Math.pow(2,32)-1)*a))throw new TypeError("keylen exceeds maximum length");M.copy(l,0,0,a);for(var h=1;he&&(e=o)}}),t.css("z-index",e+1)})}},{key:"render",value:function(){var t=this,e=[];this.props.buttons.forEach(function(n,r){e.push(l.default.createElement("button",{type:"button",key:r,className:n.className,onClick:function(e){n.click(t.props.dispatch)}},l.default.createElement("i",{className:n.icon})," ",n.name))});var n=this.props.large,r="modal-dialog"+(n?" modal-lg":"");return l.default.createElement("div",{className:"modal fade",tabIndex:"-1",role:"dialog","aria-hidden":"true",style:{overflow:"auto"}},l.default.createElement("div",{className:r},l.default.createElement("div",{className:"modal-content"},l.default.createElement("div",{className:"modal-header"},l.default.createElement("button",{type:"button",className:"close","data-dismiss":"modal","aria-hidden":"true"},"×"),l.default.createElement("h3",{className:"modal-title",id:"myModalLabel",style:{wordWrap:"break-word"}},this.props.title,l.default.createElement("div",{className:"text-danger",style:{fontSize:"12pt"}},this.props.info?this.props.info:null))),l.default.createElement("div",{className:"modal-body",style:{padding:"10px"}},this.props.body),l.default.createElement("div",{className:"modal-footer"},e))))}}]),e}(s.Component);e.default=g},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.eventEmitter=e.HIDE_VERSION_SELECT_DIALOG=e.OPEN_VERSION_SELECT_DIALOG=e.HIDE_KNOWLEDGE_TREE_DIALOG=e.OPEN_KNOWLEDGE_TREE_DIALOG=e.TREE_DIR_NODE_CLICK=e.TREE_NODE_CLICK=e.HIDE_LOADING=e.SHOW_LOADING=void 0;var o=n(240),i=r(o);e.SHOW_LOADING="show_loading",e.HIDE_LOADING="hide_loading",e.TREE_NODE_CLICK="tree_node_click",e.TREE_DIR_NODE_CLICK="tree_dir_node_click",e.OPEN_KNOWLEDGE_TREE_DIALOG="open_knowledge_tree_dialog",e.HIDE_KNOWLEDGE_TREE_DIALOG="hide_knowledge_tree_dialog",e.OPEN_VERSION_SELECT_DIALOG="open_version_select_dialog",e.HIDE_VERSION_SELECT_DIALOG="hide_version_select_dialog",e.eventEmitter=new i.default.EventEmitter},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;nul>li:after,.tree>ul>li:before{border:0}.tree li:last-child:before{height:30px}.tree-active{border:1px solid #2196f3!important}",""])},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=function(){function t(t,e){for(var n=0;n ul > li");r.is(":visible")?(r.hide("fast"),n.children("i:first").addClass("rf-plus").removeClass("rf-minus")):(r.show("fast"),n.children("i:first").addClass("rf-minus").removeClass("rf-plus")),e.stopPropagation()}}),t.hasClass("parent_li")){var o=this.props.expandLevel;if(r._level>=o){var i=e.parent("li.parent_li").find(" > ul > li");i.hide(),e.children("i:first").addClass("rf-plus").removeClass("rf-minus")}else e.children("i:first").addClass("rf-minus").removeClass("rf-plus")}this._bindContextMenu(r)}},{key:"isFile",value:function t(){var e=this.props.data,n=e.name,t=!1;return(n.indexOf(".")>-1||"ul"===n||"知识包"===n)&&(t=!0),t}},{key:"componentWillUnmount",value:function(){var t=this.props.data,e=t.contextMenu;e&&0!==e.length&&$("#node-"+t.id).contextmenu("destroy")}},{key:"componentDidUpdate",value:function(){this._bindContextMenu(this.props.data)}},{key:"_bindContextMenu",value:function(t){var e=$("#node-"+t.id);e.contextmenu("destroy");var n=t.contextMenu;if(n&&0!==n.length){var r="treenodemenu"+t.id;e.contextmenu({target:"#"+r})}}},{key:"render",value:function(){var t=this,e=this.props,n=e.data,r=e.dispatch,o=n.children,i="node-"+n.id,A="treenodemenu"+n.id,a=[];if(n.contextMenu&&a.push(u.default.createElement(f.default,{items:n.contextMenu,key:n.id,data:n,dispatch:r,menuId:A})),o&&o.length>0)return u.default.createElement("li",{className:"parent_li"},u.default.createElement("span",{id:i},u.default.createElement("i",{className:"rf rf-minus",style:{marginRight:"2px"}}),u.default.createElement("i",{className:n._icon,style:n._style})," ",u.default.createElement("a",{href:"###",style:n._style}," ",n.name),u.default.createElement("sup",null,u.default.createElement("i",{title:n.lock?n.lockInfo:"",className:n.lock?"rf rf-lock":""}))),a,u.default.createElement(h.default,{dispatch:r,children:o,expandLevel:this.props.expandLevel}));var l=function(){var e=t.isFile();return{v:u.default.createElement("li",null,u.default.createElement("span",{id:i,onClick:function(t){if(e){var r=window._server+n.editorPath+"?file="+n.fullPath;T.eventEmitter.emit(T.TREE_NODE_CLICK,{id:n.id,name:n.name,fullPath:n.fullPath,path:r,active:!0}),$(".tree").find(".tree-active").removeClass("tree-active"),$("#"+i).addClass("tree-active")}}},u.default.createElement("i",{className:n._icon,style:n._style})," ",u.default.createElement("a",{href:"###",style:n._style}," ",n.name),u.default.createElement("sup",null,u.default.createElement("i",{title:n.lock?n.lockInfo:"",className:n.lock?"rf rf-lock":""}))),a)}}();return"object"===("undefined"==typeof l?"undefined":s(l))?l.v:void 0}}]),e}(c.Component);e.default=E},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function A(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;nspan::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)}.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(t,e,n){var r=n(393);"string"==typeof r&&(r=[[t.id,r,""]]);n(9)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,".CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;box-shadow:2px 3px 5px rgba(0,0,0,.2);border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}",""])},function(t,e,n){var r=n(395);"string"==typeof r&&(r=[[t.id,r,""]]);n(9)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,'.CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid #000;border-radius:4px 4px 4px 4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark-error,.CodeMirror-lint-mark-warning{background-position:0 100%;background-repeat:repeat-x}.CodeMirror-lint-mark-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==")}.CodeMirror-lint-mark-warning{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=")}.CodeMirror-lint-marker-error,.CodeMirror-lint-marker-warning{background-position:50%;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message-error,.CodeMirror-lint-message-warning{padding-left:18px;background-position:0 0;background-repeat:no-repeat}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=")}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=")}.CodeMirror-lint-marker-multiple{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC");background-repeat:no-repeat;background-position:100% 100%;width:100%;height:100%}',""])},,,,,,,,,,function(t,e,n){!function(t){t(n(406))}(function(t){"use strict";function e(e,n){function r(e){return o.parentNode?(o.style.top=Math.max(0,e.clientY-o.offsetHeight-5)+"px",void(o.style.left=e.clientX+5+"px")):t.off(document,"mousemove",r)}var o=document.createElement("div");return o.className="CodeMirror-lint-tooltip",o.appendChild(n.cloneNode(!0)),document.body.appendChild(o),t.on(document,"mousemove",r),r(e),null!=o.style.opacity&&(o.style.opacity=1),o}function n(t){t.parentNode&&t.parentNode.removeChild(t)}function r(t){t.parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout(function(){n(t)},600))}function o(n,o,i){function A(){t.off(i,"mouseout",A),a&&(r(a),a=null)}var a=e(n,o),s=setInterval(function(){if(a)for(var t=i;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){A();break}}if(!a)return clearInterval(s)},400);t.on(i,"mouseout",A)}function i(t,e,n){this.marked=[],this.options=e,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(e){f(t,e)},this.waitingFor=0}function A(t,e){return e instanceof Function?{getAnnotations:e}:(e&&e!==!0||(e={}),e)}function a(t){var e=t.state.lint;e.hasGutter&&t.clearGutter(I);for(var n=0;n1,n.options.tooltips))}}r.onUpdateLinting&&r.onUpdateLinting(e,o,t)}function h(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(function(){d(t)},e.options.delay||500))}function p(t,e){for(var n=e.target||e.srcElement,r=document.createDocumentFragment(),i=0;i0;--e)t.removeChild(t.firstChild);return t}function n(t,n){return e(t).appendChild(n)}function r(t,e,n,r){var o=document.createElement(t);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof e)o.appendChild(document.createTextNode(e));else if(e)for(var i=0;i=e)return A+(e-i);A+=a-i,A+=n-A%n,i=a+1}}function u(){this.id=null}function g(t,e){for(var n=0;n=e)return r+Math.min(A,e-o);if(o+=i-r,o+=n-o%n,r=i+1,o>=e)return r}}function M(t){for(;SA.length<=t;)SA.push(h(SA)+" ");return SA[t]}function h(t){return t[t.length-1]}function p(t,e){for(var n=[],r=0;r"€"&&(t.toUpperCase()!=t.toLowerCase()||UA.test(t))}function N(t,e){return e?!!(e.source.indexOf("\\w")>-1&&E(t))||e.test(t):E(t)}function w(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}function C(t){return t.charCodeAt(0)>=768&&kA.test(t)}function y(t,e,n){var o=this;this.input=n,o.scrollbarFiller=r("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=r("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=r("div",null,"CodeMirror-code"),o.selectionDiv=r("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=r("div",null,"CodeMirror-cursors"),o.measure=r("div",null,"CodeMirror-measure"),o.lineMeasure=r("div",null,"CodeMirror-measure"),o.lineSpace=r("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none"),o.mover=r("div",[r("div",[o.lineSpace],"CodeMirror-lines")],null,"position: relative"),o.sizer=r("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=r("div",null,null,"position: absolute; height: "+BA+"px; width: 1px;"),o.gutters=r("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=r("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=r("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),aA&&sA<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),lA||oA&&fA||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,n.init(o)}function x(t,e){if(e-=t.first,e<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(e=t.first&&en?j(n,x(t,n).text.length):F(e,x(t,e.line).text.length)}function F(t,e){var n=t.ch;return null==n||n>e?j(t.line,e):n<0?j(t.line,0):t}function O(t,e){for(var n=[],r=0;r=e:i.to>e);(r||(r=[])).push(new G(A,i.from,s?null:i.to))}}return r}function Z(t,e,n){var r;if(t)for(var o=0;o=e:i.to>e);if(a||i.from==e&&"bookmark"==A.type&&(!n||i.marker.insertLeft)){var s=null==i.from||(A.inclusiveLeft?i.from<=e:i.from0&&a)for(var N=0;N0)){var c=[s,1],u=S(l.from,a.from),d=S(l.to,a.to);(u<0||!A.inclusiveLeft&&!u)&&c.push({from:l.from,to:a.from}),(d>0||!A.inclusiveRight&&!d)&&c.push({from:a.to,to:l.to}),o.splice.apply(o,c),s+=c.length-1}}return o}function $(t){var e=t.markedSpans;if(e){for(var n=0;n=0&&u<=0||c<=0&&u>=0)&&(c<=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?S(l.to,n)>=0:S(l.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&o.inclusiveLeft?S(l.from,r)<=0:S(l.from,r)<0)))return!0}}}function st(t){for(var e;e=it(t);)t=e.find(-1,!0).line;return t}function lt(t){for(var e,n;e=At(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}function ct(t,e){var n=x(t,e),r=st(n);return n==r?e:B(r)}function ut(t,e){if(e>t.lastLine())return e;var n,r=x(t,e);if(!gt(t,r))return e;for(;n=At(r);)r=n.find(1,!0).line;return B(r)+1}function gt(t,e){var n=YA&&e.markedSpans;if(n)for(var r=void 0,o=0;oe.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)})}function ft(t,e,n,r){if(!t)return r(e,n,"ltr");for(var o=!1,i=0;ie||e==n&&A.to==e)&&(r(Math.max(A.from,e),Math.min(A.to,n),1==A.level?"rtl":"ltr"),o=!0)}o||r(e,n,"ltr")}function It(t){return t.level%2?t.to:t.from}function Tt(t){return t.level%2?t.from:t.to}function Et(t){var e=mt(t);return e?It(e[0]):0}function Nt(t){var e=mt(t);return e?Tt(h(e)):t.text.length}function wt(t,e,n){var r=t[0].level;return e==r||n!=r&&ee)return r;if(o.from==e||o.to==e){if(null!=n)return wt(t,o.level,t[n].level)?(o.from!=o.to&&(RA=n),r):(o.from!=o.to&&(RA=r),n);n=r}}return n}function yt(t,e,n,r){if(!r)return e+n;do e+=n;while(e>0&&C(t.text.charAt(e)));return e}function xt(t,e,n,r){var o=mt(t);if(!o)return Dt(t,e,n,r);for(var i=Ct(o,e),A=o[i],a=yt(t,e,A.level%2?-n:n,r);;){if(a>A.from&&a0==A.level%2?A.to:A.from);if(A=o[i+=n],!A)return null;a=n>0==A.level%2?yt(t,A.to,-1,r):yt(t,A.from,1,r)}}function Dt(t,e,n,r){var o=e+n;if(r)for(;o>0&&C(t.text.charAt(o));)o+=n;return o<0||o>t.text.length?null:o}function mt(t){var e=t.order;return null==e&&(e=t.order=FA(t.text)),e}function bt(t,e){return t._handlers&&t._handlers[e]||OA}function Bt(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,o=r&&r[e];if(o){var i=g(o,n);i>-1&&(r[e]=o.slice(0,i).concat(o.slice(i+1)))}}}function Lt(t,e){var n=bt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o0}function St(t){t.prototype.on=function(t,e){HA(this,t,e)},t.prototype.off=function(t,e){Bt(this,t,e)}}function Ut(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function kt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function zt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Yt(t){Ut(t),kt(t)}function Rt(t){return t.target||t.srcElement}function Ft(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),IA&&t.ctrlKey&&1==e&&(e=3),e}function Ot(t){if(null==mA){var e=r("span","​");n(t,r("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(mA=e.offsetWidth<=1&&e.offsetHeight>2&&!(aA&&sA<8))}var o=mA?r("span","​"):r("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}function Ht(t){if(null!=bA)return bA;var r=n(t,document.createTextNode("AخA")),o=wA(r,0,1).getBoundingClientRect(),i=wA(r,1,2).getBoundingClientRect();return e(t),!(!o||o.left==o.right)&&(bA=i.right-o.right<3)}function Vt(t){if(null!=WA)return WA;var e=n(t,r("span","x")),o=e.getBoundingClientRect(),i=wA(e,0,1).getBoundingClientRect();return WA=Math.abs(o.left-i.left)>1}function Gt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),JA[t]=e}function Pt(t,e){ZA[t]=e}function Xt(t){if("string"==typeof t&&ZA.hasOwnProperty(t))t=ZA[t];else if(t&&"string"==typeof t.name&&ZA.hasOwnProperty(t.name)){var e=ZA[t.name];"string"==typeof e&&(e={name:e}),t=T(e,t),t.name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Xt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Xt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Wt(t,e){e=Xt(e);var n=JA[e.name];if(!n)return Wt(t,"text/plain");var r=n(t,e);if(KA.hasOwnProperty(e.name)){var o=KA[e.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var A in e.modeProps)r[A]=e.modeProps[A];return r}function Jt(t,e){var n=KA.hasOwnProperty(t)?KA[t]:KA[t]={};l(e,n)}function Zt(t,e){if(e===!0)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var o=e[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function Kt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e),n&&n.mode!=t);)e=n.state,t=n.mode;return n||{mode:t,state:e}}function _t(t,e,n){return!t.startState||t.startState(e,n)}function qt(t,e,n,r){var o=[t.state.modeGen],i={};Ae(t,e.text,t.doc.mode,n,function(t,e){return o.push(t,e)},i,r);for(var A=function(n){var r=t.state.overlays[n],A=1,a=0;Ae(t,e.text,r.mode,!0,function(t,e){for(var n=A;at&&o.splice(A,1,t,o[A+1],i),A+=2,a=Math.min(t,i)}if(e)if(r.opaque)o.splice(n,A-n,t,"overlay "+e),A=n+2;else for(;nt.options.maxHighlightLength?Zt(t.doc.mode,r):r);e.stateAfter=r,e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.frontier&&t.doc.frontier++}return e.styles}function te(t,e,n){var r=t.doc,o=t.display;if(!r.mode.startState)return!0;var i=ae(t,e,n),A=i>r.first&&x(r,i-1).stateAfter;return A=A?Zt(r.mode,A):_t(r.mode),r.iter(i,e,function(n){ee(t,n.text,A);var a=i==e-1||i%5==0||i>=o.viewFrom&&ie.start)return i}throw new Error("Mode "+t.name+" failed to advance stream.")}function oe(t,e,n,r){var o,i=function(t){return{start:u.start,end:u.pos,string:u.current(),type:o||null,state:t?Zt(A.mode,c):c}},A=t.doc,a=A.mode;e=R(A,e);var s,l=x(A,e.line),c=te(t,e.line,n),u=new _A(l.text,t.options.tabSize);for(r&&(s=[]);(r||u.post.options.maxHighlightLength?(a=!1,A&&ee(t,e,r,u.pos),u.pos=e.length,s=null):s=ie(re(n,u,r,g),i),g){var d=g[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!a||c!=s){for(;lA;--a){if(a<=i.first)return i.first;var s=x(i,a-1);if(s.stateAfter&&(!n||a<=i.frontier))return a;var l=c(s.text,null,t.options.tabSize);(null==o||r>l)&&(o=a-1,r=l)}return o}function se(t,e,n){this.text=t,tt(this,e),this.height=n?n(this):1}function le(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),$(t),tt(t,n);var o=r?r(t):1;o!=t.height&&b(t,o)}function ce(t){t.parent=null,$(t)}function ue(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?ta:$A;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function ge(t,e){var n=r("span",null,null,lA?"padding-right: .1px":null),o={pre:r("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:(aA||lA)&&t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var A=i?e.rest[i-1]:e.line,s=void 0;o.pos=0,o.addToken=Me,Ht(t.display.measure)&&(s=mt(A))&&(o.addToken=pe(o.addToken,s)),o.map=[];var l=e!=t.display.externalMeasured&&B(A);Ie(A,o,$t(t,A,l)),A.styleClasses&&(A.styleClasses.bgClass&&(o.bgClass=a(A.styleClasses.bgClass,o.bgClass||"")),A.styleClasses.textClass&&(o.textClass=a(A.styleClasses.textClass,o.textClass||""))),0==o.map.length&&o.map.push(0,0,o.content.appendChild(Ot(t.display.measure))),0==i?(e.measure.map=o.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(o.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(lA){var c=o.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(o.content.className="cm-tab-wrap-hack")}return Lt(t,"renderLine",t,e.line,o.pre),o.pre.className&&(o.textClass=a(o.pre.className,o.textClass||"")),o}function de(t){var e=r("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function Me(t,e,n,o,i,A,a){if(e){var s,l=t.splitSpaces?he(e,t.trailingSpace):e,c=t.cm.state.specialChars,u=!1;if(c.test(e)){s=document.createDocumentFragment();for(var g=0;;){c.lastIndex=g;var d=c.exec(e),h=d?d.index-g:e.length-g;if(h){var p=document.createTextNode(l.slice(g,g+h));aA&&sA<9?s.appendChild(r("span",[p])):s.appendChild(p),t.map.push(t.pos,t.pos+h,p),t.col+=h,t.pos+=h}if(!d)break;g+=h+1;var f=void 0;if("\t"==d[0]){var I=t.cm.options.tabSize,T=I-t.col%I;f=s.appendChild(r("span",M(T),"cm-tab")),f.setAttribute("role","presentation"),f.setAttribute("cm-text","\t"),t.col+=T}else"\r"==d[0]||"\n"==d[0]?(f=s.appendChild(r("span","\r"==d[0]?"␍":"␤","cm-invalidchar")),f.setAttribute("cm-text",d[0]),t.col+=1):(f=t.cm.options.specialCharPlaceholder(d[0]),f.setAttribute("cm-text",d[0]),aA&&sA<9?s.appendChild(r("span",[f])):s.appendChild(f),t.col+=1);t.map.push(t.pos,t.pos+1,f),t.pos++}}else t.col+=e.length,s=document.createTextNode(l),t.map.push(t.pos,t.pos+e.length,s),aA&&sA<9&&(u=!0),t.pos+=e.length;if(t.trailingSpace=32==l.charCodeAt(e.length-1),n||o||i||u||a){var E=n||"";o&&(E+=o),i&&(E+=i);var N=r("span",[s],E,a);return A&&(N.title=A),t.content.appendChild(N)}t.content.appendChild(s)}}function he(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",o=0;ol&&u.from<=l));g++);if(u.to>=c)return t(n,r,o,i,A,a,s);t(n,r.slice(0,u.to-l),o,i,null,a,s),i=null,r=r.slice(u.to-l),l=u.to}}}function fe(t,e,n,r){var o=!r&&n.widgetNode;o&&t.map.push(t.pos,t.pos+e,o),!r&&t.cm.display.input.needsContentAttribute&&(o||(o=t.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(t.cm.display.input.setUneditable(o),t.content.appendChild(o)),t.pos+=e,t.trailingSpace=!1}function Ie(t,e,n){var r=t.markedSpans,o=t.text,i=0;if(r)for(var A,a,s,l,c,u,g,d=o.length,M=0,h=1,p="",f=0;;){if(f==M){s=l=c=u=a="",g=null,f=1/0;for(var I=[],T=void 0,E=0;EM||w.collapsed&&N.to==M&&N.from==M)?(null!=N.to&&N.to!=M&&f>N.to&&(f=N.to,l=""),w.className&&(s+=" "+w.className),w.css&&(a=(a?a+";":"")+w.css),w.startStyle&&N.from==M&&(c+=" "+w.startStyle),w.endStyle&&N.to==f&&(T||(T=[])).push(w.endStyle,N.to),w.title&&!u&&(u=w.title),w.collapsed&&(!g||rt(g.marker,w)<0)&&(g=N)):N.from>M&&f>N.from&&(f=N.from)}if(T)for(var C=0;C=d)break;for(var x=Math.min(d,f);;){if(p){var D=M+p.length;if(!g){var m=D>x?p.slice(0,x-M):p;e.addToken(e,m,A?A+s:s,c,M+m.length==f?l:"",u,a)}if(D>=x){p=p.slice(x-M),M=x;break}M=D,c=""}p=o.slice(i,i=n[h++]),A=ue(n[h++],e.cm.options)}}else for(var b=1;b2&&i.push((s.bottom+l.top)/2-n.top)}}i.push(n.bottom-n.top)}}function We(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;rn)return{map:t.measure.maps[o],cache:t.measure.caches[o],before:!0}}function Je(t,e){e=st(e);var r=B(e),o=t.display.externalMeasured=new Te(t.doc,e,r);o.lineN=r;var i=o.built=ge(t,o);return o.text=i.pre,n(t.display.lineMeasure,i.pre),o}function Ze(t,e,n,r){return qe(t,_e(t,e),n,r)}function Ke(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&ee)&&(i=s-a,o=i-1,e>=s&&(A="right")),null!=o){if(r=t[l+2],a==s&&n==(r.insertLeft?"left":"right")&&(A=n),"left"==n&&0==o)for(;l&&t[l-2]==t[l-3]&&t[l-1].insertLeft;)r=t[(l-=3)+2],A="left";if("right"==n&&o==s-a)for(;l=0&&(n=t[o]).left==n.right;o--);return n}function en(t,e,n,r){var o,i=$e(e.map,n,r),A=i.node,a=i.start,s=i.end,l=i.collapse;if(3==A.nodeType){for(var c=0;c<4;c++){for(;a&&C(e.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+s0&&(l=r="right");var u;o=t.options.lineWrapping&&(u=A.getClientRects()).length>1?u["right"==r?u.length-1:0]:A.getBoundingClientRect()}if(aA&&sA<9&&!a&&(!o||!o.left&&!o.right)){var g=A.parentNode.getClientRects()[0];o=g?{left:g.left,right:g.left+In(t.display),top:g.top,bottom:g.bottom}:ra}for(var d=o.top-e.rect.top,M=o.bottom-e.rect.top,h=(d+M)/2,p=e.view.measure.heights,f=0;fn.from?A(t-1):A(t,r)}r=r||x(t.doc,e.line),o||(o=_e(t,r));var s=mt(r),l=e.ch;if(!s)return A(l);var c=Ct(s,l),u=a(l,c);return null!=RA&&(u.other=a(l,RA)),u}function dn(t,e){var n=0;e=R(t.doc,e),t.options.lineWrapping||(n=In(t.display)*e.ch);var r=x(t.doc,e.line),o=Mt(r)+Fe(t.display);return{left:n,right:n,top:o,bottom:o+r.height}}function Mn(t,e,n,r){var o=j(t,e);return o.xRel=r,n&&(o.outside=!0),o}function hn(t,e,n){var r=t.doc;if(n+=t.display.viewOffset,n<0)return Mn(r.first,0,!0,-1);var o=L(r,n),i=r.first+r.size-1;if(o>i)return Mn(r.first+r.size-1,x(r,i).text.length,!0,1);e<0&&(e=0);for(var A=x(r,o);;){var a=pn(t,A,o,e,n),s=At(A),l=s&&s.find(0,!0);if(!s||!(a.ch>l.from.ch||a.ch==l.from.ch&&a.xRel>0))return a;o=B(A=l.to.line)}}function pn(t,e,n,r,o){function i(r){var o=gn(t,j(n,r),"line",e,l);return a=!0,A>o.bottom?o.left-s:Ap)return Mn(n,d,f,1);for(;;){if(c?d==g||d==xt(e,g,1):d-g<=1){var I=r0&&I1){var N=qe(t,l,I,"right");A<=N.bottom&&A>=N.top&&Math.abs(r-N.right)1?1:0);return w}var y=Math.ceil(u/2),x=g+y;if(c){x=g;for(var D=0;Dr?(d=x,p=m,(f=a)&&(p+=1e3),u=y):(g=x,M=m,h=a,u-=y)}}function fn(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==qA){qA=r("pre");for(var o=0;o<49;++o)qA.appendChild(document.createTextNode("x")),qA.appendChild(r("br"));qA.appendChild(document.createTextNode("x"))}n(t.measure,qA);var i=qA.offsetHeight/50;return i>3&&(t.cachedTextHeight=i),e(t.measure),i||1}function In(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=r("span","xxxxxxxxxx"),o=r("pre",[e]);n(t.measure,o);var i=e.getBoundingClientRect(),A=(i.right-i.left)/10;return A>2&&(t.cachedCharWidth=A),A||10}function Tn(t){for(var e=t.display,n={},r={},o=e.gutters.clientLeft,i=e.gutters.firstChild,A=0;i;i=i.nextSibling,++A)n[t.options.gutters[A]]=i.offsetLeft+i.clientLeft+o,r[t.options.gutters[A]]=i.clientWidth;return{fixedPos:En(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function En(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Nn(t){var e=fn(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/In(t.display)-3);return function(o){if(gt(t.doc,o))return 0;var i=0;if(o.widgets)for(var A=0;A=t.display.viewTo)return null;if(e-=t.display.viewFrom,e<0)return null;for(var n=t.display.view,r=0;r=t.display.viewTo||a.to().line3&&(o(d,h.top,null,h.bottom),d=c,h.bottoms.bottom||l.bottom==s.bottom&&l.right>s.right)&&(s=l),d0?e.blinker=setInterval(function(){return e.cursorDiv.style.visibility=(n=!n)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Ln(t){t.state.focused||(t.display.input.focus(),Qn(t))}function vn(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,jn(t))},100)}function Qn(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(Lt(t,"focus",t,e),t.state.focused=!0,A(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),lA&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Bn(t))}function jn(t,e){t.state.delayingBlurEvent||(t.state.focused&&(Lt(t,"blur",t,e),t.state.focused=!1,xA(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function Sn(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=En(e)-e.scroller.scrollLeft+t.doc.scrollLeft,o=e.gutters.offsetWidth,i=r+"px",A=0;A.001||s<-.001)&&(b(o.line,i),zn(o.line),o.rest))for(var l=0;l=A&&(i=L(e,Mt(x(e,s))-t.wrapper.clientHeight),A=s)}return{from:i,to:Math.max(A,i+1)}}function Rn(t,e){Math.abs(t.doc.scrollTop-e)<2||(t.doc.scrollTop=e,oA||mr(t,{top:e}),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e),t.display.scrollbars.setScrollTop(e),oA&&mr(t),Nr(t,100))}function Fn(t,e,n){(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)||(e=Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth),t.doc.scrollLeft=e,Sn(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function On(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function Hn(t){var e=On(t);return e.x*=ia,e.y*=ia,e}function Vn(t,e){var n=On(e),r=n.x,o=n.y,i=t.display,A=i.scroller,a=A.scrollWidth>A.clientWidth,s=A.scrollHeight>A.clientHeight;if(r&&a||o&&s){if(o&&IA&&lA)t:for(var l=e.target,c=i.view;l!=A;l=l.parentNode)for(var u=0;u(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!hA){var A=r("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Fe(t.display))+"px;\n height: "+(e.bottom-e.top+Ve(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: 2px;"); t.display.lineSpace.appendChild(A),A.scrollIntoView(i),t.display.lineSpace.removeChild(A)}}}function _n(t,e,n,r){null==r&&(r=0);for(var o,i=0;i<5;i++){var A=!1;o=gn(t,e);var a=n&&n!=e?gn(t,n):o,s=$n(t,Math.min(o.left,a.left),Math.min(o.top,a.top)-r,Math.max(o.left,a.left),Math.max(o.bottom,a.bottom)+r),l=t.doc.scrollTop,c=t.doc.scrollLeft;if(null!=s.scrollTop&&(Rn(t,s.scrollTop),Math.abs(t.doc.scrollTop-l)>1&&(A=!0)),null!=s.scrollLeft&&(Fn(t,s.scrollLeft),Math.abs(t.doc.scrollLeft-c)>1&&(A=!0)),!A)break}return o}function qn(t,e,n,r,o){var i=$n(t,e,n,r,o);null!=i.scrollTop&&Rn(t,i.scrollTop),null!=i.scrollLeft&&Fn(t,i.scrollLeft)}function $n(t,e,n,r,o){var i=t.display,A=fn(t.display);n<0&&(n=0);var a=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:i.scroller.scrollTop,s=Pe(t),l={};o-n>s&&(o=n+s);var c=t.doc.height+Oe(i),u=nc-A;if(na+s){var d=Math.min(n,(g?c:o)-s);d!=a&&(l.scrollTop=d)}var M=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:i.scroller.scrollLeft,h=Ge(t)-(t.options.fixedGutter?i.gutters.offsetWidth:0),p=r-e>h;return p&&(r=e+h),e<10?l.scrollLeft=0:eh+M-3&&(l.scrollLeft=r+(p?0:10)-h),l}function tr(t,e,n){null==e&&null==n||nr(t),null!=e&&(t.curOp.scrollLeft=(null==t.curOp.scrollLeft?t.doc.scrollLeft:t.curOp.scrollLeft)+e),null!=n&&(t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+n)}function er(t){nr(t);var e=t.getCursor(),n=e,r=e;t.options.lineWrapping||(n=e.ch?j(e.line,e.ch-1):e,r=j(e.line,e.ch+1)),t.curOp.scrollToPos={from:n,to:r,margin:t.options.cursorScrollMargin,isCursor:!0}}function nr(t){var e=t.curOp.scrollToPos;if(e){t.curOp.scrollToPos=null;var n=dn(t,e.from),r=dn(t,e.to),o=$n(t,Math.min(n.left,r.left),Math.min(n.top,r.top)-e.margin,Math.max(n.right,r.right),Math.max(n.bottom,r.bottom)+e.margin);t.scrollTo(o.scrollLeft,o.scrollTop)}}function rr(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.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:++aa},Ne(t.curOp)}function or(t){var e=t.curOp;Ce(e,function(t){for(var e=0;e=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new Cr(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function ar(t){t.updatedDisplay=t.mustUpdate&&xr(t.cm,t.update)}function sr(t){var e=t.cm,n=e.display;t.updatedDisplay&&kn(e),t.barMeasure=Gn(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Ze(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Ve(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Ge(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection(t.focus))}function lr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLefte)&&(o.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=o.viewTo)YA&&ct(t.doc,e)o.viewFrom?fr(t):(o.viewFrom+=r,o.viewTo+=r);else if(e<=o.viewFrom&&n>=o.viewTo)fr(t);else if(e<=o.viewFrom){var i=Ir(t,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):fr(t)}else if(n>=o.viewTo){var A=Ir(t,e,e,-1);A?(o.view=o.view.slice(0,A.index),o.viewTo=A.lineN):fr(t)}else{var a=Ir(t,e,e,-1),s=Ir(t,n,n+r,1);a&&s?(o.view=o.view.slice(0,a.index).concat(Ee(t,a.lineN,s.lineN)).concat(o.view.slice(s.index)),o.viewTo+=r):fr(t)}var l=o.externalMeasured;l&&(n=o.lineN&&e=r.viewTo)){var i=r.view[yn(t,e)];if(null!=i.node){var A=i.changes||(i.changes=[]);g(A,n)==-1&&A.push(n)}}}function fr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Ir(t,e,n,r){var o,i=yn(t,e),A=t.display.view;if(!YA||n==t.doc.first+t.doc.size)return{index:i,lineN:n};for(var a=t.display.viewFrom,s=0;s0){if(i==A.length-1)return null;o=a+A[i].size-e,i++}else o=a-e;e+=o,n+=o}for(;ct(t.doc,n)!=n;){if(i==(r<0?0:A.length-1))return null;n+=r*A[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function Tr(t,e,n){var r=t.display,o=r.view;0==o.length||e>=r.viewTo||n<=r.viewFrom?(r.view=Ee(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=Ee(t,e,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,yn(t,n)))),r.viewTo=n}function Er(t){for(var e=t.display.view,n=0,r=0;r=t.display.viewTo)){var n=+new Date+t.options.workTime,r=Zt(e.mode,te(t,e.frontier)),o=[];e.iter(e.frontier,Math.min(e.first+e.size,t.display.viewTo+500),function(i){if(e.frontier>=t.display.viewFrom){var A=i.styles,a=i.text.length>t.options.maxHighlightLength,s=qt(t,i,a?Zt(e.mode,r):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),g=0;!u&&gn)return Nr(t,t.options.workDelay),!0}),o.length&&ur(t,function(){for(var e=0;e=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==Er(t))return!1;Un(t)&&(fr(t),n.dims=Tn(t));var A=o.first+o.size,a=Math.max(n.visible.from-t.options.viewportMargin,o.first),s=Math.min(A,n.visible.to+t.options.viewportMargin);r.viewFroms&&r.viewTo-s<20&&(s=Math.min(A,r.viewTo)),YA&&(a=ct(t.doc,a),s=ut(t.doc,s));var l=a!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;Tr(t,a,s),r.viewOffset=Mt(x(t.doc,r.viewFrom)),t.display.mover.style.top=r.viewOffset+"px";var c=Er(t);if(!l&&0==c&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var u=i();return c>4&&(r.lineDiv.style.display="none"),br(t,r.updateLineNumbers,n.dims),c>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,u&&i()!=u&&u.offsetHeight&&u.focus(),e(r.cursorDiv),e(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,l&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,Nr(t,400)),r.updateLineNumbers=null,!0}function Dr(t,e){for(var n=e.viewport,r=!0;(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Ge(t)||(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Oe(t.display)-Pe(t),n.top)}),e.visible=Yn(t.display,t.doc,n),!(e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)))&&xr(t,e);r=!1){kn(t);var o=Gn(t);xn(t),Wn(t,o),Lr(t,o)}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function mr(t,e){var n=new Cr(t,e);if(xr(t,n)){kn(t),Dr(t,n);var r=Gn(t);xn(t),Wn(t,r),Lr(t,r),n.finish()}}function br(t,n,r){function o(e){var n=e.nextSibling;return lA&&IA&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var i=t.display,A=t.options.lineNumbers,a=i.lineDiv,s=a.firstChild,l=i.view,c=i.viewFrom,u=0;u-1&&(M=!1),De(t,d,c,r)),M&&(e(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(Q(t.options,c)))),s=d.node.nextSibling}else{var h=Se(t,d,c,r);a.insertBefore(h,s)}c+=d.size}for(;s;)s=o(s)}function Br(t){var e=t.display.gutters.offsetWidth;t.display.sizer.style.marginLeft=e+"px"}function Lr(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Ve(t)+"px"}function vr(t){var n=t.display.gutters,o=t.options.gutters;e(n);for(var i=0;i-1&&!t.lineNumbers&&(t.gutters=t.gutters.slice(0),t.gutters.splice(e,1))}function jr(t,e){this.ranges=t,this.primIndex=e}function Sr(t,e){this.anchor=t,this.head=e}function Ur(t,e){var n=t[e];t.sort(function(t,e){return S(t.from(),e.from())}),e=g(t,n);for(var r=1;r=0){var A=z(i.from(),o.from()),a=k(i.to(),o.to()),s=i.empty()?o.from()==o.head:i.from()==i.head;r<=e&&--e,t.splice(--r,2,new Sr(s?a:A,s?A:a))}}return new jr(t,e)}function kr(t,e){return new jr([new Sr(t,e||t)],0)}function zr(t){return t.text?j(t.from.line+t.text.length-1,h(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Yr(t,e){if(S(t,e.from)<0)return t;if(S(t,e.to)<=0)return zr(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=zr(e).ch-e.to.ch),j(n,r)}function Rr(t,e){for(var n=[],r=0;r1&&t.remove(a.line+1,M-1),t.insert(a.line+1,I)}ye(t,"change",t,e)}function Xr(t,e,n){function r(t,o,i){if(t.linked)for(var A=0;A1&&!t.done[t.done.length-2].ranges?(t.done.pop(),h(t.done)):void 0}function qr(t,e,n,r){var o=t.history;o.undone.length=0;var i,A,a=+new Date;if((o.lastOp==r||o.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&t.cm&&o.lastModTime>a-t.cm.options.historyEventDelay||"*"==e.origin.charAt(0)))&&(i=_r(o,o.lastOp==r)))A=h(i.changes),0==S(e.from,e.to)&&0==S(e.from,A.to)?A.to=zr(e):i.changes.push(Zr(t,e));else{var s=h(o.done);for(s&&s.ranges||eo(t.sel,o.done),i={changes:[Zr(t,e)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=a,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=e.origin,A||Lt(t,"historyAdded")}function $r(t,e,n,r){var o=e.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function to(t,e,n,r){var o=t.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||$r(t,i,h(o.done),e))?o.done[o.done.length-1]=e:eo(e,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&r.clearRedo!==!1&&Kr(o.undone)}function eo(t,e){var n=h(e);n&&n.ranges&&n.equals(t)||e.push(t)}function no(t,e,n,r){var o=e["spans_"+t.id],i=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),function(n){n.markedSpans&&((o||(o=e["spans_"+t.id]={}))[i]=n.markedSpans),++i})}function ro(t){if(!t)return null;for(var e,n=0;n-1&&(h(a)[u]=l[u],delete l[u])}}}return r}function ao(t,e,n,r){if(t.cm&&t.cm.display.shift||t.extend){var o=e.anchor;if(r){var i=S(n,o)<0;i!=S(r,o)<0?(o=n,n=r):i!=S(n,r)<0&&(n=r)}return new Sr(o,n)}return new Sr(r||n,n)}function so(t,e,n,r){ho(t,new jr([ao(t,t.sel.primary(),e,n)],0),r)}function lo(t,e,n){for(var r=[],o=0;o=e.ch:a.to>e.ch))){if(o&&(Lt(s,"beforeCursorEnter"),s.explicitlyCleared)){if(i.markedSpans){--A;continue}break}if(!s.atomic)continue;if(n){var l=s.find(r<0?1:-1),c=void 0;if((r<0?s.inclusiveRight:s.inclusiveLeft)&&(l=wo(t,l,-r,l&&l.line==e.line?i:null)),l&&l.line==e.line&&(c=S(l,n))&&(r<0?c<0:c>0))return Eo(t,l,e,r,o)}var u=s.find(r<0?-1:1);return(r<0?s.inclusiveLeft:s.inclusiveRight)&&(u=wo(t,u,r,u.line==e.line?i:null)),u?Eo(t,u,e,r,o):null}}return e}function No(t,e,n,r,o){var i=r||1,A=Eo(t,e,n,i,o)||!o&&Eo(t,e,n,i,!0)||Eo(t,e,n,-i,o)||!o&&Eo(t,e,n,-i,!0);return A?A:(t.cantEdit=!0,j(t.first,0))}function wo(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?R(t,j(e.line-1)):null:n>0&&e.ch==(r||x(t,e.line)).text.length?e.line=0;--o)Do(t,{from:r[o].from,to:r[o].to,text:o?[""]:e.text});else Do(t,e)}}function Do(t,e){if(1!=e.text.length||""!=e.text[0]||0!=S(e.from,e.to)){var n=Rr(t,e);qr(t,e,n,t.cm?t.cm.curOp.id:NaN),Bo(t,e,n,K(t,e));var r=[];Xr(t,function(t,n){n||g(r,t.history)!=-1||(So(t.history,e),r.push(t.history)),Bo(t,e,null,K(t,e))})}}function mo(t,e,n){if(!t.cm||!t.cm.state.suppressEdits||n){for(var r,o=t.history,i=t.sel,A="undo"==e?o.done:o.undone,a="undo"==e?o.undone:o.done,s=0;s=0;--d){var M=u(d);if(M)return M.v}}}}function bo(t,e){if(0!=e&&(t.first+=e,t.sel=new jr(p(t.sel.ranges,function(t){return new Sr(j(t.anchor.line+e,t.anchor.ch),j(t.head.line+e,t.head.ch))}),t.sel.primIndex),t.cm)){hr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;rt.lastLine())){if(e.from.linei&&(e={from:e.from,to:j(i,x(t,i).text.length),text:[e.text[0]],origin:e.origin}),e.removed=D(t,e.from,e.to),n||(n=Rr(t,e)),t.cm?Lo(t.cm,e,r):Pr(t,e,r),po(t,n,vA)}}function Lo(t,e,n){var r=t.doc,o=t.display,i=e.from,A=e.to,a=!1,s=i.line;t.options.lineWrapping||(s=B(st(x(r,i.line))),r.iter(s,A.line+1,function(t){if(t==o.maxLine)return a=!0,!0})),r.sel.contains(e.from,e.to)>-1&&Qt(t),Pr(r,e,n,Nn(t)),t.options.lineWrapping||(r.iter(s,i.line+e.text.length,function(t){var e=ht(t);e>o.maxLineLength&&(o.maxLine=t,o.maxLineLength=e,o.maxLineChanged=!0,a=!1)}),a&&(t.curOp.updateMaxLine=!0)),r.frontier=Math.min(r.frontier,i.line),Nr(t,400);var l=e.text.length-(A.line-i.line)-1;e.full?hr(t):i.line!=A.line||1!=e.text.length||Gr(t.doc,e)?hr(t,i.line,A.line+1,l):pr(t,i.line,"text");var c=jt(t,"changes"),u=jt(t,"change");if(u||c){var g={from:i,to:A,text:e.text,removed:e.removed,origin:e.origin};u&&ye(t,"change",t,g),c&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(g)}t.display.selForContextMenu=null}function vo(t,e,n,r,o){if(r||(r=n),S(r,n)<0){var i=r;r=n,n=i}"string"==typeof e&&(e=t.splitLines(e)),xo(t,{from:n,to:r,text:e,origin:o})}function Qo(t,e,n,r){n0||0==a&&A.clearWhenEmpty!==!1)return A;if(A.replacedWith&&(A.collapsed=!0,A.widgetNode=r("span",[A.replacedWith],"CodeMirror-widget"),o.handleMouseEvents||A.widgetNode.setAttribute("cm-ignore-events","true"),o.insertLeft&&(A.widgetNode.insertLeft=!0)),A.collapsed){if(at(t,e.line,e,n,A)||e.line!=n.line&&at(t,n.line,e,n,A))throw new Error("Inserting collapsed marker partially overlapping an existing one");V()}A.addToHistory&&qr(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,c=e.line,u=t.cm;if(t.iter(c,n.line+1,function(t){u&&A.collapsed&&!u.options.lineWrapping&&st(t)==u.display.maxLine&&(s=!0),A.collapsed&&c!=e.line&&b(t,0),W(t,new G(A,c==e.line?e.ch:null,c==n.line?n.ch:null)),++c}),A.collapsed&&t.iter(e.line,n.line+1,function(e){gt(t,e)&&b(e,0)}),A.clearOnEnter&&HA(A,"beforeCursorEnter",function(){return A.clear()}),A.readOnly&&(H(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),A.collapsed&&(A.id=++sa,A.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),A.collapsed)hr(u,e.line,n.line+1);else if(A.className||A.title||A.startStyle||A.endStyle||A.css)for(var g=e.line;g<=n.line;g++)pr(u,g,"text");A.atomic&&Io(u.doc),ye(u,"markerAdded",u,A)}return A}function Vo(t,e){var n=this;this.markers=t,this.primary=e;for(var r=0;r-1)return e.state.draggingText(t),void setTimeout(function(){return e.display.input.focus()},20);try{var l=t.dataTransfer.getData("Text");if(l){var c;if(e.state.draggingText&&!e.state.draggingText.copy&&(c=e.listSelections()),po(e.doc,kr(n,n)),c)for(var u=0;u=0;e--)vo(t.doc,"",r[e].from,r[e].to,"+delete");er(t)})}function li(t,e){var n=x(t.doc,e),r=st(n);r!=n&&(e=B(r));var o=mt(r),i=o?o[0].level%2?Nt(r):Et(r):0;return j(e,i)}function ci(t,e){for(var n,r=x(t.doc,e);n=At(r);)r=n.find(1,!0).line,e=null;var o=mt(r),i=o?o[0].level%2?Et(r):Nt(r):r.text.length;return j(null==e?B(r):e,i)}function ui(t,e){var n=li(t,e.line),r=x(t.doc,n.line),o=mt(r);if(!o||0==o[0].level){var i=Math.max(0,r.text.search(/\S/)),A=e.line==n.line&&e.ch<=i&&e.ch;return j(n.line,A?0:i)}return n}function gi(t,e,n){if("string"==typeof e&&(e=Ea[e],!e))return!1;t.display.input.ensurePolled();var r=t.display.shift,o=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),o=e(t)!=LA}finally{t.display.shift=r,t.state.suppressEdits=!1}return o}function di(t,e,n){for(var r=0;ro-400&&0==S(Ta.pos,n)?r="triple":Ia&&Ia.time>o-400&&0==S(Ia.pos,n)?(r="double",Ta={time:o,pos:n}):(r="single",Ia={time:o,pos:n});var A,a=t.doc.sel,l=IA?e.metaKey:e.ctrlKey;t.options.dragDrop&&VA&&!t.isReadOnly()&&"single"==r&&(A=a.contains(n))>-1&&(S((A=a.ranges[A]).from(),n)<0||n.xRel>0)&&(S(A.to(),n)>0||n.xRel<0)?Ci(t,e,n,l):yi(t,e,n,r,l)}function Ci(t,e,n,r){var o=t.display,i=+new Date,A=gr(t,function(a){lA&&(o.scroller.draggable=!1),t.state.draggingText=!1,Bt(document,"mouseup",A),Bt(o.scroller,"drop",A),Math.abs(e.clientX-a.clientX)+Math.abs(e.clientY-a.clientY)<10&&(Ut(a),!r&&+new Date-200E&&o.push(new Sr(j(p,E),j(p,d(I,l,i))))}o.length||o.push(new Sr(n,n)),ho(u,Ur(h.ranges.slice(0,M).concat(o),M),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var N=g,w=N.anchor,C=e;if("single"!=r){var y;y="double"==r?t.findWordAt(e):new Sr(j(e.line,0),R(u,j(e.line+1,0))),S(y.anchor,w)>0?(C=y.head,w=z(N.from(),y.anchor)):(C=y.anchor,w=k(N.to(),y.head))}var D=h.ranges.slice(0);D[M]=new Sr(R(u,w),C),ho(u,Ur(D,M),QA)}}function a(e){var n=++N,o=Cn(t,e,!0,"rect"==r);if(o)if(0!=S(o,T)){t.curOp.focus=i(),A(o);var s=Yn(l,u);(o.line>=s.to||o.lineE.bottom?20:0;c&&setTimeout(gr(t,function(){N==n&&(l.scroller.scrollTop+=c,a(e))}),50)}}function s(e){t.state.selectingText=!1,N=1/0,Ut(e),l.input.focus(),Bt(document,"mousemove",w),Bt(document,"mouseup",C),u.history.lastSelOrigin=null}var l=t.display,u=t.doc;Ut(e);var g,M,h=u.sel,p=h.ranges;if(o&&!e.shiftKey?(M=u.sel.contains(n),g=M>-1?p[M]:new Sr(n,n)):(g=u.sel.primary(),M=u.sel.primIndex),TA?e.shiftKey&&e.metaKey:e.altKey)r="rect",o||(g=new Sr(n,n)),n=Cn(t,e,!0,!0),M=-1;else if("double"==r){var f=t.findWordAt(n);g=t.display.shift||u.extend?ao(u,g,f.anchor,f.head):f}else if("triple"==r){var I=new Sr(j(n.line,0),R(u,j(n.line+1,0)));g=t.display.shift||u.extend?ao(u,g,I.anchor,I.head):I}else g=ao(u,g,n);o?M==-1?(M=p.length,ho(u,Ur(p.concat([g]),M),{scroll:!1,origin:"*mouse"})):p.length>1&&p[M].empty()&&"single"==r&&!e.shiftKey?(ho(u,Ur(p.slice(0,M).concat(p.slice(M+1)),0),{scroll:!1,origin:"*mouse"}),h=u.sel):co(u,M,g,QA):(M=0,ho(u,new jr([g],0),QA),h=u.sel);var T=n,E=l.wrapper.getBoundingClientRect(),N=0,w=gr(t,function(t){Ft(t)?a(t):s(t)}),C=gr(t,s);t.state.selectingText=C,HA(document,"mousemove",w),HA(document,"mouseup",C)}function xi(t,e,n,r){var o,i;try{o=e.clientX,i=e.clientY}catch(t){return!1}if(o>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&Ut(e);var A=t.display,a=A.lineDiv.getBoundingClientRect();if(i>a.bottom||!jt(t,n))return zt(e);i-=a.top-A.viewOffset;for(var s=0;s=o){var c=L(t.doc,i),u=t.options.gutters[s];return Lt(t,n,t,c,u,e),zt(e)}}}function Di(t,e){return xi(t,e,"gutterClick",!0)}function mi(t,e){Re(t.display,e)||bi(t,e)||vt(t,e,"contextmenu")||t.display.input.onContextMenu(e)}function bi(t,e){return!!jt(t,"gutterContextMenu")&&xi(t,e,"gutterContextMenu",!1)}function Bi(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),An(t)}function Li(t){function e(e,r,o,i){t.defaults[e]=r,o&&(n[e]=i?function(t,e,n){n!=Ca&&o(t,e,n)}:o)}var n=t.optionHandlers;t.defineOption=e,t.Init=Ca,e("value","",function(t,e){return t.setValue(e)},!0),e("mode",null,function(t,e){t.doc.modeOption=e,Hr(t)},!0),e("indentUnit",2,Hr,!0),e("indentWithTabs",!1),e("smartIndent",!0),e("tabSize",4,function(t){Vr(t),An(t),hr(t)},!0),e("lineSeparator",null,function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter(function(t){for(var o=0;;){var i=t.text.indexOf(e,o);if(i==-1)break;o=i+e.length,n.push(j(r,i))}r++});for(var o=n.length-1;o>=0;o--)vo(t.doc,e,n[o],j(n[o].line,n[o].ch+e.length))}}),e("specialChars",/[\u0000-\u001f\u007f\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Ca&&t.refresh()}),e("specialCharPlaceholder",de,function(t){return t.refresh()},!0),e("electricChars",!0),e("inputStyle",fA?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),e("spellcheck",!1,function(t,e){return t.getInputField().spellcheck=e},!0),e("rtlMoveVisually",!EA),e("wholeLineUpdateBefore",!0),e("theme","default",function(t){Bi(t),vi(t)},!0),e("keyMap","default",function(t,e,n){var r=ai(e),o=n!=Ca&&ai(n);o&&o.detach&&o.detach(t,r),r.attach&&r.attach(t,o||null)}),e("extraKeys",null),e("lineWrapping",!1,ji,!0),e("gutters",[],function(t){Qr(t.options),vi(t)},!0),e("fixedGutter",!0,function(t,e){t.display.gutters.style.left=e?En(t.display)+"px":"0",t.refresh()},!0),e("coverGutterNextToScrollbar",!1,function(t){return Wn(t)},!0),e("scrollbarStyle","native",function(t){Zn(t),Wn(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)},!0),e("lineNumbers",!1,function(t){Qr(t.options),vi(t)},!0),e("firstLineNumber",1,vi,!0),e("lineNumberFormatter",function(t){return t},vi,!0),e("showCursorWhenSelecting",!1,xn,!0),e("resetSelectionOnContextMenu",!0),e("lineWiseCopyCut",!0),e("readOnly",!1,function(t,e){"nocursor"==e?(jn(t),t.display.input.blur(),t.display.disabled=!0):t.display.disabled=!1,t.display.input.readOnlyChanged(e)}),e("disableInput",!1,function(t,e){e||t.display.input.reset()},!0),e("dragDrop",!0,Qi),e("allowDropFileTypes",null),e("cursorBlinkRate",530),e("cursorScrollMargin",0),e("cursorHeight",1,xn,!0),e("singleCursorHeightPerLine",!0,xn,!0),e("workTime",100),e("workDelay",100),e("flattenSpans",!0,Vr,!0),e("addModeClass",!1,Vr,!0),e("pollInterval",100),e("undoDepth",200,function(t,e){return t.doc.history.undoDepth=e}),e("historyEventDelay",1250),e("viewportMargin",10,function(t){return t.refresh()},!0),e("maxHighlightLength",1e4,Vr,!0),e("moveInputWithCursor",!0,function(t,e){e||t.display.input.resetPosition()}),e("tabindex",null,function(t,e){return t.display.input.getField().tabIndex=e||""}),e("autofocus",null)}function vi(t){vr(t),hr(t),setTimeout(function(){return Sn(t)},20)}function Qi(t,e,n){var r=n&&n!=Ca;if(!e!=!r){var o=t.display.dragFunctions,i=e?HA:Bt;i(t.display.scroller,"dragstart",o.start),i(t.display.scroller,"dragenter",o.enter),i(t.display.scroller,"dragover",o.over),i(t.display.scroller,"dragleave",o.leave),i(t.display.scroller,"drop",o.drop)}}function ji(t){t.options.lineWrapping?(A(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(xA(t.display.wrapper,"CodeMirror-wrap"),pt(t)),wn(t),hr(t),An(t),setTimeout(function(){return Wn(t)},100)}function Si(t,e){var n=this;if(!(this instanceof Si))return new Si(t,e);this.options=e=e?l(e):{},l(ya,e,!1),Qr(e);var r=e.value;"string"==typeof r&&(r=new ca(r,e.mode,null,e.lineSeparator)),this.doc=r;var o=new Si.inputStyles[e.inputStyle](this),i=this.display=new y(t,r,o);i.wrapper.CodeMirror=this,vr(this),Bi(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),e.autofocus&&!fA&&i.input.focus(),Zn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new u,keySeq:null,specialChars:null},aA&&sA<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Ui(this),$o(),rr(this),this.curOp.forceUpdate=!0,Wr(this,r),e.autofocus&&!fA||this.hasFocus()?setTimeout(s(Qn,this),20):jn(this);for(var A in xa)xa.hasOwnProperty(A)&&xa[A](n,e[A],Ca);Un(this),e.finishInit&&e.finishInit(this);for(var a=0;a400}var o=t.display;HA(o.scroller,"mousedown",gr(t,Ni)),aA&&sA<11?HA(o.scroller,"dblclick",gr(t,function(e){if(!vt(t,e)){var n=Cn(t,e);if(n&&!Di(t,e)&&!Re(t.display,e)){Ut(e);var r=t.findWordAt(n);so(t.doc,r.anchor,r.head)}}})):HA(o.scroller,"dblclick",function(e){return vt(t,e)||Ut(e)}),yA||HA(o.scroller,"contextmenu",function(e){return mi(t,e)});var i,A={end:0};HA(o.scroller,"touchstart",function(e){if(!vt(t,e)&&!n(e)){o.input.ensurePolled(),clearTimeout(i);var r=+new Date;o.activeTouch={start:r,moved:!1,prev:r-A.end<=300?A:null},1==e.touches.length&&(o.activeTouch.left=e.touches[0].pageX,o.activeTouch.top=e.touches[0].pageY)}}),HA(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),HA(o.scroller,"touchend",function(n){var i=o.activeTouch;if(i&&!Re(o,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var A,a=t.coordsChar(o.activeTouch,"page");A=!i.prev||r(i,i.prev)?new Sr(a,a):!i.prev.prev||r(i,i.prev.prev)?t.findWordAt(a):new Sr(j(a.line,0),R(t.doc,j(a.line+1,0))),t.setSelection(A.anchor,A.head),t.focus(),Ut(n)}e()}),HA(o.scroller,"touchcancel",e),HA(o.scroller,"scroll",function(){o.scroller.clientHeight&&(Rn(t,o.scroller.scrollTop),Fn(t,o.scroller.scrollLeft,!0),Lt(t,"scroll",t))}),HA(o.scroller,"mousewheel",function(e){return Vn(t,e)}),HA(o.scroller,"DOMMouseScroll",function(e){return Vn(t,e)}),HA(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(e){vt(t,e)||Yt(e)},over:function(e){vt(t,e)||(Ko(t,e),Yt(e))},start:function(e){return Zo(t,e)},drop:gr(t,Jo),leave:function(e){vt(t,e)||_o(t)}};var a=o.input.getField();HA(a,"keyup",function(e){return Ti.call(t,e)}),HA(a,"keydown",gr(t,fi)),HA(a,"keypress",gr(t,Ei)),HA(a,"focus",function(e){return Qn(t,e)}),HA(a,"blur",function(e){return jn(t,e)})}function ki(t,e,n,r){var o,i=t.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=te(t,e):n="prev");var A=t.options.tabSize,a=x(i,e),s=c(a.text,null,A);a.stateAfter&&(a.stateAfter=null);var l,u=a.text.match(/^\s*/)[0];if(r||/\S/.test(a.text)){if("smart"==n&&(l=i.mode.indent(o,a.text.slice(u.length),a.text),l==LA||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=e>i.first?c(x(i,e-1).text,null,A):0:"add"==n?l=s+t.options.indentUnit:"subtract"==n?l=s-t.options.indentUnit:"number"==typeof n&&(l=s+n),l=Math.max(0,l);var g="",d=0;if(t.options.indentWithTabs)for(var h=Math.floor(l/A);h;--h)d+=A,g+="\t";if(d1)if(ma&&ma.text.join("\n")==e){if(r.ranges.length%ma.text.length==0){s=[];for(var l=0;l=0;u--){var g=r.ranges[u],d=g.from(),M=g.to();g.empty()&&(n&&n>0?d=j(d.line,d.ch-n):t.state.overwrite&&!A?M=j(M.line,Math.min(x(i,M.line).text.length,M.ch+h(a).length)):ma&&ma.lineWise&&ma.text.join("\n")==e&&(d=M=j(d.line,0))),c=t.curOp.updateInput;var f={from:d,to:M,text:s?s[u%s.length]:a,origin:o||(A?"paste":t.state.cutIncoming?"cut":"+input")};xo(t.doc,f),ye(t,"inputRead",t,f)}e&&!A&&Fi(t,e),er(t),t.curOp.updateInput=c,t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=!1}function Ri(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||ur(e,function(){return Yi(e,n,0,null,"paste")}),!0}function Fi(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.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=t.getModeAt(o.head),A=!1;if(i.electricChars){for(var a=0;a-1){A=ki(t,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(x(t.doc,o.head.line).text.slice(0,o.head.ch))&&(A=ki(t,o.head.line,"smart"));A&&ye(t,"electricInput",t,o.head.line)}}}function Oi(t){for(var e=[],n=[],r=0;rr&&(ki(e,i.head.line,t,!0),r=i.head.line,o==e.doc.sel.primIndex&&er(e));else{var A=i.from(),a=i.to(),s=Math.max(r,A.line);r=Math.min(e.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&co(e.doc,o,new Sr(A,c[o].to()),vA)}}}),getTokenAt:function(t,e){return oe(this,t,e)},getLineTokens:function(t,e){return oe(this,j(t),e,!0)},getTokenTypeAt:function(t){t=R(this.doc,t);var e,n=$t(this,x(this.doc,t.line)),r=0,o=(n.length-1)/2,i=t.ch;if(0==i)e=n[2];else for(;;){var A=r+o>>1;if((A?n[2*A-1]:0)>=i)o=A;else{if(!(n[2*A+1]i&&(t=i,o=!0),r=x(this.doc,t)}else r=t;return ln(this,r,{top:0,left:0},e||"page",n).top+(o?this.doc.height-Mt(r):0)},defaultTextHeight:function(){return fn(this.display)},defaultCharWidth:function(){return In(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,o){var i=this.display;t=gn(this,R(this.doc,t));var A=t.bottom,a=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),i.sizer.appendChild(e),"over"==r)A=t.top;else if("above"==r||"near"==r){var s=Math.max(i.wrapper.clientHeight,this.doc.height),l=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>s)&&t.top>e.offsetHeight?A=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=s&&(A=t.bottom),a+e.offsetWidth>l&&(a=l-e.offsetWidth)}e.style.top=A+"px",e.style.left=e.style.right="","right"==o?(a=i.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==o?a=0:"middle"==o&&(a=(i.sizer.clientWidth-e.offsetWidth)/2),e.style.left=a+"px"),n&&qn(this,a,A,a+e.offsetWidth,A+e.offsetHeight)},triggerOnKeyDown:dr(fi),triggerOnKeyPress:dr(Ei),triggerOnKeyUp:Ti,execCommand:function(t){if(Ea.hasOwnProperty(t))return Ea[t].call(null,this)},triggerElectric:dr(function(t){Fi(this,t)}),findPosH:function(t,e,n,r){var o=this,i=1;e<0&&(i=-1,e=-e);for(var A=R(this.doc,t),a=0;a0&&a(n.charAt(r-1));)--r;for(;o.5)&&wn(this),Lt(this,"refresh",this)}),swapDoc:dr(function(t){var e=this.doc;return e.cm=null,Wr(this,t),An(this),this.display.input.reset(),this.scrollTo(t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,ye(this,"swapDoc",this,e),e}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},St(t),t.registerHelper=function(e,r,o){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=o},t.registerGlobalHelper=function(e,r,o,i){t.registerHelper(e,r,i),n[e]._global.push({pred:o,val:i})}}function Pi(t,e,n,r,o){function i(){var e=a+n;return!(e=t.first+t.size)&&(a=e,c=x(t,e))}function A(t){var e=(o?xt:Dt)(c,s,n,!0);if(null==e){if(t||!i())return!1;s=o?(n<0?Nt:Et)(c):n<0?c.text.length:0}else s=e;return!0}var a=e.line,s=e.ch,l=n,c=x(t,a);if("char"==r)A();else if("column"==r)A(!0);else if("word"==r||"group"==r)for(var u=null,g="group"==r,d=t.cm&&t.cm.getHelper(e,"wordChars"),M=!0;!(n<0)||A(!M);M=!1){var h=c.text.charAt(s)||"\n",p=N(h,d)?"w":g&&"\n"==h?"n":!g||/\s/.test(h)?null:"p";if(!g||M||p||(p="s"),u&&u!=p){n<0&&(n=1,A());break}if(p&&(u=p),n>0&&!A(!M))break}var f=No(t,j(a,s),e,l,!0);return S(e,f)||(f.hitSide=!0),f}function Xi(t,e,n,r){var o,i=t.doc,A=e.left;if("page"==r){var a=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(a-.5*fn(t.display),3);o=(n>0?e.bottom:e.top)+n*s}else"line"==r&&(o=n>0?e.bottom+3:e.top-3);for(var l;l=hn(t,A,o),l.outside;){if(n<0?o<=0:o>=i.height){l.hitSide=!0;break}o+=5*n}return l}function Wi(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new u,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null}function Ji(t,e){var n=Ke(t,e.line);if(!n||n.hidden)return null;var r=x(t.doc,e.line),o=We(n,r,e.line),i=mt(r),A="left";if(i){var a=Ct(i,e.ch);A=a%2?"right":"left"}var s=$e(o.map,e.ch,A);return s.offset="right"==s.collapse?s.end:s.start,s}function Zi(t,e){return e&&(t.bad=!0),t}function Ki(t,e,n,r,o){function i(t){return function(e){return e.id==t}}function A(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(null!=n)return void(a+=""==n?e.textContent.replace(/\u200b/g,""):n);var c,u=e.getAttribute("cm-marker");if(u){var g=t.findMarks(j(r,0),j(o+1,0),i(+u));return void(g.length&&(c=g[0].find())&&(a+=D(t.doc,c.from,c.to).join(l)))}if("false"==e.getAttribute("contenteditable"))return;for(var d=0;d=15&&(gA=!1,lA=!0);var wA,CA=IA&&(cA||gA&&(null==NA||NA<12.11)),yA=oA||aA&&sA>=9,xA=function(e,n){var r=e.className,o=t(n).exec(r);if(o){var i=r.slice(o.index+o[0].length);e.className=r.slice(0,o.index)+(i?o[1]+i:"")}};wA=document.createRange?function(t,e,n,r){var o=document.createRange();return o.setEnd(r||t,n),o.setStart(t,e),o}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(t){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var DA=function(t){t.select()};pA?DA=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:aA&&(DA=function(t){try{t.select()}catch(t){}}),u.prototype.set=function(t,e){clearTimeout(this.id),this.id=setTimeout(e,t)};var mA,bA,BA=30,LA={toString:function(){return"CodeMirror.Pass"}},vA={scroll:!1},QA={origin:"*mouse"},jA={origin:"+move"},SA=[""],UA=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,kA=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,zA=!1,YA=!1,RA=null,FA=function(){function t(t){return t<=247?n.charAt(t):1424<=t&&t<=1524?"R":1536<=t&&t<=1773?r.charAt(t-1536):1774<=t&&t<=2220?"r":8192<=t&&t<=8203?"w":8204==t?"b":"L"}function e(t,e,n){this.level=t,this.from=e,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm",o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,A=/[LRr]/,a=/[Lb1n]/,s=/[1n]/,l="L";return function(n){if(!o.test(n))return!1;for(var r=n.length,c=[],u=0;u=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.pose},eatSpace:function(){for(var t=this,e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++t.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},backUp:function(t){this.pos-=t},column:function(){return this.lastColumnPos0?null:(r&&e!==!1&&(this.pos+=r[0].length),r)}var o=function(t){return n?t.toLowerCase():t},i=this.string.substr(this.pos,t.length);if(o(i)==o(t))return e!==!1&&(this.pos+=t.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}}},St(se),se.prototype.lineNo=function(){return B(this)};var qA,$A={},ta={},ea=null,na=null,ra={left:0,right:0,top:0,bottom:0},oa=0,ia=null;aA?ia=-.53:oA?ia=15:uA?ia=-.7:dA&&(ia=-1/3),Pn.prototype=l({update:function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var o=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var i=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=t.scrollWidth-t.clientWidth+i+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},setScrollLeft:function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},setScrollTop:function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},zeroWidthHack:function(){var t=IA&&!MA?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new u,this.disableVert=new u},enableZeroWidthBar:function(t,e){function n(){var r=t.getBoundingClientRect(),o=document.elementFromPoint(r.left+1,r.bottom-1);o!=t?t.style.pointerEvents="none":e.set(1e3,n)}t.style.pointerEvents="auto",e.set(1e3,n)},clear:function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)}},Pn.prototype),Xn.prototype=l({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},Xn.prototype);var Aa={native:Pn,null:Xn},aa=0;Cr.prototype.signal=function(t,e){jt(t,e)&&this.events.push(arguments)},Cr.prototype.finish=function(){for(var t=this,e=0;e=0&&S(t,o.to())<=0)return r}return-1}},Sr.prototype={from:function(){return z(this.anchor,this.head)},to:function(){return k(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}},ko.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=this,r=t,o=t+e;r1||!(this.children[0]instanceof ko))){var s=[];this.collapse(s),this.children=[new ko(s)],this.children[0].parent=this}},collapse:function(t){for(var e=this,n=0;n50){for(var a=i.lines.length%25+25,s=a;s10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=this,o=0;oe.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=o&&e&&this.collapsed&&hr(e,o,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Io(e.doc)),e&&ye(e,"markerCleared",e,this),n&&or(e),this.parent&&this.parent.clear()}},Oo.prototype.find=function(t,e){var n=this;null==t&&"bookmark"==this.type&&(t=1);for(var r,o,i=0;i=0;l--)xo(r,o[l]);s?Mo(this,s):this.cm&&er(this.cm)}),undo:Mr(function(){mo(this,"undo")}),redo:Mr(function(){mo(this,"redo")}),undoSelection:Mr(function(){mo(this,"undo",!0)}),redoSelection:Mr(function(){mo(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r=t.ch)&&e.push(o.marker.parent||o.marker)}return e},findMarks:function(t,e,n){t=R(this,t),e=R(this,e);var r=[],o=t.line;return this.iter(t.line,e.line+1,function(i){var A=i.markedSpans;if(A)for(var a=0;a=s.to||null==s.from&&o!=t.line||null!=s.from&&o==e.line&&s.from>=e.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++o}),r},getAllMarks:function(){var t=[];return this.iter(function(e){var n=e.markedSpans;if(n)for(var r=0;rt?(e=t,!0):(t-=i,void++n)}),R(this,j(n,e))},indexFromPos:function(t){t=R(this,t);var e=t.ch;if(t.linee&&(e=t.from),null!=t.to&&t.to0)o=new j(o.line,o.ch+1),t.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),j(o.line,o.ch-2),o,"+transpose");else if(o.line>t.doc.first){var A=x(t.doc,o.line-1).text;A&&(o=new j(o.line,1),t.replaceRange(i.charAt(0)+t.doc.lineSeparator()+A.charAt(A.length-1),j(o.line-1,A.length-1),o,"+transpose")); }n.push(new Sr(o,o))}t.setSelections(n)})},newlineAndIndent:function(t){return ur(t,function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;rt.firstLine()&&(r=j(r.line-1,x(t.doc,r.line-1).length)),o.ch==x(t.doc,o.line).text.length&&o.linee.viewTo-1)return!1;var i,A,a;r.line==e.viewFrom||0==(i=yn(t,r.line))?(A=B(e.view[0].line),a=e.view[0].node):(A=B(e.view[i].line),a=e.view[i-1].node.nextSibling);var s,l,c=yn(t,o.line);if(c==e.view.length-1?(s=e.viewTo-1,l=e.lineDiv.lastChild):(s=B(e.view[c+1].line)-1,l=e.view[c+1].node.previousSibling),!a)return!1;for(var u=t.doc.splitLines(Ki(t,a,l,A,s)),g=D(t.doc,j(A,0),j(s,x(t.doc,s).text.length));u.length>1&&g.length>1;)if(h(u)==h(g))u.pop(),g.pop(),s--;else{if(u[0]!=g[0])break;u.shift(),g.shift(),A++}for(var d=0,M=0,p=u[0],f=g[0],I=Math.min(p.length,f.length);d1||u[0]||S(w,C)?(vo(t.doc,u,w,C,"+input"),!0):void 0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&(this.composing=null,this.pollContent()||hr(this.cm),this.div.blur(),this.div.focus())},readFromDOMSoon:function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){t.readDOMTimeout=null,t.composing||!t.cm.isReadOnly()&&t.pollContent()||ur(t.cm,function(){return hr(t.cm)})},80))},setUneditable:function(t){t.contentEditable="false"},onKeyPress:function(t){t.preventDefault(),this.cm.isReadOnly()||gr(this.cm,Yi)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0)},readOnlyChanged:function(t){this.div.contentEditable=String("nocursor"!=t)},onContextMenu:I,resetPosition:I,needsContentAttribute:!0},Wi.prototype),$i.prototype=l({init:function(t){function e(t){if(!vt(o,t)){if(o.somethingSelected())zi({lineWise:!1,text:o.getSelections()}),r.inaccurateSelection&&(r.prevInput="",r.inaccurateSelection=!1,A.value=ma.text.join("\n"),DA(A));else{if(!o.options.lineWiseCopyCut)return;var e=Oi(o);zi({lineWise:!0,text:e.text}),"cut"==t.type?o.setSelections(e.ranges,null,vA):(r.prevInput="",A.value=e.text.join("\n"),DA(A))}"cut"==t.type&&(o.state.cutIncoming=!0)}}var n=this,r=this,o=this.cm,i=this.wrapper=Vi(),A=this.textarea=i.firstChild;t.wrapper.insertBefore(i,t.wrapper.firstChild),pA&&(A.style.width="0px"),HA(A,"input",function(){aA&&sA>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),HA(A,"paste",function(t){vt(o,t)||Ri(t,o)||(o.state.pasteIncoming=!0,r.fastPoll())}),HA(A,"cut",e),HA(A,"copy",e),HA(t.scroller,"paste",function(e){Re(t,e)||vt(o,e)||(o.state.pasteIncoming=!0,r.focus())}),HA(t.lineSpace,"selectstart",function(e){Re(t,e)||Ut(e)}),HA(A,"compositionstart",function(){var t=o.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:t,range:o.markText(t,o.getCursor("to"),{className:"CodeMirror-composing"})}}),HA(A,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},prepareSelection:function(){var t=this.cm,e=t.display,n=t.doc,r=Dn(t);if(t.options.moveInputWithCursor){var o=gn(t,n.sel.primary().head,"div"),i=e.wrapper.getBoundingClientRect(),A=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,o.top+A.top-i.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,o.left+A.left-i.left))}return r},showSelection:function(t){var e=this.cm,r=e.display;n(r.cursorDiv,t.cursors),n(r.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},reset:function(t){if(!this.contextMenuPending){var e,n,r=this.cm,o=r.doc;if(r.somethingSelected()){this.prevInput="";var i=o.sel.primary();e=XA&&(i.to().line-i.from().line>100||(n=r.getSelection()).length>1e3);var A=e?"-":n||r.getSelection();this.textarea.value=A,r.state.focused&&DA(this.textarea),aA&&sA>=9&&(this.hasSelection=A)}else t||(this.prevInput=this.textarea.value="",aA&&sA>=9&&(this.hasSelection=null));this.inaccurateSelection=e}},getField:function(){return this.textarea},supportsTouch:function(){return!1},focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!fA||i()!=this.textarea))try{this.textarea.focus()}catch(t){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},fastPoll:function(){function t(){var r=n.poll();r||e?(n.pollingFast=!1,n.slowPoll()):(e=!0,n.polling.set(60,t))}var e=!1,n=this;n.pollingFast=!0,n.polling.set(20,t)},poll:function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||PA(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var o=n.value;if(o==r&&!e.somethingSelected())return!1;if(aA&&sA>=9&&this.hasSelection===o||IA&&/[\uf700-\uf7ff]/.test(o))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="​"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var A=0,a=Math.min(r.length,o.length);A1e3||o.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=o,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){aA&&sA>=9&&(this.hasSelection=null),this.fastPoll()},onContextMenu:function(t){function e(){if(null!=A.selectionStart){var t=o.somethingSelected(),e="​"+(t?A.value:"");A.value="⇚",A.value=e,r.prevInput=t?"":"​",A.selectionStart=1,A.selectionEnd=e.length,i.selForContextMenu=o.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=u,A.style.cssText=c,aA&&sA<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=s),null!=A.selectionStart){(!aA||aA&&sA<9)&&e();var t=0,n=function(){i.selForContextMenu==o.doc.sel&&0==A.selectionStart&&A.selectionEnd>0&&"​"==r.prevInput?gr(o,Co)(o):t++<10?i.detectingSelectAll=setTimeout(n,500):i.input.reset()};i.detectingSelectAll=setTimeout(n,200)}}var r=this,o=r.cm,i=o.display,A=r.textarea,a=Cn(o,t),s=i.scroller.scrollTop;if(a&&!gA){var l=o.options.resetSelectionOnContextMenu;l&&o.doc.sel.contains(a)==-1&&gr(o,ho)(o.doc,kr(a),vA);var c=A.style.cssText,u=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var g=r.wrapper.getBoundingClientRect();A.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-g.top-5)+"px; left: "+(t.clientX-g.left-5)+"px;\n z-index: 1000; background: "+(aA?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var d;if(lA&&(d=window.scrollY),i.input.focus(),lA&&window.scrollTo(null,d),i.input.reset(),o.somethingSelected()||(A.value=r.prevInput=" "),r.contextMenuPending=!0,i.selForContextMenu=o.doc.sel,clearTimeout(i.detectingSelectAll),aA&&sA>=9&&e(),yA){Yt(t);var M=function(){Bt(window,"mouseup",M),setTimeout(n,20)};HA(window,"mouseup",M)}else setTimeout(n,50)}},readOnlyChanged:function(t){t||this.reset()},setUneditable:I,needsContentAttribute:!1},$i.prototype),Li(Si),Gi(Si);var ba="iter insert remove copy getEditor constructor".split(" ");for(var Ba in ca.prototype)ca.prototype.hasOwnProperty(Ba)&&g(ba,Ba)<0&&(Si.prototype[Ba]=function(t){return function(){return t.apply(this.doc,arguments)}}(ca.prototype[Ba]));return St(ca),Si.inputStyles={textarea:$i,contenteditable:Wi},Si.defineMode=function(t){Si.defaults.mode||"null"==t||(Si.defaults.mode=t),Gt.apply(this,arguments)},Si.defineMIME=Pt,Si.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),Si.defineMIME("text/plain","null"),Si.defineExtension=function(t,e){Si.prototype[t]=e},Si.defineDocExtension=function(t,e){ca.prototype[t]=e},Si.fromTextArea=tA,eA(Si),Si.version="5.21.0",Si})},,,,,,,,,,,,,,function(t,e,n){!function(t){t(n(406))}(function(t){"use strict";function e(t,e){if(!t.hasOwnProperty(e))throw new Error("Undefined state "+e+" in simple mode")}function n(t,e){if(!t)return/(?:)/;var n="";return t instanceof RegExp?(t.ignoreCase&&(n="i"),t=t.source):t=String(t),new RegExp((e===!1?"":"^")+"(?:"+t+")",n)}function r(t){if(!t)return null;if("string"==typeof t)return t.replace(/\./g," ");for(var e=[],n=0;n2){r.pending=[];for(var g=2;g-1)return t.Pass;var A=r.indent.length-1,a=e[r.state];t:for(;;){for(var l=0;l0&&e.to.ch-e.from.ch!=n.to.ch-n.from.ch}function r(t,e,n){var r=t.options.hintOptions,o={};for(var i in h)o[i]=h[i];if(r)for(var i in r)void 0!==r[i]&&(o[i]=r[i]);if(n)for(var i in n)void 0!==n[i]&&(o[i]=n[i]);return o.hint.resolve&&(o.hint=o.hint.resolve(t,e)),o}function o(t){return"string"==typeof t?t:t.text}function i(t,e){function n(t,n){var o;o="string"!=typeof n?function(t){return n(t,e)}:r.hasOwnProperty(n)?r[n]:n,i[t]=o}var r={Up:function(){e.moveFocus(-1)},Down:function(){e.moveFocus(1)},PageUp:function(){e.moveFocus(-e.menuSize()+1,!0)},PageDown:function(){e.moveFocus(e.menuSize()-1,!0)},Home:function(){e.setFocus(0)},End:function(){e.setFocus(e.length-1)},Enter:e.pick,Tab:e.pick,Esc:e.close},o=t.options.customKeys,i=o?{}:r;if(o)for(var A in o)o.hasOwnProperty(A)&&n(A,o[A]);var a=t.options.extraKeys;if(a)for(var A in a)a.hasOwnProperty(A)&&n(A,a[A]);return i}function A(t,e){for(;e&&e!=t;){if("LI"===e.nodeName.toUpperCase()&&e.parentNode==t)return e;e=e.parentNode}}function a(e,n){this.completion=e,this.data=n,this.picked=!1;var r=this,a=e.cm,s=this.hints=document.createElement("ul");s.className="CodeMirror-hints",this.selectedHint=n.selectedHint||0;for(var l=n.list,c=0;cs.clientHeight+1,x=a.getScrollInfo();if(C>0){var D=w.bottom-w.top,m=p.top-(p.bottom-w.top);if(m-D>0)s.style.top=(I=p.top-D)+"px",T=!1;else if(D>N){s.style.height=N-5+"px",s.style.top=(I=p.bottom-w.top)+"px";var b=a.getCursor();n.from.ch!=b.ch&&(p=a.cursorCoords(b),s.style.left=(f=p.left)+"px",w=s.getBoundingClientRect())}}var B=w.right-E;if(B>0&&(w.right-w.left>E&&(s.style.width=E-5+"px",B-=w.right-w.left-E),s.style.left=(f=p.left-B)+"px"),y)for(var L=s.firstChild;L;L=L.nextSibling)L.style.paddingRight=a.display.nativeBarWidth+"px";if(a.addKeyMap(this.keyMap=i(e,{moveFocus:function(t,e){r.changeActive(r.selectedHint+t,e)},setFocus:function(t){r.changeActive(t)},menuSize:function(){return r.screenAmount()},length:l.length,close:function(){e.close()},pick:function(){r.pick()},data:n})),e.options.closeOnUnfocus){var v;a.on("blur",this.onBlur=function(){v=setTimeout(function(){e.close()},100)}),a.on("focus",this.onFocus=function(){clearTimeout(v)})}return a.on("scroll",this.onScroll=function(){var t=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),r=I+x.top-t.top,o=r-(window.pageYOffset||(document.documentElement||document.body).scrollTop);return T||(o+=s.offsetHeight),o<=n.top||o>=n.bottom?e.close():(s.style.top=r+"px",void(s.style.left=f+x.left-t.left+"px"))}),t.on(s,"dblclick",function(t){var e=A(s,t.target||t.srcElement);e&&null!=e.hintId&&(r.changeActive(e.hintId),r.pick())}),t.on(s,"click",function(t){var n=A(s,t.target||t.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),e.options.completeOnSingleClick&&r.pick())}),t.on(s,"mousedown",function(){setTimeout(function(){a.focus()},20)}),t.signal(n,"select",l[0],s.firstChild),!0}function s(t,e){if(!t.somethingSelected())return e;for(var n=[],r=0;r0?e(t):r(o+1)})}var i=s(t,o);r(0)};return i.async=!0,i.supportsSelection=!0,i}return(r=e.getHelper(e.getCursor(),"hintWords"))?function(e){return t.hint.fromList(e,{words:r})}:t.hint.anyword?function(e,n){return t.hint.anyword(e,n)}:function(){}}var u="CodeMirror-hint",g="CodeMirror-hint-active";t.showHint=function(t,e,n){if(!e)return t.showHint(n);n&&n.async&&(e.async=!0);var r={hint:e};if(n)for(var o in n)r[o]=n[o];return t.showHint(r)},t.defineExtension("showHint",function(n){n=r(this,this.getCursor("start"),n);var o=this.listSelections();if(!(o.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;i=this.data.list.length?e=n?this.data.list.length-1:0:e<0&&(e=n?0:this.data.list.length-1),this.selectedHint!=e){var r=this.hints.childNodes[this.selectedHint];r.className=r.className.replace(" "+g,""),r=this.hints.childNodes[this.selectedHint=e],r.className+=" "+g,r.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+3),t.signal(this.data,"select",this.data.list[this.selectedHint],r)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},t.registerHelper("hint","auto",{resolve:c}),t.registerHelper("hint","fromList",function(e,n){var r=e.getCursor(),o=e.getTokenAt(r),i=t.Pos(r.line,o.end);if(o.string&&/\w/.test(o.string[o.string.length-1]))var A=o.string,a=t.Pos(r.line,o.start);else var A="",a=i;for(var s=[],l=0;l,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};t.defineOption("hintOptions",null)})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(508);"string"==typeof r&&(r=[[t.id,r,""]]);n(9)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,".CodeMirror{border:1px solid #ddd}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-atom-2{color:#397}.cm-s-default .cm-atom-3{color:#fa1}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable{color:#019dff}.cm-s-default .cm-operator{color:#49adff}.cm-s-default .cm-property{color:#878696}.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-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}",""])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(406),i=r(o);i.default.defineSimpleMode("urule",{start:[{regex:/"(?:[^\\]|\\.)*?"/,token:"string"},{regex:/(function)(\s+)([a-z$][\w$]*)/,token:["keyword",null,"variable-2"]},{regex:/(rule|loopRule|loopTarget|loopStart|loopEnd|if|then|else|end)\b/,token:"keyword"},{regex:/(\u89C4\u5219|\u5faa\u73af\u89c4\u5219|\u5faa\u73af\u5bf9\u8c61|\u5f00\u59cb\u524d\u52a8\u4f5c|\u7ed3\u675f\u540e\u52a8\u4f5c|\u5982\u679C|\u90A3\u4E48|\u5426\u5219|\u7ED3\u675F)/,token:"keyword"},{regex:/(true|false|null|and|or|importParameterLibrary|importVariableLibrary|importConstantLibrary|importActionLibrary|salience|loop|effective-date|expires-date|enabled|debug|activation-group|agenda-group|auto-focus)\b/,token:"atom"},{regex:/\s+(\u6216\u8005|\u6216|\u5E76\u4E14|\u4E14)\s+/,token:"atom"},{regex:/\u53C2\u6570/,token:"atom-2"},{regex:/(out|eval|all|exist|collect|count)\b/,token:"atom-3"},{regex:/\.([\w$_\u4e00-\u9fa5][\w$_\u4e00-\u9fa5\d]*)*/,token:"property"},{regex:/0x[a-f\d]+|[-+]?(?:\.\d+|\d+\.?\d*)(?:e[-+]?\d+)?/i,token:"number"},{regex:/\/\/.*/,token:"comment"},{regex:/\/(?:[^\\]|\\.)*?\//,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/(Endwith|NotEndwith|Startwith|NotStartwith|In|NotIn|Match|NotMatch|'EqualsIgnoreCase|NotEqualsIgnoreCase)\b/,token:"operator"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0},{regex:/[\w$_\u4e00-\u9fa5][\w$_\u4e00-\u9fa5\d]*/,token:"variable"},{regex:/<>/}}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],lineComment:"//"}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var n=0,r=t.length;n=0;)t=codeMirror.getStateAfter(e).block,e--;return e<0&&(t="import"),t}function s(t,e,n,r){var o=t.getCursor(),i=n(t,o),A=/\b(?:string|comment)\b/,a=/^[\w$_\u4e00-\u9fa5]*$/;if(!A.test(i.type)){i.state=g.default.innerMode(t.getMode(),i.state).state,"property"==i.type?i={start:o.ch-i.string.length+1,end:o.ch+i.string.length-1,string:i.string.replace(".",""),state:i.state}:a.test(i.string)?i.end>o.ch&&(i.end=o.ch,i.string=i.string.slice(0,o.ch-i.start)):i={start:o.ch,end:o.ch,string:"",state:i.state};for(var s=i;;){if(s=n(t,d(o.line,s.start)),"property"!=s.type)break;if(s=n(t,d(o.line,s.start)),!l)var l=[];l.push(s)}return{list:c(i,l,e,r),from:d(o.line,i.start),to:d(o.line,i.end)}}}function l(t,e){var n=T,r=A(t);if("urule"==r.name){var o=a();"import"==o?n=M:"rule"==o?n=h:"if"==o?n=p:"then"==o?n=f:"end"==o&&(n=I)}return s(t,n,function(t,e){return t.getTokenAt(e)},e)}function c(t,e,n,r){function A(t){0!=t.toUpperCase().lastIndexOf(c.replace(/\s*/,"").toUpperCase(),0)||i(l,t)||l.push(t)}function s(t){var e=a();if(codeMirror._library&&("if"==e||"then"==e)){for(var n=codeMirror._library,r=n.actionLibraries||[],o=n.variableCategories||[],i=n.constantCategories||[],s=0;s