From cea06226dea55d65ba9c4c39329194c65ce7de29 Mon Sep 17 00:00:00 2001 From: Pawan Rawal Date: Wed, 12 Apr 2017 18:44:27 +1000 Subject: [PATCH] UI: Allow sharing of queries --- cmd/dgraph/dashboard.go | 76 +++++++ cmd/dgraph/main.go | 37 +++- dashboard/build/asset-manifest.json | 8 +- dashboard/build/index.html | 2 +- .../{main.d27e6f36.css => main.31d8e6df.css} | 6 +- dashboard/build/static/js/main.5f944870.js | 52 ----- dashboard/build/static/js/main.7e044d7e.js | 53 +++++ dashboard/package.json | 2 + dashboard/public/index.html | 1 + dashboard/src/actions/index.js | 188 ++++++++++++++++-- dashboard/src/assets/css/App.css | 4 + dashboard/src/assets/css/Navbar.css | 24 +++ dashboard/src/components/Navbar.js | 72 ++++++- dashboard/src/containers/App.js | 67 ++++++- dashboard/src/containers/Editor.js | 4 +- dashboard/src/containers/Helpers.js | 8 + dashboard/src/containers/NavbarContainer.js | 18 ++ dashboard/src/index.js | 13 +- dashboard/src/reducers/index.js | 4 +- dashboard/src/reducers/share.js | 30 +++ schema/parse_test.go | 6 + schema/state.go | 4 + 22 files changed, 586 insertions(+), 93 deletions(-) rename dashboard/build/static/css/{main.d27e6f36.css => main.31d8e6df.css} (65%) delete mode 100644 dashboard/build/static/js/main.5f944870.js create mode 100644 dashboard/build/static/js/main.7e044d7e.js create mode 100644 dashboard/src/assets/css/Navbar.css create mode 100644 dashboard/src/containers/NavbarContainer.js create mode 100644 dashboard/src/reducers/share.js diff --git a/cmd/dgraph/dashboard.go b/cmd/dgraph/dashboard.go index c4344fc9b46..9aa0d02e7f2 100644 --- a/cmd/dgraph/dashboard.go +++ b/cmd/dgraph/dashboard.go @@ -19,8 +19,24 @@ package main import ( "encoding/json" "net/http" + "regexp" + + "github.com/dgraph-io/dgraph/protos/graphp" + "github.com/dgraph-io/dgraph/x" ) +func homeHandler(h http.Handler, reg *regexp.Regexp) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + // If path is '/hexValue', lets return the index.html. + if reg.MatchString(r.URL.Path) { + http.ServeFile(w, r, uiDir+"/index.html") + return + } + + h.ServeHTTP(w, r) + }) +} + type keyword struct { // Type could be a predicate, function etc. Type string `json:"type"` @@ -34,6 +50,11 @@ type keywords struct { // Used to return a list of keywords, so that UI can show them for autocompletion. func keywordHandler(w http.ResponseWriter, r *http.Request) { addCorsHeaders(w) + if r.Method != "GET" { + http.Error(w, x.ErrorInvalidMethod, http.StatusBadRequest) + return + } + var kws keywords predefined := []string{ "@facets", @@ -86,3 +107,58 @@ func keywordHandler(w http.ResponseWriter, r *http.Request) { } w.Write(js) } + +func hasOnlySharePred(mutation *graphp.Mutation) bool { + for _, nq := range mutation.Set { + if nq.Predicate != INTERNAL_SHARE { + return false + } + } + + for _, nq := range mutation.Del { + if nq.Predicate != INTERNAL_SHARE { + return false + } + } + return true +} + +func hasSharePred(mutation *graphp.Mutation) bool { + for _, nq := range mutation.Set { + if nq.Predicate == INTERNAL_SHARE { + return true + } + } + + for _, nq := range mutation.Del { + if nq.Predicate == INTERNAL_SHARE { + return true + } + } + return false +} + +type dashboardState struct { + Share bool `json:"share"` + SharePred string `json:"share_pred"` +} + +func initialState(w http.ResponseWriter, r *http.Request) { + addCorsHeaders(w) + if r.Method != "GET" { + http.Error(w, x.ErrorInvalidMethod, http.StatusBadRequest) + return + } + + ds := dashboardState{ + Share: !*noshare, + SharePred: INTERNAL_SHARE, + } + + js, err := json.Marshal(ds) + if err != nil { + http.Error(w, err.Error(), http.StatusInternalServerError) + return + } + w.Write(js) +} diff --git a/cmd/dgraph/main.go b/cmd/dgraph/main.go index da563b2796e..5a8636275e5 100644 --- a/cmd/dgraph/main.go +++ b/cmd/dgraph/main.go @@ -35,6 +35,7 @@ import ( "os" "os/signal" "path" + "regexp" "runtime" "runtime/pprof" "strconv" @@ -70,6 +71,7 @@ var ( bindall = flag.Bool("bindall", false, "Use 0.0.0.0 instead of localhost to bind to all addresses on local machine.") nomutations = flag.Bool("nomutations", false, "Don't allow mutations on this server.") + noshare = flag.Bool("noshare", false, "Don't allow sharing queries through the UI.") tracing = flag.Float64("trace", 0.0, "The ratio of queries to trace.") cpuprofile = flag.String("cpu", "", "write cpu profile to file") memprofile = flag.String("mem", "", "write memory profile to file") @@ -229,14 +231,39 @@ func applyMutations(ctx context.Context, m *taskp.Mutations) error { return nil } +const INTERNAL_SHARE = "_share_" + +func ismutationAllowed(mutation *graphp.Mutation) error { + if *nomutations { + if *noshare { + return x.Errorf("Mutations are forbidden on this server.") + } + + // Sharing is allowed, lets check that mutation should have only internal + // share predicate. + if !hasOnlySharePred(mutation) { + return x.Errorf("Only mutations with: %v as predicate are allowed ", + INTERNAL_SHARE) + } + } + // Mutations are allowed but sharing isn't allowed. + if *noshare { + if hasSharePred(mutation) { + return x.Errorf("Mutations with: %v as predicate are not allowed ", + INTERNAL_SHARE) + } + } + return nil +} + func convertAndApply(ctx context.Context, mutation *graphp.Mutation) (map[string]uint64, error) { var allocIds map[string]uint64 var m taskp.Mutations var err error var mr mutationResult - if *nomutations { - return nil, fmt.Errorf("Mutations are forbidden on this server.") + if err := ismutationAllowed(mutation); err != nil { + return nil, err } if mr, err = convertToEdges(ctx, mutation.Set); err != nil { @@ -801,8 +828,12 @@ func setupServer(che chan error) { http.HandleFunc("/admin/backup", backupHandler) // UI related API's. - http.Handle("/", http.FileServer(http.Dir(uiDir))) + // Share urls have a hex string as the shareId. So if + // our url path matches it, we wan't to serve index.html. + reg := regexp.MustCompile(`\/0[xX][0-9a-fA-F]+`) + http.Handle("/", homeHandler(http.FileServer(http.Dir(uiDir)), reg)) http.HandleFunc("/ui/keywords", keywordHandler) + http.HandleFunc("/ui/init", initialState) // Initilize the servers. go serveGRPC(grpcl) diff --git a/dashboard/build/asset-manifest.json b/dashboard/build/asset-manifest.json index ac9674fa161..1f36f293c60 100644 --- a/dashboard/build/asset-manifest.json +++ b/dashboard/build/asset-manifest.json @@ -1,8 +1,8 @@ { - "main.css": "static/css/main.d27e6f36.css", - "main.css.map": "static/css/main.d27e6f36.css.map", - "main.js": "static/js/main.5f944870.js", - "main.js.map": "static/js/main.5f944870.js.map", + "main.css": "static/css/main.31d8e6df.css", + "main.css.map": "static/css/main.31d8e6df.css.map", + "main.js": "static/js/main.7e044d7e.js", + "main.js.map": "static/js/main.7e044d7e.js.map", "static/media/addNodeIcon.png": "static/media/addNodeIcon.a1a2d01b.png", "static/media/backIcon.png": "static/media/backIcon.dd0baa69.png", "static/media/connectIcon.png": "static/media/connectIcon.d5267b8d.png", diff --git a/dashboard/build/index.html b/dashboard/build/index.html index fb04b61328e..a16b790329f 100644 --- a/dashboard/build/index.html +++ b/dashboard/build/index.html @@ -1 +1 @@ -Dgraph UI
\ No newline at end of file +Dgraph UI
\ No newline at end of file diff --git a/dashboard/build/static/css/main.d27e6f36.css b/dashboard/build/static/css/main.31d8e6df.css similarity index 65% rename from dashboard/build/static/css/main.d27e6f36.css rename to dashboard/build/static/css/main.31d8e6df.css index 5d31923540b..9054d2837ae 100644 --- a/dashboard/build/static/css/main.d27e6f36.css +++ b/dashboard/build/static/css/main.31d8e6df.css @@ -1,4 +1,4 @@ -.Scratchpad{height:auto;min-height:100px;width:100%;background-color:#fffaef;margin-top:10px;margin-left:5px}.Scratchpad-header{margin:0 5px;border-bottom:1px solid #000;padding-bottom:5px}.Scratchpad-heading{display:inline;padding-top:5px}.Scratchpad-clear{display:inline}.Scratchpad-entries{width:100%;margin-top:5px;margin-left:5px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.Scratchpad-entries:after{content:"";-webkit-box-flex:1;-ms-flex:1 0 250px;flex:1 0 250px}.Scratchpad-key-val{-webkit-box-flex:0;-ms-flex:0 0 250px;flex:0 0 250px;padding-right:15px}.Scratchpad-key{display:inline-block;font-weight:700}.Scratchpad-val{display:inline-block;float:right}.Previous-query{padding:5px}.Previous-query-pre{white-space:pre-wrap;background-color:#fdfdfc;margin:5px 0;word-break:break-word}.Previous-query pre:hover{border:1px solid gray;cursor:pointer}.Previous-query button{visibility:hidden}.Previous-query:hover button{visibility:visible}.Previous-query-popover-pre{font-size:10px;white-space:pre-wrap}.Previous-query-text{padding:0 10px 0 5px}.App-statistics{display:inline-block;padding:5px;margin-top:5px;margin-bottom:100px}.App-fullscreen{position:absolute;top:0;right:20px;height:30px;width:30px;cursor:pointer}.App-fs-icon{font-size:20px;padding:5px}.App-tip{border:1px solid #87cb74;background-color:#e3f9e3;padding:10px;margin:10px;border-radius:3px;height:auto}.App-prev-queries{margin-top:10px;margin-bottom:100px;width:100%;margin:10px 0 15px;padding:0 5px 5px}.App-prev-queries-table{width:100%;margin-top:10px;border:1px solid #000}.App-prev-queries-tbody{height:500px;overflow-y:scroll;display:block}.App-prev-queries .input-group-btn{padding-left:5px}.App-label{text-align:center;margin:0 0 0 10px;width:20px;display:inline-block}:focus{outline:none}.vis-tooltip{border:1px solid #f3d98c;background-color:#fffad5;padding:10px;margin:10px;border-radius:3px;height:auto;position:absolute!important}#properties em,#properties pre{height:100%}input.form-control{font-size:16px!important}.form-group{margin-bottom:5px}.Editor-basic{margin-bottom:10px;border:1px solid gray}.CodeMirror{font-family:monospace;height:300px;color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.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}.CodeMirror-foldmarker{color:blue;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25BE"}.CodeMirror-foldgutter-folded:after{content:"\25B8"}.CodeMirror{height:350px;font-size:12px}.cm-invalidchar{color:#000}.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}.Graph,.Graph-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex:auto;flex:auto}.Graph{font-size:12px;word-break:break-all;width:100%;border:1px solid gray;border-bottom:0;position:relative}.Graph-s{width:100%;height:500px}.Graph-fs{width:100%;height:100%;margin-top:0}.Graph-hourglass{background:url(/static/media/hourglass.4cb9d9d2.svg) no-repeat 50%}.Graph-error{color:red}.Graph-error,.Graph-success{padding-left:10px;padding-top:20px}.Graph-success{color:green}.Graph-label-box{padding:5px;border-width:0 1px 1px;border-style:solid;border-color:gray;text-align:right;margin:0}.Graph-label{margin-right:10px;margin-left:auto;-webkit-box-flex:0;-ms-flex:0 auto;flex:0 auto}.Graph-full-height{position:relative;border-bottom:0;-webkit-box-flex:1;-ms-flex:auto;flex:auto;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.Graph-fixed-height{height:500px;overflow:auto;position:relative}.vis-network{-webkit-box-flex:1;-ms-flex:auto;flex:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.vis-network>canvas{-webkit-box-flex:1;-ms-flex:auto;flex:auto}.progress .progress-bar{-webkit-transition:none;transition:none}.Graph-progress{top:50%;margin:auto 10%;position:absolute;width:80%}.vis-down,.vis-left,.vis-right,.vis-up,.vis-zoomExtends{display:none!important}.vis-navigation{position:absolute;top:60px;right:5px}.Graph-hide{display:none}.Graph-wrapper>.nav-tabs{border-bottom:none}.Graph-outer{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.Graph-json pre{border:none;border-radius:0}.Graph-json{border:1px solid gray;background:#f9f9f9}.Graph-json pre,code{font-size:12px;background:#f9f9f9}.vis .overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.vis-active{box-shadow:0 0 10px #86d5f8}.vis [class*=span]{min-height:0;width:auto}div.vis-configuration{position:relative;display:block;float:left;font-size:12px}div.vis-configuration-wrapper{display:block;width:700px}div.vis-configuration-wrapper:after{clear:both;content:"";display:block}div.vis-configuration.vis-config-option-container{display:block;width:495px;background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;margin-top:20px;left:10px;padding-left:5px}div.vis-configuration.vis-config-button{display:block;width:495px;height:25px;vertical-align:middle;line-height:25px;background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;margin-top:20px;left:10px;padding-left:5px;cursor:pointer;margin-bottom:30px}div.vis-configuration.vis-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}div.vis-configuration.vis-config-item{display:block;float:left;width:495px;height:25px;vertical-align:middle;line-height:25px}div.vis-configuration.vis-config-item.vis-config-s2{left:10px;background-color:#f7f8fa;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s3{left:20px;background-color:#e4e9f0;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s4{left:30px;background-color:#cfd8e6;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-header{font-size:18px;font-weight:700}div.vis-configuration.vis-config-label{width:120px;height:25px;line-height:25px}div.vis-configuration.vis-config-label.vis-config-s3{width:110px}div.vis-configuration.vis-config-label.vis-config-s4{width:100px}div.vis-configuration.vis-config-colorBlock{top:1px;width:30px;height:19px;border:1px solid #444;border-radius:2px;padding:0;margin:0;cursor:pointer}input.vis-configuration.vis-config-checkbox{left:-5px}input.vis-configuration.vis-config-rangeinput{position:relative;top:-5px;width:60px;padding:1px;margin:0;pointer-events:none}input.vis-configuration.vis-config-range{-webkit-appearance:none;border:0 solid #fff;background-color:transparent;width:300px;height:20px}input.vis-configuration.vis-config-range::-webkit-slider-runnable-track{width:300px;height:5px;background:#dedede;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);border:1px solid #999;box-shadow:0 0 3px 0 #aaa;border-radius:3px}input.vis-configuration.vis-config-range::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #14334b;height:17px;width:17px;border-radius:50%;background:#3876c2;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3876c2),color-stop(100%,#385380));background:-webkit-linear-gradient(top,#3876c2,#385380);background:linear-gradient(180deg,#3876c2 0,#385380);box-shadow:0 0 1px 0 #111927;margin-top:-7px}input.vis-configuration.vis-config-range:focus{outline:0}input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track{background:#9d9d9d;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#9d9d9d),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#9d9d9d,#c8c8c8 99%);background:linear-gradient(180deg,#9d9d9d 0,#c8c8c8 99%)}input.vis-configuration.vis-config-range::-moz-range-track{width:300px;height:10px;background:#dedede;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);border:1px solid #999;box-shadow:0 0 3px 0 #aaa;border-radius:3px}input.vis-configuration.vis-config-range::-moz-range-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}input.vis-configuration.vis-config-range::-ms-track{width:300px;height:5px;background:0 0;border-color:transparent;border-width:6px 0;color:transparent}input.vis-configuration.vis-config-range::-ms-fill-lower{background:#777;border-radius:10px}input.vis-configuration.vis-config-range::-ms-fill-upper{background:#ddd;border-radius:10px}input.vis-configuration.vis-config-range::-ms-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:focus::-ms-fill-lower{background:#888}input.vis-configuration.vis-config-range:focus::-ms-fill-upper{background:#ccc}.vis-configuration-popup{position:absolute;background:rgba(57,76,89,.85);border:2px solid #f2faff;line-height:30px;height:30px;width:150px;text-align:center;color:#fff;font-size:14px;border-radius:4px;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.vis-configuration-popup:after,.vis-configuration-popup:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.vis-configuration-popup:after{border-color:rgba(136,183,213,0);border-left-color:rgba(57,76,89,.85);border-width:8px;margin-top:-8px}.vis-configuration-popup:before{border-color:rgba(194,225,245,0);border-left-color:#f2faff;border-width:12px;margin-top:-12px}div.vis-tooltip{position:absolute;visibility:hidden;padding:5px;white-space:nowrap;font-family:verdana;font-size:14px;color:#000;background-color:#f5f4ed;border-radius:3px;border:1px solid #808074;box-shadow:3px 3px 10px rgba(0,0,0,.2);pointer-events:none;z-index:5}div.vis-color-picker{position:absolute;top:0;left:30px;margin-top:-140px;margin-left:30px;width:310px;height:444px;z-index:1;padding:10px;border-radius:15px;background-color:#fff;display:none;box-shadow:0 0 10px 0 rgba(0,0,0,.5)}div.vis-color-picker div.vis-arrow{position:absolute;top:147px;left:5px}div.vis-color-picker div.vis-arrow:after,div.vis-color-picker div.vis-arrow:before{right:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}div.vis-color-picker div.vis-arrow:after{border-color:hsla(0,0%,100%,0);border-right-color:#fff;border-width:30px;margin-top:-30px}div.vis-color-picker div.vis-color{position:absolute;width:289px;height:289px;cursor:pointer}div.vis-color-picker div.vis-brightness{position:absolute;top:313px}div.vis-color-picker div.vis-opacity{position:absolute;top:350px}div.vis-color-picker div.vis-selector{position:absolute;top:137px;left:137px;width:15px;height:15px;border-radius:15px;border:1px solid #fff;background:#4c4c4c;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4c4c4c),color-stop(12%,#595959),color-stop(25%,#666),color-stop(39%,#474747),color-stop(50%,#2c2c2c),color-stop(51%,#000),color-stop(60%,#111),color-stop(76%,#2b2b2b),color-stop(91%,#1c1c1c),color-stop(100%,#131313));background:-webkit-linear-gradient(top,#4c4c4c,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313);background:linear-gradient(180deg,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313)}div.vis-color-picker div.vis-new-color{left:159px;text-align:right;padding-right:2px}div.vis-color-picker div.vis-initial-color,div.vis-color-picker div.vis-new-color{position:absolute;width:140px;height:20px;border:1px solid rgba(0,0,0,.1);border-radius:5px;top:380px;font-size:10px;color:rgba(0,0,0,.4);vertical-align:middle;line-height:20px}div.vis-color-picker div.vis-initial-color{left:10px;text-align:left;padding-left:2px}div.vis-color-picker div.vis-label{position:absolute;width:300px;left:10px}div.vis-color-picker div.vis-label.vis-brightness{top:300px}div.vis-color-picker div.vis-label.vis-opacity{top:338px}div.vis-color-picker div.vis-button{position:absolute;width:68px;height:25px;border-radius:10px;vertical-align:middle;text-align:center;line-height:25px;top:410px;border:2px solid #d9d9d9;background-color:#f7f7f7;cursor:pointer}div.vis-color-picker div.vis-button.vis-cancel{left:5px}div.vis-color-picker div.vis-button.vis-load{left:82px}div.vis-color-picker div.vis-button.vis-apply{left:159px}div.vis-color-picker div.vis-button.vis-save{left:236px}div.vis-color-picker input.vis-range{width:290px;height:20px}div.vis-network div.vis-manipulation{box-sizing:content-box;border-bottom:1px;border:0 solid #d6d9d8;background:#fff;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(48%,#fcfcfc),color-stop(50%,#fafafa),color-stop(100%,#fcfcfc));background:-webkit-linear-gradient(top,#fff,#fcfcfc 48%,#fafafa 50%,#fcfcfc);background:linear-gradient(180deg,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc);padding-top:4px;position:absolute;left:0;top:0;width:100%;height:28px}div.vis-network div.vis-edit-mode{position:absolute;left:0;top:5px;height:30px}div.vis-network div.vis-close{position:absolute;right:0;top:0;width:30px;height:30px;background-position:20px 3px;background-repeat:no-repeat;background-image:url(/static/media/cross.260c9c65.png);cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-close:hover{opacity:.6}div.vis-network div.vis-edit-mode div.vis-button,div.vis-network div.vis-manipulation div.vis-button{float:left;font-family:verdana;font-size:12px;border-radius:15px;display:inline-block;background-position:0 0;background-repeat:no-repeat;height:24px;margin-left:10px;cursor:pointer;padding:0 8px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-manipulation div.vis-button:hover{box-shadow:1px 1px 8px rgba(0,0,0,.2)}div.vis-network div.vis-manipulation div.vis-button:active{box-shadow:1px 1px 8px rgba(0,0,0,.5)}div.vis-network div.vis-manipulation div.vis-button.vis-back{background-image:url(/static/media/backIcon.dd0baa69.png)}div.vis-network div.vis-manipulation div.vis-button.vis-none:hover{box-shadow:1px 1px 8px transparent;cursor:default}div.vis-network div.vis-manipulation div.vis-button.vis-none:active{box-shadow:1px 1px 8px transparent}div.vis-network div.vis-manipulation div.vis-button.vis-none{padding:0}div.vis-network div.vis-manipulation div.notification{margin:2px;font-weight:700}div.vis-network div.vis-manipulation div.vis-button.vis-add{background-image:url(/static/media/addNodeIcon.a1a2d01b.png)}div.vis-network div.vis-edit-mode div.vis-button.vis-edit,div.vis-network div.vis-manipulation div.vis-button.vis-edit{background-image:url(/static/media/editIcon.d5422321.png)}div.vis-network div.vis-edit-mode div.vis-button.vis-edit.vis-edit-mode{background-color:#fcfcfc;border:1px solid #ccc}div.vis-network div.vis-manipulation div.vis-button.vis-connect{background-image:url(/static/media/connectIcon.d5267b8d.png)}div.vis-network div.vis-manipulation div.vis-button.vis-delete{background-image:url(/static/media/deleteIcon.02d321ed.png)}div.vis-network div.vis-edit-mode div.vis-label,div.vis-network div.vis-manipulation div.vis-label{margin:0 0 0 23px;line-height:25px}div.vis-network div.vis-manipulation div.vis-separator-line{float:left;display:inline-block;width:1px;height:21px;background-color:#bdbdbd;margin:0 7px 0 15px}div.vis-network div.vis-navigation div.vis-button{width:34px;height:34px;border-radius:17px;position:absolute;display:inline-block;background-position:2px 2px;background-repeat:no-repeat;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-navigation div.vis-button:hover{box-shadow:0 0 3px 3px rgba(56,207,21,.3)}div.vis-network div.vis-navigation div.vis-button:active{box-shadow:0 0 1px 3px rgba(56,207,21,.95)}div.vis-network div.vis-navigation div.vis-button.vis-up{background-image:url(data:image/png;base64,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);bottom:50px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-down{background-image:url(data:image/png;base64,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);bottom:10px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-left{background-image:url(data:image/png;base64,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);bottom:10px;left:15px}div.vis-network div.vis-navigation div.vis-button.vis-right{background-image:url(data:image/png;base64,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);bottom:10px;left:95px}div.vis-network div.vis-navigation div.vis-button.vis-zoomIn{background-image:url(data:image/png;base64,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);bottom:10px;right:15px}div.vis-network div.vis-navigation div.vis-button.vis-zoomOut{background-image:url(data:image/png;base64,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);bottom:10px;right:55px}div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends{background-image:url(data:image/png;base64,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);bottom:50px;right:15px}.vis-current-time{background-color:#ff7f6e;width:2px;z-index:1;pointer-events:none}.vis-rolling-mode-btn{height:40px;width:40px;position:absolute;top:7px;right:20px;border-radius:50%;font-size:28px;cursor:pointer;opacity:.8;color:#fff;font-weight:700;text-align:center;background:#3876c2}.vis-rolling-mode-btn:before{content:"\26F6"}.vis-rolling-mode-btn:hover{opacity:1}.vis-custom-time{background-color:#6e94ff;width:2px;cursor:move;z-index:1}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal{position:absolute;width:100%;height:0;border-bottom:1px solid}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor{border-color:#e5e5e5}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major{border-color:#bfbfbf}.vis-data-axis .vis-y-axis.vis-major{width:100%;position:absolute;color:#4d4d4d;white-space:nowrap}.vis-data-axis .vis-y-axis.vis-major.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-minor{position:absolute;width:100%;color:#bebebe;white-space:nowrap}.vis-data-axis .vis-y-axis.vis-minor.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-title{position:absolute;color:#4d4d4d;white-space:nowrap;bottom:20px;text-align:center}.vis-data-axis .vis-y-axis.vis-title.vis-measure{padding:0;margin:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-title.vis-left{bottom:0;-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left bottom;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.vis-data-axis .vis-y-axis.vis-title.vis-right{bottom:0;-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.vis-legend{background-color:rgba(247,252,255,.65);padding:5px;border:1px solid #b3b3b3;box-shadow:2px 2px 10px hsla(0,0%,60%,.55)}.vis-legend-text{white-space:nowrap;display:inline-block}.vis-item{position:absolute;color:#1a1a1a;border-color:#97b0f8;border-width:1px;background-color:#d5ddf6;display:inline-block;z-index:1}.vis-item.vis-selected{border-color:#ffc200;background-color:#fff785;z-index:2}.vis-editable.vis-selected{cursor:move}.vis-item.vis-point.vis-selected{background-color:#fff785}.vis-item.vis-box{text-align:center;border-style:solid;border-radius:2px}.vis-item.vis-point{background:0 0}.vis-item.vis-dot{position:absolute;padding:0;border-width:4px;border-style:solid;border-radius:4px}.vis-item.vis-range{border-style:solid;border-radius:2px;box-sizing:border-box}.vis-item.vis-background{border:none;background-color:rgba(213,221,246,.4);box-sizing:border-box;padding:0;margin:0}.vis-item .vis-item-overflow{position:relative;width:100%;height:100%;padding:0;margin:0;overflow:hidden}.vis-item-visible-frame{white-space:nowrap}.vis-item.vis-range .vis-item-content{position:relative;display:inline-block}.vis-item.vis-background .vis-item-content{position:absolute;display:inline-block}.vis-item.vis-line{padding:0;position:absolute;width:0;border-left-width:1px;border-left-style:solid}.vis-item .vis-item-content{white-space:nowrap;box-sizing:border-box;padding:5px}.vis-item .vis-onUpdateTime-tooltip{position:absolute;background:#4f81bd;color:#fff;width:200px;text-align:center;white-space:nowrap;padding:5px;border-radius:1px;transition:.4s;-o-transition:.4s;-moz-transition:.4s;-webkit-transition:.4s}.vis-item .vis-delete,.vis-item .vis-delete-rtl{position:absolute;top:0;width:24px;height:24px;box-sizing:border-box;padding:0 5px;cursor:pointer;-webkit-transition:background .2s linear;transition:background .2s linear}.vis-item .vis-delete{right:-24px}.vis-item .vis-delete-rtl{left:-24px}.vis-item .vis-delete-rtl:after,.vis-item .vis-delete:after{content:"\D7";color:red;font-family:arial,sans-serif;font-size:22px;font-weight:700;-webkit-transition:color .2s linear;transition:color .2s linear}.vis-item .vis-delete-rtl:hover,.vis-item .vis-delete:hover{background:red}.vis-item .vis-delete-rtl:hover:after,.vis-item .vis-delete:hover:after{color:#fff}.vis-item .vis-drag-center{position:absolute;width:100%;height:100%;top:0;left:0;cursor:move}.vis-item.vis-range .vis-drag-left{left:-4px;cursor:w-resize}.vis-item.vis-range .vis-drag-left,.vis-item.vis-range .vis-drag-right{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0}.vis-item.vis-range .vis-drag-right{right:-4px;cursor:e-resize}.vis-range.vis-item.vis-readonly .vis-drag-left,.vis-range.vis-item.vis-readonly .vis-drag-right{cursor:auto}.vis-itemset{position:relative;padding:0;margin:0;box-sizing:border-box}.vis-itemset .vis-background,.vis-itemset .vis-foreground{position:absolute;width:100%;height:100%;overflow:visible}.vis-axis{position:absolute;width:100%;height:0;left:0;z-index:1}.vis-foreground .vis-group{position:relative;box-sizing:border-box;border-bottom:1px solid #bfbfbf}.vis-foreground .vis-group:last-child{border-bottom:none}.vis-nesting-group{cursor:pointer}.vis-nested-group{background:#f5f5f5}.vis-label.vis-nesting-group.expanded:before{content:"\25BC"}.vis-label.vis-nesting-group.collapsed-rtl:before{content:"\25C0"}.vis-label.vis-nesting-group.collapsed:before{content:"\25B6"}.vis-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.vis-labelset{overflow:hidden}.vis-labelset,.vis-labelset .vis-label{position:relative;box-sizing:border-box}.vis-labelset .vis-label{left:0;top:0;width:100%;color:#4d4d4d;border-bottom:1px solid #bfbfbf}.vis-labelset .vis-label.draggable{cursor:pointer}.vis-labelset .vis-label:last-child{border-bottom:none}.vis-labelset .vis-label .vis-inner{display:inline-block;padding:5px}.vis-labelset .vis-label .vis-inner.vis-hidden{padding:0}.vis-panel{position:absolute;padding:0;margin:0;box-sizing:border-box}.vis-panel.vis-bottom,.vis-panel.vis-center,.vis-panel.vis-left,.vis-panel.vis-right,.vis-panel.vis-top{border:1px #bfbfbf}.vis-panel.vis-center,.vis-panel.vis-left,.vis-panel.vis-right{border-top-style:solid;border-bottom-style:solid;overflow:hidden}.vis-left.vis-panel.vis-vertical-scroll,.vis-right.vis-panel.vis-vertical-scroll{height:100%;overflow-x:hidden;overflow-y:scroll}.vis-left.vis-panel.vis-vertical-scroll{direction:rtl}.vis-left.vis-panel.vis-vertical-scroll .vis-content,.vis-right.vis-panel.vis-vertical-scroll{direction:ltr}.vis-right.vis-panel.vis-vertical-scroll .vis-content{direction:rtl}.vis-panel.vis-bottom,.vis-panel.vis-center,.vis-panel.vis-top{border-left-style:solid;border-right-style:solid}.vis-background{overflow:hidden}.vis-panel>.vis-content{position:relative}.vis-panel .vis-shadow{position:absolute;width:100%;height:1px;box-shadow:0 0 10px rgba(0,0,0,.8)}.vis-panel .vis-shadow.vis-top{top:-1px;left:0}.vis-panel .vis-shadow.vis-bottom{bottom:-1px;left:0}.vis-graph-group0{fill:#4f81bd;fill-opacity:0;stroke-width:2px;stroke:#4f81bd}.vis-graph-group1{fill:#f79646;fill-opacity:0;stroke-width:2px;stroke:#f79646}.vis-graph-group2{fill:#8c51cf;fill-opacity:0;stroke-width:2px;stroke:#8c51cf}.vis-graph-group3{fill:#75c841;fill-opacity:0;stroke-width:2px;stroke:#75c841}.vis-graph-group4{fill:#ff0100;fill-opacity:0;stroke-width:2px;stroke:#ff0100}.vis-graph-group5{fill:#37d8e6;fill-opacity:0;stroke-width:2px;stroke:#37d8e6}.vis-graph-group6{fill:#042662;fill-opacity:0;stroke-width:2px;stroke:#042662}.vis-graph-group7{fill:#00ff26;fill-opacity:0;stroke-width:2px;stroke:#00ff26}.vis-graph-group8{fill:#f0f;fill-opacity:0;stroke-width:2px;stroke:#f0f}.vis-graph-group9{fill:#8f3938;fill-opacity:0;stroke-width:2px;stroke:#8f3938}.vis-timeline .vis-fill{fill-opacity:.1;stroke:none}.vis-timeline .vis-bar{fill-opacity:.5;stroke-width:1px}.vis-timeline .vis-point{stroke-width:2px;fill-opacity:1}.vis-timeline .vis-legend-background{stroke-width:1px;fill-opacity:.9;fill:#fff;stroke:#c2c2c2}.vis-timeline .vis-outline{stroke-width:1px;fill-opacity:1;fill:#fff;stroke:#e5e5e5}.vis-timeline .vis-icon-fill{fill-opacity:.3;stroke:none}.vis-time-axis{position:relative;overflow:hidden}.vis-time-axis.vis-foreground{top:0;left:0;width:100%}.vis-time-axis.vis-background{position:absolute;top:0;left:0;width:100%;height:100%}.vis-time-axis .vis-text{position:absolute;color:#4d4d4d;padding:3px;overflow:hidden;box-sizing:border-box;white-space:nowrap}.vis-time-axis .vis-text.vis-measure{position:absolute;padding-left:0;padding-right:0;margin-left:0;margin-right:0;visibility:hidden}.vis-time-axis .vis-grid.vis-vertical{position:absolute;border-left:1px solid}.vis-time-axis .vis-grid.vis-vertical-rtl{position:absolute;border-right:1px solid}.vis-time-axis .vis-grid.vis-minor{border-color:#e5e5e5}.vis-time-axis .vis-grid.vis-major{border-color:#bfbfbf}.vis-timeline{position:relative;border:1px solid #bfbfbf;overflow:hidden;padding:0;margin:0;box-sizing:border-box}#properties{min-height:50px;margin-top:5px}.Properties{width:100%;margin-top:5px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:justify;align-content:space-between}.Properties:after{content:""}.Properties-key-val,.Properties:after{-webkit-box-flex:1;-ms-flex:1 0 250px;flex:1 0 250px}.Properties-key-val{padding-right:5px}.Properties-key{display:table-cell;color:green;font-weight:700}.Properties-val{display:table-cell;color:#ba2121}.Properties-facets{display:inline-block;margin-top:5px}@media(max-width:850px){.Properties-key-val,.Properties:after{-webkit-box-flex:1;-ms-flex:1 0 200px;flex:1 0 200px;max-width:200px}}.ResponseInfo{font-size:13px;-webkit-box-flex:0;-ms-flex:0 auto;flex:0 auto}.ResponseInfo-partial{height:auto}.ResponseInfo-button{float:right;margin-right:10px;margin-left:5px}.ResponseInfo-stats{display:-webkit-box;display:-ms-flexbox;display:flex}.ResponseInfo-flex{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%}.Response{width:100%;height:100%;padding:5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}/*! +/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) @@ -8,5 +8,5 @@ * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */.btn-danger,.btn-default,.btn-info,.btn-primary,.btn-success,.btn-warning{text-shadow:0 -1px 0 rgba(0,0,0,.2);box-shadow:inset 0 1px 0 hsla(0,0%,100%,.15),0 1px 1px rgba(0,0,0,.075)}.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.btn-warning.active,.btn-warning:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-danger.disabled,.btn-danger[disabled],.btn-default.disabled,.btn-default[disabled],.btn-info.disabled,.btn-info[disabled],.btn-primary.disabled,.btn-primary[disabled],.btn-success.disabled,.btn-success[disabled],.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-danger,fieldset[disabled] .btn-default,fieldset[disabled] .btn-info,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-success,fieldset[disabled] .btn-warning{box-shadow:none}.btn-danger .badge,.btn-default .badge,.btn-info .badge,.btn-primary .badge,.btn-success .badge,.btn-warning .badge{text-shadow:none}.btn.active,.btn:active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff,#e0e0e0);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(180deg,#fff 0,#e0e0e0);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffffff",endColorstr="#ffe0e0e0",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:focus,.btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.btn-default.active,.btn-default:active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#337ab7,#265a88);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));background-image:linear-gradient(180deg,#337ab7 0,#265a88);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff265a88",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#245580}.btn-primary:focus,.btn-primary:hover{background-color:#265a88;background-position:0 -15px}.btn-primary.active,.btn-primary:active{background-color:#265a88;border-color:#245580}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#265a88;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c,#419641);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(180deg,#5cb85c 0,#419641);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff5cb85c",endColorstr="#ff419641",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{background-color:#419641;border-color:#3e8f3e}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de,#2aabd2);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(180deg,#5bc0de 0,#2aabd2);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff5bc0de",endColorstr="#ff2aabd2",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{background-color:#2aabd2;border-color:#28a4c9}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e,#eb9316);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(180deg,#f0ad4e 0,#eb9316);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff0ad4e",endColorstr="#ffeb9316",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{background-color:#eb9316;border-color:#e38d13}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f,#c12e2a);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(180deg,#d9534f 0,#c12e2a);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffd9534f",endColorstr="#ffc12e2a",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{background-color:#c12e2a;border-color:#b92c28}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#c12e2a;background-image:none}.img-thumbnail,.thumbnail{box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5,#e8e8e8);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(180deg,#f5f5f5 0,#e8e8e8);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff5f5f5",endColorstr="#ffe8e8e8",GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#2e6da4;background-image:-webkit-linear-gradient(top,#337ab7,#2e6da4);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(180deg,#337ab7 0,#2e6da4);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff2e6da4",GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff,#f8f8f8);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(180deg,#fff 0,#f8f8f8);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffffff",endColorstr="#fff8f8f8",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-radius:4px;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#dbdbdb,#e2e2e2);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(180deg,#dbdbdb 0,#e2e2e2);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffdbdbdb",endColorstr="#ffe2e2e2",GradientType=0);background-repeat:repeat-x;box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 hsla(0,0%,100%,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c,#222);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(180deg,#3c3c3c 0,#222);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff3c3c3c",endColorstr="#ff222222",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-radius:4px}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#080808,#0f0f0f);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(180deg,#080808 0,#0f0f0f);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff080808",endColorstr="#ff0f0f0f",GradientType=0);background-repeat:repeat-x;box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}@media (max-width:767px){.navbar .navbar-nav .open .dropdown-menu>.active>a,.navbar .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-image:-webkit-linear-gradient(top,#337ab7,#2e6da4);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(180deg,#337ab7 0,#2e6da4);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff2e6da4",GradientType=0);background-repeat:repeat-x}}.alert{text-shadow:0 1px 0 hsla(0,0%,100%,.2);box-shadow:inset 0 1px 0 hsla(0,0%,100%,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8,#c8e5bc);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(180deg,#dff0d8 0,#c8e5bc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffdff0d8",endColorstr="#ffc8e5bc",GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7,#b9def0);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(180deg,#d9edf7 0,#b9def0);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffd9edf7",endColorstr="#ffb9def0",GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3,#f8efc0);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(180deg,#fcf8e3 0,#f8efc0);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fffcf8e3",endColorstr="#fff8efc0",GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede,#e7c3c3);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(180deg,#f2dede 0,#e7c3c3);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff2dede",endColorstr="#ffe7c3c3",GradientType=0);border-color:#dca7a7}.alert-danger,.progress{background-repeat:repeat-x}.progress{background-image:-webkit-linear-gradient(top,#ebebeb,#f5f5f5);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(180deg,#ebebeb 0,#f5f5f5);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffebebeb",endColorstr="#fff5f5f5",GradientType=0)}.progress-bar{background-image:-webkit-linear-gradient(top,#337ab7,#286090);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#286090));background-image:linear-gradient(180deg,#337ab7 0,#286090);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff286090",GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c,#449d44);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(180deg,#5cb85c 0,#449d44);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff5cb85c",endColorstr="#ff449d44",GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de,#31b0d5);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(180deg,#5bc0de 0,#31b0d5);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff5bc0de",endColorstr="#ff31b0d5",GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e,#ec971f);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(180deg,#f0ad4e 0,#ec971f);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff0ad4e",endColorstr="#ffec971f",GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f,#c9302c);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(180deg,#d9534f 0,#c9302c);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffd9534f",endColorstr="#ffc9302c",GradientType=0);background-repeat:repeat-x}.progress-bar-striped{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)}.list-group{border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{text-shadow:0 -1px 0 #286090;background-image:-webkit-linear-gradient(top,#337ab7,#2b669a);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2b669a));background-image:linear-gradient(180deg,#337ab7 0,#2b669a);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff2b669a",GradientType=0);background-repeat:repeat-x;border-color:#2b669a}.list-group-item.active .badge,.list-group-item.active:focus .badge,.list-group-item.active:hover .badge{text-shadow:none}.panel{box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5,#e8e8e8);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(180deg,#f5f5f5 0,#e8e8e8);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff5f5f5",endColorstr="#ffe8e8e8",GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#337ab7,#2e6da4);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(180deg,#337ab7 0,#2e6da4);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff2e6da4",GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8,#d0e9c6);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(180deg,#dff0d8 0,#d0e9c6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffdff0d8",endColorstr="#ffd0e9c6",GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7,#c4e3f3);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(180deg,#d9edf7 0,#c4e3f3);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffd9edf7",endColorstr="#ffc4e3f3",GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3,#faf2cc);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(180deg,#fcf8e3 0,#faf2cc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fffcf8e3",endColorstr="#fffaf2cc",GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede,#ebcccc);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(180deg,#f2dede 0,#ebcccc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff2dede",endColorstr="#ffebcccc",GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8,#f5f5f5);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(180deg,#e8e8e8 0,#f5f5f5);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffe8e8e8",endColorstr="#fff5f5f5",GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 hsla(0,0%,100%,.1)} -/*# sourceMappingURL=main.d27e6f36.css.map*/ \ No newline at end of file + */.btn-danger,.btn-default,.btn-info,.btn-primary,.btn-success,.btn-warning{text-shadow:0 -1px 0 rgba(0,0,0,.2);box-shadow:inset 0 1px 0 hsla(0,0%,100%,.15),0 1px 1px rgba(0,0,0,.075)}.btn-danger.active,.btn-danger:active,.btn-default.active,.btn-default:active,.btn-info.active,.btn-info:active,.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.btn-warning.active,.btn-warning:active{box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-danger.disabled,.btn-danger[disabled],.btn-default.disabled,.btn-default[disabled],.btn-info.disabled,.btn-info[disabled],.btn-primary.disabled,.btn-primary[disabled],.btn-success.disabled,.btn-success[disabled],.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-danger,fieldset[disabled] .btn-default,fieldset[disabled] .btn-info,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-success,fieldset[disabled] .btn-warning{box-shadow:none}.btn-danger .badge,.btn-default .badge,.btn-info .badge,.btn-primary .badge,.btn-success .badge,.btn-warning .badge{text-shadow:none}.btn.active,.btn:active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-linear-gradient(top,#fff,#e0e0e0);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#e0e0e0));background-image:linear-gradient(180deg,#fff 0,#e0e0e0);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffffff",endColorstr="#ffe0e0e0",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#dbdbdb;border-color:#ccc}.btn-default:focus,.btn-default:hover{background-color:#e0e0e0;background-position:0 -15px}.btn-default.active,.btn-default:active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-default.disabled,.btn-default.disabled.active,.btn-default.disabled.focus,.btn-default.disabled:active,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled],.btn-default[disabled].active,.btn-default[disabled].focus,.btn-default[disabled]:active,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default,fieldset[disabled] .btn-default.active,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:active,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#e0e0e0;background-image:none}.btn-primary{background-image:-webkit-linear-gradient(top,#337ab7,#265a88);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#265a88));background-image:linear-gradient(180deg,#337ab7 0,#265a88);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff265a88",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#245580}.btn-primary:focus,.btn-primary:hover{background-color:#265a88;background-position:0 -15px}.btn-primary.active,.btn-primary:active{background-color:#265a88;border-color:#245580}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled.focus,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled].focus,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#265a88;background-image:none}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c,#419641);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#419641));background-image:linear-gradient(180deg,#5cb85c 0,#419641);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff5cb85c",endColorstr="#ff419641",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:focus,.btn-success:hover{background-color:#419641;background-position:0 -15px}.btn-success.active,.btn-success:active{background-color:#419641;border-color:#3e8f3e}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled.focus,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled].focus,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#419641;background-image:none}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de,#2aabd2);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#2aabd2));background-image:linear-gradient(180deg,#5bc0de 0,#2aabd2);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff5bc0de",endColorstr="#ff2aabd2",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:focus,.btn-info:hover{background-color:#2aabd2;background-position:0 -15px}.btn-info.active,.btn-info:active{background-color:#2aabd2;border-color:#28a4c9}.btn-info.disabled,.btn-info.disabled.active,.btn-info.disabled.focus,.btn-info.disabled:active,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled],.btn-info[disabled].active,.btn-info[disabled].focus,.btn-info[disabled]:active,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info,fieldset[disabled] .btn-info.active,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:active,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#2aabd2;background-image:none}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e,#eb9316);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#eb9316));background-image:linear-gradient(180deg,#f0ad4e 0,#eb9316);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff0ad4e",endColorstr="#ffeb9316",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:focus,.btn-warning:hover{background-color:#eb9316;background-position:0 -15px}.btn-warning.active,.btn-warning:active{background-color:#eb9316;border-color:#e38d13}.btn-warning.disabled,.btn-warning.disabled.active,.btn-warning.disabled.focus,.btn-warning.disabled:active,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled],.btn-warning[disabled].active,.btn-warning[disabled].focus,.btn-warning[disabled]:active,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning,fieldset[disabled] .btn-warning.active,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:active,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#eb9316;background-image:none}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f,#c12e2a);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c12e2a));background-image:linear-gradient(180deg,#d9534f 0,#c12e2a);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffd9534f",endColorstr="#ffc12e2a",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:focus,.btn-danger:hover{background-color:#c12e2a;background-position:0 -15px}.btn-danger.active,.btn-danger:active{background-color:#c12e2a;border-color:#b92c28}.btn-danger.disabled,.btn-danger.disabled.active,.btn-danger.disabled.focus,.btn-danger.disabled:active,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled],.btn-danger[disabled].active,.btn-danger[disabled].focus,.btn-danger[disabled]:active,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger,fieldset[disabled] .btn-danger.active,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:active,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#c12e2a;background-image:none}.img-thumbnail,.thumbnail{box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{background-color:#e8e8e8;background-image:-webkit-linear-gradient(top,#f5f5f5,#e8e8e8);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(180deg,#f5f5f5 0,#e8e8e8);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff5f5f5",endColorstr="#ffe8e8e8",GradientType=0);background-repeat:repeat-x}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{background-color:#2e6da4;background-image:-webkit-linear-gradient(top,#337ab7,#2e6da4);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(180deg,#337ab7 0,#2e6da4);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff2e6da4",GradientType=0);background-repeat:repeat-x}.navbar-default{background-image:-webkit-linear-gradient(top,#fff,#f8f8f8);background-image:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#f8f8f8));background-image:linear-gradient(180deg,#fff 0,#f8f8f8);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffffff",endColorstr="#fff8f8f8",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-radius:4px;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#dbdbdb,#e2e2e2);background-image:-webkit-gradient(linear,left top,left bottom,from(#dbdbdb),to(#e2e2e2));background-image:linear-gradient(180deg,#dbdbdb 0,#e2e2e2);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffdbdbdb",endColorstr="#ffe2e2e2",GradientType=0);background-repeat:repeat-x;box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 hsla(0,0%,100%,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c,#222);background-image:-webkit-gradient(linear,left top,left bottom,from(#3c3c3c),to(#222));background-image:linear-gradient(180deg,#3c3c3c 0,#222);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff3c3c3c",endColorstr="#ff222222",GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);background-repeat:repeat-x;border-radius:4px}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.open>a{background-image:-webkit-linear-gradient(top,#080808,#0f0f0f);background-image:-webkit-gradient(linear,left top,left bottom,from(#080808),to(#0f0f0f));background-image:linear-gradient(180deg,#080808 0,#0f0f0f);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff080808",endColorstr="#ff0f0f0f",GradientType=0);background-repeat:repeat-x;box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-fixed-bottom,.navbar-fixed-top,.navbar-static-top{border-radius:0}@media (max-width:767px){.navbar .navbar-nav .open .dropdown-menu>.active>a,.navbar .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-image:-webkit-linear-gradient(top,#337ab7,#2e6da4);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(180deg,#337ab7 0,#2e6da4);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff2e6da4",GradientType=0);background-repeat:repeat-x}}.alert{text-shadow:0 1px 0 hsla(0,0%,100%,.2);box-shadow:inset 0 1px 0 hsla(0,0%,100%,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8,#c8e5bc);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc));background-image:linear-gradient(180deg,#dff0d8 0,#c8e5bc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffdff0d8",endColorstr="#ffc8e5bc",GradientType=0);background-repeat:repeat-x;border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7,#b9def0);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#b9def0));background-image:linear-gradient(180deg,#d9edf7 0,#b9def0);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffd9edf7",endColorstr="#ffb9def0",GradientType=0);background-repeat:repeat-x;border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3,#f8efc0);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#f8efc0));background-image:linear-gradient(180deg,#fcf8e3 0,#f8efc0);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fffcf8e3",endColorstr="#fff8efc0",GradientType=0);background-repeat:repeat-x;border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede,#e7c3c3);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#e7c3c3));background-image:linear-gradient(180deg,#f2dede 0,#e7c3c3);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff2dede",endColorstr="#ffe7c3c3",GradientType=0);border-color:#dca7a7}.alert-danger,.progress{background-repeat:repeat-x}.progress{background-image:-webkit-linear-gradient(top,#ebebeb,#f5f5f5);background-image:-webkit-gradient(linear,left top,left bottom,from(#ebebeb),to(#f5f5f5));background-image:linear-gradient(180deg,#ebebeb 0,#f5f5f5);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffebebeb",endColorstr="#fff5f5f5",GradientType=0)}.progress-bar{background-image:-webkit-linear-gradient(top,#337ab7,#286090);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#286090));background-image:linear-gradient(180deg,#337ab7 0,#286090);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff286090",GradientType=0);background-repeat:repeat-x}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c,#449d44);background-image:-webkit-gradient(linear,left top,left bottom,from(#5cb85c),to(#449d44));background-image:linear-gradient(180deg,#5cb85c 0,#449d44);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff5cb85c",endColorstr="#ff449d44",GradientType=0);background-repeat:repeat-x}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de,#31b0d5);background-image:-webkit-gradient(linear,left top,left bottom,from(#5bc0de),to(#31b0d5));background-image:linear-gradient(180deg,#5bc0de 0,#31b0d5);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff5bc0de",endColorstr="#ff31b0d5",GradientType=0);background-repeat:repeat-x}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e,#ec971f);background-image:-webkit-gradient(linear,left top,left bottom,from(#f0ad4e),to(#ec971f));background-image:linear-gradient(180deg,#f0ad4e 0,#ec971f);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff0ad4e",endColorstr="#ffec971f",GradientType=0);background-repeat:repeat-x}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f,#c9302c);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9534f),to(#c9302c));background-image:linear-gradient(180deg,#d9534f 0,#c9302c);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffd9534f",endColorstr="#ffc9302c",GradientType=0);background-repeat:repeat-x}.progress-bar-striped{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)}.list-group{border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{text-shadow:0 -1px 0 #286090;background-image:-webkit-linear-gradient(top,#337ab7,#2b669a);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2b669a));background-image:linear-gradient(180deg,#337ab7 0,#2b669a);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff2b669a",GradientType=0);background-repeat:repeat-x;border-color:#2b669a}.list-group-item.active .badge,.list-group-item.active:focus .badge,.list-group-item.active:hover .badge{text-shadow:none}.panel{box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5,#e8e8e8);background-image:-webkit-gradient(linear,left top,left bottom,from(#f5f5f5),to(#e8e8e8));background-image:linear-gradient(180deg,#f5f5f5 0,#e8e8e8);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff5f5f5",endColorstr="#ffe8e8e8",GradientType=0);background-repeat:repeat-x}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#337ab7,#2e6da4);background-image:-webkit-gradient(linear,left top,left bottom,from(#337ab7),to(#2e6da4));background-image:linear-gradient(180deg,#337ab7 0,#2e6da4);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ff337ab7",endColorstr="#ff2e6da4",GradientType=0);background-repeat:repeat-x}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8,#d0e9c6);background-image:-webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#d0e9c6));background-image:linear-gradient(180deg,#dff0d8 0,#d0e9c6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffdff0d8",endColorstr="#ffd0e9c6",GradientType=0);background-repeat:repeat-x}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7,#c4e3f3);background-image:-webkit-gradient(linear,left top,left bottom,from(#d9edf7),to(#c4e3f3));background-image:linear-gradient(180deg,#d9edf7 0,#c4e3f3);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffd9edf7",endColorstr="#ffc4e3f3",GradientType=0);background-repeat:repeat-x}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3,#faf2cc);background-image:-webkit-gradient(linear,left top,left bottom,from(#fcf8e3),to(#faf2cc));background-image:linear-gradient(180deg,#fcf8e3 0,#faf2cc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fffcf8e3",endColorstr="#fffaf2cc",GradientType=0);background-repeat:repeat-x}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede,#ebcccc);background-image:-webkit-gradient(linear,left top,left bottom,from(#f2dede),to(#ebcccc));background-image:linear-gradient(180deg,#f2dede 0,#ebcccc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#fff2dede",endColorstr="#ffebcccc",GradientType=0);background-repeat:repeat-x}.well{background-image:-webkit-linear-gradient(top,#e8e8e8,#f5f5f5);background-image:-webkit-gradient(linear,left top,left bottom,from(#e8e8e8),to(#f5f5f5));background-image:linear-gradient(180deg,#e8e8e8 0,#f5f5f5);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffe8e8e8",endColorstr="#fff5f5f5",GradientType=0);background-repeat:repeat-x;border-color:#dcdcdc;box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 hsla(0,0%,100%,.1)}.Nav-url-hide{display:none!important}.Nav-share-url{margin-left:10px}.Nav-pad a{padding-top:10px!important;height:50px}@media only screen and (min-width:992px){.Nav-share-url.form-control{width:350px}}@media only screen and (max-width:992px){.Nav-share-url.form-control{width:200px}}.Previous-query{padding:5px}.Previous-query-pre{white-space:pre-wrap;background-color:#fdfdfc;margin:5px 0;word-break:break-word}.Previous-query pre:hover{border:1px solid gray;cursor:pointer}.Previous-query button{visibility:hidden}.Previous-query:hover button{visibility:visible}.Previous-query-popover-pre{font-size:10px;white-space:pre-wrap}.Previous-query-text{padding:0 10px 0 5px}.App-statistics{display:inline-block;padding:5px;margin-top:5px;margin-bottom:100px}.App-fullscreen{position:absolute;top:0;right:20px;height:30px;width:30px;cursor:pointer}.App-fs-icon{font-size:20px;padding:5px}.App-tip{border:1px solid #87cb74;background-color:#e3f9e3;padding:10px;margin:10px;border-radius:3px;height:auto}.App-prev-queries{margin-top:10px;margin-bottom:100px;width:100%;margin:10px 0 15px;padding:0 5px 5px}.App-prev-queries-table{width:100%;margin-top:10px;border:1px solid #000}.App-prev-queries-tbody{height:500px;overflow-y:scroll;display:block}.App-prev-queries .input-group-btn{padding-left:5px}.App-label{text-align:center;margin:0 0 0 10px;width:20px;display:inline-block}:focus{outline:none}.vis-tooltip{border:1px solid #f3d98c;background-color:#fffad5;padding:10px;margin:10px;border-radius:3px;height:auto;position:absolute!important}#properties em,#properties pre{height:100%}input.form-control{font-size:16px!important}.form-group{margin-bottom:5px}.App-hide{display:none}.Editor-basic{margin-bottom:10px;border:1px solid gray}.CodeMirror{font-family:monospace;height:300px;color:#000}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite;background-color:#7e7}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:blue}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre{border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.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}.CodeMirror-foldmarker{color:blue;text-shadow:#b9f 1px 1px 2px,#b9f -1px -1px 2px,#b9f 1px -1px 2px,#b9f -1px 1px 2px;font-family:arial;line-height:.3;cursor:pointer}.CodeMirror-foldgutter{width:.7em}.CodeMirror-foldgutter-folded,.CodeMirror-foldgutter-open{cursor:pointer}.CodeMirror-foldgutter-open:after{content:"\25BE"}.CodeMirror-foldgutter-folded:after{content:"\25B8"}.CodeMirror{height:350px;font-size:12px}.cm-invalidchar{color:#000}.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}.Graph,.Graph-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex:auto;flex:auto}.Graph{font-size:12px;word-break:break-all;width:100%;border:1px solid gray;border-bottom:0;position:relative}.Graph-s{width:100%;height:500px}.Graph-fs{width:100%;height:100%;margin-top:0}.Graph-hourglass{background:url(/static/media/hourglass.4cb9d9d2.svg) no-repeat 50%}.Graph-error{color:red}.Graph-error,.Graph-success{padding-left:10px;padding-top:20px}.Graph-success{color:green}.Graph-label-box{padding:5px;border-width:0 1px 1px;border-style:solid;border-color:gray;text-align:right;margin:0}.Graph-label{margin-right:10px;margin-left:auto;-webkit-box-flex:0;-ms-flex:0 auto;flex:0 auto}.Graph-full-height{position:relative;border-bottom:0;-webkit-box-flex:1;-ms-flex:auto;flex:auto;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:auto;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.Graph-fixed-height{height:500px;overflow:auto;position:relative}.vis-network{-webkit-box-flex:1;-ms-flex:auto;flex:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.vis-network>canvas{-webkit-box-flex:1;-ms-flex:auto;flex:auto}.progress .progress-bar{-webkit-transition:none;transition:none}.Graph-progress{top:50%;margin:auto 10%;position:absolute;width:80%}.vis-down,.vis-left,.vis-right,.vis-up,.vis-zoomExtends{display:none!important}.vis-navigation{position:absolute;top:60px;right:5px}.Graph-hide{display:none}.Graph-wrapper>.nav-tabs{border-bottom:none}.Graph-outer{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.Graph-json pre{border:none;border-radius:0}.Graph-json{border:1px solid gray;background:#f9f9f9}.Graph-json pre,code{font-size:12px;background:#f9f9f9}.vis .overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.vis-active{box-shadow:0 0 10px #86d5f8}.vis [class*=span]{min-height:0;width:auto}div.vis-configuration{position:relative;display:block;float:left;font-size:12px}div.vis-configuration-wrapper{display:block;width:700px}div.vis-configuration-wrapper:after{clear:both;content:"";display:block}div.vis-configuration.vis-config-option-container{display:block;width:495px;background-color:#fff;border:2px solid #f7f8fa;border-radius:4px;margin-top:20px;left:10px;padding-left:5px}div.vis-configuration.vis-config-button{display:block;width:495px;height:25px;vertical-align:middle;line-height:25px;background-color:#f7f8fa;border:2px solid #ceced0;border-radius:4px;margin-top:20px;left:10px;padding-left:5px;cursor:pointer;margin-bottom:30px}div.vis-configuration.vis-config-button.hover{background-color:#4588e6;border:2px solid #214373;color:#fff}div.vis-configuration.vis-config-item{display:block;float:left;width:495px;height:25px;vertical-align:middle;line-height:25px}div.vis-configuration.vis-config-item.vis-config-s2{left:10px;background-color:#f7f8fa;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s3{left:20px;background-color:#e4e9f0;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-item.vis-config-s4{left:30px;background-color:#cfd8e6;padding-left:5px;border-radius:3px}div.vis-configuration.vis-config-header{font-size:18px;font-weight:700}div.vis-configuration.vis-config-label{width:120px;height:25px;line-height:25px}div.vis-configuration.vis-config-label.vis-config-s3{width:110px}div.vis-configuration.vis-config-label.vis-config-s4{width:100px}div.vis-configuration.vis-config-colorBlock{top:1px;width:30px;height:19px;border:1px solid #444;border-radius:2px;padding:0;margin:0;cursor:pointer}input.vis-configuration.vis-config-checkbox{left:-5px}input.vis-configuration.vis-config-rangeinput{position:relative;top:-5px;width:60px;padding:1px;margin:0;pointer-events:none}input.vis-configuration.vis-config-range{-webkit-appearance:none;border:0 solid #fff;background-color:transparent;width:300px;height:20px}input.vis-configuration.vis-config-range::-webkit-slider-runnable-track{width:300px;height:5px;background:#dedede;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);border:1px solid #999;box-shadow:0 0 3px 0 #aaa;border-radius:3px}input.vis-configuration.vis-config-range::-webkit-slider-thumb{-webkit-appearance:none;border:1px solid #14334b;height:17px;width:17px;border-radius:50%;background:#3876c2;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#3876c2),color-stop(100%,#385380));background:-webkit-linear-gradient(top,#3876c2,#385380);background:linear-gradient(180deg,#3876c2 0,#385380);box-shadow:0 0 1px 0 #111927;margin-top:-7px}input.vis-configuration.vis-config-range:focus{outline:0}input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track{background:#9d9d9d;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#9d9d9d),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#9d9d9d,#c8c8c8 99%);background:linear-gradient(180deg,#9d9d9d 0,#c8c8c8 99%)}input.vis-configuration.vis-config-range::-moz-range-track{width:300px;height:10px;background:#dedede;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#dedede),color-stop(99%,#c8c8c8));background:-webkit-linear-gradient(top,#dedede,#c8c8c8 99%);background:linear-gradient(180deg,#dedede 0,#c8c8c8 99%);border:1px solid #999;box-shadow:0 0 3px 0 #aaa;border-radius:3px}input.vis-configuration.vis-config-range::-moz-range-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:-moz-focusring{outline:1px solid #fff;outline-offset:-1px}input.vis-configuration.vis-config-range::-ms-track{width:300px;height:5px;background:0 0;border-color:transparent;border-width:6px 0;color:transparent}input.vis-configuration.vis-config-range::-ms-fill-lower{background:#777;border-radius:10px}input.vis-configuration.vis-config-range::-ms-fill-upper{background:#ddd;border-radius:10px}input.vis-configuration.vis-config-range::-ms-thumb{border:none;height:16px;width:16px;border-radius:50%;background:#385380}input.vis-configuration.vis-config-range:focus::-ms-fill-lower{background:#888}input.vis-configuration.vis-config-range:focus::-ms-fill-upper{background:#ccc}.vis-configuration-popup{position:absolute;background:rgba(57,76,89,.85);border:2px solid #f2faff;line-height:30px;height:30px;width:150px;text-align:center;color:#fff;font-size:14px;border-radius:4px;-webkit-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out}.vis-configuration-popup:after,.vis-configuration-popup:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}.vis-configuration-popup:after{border-color:rgba(136,183,213,0);border-left-color:rgba(57,76,89,.85);border-width:8px;margin-top:-8px}.vis-configuration-popup:before{border-color:rgba(194,225,245,0);border-left-color:#f2faff;border-width:12px;margin-top:-12px}div.vis-tooltip{position:absolute;visibility:hidden;padding:5px;white-space:nowrap;font-family:verdana;font-size:14px;color:#000;background-color:#f5f4ed;border-radius:3px;border:1px solid #808074;box-shadow:3px 3px 10px rgba(0,0,0,.2);pointer-events:none;z-index:5}div.vis-color-picker{position:absolute;top:0;left:30px;margin-top:-140px;margin-left:30px;width:310px;height:444px;z-index:1;padding:10px;border-radius:15px;background-color:#fff;display:none;box-shadow:0 0 10px 0 rgba(0,0,0,.5)}div.vis-color-picker div.vis-arrow{position:absolute;top:147px;left:5px}div.vis-color-picker div.vis-arrow:after,div.vis-color-picker div.vis-arrow:before{right:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none}div.vis-color-picker div.vis-arrow:after{border-color:hsla(0,0%,100%,0);border-right-color:#fff;border-width:30px;margin-top:-30px}div.vis-color-picker div.vis-color{position:absolute;width:289px;height:289px;cursor:pointer}div.vis-color-picker div.vis-brightness{position:absolute;top:313px}div.vis-color-picker div.vis-opacity{position:absolute;top:350px}div.vis-color-picker div.vis-selector{position:absolute;top:137px;left:137px;width:15px;height:15px;border-radius:15px;border:1px solid #fff;background:#4c4c4c;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#4c4c4c),color-stop(12%,#595959),color-stop(25%,#666),color-stop(39%,#474747),color-stop(50%,#2c2c2c),color-stop(51%,#000),color-stop(60%,#111),color-stop(76%,#2b2b2b),color-stop(91%,#1c1c1c),color-stop(100%,#131313));background:-webkit-linear-gradient(top,#4c4c4c,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313);background:linear-gradient(180deg,#4c4c4c 0,#595959 12%,#666 25%,#474747 39%,#2c2c2c 50%,#000 51%,#111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313)}div.vis-color-picker div.vis-new-color{left:159px;text-align:right;padding-right:2px}div.vis-color-picker div.vis-initial-color,div.vis-color-picker div.vis-new-color{position:absolute;width:140px;height:20px;border:1px solid rgba(0,0,0,.1);border-radius:5px;top:380px;font-size:10px;color:rgba(0,0,0,.4);vertical-align:middle;line-height:20px}div.vis-color-picker div.vis-initial-color{left:10px;text-align:left;padding-left:2px}div.vis-color-picker div.vis-label{position:absolute;width:300px;left:10px}div.vis-color-picker div.vis-label.vis-brightness{top:300px}div.vis-color-picker div.vis-label.vis-opacity{top:338px}div.vis-color-picker div.vis-button{position:absolute;width:68px;height:25px;border-radius:10px;vertical-align:middle;text-align:center;line-height:25px;top:410px;border:2px solid #d9d9d9;background-color:#f7f7f7;cursor:pointer}div.vis-color-picker div.vis-button.vis-cancel{left:5px}div.vis-color-picker div.vis-button.vis-load{left:82px}div.vis-color-picker div.vis-button.vis-apply{left:159px}div.vis-color-picker div.vis-button.vis-save{left:236px}div.vis-color-picker input.vis-range{width:290px;height:20px}div.vis-network div.vis-manipulation{box-sizing:content-box;border-bottom:1px;border:0 solid #d6d9d8;background:#fff;background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(48%,#fcfcfc),color-stop(50%,#fafafa),color-stop(100%,#fcfcfc));background:-webkit-linear-gradient(top,#fff,#fcfcfc 48%,#fafafa 50%,#fcfcfc);background:linear-gradient(180deg,#fff 0,#fcfcfc 48%,#fafafa 50%,#fcfcfc);padding-top:4px;position:absolute;left:0;top:0;width:100%;height:28px}div.vis-network div.vis-edit-mode{position:absolute;left:0;top:5px;height:30px}div.vis-network div.vis-close{position:absolute;right:0;top:0;width:30px;height:30px;background-position:20px 3px;background-repeat:no-repeat;background-image:url(/static/media/cross.260c9c65.png);cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-close:hover{opacity:.6}div.vis-network div.vis-edit-mode div.vis-button,div.vis-network div.vis-manipulation div.vis-button{float:left;font-family:verdana;font-size:12px;border-radius:15px;display:inline-block;background-position:0 0;background-repeat:no-repeat;height:24px;margin-left:10px;cursor:pointer;padding:0 8px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-manipulation div.vis-button:hover{box-shadow:1px 1px 8px rgba(0,0,0,.2)}div.vis-network div.vis-manipulation div.vis-button:active{box-shadow:1px 1px 8px rgba(0,0,0,.5)}div.vis-network div.vis-manipulation div.vis-button.vis-back{background-image:url(/static/media/backIcon.dd0baa69.png)}div.vis-network div.vis-manipulation div.vis-button.vis-none:hover{box-shadow:1px 1px 8px transparent;cursor:default}div.vis-network div.vis-manipulation div.vis-button.vis-none:active{box-shadow:1px 1px 8px transparent}div.vis-network div.vis-manipulation div.vis-button.vis-none{padding:0}div.vis-network div.vis-manipulation div.notification{margin:2px;font-weight:700}div.vis-network div.vis-manipulation div.vis-button.vis-add{background-image:url(/static/media/addNodeIcon.a1a2d01b.png)}div.vis-network div.vis-edit-mode div.vis-button.vis-edit,div.vis-network div.vis-manipulation div.vis-button.vis-edit{background-image:url(/static/media/editIcon.d5422321.png)}div.vis-network div.vis-edit-mode div.vis-button.vis-edit.vis-edit-mode{background-color:#fcfcfc;border:1px solid #ccc}div.vis-network div.vis-manipulation div.vis-button.vis-connect{background-image:url(/static/media/connectIcon.d5267b8d.png)}div.vis-network div.vis-manipulation div.vis-button.vis-delete{background-image:url(/static/media/deleteIcon.02d321ed.png)}div.vis-network div.vis-edit-mode div.vis-label,div.vis-network div.vis-manipulation div.vis-label{margin:0 0 0 23px;line-height:25px}div.vis-network div.vis-manipulation div.vis-separator-line{float:left;display:inline-block;width:1px;height:21px;background-color:#bdbdbd;margin:0 7px 0 15px}div.vis-network div.vis-navigation div.vis-button{width:34px;height:34px;border-radius:17px;position:absolute;display:inline-block;background-position:2px 2px;background-repeat:no-repeat;cursor:pointer;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}div.vis-network div.vis-navigation div.vis-button:hover{box-shadow:0 0 3px 3px rgba(56,207,21,.3)}div.vis-network div.vis-navigation div.vis-button:active{box-shadow:0 0 1px 3px rgba(56,207,21,.95)}div.vis-network div.vis-navigation div.vis-button.vis-up{background-image:url(data:image/png;base64,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);bottom:50px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-down{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAABpdJREFUeNqcV21QlNcVfp5zX9ikoAvLEsAIIgsoHwpqWAQUNKLNaNv8iZ1JMkNG6/Qj/dDUyCSTtCHpmEkwVk3TToZRMjXj5MOG2KidjIkxQYSAQUAtX6IgIN8su8KCoOzbH4sk4q5g77/33uee555z7rnneYmZDB2MKcJKlyYbqOsZVIgGEOgSHQoy4AKbFFjqAo5dWn/rNAh9OpO852oeJHYxtrmEu4WALhMbxG2ZE9uFAlImDRLY/t/y0b3Ig+u+iWOKsAlgIZSb0OIf15kWtKo1NXh1d5xxiSPEN2wUAHrGOg11jirjWVtJyFnb6YgrzoYwocClu0DI5guPDb43Y2LLp/Iaqf9JCGSErGvIifxd7aqQn/TOJCvFvZ8Hf9haEH+m/6sFQgHBv1Sts/15WmJLkeyl6FuFwFPzny1/ZdE7Nfg/xhv1uUmH2w6kggQp+yqze7d5JbZ8Im+KpucSwI6EN7/cYtlxZarBCts3ptfrtq9odjaGKihE+sV0vRC3u8RqWmmbij149W+Wd5p2rnET6bsqsntyb6+pO3KqkE8FvLxo74lNUX9s9uTJb8/9fG2L81KoogJFYfCm3b9usNq0MXxzw1RsUkDqQICPqf/b/q8sQi3j4WdmtV47OFgNAO6r+DEUFAtFAc9YtpXmRP6hxVsI24cvhyoqnFtrK6jM7isgBa3Dl0O94TeGb255MvzXpUIFjVrhxo/dzgoARBuwFQJkBK9reCnurxfvXX8CRW3yW1G749vT2Br7ysW0oNX1pKDTPG+rm1gHRbibAHLm/7522sKnQCZqFgCUaBCqaS/bEw9vqtWoQROf3dBBiT6KTACImZ3YueqhDdOWjDbFQ4IzIl4elNUX5begU1HD6lPRmULKeghhDcpqnUmZuD3+nkgTH6gZEE9ctlZSoGmG9UIynSCsQVndMyX+IZGiBoHMjHh2SreCglClaSBiSEG8cYnD24bv7CWms/3FocO3hnw13plTggAFb196NdlPM44tC0zrSg5ItXmyEz070UEKCMRqQgkkBQ9NvL2eSJ+revoJTORSpoT6do4/7/7UShBFHQexM+HdfyUHWO8iN/uaRzX3/QjUSLlnqM72F4cCRIY5u9Zf+Y+BAv4AvzpkQ7WAIBRujA/7Vg6cia9xlId6InafVEAAGnQMUCSkb6zTMPdBy8hU3JjrphIq+CrD+Mvxeyumrr+4IH9y7o2GF5eDghuuGx4L2zbWZ9Dc0RoQRbkkFNRdP2/0BH7EtLJLKCjr+zqh2l5u8haZ847vTBW24kRFQXKAtcsT5oqz3igQENIoECkjBJUDZSGewBlBj/ammjLrdX1c/t70ero34gMte9IByLLAjPrUwKweT5jawQshdIuGMiF5XEBU2koivBl9NeEfJeYHwuxtI81zPrn2z6ip60c6DkV1jLTOCTaE2HNjd5Z4s9MwWBOhqEHp/I9cWDtUrJNoHm4KO9P7hdnTBoMYXI8Gb6gVCg63FS53jg9O5tA57tSOdHywnCAygrJrfcTgUe5U2cvNHSPtYYoKCWlrTgsIneB2AfFR+4F4b6f9ZdTzF6P8Ytud407/dy/nL7k9X9i8J9l5y+Ef6RfbnjPvWa8N5suez+KFCgqyPY95Lnd3stv2AcBZ2+mFbze+lui1xc3dXCUUlPafXNx4/aKxcajWWNp/MklRw8/mPFntbd+h1oLE847KhQQxejVg36QQqD0MPTzHv42Ux+uGasJNBnPfwllJd71kkX7RQ3WDNf7dox3BLcNNs6vt34bbbvYHJhlTGp6O+JVHb0/2HJtX1PH+aqECqG/5YN1nlXcokGvvO6vCc4x+QskotxVHB/qa+xbOWuzw8NB3nuo+Ht0z2hHsuGU3GrWAoZfi3jrxgHpw3BPpobaCH7vbqOw6mHI836vYW3Eqcq9AtioqbJy7ufQ3lhfu8sR+s9+3vL8klACsQSu7AnxMY1MxH7YXJp7oPpLulrrj+9575Ni2aeVt1teWfEWfHQLCaspseHzOU7VWU+aM5G2NoyL4i+6j8XWDNQsmGsKu/cv+nTtjQb/mm7hfENyvqEAK5v8opjPJaL26KGBpd5TfguuBvuZRgBgY6zO0jlyZXXe9JqR+8MK8ntHOMHfHIkhu2b/0yIH7/oXJ0yFlxYnPUdRbvuILgO7+y+91l6Ka6M+cnCf4fMSypXvymHf/vzBTD3CuNGUFKT8lmK5Rs5ASqKiBlAGBXFaiSuni0fkp1pJ7Ed4e/xsAqLk46EWsG1EAAAAASUVORK5CYII=);bottom:10px;left:55px}div.vis-network div.vis-navigation div.vis-button.vis-left{background-image:url(data:image/png;base64,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);bottom:10px;left:15px}div.vis-network div.vis-navigation div.vis-button.vis-right{background-image:url(data:image/png;base64,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);bottom:10px;left:95px}div.vis-network div.vis-navigation div.vis-button.vis-zoomIn{background-image:url(data:image/png;base64,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);bottom:10px;right:15px}div.vis-network div.vis-navigation div.vis-button.vis-zoomOut{background-image:url(data:image/png;base64,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);bottom:10px;right:55px}div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends{background-image:url(data:image/png;base64,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);bottom:50px;right:15px}.vis-current-time{background-color:#ff7f6e;width:2px;z-index:1;pointer-events:none}.vis-rolling-mode-btn{height:40px;width:40px;position:absolute;top:7px;right:20px;border-radius:50%;font-size:28px;cursor:pointer;opacity:.8;color:#fff;font-weight:700;text-align:center;background:#3876c2}.vis-rolling-mode-btn:before{content:"\26F6"}.vis-rolling-mode-btn:hover{opacity:1}.vis-custom-time{background-color:#6e94ff;width:2px;cursor:move;z-index:1}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal{position:absolute;width:100%;height:0;border-bottom:1px solid}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor{border-color:#e5e5e5}.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major{border-color:#bfbfbf}.vis-data-axis .vis-y-axis.vis-major{width:100%;position:absolute;color:#4d4d4d;white-space:nowrap}.vis-data-axis .vis-y-axis.vis-major.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-minor{position:absolute;width:100%;color:#bebebe;white-space:nowrap}.vis-data-axis .vis-y-axis.vis-minor.vis-measure{padding:0;margin:0;border:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-title{position:absolute;color:#4d4d4d;white-space:nowrap;bottom:20px;text-align:center}.vis-data-axis .vis-y-axis.vis-title.vis-measure{padding:0;margin:0;visibility:hidden;width:auto}.vis-data-axis .vis-y-axis.vis-title.vis-left{bottom:0;-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left bottom;-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);transform:rotate(-90deg)}.vis-data-axis .vis-y-axis.vis-title.vis-right{bottom:0;-webkit-transform-origin:right bottom;-ms-transform-origin:right bottom;transform-origin:right bottom;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.vis-legend{background-color:rgba(247,252,255,.65);padding:5px;border:1px solid #b3b3b3;box-shadow:2px 2px 10px hsla(0,0%,60%,.55)}.vis-legend-text{white-space:nowrap;display:inline-block}.vis-item{position:absolute;color:#1a1a1a;border-color:#97b0f8;border-width:1px;background-color:#d5ddf6;display:inline-block;z-index:1}.vis-item.vis-selected{border-color:#ffc200;background-color:#fff785;z-index:2}.vis-editable.vis-selected{cursor:move}.vis-item.vis-point.vis-selected{background-color:#fff785}.vis-item.vis-box{text-align:center;border-style:solid;border-radius:2px}.vis-item.vis-point{background:0 0}.vis-item.vis-dot{position:absolute;padding:0;border-width:4px;border-style:solid;border-radius:4px}.vis-item.vis-range{border-style:solid;border-radius:2px;box-sizing:border-box}.vis-item.vis-background{border:none;background-color:rgba(213,221,246,.4);box-sizing:border-box;padding:0;margin:0}.vis-item .vis-item-overflow{position:relative;width:100%;height:100%;padding:0;margin:0;overflow:hidden}.vis-item-visible-frame{white-space:nowrap}.vis-item.vis-range .vis-item-content{position:relative;display:inline-block}.vis-item.vis-background .vis-item-content{position:absolute;display:inline-block}.vis-item.vis-line{padding:0;position:absolute;width:0;border-left-width:1px;border-left-style:solid}.vis-item .vis-item-content{white-space:nowrap;box-sizing:border-box;padding:5px}.vis-item .vis-onUpdateTime-tooltip{position:absolute;background:#4f81bd;color:#fff;width:200px;text-align:center;white-space:nowrap;padding:5px;border-radius:1px;transition:.4s;-o-transition:.4s;-moz-transition:.4s;-webkit-transition:.4s}.vis-item .vis-delete,.vis-item .vis-delete-rtl{position:absolute;top:0;width:24px;height:24px;box-sizing:border-box;padding:0 5px;cursor:pointer;-webkit-transition:background .2s linear;transition:background .2s linear}.vis-item .vis-delete{right:-24px}.vis-item .vis-delete-rtl{left:-24px}.vis-item .vis-delete-rtl:after,.vis-item .vis-delete:after{content:"\D7";color:red;font-family:arial,sans-serif;font-size:22px;font-weight:700;-webkit-transition:color .2s linear;transition:color .2s linear}.vis-item .vis-delete-rtl:hover,.vis-item .vis-delete:hover{background:red}.vis-item .vis-delete-rtl:hover:after,.vis-item .vis-delete:hover:after{color:#fff}.vis-item .vis-drag-center{position:absolute;width:100%;height:100%;top:0;left:0;cursor:move}.vis-item.vis-range .vis-drag-left{left:-4px;cursor:w-resize}.vis-item.vis-range .vis-drag-left,.vis-item.vis-range .vis-drag-right{position:absolute;width:24px;max-width:20%;min-width:2px;height:100%;top:0}.vis-item.vis-range .vis-drag-right{right:-4px;cursor:e-resize}.vis-range.vis-item.vis-readonly .vis-drag-left,.vis-range.vis-item.vis-readonly .vis-drag-right{cursor:auto}.vis-itemset{position:relative;padding:0;margin:0;box-sizing:border-box}.vis-itemset .vis-background,.vis-itemset .vis-foreground{position:absolute;width:100%;height:100%;overflow:visible}.vis-axis{position:absolute;width:100%;height:0;left:0;z-index:1}.vis-foreground .vis-group{position:relative;box-sizing:border-box;border-bottom:1px solid #bfbfbf}.vis-foreground .vis-group:last-child{border-bottom:none}.vis-nesting-group{cursor:pointer}.vis-nested-group{background:#f5f5f5}.vis-label.vis-nesting-group.expanded:before{content:"\25BC"}.vis-label.vis-nesting-group.collapsed-rtl:before{content:"\25C0"}.vis-label.vis-nesting-group.collapsed:before{content:"\25B6"}.vis-overlay{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.vis-labelset{overflow:hidden}.vis-labelset,.vis-labelset .vis-label{position:relative;box-sizing:border-box}.vis-labelset .vis-label{left:0;top:0;width:100%;color:#4d4d4d;border-bottom:1px solid #bfbfbf}.vis-labelset .vis-label.draggable{cursor:pointer}.vis-labelset .vis-label:last-child{border-bottom:none}.vis-labelset .vis-label .vis-inner{display:inline-block;padding:5px}.vis-labelset .vis-label .vis-inner.vis-hidden{padding:0}.vis-panel{position:absolute;padding:0;margin:0;box-sizing:border-box}.vis-panel.vis-bottom,.vis-panel.vis-center,.vis-panel.vis-left,.vis-panel.vis-right,.vis-panel.vis-top{border:1px #bfbfbf}.vis-panel.vis-center,.vis-panel.vis-left,.vis-panel.vis-right{border-top-style:solid;border-bottom-style:solid;overflow:hidden}.vis-left.vis-panel.vis-vertical-scroll,.vis-right.vis-panel.vis-vertical-scroll{height:100%;overflow-x:hidden;overflow-y:scroll}.vis-left.vis-panel.vis-vertical-scroll{direction:rtl}.vis-left.vis-panel.vis-vertical-scroll .vis-content,.vis-right.vis-panel.vis-vertical-scroll{direction:ltr}.vis-right.vis-panel.vis-vertical-scroll .vis-content{direction:rtl}.vis-panel.vis-bottom,.vis-panel.vis-center,.vis-panel.vis-top{border-left-style:solid;border-right-style:solid}.vis-background{overflow:hidden}.vis-panel>.vis-content{position:relative}.vis-panel .vis-shadow{position:absolute;width:100%;height:1px;box-shadow:0 0 10px rgba(0,0,0,.8)}.vis-panel .vis-shadow.vis-top{top:-1px;left:0}.vis-panel .vis-shadow.vis-bottom{bottom:-1px;left:0}.vis-graph-group0{fill:#4f81bd;fill-opacity:0;stroke-width:2px;stroke:#4f81bd}.vis-graph-group1{fill:#f79646;fill-opacity:0;stroke-width:2px;stroke:#f79646}.vis-graph-group2{fill:#8c51cf;fill-opacity:0;stroke-width:2px;stroke:#8c51cf}.vis-graph-group3{fill:#75c841;fill-opacity:0;stroke-width:2px;stroke:#75c841}.vis-graph-group4{fill:#ff0100;fill-opacity:0;stroke-width:2px;stroke:#ff0100}.vis-graph-group5{fill:#37d8e6;fill-opacity:0;stroke-width:2px;stroke:#37d8e6}.vis-graph-group6{fill:#042662;fill-opacity:0;stroke-width:2px;stroke:#042662}.vis-graph-group7{fill:#00ff26;fill-opacity:0;stroke-width:2px;stroke:#00ff26}.vis-graph-group8{fill:#f0f;fill-opacity:0;stroke-width:2px;stroke:#f0f}.vis-graph-group9{fill:#8f3938;fill-opacity:0;stroke-width:2px;stroke:#8f3938}.vis-timeline .vis-fill{fill-opacity:.1;stroke:none}.vis-timeline .vis-bar{fill-opacity:.5;stroke-width:1px}.vis-timeline .vis-point{stroke-width:2px;fill-opacity:1}.vis-timeline .vis-legend-background{stroke-width:1px;fill-opacity:.9;fill:#fff;stroke:#c2c2c2}.vis-timeline .vis-outline{stroke-width:1px;fill-opacity:1;fill:#fff;stroke:#e5e5e5}.vis-timeline .vis-icon-fill{fill-opacity:.3;stroke:none}.vis-time-axis{position:relative;overflow:hidden}.vis-time-axis.vis-foreground{top:0;left:0;width:100%}.vis-time-axis.vis-background{position:absolute;top:0;left:0;width:100%;height:100%}.vis-time-axis .vis-text{position:absolute;color:#4d4d4d;padding:3px;overflow:hidden;box-sizing:border-box;white-space:nowrap}.vis-time-axis .vis-text.vis-measure{position:absolute;padding-left:0;padding-right:0;margin-left:0;margin-right:0;visibility:hidden}.vis-time-axis .vis-grid.vis-vertical{position:absolute;border-left:1px solid}.vis-time-axis .vis-grid.vis-vertical-rtl{position:absolute;border-right:1px solid}.vis-time-axis .vis-grid.vis-minor{border-color:#e5e5e5}.vis-time-axis .vis-grid.vis-major{border-color:#bfbfbf}.vis-timeline{position:relative;border:1px solid #bfbfbf;overflow:hidden;padding:0;margin:0;box-sizing:border-box}#properties{min-height:50px;margin-top:5px}.Properties{width:100%;margin-top:5px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:justify;align-content:space-between}.Properties:after{content:""}.Properties-key-val,.Properties:after{-webkit-box-flex:1;-ms-flex:1 0 250px;flex:1 0 250px}.Properties-key-val{padding-right:5px}.Properties-key{display:table-cell;color:green;font-weight:700}.Properties-val{display:table-cell;color:#ba2121}.Properties-facets{display:inline-block;margin-top:5px}@media(max-width:850px){.Properties-key-val,.Properties:after{-webkit-box-flex:1;-ms-flex:1 0 200px;flex:1 0 200px;max-width:200px}}.ResponseInfo{font-size:13px;-webkit-box-flex:0;-ms-flex:0 auto;flex:0 auto}.ResponseInfo-partial{height:auto}.ResponseInfo-button{float:right;margin-right:10px;margin-left:5px}.ResponseInfo-stats{display:-webkit-box;display:-ms-flexbox;display:flex}.ResponseInfo-flex{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%}.Response{width:100%;height:100%;padding:5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column} +/*# sourceMappingURL=main.31d8e6df.css.map*/ \ No newline at end of file diff --git a/dashboard/build/static/js/main.5f944870.js b/dashboard/build/static/js/main.5f944870.js deleted file mode 100644 index ad705f46f66..00000000000 --- a/dashboard/build/static/js/main.5f944870.js +++ /dev/null @@ -1,52 +0,0 @@ -!function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),i=e[t[0]];return function(e,t,r){i.apply(this,[e,t,r].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){n(902),e.exports=n(421)},function(e,t,n){"use strict";e.exports=n(89)},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(431),o=i(r),a=n(430),s=i(a),u=n(157),l=i(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,l.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(157),o=i(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(238),o=i(r);t.default=o.default||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}},function(e,t,n){var i,r;!function(){"use strict";function n(){for(var e=[],t=0;t1?t-1:0),i=1;i0,e.name+" fields must be an object with field names as keys or a function which returns such an object.");var r={};return i.forEach(function(t){(0,L.assertValidName)(t);var i=n[t];(0,P.default)(E(i),e.name+"."+t+" field config must be an object"),(0,P.default)(!i.hasOwnProperty("isDeprecated"),e.name+"."+t+' should provide "deprecationReason" instead of "isDeprecated".');var o=k({},i,{isDeprecated:Boolean(i.deprecationReason),name:t});(0,P.default)(l(o.type),e.name+"."+t+" field type must be Output Type but "+("got: "+String(o.type)+".")),(0,P.default)(C(o.resolve),e.name+"."+t+" field resolver must be a function if "+("provided, but got: "+String(o.resolve)+"."));var a=i.args;a?((0,P.default)(E(a),e.name+"."+t+" args must be an object with argument names as keys."),o.args=Object.keys(a).map(function(n){(0,L.assertValidName)(n);var i=a[n];return(0,P.default)(s(i.type),e.name+"."+t+"("+n+":) argument type must be "+("Input Type but got: "+String(i.type)+".")),{name:n,description:void 0===i.description?null:i.description,type:i.type,defaultValue:i.defaultValue}})):o.args=[],r[t]=o}),r}function E(e){return e&&"object"==typeof e&&!Array.isArray(e)}function C(e){return null==e||"function"==typeof e}function O(e,t){var n=w(t);return(0,P.default)(Array.isArray(n)&&n.length>0,"Must provide Array of types or a function which returns "+("such an array for Union "+e.name+".")),n.forEach(function(t){(0,P.default)(t instanceof R,e.name+" may only contain Object types, it cannot contain: "+(String(t)+".")),"function"!=typeof e.resolveType&&(0,P.default)("function"==typeof t.isTypeOf,'Union type "'+e.name+'" does not provide a "resolveType" '+('function and possible type "'+t.name+'" does not provide an ')+'"isTypeOf" function. There is no way to resolve this possible type during execution.')}),n}function S(e,t){(0,P.default)(E(t),e.name+" values must be an object with value names as keys.");var n=Object.keys(t);return(0,P.default)(n.length>0,e.name+" values must be an object with value names as keys."),n.map(function(n){(0,L.assertValidName)(n);var i=t[n];return(0,P.default)(E(i),e.name+"."+n+' must refer to an object with a "value" key '+("representing an internal value but got: "+String(i)+".")),(0,P.default)(!i.hasOwnProperty("isDeprecated"),e.name+"."+n+' should provide "deprecationReason" instead of "isDeprecated".'),{name:n,description:i.description,isDeprecated:Boolean(i.deprecationReason),deprecationReason:i.deprecationReason,value:(0,D.default)(i.value)?n:i.value}})}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLNonNull=t.GraphQLList=t.GraphQLInputObjectType=t.GraphQLEnumType=t.GraphQLUnionType=t.GraphQLInterfaceType=t.GraphQLObjectType=t.GraphQLScalarType=void 0;var k=Object.assign||function(e){for(var t=1;t0,this.name+" fields must be an object with field names as keys or a function which returns such an object.");var i={};return n.forEach(function(n){(0,L.assertValidName)(n);var r=k({},t[n],{name:n});(0,P.default)(s(r.type),e.name+"."+n+" field type must be Input Type but "+("got: "+String(r.type)+".")),(0,P.default)(null==r.resolve,e.name+"."+n+" field type has a resolve property, but Input Types cannot define resolvers."),i[n]=r}),i},e.prototype.toString=function(){return this.name},e}();z.prototype.toJSON=z.prototype.inspect=z.prototype.toString;var G=t.GraphQLList=function(){function e(t){r(this,e),(0,P.default)(o(t),"Can only create List of a GraphQLType but got: "+String(t)+"."),this.ofType=t}return e.prototype.toString=function(){return"["+String(this.ofType)+"]"},e}();G.prototype.toJSON=G.prototype.inspect=G.prototype.toString;var H=t.GraphQLNonNull=function(){function e(t){r(this,e),(0,P.default)(o(t)&&!(t instanceof e),"Can only create NonNull of a Nullable GraphQLType but got: "+(String(t)+".")),this.ofType=t}return e.prototype.toString=function(){return this.ofType.toString()+"!"},e}();H.prototype.toJSON=H.prototype.inspect=H.prototype.toString},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i,r){var a=e[t],u="undefined"==typeof a?"undefined":o(a);return s.default.isValidElement(a)?new Error("Invalid "+i+" `"+r+"` of type ReactElement "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):"function"!==u&&"string"!==u?new Error("Invalid "+i+" `"+r+"` of value `"+a+"` "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):null}t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=n(1),s=i(a),u=n(154),l=i(u);t.default=(0,l.default)(r)},function(e,t,n){function i(e){return null==e?"":r(e)}var r=n(44);e.exports=i},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=i()?Object.assign:function(e,t){for(var i,s,u=n(e),l=1;l0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function i(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}function h(e,t){for(var n=0;n=t)return i+Math.min(a,t-r);if(r+=o-i,r+=n-r%n,i=o+1,r>=t)return i}}function p(e){for(;ka.length<=e;)ka.push(v(ka)+" ");return ka[e]}function v(e){return e[e.length-1]}function m(e,t){for(var n=[],i=0;i"€"&&(e.toUpperCase()!=e.toLowerCase()||Ma.test(e))}function w(e,t){return t?!!(t.source.indexOf("\\w")>-1&&_(e))||t.test(e):_(e)}function x(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function T(e){return e.charCodeAt(0)>=768&&Pa.test(e)}function E(e,t,n){for(;(n<0?t>0:t=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn?A(n,S(e,n).text.length):U(t,S(e,t.line).text.length)}function U(e,t){var n=e.ch;return null==n||n>t?A(e.line,t):n<0?A(e.line,0):e}function W(e,t){for(var n=[],i=0;i=t:o.to>t);(i||(i=[])).push(new Q(a,o.from,u?null:o.to))}}return i}function Z(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var u=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var w=0;w0)){var c=[u,1],d=R(l.from,s.from),f=R(l.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:l.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:l.to}),r.splice.apply(r,c),u+=c.length-3}}return r}function ne(e){var t=e.markedSpans;if(t){for(var n=0;n=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(u.marker.inclusiveRight&&r.inclusiveLeft?R(l.to,n)>=0:R(l.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&r.inclusiveLeft?R(l.from,i)<=0:R(l.from,i)<0)))return!0}}}function de(e){for(var t;t=ue(e);)e=t.find(-1,!0).line;return e}function he(e){for(var t;t=le(e);)e=t.find(1,!0).line;return e}function fe(e){for(var t,n;t=le(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function pe(e,t){var n=S(e,t),i=de(n);return n==i?t:N(i)}function ve(e,t){if(t>e.lastLine())return t;var n,i=S(e,t);if(!me(e,i))return t;for(;n=le(i);)i=n.find(1,!0).line;return N(i)+1; -}function me(e,t){var n=Da&&t.markedSpans;if(n)for(var i=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function we(e,t,n,i){if(!e)return i(t,n,"ltr");for(var r=!1,o=0;ot||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),r=!0)}r||i(t,n,"ltr")}function xe(e,t,n){var i;Ia=null;for(var r=0;rt)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:Ia=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:Ia=r)}return null!=i?i:Ia}function Te(e,t){var n=e.order;return null==n&&(n=e.order=La(e.text,t)),n}function Ee(e,t,n){var i=E(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Ce(e,t,n){var i=Ee(e,t.ch,n);return null==i?null:new A(t.line,i,n<0?"after":"before")}function Oe(e,t,n,i,r){if(e){var o=Te(n,t.doc.direction);if(o){var a,s=r<0?v(o):o[0],u=r<0==(1==s.level),l=u?"after":"before";if(s.level>0){var c=Xt(t,n);a=r<0?n.text.length-1:0;var d=$t(t,c,a).top;a=C(function(e){return $t(t,c,e).top==d},r<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ee(n,a,1,!0))}else a=r<0?s.to:s.from;return new A(i,a,l)}}return new A(i,r<0?n.text.length:0,r<0?"before":"after")}function Se(e,t,n,i){var r=Te(t,e.doc.direction);if(!r)return Ce(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=xe(r,n.ch,n.sticky),a=r[o];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from=a.from&&h>=c.begin)){var f=d?"before":"after";return new A(n.line,h,f)}}var p=function(e,t,i){for(var o=function(e,t){return t?new A(n.line,u(e,1),"before"):new A(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=s?i.begin:u(i.end,-1);if(a.from<=l&&l0?c.end:u(c.begin,-1);return null==m||i>0&&m==t.text.length||!(v=p(i>0?0:r.length-1,i,l(m)))?null:v}function ke(e,t){return e._handlers&&e._handlers[t]||Aa}function Me(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var i=e._handlers,r=i&&i[t];if(r){var o=h(r,n);o>-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function Pe(e,t){var n=ke(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function Le(e){e.prototype.on=function(e,t){Ra(this,e,t)},e.prototype.off=function(e,t){Me(this,e,t)}}function Ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Re(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function je(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Fe(e){Ae(e),Re(e)}function Be(e){return e.target||e.srcElement}function ze(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),da&&e.ctrlKey&&1==t&&(t=3),t}function Ge(e){if(null==wa){var t=i("span","​");n(e,i("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(wa=t.offsetWidth<=1&&t.offsetHeight>2&&!(Jo&&ea<8))}var r=wa?i("span","​"):i("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function He(e){if(null!=xa)return xa;var i=n(e,document.createTextNode("AخA")),r=va(i,0,1).getBoundingClientRect(),o=va(i,1,2).getBoundingClientRect();return t(e),!(!r||r.left==r.right)&&(xa=o.right-r.right<3)}function Ue(e){if(null!=Ga)return Ga;var t=n(e,i("span","x")),r=t.getBoundingClientRect(),o=va(t,0,1).getBoundingClientRect();return Ga=Math.abs(r.left-o.left)>1}function We(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ha[e]=t}function Ve(e,t){Ua[e]=t}function Ye(e){if("string"==typeof e&&Ua.hasOwnProperty(e))e=Ua[e];else if(e&&"string"==typeof e.name&&Ua.hasOwnProperty(e.name)){var t=Ua[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ye("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ye("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Qe(e,t){t=Ye(t);var n=Ha[t.name];if(!n)return Qe(e,"text/plain");var i=n(e,t);if(Wa.hasOwnProperty(t.name)){var r=Wa[t.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}function Ke(e,t){var n=Wa.hasOwnProperty(e)?Wa[e]:Wa[e]={};c(t,n)}function qe(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Xe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),n&&n.mode!=e);)t=n.state,e=n.mode;return n||{mode:e,state:t}}function $e(e,t,n){return!e.startState||e.startState(t,n)}function Ze(e,t,n,i){var r=[e.state.modeGen],o={};at(e,t.text,e.doc.mode,n,function(e,t){return r.push(e,t)},o,i);for(var a=function(n){var i=e.state.overlays[n],a=1,s=0;at(e,t.text,i.mode,!0,function(e,t){for(var n=a;se&&r.splice(a,1,e,r[a+1],o),a+=2,s=Math.min(e,o)}if(t)if(i.opaque)r.splice(n,a-n,e,"overlay "+t),a=n+2;else for(;ne.options.maxHighlightLength?qe(e.doc.mode,i):i);t.stateAfter=i,t.styles=r.styles,r.classes?t.styleClasses=r.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function et(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return!0;var o=st(e,t,n),a=o>i.first&&S(i,o-1).stateAfter;return a=a?qe(i.mode,a):$e(i.mode),i.iter(o,t,function(n){tt(e,n.text,a);var s=o==t-1||o%5==0||o>=r.viewFrom&&ot.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function rt(e,t,n,i){var r,o=function(e){return{start:d.start,end:d.pos,string:d.current(),type:r||null,state:e?qe(a.mode,c):c}},a=e.doc,s=a.mode;t=H(a,t);var u,l=S(a,t.line),c=et(e,t.line,n),d=new Va(l.text,e.options.tabSize);for(i&&(u=[]);(i||d.pose.options.maxHighlightLength?(s=!1,a&&tt(e,t,i,d.pos),d.pos=t.length,u=null):u=ot(it(n,d,i,h),o),h){var f=h[0].name;f&&(u="m-"+(u?f+" "+u:f))}if(!s||c!=u){for(;la;--s){if(s<=o.first)return o.first;var u=S(o,s-1);if(u.stateAfter&&(!n||s<=o.frontier))return s;var l=d(u.text,null,e.options.tabSize);(null==r||i>l)&&(r=s-1,i=l)}return r}function ut(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),ne(e),ie(e,n);var r=i?i(e):1;r!=e.height&&P(e,r)}function lt(e){e.parent=null,ne(e)}function ct(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?qa:Ka;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function dt(e,t){var n=r("span",null,null,ta?"padding-right: .1px":null),i={pre:r("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(Jo||ta)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var a=o?t.rest[o-1]:t.line,s=void 0;i.pos=0,i.addToken=ft,He(e.display.measure)&&(s=Te(a,e.doc.direction))&&(i.addToken=vt(i.addToken,s)),i.map=[];var l=t!=e.display.externalMeasured&&N(a);gt(a,i,Je(e,a,l)),a.styleClasses&&(a.styleClasses.bgClass&&(i.bgClass=u(a.styleClasses.bgClass,i.bgClass||"")),a.styleClasses.textClass&&(i.textClass=u(a.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Ge(e.display.measure))),0==o?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ta){var c=i.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Pe(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=u(i.pre.className,i.textClass||"")),i}function ht(e){var t=i("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ft(e,t,n,r,o,a,s){if(t){var u,l=e.splitSpaces?pt(t,e.trailingSpace):t,c=e.cm.state.specialChars,d=!1;if(c.test(t)){u=document.createDocumentFragment();for(var h=0;;){c.lastIndex=h;var f=c.exec(t),v=f?f.index-h:t.length-h;if(v){var m=document.createTextNode(l.slice(h,h+v));Jo&&ea<9?u.appendChild(i("span",[m])):u.appendChild(m),e.map.push(e.pos,e.pos+v,m),e.col+=v,e.pos+=v}if(!f)break;h+=v+1;var g=void 0;if("\t"==f[0]){var y=e.cm.options.tabSize,b=y-e.col%y;g=u.appendChild(i("span",p(b),"cm-tab")),g.setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=b}else"\r"==f[0]||"\n"==f[0]?(g=u.appendChild(i("span","\r"==f[0]?"␍":"␤","cm-invalidchar")),g.setAttribute("cm-text",f[0]),e.col+=1):(g=e.cm.options.specialCharPlaceholder(f[0]),g.setAttribute("cm-text",f[0]),Jo&&ea<9?u.appendChild(i("span",[g])):u.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,u=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,u),Jo&&ea<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==l.charCodeAt(t.length-1),n||r||o||d||s){var _=n||"";r&&(_+=r),o&&(_+=o);var w=i("span",[u],_,s);return a&&(w.title=a),e.content.appendChild(w)}e.content.appendChild(u)}}function pt(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;rl&&d.from<=l));h++);if(d.to>=c)return e(n,i,r,o,a,s,u);e(n,i.slice(0,d.to-l),r,o,null,s,u),o=null,i=i.slice(d.to-l),l=d.to}}}function mt(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function gt(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var a,s,u,l,c,d,h,f=r.length,p=0,v=1,m="",g=0;;){if(g==p){u=l=c=d=s="",h=null,g=1/0;for(var y=[],b=void 0,_=0;_p||x.collapsed&&w.to==p&&w.from==p)?(null!=w.to&&w.to!=p&&g>w.to&&(g=w.to,l=""),x.className&&(u+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==p&&(c+=" "+x.startStyle),x.endStyle&&w.to==g&&(b||(b=[])).push(x.endStyle,w.to),x.title&&!d&&(d=x.title),x.collapsed&&(!h||ae(h.marker,x)<0)&&(h=w)):w.from>p&&g>w.from&&(g=w.from)}if(b)for(var T=0;T=f)break;for(var C=Math.min(f,g);;){if(m){var O=p+m.length;if(!h){var S=O>C?m.slice(0,C-p):m;t.addToken(t,S,a?a+u:u,c,p+S.length==g?l:"",d,s)}if(O>=C){m=m.slice(C-p),p=C;break}p=O,c=""}m=r.slice(o,o=n[v++]),a=ct(n[v++],t.cm.options)}}else for(var k=1;k2&&o.push((u.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Yt(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var i=0;in)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Qt(e,t){t=de(t);var i=N(t),r=e.display.externalMeasured=new yt(e.doc,t,i);r.lineN=i;var o=r.built=dt(e,r);return r.text=o.pre,n(e.display.lineMeasure,o.pre),r}function Kt(e,t,n,i){return $t(e,Xt(e,t),n,i)}function qt(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=u-s,r=o-1,t>=u&&(a="right")),null!=r){if(i=e[l+2],s==u&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)i=e[(l-=3)+2],a="left";if("right"==n&&r==u-s)for(;l=0&&(n=e[r]).left==n.right;r--);return n}function en(e,t,n,i){var r,o=Zt(t.map,n,i),a=o.node,s=o.start,u=o.end,l=o.collapse;if(3==a.nodeType){for(var c=0;c<4;c++){for(;s&&T(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+u0&&(l=i="right");var d;r=e.options.lineWrapping&&(d=a.getClientRects()).length>1?d["right"==i?d.length-1:0]:a.getBoundingClientRect()}if(Jo&&ea<9&&!s&&(!r||!r.left&&!r.right)){var h=a.parentNode.getClientRects()[0];r=h?{left:h.left,right:h.left+bn(e.display),top:h.top,bottom:h.bottom}:Za}for(var f=r.top-t.rect.top,p=r.bottom-t.rect.top,v=(f+p)/2,m=t.view.measure.heights,g=0;g=i.text.length?(l=i.text.length,c="before"):l<=0&&(l=0,c="after"),!u)return a("before"==c?l-1:l,"before"==c);var d=xe(u,l,c),h=Ia,f=s(l,d,"before"==c);return null!=h&&(f.other=s(l,h,"before"!=c)),f}function hn(e,t){var n=0;t=H(e.doc,t),e.options.lineWrapping||(n=bn(e.display)*t.ch);var i=S(e.doc,t.line),r=ye(i)+Bt(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function fn(e,t,n,i,r){var o=A(e,t,n);return o.xRel=r,i&&(o.outside=!0),o}function pn(e,t,n){var i=e.doc;if(n+=e.display.viewOffset,n<0)return fn(i.first,0,null,!0,-1);var r=D(i,n),o=i.first+i.size-1;if(r>o)return fn(i.first+i.size-1,S(i,o).text.length,null,!0,1);t<0&&(t=0);for(var a=S(i,r);;){var s=gn(e,a,r,t,n),u=le(a),l=u&&u.find(0,!0);if(!u||!(s.ch>l.from.ch||s.ch==l.from.ch&&s.xRel>0))return s;r=N(a=l.to.line)}}function vn(e,t,n,i){var r=function(i){return un(e,t,$t(e,n,i),"line")},o=t.text.length,a=C(function(e){return r(e-1).bottom<=i},o,0);return o=C(function(e){return r(e).top>i},a,o),{begin:a,end:o}}function mn(e,t,n,i){var r=un(e,t,$t(e,n,i),"line").top;return vn(e,t,n,r)}function gn(e,t,n,i,r){r-=ye(t);var o,a=0,s=t.text.length,u=Xt(e,t),l=Te(t,e.doc.direction);if(l){if(e.options.lineWrapping){var c;c=vn(e,t,u,r),a=c.begin,s=c.end,c}o=new A(n,a);var d,h,f=dn(e,o,"line",t,u).left,p=fMath.abs(d)){if(v<0==d<0)throw new Error("Broke out of infinite loop in coordsCharInner");o=h}}else{var m=C(function(n){var o=un(e,t,$t(e,u,n),"line");return o.top>r?(s=Math.min(n,s),!0):!(o.bottom<=r)&&(o.left>i||!(o.rightg.right?1:0,o}function yn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Qa){Qa=i("pre");for(var r=0;r<49;++r)Qa.appendChild(document.createTextNode("x")),Qa.appendChild(i("br"));Qa.appendChild(document.createTextNode("x"))}n(e.measure,Qa);var o=Qa.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function bn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=i("span","xxxxxxxxxx"),r=i("pre",[t]);n(e.measure,r);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function _n(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+r,i[e.options.gutters[a]]=o.clientWidth;return{fixedPos:wn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function wn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function xn(e){var t=yn(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/bn(e.display)-3);return function(r){if(me(e.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,i=0;i=e.display.viewTo||s.to().line3&&(r(f,v.top,null,v.bottom),f=c,v.bottomu.bottom||l.bottom==u.bottom&&l.right>u.right)&&(u=l),f0?t.blinker=setInterval(function(){ -return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Nn(e){e.state.focused||(e.display.input.focus(),In(e))}function Dn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Ln(e))},100)}function In(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Pe(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),ta&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Pn(e))}function Ln(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Pe(e,"blur",e,t),e.state.focused=!1,ya(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function An(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=wn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",a=0;a.001||u<-.001)&&(P(r.line,o),Fn(r.line),r.rest))for(var l=0;l=a&&(o=D(t,ye(S(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function zn(e,t){Math.abs(e.doc.scrollTop-t)<2||(e.doc.scrollTop=t,qo||Ci(e,{top:t}),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t),e.display.scrollbars.setScrollTop(t),qo&&Ci(e),_i(e,100))}function Gn(e,t,n){(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||(t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),e.doc.scrollLeft=t,An(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Hn(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Un(e){var t=Hn(e);return t.x*=es,t.y*=es,t}function Wn(e,t){var n=Hn(t),i=n.x,r=n.y,o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(i&&s||r&&u){if(r&&da&&ta)e:for(var l=t.target,c=o.view;l!=a;l=l.parentNode)for(var d=0;d(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!sa){var a=i("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Bt(e.display))+"px;\n height: "+(t.bottom-t.top+Ht(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function Xn(e,t,n,i){null==i&&(i=0);for(var r,o=0;o<5;o++){var a=!1,s=dn(e,t),u=n&&n!=t?dn(e,n):s;r={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-i,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+i};var l=Zn(e,r),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=l.scrollTop&&(zn(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(Gn(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return r}function $n(e,t){var n=Zn(e,t);null!=n.scrollTop&&zn(e,n.scrollTop),null!=n.scrollLeft&&Gn(e,n.scrollLeft)}function Zn(e,t){var n=e.display,i=yn(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Wt(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+zt(n),u=t.tops-i;if(t.topr+o){var c=Math.min(t.top,(l?s:t.bottom)-o);c!=r&&(a.scrollTop=c)}var d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,h=Ut(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),f=t.right-t.left>h;return f&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.lefth+d-3&&(a.scrollLeft=t.right+(f?0:10)-h),a}function Jn(e,t,n){null==t&&null==n||ti(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function ei(e){ti(e);var t=e.getCursor(),n=t,i=t;e.options.lineWrapping||(n=t.ch?A(t.line,t.ch-1):t,i=A(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:i,margin:e.options.cursorScrollMargin}}function ti(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=hn(e,t.from),i=hn(e,t.to),r=Zn(e,{left:Math.min(n.left,i.left),top:Math.min(n.top,i.top)-t.margin,right:Math.max(n.right,i.right),bottom:Math.max(n.bottom,i.bottom)+t.margin});e.scrollTo(r.scrollLeft,r.scrollTop)}}function ni(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++rs},_t(e.curOp)}function ii(e){var t=e.curOp;xt(t,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new os(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ai(e){e.updatedDisplay=e.mustUpdate&&Ti(e.cm,e.update)}function si(e){var t=e.cm,n=t.display;e.updatedDisplay&&jn(t),e.barMeasure=Vn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Kt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Ht(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ut(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function ui(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Da&&pe(e.doc,t)r.viewFrom?mi(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)mi(e);else if(t<=r.viewFrom){var o=gi(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):mi(e)}else if(n>=r.viewTo){var a=gi(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):mi(e)}else{var s=gi(e,t,t,-1),u=gi(e,n,n+i,1);s&&u?(r.view=r.view.slice(0,s.index).concat(bt(e,s.lineN,u.lineN)).concat(r.view.slice(u.index)),r.viewTo+=i):mi(e)}var l=r.externalMeasured;l&&(n=r.lineN&&t=i.viewTo)){var o=i.view[Cn(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);h(a,n)==-1&&a.push(n)}}}function mi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function gi(e,t,n,i){var r,o=Cn(e,t),a=e.display.view;if(!Da||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,u=0;u0){if(o==a.length-1)return null;r=s+a[o].size-t,o++}else r=s-t;t+=r,n+=r}for(;pe(e.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function yi(e,t,n){var i=e.display,r=i.view;0==r.length||t>=i.viewTo||n<=i.viewFrom?(i.view=bt(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=bt(e,t,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,Cn(e,n)))),i.viewTo=n}function bi(e){for(var t=e.display.view,n=0,i=0;i=e.display.viewTo)){var n=+new Date+e.options.workTime,i=qe(t.mode,et(e,t.frontier)),r=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(t.frontier>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength,u=Ze(e,o,s?qe(t.mode,i):i,!0);o.styles=u.styles;var l=o.styleClasses,c=u.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),h=0;!d&&hn)return _i(e,e.options.workDelay),!0}),r.length&&ci(e,function(){for(var t=0;t=i.viewFrom&&n.visible.to<=i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&0==bi(e))return!1;Rn(e)&&(mi(e),n.dims=_n(e));var o=r.first+r.size,s=Math.max(n.visible.from-e.options.viewportMargin,r.first),u=Math.min(o,n.visible.to+e.options.viewportMargin);i.viewFromu&&i.viewTo-u<20&&(u=Math.min(o,i.viewTo)),Da&&(s=pe(e.doc,s),u=ve(e.doc,u));var l=s!=i.viewFrom||u!=i.viewTo||i.lastWrapHeight!=n.wrapperHeight||i.lastWrapWidth!=n.wrapperWidth;yi(e,s,u),i.viewOffset=ye(S(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var c=bi(e);if(!l&&0==c&&!n.force&&i.renderedView==i.view&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo))return!1;var d=a();return c>4&&(i.lineDiv.style.display="none"),Oi(e,i.updateLineNumbers,n.dims),c>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,d&&a()!=d&&d.offsetHeight&&d.focus(),t(i.cursorDiv),t(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,l&&(i.lastWrapHeight=n.wrapperHeight,i.lastWrapWidth=n.wrapperWidth,_i(e,400)),i.updateLineNumbers=null,!0}function Ei(e,t){for(var n=t.viewport,i=!0;(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Ut(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+zt(e.display)-Wt(e),n.top)}),t.visible=Bn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Ti(e,t);i=!1){jn(e);var r=Vn(e);On(e),Yn(e,r),ki(e,r)}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ci(e,t){var n=new os(e,t);if(Ti(e,n)){jn(e),Ei(e,n);var i=Vn(e);On(e),Yn(e,i),ki(e,i),n.finish()}}function Oi(e,n,i){function r(t){var n=t.nextSibling;return ta&&da&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,s=o.lineDiv,u=s.firstChild,l=o.view,c=o.viewFrom,d=0;d-1&&(p=!1),Ct(e,f,c,i)),p&&(t(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(L(e.options,c)))),u=f.node.nextSibling}else{var v=It(e,f,c,i);s.insertBefore(v,u)}c+=f.size}for(;u;)u=r(u)}function Si(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function ki(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ht(e)+"px"}function Mi(e){var n=e.display.gutters,r=e.options.gutters;t(n);for(var o=0;o-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Ni(e,t){var n=e[t];e.sort(function(e,t){return R(e.from(),t.from())}),t=h(e,n);for(var i=1;i=0){var a=z(o.from(),r.from()),s=B(o.to(),r.to()),u=o.empty()?r.from()==r.head:o.from()==o.head;i<=t&&--t,e.splice(--i,2,new ss(u?s:a,u?a:s))}}return new as(e,t)}function Di(e,t){return new as([new ss(e,t||e)],0)}function Ii(e){return e.text?A(e.from.line+e.text.length-1,v(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Li(e,t){if(R(e,t.from)<0)return e;if(R(e,t.to)<=0)return Ii(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=Ii(t).ch-t.to.ch),A(n,i)}function Ai(e,t){for(var n=[],i=0;i1&&e.remove(s.line+1,p-1),e.insert(s.line+1,y)}Tt(e,"change",e,t)}function Hi(e,t,n){function i(e,r,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),v(e.done)):void 0}function Xi(e,t,n,i){var r=e.history;r.undone.length=0;var o,a,s=+new Date;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&r.lastModTime>s-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=qi(r,r.lastOp==i)))a=v(o.changes),0==R(t.from,t.to)&&0==R(t.from,a.to)?a.to=Ii(t):o.changes.push(Qi(e,t));else{var u=v(r.done);for(u&&u.ranges||Ji(e.sel,r.done),o={changes:[Qi(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,a||Pe(e,"historyAdded")}function $i(e,t,n,i){var r=t.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Zi(e,t,n,i){var r=e.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||$i(e,o,v(r.done),t))?r.done[r.done.length-1]=t:Ji(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&i.clearRedo!==!1&&Ki(r.undone)}function Ji(e,t){var n=v(t);n&&n.ranges&&n.equals(e)||t.push(e)}function er(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function tr(e){if(!e)return null;for(var t,n=0;n-1&&(v(s)[d]=l[d],delete l[d])}}}return i}function or(e,t,n,i){if(e.cm&&e.cm.display.shift||e.extend){var r=t.anchor;if(i){var o=R(n,r)<0;o!=R(i,r)<0?(r=n,n=i):o!=R(n,i)<0&&(n=i)}return new ss(r,n)}return new ss(i||n,n)}function ar(e,t,n,i){hr(e,new as([or(e,e.sel.primary(),t,n)],0),i)}function sr(e,t,n){for(var i=[],r=0;r=t.ch:s.to>t.ch))){if(r&&(Pe(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var l=u.find(i<0?1:-1),c=void 0;if((i<0?u.inclusiveRight:u.inclusiveLeft)&&(l=br(e,l,-i,l&&l.line==t.line?o:null)),l&&l.line==t.line&&(c=R(l,n))&&(i<0?c<0:c>0))return gr(e,l,t,i,r)}var d=u.find(i<0?-1:1);return(i<0?u.inclusiveLeft:u.inclusiveRight)&&(d=br(e,d,i,d.line==t.line?o:null)),d?gr(e,d,t,i,r):null}}return t}function yr(e,t,n,i,r){var o=i||1,a=gr(e,t,n,o,r)||!r&&gr(e,t,n,o,!0)||gr(e,t,n,-o,r)||!r&&gr(e,t,n,-o,!0);return a?a:(e.cantEdit=!0,A(e.first,0))}function br(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?H(e,A(t.line-1)):null:n>0&&t.ch==(i||S(e,t.line)).text.length?t.line=0;--r)Tr(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text});else Tr(e,t)}}function Tr(e,t){if(1!=t.text.length||""!=t.text[0]||0!=R(t.from,t.to)){var n=Ai(e,t);Xi(e,t,n,e.cm?e.cm.curOp.id:NaN),Or(e,t,n,J(e,t));var i=[];Hi(e,function(e,n){n||h(i,e.history)!=-1||(Nr(e.history,t),i.push(e.history)),Or(e,t,null,J(e,t))})}}function Er(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var i,r=e.history,o=e.sel,a="undo"==t?r.done:r.undone,s="undo"==t?r.undone:r.done,u=0;u=0;--f){var p=d(f);if(p)return p.v}}}}function Cr(e,t){if(0!=t&&(e.first+=t,e.sel=new as(m(e.sel.ranges,function(e){return new ss(A(e.anchor.line+t,e.anchor.ch),A(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){pi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())){if(t.from.lineo&&(t={from:t.from,to:A(o,S(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=k(e,t.from,t.to),n||(n=Ai(e,t)),e.cm?Sr(e.cm,t,i):Gi(e,t,i),fr(e,n,Ca)}}function Sr(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to,s=!1,u=o.line;e.options.lineWrapping||(u=N(de(S(i,o.line))),i.iter(u,a.line+1,function(e){if(e==r.maxLine)return s=!0,!0})),i.sel.contains(t.from,t.to)>-1&&De(e),Gi(i,t,n,xn(e)),e.options.lineWrapping||(i.iter(u,o.line+t.text.length,function(e){var t=be(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),i.frontier=Math.min(i.frontier,o.line),_i(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?pi(e):o.line!=a.line||1!=t.text.length||zi(e.doc,t)?pi(e,o.line,a.line+1,l):vi(e,o.line,"text");var c=Ie(e,"changes"),d=Ie(e,"change");if(d||c){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Tt(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function kr(e,t,n,i,r){if(i||(i=n),R(i,n)<0){var o=i;i=n,n=o}"string"==typeof t&&(t=e.splitLines(t)),xr(e,{from:n,to:i,text:t,origin:r})}function Mr(e,t,n,i){n0||0==s&&a.clearWhenEmpty!==!1)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=r("span",[a.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ce(e,t.line,t,n,a)||t.line!=n.line&&ce(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Y()}a.addToHistory&&Xi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var u,l=t.line,d=e.cm;if(e.iter(l,n.line+1,function(e){d&&a.collapsed&&!d.options.lineWrapping&&de(e)==d.display.maxLine&&(u=!0),a.collapsed&&l!=t.line&&P(e,0),X(e,new Q(a,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),a.collapsed&&e.iter(t.line,n.line+1,function(t){me(e,t)&&P(t,0)}),a.clearOnEnter&&Ra(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(V(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++ds,a.atomic=!0),d){if(u&&(d.curOp.updateMaxLine=!0),a.collapsed)pi(d,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var h=t.line;h<=n.line;h++)vi(d,h,"text");a.atomic&&vr(d.doc),Tt(d,"markerAdded",d,a)}return a}function Rr(e,t,n,i,r){i=c(i),i.shared=!1;var o=[Ar(e,t,n,i,r)],a=o[0],s=i.widgetNode;return Hi(e,function(e){s&&(i.widgetNode=s.cloneNode(!0)),o.push(Ar(e,H(e,t),H(e,n),i,r));for(var u=0;u-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var l=e.dataTransfer.getData("Text");if(l){var c;if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),fr(t.doc,Di(n,n)),c)for(var d=0;d=0;t--)kr(e.doc,"",i[t].from,i[t].to,"+delete");ei(e)})}function to(e,t){var n=S(e.doc,t),i=de(n);return i!=n&&(t=N(i)),Oe(!0,e,i,t,1)}function no(e,t){var n=S(e.doc,t),i=he(n);return i!=n&&(t=N(i)),Oe(!0,e,n,t,-1)}function io(e,t){var n=to(e,t.line),i=S(e.doc,n.line),r=Te(i,e.doc.direction);if(!r||0==r[0].level){var o=Math.max(0,i.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return A(n.line,a?0:o,n.sticky)}return n}function ro(e,t,n){if("string"==typeof t&&(t=Cs[t],!t))return!1;e.display.input.ensurePolled();var i=e.display.shift,r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),r=t(e)!=Ea}finally{e.display.shift=i,e.state.suppressEdits=!1}return r}function oo(e,t,n){for(var i=0;ir-400&&0==R(Es.pos,n)?i="triple":Ts&&Ts.time>r-400&&0==R(Ts.pos,n)?(i="double",Es={time:r,pos:n}):(i="single",Ts={time:r,pos:n});var o,s=e.doc.sel,u=da?t.metaKey:t.ctrlKey;e.options.dragDrop&&ja&&!e.isReadOnly()&&"single"==i&&(o=s.contains(n))>-1&&(R((o=s.ranges[o]).from(),n)<0||n.xRel>0)&&(R(o.to(),n)>0||n.xRel<0)?mo(e,t,n,u):go(e,t,n,i,u)}function mo(e,t,n,i){var r=e.display,o=+new Date,a=di(e,function(s){ta&&(r.scroller.draggable=!1),e.state.draggingText=!1,Me(document,"mouseup",a),Me(r.scroller,"drop",a),Math.abs(t.clientX-s.clientX)+Math.abs(t.clientY-s.clientY)<10&&(Ae(s),!i&&+new Date-200_&&r.push(new ss(A(m,_),A(m,f(y,l,o))))}r.length||r.push(new ss(n,n)),hr(c,Ni(v.ranges.slice(0,p).concat(r),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var w=h,x=w.anchor,T=t;if("single"!=i){var E;E="double"==i?e.findWordAt(t):new ss(A(t.line,0),H(c,A(t.line+1,0))),R(E.anchor,x)>0?(T=E.head,x=z(w.from(),E.anchor)):(T=E.anchor,x=B(w.to(),E.head))}var C=v.ranges.slice(0);C[p]=new ss(H(c,x),T),hr(c,Ni(C,p),Oa)}}function s(t){var n=++w,r=En(e,t,!0,"rect"==i);if(r)if(0!=R(r,b)){e.curOp.focus=a(),o(r);var u=Bn(l,c);(r.line>=u.to||r.line_.bottom?20:0;d&&setTimeout(di(e,function(){w==n&&(l.scroller.scrollTop+=d,s(t))}),50)}}function u(t){e.state.selectingText=!1,w=1/0,Ae(t),l.input.focus(),Me(document,"mousemove",x),Me(document,"mouseup",T),c.history.lastSelOrigin=null}var l=e.display,c=e.doc;Ae(t);var h,p,v=c.sel,m=v.ranges;if(r&&!t.shiftKey?(p=c.sel.contains(n),h=p>-1?m[p]:new ss(n,n)):(h=c.sel.primary(),p=c.sel.primIndex),ha?t.shiftKey&&t.metaKey:t.altKey)i="rect",r||(h=new ss(n,n)),n=En(e,t,!0,!0),p=-1;else if("double"==i){var g=e.findWordAt(n);h=e.display.shift||c.extend?or(c,h,g.anchor,g.head):g}else if("triple"==i){var y=new ss(A(n.line,0),H(c,A(n.line+1,0)));h=e.display.shift||c.extend?or(c,h,y.anchor,y.head):y}else h=or(c,h,n);r?p==-1?(p=m.length,hr(c,Ni(m.concat([h]),p),{scroll:!1,origin:"*mouse"})):m.length>1&&m[p].empty()&&"single"==i&&!t.shiftKey?(hr(c,Ni(m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),v=c.sel):ur(c,p,h,Oa):(p=0,hr(c,new as([h],0),Oa),v=c.sel);var b=n,_=l.wrapper.getBoundingClientRect(),w=0,x=di(e,function(e){ze(e)?s(e):u(e)}),T=di(e,u);e.state.selectingText=T,Ra(document,"mousemove",x),Ra(document,"mouseup",T)}function yo(e,t,n,i){var r,o;try{r=t.clientX,o=t.clientY}catch(e){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Ae(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ie(e,n))return je(t);o-=s.top-a.viewOffset;for(var u=0;u=r){var c=D(e.doc,o),d=e.options.gutters[u];return Pe(e,n,e,c,d,t),je(t)}}}function bo(e,t){return yo(e,t,"gutterClick",!0)}function _o(e,t){Ft(e.display,t)||wo(e,t)||Ne(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function wo(e,t){return!!Ie(e,"gutterContextMenu")&&yo(e,t,"gutterContextMenu",!1)}function xo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),on(e)}function To(e){function t(t,i,r,o){e.defaults[t]=i,r&&(n[t]=o?function(e,t,n){n!=ks&&r(e,t,n)}:r)}var n=e.optionHandlers;e.defineOption=t,e.Init=ks,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Fi(e)},!0),t("indentUnit",2,Fi,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){Bi(e),on(e),pi(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter(function(e){for(var r=0;;){var o=e.text.indexOf(t,r);if(o==-1)break;r=o+t.length,n.push(A(i,o))}i++});for(var r=n.length-1;r>=0;r--)kr(e.doc,t,n[r],A(n[r].line,n[r].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=ks&&e.refresh()}),t("specialCharPlaceholder",ht,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",ca?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!fa),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){xo(e),Eo(e)},!0),t("keyMap","default",function(e,t,n){var i=Jr(t),r=n!=ks&&Jr(n);r&&r.detach&&r.detach(e,i),i.attach&&i.attach(e,r||null)}),t("extraKeys",null),t("lineWrapping",!1,Oo,!0),t("gutters",[],function(e){Pi(e.options),Eo(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?wn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return Yn(e)},!0),t("scrollbarStyle","native",function(e){Kn(e),Yn(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Pi(e.options),Eo(e)},!0),t("firstLineNumber",1,Eo,!0),t("lineNumberFormatter",function(e){return e},Eo,!0),t("showCursorWhenSelecting",!1,On,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("readOnly",!1,function(e,t){"nocursor"==t?(Ln(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Co),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,On,!0),t("singleCursorHeightPerLine",!0,On,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,Bi,!0),t("addModeClass",!1,Bi,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,Bi,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}function Eo(e){Mi(e),pi(e),An(e)}function Co(e,t,n){var i=n&&n!=ks;if(!t!=!i){var r=e.display.dragFunctions,o=t?Ra:Me;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Oo(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ya(e.display.wrapper,"CodeMirror-wrap"),_e(e)),Tn(e),pi(e),on(e),setTimeout(function(){return Yn(e)},100)}function So(e,t){var n=this;if(!(this instanceof So))return new So(e,t);this.options=t=t?c(t):{},c(Ms,t,!1),Pi(t);var i=t.value;"string"==typeof i&&(i=new vs(i,t.mode,null,t.lineSeparator,t.direction)),this.doc=i;var r=new So.inputStyles[t.inputStyle](this),o=this.display=new O(e,i,r);o.wrapper.CodeMirror=this,Mi(this),xo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kn(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 _a,keySeq:null,specialChars:null},t.autofocus&&!ca&&o.input.focus(),Jo&&ea<11&&setTimeout(function(){return n.display.input.reset(!0)},20),ko(this),Vr(),ni(this),this.curOp.forceUpdate=!0,Ui(this,i),t.autofocus&&!ca||this.hasFocus()?setTimeout(l(In,this),20):Ln(this);for(var a in Ps)Ps.hasOwnProperty(a)&&Ps[a](n,t[a],ks);Rn(this),t.finishInit&&t.finishInit(this);for(var s=0;s400}var r=e.display;Ra(r.scroller,"mousedown",di(e,po)),Jo&&ea<11?Ra(r.scroller,"dblclick",di(e,function(t){if(!Ne(e,t)){var n=En(e,t);if(n&&!bo(e,t)&&!Ft(e.display,t)){Ae(t);var i=e.findWordAt(n);ar(e.doc,i.anchor,i.head)}}})):Ra(r.scroller,"dblclick",function(t){return Ne(e,t)||Ae(t)}),ga||Ra(r.scroller,"contextmenu",function(t){return _o(e,t)});var o,a={end:0};Ra(r.scroller,"touchstart",function(t){if(!Ne(e,t)&&!n(t)){r.input.ensurePolled(),clearTimeout(o);var i=+new Date;r.activeTouch={start:i,moved:!1,prev:i-a.end<=300?a:null},1==t.touches.length&&(r.activeTouch.left=t.touches[0].pageX,r.activeTouch.top=t.touches[0].pageY)}}),Ra(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ra(r.scroller,"touchend",function(n){var o=r.activeTouch;if(o&&!Ft(r,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var a,s=e.coordsChar(r.activeTouch,"page");a=!o.prev||i(o,o.prev)?new ss(s,s):!o.prev.prev||i(o,o.prev.prev)?e.findWordAt(s):new ss(A(s.line,0),H(e.doc,A(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ae(n)}t()}),Ra(r.scroller,"touchcancel",t),Ra(r.scroller,"scroll",function(){r.scroller.clientHeight&&(zn(e,r.scroller.scrollTop),Gn(e,r.scroller.scrollLeft,!0),Pe(e,"scroll",e))}),Ra(r.scroller,"mousewheel",function(t){return Wn(e,t)}),Ra(r.scroller,"DOMMouseScroll",function(t){return Wn(e,t)}),Ra(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(t){Ne(e,t)||Fe(t)},over:function(t){Ne(e,t)||(Hr(e,t),Fe(t))},start:function(t){return Gr(e,t)},drop:di(e,zr),leave:function(t){Ne(e,t)||Ur(e)}};var s=r.input.getField();Ra(s,"keyup",function(t){return ho.call(e,t)}),Ra(s,"keydown",di(e,lo)),Ra(s,"keypress",di(e,fo)),Ra(s,"focus",function(t){return In(e,t)}),Ra(s,"blur",function(t){return Ln(e,t)})}function Mo(e,t,n,i){var r,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=et(e,t):n="prev");var a=e.options.tabSize,s=S(o,t),u=d(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,c=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&(l=o.mode.indent(r,s.text.slice(c.length),s.text),l==Ea||l>150)){if(!i)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?d(S(o,t-1).text,null,a):0:"add"==n?l=u+e.options.indentUnit:"subtract"==n?l=u-e.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var h="",f=0;if(e.options.indentWithTabs)for(var v=Math.floor(l/a);v;--v)f+=a,h+="\t";if(f1)if(Ds&&Ds.text.join("\n")==t){if(i.ranges.length%Ds.text.length==0){u=[];for(var l=0;l=0;d--){var h=i.ranges[d],f=h.from(),p=h.to();h.empty()&&(n&&n>0?f=A(f.line,f.ch-n):e.state.overwrite&&!a?p=A(p.line,Math.min(S(o,p.line).text.length,p.ch+v(s).length)):Ds&&Ds.lineWise&&Ds.text.join("\n")==t&&(f=p=A(f.line,0))),c=e.curOp.updateInput;var g={from:f,to:p,text:u?u[d%u.length]:s,origin:r||(a?"paste":e.state.cutIncoming?"cut":"+input")};xr(e.doc,g),Tt(e,"inputRead",e,g)}t&&!a&&Io(e,t),ei(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Do(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||ci(t,function(){return No(t,n,0,null,"paste")}),!0}function Io(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=e.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Mo(e,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(S(e.doc,r.head.line).text.slice(0,r.head.ch))&&(a=Mo(e,r.head.line,"smart"));a&&Tt(e,"electricInput",e,r.head.line)}}}function Lo(e){for(var t=[],n=[],i=0;i=e.first+e.size)&&(t=new A(i,t.ch,t.sticky),l=S(e,i))}function a(i){var a;if(a=r?Se(e.cm,l,t,n):Ce(l,t,n),null==a){if(i||!o())return!1;t=Oe(r,e.cm,l,t.line,n)}else t=a;return!0}var s=t,u=n,l=S(e,t.line);if("char"==i)a();else if("column"==i)a(!0);else if("word"==i||"group"==i)for(var c=null,d="group"==i,h=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||a(!f);f=!1){var p=l.text.charAt(t.ch)||"\n",v=w(p,h)?"w":d&&"\n"==p?"n":!d||/\s/.test(p)?null:"p";if(!d||f||v||(v="s"),c&&c!=v){n<0&&(n=1,a(),t.sticky="after");break}if(v&&(c=v),n>0&&!a(!f))break}var m=yr(e,t,s,u,!0);return j(s,m)&&(m.hitSide=!0),m}function Fo(e,t,n,i){var r,o=e.doc,a=t.left;if("page"==i){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*yn(e.display),3);r=(n>0?t.bottom:t.top)+n*u}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(var l;l=pn(e,a,r),l.outside;){if(n<0?r<=0:r>=o.height){l.hitSide=!0;break}r+=5*n}return l}function Bo(e,t){var n=qt(e,t.line);if(!n||n.hidden)return null;var i=S(e.doc,t.line),r=Yt(n,i,t.line),o=Te(i,e.doc.direction),a="left";if(o){var s=xe(o,t.ch);a=s%2?"right":"left"}var u=Zt(r.map,t.ch,a);return u.offset="right"==u.collapse?u.end:u.start,u}function zo(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Go(e,t){return t&&(e.bad=!0),e}function Ho(e,t,n,i,r){function o(e){return function(t){return t.id==e}}function a(){c&&(l+=d,c=!1)}function s(e){e&&(a(),l+=e)}function u(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void s(n||t.textContent.replace(/\u200b/g,""));var l,h=t.getAttribute("cm-marker");if(h){var f=e.findMarks(A(i,0),A(r+1,0),o(+h));return void(f.length&&(l=f[0].find())&&s(k(e.doc,l.from,l.to).join(d)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p)$/i.test(t.nodeName);p&&a();for(var v=0;v=15&&(ra=!1,ta=!0);var va,ma=da&&(na||ra&&(null==pa||pa<12.11)),ga=qo||Jo&&ea>=9,ya=function(t,n){var i=t.className,r=e(n).exec(i);if(r){var o=i.slice(r.index+r[0].length);t.className=i.slice(0,r.index)+(o?r[1]+o:"")}};va=document.createRange?function(e,t,n,i){var r=document.createRange();return r.setEnd(i||e,n),r.setStart(e,t),r}:function(e,t,n){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch(e){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i};var ba=function(e){e.select()};ua?ba=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:Jo&&(ba=function(e){try{e.select()}catch(e){}});var _a=function(){this.id=null};_a.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var wa,xa,Ta=30,Ea={toString:function(){return"CodeMirror.Pass"}},Ca={scroll:!1},Oa={origin:"*mouse"},Sa={origin:"+move"},ka=[""],Ma=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Pa=/[\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]/,Na=!1,Da=!1,Ia=null,La=function(){ -function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?i.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,u=/[1n]/;return function(n,i){var l="ltr"==i?"L":"R";if(0==n.length||"ltr"==i&&!r.test(n))return!1;for(var c=n.length,d=[],h=0;h=this.string.length},Va.prototype.sol=function(){return this.pos==this.lineStart},Va.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Va.prototype.next=function(){if(this.post},Va.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},Va.prototype.skipToEnd=function(){this.pos=this.string.length},Va.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Va.prototype.backUp=function(e){this.pos-=e},Va.prototype.column=function(){return this.lastColumnPos0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(r(o)==r(e))return t!==!1&&(this.pos+=e.length),!0},Va.prototype.current=function(){return this.string.slice(this.start,this.pos)},Va.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}};var Ya=function(e,t,n){this.text=e,ie(this,t),this.height=n?n(this):1};Ya.prototype.lineNo=function(){return N(this)},Le(Ya);var Qa,Ka={},qa={},Xa=null,$a=null,Za={left:0,right:0,top:0,bottom:0},Ja=0,es=null;Jo?es=-.53:qo?es=15:ia?es=-.7:oa&&(es=-1/3);var ts=function(e,t,n){this.cm=n;var r=this.vert=i("div",[i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=i("div",[i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(o),Ra(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Ra(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Jo&&ea<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ts.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var r=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},ts.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},ts.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},ts.prototype.zeroWidthHack=function(){var e=da&&!aa?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new _a,this.disableVert=new _a},ts.prototype.enableZeroWidthBar=function(e,t){function n(){var i=e.getBoundingClientRect(),r=document.elementFromPoint(i.left+1,i.bottom-1);r!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},ts.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ns=function(){};ns.prototype.update=function(){return{bottom:0,right:0}},ns.prototype.setScrollLeft=function(){},ns.prototype.setScrollTop=function(){},ns.prototype.clear=function(){};var is={native:ts,null:ns},rs=0,os=function(e,t,n){var i=e.display;this.viewport=t,this.visible=Bn(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Ut(e),this.force=n,this.dims=_n(e),this.events=[]};os.prototype.signal=function(e,t){Ie(e,t)&&this.events.push(arguments)},os.prototype.finish=function(){for(var e=this,t=0;t=0&&R(e,r.to())<=0)return i}return-1};var ss=function(e,t){this.anchor=e,this.head=t};ss.prototype.from=function(){return z(this.anchor,this.head)},ss.prototype.to=function(){return B(this.anchor,this.head)},ss.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};var us=function(e){var t=this;this.lines=e,this.parent=null;for(var n=0,i=0;i1||!(this.children[0]instanceof us))){var u=[];this.collapse(u),this.children=[new us(u)],this.children[0].parent=this}},ls.prototype.collapse=function(e){for(var t=this,n=0;n50){for(var s=o.lines.length%25+25,u=s;u10);e.parent.maybeSpill()}},ls.prototype.iterN=function(e,t,n){for(var i=this,r=0;rt.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=d,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&pi(t,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&vr(t.doc)),t&&Tt(t,"markerCleared",t,this,r,o),n&&ii(t),this.parent&&this.parent.clear()}},hs.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var i,r,o=0;o=0;l--)xr(i,r[l]);u?dr(this,u):this.cm&&ei(this.cm)}),undo:fi(function(){Er(this,"undo")}),redo:fi(function(){Er(this,"redo")}),undoSelection:fi(function(){Er(this,"undo",!0)}),redoSelection:fi(function(){Er(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=H(this,e),t=H(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s=u.to||null==u.from&&r!=e.line||null!=u.from&&r==t.line&&u.from>=t.ch||n&&!n(u.marker)||i.push(u.marker.parent||u.marker)}++r}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var i=0;ie?(t=e,!0):(e-=o,void++n)}),H(this,A(n,t))},indexFromPos:function(e){e=H(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to0)r=new A(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),A(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var a=S(e.doc,r.line-1).text;a&&(r=new A(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),A(r.line-1,a.length-1),r,"+transpose"))}n.push(new ss(r,r))}e.setSelections(n)})},newlineAndIndent:function(e){return ci(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;ii&&(Mo(t,o.head.line,e,!0),i=o.head.line,r==t.doc.sel.primIndex&&ei(t));else{var a=o.from(),s=o.to(),u=Math.max(i,a.line);i=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var l=u;l0&&ur(t.doc,r,new ss(a,c[r].to()),Ca)}}}),getTokenAt:function(e,t){return rt(this,e,t)},getLineTokens:function(e,t){return rt(this,A(e),t,!0)},getTokenTypeAt:function(e){e=H(this.doc,e);var t,n=Je(this,S(this.doc,e.line)),i=0,r=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]o&&(e=o,r=!0),i=S(this.doc,e)}else i=e;return un(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-ye(i):0)},defaultTextHeight:function(){return yn(this.display)},defaultCharWidth:function(){return bn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o=this.display;e=dn(this,H(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==i)a=e.top;else if("above"==i||"near"==i){var u=Math.max(o.wrapper.clientHeight,this.doc.height),l=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(a=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==r?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&$n(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:hi(lo),triggerOnKeyPress:hi(fo),triggerOnKeyUp:ho,execCommand:function(e){if(Cs.hasOwnProperty(e))return Cs[e].call(null,this)},triggerElectric:hi(function(e){Io(this,e)}),findPosH:function(e,t,n,i){var r=this,o=1;t<0&&(o=-1,t=-t);for(var a=H(this.doc,e),s=0;s0&&s(n.charAt(i-1));)--i;for(;r.5)&&Tn(this),Pe(this,"refresh",this)}),swapDoc:hi(function(e){var t=this.doc;return t.cm=null,Ui(this,e),on(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Tt(this,"swapDoc",this,t),t}),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}},Le(e),e.registerHelper=function(t,i,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=r},e.registerGlobalHelper=function(t,i,r,o){e.registerHelper(t,i,o),n[t]._global.push({pred:r,val:o})}},Ls=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new _a,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ls.prototype.init=function(e){function t(e){if(!Ne(r,e)){if(r.somethingSelected())Po({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Lo(r);Po({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,Ca),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=Ds.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=Ro(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=Ds.text.join("\n");var u=document.activeElement;ba(s),setTimeout(function(){r.display.lineSpace.removeChild(a),u.focus(),u==o&&i.showPrimarySelection()},50)}}var n=this,i=this,r=i.cm,o=i.div=e.lineDiv;Ao(o,r.options.spellcheck),Ra(o,"paste",function(e){Ne(r,e)||Do(e,r)||ea<=11&&setTimeout(di(r,function(){return n.updateFromDOM()}),20)}),Ra(o,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),Ra(o,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),Ra(o,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),Ra(o,"touchstart",function(){return i.forceCompositionEnd()}),Ra(o,"input",function(){n.composing||n.readFromDOMSoon()}),Ra(o,"copy",t),Ra(o,"cut",t)},Ls.prototype.prepareSelection=function(){var e=Sn(this.cm,!1);return e.focus=this.cm.state.focused,e},Ls.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ls.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm.doc.sel.primary(),n=Uo(this.cm,e.anchorNode,e.anchorOffset),i=Uo(this.cm,e.focusNode,e.focusOffset);if(!n||n.bad||!i||i.bad||0!=R(z(n,i),t.from())||0!=R(B(n,i),t.to())){var r=Bo(this.cm,t.from()),o=Bo(this.cm,t.to());if(!r&&!o)return void e.removeAllRanges();var a=this.cm.display.view,s=e.rangeCount&&e.getRangeAt(0);if(r){if(!o){var u=a[a.length-1].measure,l=u.maps?u.maps[u.maps.length-1]:u.map;o={node:l[l.length-1],offset:l[l.length-2]-l[l.length-3]}}}else r={node:a[0].measure.map[2],offset:0};var c;try{c=va(r.node,r.offset,o.offset,o.node)}catch(e){}c&&(!qo&&this.cm.state.focused?(e.collapse(r.node,r.offset),c.collapsed||(e.removeAllRanges(),e.addRange(c))):(e.removeAllRanges(),e.addRange(c)),s&&null==e.anchorNode?e.addRange(s):qo&&this.startGracePeriod()),this.rememberSelection()}},Ls.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ls.prototype.showMultipleSelections=function(e){n(this.cm.display.cursorDiv,e.cursors),n(this.cm.display.selectionDiv,e.selection)},Ls.prototype.rememberSelection=function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ls.prototype.selectionInEditor=function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return o(this.div,t)},Ls.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ls.prototype.blur=function(){this.div.blur()},Ls.prototype.getField=function(){return this.div},Ls.prototype.supportsTouch=function(){return!0},Ls.prototype.receivedFocus=function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():ci(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},Ls.prototype.selectionChanged=function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ls.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;if(la&&ia&&this.cm.options.gutters.length&&zo(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Uo(t,e.anchorNode,e.anchorOffset),i=Uo(t,e.focusNode,e.focusOffset);n&&i&&ci(t,function(){hr(t.doc,Di(n,i),Ca),(n.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}}},Ls.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),i=n.from(),r=n.to();if(0==i.ch&&i.line>e.firstLine()&&(i=A(i.line-1,S(e.doc,i.line-1).length)),r.ch==S(e.doc,r.line).text.length&&r.linet.viewTo-1)return!1;var o,a,s;i.line==t.viewFrom||0==(o=Cn(e,i.line))?(a=N(t.view[0].line),s=t.view[0].node):(a=N(t.view[o].line),s=t.view[o-1].node.nextSibling);var u,l,c=Cn(e,r.line);if(c==t.view.length-1?(u=t.viewTo-1,l=t.lineDiv.lastChild):(u=N(t.view[c+1].line)-1,l=t.view[c+1].node.previousSibling),!s)return!1;for(var d=e.doc.splitLines(Ho(e,s,l,a,u)),h=k(e.doc,A(a,0),A(u,S(e.doc,u).text.length));d.length>1&&h.length>1;)if(v(d)==v(h))d.pop(),h.pop(),u--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),a++}for(var f=0,p=0,m=d[0],g=h[0],y=Math.min(m.length,g.length);fi.ch&&b.charCodeAt(b.length-p-1)==_.charCodeAt(_.length-p-1);)f--,p++;d[d.length-1]=b.slice(0,b.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var x=A(a,f),T=A(u,h.length?v(h).length-p:0);return d.length>1||d[0]||R(x,T)?(kr(e.doc,d,x,T,"+input"),!0):void 0},Ls.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ls.prototype.reset=function(){this.forceCompositionEnd()},Ls.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ls.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ls.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ci(this.cm,function(){return pi(e.cm)})},Ls.prototype.setUneditable=function(e){e.contentEditable="false"},Ls.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||di(this.cm,No)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ls.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ls.prototype.onContextMenu=function(){},Ls.prototype.resetPosition=function(){},Ls.prototype.needsContentAttribute=!0;var As=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new _a,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null};As.prototype.init=function(e){function t(e){if(!Ne(r,e)){if(r.somethingSelected())Po({lineWise:!1,text:r.getSelections()}),i.inaccurateSelection&&(i.prevInput="",i.inaccurateSelection=!1,a.value=Ds.text.join("\n"),ba(a));else{if(!r.options.lineWiseCopyCut)return;var t=Lo(r);Po({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,Ca):(i.prevInput="",a.value=t.text.join("\n"),ba(a))}"cut"==e.type&&(r.state.cutIncoming=!0)}}var n=this,i=this,r=this.cm,o=this.wrapper=Ro(),a=this.textarea=o.firstChild;e.wrapper.insertBefore(o,e.wrapper.firstChild),ua&&(a.style.width="0px"),Ra(a,"input",function(){Jo&&ea>=9&&n.hasSelection&&(n.hasSelection=null),i.poll()}),Ra(a,"paste",function(e){Ne(r,e)||Do(e,r)||(r.state.pasteIncoming=!0,i.fastPoll())}),Ra(a,"cut",t),Ra(a,"copy",t),Ra(e.scroller,"paste",function(t){Ft(e,t)||Ne(r,t)||(r.state.pasteIncoming=!0,i.focus())}),Ra(e.lineSpace,"selectstart",function(t){Ft(e,t)||Ae(t)}),Ra(a,"compositionstart",function(){var e=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Ra(a,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},As.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=Sn(e);if(e.options.moveInputWithCursor){var r=dn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},As.prototype.showSelection=function(e){var t=this.cm,i=t.display;n(i.cursorDiv,e.cursors),n(i.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},As.prototype.reset=function(e){if(!this.contextMenuPending){var t,n,i=this.cm,r=i.doc;if(i.somethingSelected()){this.prevInput="";var o=r.sel.primary();t=za&&(o.to().line-o.from().line>100||(n=i.getSelection()).length>1e3);var a=t?"-":n||i.getSelection();this.textarea.value=a,i.state.focused&&ba(this.textarea),Jo&&ea>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",Jo&&ea>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},As.prototype.getField=function(){return this.textarea},As.prototype.supportsTouch=function(){return!1},As.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!ca||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},As.prototype.blur=function(){this.textarea.blur()},As.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},As.prototype.receivedFocus=function(){this.slowPoll()},As.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},As.prototype.fastPoll=function(){function e(){var i=n.poll();i||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},As.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ba(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==i&&!t.somethingSelected())return!1;if(Jo&&ea>=9&&this.hasSelection===r||da&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(i.length,r.length);a1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},As.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},As.prototype.onKeyPress=function(){Jo&&ea>=9&&(this.hasSelection=null),this.fastPoll()},As.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=r.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,i.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=r.doc.sel}}function n(){if(i.contextMenuPending=!1,i.wrapper.style.cssText=d,a.style.cssText=c,Jo&&ea<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=u),null!=a.selectionStart){(!Jo||Jo&&ea<9)&&t();var e=0,n=function(){o.selForContextMenu==r.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==i.prevInput?di(r,_r)(r):e++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var i=this,r=i.cm,o=r.display,a=i.textarea,s=En(r,e),u=o.scroller.scrollTop;if(s&&!ra){var l=r.options.resetSelectionOnContextMenu;l&&r.doc.sel.contains(s)==-1&&di(r,hr)(r.doc,Di(s),Ca);var c=a.style.cssText,d=i.wrapper.style.cssText;i.wrapper.style.cssText="position: absolute";var h=i.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(Jo?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var f;if(ta&&(f=window.scrollY),o.input.focus(),ta&&window.scrollTo(null,f),o.input.reset(),r.somethingSelected()||(a.value=i.prevInput=" "),i.contextMenuPending=!0,o.selForContextMenu=r.doc.sel,clearTimeout(o.detectingSelectAll),Jo&&ea>=9&&t(),ga){Fe(e);var p=function(){Me(window,"mouseup",p),setTimeout(n,20)};Ra(window,"mouseup",p)}else setTimeout(n,50)}},As.prototype.readOnlyChanged=function(e){e||this.reset()},As.prototype.setUneditable=function(){},As.prototype.needsContentAttribute=!1,To(So),Is(So);var Rs="iter insert remove copy getEditor constructor".split(" ");for(var js in vs.prototype)vs.prototype.hasOwnProperty(js)&&h(Rs,js)<0&&(So.prototype[js]=function(e){return function(){return e.apply(this.doc,arguments)}}(vs.prototype[js]));return Le(vs),So.inputStyles={textarea:As,contenteditable:Ls},So.defineMode=function(e){So.defaults.mode||"null"==e||(So.defaults.mode=e),We.apply(this,arguments)},So.defineMIME=Ve,So.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),So.defineMIME("text/plain","null"),So.defineExtension=function(e,t){So.prototype[e]=t},So.defineDocExtension=function(e,t){vs.prototype[e]=t},So.fromTextArea=Vo,Yo(So),So.version="5.25.0",So})},function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(){for(var e=arguments.length,t=Array(e),n=0;n=c)return(t<0?Math.ceil:Math.floor)(t);throw new TypeError("Int cannot represent non 32-bit signed integer value: "+String(e))}function o(e){if(""===e)throw new TypeError("Float cannot represent non numeric value: (empty string)");var t=Number(e);if(t===t)return t;throw new TypeError("Float cannot represent non numeric value: "+String(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLID=t.GraphQLBoolean=t.GraphQLString=t.GraphQLFloat=t.GraphQLInt=void 0;var a=n(13),s=n(18),u=i(s),l=2147483647,c=-2147483648;t.GraphQLInt=new a.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ",serialize:r,parseValue:r,parseLiteral:function(e){if(e.kind===u.INT){var t=parseInt(e.value,10);if(t<=l&&t>=c)return t}return null}}),t.GraphQLFloat=new a.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ",serialize:o,parseValue:o,parseLiteral:function(e){return e.kind===u.FLOAT||e.kind===u.INT?parseFloat(e.value):null}}),t.GraphQLString=new a.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:String,parseValue:String,parseLiteral:function(e){return e.kind===u.STRING?e.value:null}}),t.GraphQLBoolean=new a.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:Boolean,parseValue:Boolean,parseLiteral:function(e){return e.kind===u.BOOLEAN?e.value:null}}),t.GraphQLID=new a.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:String,parseValue:String,parseLiteral:function(e){return e.kind===u.STRING||e.kind===u.INT?e.value:null}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!t)return e;if(t instanceof s.GraphQLList||t instanceof s.GraphQLNonNull)return o(e,t.ofType);if(e[t.name])return(0,f.default)(e[t.name]===t,"Schema must contain unique named types but contains multiple "+('types named "'+t.name+'".')),e;e[t.name]=t;var n=e;return t instanceof s.GraphQLUnionType&&(n=t.getTypes().reduce(o,n)),t instanceof s.GraphQLObjectType&&(n=t.getInterfaces().reduce(o,n)),(t instanceof s.GraphQLObjectType||t instanceof s.GraphQLInterfaceType)&&!function(){var e=t.getFields();Object.keys(e).forEach(function(t){var i=e[t];if(i.args){var r=i.args.map(function(e){return e.type});n=r.reduce(o,n)}n=o(n,i.type)})}(),t instanceof s.GraphQLInputObjectType&&!function(){var e=t.getFields();Object.keys(e).forEach(function(t){var i=e[t];n=o(n,i.type)})}(),n}function a(e,t,n){var i=t.getFields(),r=n.getFields();Object.keys(r).forEach(function(o){var a=i[o],u=r[o];(0,f.default)(a,'"'+n.name+'" expects field "'+o+'" but "'+t.name+'" does not provide it.'),(0,f.default)((0,p.isTypeSubTypeOf)(e,a.type,u.type),n.name+"."+o+' expects type "'+String(u.type)+'" but '+(t.name+"."+o+' provides type "'+String(a.type)+'".')),u.args.forEach(function(e){var i=e.name,r=(0,d.default)(a.args,function(e){return e.name===i});(0,f.default)(r,n.name+"."+o+' expects argument "'+i+'" but '+(t.name+"."+o+" does not provide it.")),(0,f.default)((0,p.isEqualType)(e.type,r.type),n.name+"."+o+"("+i+":) expects type "+('"'+String(e.type)+'" but ')+(t.name+"."+o+"("+i+":) provides type ")+('"'+String(r.type)+'".'))}),a.args.forEach(function(e){var i=e.name,r=(0,d.default)(u.args,function(e){return e.name===i});r||(0,f.default)(!(e.type instanceof s.GraphQLNonNull),t.name+"."+o+"("+i+":) is of required type "+('"'+String(e.type)+'" but is not also provided by the ')+("interface "+n.name+"."+o+"."))})})}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSchema=void 0;var s=n(13),u=n(41),l=n(42),c=n(63),d=i(c),h=n(20),f=i(h),p=n(126);t.GraphQLSchema=function(){function e(t){var n=this;r(this,e),(0,f.default)("object"==typeof t,"Must provide configuration object."),(0,f.default)(t.query instanceof s.GraphQLObjectType,"Schema query must be Object Type but got: "+String(t.query)+"."),this._queryType=t.query,(0,f.default)(!t.mutation||t.mutation instanceof s.GraphQLObjectType,"Schema mutation must be Object Type if provided but got: "+String(t.mutation)+"."),this._mutationType=t.mutation,(0,f.default)(!t.subscription||t.subscription instanceof s.GraphQLObjectType,"Schema subscription must be Object Type if provided but got: "+String(t.subscription)+"."),this._subscriptionType=t.subscription,(0,f.default)(!t.types||Array.isArray(t.types),"Schema types must be Array if provided but got: "+String(t.types)+"."),(0,f.default)(!t.directives||Array.isArray(t.directives)&&t.directives.every(function(e){return e instanceof u.GraphQLDirective}),"Schema directives must be Array if provided but got: "+String(t.directives)+"."),this._directives=t.directives||u.specifiedDirectives;var i=[this.getQueryType(),this.getMutationType(),this.getSubscriptionType(),l.__Schema],c=t.types;c&&(i=i.concat(c)),this._typeMap=i.reduce(o,Object.create(null)),this._implementations=Object.create(null),Object.keys(this._typeMap).forEach(function(e){var t=n._typeMap[e];t instanceof s.GraphQLObjectType&&t.getInterfaces().forEach(function(e){var i=n._implementations[e.name];i?i.push(t):n._implementations[e.name]=[t]})}),Object.keys(this._typeMap).forEach(function(e){var t=n._typeMap[e];t instanceof s.GraphQLObjectType&&t.getInterfaces().forEach(function(e){return a(n,t,e)})})}return e.prototype.getQueryType=function(){return this._queryType},e.prototype.getMutationType=function(){return this._mutationType},e.prototype.getSubscriptionType=function(){return this._subscriptionType},e.prototype.getTypeMap=function(){return this._typeMap},e.prototype.getType=function(e){return this.getTypeMap()[e]},e.prototype.getPossibleTypes=function(e){return e instanceof s.GraphQLUnionType?e.getTypes():((0,f.default)(e instanceof s.GraphQLInterfaceType),this._implementations[e.name])},e.prototype.isPossibleType=function(e,t){var n=this._possibleTypeMap;if(n||(this._possibleTypeMap=n=Object.create(null)),!n[e.name]){var i=this.getPossibleTypes(e);(0,f.default)(Array.isArray(i),"Could not find possible implementing types for "+e.name+" in schema. Check that schema.types is defined and is an array of all possible types in the schema."),n[e.name]=i.reduce(function(e,t){return e[t.name]=!0,e},Object.create(null))}return Boolean(n[e.name][t.name])},e.prototype.getDirectives=function(){return this._directives},e.prototype.getDirective=function(e){return(0,d.default)(this.getDirectives(),function(t){return t.name===e})},e}()},function(e,t,n){function i(e){return null==e?void 0===e?u:s:l&&l in Object(e)?o(e):a(e)}var r=n(78),o=n(637),a=n(663),s="[object Null]",u="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=i},function(e,t,n){function i(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(e)?o(e[0],e[1]):r(e):u(e)}var r=n(612),o=n(613),a=n(109),s=n(28),u=n(725);e.exports=i},function(e,t,n){function i(e,t){return r(e)?e:o(e,t)?[e]:a(s(e))}var r=n(28),o=n(203),a=n(676),s=n(15);e.exports=i},function(e,t,n){function i(e){if("string"==typeof e||r(e))return e;var t=e+""; -return"0"==t&&1/e==-o?"-0":t}var r=n(142),o=1/0;e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteScratchpadEntries=t.addScratchpadEntry=t.updateRegex=t.hideProgressBar=t.updateProgress=t.updateFullscreen=t.runQuery=t.resetResponseState=t.renderGraph=t.updateLatency=t.setCurrentNode=t.deleteAllQueries=t.deleteQuery=t.selectQuery=t.updatePartial=void 0;var i=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=n(156),o=t.updatePartial=function(e){return{type:"UPDATE_PARTIAL",partial:e}},a=(t.selectQuery=function(e){return{type:"SELECT_QUERY",text:e}},t.deleteQuery=function(e){return{type:"DELETE_QUERY",idx:e}},t.deleteAllQueries=function(){return{type:"DELETE_ALL_QUERIES"}},t.setCurrentNode=function(e){return{type:"SELECT_NODE",node:e}},function(e){return{type:"ADD_QUERY",text:e}}),s=function(){return{type:"IS_FETCHING",fetching:!0}},u=function(){return{type:"IS_FETCHING",fetching:!1}},l=function(e,t,n){return{type:"SUCCESS_RESPONSE",text:e,data:t,isMutation:n}},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"ERROR_RESPONSE",text:e,json:t}},d=function(e){return Object.assign({type:"RESPONSE_PROPERTIES"},e)},h=t.updateLatency=function(e){return Object.assign({type:"UPDATE_LATENCY"},e)},f=t.renderGraph=function(e,t,n){return function(a,s){var u=(0,r.processGraph)(t,n,e,s().query.propertyRegex),l=i(u,5),c=l[0],f=l[1],p=l[2],v=l[3],m=l[4];a(h({server:t.server_latency&&t.server_latency.total})),a(o(v=i?e:r(e,t,n)}var r=n(290);e.exports=i},function(e,t,n){function i(e,t){var n=o(e,t);return r(n)?n:void 0}var r=n(607),o=n(638);e.exports=i},function(e,t,n){function i(e){return o(e)?a(e):r(e)}var r=n(592),o=n(83),a=n(679);e.exports=i},function(e,t,n){function i(e){if(!a(e)||r(e)!=s)return!1;var t=o(e);if(null===t)return!0;var n=d.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==h}var r=n(56),o=n(135),a=n(45),s="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,d=l.hasOwnProperty,h=c.call(Object);e.exports=i},function(e,t,n){function i(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}var r=n(738);e.exports=i},[937,12],function(e,t,n){e.exports={default:n(439),__esModule:!0}},function(e,t,n){var i=n(93);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(92)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(62),r=n(96);e.exports=n(72)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(246),r=n(161);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t){"use strict";function n(e){return e&&e.ownerDocument||document}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(t)do if(t===e)return!0;while(t=t.parentNode);return!1}Object.defineProperty(t,"__esModule",{value:!0});var o=n(52),a=i(o);t.default=function(){return a.default?function(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):r(e,t)}:r}(),e.exports=t.default},function(e,t){"use strict";function n(e,t){return e.reduce(function(e,n){return e[t(n)]=n,e},{})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){var i=n(31),r=i.Symbol;e.exports=r},function(e,t,n){function i(e,t){return e&&r(e,t,o)}var r=n(193),o=n(25);e.exports=i},function(e,t,n){function i(e){return"function"==typeof e?e:r}var r=n(109);e.exports=i},function(e,t,n){function i(e){return r(function(t,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(r--,a):void 0,s&&o(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++i1){for(var m=Array(v),g=0;g1){for(var b=Array(y),_=0;_0){var l=t[0];u=l&&l.loc&&l.loc.source}var c=o;!c&&t&&(c=t.filter(function(e){return Boolean(e.loc)}).map(function(e){return e.loc.start})),c&&0===c.length&&(c=void 0);var d=void 0,h=u;h&&c&&(d=c.map(function(e){return(0,r.getLocation)(h,e)})),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:t||void 0},source:{value:u||void 0},positions:{value:c||void 0},originalError:{value:s}})}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=i;var r=n(182);i.prototype=Object.create(Error.prototype,{constructor:{value:i},name:{value:"GraphQLError"}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(541);Object.defineProperty(t,"graphql",{enumerable:!0,get:function(){return i.graphql}});var r=n(543);Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return r.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return r.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return r.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return r.GraphQLUnionType}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return r.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return r.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return r.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return r.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return r.GraphQLDirective}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return r.TypeKind}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return r.DirectiveLocation}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return r.GraphQLInt}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return r.GraphQLFloat}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return r.GraphQLString}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return r.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return r.GraphQLID}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return r.specifiedDirectives}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return r.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return r.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return r.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return r.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return r.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return r.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return r.TypeNameMetaFieldDef}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return r.__Schema}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return r.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return r.__DirectiveLocation}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return r.__Type}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return r.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return r.__InputValue}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return r.__EnumValue}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return r.__TypeKind}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return r.isType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return r.isInputType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return r.isOutputType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return r.isLeafType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return r.isCompositeType}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return r.isAbstractType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return r.isNamedType}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return r.assertType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return r.assertInputType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return r.assertOutputType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return r.assertLeafType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return r.assertCompositeType}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return r.assertAbstractType}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return r.assertNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return r.getNullableType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return r.getNamedType}});var o=n(542);Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return o.Source}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return o.getLocation}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return o.parseValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return o.parseType}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return o.print}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return o.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return o.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return o.visitWithTypeInfo}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return o.Kind}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return o.TokenKind}}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return o.BREAK}});var a=n(540);Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return a.execute}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return a.defaultFieldResolver}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return a.responsePathAsArray}});var s=n(554);Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return s.validate}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return s.ValidationContext}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return s.specifiedRules}});var u=n(11);Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return u.GraphQLError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return u.formatError}});var l=n(550);Object.defineProperty(t,"introspectionQuery",{enumerable:!0,get:function(){return l.introspectionQuery}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return l.getOperationAST}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return l.buildClientSchema}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return l.buildASTSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return l.buildSchema}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return l.extendSchema}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return l.printSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return l.printType}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return l.typeFromAST}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return l.valueFromAST}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return l.astFromValue}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return l.TypeInfo}}),Object.defineProperty(t,"isValidJSValue",{enumerable:!0,get:function(){return l.isValidJSValue}}),Object.defineProperty(t,"isValidLiteralValue",{enumerable:!0,get:function(){return l.isValidLiteralValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return l.concatAST}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return l.separateOperations}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return l.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return l.isTypeSubTypeOf}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return l.doTypesOverlap}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return l.assertValidName}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return l.findBreakingChanges}}),Object.defineProperty(t,"findDeprecatedUsages",{enumerable:!0,get:function(){return l.findDeprecatedUsages}})},function(e,t){"use strict";function n(e){return void 0===e||e!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t,n){var r=n||s,o=void 0,l=Array.isArray(e),c=[e],d=-1,h=[],f=void 0,p=[],v=[],m=e;do{d++;var g=d===c.length,y=void 0,b=void 0,_=g&&0!==h.length;if(g){if(y=0===v.length?void 0:p.pop(),b=f,f=v.pop(),_){if(l)b=b.slice();else{var w={};for(var x in b)b.hasOwnProperty(x)&&(w[x]=b[x]);b=w}for(var T=0,E=0;E=0&&t%1===0}function r(e){return Object(e)===e&&(i(e)||n(e))}function o(e){var t=a(e);if(t)return t.call(e)}function a(e){if(null!=e){var t=c&&e[c]||e["@@iterator"];if("function"==typeof t)return t}}function s(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r=0,a=o(e);if(a){for(var s;!(s=a.next()).done;)if(t.call(n,s.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(i(e))for(;r=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}}},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e]/;e.exports=i},function(e,t,n){"use strict";var i,r=n(23),o=n(217),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(225),l=u(function(e,t){if(e.namespaceURI!==o.svg||"innerHTML"in e)e.innerHTML=t;else{i=i||document.createElement("div"),i.innerHTML=""+t+"";for(var n=i.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){ -e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=l},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(){function e(){for(var e=arguments.length,t=Array(e),i=0;i>",s=o||n;if(null==t[n])return new Error("The "+r+" `"+s+"` is required to make "+("`"+a+"` accessible for users of assistive ")+"technologies such as screen readers.");for(var u=arguments.length,l=Array(u>5?u-5:0),c=5;c>",u=a||i;if(null==n[i])return t?new Error("Required "+o+" `"+u+"` was not specified "+("in `"+s+"`.")):null;for(var l=arguments.length,c=Array(l>6?l-6:0),d=6;d=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function o(e,t){return new Promise(function(n,i){setTimeout(function(){i(new Error("timeout"))},e),t.then(n,i)})}function a(e){var t=["max(","min(","sum("];for(var n in e)if(e.hasOwnProperty(n)){if("count"===n)return["count","count"];var i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var u=a.value;if(n.startsWith(u))return[u.substr(0,u.length-1),n]}}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}}return["",""]}function s(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t.test(n))return n;return""}function u(e){var t=e.split(" "),n=t[0];return e=n.length>20?[n.substr(0,9),n.substr(9,7)+"..."].join("-\n"):n.length>10?[n.substr(0,9),n.substr(9)].join("-\n"):t.length>1?t[1].length>10?[n,t[1].substr(0,7)+"..."].join("\n"):[n,t[1]].join("\n"):n}function l(e,t){var n="",i=Object.keys(e);if(1===i.length&&(n=a(e)[0],""!==n))return n;var r=s(e,t);return e[r]||""}function c(e,t){return t.get({filter:function(t){return t.from===e}})}function d(e){return e.indexOf("shortest")!==-1&&e.indexOf("to")!==-1&&e.indexOf("from")!==-1}function h(e){return e.indexOf("orderasc")!==-1||e.indexOf("orderdesc")!==-1}function f(e){var t=Object.keys(e);if(0===t.length)return!1;for(var n=0;n0&&e[t[n]];return!1}function p(e){for(var t in e)if(Array.isArray(e[t]))return!0;return!1}function v(e){if(0===e.length)return(0,S.default)();var t=e[0];return e.splice(0,1),t}function m(e,t,n,i,r){e[t]={label:n,color:v(r)},i[n]=!0}function g(e,t,n,i){var r=n[e];if(void 0!==r)return r;var o=void 0,a=e.indexOf(".");if(a!==-1&&0!==a&&a!==e.length-1)return o=e[0]+e[a+1],m(n,e,o,t,i),n[e];for(var s=1;s<=e.length;s++)if(o=e.substr(0,s),(1!==o.length||o.toLowerCase()!==o.toUpperCase())&&void 0===t[o])return m(n,e,o,t,i),n[e];return n[e]={label:e,color:v(i)},t[e]=!0,n[e]}function y(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({label:e[n].label,pred:n,color:e[n].color});return t}function b(e,t,n){for(var i in e)if(e.hasOwnProperty(i))if("_"===i)t.facets=e._;else{var r=e[i];for(var o in r)r.hasOwnProperty(o)&&(n.facets[i+"["+o+"]"]=r[o])}}function _(e,t){var n=JSON.parse(t.title),i=n.attrs._uid_,r=e.findIndex(function(e){return e.id===i});if(r===-1)return void console.warn("Expected to find node with uid: ",i);var o=e[r],a=JSON.parse(o.title);N.default.merge(a,n),o.title=JSON.stringify(a),o.color=t.color,""===o.label&&(o.label=t.label),""===o.name&&""!==t.name&&(o.name=t.name),e[r]=o}function w(e,t,n,i){var r=[],o={},s={},c={},d=[],h=[],f={node:{},src:{id:"",pred:"empty"}},v=!1,m=[],w=void 0,x=void 0,T=["#47c0ee","#8dd593","#f6c4e1","#8595e1","#f0b98d","#f79cd4","#bec1d4","#11c638","#b5bbe3","#7d87b9","#e07b91","#4a6fe3"],O={},S=void 0,k=void 0,P=new RegExp(i),D=!1;e=N.default.cloneDeep(e);for(var I in e){if(!e.hasOwnProperty(I))return;if(v=!1,m=[],"server_latency"!==I&&"uids"!==I){var L=e[I];D="schema"===I;for(var A=0;A50&&(w=d.length,x=h.length),0===r.length?"break":(r.push(f),"continue");var n={attrs:{},facets:{}},p=void 0,v={facets:{}},m=void 0;m=void 0===e.node._uid_?(0,M.default)():e.node._uid_,p=t?[e.src.id,m].filter(function(e){return e}).join("-"):m;for(var y in e.node)if(e.node.hasOwnProperty(y)){var I=e.node[y];if(D&&"tokenizer"===y)n.attrs[y]=JSON.stringify(I);else if(Array.isArray(I))for(var L=I,A=1,R=0;R1e3&&void 0===w&&(w=d.length,x=h.length),""===e.src.id)return"continue";var Q=[e.src.id,p].filter(function(e){return e}).join("-");if(c[Q]){var K=h.findIndex(function(t){return t.from===e.src.id&&t.to===p});if(K===-1)return"continue";var q=h[K],X=JSON.parse(q.title);N.default.merge(v,X),q.title=JSON.stringify(v),h[K]=q}else c[Q]=!0,F={from:e.src.id,to:p,title:JSON.stringify(v),label:W.label,color:W.color,arrows:"to"},h.push(F)};e:for(;r.length>0;){var F,B=j();switch(B){case"break":break e;case"continue":continue}}return[d,h,y(O),w,x]}function x(e,t){var n=e.toLowerCase(),i=t.toLowerCase();return ni?1:0}function T(){return window.SERVER_URL}Object.defineProperty(t,"__esModule",{value:!0});var E=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.checkStatus=r,t.timeout=o,t.aggregationPrefix=a,t.outgoingEdges=c,t.isShortestPath=d,t.showTreeView=h,t.isNotEmpty=f,t.processGraph=w,t.sortStrings=x,t.dgraphAddress=T;var O=n(758),S=i(O),k=n(933),M=i(k),P=n(710),N=i(P)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(433),o=i(r),a=n(432),s=i(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(o.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var i=n(442);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=!0},function(e,t,n){var i=n(71),r=n(458),o=n(161),a=n(166)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(240)("iframe"),i=o.length,r="<",a=">";for(t.style.display="none",n(448).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),l=e.F;i--;)delete l[u][o[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=i(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(62).f,r=n(61),o=n(35)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t,n){var i=n(167)("keys"),r=n(120);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(50),r="__core-js_shared__",o=i[r]||(i[r]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(160);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(93);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(50),r=n(34),o=n(162),a=n(172),s=n(62).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(35)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,c.default)(t,function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?o(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=(0,s.getNamedType)(n.type);break;case"Directive":n.directiveDef=t.name&&e.getDirective(t.name);break;case"Arguments":var i="Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&o(e,n.parentType,t.prevState.name):null;n.argDefs=i&&i.args;break;case"Argument":if(n.argDef=null,n.argDefs)for(var r=0;r2?", ":" ")+(i===t.length-1?"or ":"")+n})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=5},function(e,t){"use strict";function n(e,t){for(var n=Object.create(null),r=t.length,o=e.length/2,a=0;a1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+s))}return r[o][a]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function i(e,t){var n=new a(b,0,0,0,0,null),i={source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:r};return i}function r(){var e=this.lastToken=this.token;if(e.kind!==_){do e=e.next=u(this,e);while(e.kind===F);this.token=e}return e}function o(e){var t=e.value;return t?e.kind+' "'+t+'"':e.kind}function a(e,t,n,i,r,o,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=a,this.prev=o,this.next=null}function s(e){return isNaN(e)?_:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function u(e,t){var n=e.source,i=n.body,r=i.length,o=c(i,t.end,e),u=e.line,f=1+o-e.lineStart;if(o>=r)return new a(_,r,r,u,f,t);var v=B.call(i,o);if(v<32&&9!==v&&10!==v&&13!==v)throw(0,y.syntaxError)(n,o,"Cannot contain the invalid character "+s(v)+".");switch(v){case 33:return new a(w,o,o+1,u,f,t);case 35:return d(n,o,u,f,t);case 36:return new a(x,o,o+1,u,f,t);case 40:return new a(T,o,o+1,u,f,t);case 41:return new a(E,o,o+1,u,f,t);case 46:if(46===B.call(i,o+1)&&46===B.call(i,o+2))return new a(C,o,o+3,u,f,t);break;case 58:return new a(O,o,o+1,u,f,t);case 61:return new a(S,o,o+1,u,f,t);case 64:return new a(k,o,o+1,u,f,t);case 91:return new a(M,o,o+1,u,f,t);case 93:return new a(P,o,o+1,u,f,t);case 123:return new a(N,o,o+1,u,f,t);case 124:return new a(D,o,o+1,u,f,t);case 125:return new a(I,o,o+1,u,f,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return g(n,o,u,f,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return h(n,o,v,u,f,t);case 34:return p(n,o,u,f,t)}throw(0,y.syntaxError)(n,o,l(v))}function l(e){return 39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character "+s(e)+"."}function c(e,t,n){for(var i=e.length,r=t;r31||9===s));return new a(F,t,u,n,i,r,z.call(o,t+1,u))}function h(e,t,n,i,r,o){var u=e.body,l=n,c=t,d=!1;if(45===l&&(l=B.call(u,++c)),48===l){if(l=B.call(u,++c),l>=48&&l<=57)throw(0,y.syntaxError)(e,c,"Invalid number, unexpected digit after 0: "+s(l)+".")}else c=f(e,c,l),l=B.call(u,c);return 46===l&&(d=!0,l=B.call(u,++c),c=f(e,c,l),l=B.call(u,c)),69!==l&&101!==l||(d=!0,l=B.call(u,++c),43!==l&&45!==l||(l=B.call(u,++c)),c=f(e,c,l)),new a(d?R:A,t,c,i,r,o,z.call(u,t,c))}function f(e,t,n){var i=e.body,r=t,o=n;if(o>=48&&o<=57){do o=B.call(i,++r);while(o>=48&&o<=57);return r}throw(0,y.syntaxError)(e,r,"Invalid number, expected digit but got: "+s(o)+".")}function p(e,t,n,i,r){for(var o=e.body,u=t+1,l=u,c=0,d="";u=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function g(e,t,n,i,r){for(var o=e.body,s=o.length,u=t+1,l=0;u!==s&&null!==(l=B.call(o,u))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++u;return new a(L,t,u,n,i,r,z.call(o,t,u))}Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.createLexer=i,t.getTokenDesc=o;var y=n(11),b="",_="",w="!",x="$",T="(",E=")",C="...",O=":",S="=",k="@",M="[",P="]",N="{",D="|",I="}",L="Name",A="Int",R="Float",j="String",F="Comment",B=(t.TokenKind={SOF:b,EOF:_,BANG:w,DOLLAR:x,PAREN_L:T,PAREN_R:E,SPREAD:C,COLON:O,EQUALS:S,AT:k,BRACKET_L:M,BRACKET_R:P,BRACE_L:N,PIPE:D,BRACE_R:I,NAME:L,INT:A,FLOAT:R,STRING:j,COMMENT:F},String.prototype.charCodeAt),z=String.prototype.slice;a.prototype.toJSON=a.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},function(e,t){"use strict";function n(e,t){for(var n=/\r\n|[\n\r]/g,i=1,r=t+1,o=void 0;(o=n.exec(e.body))&&o.index0)return this._typeStack[this._typeStack.length-1]},e.prototype.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},e.prototype.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},e.prototype.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},e.prototype.getDirective=function(){return this._directive},e.prototype.getArgument=function(){return this._argument},e.prototype.getEnumValue=function(){return this._enumValue},e.prototype.enter=function(e){var t=this._schema;switch(e.kind){case u.SELECTION_SET:var n=(0,l.getNamedType)(this.getType());this._parentTypeStack.push((0,l.isCompositeType)(n)?n:void 0);break;case u.FIELD:var i=this.getParentType(),r=void 0;i&&(r=this._getFieldDef(t,i,e)),this._fieldDefStack.push(r),this._typeStack.push(r&&r.type);break;case u.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case u.OPERATION_DEFINITION:var o=void 0;"query"===e.operation?o=t.getQueryType():"mutation"===e.operation?o=t.getMutationType():"subscription"===e.operation&&(o=t.getSubscriptionType()),this._typeStack.push(o);break;case u.INLINE_FRAGMENT:case u.FRAGMENT_DEFINITION:var a=e.typeCondition,s=a?(0,d.typeFromAST)(t,a):this.getType();this._typeStack.push((0,l.isOutputType)(s)?s:void 0);break;case u.VARIABLE_DEFINITION:var c=(0,d.typeFromAST)(t,e.type);this._inputTypeStack.push((0,l.isInputType)(c)?c:void 0);break;case u.ARGUMENT:var h=void 0,p=void 0,v=this.getDirective()||this.getFieldDef();v&&(h=(0,f.default)(v.args,function(t){return t.name===e.name.value}),h&&(p=h.type)),this._argument=h,this._inputTypeStack.push(p);break;case u.LIST:var m=(0,l.getNullableType)(this.getInputType());this._inputTypeStack.push(m instanceof l.GraphQLList?m.ofType:void 0);break;case u.OBJECT_FIELD:var g=(0,l.getNamedType)(this.getInputType()),y=void 0;if(g instanceof l.GraphQLInputObjectType){var b=g.getFields()[e.name.value];y=b?b.type:void 0}this._inputTypeStack.push(y);break;case u.ENUM:var _=(0,l.getNamedType)(this.getInputType()),w=void 0;_ instanceof l.GraphQLEnumType&&(w=_.getValue(e.value)),this._enumValue=w}},e.prototype.leave=function(e){switch(e.kind){case u.SELECTION_SET:this._parentTypeStack.pop();break;case u.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case u.DIRECTIVE:this._directive=null;break;case u.OPERATION_DEFINITION:case u.INLINE_FRAGMENT:case u.FRAGMENT_DEFINITION:this._typeStack.pop();break;case u.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case u.ARGUMENT:this._argument=null,this._inputTypeStack.pop();break;case u.LIST:case u.OBJECT_FIELD:this._inputTypeStack.pop();break;case u.ENUM:this._enumValue=null}},e}()},function(e,t){"use strict";function n(e,t){if(!e||"string"!=typeof e)throw new Error("Must be named. Unexpected name: "+e+".");if(!t&&"__"===e.slice(0,2)&&!a&&(a=!0,console&&console.warn)){var n=new Error('Name "'+e+'" must not begin with "__", which is reserved by GraphQL introspection. In a future release of graphql this will become a hard error.');console.warn(i(n))}if(!r.test(e))throw new Error('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'+e+'" does not.')}function i(e){var t="",n=String(e).replace(o,""),i=e.stack;return i&&(t=i.replace(o,"")),t.indexOf(n)===-1&&(t=n+"\n"+t),t.trim()}Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=n,t.formatWarning=i;var r=/^[_a-zA-Z][_a-zA-Z0-9]*$/,o=/^Error: /,a=!1},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=e;if(t instanceof f.GraphQLNonNull){var i=r(n,t.ofType);return i&&i.kind===h.NULL?null:i}if(null===n)return{kind:h.NULL};if((0,d.default)(n))return null;if(t instanceof f.GraphQLList){var a=function(){var e=t.ofType;if((0,o.isCollection)(n)){var i=function(){var t=[];return(0,o.forEach)(n,function(n){var i=r(n,e);i&&t.push(i)}),{v:{v:{kind:h.LIST,values:t}}}}();if("object"==typeof i)return i.v}return{v:r(n,e)}}();if("object"==typeof a)return a.v}if(t instanceof f.GraphQLInputObjectType){var u=function(){if(null===n||"object"!=typeof n)return{v:null};var e=t.getFields(),i=[];return Object.keys(e).forEach(function(t){var o=e[t].type,a=r(n[t],o);a&&i.push({kind:h.OBJECT_FIELD,name:{kind:h.NAME,value:t},value:a})}),{v:{kind:h.OBJECT,fields:i}}}();if("object"==typeof u)return u.v}(0,s.default)(t instanceof f.GraphQLScalarType||t instanceof f.GraphQLEnumType,"Must provide Input Type, cannot use: "+String(t));var c=t.serialize(n);if((0,l.default)(c))return null;if("boolean"==typeof c)return{kind:h.BOOLEAN,value:c};if("number"==typeof c){var v=String(c);return/^[0-9]+$/.test(v)?{kind:h.INT,value:v}:{kind:h.FLOAT,value:v}}if("string"==typeof c)return t instanceof f.GraphQLEnumType?{kind:h.ENUM,value:c}:t===p.GraphQLID&&/^[0-9]+$/.test(c)?{kind:h.INT,value:c}:{kind:h.STRING,value:JSON.stringify(c).slice(1,-1)};throw new TypeError("Cannot convert value to AST: "+String(c))}Object.defineProperty(t,"__esModule",{value:!0}),t.astFromValue=r;var o=n(128),a=n(20),s=i(a),u=n(53),l=i(u),c=n(100),d=i(c),h=n(18),f=n(13),p=n(54)},function(e,t){t=e.exports=function(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return o[e];var r=String(e),a=n[r.toLowerCase()];if(a)return a;var a=i[r.toLowerCase()];return a?a:1===r.length?r.charCodeAt(0):void 0};var n=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(r=97;r<123;r++)n[String.fromCharCode(r)]=r-32;for(var r=48;r<58;r++)n[r-48]=r;for(r=1;r<13;r++)n["f"+r]=r+111;for(r=0;r<10;r++)n["numpad "+r]=r+96;var o=t.names=t.title={};for(r in n)o[n[r]]=r;for(var a in i)n[a]=i[a]},function(e,t,n){var i=n(65),r=n(31),o=i(r,"Map");e.exports=o},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=i}var i=9007199254740991;e.exports=n},function(e,t,n){var i=n(300),r=i("toUpperCase");e.exports=r},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){v&&f&&(v=!1,f.length?p=f.concat(p):m=-1,p.length&&s())}function s(){if(!v){var e=r(a);v=!0;for(var t=p.length;t;){for(f=p,p=[];++m1)for(var n=1;n1?n-1:0),r=1;r-1?void 0:a("96",e),!l.plugins[n]){t.extractEvents?void 0:a("97",e),l.plugins[n]=t;var i=t.eventTypes;for(var o in i)r(i[o],t,o)?void 0:a("98",o,e)}}}function r(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,l.eventNameDispatchConfigs[n]=e;var i=e.phasedRegistrationNames;if(i){for(var r in i)if(i.hasOwnProperty(r)){var s=i[r];o(s,t,n)}return!0}return!!e.registrationName&&(o(e.registrationName,t,n),!0)}function o(e,t,n){l.registrationNameModules[e]?a("100",e):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(12),s=(n(9),null),u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?a("101"):void 0,s=Array.prototype.slice.call(e),i()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];u.hasOwnProperty(n)&&u[n]===r||(u[n]?a("102",n):void 0,u[n]=r,t=!0)}t&&i()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var i in n)if(n.hasOwnProperty(i)){var r=l.registrationNameModules[n[i]];if(r)return r}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var i=l.registrationNameModules;for(var r in i)i.hasOwnProperty(r)&&delete i[r]}};e.exports=l},function(e,t,n){"use strict";function i(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function o(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,i){var r=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(i),t?v.invokeGuardedCallbackWithCatch(r,n,e):v.invokeGuardedCallback(r,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,i=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&i.length<20?n+" (keys: "+i.join(", ")+")":n}function o(e,t){var n=s.get(e);if(!n){return null}return n}var a=n(12),s=(n(48),n(115)),u=(n(32),n(39)),l=(n(9),n(10),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var r=o(e);return r?(r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],void i(r)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],i(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,i(t))},enqueueReplaceState:function(e,t,n){var r=o(e,"replaceState");r&&(r._pendingStateQueue=[t],r._pendingReplaceState=!0,void 0!==n&&null!==n&&(l.validateCallback(n,"replaceState"),r._pendingCallbacks?r._pendingCallbacks.push(n):r._pendingCallbacks=[n]),i(r))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var r=n._pendingStateQueue||(n._pendingStateQueue=[]);r.push(t),i(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,i(e)},validateCallback:function(e,t){e&&"function"!=typeof e?a("122",t,r(e)):void 0}});e.exports=l},function(e,t){"use strict";var n=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,i,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,r)})}:e};e.exports=n},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var i=r[e];return!!i&&!!n[i]}function i(e){return n}var r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=i},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var r,o=n(23);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=i},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,i=null===t||t===!1;if(n||i)return n===i;var r=typeof e,o=typeof t;return"string"===r||"number"===r?"string"===o||"number"===o:"object"===o&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t,n){"use strict";var i=(n(16),n(30)),r=(n(10),i);e.exports=r},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return e="function"==typeof e?e():e,a.default.findDOMNode(e)||t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(27),a=i(o);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i,r){var a=e[t],u="undefined"==typeof a?"undefined":o(a);return s.default.isValidElement(a)?new Error("Invalid "+i+" `"+r+"` of type ReactElement "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===u&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+i+" `"+r+"` of value `"+a+"` "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement.")}t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=n(1),s=i(a),u=n(154),l=i(u);t.default=(0,l.default)(r)},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.__esModule=!0,t.default=n},function(e,t,n){"use strict";function i(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||o}var r=n(91),o=n(236),a=(n(389),n(97));n(9),n(10);i.prototype.isReactComponent={},i.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?r("85"):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=i},function(e,t,n){"use strict";function i(e,t){}var r=(n(10),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){i(e,"forceUpdate")},enqueueReplaceState:function(e,t){i(e,"replaceState")},enqueueSetState:function(e,t){i(e,"setState")}});e.exports=r},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void 0;var r=n(395),o=i(r),a=n(925),s=i(a),u=n(924),l=i(u),c=n(923),d=i(c),h=n(394),f=i(h),p=n(396);i(p);t.createStore=o.default,t.combineReducers=s.default,t.bindActionCreators=l.default,t.applyMiddleware=d.default,t.compose=f.default},function(e,t,n){e.exports={default:n(435),__esModule:!0}},function(e,t,n){e.exports={default:n(437),__esModule:!0}},function(e,t,n){var i=n(93),r=n(50).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,n){e.exports=!n(72)&&!n(92)(function(){return 7!=Object.defineProperty(n(240)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(158);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var i=n(162),r=n(49),o=n(248),a=n(73),s=n(61),u=n(94),l=n(452),c=n(165),d=n(460),h=n(35)("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",m="values",g=function(){return this};e.exports=function(e,t,n,y,b,_,w){l(n,t,y);var x,T,E,C=function(e){if(!f&&e in M)return M[e];switch(e){case v:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",S=b==m,k=!1,M=e.prototype,P=M[h]||M[p]||b&&M[b],N=P||C(b),D=b?S?C("entries"):N:void 0,I="Array"==t?M.entries||P:P;if(I&&(E=d(I.call(new e)),E!==Object.prototype&&(c(E,O,!0),i||s(E,h)||a(E,h,g))),S&&P&&P.name!==m&&(k=!0,N=function(){return P.call(this)}),i&&!w||!f&&!k&&M[h]||a(M,h,N),u[t]=N,u[O]=g,b)if(x={values:S?N:C(m),keys:_?N:C(v),entries:D},w)for(T in x)T in M||o(M,T,x[T]);else r(r.P+r.F*(f||k),t,x);return x}},function(e,t,n){var i=n(95),r=n(96),o=n(51),a=n(170),s=n(61),u=n(241),l=Object.getOwnPropertyDescriptor;t.f=n(72)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){var i=n(246),r=n(161).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){var i=n(61),r=n(51),o=n(444)(!1),a=n(166)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),u=0,l=[];for(n in s)n!=a&&i(s,n)&&l.push(n);for(;t.length>u;)i(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var i=n(74),r=n(51),o=n(95).f;e.exports=function(e){return function(t){for(var n,a=r(t),s=i(a),u=s.length,l=0,c=[];u>l;)o.call(a,n=s[l++])&&c.push(e?[n,a[n]]:a[n]);return c}}},function(e,t,n){e.exports=n(73)},function(e,t,n){var i=n(168),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){"use strict";var i=n(462)(!0);n(243)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";function i(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function r(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}function o(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value,e.prevState.prevState.type=t.value}}}Object.defineProperty(t,"__esModule",{value:!0}),t.ParseRules=t.LexRules=t.isIgnored=void 0;var a=n(483);t.isIgnored=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e},t.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Comment:/^#.*/},t.ParseRules={Document:[(0,a.list)("Definition")],Definition:function(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[i("query"),(0,a.opt)(r("def")),(0,a.opt)("VariableDefinitions"),(0,a.list)("Directive"),"SelectionSet"],Mutation:[i("mutation"),(0,a.opt)(r("def")),(0,a.opt)("VariableDefinitions"),(0,a.list)("Directive"),"SelectionSet"],Subscription:[i("subscription"),(0,a.opt)(r("def")),(0,a.opt)("VariableDefinitions"),(0,a.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,a.p)("("),(0,a.list)("VariableDefinition"),(0,a.p)(")")],VariableDefinition:["Variable",(0,a.p)(":"),"Type",(0,a.opt)("DefaultValue")],Variable:[(0,a.p)("$","variable"),r("variable")],DefaultValue:[(0,a.p)("="),"Value"],SelectionSet:[(0,a.p)("{"),(0,a.list)("Selection"),(0,a.p)("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[r("property"),(0,a.p)(":"),r("qualifier"),(0,a.opt)("Arguments"),(0,a.list)("Directive"),(0,a.opt)("SelectionSet")],Field:[r("property"),(0,a.opt)("Arguments"),(0,a.list)("Directive"),(0,a.opt)("SelectionSet")],Arguments:[(0,a.p)("("),(0,a.list)("Argument"),(0,a.p)(")")],Argument:[r("attribute"),(0,a.p)(":"),"Value"],FragmentSpread:[(0,a.p)("..."),r("def"),(0,a.list)("Directive")],InlineFragment:[(0,a.p)("..."),(0,a.opt)("TypeCondition"),(0,a.list)("Directive"),"SelectionSet"],FragmentDefinition:[i("fragment"),(0,a.opt)((0,a.butNot)(r("def"),[i("on")])),"TypeCondition",(0,a.list)("Directive"),"SelectionSet"],TypeCondition:[i("on"),"NamedType"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[(0,a.t)("Number","number")],StringValue:[(0,a.t)("String","string")],BooleanValue:[(0,a.t)("Name","builtin")],NullValue:[(0,a.t)("Name","keyword")],EnumValue:[r("string-2")],ListValue:[(0,a.p)("["),(0,a.list)("Value"),(0,a.p)("]")],ObjectValue:[(0,a.p)("{"),(0,a.list)("ObjectField"),(0,a.p)("}")],ObjectField:[r("attribute"),(0,a.p)(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[(0,a.p)("["),"Type",(0,a.p)("]"),(0,a.opt)((0,a.p)("!"))],NonNullType:["NamedType",(0,a.opt)((0,a.p)("!"))],NamedType:[o("atom")],Directive:[(0,a.p)("@","meta"),r("meta"),(0,a.opt)("Arguments")],SchemaDef:[i("schema"),(0,a.list)("Directive"),(0,a.p)("{"),(0,a.list)("OperationTypeDef"),(0,a.p)("}")],OperationTypeDef:[r("keyword"),(0,a.p)(":"),r("atom")],ScalarDef:[i("scalar"),r("atom"),(0,a.list)("Directive")],ObjectTypeDef:[i("type"),r("atom"),(0,a.opt)("Implements"),(0,a.list)("Directive"),(0,a.p)("{"),(0,a.list)("FieldDef"),(0,a.p)("}")],Implements:[i("implements"),(0,a.list)("NamedType")],FieldDef:[r("property"),(0,a.opt)("ArgumentsDef"),(0,a.p)(":"),"Type",(0,a.list)("Directive")],ArgumentsDef:[(0,a.p)("("),(0,a.list)("InputValueDef"),(0,a.p)(")")],InputValueDef:[r("attribute"),(0,a.p)(":"),"Type",(0,a.opt)("DefaultValue"),(0,a.list)("Directive")],InterfaceDef:[i("interface"),r("atom"),(0,a.list)("Directive"),(0,a.p)("{"),(0,a.list)("FieldDef"),(0,a.p)("}")],UnionDef:[i("union"),r("atom"),(0,a.list)("Directive"),(0,a.p)("="),(0,a.list)("UnionMember",(0,a.p)("|"))],UnionMember:["NamedType"],EnumDef:[i("enum"),r("atom"),(0,a.list)("Directive"),(0,a.p)("{"),(0,a.list)("EnumValueDef"),(0,a.p)("}")],EnumValueDef:[r("string-2"),(0,a.list)("Directive")],InputDef:[i("input"),r("atom"),(0,a.list)("Directive"),(0,a.p)("{"),(0,a.list)("InputValueDef"),(0,a.p)("}")],ExtendDef:[i("extend"),"ObjectTypeDef"],DirectiveDef:[i("directive"),(0,a.p)("@","meta"),r("meta"),(0,a.opt)("ArgumentsDef"),i("on"),(0,a.list)("DirectiveLocation",(0,a.p)("|"))],DirectiveLocation:[r("string-2")]}},function(e,t,n){"use strict";function i(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:u(e.fieldDef)?null:e.parentType}}function r(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function o(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:u(e.fieldDef)?null:e.parentType}}function a(e){return{kind:"EnumValue",value:e.enumValue,type:(0,l.getNamedType)(e.inputType)}}function s(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function u(e){return"__"===e.name.slice(0,2)}Object.defineProperty(t,"__esModule",{value:!0}),t.getFieldReference=i,t.getDirectiveReference=r,t.getArgumentReference=o,t.getEnumValueReference=a,t.getTypeReference=s;var l=n(99)},function(e,t){"use strict";function n(e,t){for(var n=[],i=e;i&&i.kind;)n.push(i),i=i.prevState;for(var r=n.length-1;r>=0;r--)t(n[r])}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e){return{startState:function(){var t={level:0};return o(e.ParseRules,t,"Document"),t},token:function(t,n){ -return i(t,n,e)}}}function i(e,t,n){var i=n.LexRules,u=n.ParseRules,h=n.eatWhitespace,f=n.editorConfig;if(t.rule&&0===t.rule.length?a(t):t.needsAdvance&&(t.needsAdvance=!1,s(t,!0)),e.sol()){var p=f&&f.tabSize||2;t.indentLevel=Math.floor(e.indentation()/p)}if(h(e))return"ws";var v=c(i,e);if(!v)return e.match(/\S+/),o(d,t,"Invalid"),"invalidchar";if("Comment"===v.kind)return o(d,t,"Comment"),"comment";var m=r({},t);if("Punctuation"===v.kind)if(/^[{([]/.test(v.value))t.levels=(t.levels||[]).concat(t.indentLevel+1);else if(/^[})\]]/.test(v.value)){var g=t.levels=(t.levels||[]).slice(0,-1);g.length>0&&g[g.length-1]=0&&s[o.text.charAt(u)]||s[o.text.charAt(++u)];if(!l)return null;var c=">"==l.charAt(1)?1:-1;if(i&&c>0!=(u==t.ch))return null;var d=e.getTokenTypeAt(a(t.line,u+1)),h=n(e,a(t.line,u+(c>0?1:0)),c,d||null,r);return null==h?null:{from:a(t.line,u),to:h&&h.pos,match:h&&h.ch==l.charAt(0),forward:c>0}}function n(e,t,n,i,r){for(var o=r&&r.maxScanLineLength||1e4,u=r&&r.maxScanLines||1e3,l=[],c=r&&r.bracketRegex?r.bracketRegex:/[(){}[\]]/,d=n>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),h=t.line;h!=d;h+=n){var f=e.getLine(h);if(f){var p=n>0?0:f.length-1,v=n>0?f.length:-1;if(!(f.length>o))for(h==t.line&&(p=t.ch-(n<0?1:0));p!=v;p+=n){var m=f.charAt(p);if(c.test(m)&&(void 0===i||e.getTokenTypeAt(a(h,p+1))==i)){var g=s[m];if(">"==g.charAt(1)==n>0)l.push(m);else{if(!l.length)return{pos:a(h,p),ch:m};l.pop()}}}}}return h-n!=(n>0?e.lastLine():e.firstLine())&&null}function i(e,n,i){for(var r=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],u=e.listSelections(),l=0;l",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},u=null;e.defineOption("matchBrackets",!1,function(t,n,i){i&&i!=e.Init&&(t.off("cursorActivity",r),u&&(u(),u=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",r))}),e.defineExtension("matchBrackets",function(){i(this,!0)}),e.defineExtension("findMatchingBracket",function(e,n,i){return t(this,e,n,i)}),e.defineExtension("scanForBracket",function(e,t,i,r){return n(this,e,t,i,r)})})},function(e,t,n){!function(e){e(n(19))}(function(e){"use strict";function t(t,r,o,a){function s(e){var n=u(t,r);if(!n||n.to.line-n.from.linet.firstLine();)r=e.Pos(r.line-1,0),c=s(!1);if(c&&!c.cleared&&"unfold"!==a){var d=n(t,o);e.on(d,"mousedown",function(t){h.clear(),e.e_preventDefault(t)});var h=t.markText(c.from,c.to,{replacedWith:d,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});h.on("clear",function(n,i){e.signal(t,"unfold",t,n,i)}),e.signal(t,"fold",t,c.from,c.to)}}function n(e,t){var n=i(e,t,"widget");if("string"==typeof n){var r=document.createTextNode(n);n=document.createElement("span"),n.appendChild(r),n.className="CodeMirror-foldmarker"}return n}function i(e,t,n){if(t&&void 0!==t[n])return t[n];var i=e.options.foldOptions;return i&&void 0!==i[n]?i[n]:r[n]}e.newFoldFunction=function(e,n){return function(i,r){t(i,r,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,i){t(this,e,n,i)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:(0,a.default)();try{return e.activeElement}catch(e){}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(75),a=i(o);e.exports=t.default},function(e,t){"use strict";function n(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")!==-1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=(0,c.default)(e),n=(0,u.default)(t),i=t&&t.documentElement,r={top:0,left:0,height:0,width:0};if(t)return(0,a.default)(i,e)?(void 0!==e.getBoundingClientRect&&(r=e.getBoundingClientRect()),r={top:r.top+(n.pageYOffset||i.scrollTop)-(i.clientTop||0),left:r.left+(n.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:(null==r.width?e.offsetWidth:r.width)||0,height:(null==r.height?e.offsetHeight:r.height)||0}):r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(76),a=i(o),s=n(122),u=i(s),l=n(75),c=i(l);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=(0,a.default)(e);return void 0===t?n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop:void(n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(122),a=i(o);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(){for(var e=document.createElement("div").style,t={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},n=Object.keys(t),i=void 0,r=void 0,o="",a=0;a=t?e:t)),e}e.exports=n},function(e,t){function n(e,t,n){var i;return n(e,function(e,n,r){if(t(e,n,r))return i=n,!1}),i}e.exports=n},function(e,t,n){function i(e,t){return e&&r(e,t,o)}var r=n(282),o=n(25);e.exports=i},function(e,t,n){var i=n(299),r=i(!0);e.exports=r},function(e,t,n){function i(e,t){return r(t,function(t){return o(e[t])})}var r=n(275),o=n(85);e.exports=i},function(e,t,n){function i(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}var r=n(190),o=n(28);e.exports=i},function(e,t,n){function i(e,t,n){return t===t?a(e,t,n):r(e,o,n)}var r=n(597),o=n(606),a=n(675);e.exports=i},function(e,t,n){function i(e,t,n,a,s){return e===t||(null==e||null==t||!o(e)&&!o(t)?e!==e&&t!==t:r(e,t,n,a,i,s))}var r=n(604),o=n(45);e.exports=i},function(e,t,n){function i(e,t,n){for(var i=-1,s=t.length,u={};++ii)return n;do t%2&&(n+=e),t=r(t/2),t&&(e+=e);while(t);return n}var i=9007199254740991,r=Math.floor;e.exports=n},function(e,t){function n(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i-1;);return n}var r=n(285);e.exports=i},function(e,t,n){function i(e,t){for(var n=-1,i=e.length;++n-1;);return n}var r=n(285);e.exports=i},function(e,t,n){(function(e){function i(e,t){if(t)return e.slice();var n=e.length,i=l?l(n):new e.constructor(n);return e.copy(i),i}var r=n(31),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o,u=s?r.Buffer:void 0,l=u?u.allocUnsafe:void 0;e.exports=i}).call(t,n(119)(e))},function(e,t,n){function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var r=n(197);e.exports=i},function(e,t){function n(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++nh))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var v=-1,m=!0,g=n&u?new r:void 0;for(c.set(e,t),c.set(t,e);++v/g;e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},function(e,t,n){var i=n(617),r=n(669),o=r(i);e.exports=o},function(e,t){function n(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var i=Function.prototype,r=i.toString;e.exports=n},function(e,t,n){var i=n(37),r=n(81),o=n(29),a=r(function(e,t){i(t,o(t),e)});e.exports=a},function(e,t,n){function i(e){return o(r(e).toLowerCase())}var r=n(15),o=n(208);e.exports=i},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t,n){function i(e){return e=o(e),e&&e.replace(a,r).replace(h,"")}var r=n(631),o=n(15),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s="\\u0300-\\u036f",u="\\ufe20-\\ufe2f",l="\\u20d0-\\u20ff",c=s+u+l,d="["+c+"]",h=RegExp(d,"g");e.exports=i},function(e,t,n){function i(e){return e=o(e),e&&s.test(e)?e.replace(a,r):e}var r=n(634),o=n(15),a=/[&<>"']/g,s=RegExp(a.source);e.exports=i},function(e,t,n){function i(e){if(!o(e))return!1;var t=r(e);return t==u||t==s||"string"==typeof e.message&&"string"==typeof e.name&&!a(e)}var r=n(56),o=n(45),a=n(67),s="[object DOMException]",u="[object Error]";e.exports=i},function(e,t,n){var i=n(608),r=n(291),o=n(313),a=o&&o.isRegExp,s=a?r(a):i;e.exports=s},function(e,t){function n(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=n},function(e,t,n){var i=n(194),r=n(81),o=r(function(e,t,n,r){i(e,t,n,r)});e.exports=o},function(e,t,n){e.exports={assign:n(681),assignIn:n(321),assignInWith:n(140),assignWith:n(682),at:n(683),create:n(686),defaults:n(687),defaultsDeep:n(688),entries:n(690),entriesIn:n(691),extend:n(693),extendWith:n(694),findKey:n(695),findLastKey:n(696),forIn:n(698),forInRight:n(699),forOwn:n(700),forOwnRight:n(701),functions:n(702),functionsIn:n(703),get:n(205),has:n(704),hasIn:n(206),invert:n(705),invertBy:n(706),invoke:n(707),keys:n(25),keysIn:n(29),mapKeys:n(713),mapValues:n(714),merge:n(716),mergeWith:n(329),omit:n(718),omitBy:n(719),pick:n(724),pickBy:n(331),result:n(728),set:n(729),setWith:n(730),toPairs:n(334),toPairsIn:n(335),transform:n(743),unset:n(749),update:n(750),updateWith:n(751),values:n(753),valuesIn:n(754)}},function(e,t,n){function i(e,t){if(null==e)return{};var n=r(s(e),function(e){return[e]});return t=o(t),a(e,n,function(e,n){return t(e,n[0])})}var r=n(104),o=n(57),a=n(287),s=n(200);e.exports=i},function(e,t){function n(){return[]}e.exports=n},function(e,t,n){var i=n(325),r=n(664),o=n(665),a=n(317),s={escape:r,evaluate:o,interpolate:a,variable:"",imports:{_:{escape:i}}};e.exports=s},function(e,t,n){var i=n(302),r=n(25),o=i(r);e.exports=o},function(e,t,n){var i=n(302),r=n(29),o=i(r);e.exports=o},function(e,t,n){function i(e,t,n){return e=a(e),t=n?void 0:t,void 0===t?o(e)?s(e):r(e):e.match(t)||[]}var r=n(593),o=n(639),a=n(15),s=n(680);e.exports=i},function(e,t,n){"use strict";function i(){}function r(e){try{return e.then}catch(e){return g=e,y}}function o(e,t){try{return e(t)}catch(e){return g=e,y}}function a(e,t,n){try{e(t,n)}catch(e){return g=e,y}}function s(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,e!==i&&v(e,this)}function u(e,t,n){return new e.constructor(function(r,o){var a=new s(i);a.then(r,o),l(e,new p(t,n,a))})}function l(e,t){for(;3===e._81;)e=e._65;return s._10&&s._10(e),0===e._81?0===e._45?(e._45=1,void(e._54=t)):1===e._45?(e._45=2,void(e._54=[e._54,t])):void e._54.push(t):void c(e,t)}function c(e,t){m(function(){var n=1===e._81?t.onFulfilled:t.onRejected;if(null===n)return void(1===e._81?d(t.promise,e._65):h(t.promise,e._65));var i=o(n,e._65);i===y?h(t.promise,g):d(t.promise,i)})}function d(e,t){if(t===e)return h(e,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var n=r(t);if(n===y)return h(e,g);if(n===e.then&&t instanceof s)return e._81=3,e._65=t,void f(e);if("function"==typeof n)return void v(n.bind(t),e)}e._81=1,e._65=t,f(e)}function h(e,t){e._81=2,e._65=t,s._97&&s._97(e,t),f(e)}function f(e){if(1===e._45&&(l(e,e._54),e._54=null),2===e._45){for(var t=0;t=c?l=0:l<0&&(l=c-1),i[l]},t.prototype.getActiveProps=function(){var e=this.context.$bs_tabContainer;return e?e:this.props},t.prototype.isActive=function(e,t,n){var i=e.props;return!!(i.active||null!=t&&i.eventKey===t||n&&i.href===n)||i.active},t.prototype.getTabProps=function(e,t,n,i,r){var o=this;if(!t&&"tablist"!==n)return null;var a=e.props,s=a.id,u=a["aria-controls"],l=a.eventKey,c=a.role,d=a.onKeyDown,h=a.tabIndex;return t&&(s=t.getTabId(l),u=t.getPaneId(l)),"tablist"===n&&(c=c||"tab",d=(0,S.default)(function(e){return o.handleTabKeyDown(r,e)},d),h=i?h:-1),{id:s,role:c,onKeyDown:d,"aria-controls":u,tabIndex:h}},t.prototype.render=function(){var e,t=this,n=this.props,i=n.stacked,r=n.justified,a=n.onSelect,u=n.role,l=n.navbar,c=n.pullRight,d=n.pullLeft,h=n.className,f=n.children,p=(0,s.default)(n,["stacked","justified","onSelect","role","navbar","pullRight","pullLeft","className","children"]),m=this.context.$bs_tabContainer,g=u||(m?"tablist":null),_=this.getActiveProps(),w=_.activeKey,x=_.activeHref;delete p.activeKey,delete p.activeHref;var T=(0,C.splitBsProps)(p),E=T[0],O=T[1],k=(0,o.default)({},(0,C.getClassSet)(E),(e={},e[(0,C.prefix)(E,"stacked")]=i,e[(0,C.prefix)(E,"justified")]=r,e)),P=null!=l?l:this.context.$bs_navbar,N=void 0,D=void 0;if(P){var I=this.context.$bs_navbar||{bsClass:"navbar"};k[(0,C.prefix)(I,"nav")]=!0,D=(0,C.prefix)(I,"right"),N=(0,C.prefix)(I,"left")}else D="pull-right",N="pull-left";return k[D]=c,k[N]=d,b.default.createElement("ul",(0,o.default)({},O,{role:g,className:(0,v.default)(h,k)}),M.default.map(f,function(e){var n=t.isActive(e,w,x),i=(0,S.default)(e.props.onSelect,a,P&&P.onSelect,m&&m.onSelect);return(0,y.cloneElement)(e,(0,o.default)({},t.getTabProps(e,m,g,n,i),{active:n,activeKey:w,activeHref:x,onSelect:i}))}))},t}(b.default.Component);I.propTypes=P,I.defaultProps=N,I.contextTypes=D,t.default=(0,C.bsClass)("nav",(0,C.bsStyles)(["tabs","pills"],I)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(38),b=i(y),_=n(21),w=i(_),x={active:g.default.PropTypes.bool,disabled:g.default.PropTypes.bool,role:g.default.PropTypes.string,href:g.default.PropTypes.string,onClick:g.default.PropTypes.func,onSelect:g.default.PropTypes.func,eventKey:g.default.PropTypes.any},T={active:!1,disabled:!1},E=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));return r.handleClick=r.handleClick.bind(r),r}return(0,f.default)(t,e),t.prototype.handleClick=function(e){this.props.onSelect&&(e.preventDefault(),this.props.disabled||this.props.onSelect(this.props.eventKey,e))},t.prototype.render=function(){var e=this.props,t=e.active,n=e.disabled,i=e.onClick,r=e.className,a=e.style,u=(0,s.default)(e,["active","disabled","onClick","className","style"]);return delete u.onSelect,delete u.eventKey,delete u.activeKey,delete u.activeHref,u.role?"tab"===u.role&&(u["aria-selected"]=t):"#"===u.href&&(u.role="button"),g.default.createElement("li",{role:"presentation",className:(0,v.default)(r,{active:t,disabled:n}),style:a},g.default.createElement(b.default,(0,o.default)({},u,{disabled:n,onClick:(0,w.default)(i,this.handleClick)})))},t}(g.default.Component);E.propTypes=x,E.defaultProps=T,t.default=E,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b={ -$bs_navbar:g.default.PropTypes.shape({bsClass:g.default.PropTypes.string})},_=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=(0,s.default)(e,["className","children"]),r=this.context.$bs_navbar||{bsClass:"navbar"},a=(0,y.prefix)(r,"brand");return g.default.isValidElement(n)?g.default.cloneElement(n,{className:(0,v.default)(n.props.className,t,a)}):g.default.createElement("span",(0,o.default)({},i,{className:(0,v.default)(t,a)}),n)},t}(g.default.Component);_.contextTypes=b,t.default=_,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(5),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(888),b=i(y),_=n(14),w=i(_),x=n(145),T=i(x),E=(0,f.default)({},b.default.propTypes,{show:g.default.PropTypes.bool,rootClose:g.default.PropTypes.bool,onHide:g.default.PropTypes.func,animation:g.default.PropTypes.oneOfType([g.default.PropTypes.bool,w.default]),onEnter:g.default.PropTypes.func,onEntering:g.default.PropTypes.func,onEntered:g.default.PropTypes.func,onExit:g.default.PropTypes.func,onExiting:g.default.PropTypes.func,onExited:g.default.PropTypes.func,placement:g.default.PropTypes.oneOf(["top","right","bottom","left"])}),C={animation:T.default,rootClose:!1,show:!1,placement:"right"},O=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.animation,n=e.children,i=(0,o.default)(e,["animation","children"]),r=t===!0?T.default:t||null,a=void 0;return a=r?n:(0,m.cloneElement)(n,{className:(0,v.default)(n.props.className,"in")}),g.default.createElement(b.default,(0,f.default)({},i,{transition:r}),a)},t}(g.default.Component);O.propTypes=E,O.defaultProps=C,t.default=O,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(38),b=i(y),_=n(21),w=i(_),x={disabled:g.default.PropTypes.bool,previous:g.default.PropTypes.bool,next:g.default.PropTypes.bool,onClick:g.default.PropTypes.func,onSelect:g.default.PropTypes.func,eventKey:g.default.PropTypes.any},T={disabled:!1,previous:!1,next:!1},E=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));return r.handleSelect=r.handleSelect.bind(r),r}return(0,f.default)(t,e),t.prototype.handleSelect=function(e){var t=this.props,n=t.disabled,i=t.onSelect,r=t.eventKey;(i||n)&&e.preventDefault(),n||i&&i(r,e)},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.previous,i=e.next,r=e.onClick,a=e.className,u=e.style,l=(0,s.default)(e,["disabled","previous","next","onClick","className","style"]);return delete l.onSelect,delete l.eventKey,g.default.createElement("li",{className:(0,v.default)(a,{disabled:t,previous:n,next:i}),style:u},g.default.createElement(b.default,(0,o.default)({},l,{disabled:t,onClick:(0,w.default)(r,this.handleSelect)})))},t}(g.default.Component);E.propTypes=x,E.defaultProps=T,t.default=E,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(238),s=i(a),u=n(6),l=i(u),c=n(2),d=i(c),h=n(4),f=i(h),p=n(3),v=i(p),m=n(7),g=i(m),y=n(1),b=i(y),_=n(8),w=n(21),x=i(w),T=n(26),E=i(T),C={accordion:b.default.PropTypes.bool,activeKey:b.default.PropTypes.any,defaultActiveKey:b.default.PropTypes.any,onSelect:b.default.PropTypes.func,role:b.default.PropTypes.string},O={accordion:!1},S=function(e){function t(n,i){(0,d.default)(this,t);var r=(0,f.default)(this,e.call(this,n,i));return r.handleSelect=r.handleSelect.bind(r),r.state={activeKey:n.defaultActiveKey},r}return(0,v.default)(t,e),t.prototype.handleSelect=function(e,t){t.preventDefault(),this.props.onSelect&&this.props.onSelect(e,t),this.state.activeKey===e&&(e=null),this.setState({activeKey:e})},t.prototype.render=function(){var e=this,t=this.props,n=t.accordion,i=t.activeKey,r=t.className,a=t.children,u=(0,l.default)(t,["accordion","activeKey","className","children"]),c=(0,_.splitBsPropsAndOmit)(u,["defaultActiveKey","onSelect"]),d=c[0],h=c[1],f=void 0;n&&(f=null!=i?i:this.state.activeKey,h.role=h.role||"tablist");var p=(0,_.getClassSet)(d);return b.default.createElement("div",(0,o.default)({},h,{className:(0,g.default)(r,p)}),E.default.map(a,function(t){var i={bsStyle:t.props.bsStyle||d.bsStyle};return n&&(0,s.default)(i,{headerRole:"tab",panelRole:"tabpanel",collapsible:!0,expanded:t.props.eventKey===f,onSelect:(0,x.default)(e.handleSelect,t.props.onSelect)}),(0,y.cloneElement)(t,i)}))},t}(b.default.Component);S.propTypes=C,S.defaultProps=O,t.default=(0,_.bsClass)("panel-group",S),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(33),w=(i(_),n(8)),x=n(21),T=i(x),E=n(145),C=i(E),O={eventKey:m.PropTypes.any,animation:m.PropTypes.oneOfType([m.PropTypes.bool,b.default]),id:m.PropTypes.string,"aria-labelledby":m.PropTypes.string,bsClass:g.default.PropTypes.string,onEnter:m.PropTypes.func,onEntering:m.PropTypes.func,onEntered:m.PropTypes.func,onExit:m.PropTypes.func,onExiting:m.PropTypes.func,onExited:m.PropTypes.func,mountOnEnter:g.default.PropTypes.bool,unmountOnExit:m.PropTypes.bool},S={$bs_tabContainer:m.PropTypes.shape({getTabId:m.PropTypes.func,getPaneId:m.PropTypes.func}),$bs_tabContent:m.PropTypes.shape({bsClass:m.PropTypes.string,animation:m.PropTypes.oneOfType([m.PropTypes.bool,b.default]),activeKey:m.PropTypes.any,mountOnEnter:m.PropTypes.bool,unmountOnExit:m.PropTypes.bool,onPaneEnter:m.PropTypes.func.isRequired,onPaneExited:m.PropTypes.func.isRequired,exiting:m.PropTypes.bool.isRequired})},k={$bs_tabContainer:m.PropTypes.oneOf([null])},M=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));return r.handleEnter=r.handleEnter.bind(r),r.handleExited=r.handleExited.bind(r),r.in=!1,r}return(0,f.default)(t,e),t.prototype.getChildContext=function(){return{$bs_tabContainer:null}},t.prototype.componentDidMount=function(){this.shouldBeIn()&&this.handleEnter()},t.prototype.componentDidUpdate=function(){this.in?this.shouldBeIn()||this.handleExited():this.shouldBeIn()&&this.handleEnter()},t.prototype.componentWillUnmount=function(){this.in&&this.handleExited()},t.prototype.handleEnter=function(){var e=this.context.$bs_tabContent;e&&(this.in=e.onPaneEnter(this,this.props.eventKey))},t.prototype.handleExited=function(){var e=this.context.$bs_tabContent;e&&(e.onPaneExited(this),this.in=!1)},t.prototype.getAnimation=function(){if(null!=this.props.animation)return this.props.animation;var e=this.context.$bs_tabContent;return e&&e.animation},t.prototype.isActive=function(){var e=this.context.$bs_tabContent,t=e&&e.activeKey;return this.props.eventKey===t},t.prototype.shouldBeIn=function(){return this.getAnimation()&&this.isActive()},t.prototype.render=function(){var e=this.props,t=e.eventKey,n=e.className,i=e.onEnter,r=e.onEntering,a=e.onEntered,u=e.onExit,l=e.onExiting,c=e.onExited,d=e.mountOnEnter,h=e.unmountOnExit,f=(0,s.default)(e,["eventKey","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","mountOnEnter","unmountOnExit"]),p=this.context,m=p.$bs_tabContent,y=p.$bs_tabContainer,b=(0,w.splitBsPropsAndOmit)(f,["animation"]),_=b[0],x=b[1],E=this.isActive(),O=this.getAnimation(),S=null!=d?d:m&&m.mountOnEnter,k=null!=h?h:m&&m.unmountOnExit;if(!E&&!O&&k)return null;var M=O===!0?C.default:O||null;m&&(_.bsClass=(0,w.prefix)(m,"pane"));var P=(0,o.default)({},(0,w.getClassSet)(_),{active:E});y&&(x.id=y.getPaneId(t),x["aria-labelledby"]=y.getTabId(t));var N=g.default.createElement("div",(0,o.default)({},x,{role:"tabpanel","aria-hidden":!E,className:(0,v.default)(n,P)}));if(M){var D=m&&m.exiting;return g.default.createElement(M,{in:E&&!D,onEnter:(0,T.default)(this.handleEnter,i),onEntering:r,onEntered:a,onExit:u,onExiting:l,onExited:(0,T.default)(this.handleExited,c),mountOnEnter:S,unmountOnExit:k},N)}return N},t}(g.default.Component);M.propTypes=O,M.contextTypes=S,M.childContextTypes=k,t.default=(0,w.bsClass)("tab-pane",M),e.exports=t.default},function(e,t){"use strict";function n(e){return""+e.charAt(0).toUpperCase()+e.slice(1)}t.__esModule=!0,t.default=n,e.exports=t.default},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var i={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},r=["Webkit","ms","Moz","O"];Object.keys(i).forEach(function(e){r.forEach(function(t){i[n(t,e)]=i[e]})});var o={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:i,shorthandPropertyExpansions:o};e.exports=a},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(12),o=n(69),a=(n(9),function(){function e(t){i(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length?r("24"):void 0,this._callbacks=null,this._contexts=null;for(var i=0;i.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=m.createElement(F,{child:t});if(e){var u=x.get(e);a=u._processChildContext(u._context)}else a=S;var c=h(n);if(c){var d=c._currentElement,p=d.props.child;if(P(p,t)){var v=c._renderedComponent.getPublicInstance(),g=i&&function(){i.call(v)};return B._updateRootComponent(c,s,a,n,g),v}B.unmountComponentAtNode(n)}var y=r(n),b=y&&!!o(y),_=l(n),w=b&&!c&&!_,T=B._renderNewRootComponent(s,n,w,a)._renderedComponent.getPublicInstance();return i&&i.call(T),T},render:function(e,t,n){return B._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)?void 0:f("40");var t=h(e);if(!t){l(e),1===e.nodeType&&e.hasAttribute(D);return!1}return delete R[t._instance.rootID],O.batchedUpdates(u,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,o,a){if(c(t)?void 0:f("41"),o){var s=r(t);if(T.canReuseMarkup(e,s))return void y.precacheNode(n,s);var u=s.getAttribute(T.CHECKSUM_ATTR_NAME);s.removeAttribute(T.CHECKSUM_ATTR_NAME);var l=s.outerHTML;s.setAttribute(T.CHECKSUM_ATTR_NAME,u);var d=e,h=i(d,l),v=" (client) "+d.substring(h-20,h+20)+"\n (server) "+l.substring(h-20,h+20);t.nodeType===L?f("42",v):void 0}if(t.nodeType===L?f("43"):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);p.insertTreeBefore(t,e,null)}else M(t,e),y.precacheNode(n,t.firstChild)}};e.exports=B},function(e,t,n){"use strict";var i=n(12),r=n(89),o=(n(9),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?o.EMPTY:r.isValidElement(e)?"function"==typeof e.type?o.COMPOSITE:o.HOST:void i("26",e)}});e.exports=o},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function i(e,t){return null==t?r("30"):void 0,null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(12);n(9);e.exports=i},function(e,t){"use strict";function n(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=n},function(e,t,n){"use strict";function i(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(368);e.exports=i},function(e,t,n){"use strict";function i(){return!o&&r.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var r=n(23),o=null;e.exports=i},function(e,t,n){"use strict";function i(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e,t){var n;if(null===e||e===!1)n=l.create(o);else if("object"==typeof e){var s=e,u=s.type;if("function"!=typeof u&&"string"!=typeof u){var h="";h+=i(s._owner),a("130",null==u?u:typeof u,h)}"string"==typeof s.type?n=c.createInternalComponent(s):r(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(s)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(12),s=n(16),u=n(835),l=n(363),c=n(365),d=(n(914),n(9),n(10),function(e){this.construct(e)});s(d.prototype,u,{_instantiateReactComponent:o}),e.exports=o},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!i[e.type]:"textarea"===t}var i={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";var i=n(23),r=n(150),o=n(151),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};i.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){return 3===e.nodeType?void(e.nodeValue=t):void o(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function i(e,t){return e&&"object"==typeof e&&null!=e.key?l.escape(e.key):t.toString(36)}function r(e,t,n,o){var h=typeof e;if("undefined"!==h&&"boolean"!==h||(e=null),null===e||"string"===h||"number"===h||"object"===h&&e.$$typeof===s)return n(o,e,""===t?c+i(e,0):t),1;var f,p,v=0,m=""===t?c:t+d;if(Array.isArray(e))for(var g=0;g=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(){}Object.defineProperty(t,"__esModule",{value:!0}),t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var l=Object.assign||function(e){for(var t=1;te.clientHeight}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=n(122),u=i(s),l=n(75),c=i(l);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function u(){}function l(e,t){var n={run:function(i){try{var r=e(t.getState(),i);(r!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=r,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}function c(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=i.getDisplayName,h=void 0===c?function(e){return"ConnectAdvanced("+e+")"}:c,p=i.methodName,g=void 0===p?"connectAdvanced":p,x=i.renderCountProp,T=void 0===x?void 0:x,E=i.shouldHandleStateChanges,C=void 0===E||E,O=i.storeKey,S=void 0===O?"store":O,k=i.withRef,M=void 0!==k&&k,P=s(i,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),N=S+"Subscription",D=_++,I=(t={},t[S]=b.storeShape,t[N]=b.subscriptionShape,t),L=(n={},n[N]=b.subscriptionShape,n);return function(t){(0,v.default)("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=h(n),s=d({},P,{getDisplayName:h,methodName:g,renderCountProp:T,shouldHandleStateChanges:C,storeKey:S,withRef:M,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=function(n){function c(e,t){r(this,c);var a=o(this,n.call(this,e,t));return a.version=D,a.state={},a.renderCount=0,a.store=e[S]||t[S],a.propsMode=Boolean(e[S]),a.setWrappedInstance=a.setWrappedInstance.bind(a),(0,v.default)(a.store,'Could not find "'+S+'" in either the context or props of '+('"'+i+'". Either wrap the root component in a , ')+('or explicitly pass "'+S+'" as a prop to "'+i+'".')),a.initSelector(),a.initSubscription(),a}return a(c,n),c.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[N]=t||this.context[N],e},c.prototype.componentDidMount=function(){C&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},c.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=u,this.store=null,this.selector.run=u,this.selector.shouldComponentUpdate=!1},c.prototype.getWrappedInstance=function(){return(0,v.default)(M,"To access the wrapped instance, you need to specify "+("{ withRef: true } in the options argument of the "+g+"() call.")),this.wrappedInstance},c.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},c.prototype.initSelector=function(){var t=e(this.store.dispatch,s);this.selector=l(t,this.store),this.selector.run(this.props)},c.prototype.initSubscription=function(){if(C){var e=(this.propsMode?this.props:this.context)[N];this.subscription=new y.default(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(w)):this.notifyNestedSubs()},c.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.prototype.addExtraProps=function(e){if(!(M||T||this.propsMode&&this.subscription))return e;var t=d({},e);return M&&(t.ref=this.setWrappedInstance),T&&(t[T]=this.renderCount++),this.propsMode&&this.subscription&&(t[N]=this.subscription),t},c.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,m.createElement)(t,this.addExtraProps(e.props))},c}(m.Component);return c.WrappedComponent=t,c.displayName=i,c.childContextTypes=L,c.contextTypes=I,c.propTypes=I,(0,f.default)(c,t)}}t.__esModule=!0;var d=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},i={};return n.serial?T(t,function(e,t){try{var n=v(e),r=b.reduceRight(function(e,n){return n.out(e,t)},n);i=C(i,t,r)}catch(e){}}):i=t,e.dispatch(u(i)),i}function r(e){return""+w+e}var f=t.serialize===!1?function(e){return e}:a,v=t.serialize===!1?function(e){return e}:s,g=t.blacklist||[],y=t.whitelist||!1,b=t.transforms||[],_=t.debounce||!1,w=void 0!==t.keyPrefix?t.keyPrefix:h.KEY_PREFIX,x=t._stateInit||{},T=t._stateIterator||l,E=t._stateGetter||c,C=t._stateSetter||d,O=t.storage||(0,p.default)("local");O.keys&&!O.getAllKeys&&(O.getAllKeys=O.keys);var S=x,k=!1,M=[],P=null;return e.subscribe(function(){if(!k){var t=e.getState();T(t,function(e,i){n(i)&&E(S,i)!==E(t,i)&&M.indexOf(i)===-1&&M.push(i)}),null===P&&(P=setInterval(function(){if(0===M.length)return clearInterval(P),void(P=null);var t=M[0],n=r(t),i=b.reduce(function(e,n){return n.in(e,t)},E(e.getState(),t));"undefined"!=typeof i&&O.setItem(n,f(i),o(t)),M.shift()},_)),S=t}}),{rehydrate:i,pause:function(){k=!0},resume:function(){k=!1},purge:function(e){return(0,m.default)({storage:O,keyPrefix:w},e)}}}function o(e){return function(e){}}function a(e){return(0,y.default)(e,null,null,function(e,t){throw new Error('\n redux-persist: cannot process cyclical state.\n Consider changing your state structure to have no cycles.\n Alternatively blacklist the corresponding reducer key.\n Cycle encounted at key "'+e+'" with value "'+t+'".\n ')})}function s(e){return JSON.parse(e)}function u(e){return{type:h.REHYDRATE,payload:e}}function l(e,t){return Object.keys(e).forEach(function(n){return t(e[n],n)})}function c(e,t){return e[t]}function d(e,t,n){return e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var h=n(118),f=n(391),p=i(f),v=n(393),m=i(v),g=n(581),y=i(g)},function(e,t,n){(function(e,n){"use strict";function i(e){if("object"!==("undefined"==typeof window?"undefined":s(window))||!(e in window))return!1;try{var t=window[e],n="redux-persist "+e+" test";t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch(e){return!1}return!0}function r(){return i("localStorage")}function o(){return i("sessionStorage")}function a(e){return"local"===e?r()?window.localStorage:{getItem:l,setItem:l,removeItem:l,getAllKeys:l}:"session"===e?o()?window.sessionStorage:{getItem:l,setItem:l,removeItem:l,getAllKeys:l}:void 0}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){var n=a(e);return{getAllKeys:function(e){return new Promise(function(t,i){try{for(var r=[],o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(927),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t){function n(e,t){var n=t||0,r=i;return r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}for(var i=[],r=0;r<256;++r)i[r]=(r+256).toString(16).substr(1);e.exports=n},function(e,t){(function(t){var n,i=t.crypto||t.msCrypto;if(i&&i.getRandomValues){var r=new Uint8Array(16);n=function(){return i.getRandomValues(r),r}}if(!n){var o=new Array(16);n=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}e.exports=n}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e){s.length||(a(),u=!0),s[s.length]=e}function i(){for(;lc){for(var t=0,n=s.length-l;t0&&!o&&l.default.createElement("span",{className:"Properties-facets"},"Facets"),l.default.createElement("div",{className:"Properties"},Object.keys(s).map(function(e,t){return l.default.createElement("div",{className:"Properties-key-val",key:t},l.default.createElement("div",{className:"Properties-key"},e,": "),l.default.createElement("div",{className:"Properties-val"},String(s[e])))})))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(420),s=i(a),u=n(416),l=i(u),c=n(46);n(522);var d=function(e){var t=e.query,n=e.result,i=e.partial,r=(e.rendering,e.latency,e.numNodes),a=e.numEdges,u=e.numNodesRendered,d=e.numEdgesRendered,h=e.treeView,f=e.renderGraph,p=e.expand;return o.default.createElement("div",{className:"ResponseInfo"},o.default.createElement(l.default,null),o.default.createElement("div",{className:"ResponseInfo-stats"},o.default.createElement("div",{className:"ResponseInfo-flex"},o.default.createElement(s.default,null),o.default.createElement("div",null,"Nodes:"," ",r,", Edges:"," ",a)),o.default.createElement("div",{className:"ResponseInfo-flex"},o.default.createElement(c.Button,{className:"ResponseInfo-button",bsStyle:"primary",disabled:0===r||u===r&&d===a,onClick:function(){return p()}},i?"Expand":"Collapse"),o.default.createElement(c.Button,{className:"ResponseInfo-button",bsStyle:"primary",disabled:0===r,onClick:function(){return f(t,n,!h)}},h?"Graph view":"Tree View"))),o.default.createElement("div",{className:"ResponseInfo-partial"},o.default.createElement("i",null,i?"We have only loaded a subset of the graph. Double click on a leaf node to expand its child nodes.":"")))};t.default=d},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return""===e?"_uid_":e.length<=10?e:c.default.truncate(e,{length:10})}function o(e){var t=e.scratchpad,n=e.deleteAllEntries;return s.default.createElement("div",{className:"Scratchpad"},s.default.createElement("div",{className:"Scratchpad-header"},s.default.createElement("h5",{className:"Scratchpad-heading"}," Scratchpad "),s.default.createElement(u.Button,{className:"Scratchpad-clear pull-right",bsSize:"xsmall",onClick:function(){n()}},"Clear")),s.default.createElement("div",{className:"Scratchpad-entries"},t.map(function(e,t){return s.default.createElement("div",{className:"Scratchpad-key-val",key:t},s.default.createElement("div",{className:"Scratchpad-key",title:e.name},r(e.name))," ",":"," ",s.default.createElement("div",{className:"Scratchpad-val"},e.uid))})))}Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),s=i(a),u=n(46),l=n(735),c=i(l);n(523),t.default=o},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0&&'"'===u[0])return{list:[],from:s,to:a};"invalidchar"===r.type&&void 0!==r.state.prevState&&"Field"===r.state.prevState.kind&&(u=r.state.prevState.name+r.string,s.ch-=r.state.prevState.name.length),"Directive"===r.state.kind&&(u="@"+u,s.ch-=1),u=u.toLowerCase();for(var l=[],c=0;c0&&d.startsWith(u)&&l.push(d)}return l.length?{list:l.sort(f.sortStrings),from:s,to:a}:void 0}),e.commands.autocomplete=function(n){e.showHint(n,e.hint.fromList,{completeSingle:!1,words:t})},a.editor.on("change",function(e){a.props.updateQuery(a.editor.getValue())}),a.editor.on("keydown",function(t,n){var i=n.keyCode;!n.ctrlKey&&i>=65&&i<=90&&e.commands.autocomplete(t)})},s=i,o(a,s)}return a(t,e),s(t,[{key:"render",value:function(){var e=this;return l.default.createElement("div",null,l.default.createElement(d.Form,{horizontal:!0,bsSize:"sm",style:{marginBottom:"10px"}},l.default.createElement(d.FormGroup,{bsSize:"sm"},l.default.createElement(d.Col,{xs:2},l.default.createElement(d.ControlLabel,null,"Query")),l.default.createElement(d.Col,{xs:8},l.default.createElement(d.FormControl,{type:"text",placeholder:"Regex to choose property for display",value:this.props.regex,onChange:function(t){t.preventDefault(),e.props.updateRegex(t.target.value)}})),l.default.createElement(d.Col,{xs:2},l.default.createElement(d.Button,{type:"submit",className:"btn btn-primary pull-right",onClick:function(t){t.preventDefault(),e.props.onRunQuery(e.getValue())}},"Run")))),l.default.createElement("div",{className:"Editor-basic",ref:function(t){e._editor=t}}))}}]),t}(u.Component),v=function(e){return{query:e.query.text,regex:e.query.propertyRegex}},m={onRunQuery:h.runQuery,updateQuery:h.selectQuery,updateRegex:h.updateRegex};t.default=(0,c.connect)(v,m)(p)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.map(function(e){return e.to})}function u(e,t,n,i){if(e.nodes.length>0){var r=e.nodes[0],o=t.get(r);this.setState({selectedNode:!0}),i((0,y.setCurrentNode)(o))}else if(e.edges.length>0){var a=e.edges[0],s=n.get(a);this.setState({selectedNode:!0}),i((0,y.setCurrentNode)(s))}else this.setState({selectedNode:!1}),i((0,y.setCurrentNode)("{}"))}function l(e,t){function n(e){for(var t=[e],n=[e],i=[];0!==n.length;){var r=n.pop(),a=(0,b.outgoingEdges)(r,d),s=a.map(function(e){return e.to});if(n=n.concat(s),t=t.concat(s),i=i.concat(a),s.length>3)break}o.nodes.update(c.get(t)),o.edges.update(i)}function i(e,t){return(0,b.outgoingEdges)(e,t).length===(0,b.outgoingEdges)(e,d).length}t((0,y.updateLatency)({rendering:{start:new Date}}));var r=document.getElementById("graph"),o={nodes:new v.default.DataSet(e.nodes),edges:new v.default.DataSet(e.edges)},a={nodes:{shape:"circle",scaling:{max:20,min:20,label:{enabled:!0,min:14,max:14}},font:{size:16},margin:{top:25}},height:"100%",width:"100%",interaction:{hover:!0,keyboard:{enabled:!0,bindToWindow:!1},navigationButtons:!0,tooltipDelay:1e6,hideEdgesOnDrag:!0},layout:{randomSeed:42,improvedLayout:!1},physics:{stabilization:{fit:!0,updateInterval:5,iterations:20},barnesHut:{damping:.7}}};o.nodes.length<100&&w.default.merge(a,{physics:{stabilization:{iterations:200,updateInterval:50}}}),e.treeView&&Object.assign(a,{layout:{hierarchical:{sortMethod:"directed"}},physics:{enabled:!1,barnesHut:{}}});var l=new v.default.Network(r,o,a),c=new v.default.DataSet(e.allNodes),d=new v.default.DataSet(e.allEdges),h=this;this.setState({network:l}),e.treeView&&t((0,y.updateLatency)({rendering:{end:new Date}})),c.length===o.nodes.length&&d.length===o.edges.length||t((0,y.updatePartial)(!0)),l.on("stabilizationProgress",function(e){var n=e.iterations/e.total;t((0,y.updateProgress)(100*n))}),l.once("stabilizationIterationsDone",function(){t((0,y.hideProgressBar)()),t((0,y.updateLatency)({rendering:{end:new Date}}))}),l.on("doubleClick",function(e){if(x=new Date,e.nodes&&e.nodes.length>0){var i=e.nodes[0],r=o.nodes.get(i);l.unselectAll(),t((0,y.setCurrentNode)(r)),h.setState({selectedNode:!1});var a=(0,b.outgoingEdges)(i,o.edges),s=(0,b.outgoingEdges)(i,d),u=a.length>0||0===s.length,f=s.map(function(e){return e.to}),p=c.get(f);if(u){for(var v=a.map(function(e){return e.id}),m=p.slice();f.length>0;){var g=f.pop(),_=(0,b.outgoingEdges)(g,o.edges),w=_.map(function(e){return e.to});m=m.concat(w),v=v.concat(_),f=f.concat(w)}o.nodes.remove(m),o.edges.remove(v)}else n(i),o.nodes.length===c.length&&t((0,y.updatePartial)(!1))}}),l.on("click",function(e){var n=new Date;n-x>T&&setTimeout(function(){n-x>T&&u.bind(h)(e,o.nodes,o.edges,t)},T)}),window.onresize=function(){void 0!==l&&l.fit()},l.on("hoverNode",function(e){if(!h.state.selectedNode&&e.node.length>0){var n=e.node,i=o.nodes.get(n);t((0,y.setCurrentNode)(i))}}),l.on("hoverEdge",function(e){if(!h.state.selectedNode&&e.edge.length>0){var n=e.edge,i=o.edges.get(n);t((0,y.setCurrentNode)(i))}}),l.on("dragEnd",function(e){for(var t=0;t0;){var f=e.pop();if(!i.bind(this)(f,r)){var p=(0,b.outgoingEdges)(f,d),v=s(p);e=e.concat(v);var m=!0,g=!1,_=void 0;try{for(var w,x=v[Symbol.iterator]();!(m=(w=x.next()).done);m=!0){var T=w.value;a.add(T)}}catch(e){g=!0,_=e}finally{try{!m&&x.return&&x.return()}finally{if(g)throw _}}if(u=u.concat(p),a.size>h)return n.update(c.get(Array.from(a))),r.update(u),a=new Set,void(u=[])}}0===e.length&&t((0,y.updatePartial)(!1)),(a.size>0||u.length>0)&&(n.update(c.get(Array.from(a))),r.update(u)),l.fit()}},p=function(){l.fit()};this.setState({expand:f,fit:p})}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n1?t.toFixed(1)+"s":(1e3*(t-Math.floor(t))).toFixed(0)+"ms"}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(40),a=n(409),s=i(a),u=function(e,t){return{server:e.latency.server,rendering:r(e.latency.rendering)}};t.default=(0,o.connect)(u,null)(s.default)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(1),o=i(r),a=n(27),s=i(a),u=n(237),l=n(40),c=n(922),d=i(c),h=n(919),f=n(422),p=i(f),v=n(410),m=i(v);n(515),n(514);var g=[d.default],y=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||u.compose,b=(0,u.createStore)(p.default,void 0,y(u.applyMiddleware.apply(void 0,g),(0,h.autoRehydrate)()));(0,h.persistStore)(b,{whitelist:["previousQueries","query","scratchpad"]});var _=function(e){return s.default.render(o.default.createElement(l.Provider,{store:b},o.default.createElement(e,null)),document.getElementById("root"))};_(m.default)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(237),o=n(425),a=i(o),s=n(426),u=i(s),l=n(427),c=i(l),d=n(423),h=i(d),f=n(424),p=i(f),v=n(428),m=i(v),g=(0,r.combineReducers)({query:u.default,previousQueries:a.default,response:c.default,interaction:h.default,latency:p.default,scratchpad:m.default});t.default=g},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={node:"{}",partial:!1,fullscreen:!1,progress:{perc:0,display:!1}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments[1];switch(t.type){case"SELECT_NODE":return Object.assign({},e,{node:t.node});case"UPDATE_PARTIAL":return Object.assign({},e,{partial:t.partial});case"RESET_RESPONSE":return n;case"UPDATE_FULLSCREEN":return Object.assign({},e,{fullscreen:t.fs});case"UPDATE_PROGRESS":return Object.assign({},e,{progress:{perc:t.perc,display:!0}});case"HIDE_PROGRESS":return Object.assign({},e,{progress:{display:!1}});default:return e}};t.default=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(330),o=i(r),a={server:"",rendering:{start:void 0,end:void 0}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case"UPDATE_LATENCY":return o.default.merge({},e,t);case"RESET_RESPONSE":return a;default:return e}};t.default=s},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"ADD_QUERY":var r=t.text.trim();return[i(void 0,t)].concat(n(e.filter(function(e){return e.text.trim()!==r})));case"DELETE_QUERY":return[].concat(n(e.slice(0,t.idx)),n(e.slice(t.idx+1)));case"DELETE_ALL_QUERIES":return[];default:return e}};t.default=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{text:"",propertyRegex:""},t=arguments[1];switch(t.type){case"SELECT_QUERY":return Object.assign({},e,{text:t.text});case"UPDATE_PROPERTY_REGEX":return Object.assign({},e,{propertyRegex:t.regex});default:return e}};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={text:"",data:{},success:!1,plotAxis:[],nodes:[],edges:[],allNodes:[],allEdges:[],numNodes:0,numEdges:0,treeView:!1,isFetching:!1,mutation:!1},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments[1];switch(t.type){case"ERROR_RESPONSE":return Object.assign({},e,{text:t.text,success:!1,data:t.json});case"SUCCESS_RESPONSE":return Object.assign({},e,{data:t.data,text:t.text||"",success:!0,mutation:t.isMutation});case"RESPONSE_PROPERTIES":return Object.assign({},e,t,{numNodes:t.allNodes&&t.allNodes.length,numEdges:t.allEdges&&t.allEdges.length});case"RESET_RESPONSE":return n;case"IS_FETCHING":return Object.assign({},e,{isFetching:t.fetching});default:return e}};t.default=i},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"ADD_SCRATCHPAD_ENTRY":var i={name:t.name,uid:t.uid},r=e.map(function(e){return e.uid}).indexOf(i.uid);return r!==-1?e:[].concat(n(e),[i]);case"DELETE_SCRATCHPAD_ENTRIES":return[];default:return e}};t.default=i},function(e,t,n){e.exports={default:n(434),__esModule:!0}},function(e,t,n){e.exports={default:n(436),__esModule:!0}},function(e,t,n){e.exports={default:n(438),__esModule:!0}},function(e,t,n){e.exports={default:n(440),__esModule:!0}},function(e,t,n){e.exports={default:n(441),__esModule:!0}},function(e,t,n){n(250),n(465),e.exports=n(34).Array.from},function(e,t,n){n(467),e.exports=n(34).Object.assign},function(e,t,n){n(468);var i=n(34).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,n){n(472),e.exports=n(34).Object.entries},function(e,t,n){n(469),e.exports=n(34).Object.setPrototypeOf},function(e,t,n){n(473),e.exports=n(34).Object.values},function(e,t,n){n(471),n(470),n(474),n(475),e.exports=n(34).Symbol},function(e,t,n){n(250),n(476),e.exports=n(172).f("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,n){var i=n(51),r=n(249),o=n(463);e.exports=function(e){return function(t,n,a){var s,u=i(t),l=r(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(158),r=n(35)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),r))?n:o?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){"use strict";var i=n(62),r=n(96);e.exports=function(e,t,n){t in e?i.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var i=n(74),r=n(164),o=n(95);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){e.exports=n(50).document&&document.documentElement},function(e,t,n){var i=n(94),r=n(35)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[r]===e)}},function(e,t,n){var i=n(158);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(71);e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&i(o.call(e)),t}}},function(e,t,n){"use strict"; -var i=n(163),r=n(96),o=n(165),a={};n(73)(a,n(35)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var i=n(35)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},e(o)}catch(e){}return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var i=n(74),r=n(51);e.exports=function(e,t){for(var n,o=r(e),a=i(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===t)return n}},function(e,t,n){var i=n(120)("meta"),r=n(93),o=n(61),a=n(62).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(92)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[i].i},h=function(e,t){if(!o(e,i)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[i].w},f=function(e){return l&&p.NEED&&u(e)&&!o(e,i)&&c(e),e},p=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},function(e,t,n){"use strict";var i=n(74),r=n(164),o=n(95),a=n(169),s=n(242),u=Object.assign;e.exports=!u||n(92)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=i})?function(e,t){for(var n=a(e),u=arguments.length,l=1,c=r.f,d=o.f;u>l;)for(var h,f=s(arguments[l++]),p=c?i(f).concat(c(f)):i(f),v=p.length,m=0;v>m;)d.call(f,h=p[m++])&&(n[h]=f[h]);return n}:u},function(e,t,n){var i=n(62),r=n(71),o=n(74);e.exports=n(72)?Object.defineProperties:function(e,t){r(e);for(var n,a=o(t),s=a.length,u=0;s>u;)i.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var i=n(51),r=n(245).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},function(e,t,n){var i=n(61),r=n(169),o=n(166)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var i=n(93),r=n(71),o=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{i=n(159)(Function.call,n(244).f(Object.prototype,"__proto__").set,2),i(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var i=n(168),r=n(160);e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),u=i(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(e,t,n){var i=n(168),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},function(e,t,n){var i=n(445),r=n(35)("iterator"),o=n(94);e.exports=n(34).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||o[i(e)]}},function(e,t,n){"use strict";var i=n(159),r=n(49),o=n(169),a=n(451),s=n(449),u=n(249),l=n(446),c=n(464);r(r.S+r.F*!n(453)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,r,d,h=o(e),f="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v,g=0,y=c(h);if(m&&(v=i(v,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(t=u(h.length),n=new f(t);t>g;g++)l(n,g,m?v(h[g],g):h[g]);else for(d=y.call(h),n=new f;!(r=d.next()).done;g++)l(n,g,m?a(d,v,[r.value,g],!0):r.value);return n.length=g,n}})},function(e,t,n){"use strict";var i=n(443),r=n(454),o=n(94),a=n(51);e.exports=n(243)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var i=n(49);i(i.S+i.F,"Object",{assign:n(457)})},function(e,t,n){var i=n(49);i(i.S,"Object",{create:n(163)})},function(e,t,n){var i=n(49);i(i.S,"Object",{setPrototypeOf:n(461).set})},function(e,t){},function(e,t,n){"use strict";var i=n(50),r=n(61),o=n(72),a=n(49),s=n(248),u=n(456).KEY,l=n(92),c=n(167),d=n(165),h=n(120),f=n(35),p=n(172),v=n(171),m=n(455),g=n(447),y=n(450),b=n(71),_=n(51),w=n(170),x=n(96),T=n(163),E=n(459),C=n(244),O=n(62),S=n(74),k=C.f,M=O.f,P=E.f,N=i.Symbol,D=i.JSON,I=D&&D.stringify,L="prototype",A=f("_hidden"),R=f("toPrimitive"),j={}.propertyIsEnumerable,F=c("symbol-registry"),B=c("symbols"),z=c("op-symbols"),G=Object[L],H="function"==typeof N,U=i.QObject,W=!U||!U[L]||!U[L].findChild,V=o&&l(function(){return 7!=T(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=k(G,t);i&&delete G[t],M(e,t,n),i&&e!==G&&M(G,t,i)}:M,Y=function(e){var t=B[e]=T(N[L]);return t._k=e,t},Q=H&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},K=function(e,t,n){return e===G&&K(z,t,n),b(e),t=w(t,!0),b(n),r(B,t)?(n.enumerable?(r(e,A)&&e[A][t]&&(e[A][t]=!1),n=T(n,{enumerable:x(0,!1)})):(r(e,A)||M(e,A,x(1,{})),e[A][t]=!0),V(e,t,n)):M(e,t,n)},q=function(e,t){b(e);for(var n,i=g(t=_(t)),r=0,o=i.length;o>r;)K(e,n=i[r++],t[n]);return e},X=function(e,t){return void 0===t?T(e):q(T(e),t)},$=function(e){var t=j.call(this,e=w(e,!0));return!(this===G&&r(B,e)&&!r(z,e))&&(!(t||!r(this,e)||!r(B,e)||r(this,A)&&this[A][e])||t)},Z=function(e,t){if(e=_(e),t=w(t,!0),e!==G||!r(B,t)||r(z,t)){var n=k(e,t);return!n||!r(B,t)||r(e,A)&&e[A][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=P(_(e)),i=[],o=0;n.length>o;)r(B,t=n[o++])||t==A||t==u||i.push(t);return i},ee=function(e){for(var t,n=e===G,i=P(n?z:_(e)),o=[],a=0;i.length>a;)!r(B,t=i[a++])||n&&!r(G,t)||o.push(B[t]);return o};H||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===G&&t.call(z,n),r(this,A)&&r(this[A],e)&&(this[A][e]=!1),V(this,e,x(1,n))};return o&&W&&V(G,e,{configurable:!0,set:t}),Y(e)},s(N[L],"toString",function(){return this._k}),C.f=Z,O.f=K,n(245).f=E.f=J,n(95).f=$,n(164).f=ee,o&&!n(162)&&s(G,"propertyIsEnumerable",$,!0),p.f=function(e){return Y(f(e))}),a(a.G+a.W+a.F*!H,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=S(f.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return r(F,e+="")?F[e]:F[e]=N(e)},keyFor:function(e){if(Q(e))return m(F,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!H,"Object",{create:X,defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),D&&a(a.S+a.F*(!H||l(function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!Q(e)){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);return t=i[1],"function"==typeof t&&(n=t),!n&&y(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!Q(t))return t}),i[1]=t,I.apply(D,i)}}}),N[L][R]||n(73)(N[L],R,N[L].valueOf),d(N,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){var i=n(49),r=n(247)(!0);i(i.S,"Object",{entries:function(e){return r(e)}})},function(e,t,n){var i=n(49),r=n(247)(!1);i(i.S,"Object",{values:function(e){return r(e)}})},function(e,t,n){n(171)("asyncIterator")},function(e,t,n){n(171)("observable")},function(e,t,n){n(466);for(var i=n(50),r=n(73),o=n(94),a=n(35)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var l=s[u],c=i[l],d=c&&c.prototype;d&&!d[a]&&r(d,a,l),o[l]=o.Array}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(19),o=i(r),a=n(484),s=i(a);o.default.registerHelper("hint","graphql",function(e,t){var n=t.schema;if(n){var i=e.getCursor(),r=e.getTokenAt(i),a=(0,s.default)(n,e.getValue(),i,r);return a&&a.list&&a.list.length>0&&(a.from=o.default.Pos(a.from.line,a.from.column),a.to=o.default.Pos(a.to.line,a.to.column),o.default.signal(e,"hasCompletion",e,a,r)),a}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){o(e,t,n),u(e,t,n,t.type)}function o(e,t,n){var i=t.fieldDef.name;"__"!==i.slice(0,2)&&(c(e,t,n,t.parentType),f(e,".")),f(e,i,"field-name",n,(0,b.getFieldReference)(t))}function a(e,t,n){var i="@"+t.directiveDef.name;f(e,i,"directive-name",n,(0,b.getDirectiveReference)(t))}function s(e,t,n){t.directiveDef?a(e,t,n):t.fieldDef&&o(e,t,n);var i=t.argDef.name;f(e,"("),f(e,i,"arg-name",n,(0,b.getArgumentReference)(t)),u(e,t,n,t.inputType),f(e,")")}function u(e,t,n,i){f(e,": "),c(e,t,n,i)}function l(e,t,n){var i=t.enumValue.name;c(e,t,n,t.inputType),f(e,"."),f(e,i,"enum-value",n,(0,b.getEnumValueReference)(t))}function c(e,t,n,i){i instanceof p.GraphQLNonNull?(c(e,t,n,i.ofType),f(e,"!")):i instanceof p.GraphQLList?(f(e,"["),c(e,t,n,i.ofType),f(e,"]")):f(e,i.name,"type-name",n,(0,b.getTypeReference)(t,i))}function d(e,t,n){var i=n.description;if(i){var r=document.createElement("div");r.className="info-description",t.renderDescription?r.innerHTML=t.renderDescription(i):r.appendChild(document.createTextNode(i)),e.appendChild(r)}h(e,t,n)}function h(e,t,n){var i=n.deprecationReason;if(i){var r=document.createElement("div");r.className="info-deprecation",t.renderDescription?r.innerHTML=t.renderDescription(i):r.appendChild(document.createTextNode(i));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),r.insertBefore(o,r.firstChild),e.appendChild(r)}}function f(e,t,n,i,r){n?!function(){var o=i.onClick,a=document.createElement(o?"a":"span");o&&(a.href="javascript:void 0",a.addEventListener("click",function(e){o(r,e)})),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}():e.appendChild(document.createTextNode(t))}var p=n(99),v=n(19),m=i(v),g=n(173),y=i(g),b=n(252);n(486),m.default.registerHelper("info","graphql",function(e,t){if(t.schema&&e.state){var n=e.state,i=n.kind,o=n.step,u=(0,y.default)(t.schema,e.state);if("Field"===i&&0===o&&u.fieldDef||"AliasedField"===i&&2===o&&u.fieldDef){var h=document.createElement("div");return r(h,u,t),d(h,t,u.fieldDef),h}if("Directive"===i&&1===o&&u.directiveDef){var f=document.createElement("div");return a(f,u,t),d(f,t,u.directiveDef),f}if("Argument"===i&&0===o&&u.argDef){var p=document.createElement("div");return s(p,u,t),d(p,t,u.argDef),p}if("EnumValue"===i&&u.enumValue&&u.enumValue.description){var v=document.createElement("div");return l(v,u,t),d(v,t,u.enumValue),v}if("NamedType"===i&&u.type&&u.type.description){var m=document.createElement("div");return c(m,u,t,u.type),d(m,t,u.type),m}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(19),o=i(r),a=n(173),s=i(a),u=n(252);n(487),o.default.registerHelper("jump","graphql",function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,i=n.kind,r=n.step,o=(0,s.default)(t.schema,n);return"Field"===i&&0===r&&o.fieldDef||"AliasedField"===i&&2===r&&o.fieldDef?(0,u.getFieldReference)(o):"Directive"===i&&1===r&&o.directiveDef?(0,u.getDirectiveReference)(o):"Argument"===i&&0===r&&o.argDef?(0,u.getArgumentReference)(o):"EnumValue"===i&&o.enumValue?(0,u.getEnumValueReference)(o):"NamedType"===i&&o.type?(0,u.getTypeReference)(o):void 0}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){return t.nodes.map(function(r){var o="Variable"!==r.kind&&r.name?r.name:r.variable?r.variable:r;return{message:t.message,severity:n,type:i,from:e.posFromIndex(o.loc.start),to:e.posFromIndex(o.loc.end)}})}function o(e,t){return Array.prototype.concat.apply([],e.map(t))}var a=n(19),s=i(a),u=n(99);s.default.registerHelper("lint","graphql",function(e,t,n){var i=t.schema;if(!i)return[];try{var a=(0,u.parse)(e),l=o((0,u.validate)(i,a),function(e){return r(n,e,"error","validation")}),c=u.findDeprecatedUsages?o((0,u.findDeprecatedUsages)(i,a),function(e){return r(n,e,"warning","deprecation")}):[];return l.concat(c)}catch(e){var d=e.locations[0],h=s.default.Pos(d.line-1,d.column),f=n.getTokenAt(h);return[{message:e.message,severity:"error",type:"syntax",from:s.default.Pos(d.line-1,f.start),to:s.default.Pos(d.line-1,f.end)}]}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=e.levels,i=n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel;return i*this.config.indentUnit}var o=n(19),a=i(o),s=n(254),u=i(s),l=n(251);a.default.defineMode("graphql",function(e){var t=(0,u.default)({eatWhitespace:function(e){return e.eatWhile(l.isIgnored)},LexRules:l.LexRules,ParseRules:l.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:r,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}})},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t){n(this,e),this._start=0,this._pos=0,this._sourceText=t}return e.prototype.getStartOfToken=function(){return this._start},e.prototype.getCurrentPosition=function(){return this._pos},e.prototype._testNextCharacter=function(e){var t=this._sourceText.charAt(this._pos);return"string"==typeof e?t===e:e.test?e.test(t):e(t)},e.prototype.eol=function(){return this._sourceText.length===this._pos},e.prototype.sol=function(){return 0===this._pos},e.prototype.peek=function(){return this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null},e.prototype.next=function(){var e=this._sourceText.charAt(this._pos);return this._pos++,e},e.prototype.eat=function(e){var t=this._testNextCharacter(e);if(t)return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},e.prototype.eatWhile=function(e){var t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},e.prototype.eatSpace=function(){return this.eatWhile(/[\s\u00a0]/)},e.prototype.skipToEnd=function(){this._pos=this._sourceText.length},e.prototype.skipTo=function(e){this._pos=e},e.prototype.match=function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],r=null,e=null;switch(typeof t){case"string":var o=new RegExp(t,i?"i":"");e=o.test(this._sourceText.substr(this._pos,t.length)),r=t;break;case"object":case"function":e=this._sourceText.slice(this._pos).match(t),r=e&&e[0]}return!(!e||"string"!=typeof t&&0!==e.index)&&(n&&(this._start=this._pos,this._pos+=r.length),e)},e.prototype.backUp=function(e){this._pos-=e},e.prototype.column=function(){return this._pos},e.prototype.indentation=function(){var e=this._sourceText.match(/\s*/),t=0;if(e&&0===e.index)for(var n=e[0],i=0;n.length>i;)9===n.charCodeAt(i)?t+=2:t++,i++;return t},e.prototype.current=function(){return this._sourceText.slice(this._start,this._pos)},e}();t.default=i},function(e,t){"use strict";function n(e){return{ofRule:e}}function i(e,t){return{ofRule:e,isList:!0,separator:t}}function r(e,t){var n=e.match;return e.match=function(e){return n(e)&&t.every(function(t){return!t.match(e)})},e}function o(e,t){return{style:t,match:function(t){return t.kind===e}}}function a(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.opt=n,t.list=i,t.butNot=r,t.t=o,t.p=a},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){var r="Invalid"===i.state.kind?i.state.prevState:i.state,c=r.kind,d=r.step,h=(0,f.default)(e,r);if("Document"===c)return(0,v.default)(n,i,[{text:"query"},{text:"mutation"},{text:"subscription"},{text:"fragment"},{text:"{"}]);if(("SelectionSet"===c||"Field"===c||"AliasedField"===c)&&h.parentType){var p=h.parentType.getFields?(0,g.default)(h.parentType.getFields()):[];return(0,u.isAbstractType)(h.parentType)&&p.push(l.TypeNameMetaFieldDef),h.parentType===e.getQueryType()&&p.push(l.SchemaMetaFieldDef,l.TypeMetaFieldDef),(0,v.default)(n,i,p.map(function(e){return{text:e.name,type:e.type,description:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}))}if("Arguments"===c||"Argument"===c&&0===d){var m=h.argDefs;if(m)return(0,v.default)(n,i,m.map(function(e){return{text:e.name,type:e.type,description:e.description}}))}if(("ObjectValue"===c||"ObjectField"===c&&0===d)&&h.objectFieldDefs){var y=(0,g.default)(h.objectFieldDefs);return(0,v.default)(n,i,y.map(function(e){return{text:e.name,type:e.type,description:e.description}}))}if("EnumValue"===c||"ListValue"===c&&1===d||"ObjectField"===c&&2===d||"Argument"===c&&2===d){var b=function(){var e=(0,u.getNamedType)(h.inputType);if(e instanceof u.GraphQLEnumType){var t=e.getValues(),r=(0,g.default)(t);return{v:(0,v.default)(n,i,r.map(function(t){return{text:t.name,type:e,description:t.description,isDeprecated:t.isDeprecated,deprecationReason:t.deprecationReason}}))}}if(e===u.GraphQLBoolean)return{v:(0,v.default)(n,i,[{text:"true",type:u.GraphQLBoolean,description:"Not false."},{text:"false",type:u.GraphQLBoolean,description:"Not true."}])}}();if("object"==typeof b)return b.v}if("TypeCondition"===c&&1===d||"NamedType"===c&&"TypeCondition"===r.prevState.kind){var _=void 0;if(h.parentType)(0,u.isAbstractType)(h.parentType)?!function(){var t=e.getPossibleTypes(h.parentType),n=Object.create(null);t.forEach(function(e){e.getInterfaces().forEach(function(e){n[e.name]=e})}),_=t.concat((0,g.default)(n))}():_=[h.parentType];else{var w=e.getTypeMap();_=(0,g.default)(w).filter(u.isCompositeType)}return(0,v.default)(n,i,_.map(function(e){return{text:e.name,description:e.description}}))}if("FragmentSpread"===c&&1===d){var x=function(){var r=e.getTypeMap(),o=s(i.state),l=a(t),c=l.filter(function(t){return r[t.typeCondition.name.value]&&!(o&&"FragmentDefinition"===o.kind&&o.name===t.name.value)&&(0,u.doTypesOverlap)(e,h.parentType,r[t.typeCondition.name.value])});return{v:(0,v.default)(n,i,c.map(function(e){return{text:e.name.value,type:r[e.typeCondition.name.value],description:"fragment "+e.name.value+" on "+e.typeCondition.name.value}}))}}();if("object"==typeof x)return x.v}if("VariableDefinition"===c&&2===d||"ListType"===c&&1===d||"NamedType"===c&&("VariableDefinition"===r.prevState.kind||"ListType"===r.prevState.kind)){var T=e.getTypeMap(),E=(0,g.default)(T).filter(u.isInputType);return(0,v.default)(n,i,E.map(function(e){return{text:e.name,description:e.description}}))}if("Directive"===c){var C=e.getDirectives().filter(function(e){return o(r.prevState.kind,e)});return(0,v.default)(n,i,C.map(function(e){return{text:e.name,description:e.description}}))}}function o(e,t){var n=t.locations;switch(e){case"Query":return n.indexOf("QUERY")!==-1;case"Mutation":return n.indexOf("MUTATION")!==-1;case"Subscription":return n.indexOf("SUBSCRIPTION")!==-1;case"Field":case"AliasedField":return n.indexOf("FIELD")!==-1;case"FragmentDefinition":return n.indexOf("FRAGMENT_DEFINITION")!==-1;case"FragmentSpread":return n.indexOf("FRAGMENT_SPREAD")!==-1;case"InlineFragment":return n.indexOf("INLINE_FRAGMENT")!==-1}return!1}function a(e){var t=[];return(0,b.default)(e,{eatWhitespace:function(e){return e.eatWhile(_.isIgnored)},LexRules:_.LexRules,ParseRules:_.ParseRules},function(e,n){"FragmentDefinition"===n.kind&&n.name&&n.type&&t.push({kind:"FragmentDefinition",name:{kind:"Name",value:n.name},typeCondition:{kind:"NamedType",name:{kind:"Name",value:n.type}}})}),t}function s(e){var t=void 0;return(0,d.default)(e,function(e){switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var u=n(99),l=n(42),c=n(253),d=i(c),h=n(173),f=i(h),p=n(485),v=i(p),m=n(488),g=i(m),y=n(489),b=i(y),_=n(251)},function(e,t){"use strict";function n(e,t,n){var r=i(n,o(t.string));if(r){var a=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,column:a},to:{line:e.line,column:t.end}}}}function i(e,t){if(!t)return r(e,function(e){return!e.isDeprecated});var n=e.map(function(e){return{proximity:a(o(e.text),t),entry:e}}),i=r(r(n,function(e){return e.proximity<=2}),function(e){return!e.entry.isDeprecated}),s=i.sort(function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length});return s.map(function(e){return e.entry})}function r(e,t){var n=e.filter(t);return 0===n.length?e:n}function o(e){return e.toLowerCase().replace(/\W/g,"")}function a(e,t){var n=s(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function s(e,t){var n=void 0,i=void 0,r=[],o=e.length,a=t.length;for(n=0;n<=o;n++)r[n]=[n];for(i=1;i<=a;i++)r[0][i]=i;for(n=1;n<=o;n++)for(i=1;i<=a;i++){var s=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+s),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+s))}return r[o][a]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function o(e){var t=e.state.info.options;return t&&t.hoverTime||500}function a(e,t){var n=e.state.info,i=t.target||t.srcElement;if("SPAN"===i.nodeName&&void 0===n.hoverTimeout){var r=i.getBoundingClientRect(),a=o(e);n.hoverTimeout=setTimeout(d,a);var u=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(d,a)},l=function t(){c.default.off(document,"mousemove",u),c.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},d=function(){c.default.off(document,"mousemove",u),c.default.off(e.getWrapperElement(),"mouseout",l),n.hoverTimeout=void 0,s(e,r)};c.default.on(document,"mousemove",u),c.default.on(e.getWrapperElement(),"mouseout",l)}}function s(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),i=e.state.info,r=i.options,o=r.render||e.getHelper(n,"info");if(o){var a=e.getTokenAt(n,!0);if(a){var s=o(a,r,e);s&&u(e,t,s)}}}function u(e,t,n){var i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(n),document.body.appendChild(i);var r=i.getBoundingClientRect(),o=i.currentStyle||window.getComputedStyle(i),a=r.right-r.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),s=r.bottom-r.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom),u=t.bottom;s>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(u=t.top-s),u<0&&(u=t.bottom);var l=Math.max(0,window.innerWidth-a-15);l>t.left&&(l=t.left),i.style.opacity=1,i.style.top=u+"px",i.style.left=l+"px";var d=void 0,h=function(){clearTimeout(d)},f=function(){clearTimeout(d),d=setTimeout(p,200)},p=function(){c.default.off(i,"mouseover",h),c.default.off(i,"mouseout",f),c.default.off(e.getWrapperElement(),"mouseout",f),i.style.opacity?(i.style.opacity=0,setTimeout(function(){i.parentNode&&i.parentNode.removeChild(i)},600)):i.parentNode&&i.parentNode.removeChild(i)};c.default.on(i,"mouseover",h),c.default.on(i,"mouseout",f),c.default.on(e.getWrapperElement(),"mouseout",f)}var l=n(19),c=i(l);c.default.defineOption("info",!1,function(e,t,n){if(n&&n!==c.default.Init){var i=e.state.info.onMouseOver;c.default.off(e.getWrapperElement(),"mouseover",i),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var o=e.state.info=r(t);o.onMouseOver=a.bind(null,e),c.default.on(e.getWrapperElement(),"mouseover",o.onMouseOver)}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=t.target||t.srcElement;if("SPAN"===n.nodeName){var i=n.getBoundingClientRect(),r={left:(i.left+i.right)/2,top:(i.top+i.bottom)/2};e.state.jump.cursor=r,e.state.jump.isHoldingModifier&&u(e)}}function o(e){return!e.state.jump.isHoldingModifier&&e.state.jump.cursor?void(e.state.jump.cursor=null):void(e.state.jump.isHoldingModifier&&e.state.jump.marker&&l(e))}function a(e,t){if(!e.state.jump.isHoldingModifier&&s(t.key)){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&u(e);var n=function n(o){o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&l(e),d.default.off(document,"keyup",n),d.default.off(document,"click",i),e.off("mousedown",r))},i=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},r=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};d.default.on(document,"keyup",n),d.default.on(document,"click",i),e.on("mousedown",r)}}function s(e){return e===(h?"Meta":"Control")}function u(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),i=e.getTokenAt(n,!0),r=e.state.jump.options,o=r.getDestination||e.getHelper(n,"jump");if(o){var a=o(i,r,e);if(a){var s=e.markText({line:n.line,ch:i.start},{line:n.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=s,e.state.jump.destination=a}}}}function l(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}var c=n(19),d=i(c);d.default.defineOption("jump",!1,function(e,t,n){if(n&&n!==d.default.Init){var i=e.state.jump.onMouseOver;d.default.off(e.getWrapperElement(),"mouseover",i);var s=e.state.jump.onMouseOut;d.default.off(e.getWrapperElement(),"mouseout",s),d.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var u=e.state.jump={options:t,onMouseOver:r.bind(null,e),onMouseOut:o.bind(null,e),onKeyDown:a.bind(null,e)};d.default.on(e.getWrapperElement(),"mouseover",u.onMouseOver),d.default.on(e.getWrapperElement(),"mouseout",u.onMouseOut),d.default.on(document,"keydown",u.onKeyDown)}});var h=navigator&&navigator.appVersion.indexOf("Mac")!==-1},function(e,t){"use strict";function n(e){for(var t=Object.keys(e),n=t.length,i=new Array(n),r=0;r=0;s--){var u=i[s].from(),l=i[s].to();u.line>=n||(l.line>=n&&(l=a(n,0)),n=u.line,null==o?t.uncomment(u,l,e)?o="un":(t.lineComment(u,l,e),o="line"):"un"==o?t.uncomment(u,l,e):t.lineComment(u,l,e))}}),e.defineExtension("lineComment",function(e,s,u){u||(u=r);var l=this,c=i(l,e),d=l.getLine(e.line);if(null!=d&&!n(l,e,d)){var h=u.lineComment||c.lineComment;if(!h)return void((u.blockCommentStart||c.blockCommentStart)&&(u.fullLines=!0,l.blockComment(e,s,u)));var f=Math.min(0!=s.ch||s.line==e.line?s.line+1:s.line,l.lastLine()+1),p=null==u.padding?" ":u.padding,v=u.commentBlankLines||e.line==s.line;l.operation(function(){if(u.indent){for(var n=null,i=e.line;is.length)&&(n=s)}for(var i=e.line;id||s.operation(function(){if(0!=n.fullLines){var i=o.test(s.getLine(d));s.replaceRange(h+c,a(d)),s.replaceRange(l+h,a(e.line,0));var r=n.blockCommentLead||u.blockCommentLead;if(null!=r)for(var f=e.line+1;f<=d;++f)(f!=d||i)&&s.replaceRange(r+h,a(f,0))}else s.replaceRange(c,t),s.replaceRange(l,e)})}}),e.defineExtension("uncomment",function(e,t,n){n||(n=r);var s,u=this,l=i(u,e),c=Math.min(0!=t.ch||t.line==e.line?t.line:t.line-1,u.lastLine()),d=Math.min(e.line,c),h=n.lineComment||l.lineComment,f=[],p=null==n.padding?" ":n.padding;e:if(h){for(var v=d;v<=c;++v){var m=u.getLine(v),g=m.indexOf(h);if(g>-1&&!/comment/.test(u.getTokenTypeAt(a(v,g+1)))&&(g=-1),g==-1&&o.test(m))break e;if(g>-1&&o.test(m.slice(0,g)))break e;f.push(m)}if(u.operation(function(){for(var e=d;e<=c;++e){var t=f[e-d],n=t.indexOf(h),i=n+h.length;n<0||(t.slice(i,i+p.length)==p&&(i+=p.length),s=!0,u.replaceRange("",a(e,n),a(e,i)))}}),s)return!0}var y=n.blockCommentStart||l.blockCommentStart,b=n.blockCommentEnd||l.blockCommentEnd;if(!y||!b)return!1;var _=n.blockCommentLead||l.blockCommentLead,w=u.getLine(d),x=w.indexOf(y);if(x==-1)return!1;var T=c==d?w:u.getLine(c),E=T.indexOf(b,c==d?x+y.length:0);E==-1&&d!=c&&(T=u.getLine(--c),E=T.indexOf(b));var C=a(d,x+1),O=a(c,E+1);if(E==-1||!/comment/.test(u.getTokenTypeAt(C))||!/comment/.test(u.getTokenTypeAt(O))||u.getRange(C,O,"\n").indexOf(b)>-1)return!1;var S=w.lastIndexOf(y,e.ch),k=S==-1?-1:w.slice(0,e.ch).indexOf(b,S+y.length);if(S!=-1&&k!=-1&&k+b.length!=e.ch)return!1;k=T.indexOf(b,t.ch);var M=T.slice(t.ch).lastIndexOf(y,k-t.ch);return S=k==-1||M==-1?-1:t.ch+M,(k==-1||S==-1||S==t.ch)&&(u.operation(function(){u.replaceRange("",a(c,E-(p&&T.slice(E-p.length,E)==p?p.length:0)),a(c,E+b.length));var e=x+y.length;if(p&&w.slice(e,e+p.length)==p&&(e+=p.length),u.replaceRange("",a(d,x),a(d,e)),_)for(var t=d+1;t<=c;++t){var n=u.getLine(t),i=n.indexOf(_);if(i!=-1&&!o.test(n.slice(0,i))){var r=i+_.length;p&&n.slice(r,r+p.length)==p&&(r+=p.length),u.replaceRange("",a(t,i),a(t,r))}}}),!0)})})},function(e,t,n){!function(e){e(n(19))}(function(e){function t(e,t){return"pairs"==t&&"string"==typeof e?e:"object"==typeof e&&null!=e[t]?e[t]:h[t]}function n(e){return function(t){return s(t,e)}}function i(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var n=e.getModeAt(e.getCursor());return n.closeBrackets||t}function r(n){var r=i(n);if(!r||n.getOption("disableInput"))return e.Pass;for(var o=t(r,"pairs"),a=n.listSelections(),s=0;s=0;s--){var c=a[s].head;n.replaceRange("",f(c.line,c.ch-1),f(c.line,c.ch+1),"+delete")}}function o(n){var r=i(n),o=r&&t(r,"explode");if(!o||n.getOption("disableInput"))return e.Pass;for(var a=n.listSelections(),s=0;s0; -return{anchor:new f(t.anchor.line,t.anchor.ch+(n?-1:1)),head:new f(t.head.line,t.head.ch+(n?1:-1))}}function s(n,r){var o=i(n);if(!o||n.getOption("disableInput"))return e.Pass;var s=t(o,"pairs"),l=s.indexOf(r);if(l==-1)return e.Pass;for(var h,p=t(o,"triples"),v=s.charAt(l+1)==r,m=n.listSelections(),g=l%2==0,y=0;y1&&p.indexOf(r)>=0&&n.getRange(f(w.line,w.ch-2),w)==r+r&&(w.ch<=2||n.getRange(f(w.line,w.ch-3),f(w.line,w.ch-2))!=r))b="addFour";else if(v){if(e.isWordChar(x)||!c(n,w,r))return e.Pass;b="both"}else{if(!g||n.getLine(w.line).length!=w.ch&&!u(x,s)&&!/\s/.test(x))return e.Pass;b="both"}else b=v&&d(n,w)?"both":p.indexOf(r)>=0&&n.getRange(w,f(w.line,w.ch+3))==r+r+r?"skipThree":"skip";if(h){if(h!=b)return e.Pass}else h=b}var T=l%2?s.charAt(l-1):r,E=l%2?r:s.charAt(l+1);n.operation(function(){if("skip"==h)n.execCommand("goCharRight");else if("skipThree"==h)for(var e=0;e<3;e++)n.execCommand("goCharRight");else if("surround"==h){for(var t=n.getSelections(),e=0;e-1&&n%2==1}function l(e,t){var n=e.getRange(f(t.line,t.ch-1),f(t.line,t.ch+1));return 2==n.length?n:null}function c(t,n,i){var r=t.getLine(n.line),o=t.getTokenAt(n);if(/\bstring2?\b/.test(o.type)||d(t,n))return!1;var a=new e.StringStream(r.slice(0,n.ch)+i+r.slice(n.ch),4);for(a.pos=a.start=o.start;;){var s=t.getMode().token(a,o.state);if(a.pos>=n.ch+1)return/\bstring2?\b/.test(s);a.start=a.pos}}function d(e,t){var n=e.getTokenAt(f(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch}var h={pairs:"()[]{}''\"\"",triples:"",explode:"[]{}"},f=e.Pos;e.defineOption("autoCloseBrackets",!1,function(t,n,i){i&&i!=e.Init&&(t.removeKeyMap(v),t.state.closeBrackets=null),n&&(t.state.closeBrackets=n,t.addKeyMap(v))});for(var p=h.pairs+"`",v={Backspace:r,Enter:o},m=0;mt.lastLine())return null;var i=t.getTokenAt(e.Pos(n,1));if(/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(n,i.end+1))),"keyword"!=i.type||"import"!=i.string)return null;for(var r=n,o=Math.min(t.lastLine(),n+10);r<=o;++r){var a=t.getLine(r),s=a.indexOf(";");if(s!=-1)return{startCh:i.end,end:e.Pos(r,s)}}}var r,o=n.line,a=i(o);if(!a||i(o-1)||(r=i(o-2))&&r.end.line==o-1)return null;for(var s=a.end;;){var u=i(s.line+1);if(null==u)break;s=u.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}}),e.registerHelper("fold","include",function(t,n){function i(n){if(nt.lastLine())return null;var i=t.getTokenAt(e.Pos(n,1));return/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(n,i.end+1))),"meta"==i.type&&"#include"==i.string.slice(0,8)?i.start+8:void 0}var r=n.line,o=i(r);if(null==o||null!=i(r-1))return null;for(var a=r;;){var s=i(a+1);if(null==s)break;++a}return{from:e.Pos(r,o+1),to:t.clipPos(e.Pos(a))}})})},function(e,t,n){!function(e){e(n(19),n(256))}(function(e){"use strict";function t(e){this.options=e,this.from=this.to=0}function n(e){return e===!0&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function i(e,t){for(var n=e.findMarks(d(t,0),d(t+1,0)),i=0;i=s&&(n=r(o.indicatorOpen))}e.setGutterMarker(t,o.gutter,n),++a})}function a(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function s(e,t,n){var r=e.state.foldGutter;if(r){var o=r.options;if(n==o.gutter){var a=i(e,t);a?a.clear():e.foldCode(d(t,0),o.rangeFinder)}}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},n.foldOnChangeTimeSpan||600)}}function l(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?a(e):e.operation(function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function c(e,t){var n=e.state.foldGutter;if(n){var i=t.line;i>=n.from&&i0&&t.to.ch-t.from.ch!=n.to.ch-n.from.ch}function i(e,t,n){var i=e.options.hintOptions,r={};for(var o in v)r[o]=v[o];if(i)for(var o in i)void 0!==i[o]&&(r[o]=i[o]);if(n)for(var o in n)void 0!==n[o]&&(r[o]=n[o]);return r.hint.resolve&&(r.hint=r.hint.resolve(e,t)),r}function r(e){return"string"==typeof e?e:e.text}function o(e,t){function n(e,n){var r;r="string"!=typeof n?function(e){return n(e,t)}:i.hasOwnProperty(n)?i[n]:n,o[e]=r}var i={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(-t.menuSize()+1,!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},r=e.options.customKeys,o=r?{}:i;if(r)for(var a in r)r.hasOwnProperty(a)&&n(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&n(a,s[a]);return o}function a(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function s(t,n){this.completion=t,this.data=n,this.picked=!1;var i=this,s=t.cm,u=this.hints=document.createElement("ul");u.className="CodeMirror-hints",this.selectedHint=n.selectedHint||0;for(var l=n.list,c=0;cu.clientHeight+1,C=s.getScrollInfo();if(T>0){var O=x.bottom-x.top,S=m.top-(m.bottom-x.top);if(S-O>0)u.style.top=(y=m.top-O)+"px",b=!1;else if(O>w){u.style.height=w-5+"px",u.style.top=(y=m.bottom-x.top)+"px";var k=s.getCursor();n.from.ch!=k.ch&&(m=s.cursorCoords(k),u.style.left=(g=m.left)+"px",x=u.getBoundingClientRect())}}var M=x.right-_;if(M>0&&(x.right-x.left>_&&(u.style.width=_-5+"px",M-=x.right-x.left-_),u.style.left=(g=m.left-M)+"px"),E)for(var P=u.firstChild;P;P=P.nextSibling)P.style.paddingRight=s.display.nativeBarWidth+"px";if(s.addKeyMap(this.keyMap=o(t,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:l.length,close:function(){t.close()},pick:function(){i.pick()},data:n})),t.options.closeOnUnfocus){var N;s.on("blur",this.onBlur=function(){N=setTimeout(function(){t.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(N)})}return s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),n=s.getWrapperElement().getBoundingClientRect(),i=y+C.top-e.top,r=i-(window.pageYOffset||(document.documentElement||document.body).scrollTop);return b||(r+=u.offsetHeight),r<=n.top||r>=n.bottom?t.close():(u.style.top=i+"px",void(u.style.left=g+C.left-e.left+"px"))}),e.on(u,"dblclick",function(e){var t=a(u,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())}),e.on(u,"click",function(e){var n=a(u,e.target||e.srcElement);n&&null!=n.hintId&&(i.changeActive(n.hintId),t.options.completeOnSingleClick&&i.pick())}),e.on(u,"mousedown",function(){setTimeout(function(){s.focus()},20)}),e.signal(n,"select",l[0],u.firstChild),!0}function u(e,t){if(!e.somethingSelected())return t;for(var n=[],i=0;i0?t(e):i(r+1)})}var o=u(e,r);i(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:i})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}var d="CodeMirror-hint",h="CodeMirror-hint-active";e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var i={hint:t};if(n)for(var r in n)i[r]=n[r];return e.showHint(i)},e.defineExtension("showHint",function(n){n=i(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var o=0;o=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i.className=i.className.replace(" "+h,""),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+h,i.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:c}),e.registerHelper("hint","fromList",function(t,n){var i=t.getCursor(),r=t.getTokenAt(i),o=e.Pos(i.line,r.end);if(r.string&&/\w/.test(r.string[r.string.length-1]))var a=r.string,s=e.Pos(i.line,r.start);else var a="",s=o;for(var u=[],l=0;l,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)})},function(e,t,n){!function(e){e(n(19))}(function(e){"use strict";function t(t,n){function i(t){return r.parentNode?(r.style.top=Math.max(0,t.clientY-r.offsetHeight-5)+"px",void(r.style.left=t.clientX+5+"px")):e.off(document,"mousemove",i)}var r=document.createElement("div");return r.className="CodeMirror-lint-tooltip",r.appendChild(n.cloneNode(!0)),document.body.appendChild(r),e.on(document,"mousemove",i),i(t),null!=r.style.opacity&&(r.style.opacity=1),r}function n(e){e.parentNode&&e.parentNode.removeChild(e)}function i(e){e.parentNode&&(null==e.style.opacity&&n(e),e.style.opacity=0,setTimeout(function(){n(e)},600))}function r(n,r,o){function a(){e.off(o,"mouseout",a),s&&(i(s),s=null)}var s=t(n,r),u=setInterval(function(){if(s)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){a();break}}if(!s)return clearInterval(u)},400);e.on(o,"mouseout",a)}function o(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){g(e,t)},this.waitingFor=0}function a(e,t){return t instanceof Function?{getAnnotations:t}:(t&&t!==!0||(t={}),t)}function s(e){var t=e.state.lint;t.hasGutter&&e.clearGutter(y);for(var n=0;n1,n.options.tooltips))}}i.onUpdateLinting&&i.onUpdateLinting(t,r,e)}function v(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){f(e)},t.options.delay||500))}function m(e,t){for(var n=t.target||t.srcElement,i=document.createDocumentFragment(),o=0;o-1)return c=n(u,l,c),{from:i(o.line,c),to:i(o.line,c+a.length)}}else{var u=e.getLine(o.line).slice(o.ch),l=s(u),c=l.indexOf(t);if(c>-1)return c=n(u,l,c)+o.ch,{from:i(o.line,c),to:i(o.line,c+a.length)}}}:this.matches=function(){};else{var l=a.split("\n");this.matches=function(t,n){var r=u.length-1;if(t){if(n.line-(u.length-1)=1;--c,--a)if(u[c]!=s(e.getLine(a)))return;var d=e.getLine(a),h=d.length-l[0].length;if(s(d.slice(h))!=u[0])return;return{from:i(a,h),to:o}}if(!(n.line+(u.length-1)>e.lastLine())){var d=e.getLine(n.line),h=d.length-l[0].length;if(s(d.slice(h))==u[0]){for(var f=i(n.line,h),a=n.line+1,c=1;cn))return i;--i}}}var i=e.Pos;t.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){function t(e){var t=i(e,0);return n.pos={from:t,to:t},n.atOccurrence=!1,!1}for(var n=this,r=this.doc.clipPos(e?this.pos.from:this.pos.to);;){if(this.pos=this.matches(e,r))return this.atOccurrence=!0,this.pos.match||!0;if(e){if(!r.line)return t(0);r=i(r.line-1,this.doc.getLine(r.line-1).length)}else{var o=this.doc.lineCount();if(r.line==o-1)return t(o);r=i(r.line+1,0)}}},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var r=e.splitLines(t);this.doc.replaceRange(r,this.pos.from,this.pos.to,n),this.pos.to=i(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,n,i){return new t(this.doc,e,n,i)}),e.defineDocExtension("getSearchCursor",function(e,n,i){return new t(this,e,n,i)}),e.defineExtension("selectMatches",function(t,n){for(var i=[],r=this.getSearchCursor(t,this.getCursor("from"),n);r.findNext()&&!(e.cmpPos(r.to(),this.getCursor("to"))>0);)i.push({anchor:r.from(),head:r.to()});i.length&&this.setSelections(i,0)})})},function(e,t,n){!function(e){e(n(19),n(496),n(255))}(function(e){"use strict";function t(t,n,i){if(i<0&&0==n.ch)return t.clipPos(f(n.line-1));var r=t.getLine(n.line);if(i>0&&n.ch>=r.length)return t.clipPos(f(n.line+1,0));for(var o,a="start",s=n.ch,u=i<0?0:r.length,l=0;s!=u;s+=i,l++){var c=r.charAt(i<0?s-1:s),d="_"!=c&&e.isWordChar(c)?"w":"o";if("w"==d&&c.toUpperCase()==c&&(d="W"),"start"==a)"o"!=d&&(a="in",o=d);else if("in"==a&&o!=d){if("w"==o&&"W"==d&&i<0&&s--,"W"==o&&"w"==d&&i>0){o="w";continue}break}}return f(n.line,s)}function n(e,n){e.extendSelectionsBy(function(i){return e.display.shift||e.doc.extend||i.empty()?t(e.doc,i.head,n):n<0?i.from():i.to()})}function i(t,n){return t.isReadOnly()?e.Pass:(t.operation(function(){for(var e=t.listSelections().length,i=[],r=-1,o=0;o=0;s--){var u=i[o[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=r(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}})}function l(t){var n=t.getCursor("from"),i=t.getCursor("to");if(0==e.cmpPos(n,i)){var o=r(t,n);if(!o.word)return;n=o.from,i=o.to}return{from:n,to:i,query:t.getRange(n,i),word:o}}function c(e,t){var n=l(e);if(n){var i=n.query,r=e.getSearchCursor(i,t?n.to:n.from);(t?r.findNext():r.findPrevious())?e.setSelection(r.from(),r.to()):(r=e.getSearchCursor(i,t?f(e.firstLine(),0):e.clipPos(f(e.lastLine()))),(t?r.findNext():r.findPrevious())?e.setSelection(r.from(),r.to()):n.word&&e.setSelection(n.from,n.to))}}var d=e.keyMap.sublime={fallthrough:"default"},h=e.commands,f=e.Pos,p=e.keyMap.default==e.keyMap.macDefault,v=p?"Cmd-":"Ctrl-",m=p?"Ctrl-":"Alt-";h[d[m+"Left"]="goSubwordLeft"]=function(e){n(e,-1)},h[d[m+"Right"]="goSubwordRight"]=function(e){n(e,1)},p&&(d["Cmd-Left"]="goLineStartSmart");var g=p?"Ctrl-Alt-":"Ctrl-";h[d[g+"Up"]="scrollLineUp"]=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},h[d[g+"Down"]="scrollLineDown"]=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},h[d["Shift-"+v+"L"]="splitSelectionByLine"]=function(e){for(var t=e.listSelections(),n=[],i=0;ir.line&&a==o.line&&0==o.ch||n.push({anchor:a==r.line?r:f(a,0),head:a==o.line?o:f(a)});e.setSelections(n,0)},d["Shift-Tab"]="indentLess",h[d.Esc="singleSelectionTop"]=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},h[d[v+"L"]="selectLine"]=function(e){for(var t=e.listSelections(),n=[],i=0;ir?i.push(u,l):i.length&&(i[i.length-1]=l),r=l}t.operation(function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+a,f(t.lastLine()),null,"+swapLine"):t.replaceRange(a+"\n",f(r,0),null,"+swapLine")}t.setSelections(o),t.scrollIntoView()})},h[d[b+"Down"]="swapLineDown"]=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),i=[],r=t.lastLine()+1,o=n.length-1;o>=0;o--){var a=n[o],s=a.to().line+1,u=a.from().line;0!=a.to().ch||a.empty()||s--,s=0;e-=2){var n=i[e],r=i[e+1],o=t.getLine(n);n==t.lastLine()?t.replaceRange("",f(n-1),f(n),"+swapLine"):t.replaceRange("",f(n,0),f(n+1,0),"+swapLine"),t.replaceRange(o+"\n",f(r,0),null,"+swapLine")}t.scrollIntoView()})},h[d[v+"/"]="toggleCommentIndented"]=function(e){e.toggleComment({indent:!0})},h[d[v+"J"]="joinLines"]=function(e){for(var t=e.listSelections(),n=[],i=0;i=0;r--){var o=n[r].head,a=t.getRange({line:o.line,ch:0},o),s=e.countColumn(a,null,t.getOption("tabSize")),u=t.findPosH(o,-1,"char",!1);if(a&&!/\S/.test(a)&&s%i==0){var l=new f(o.line,e.findColumn(a,s-i,i));l.ch!=o.ch&&(u=l)}t.replaceRange("",u,o,"+delete")}})},h[d[_+v+"K"]="delLineRight"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange("",t[n].anchor,f(t[n].to().line),"+delete");e.scrollIntoView(); -})},h[d[_+v+"U"]="upcaseAtCursor"]=function(e){u(e,function(e){return e.toUpperCase()})},h[d[_+v+"L"]="downcaseAtCursor"]=function(e){u(e,function(e){return e.toLowerCase()})},h[d[_+v+"Space"]="setSublimeMark"]=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},h[d[_+v+"A"]="selectToSublimeMark"]=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},h[d[_+v+"W"]="deleteToSublimeMark"]=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var i=t.getCursor(),r=n;if(e.cmpPos(i,r)>0){var o=r;r=i,i=o}t.state.sublimeKilled=t.getRange(i,r),t.replaceRange("",i,r)}},h[d[_+v+"X"]="swapWithSublimeMark"]=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},h[d[_+v+"Y"]="sublimeYank"]=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},d[_+v+"G"]="clearBookmarks",h[d[_+v+"C"]="showInCenter"]=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)};var w=p?"Ctrl-Shift-":"Ctrl-Alt-";h[d[w+"Up"]="selectLinesUpward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;ne.firstLine()&&e.addSelection(f(i.head.line-1,i.head.ch))}})},h[d[w+"Down"]="selectLinesDownward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;n":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?h[e]:null}var r=n(23),o=n(9),a=r.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],l=[1,"","
"],c=[3,"","
"],d=[1,'',""],h={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(e){h[e]=d,s[e]=!0}),e.exports=i},function(e,t){"use strict";function n(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){"use strict";function n(e){return e.replace(i,"-$1").toLowerCase()}var i=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function i(e){return r(e).replace(o,"-ms-")}var r=n(531),o=/^ms-/;e.exports=i},function(e,t){"use strict";function n(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t,n){"use strict";function i(e){return r(e)&&3==e.nodeType}var r=n(533);e.exports=i},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){e.exports=n.p+"static/media/logo.d93b077d.svg"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return(0,a.default)(e,"Received null or undefined error."),{message:e.message,locations:e.locations,path:e.path}}Object.defineProperty(t,"__esModule",{value:!0}),t.formatError=r;var o=n(20),a=i(o)},function(e,t,n){"use strict";function i(e,t,n){if(e&&e.path)return e;var i=e?e.message||String(e):"An unknown error occurred.";return new r.GraphQLError(i,e&&e.nodes||t,e&&e.source,e&&e.positions,n,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=i;var r=n(98)},function(e,t,n){"use strict";function i(e,t,n){var i=(0,a.getLocation)(e,t),o=new s.GraphQLError("Syntax Error "+e.name+" ("+i.line+":"+i.column+") "+n+"\n\n"+r(e,i),void 0,e,[t]);return o}function r(e,t){var n=t.line,i=(n-1).toString(),r=n.toString(),a=(n+1).toString(),s=a.length,u=e.body.split(/\r\n|[\n\r]/g);return(n>=2?o(s,i)+": "+u[n-2]+"\n":"")+o(s,r)+": "+u[n-1]+"\n"+Array(2+s+t.column).join(" ")+"^\n"+(n0?{errors:f}:(0,s.execute)(e,h,n,i,u,l))}).then(void 0,function(e){return{errors:[e]}})}Object.defineProperty(t,"__esModule",{value:!0}),t.graphql=i;var r=n(183),o=n(124),a=n(272),s=n(267)},function(e,t,n){"use strict";function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=t.visitWithTypeInfo=t.visitInParallel=t.visit=t.Source=t.print=t.parseType=t.parseValue=t.parse=t.TokenKind=t.createLexer=t.Kind=t.getLocation=void 0;var r=n(182);Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return r.getLocation}});var o=n(181);Object.defineProperty(t,"createLexer",{enumerable:!0,get:function(){return o.createLexer}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return o.TokenKind}});var a=n(124);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return a.parseValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return a.parseType}});var s=n(36);Object.defineProperty(t,"print",{enumerable:!0,get:function(){return s.print}});var u=n(183);Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return u.Source}});var l=n(101);Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return l.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return l.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return l.visitWithTypeInfo}}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return l.BREAK}});var c=n(18),d=i(c);t.Kind=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(55);Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return i.GraphQLSchema}});var r=n(13);Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return r.isType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return r.isInputType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return r.isOutputType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return r.isLeafType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return r.isCompositeType}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return r.isAbstractType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return r.isNamedType}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return r.assertType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return r.assertInputType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return r.assertOutputType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return r.assertLeafType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return r.assertCompositeType}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return r.assertAbstractType}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return r.assertNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return r.getNullableType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return r.getNamedType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return r.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return r.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return r.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return r.GraphQLUnionType}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return r.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return r.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return r.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return r.GraphQLNonNull}});var o=n(41);Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return o.DirectiveLocation}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}});var a=n(54);Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}});var s=n(42);Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return s.TypeKind}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return s.__Schema}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return s.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return s.__DirectiveLocation}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return s.__Type}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return s.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return s.__InputValue}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return s.__EnumValue}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return s.__TypeKind}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return s.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return s.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return s.TypeNameMetaFieldDef}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){function t(e){if(e.kind===m.TypeKind.LIST){var i=e.ofType;if(!i)throw new Error("Decorated type deeper than introspection query.");return new v.GraphQLList(t(i))}if(e.kind===m.TypeKind.NON_NULL){var r=e.ofType;if(!r)throw new Error("Decorated type deeper than introspection query.");var o=t(r);return(0,s.default)(!(o instanceof v.GraphQLNonNull),"No nesting nonnull."),new v.GraphQLNonNull(o)}return n(e.name)}function n(e){if(N[e])return N[e];var t=P[e];if(!t)throw new Error("Invalid or incomplete schema, unknown type: "+e+". Ensure that a full introspection query is used in order to build a client schema.");var n=c(t);return N[e]=n,n}function i(e){var n=t(e);return(0,s.default)((0,v.isInputType)(n),"Introspection must provide input type for arguments."),n}function r(e){var n=t(e);return(0,s.default)((0,v.isOutputType)(n),"Introspection must provide output type for fields."),n}function a(e){var n=t(e);return(0,s.default)(n instanceof v.GraphQLObjectType,"Introspection must provide object type for possibleTypes."),n}function u(e){var n=t(e);return(0,s.default)(n instanceof v.GraphQLInterfaceType,"Introspection must provide interface type for interfaces."),n}function c(e){switch(e.kind){case m.TypeKind.SCALAR:return b(e);case m.TypeKind.OBJECT:return _(e);case m.TypeKind.INTERFACE:return w(e);case m.TypeKind.UNION:return x(e);case m.TypeKind.ENUM:return T(e);case m.TypeKind.INPUT_OBJECT:return E(e);default:throw new Error("Invalid or incomplete schema, unknown kind: "+e.kind+". Ensure that a full introspection query is used in order to build a client schema.")}}function b(e){return new v.GraphQLScalarType({name:e.name,description:e.description,serialize:function(e){return e},parseValue:function(){return!1},parseLiteral:function(){return!1}})}function _(e){return new v.GraphQLObjectType({name:e.name,description:e.description,interfaces:e.interfaces.map(u),fields:function(){return C(e)}})}function w(e){return new v.GraphQLInterfaceType({name:e.name,description:e.description,fields:function(){return C(e)},resolveType:o})}function x(e){return new v.GraphQLUnionType({name:e.name,description:e.description,types:e.possibleTypes.map(a),resolveType:o})}function T(e){return new v.GraphQLEnumType({name:e.name,description:e.description,values:(0,d.default)(e.enumValues,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason}})})}function E(e){return new v.GraphQLInputObjectType({name:e.name,description:e.description,fields:function(){return O(e.inputFields)}})}function C(e){return(0,d.default)(e.fields,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason,type:r(e.type),args:O(e.args)}})}function O(e){return(0,d.default)(e,function(e){return e.name},S)}function S(e){var t=i(e.type),n=e.defaultValue?(0,h.valueFromAST)((0,f.parseValue)(e.defaultValue),t):void 0;return{name:e.name,description:e.description,type:t,defaultValue:n}}function k(e){var t=e.locations?e.locations.slice():[].concat(e.onField?[y.DirectiveLocation.FIELD]:[],e.onOperation?[y.DirectiveLocation.QUERY,y.DirectiveLocation.MUTATION,y.DirectiveLocation.SUBSCRIPTION]:[],e.onFragment?[y.DirectiveLocation.FRAGMENT_DEFINITION,y.DirectiveLocation.FRAGMENT_SPREAD,y.DirectiveLocation.INLINE_FRAGMENT]:[]);return new y.GraphQLDirective({name:e.name,description:e.description,locations:t,args:O(e.args)})}var M=e.__schema,P=(0,l.default)(M.types,function(e){return e.name}),N={String:g.GraphQLString,Int:g.GraphQLInt,Float:g.GraphQLFloat,Boolean:g.GraphQLBoolean,ID:g.GraphQLID,__Schema:m.__Schema,__Directive:m.__Directive,__DirectiveLocation:m.__DirectiveLocation,__Type:m.__Type,__Field:m.__Field,__InputValue:m.__InputValue,__EnumValue:m.__EnumValue,__TypeKind:m.__TypeKind},D=M.types.map(function(e){return n(e.name)}),I=a(M.queryType),L=M.mutationType?a(M.mutationType):null,A=M.subscriptionType?a(M.subscriptionType):null,R=M.directives?M.directives.map(k):[];return new p.GraphQLSchema({query:I,mutation:L,subscription:A,types:D,directives:R})}function o(){throw new Error("Client Schema cannot use Interface or Union types for execution.")}Object.defineProperty(t,"__esModule",{value:!0}),t.buildClientSchema=r;var a=n(20),s=i(a),u=n(77),l=i(u),c=n(178),d=i(c),h=n(102),f=n(124),p=n(55),v=n(13),m=n(42),g=n(54),y=n(41)},function(e,t){"use strict";function n(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:"";return 0===e.length?"":e.every(function(e){return!e.description})?"("+e.map(T).join(", ")+")":"(\n"+e.map(function(e,n){return O(e," "+t,!n)+" "+t+T(e)}).join("\n")+"\n"+t+")"}function T(e){var t=e.name+": "+String(e.type);return(0,I.default)(e.defaultValue)||(t+=" = "+(0,A.print)((0,L.astFromValue)(e.defaultValue,e.type))),t}function E(e){return O(e)+"directive @"+e.name+x(e.args)+" on "+e.locations.join(" | ")}function C(e){var t=e.deprecationReason;return(0,N.default)(t)?"":""===t||t===F.DEFAULT_DEPRECATION_REASON?" @deprecated":" @deprecated(reason: "+(0,A.print)((0,L.astFromValue)(t,j.GraphQLString))+")"}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e.description)return"";for(var i=e.description.split("\n"),r=t&&!n?"\n":"",o=0;o0&&e.reportError(new o.GraphQLError(i(t.name.value,n.type,(0,a.print)(t.value),r),[t.value]))}return!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.badValueMessage=i,t.ArgumentsOfCorrectType=r;var o=n(11),a=n(36),s=n(125)},function(e,t,n){"use strict";function i(e,t,n){return'Variable "$'+e+'" of type "'+String(t)+'" is required and will not use the default value. '+('Perhaps you meant to use type "'+String(n)+'".')}function r(e,t,n,i){var r=i?"\n"+i.join("\n"):"";return'Variable "$'+e+'" of type "'+String(t)+'" has invalid '+("default value "+n+"."+r)}function o(e){return{VariableDefinition:function(t){var n=t.variable.name.value,o=t.defaultValue,c=e.getInputType();if(c instanceof u.GraphQLNonNull&&o&&e.reportError(new a.GraphQLError(i(n,c,c.ofType),[o])),c&&o){var d=(0,l.isValidLiteralValue)(c,o);d&&d.length>0&&e.reportError(new a.GraphQLError(r(n,c,(0,s.print)(o),d),[o]))}return!1},SelectionSet:function(){return!1},FragmentDefinition:function(){return!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultForNonNullArgMessage=i,t.badValueForDefaultArgMessage=r,t.DefaultValuesOfCorrectType=o;var a=n(11),s=n(36),u=n(13),l=n(125)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){var r='Cannot query field "'+e+'" on type "'+t+'".';if(0!==n.length){var o=(0,h.default)(n);r+=" Did you mean to use an inline fragment on "+o+"?"}else 0!==i.length&&(r+=" Did you mean "+(0,h.default)(i)+"?");return r}function o(e){return{Field:function(t){var n=e.getParentType();if(n){var i=e.getFieldDef();if(!i){var o=e.getSchema(),l=t.name.value,c=a(o,n,l),d=0!==c.length?[]:s(o,n,l);e.reportError(new u.GraphQLError(r(l,n.name,c,d),[t]))}}}}}function a(e,t,n){if(t instanceof f.GraphQLInterfaceType||t instanceof f.GraphQLUnionType){var i=function(){var i=[],r=Object.create(null);e.getPossibleTypes(t).forEach(function(e){e.getFields()[n]&&(i.push(e.name),e.getInterfaces().forEach(function(e){e.getFields()[n]&&(r[e.name]=(r[e.name]||0)+1)}))});var o=Object.keys(r).sort(function(e,t){return r[t]-r[e]});return{v:o.concat(i)}}();if("object"==typeof i)return i.v}return[]}function s(e,t,n){if(t instanceof f.GraphQLObjectType||t instanceof f.GraphQLInterfaceType){var i=Object.keys(t.getFields());return(0,c.default)(n,i)}return[]}Object.defineProperty(t,"__esModule",{value:!0}),t.undefinedFieldMessage=r,t.FieldsOnCorrectType=o;var u=n(11),l=n(180),c=i(l),d=n(179),h=i(d),f=n(13)},function(e,t,n){"use strict";function i(e){return'Fragment cannot condition on non composite type "'+String(e)+'".'}function r(e,t){return'Fragment "'+e+'" cannot condition on non composite '+('type "'+String(t)+'".')}function o(e){return{InlineFragment:function(t){if(t.typeCondition){var n=(0,l.typeFromAST)(e.getSchema(),t.typeCondition);n&&!(0,u.isCompositeType)(n)&&e.reportError(new a.GraphQLError(i((0,s.print)(t.typeCondition)),[t.typeCondition]))}},FragmentDefinition:function(t){var n=(0,l.typeFromAST)(e.getSchema(),t.typeCondition);n&&!(0,u.isCompositeType)(n)&&e.reportError(new a.GraphQLError(r(t.name.value,(0,s.print)(t.typeCondition)),[t.typeCondition]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.inlineFragmentOnNonCompositeErrorMessage=i,t.fragmentOnNonCompositeErrorMessage=r,t.FragmentsOnCompositeTypes=o;var a=n(11),s=n(36),u=n(13),l=n(43)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){var r='Unknown argument "'+e+'" on field "'+t+'" of '+('type "'+String(n)+'".');return i.length&&(r+=" Did you mean "+(0,v.default)(i)+"?"),r}function o(e,t,n){var i='Unknown argument "'+e+'" on directive "@'+t+'".';return n.length&&(i+=" Did you mean "+(0,v.default)(n)+"?"),i}function a(e){return{Argument:function(t,n,i,a,u){var c=u[u.length-1];if(c.kind===m.FIELD){var h=e.getFieldDef();if(h){var p=(0,l.default)(h.args,function(e){return e.name===t.name.value});if(!p){var v=e.getParentType();(0,d.default)(v),e.reportError(new s.GraphQLError(r(t.name.value,h.name,v.name,(0,f.default)(t.name.value,h.args.map(function(e){return e.name}))),[t]))}}}else if(c.kind===m.DIRECTIVE){var g=e.getDirective();if(g){var y=(0,l.default)(g.args,function(e){return e.name===t.name.value});y||e.reportError(new s.GraphQLError(o(t.name.value,g.name,(0,f.default)(t.name.value,g.args.map(function(e){return e.name}))),[t]))}}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownArgMessage=r,t.unknownDirectiveArgMessage=o,t.KnownArgumentNames=a;var s=n(11),u=n(63),l=i(u),c=n(20),d=i(c),h=n(180),f=i(h),p=n(179),v=i(p),m=n(18)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return'Unknown directive "'+e+'".'}function o(e,t){return'Directive "'+e+'" may not be used on '+t+"."}function a(e){return{Directive:function(t,n,i,a,l){var d=(0,c.default)(e.getSchema().getDirectives(),function(e){return e.name===t.name.value});if(!d)return void e.reportError(new u.GraphQLError(r(t.name.value),[t]));var h=s(l);h?d.locations.indexOf(h)===-1&&e.reportError(new u.GraphQLError(o(t.name.value,h),[t])):e.reportError(new u.GraphQLError(o(t.name.value,t.type),[t]))}}}function s(e){var t=e[e.length-1];switch(t.kind){case d.OPERATION_DEFINITION:switch(t.operation){case"query":return h.DirectiveLocation.QUERY;case"mutation":return h.DirectiveLocation.MUTATION;case"subscription":return h.DirectiveLocation.SUBSCRIPTION}break;case d.FIELD:return h.DirectiveLocation.FIELD;case d.FRAGMENT_SPREAD:return h.DirectiveLocation.FRAGMENT_SPREAD;case d.INLINE_FRAGMENT:return h.DirectiveLocation.INLINE_FRAGMENT;case d.FRAGMENT_DEFINITION:return h.DirectiveLocation.FRAGMENT_DEFINITION;case d.SCHEMA_DEFINITION:return h.DirectiveLocation.SCHEMA;case d.SCALAR_TYPE_DEFINITION:return h.DirectiveLocation.SCALAR;case d.OBJECT_TYPE_DEFINITION:return h.DirectiveLocation.OBJECT;case d.FIELD_DEFINITION:return h.DirectiveLocation.FIELD_DEFINITION;case d.INTERFACE_TYPE_DEFINITION:return h.DirectiveLocation.INTERFACE;case d.UNION_TYPE_DEFINITION:return h.DirectiveLocation.UNION;case d.ENUM_TYPE_DEFINITION:return h.DirectiveLocation.ENUM;case d.ENUM_VALUE_DEFINITION:return h.DirectiveLocation.ENUM_VALUE;case d.INPUT_OBJECT_TYPE_DEFINITION:return h.DirectiveLocation.INPUT_OBJECT;case d.INPUT_VALUE_DEFINITION:var n=e[e.length-3];return n.kind===d.INPUT_OBJECT_TYPE_DEFINITION?h.DirectiveLocation.INPUT_FIELD_DEFINITION:h.DirectiveLocation.ARGUMENT_DEFINITION}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownDirectiveMessage=r,t.misplacedDirectiveMessage=o,t.KnownDirectives=a;var u=n(11),l=n(63),c=i(l),d=n(18),h=n(41)},function(e,t,n){"use strict";function i(e){return'Unknown fragment "'+e+'".'}function r(e){return{FragmentSpread:function(t){var n=t.name.value,r=e.getFragment(n);r||e.reportError(new o.GraphQLError(i(n),[t.name]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownFragmentMessage=i,t.KnownFragmentNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n='Unknown type "'+String(e)+'".';return t.length&&(n+=" Did you mean "+(0,c.default)(t)+"?"),n}function o(e){return{ObjectTypeDefinition:function(){return!1},InterfaceTypeDefinition:function(){return!1},UnionTypeDefinition:function(){return!1},InputObjectTypeDefinition:function(){return!1},NamedType:function(t){var n=e.getSchema(),i=t.name.value,o=n.getType(i);o||e.reportError(new a.GraphQLError(r(i,(0,u.default)(i,Object.keys(n.getTypeMap()))),[t]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownTypeMessage=r,t.KnownTypeNames=o;var a=n(11),s=n(180),u=i(s),l=n(179),c=i(l)},function(e,t,n){"use strict";function i(){return"This anonymous operation must be the only defined operation."}function r(e){var t=0;return{Document:function(e){t=e.definitions.filter(function(e){return e.kind===a.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new o.GraphQLError(i(),[n]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.anonOperationNotAloneMessage=i,t.LoneAnonymousOperation=r;var o=n(11),a=n(18)},function(e,t,n){"use strict";function i(e,t){var n=t.length?" via "+t.join(", "):"";return'Cannot spread fragment "'+e+'" within itself'+n+"."}function r(e){function t(s){var u=s.name.value;n[u]=!0;var l=e.getFragmentSpreads(s.selectionSet);if(0!==l.length){a[u]=r.length;for(var c=0;c1)for(var s=0;s0)return[[t,e.map(function(e){var t=e[0];return t})],e.reduce(function(e,t){var n=t[1];return e.concat(n)},[n]),e.reduce(function(e,t){var n=t[2];return e.concat(n)},[i])]}function x(e,t,n,i){var r=e[t];r||(r=Object.create(null),e[t]=r),r[n]=i}Object.defineProperty(t,"__esModule",{value:!0}),t.fieldsConflictMessage=o,t.OverlappingFieldsCanBeMerged=s;var T=n(11),E=n(63),C=i(E),O=n(18),S=n(36),k=n(13),M=n(43),P=function(){function e(){r(this,e),this._data=Object.create(null)}return e.prototype.has=function(e,t,n){var i=this._data[e],r=i&&i[t];return void 0!==r&&(n!==!1||r===!1)},e.prototype.add=function(e,t,n){x(this._data,e,t,n),x(this._data,t,e,n)},e}()},function(e,t,n){"use strict";function i(e,t,n){return'Fragment "'+e+'" cannot be spread here as objects of '+('type "'+String(t)+'" can never be of type "'+String(n)+'".')}function r(e,t){return"Fragment cannot be spread here as objects of "+('type "'+String(e)+'" can never be of type "'+String(t)+'".')}function o(e){return{InlineFragment:function(t){var n=e.getType(),i=e.getParentType();n&&i&&!(0,u.doTypesOverlap)(e.getSchema(),n,i)&&e.reportError(new s.GraphQLError(r(i,n),[t]))},FragmentSpread:function(t){var n=t.name.value,r=a(e,n),o=e.getParentType();r&&o&&!(0,u.doTypesOverlap)(e.getSchema(),r,o)&&e.reportError(new s.GraphQLError(i(n,o,r),[t]))}}}function a(e,t){var n=e.getFragment(t);return n&&(0,l.typeFromAST)(e.getSchema(),n.typeCondition)}Object.defineProperty(t,"__esModule",{value:!0}),t.typeIncompatibleSpreadMessage=i,t.typeIncompatibleAnonSpreadMessage=r,t.PossibleFragmentSpreads=o;var s=n(11),u=n(126),l=n(43)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return'Field "'+e+'" argument "'+t+'" of type '+('"'+String(n)+'" is required but not provided.')}function o(e,t,n){return'Directive "@'+e+'" argument "'+t+'" of type '+('"'+String(n)+'" is required but not provided.')}function a(e){return{Field:{leave:function(t){var n=e.getFieldDef();if(!n)return!1;var i=t.arguments||[],o=(0,l.default)(i,function(e){return e.name.value});n.args.forEach(function(n){var i=o[n.name];!i&&n.type instanceof c.GraphQLNonNull&&e.reportError(new s.GraphQLError(r(t.name.value,n.name,n.type),[t]))})}},Directive:{leave:function(t){var n=e.getDirective();if(!n)return!1;var i=t.arguments||[],r=(0,l.default)(i,function(e){return e.name.value});n.args.forEach(function(n){ -var i=r[n.name];!i&&n.type instanceof c.GraphQLNonNull&&e.reportError(new s.GraphQLError(o(t.name.value,n.name,n.type),[t]))})}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.missingFieldArgMessage=r,t.missingDirectiveArgMessage=o,t.ProvidedNonNullArguments=a;var s=n(11),u=n(77),l=i(u),c=n(13)},function(e,t,n){"use strict";function i(e,t){return'Field "'+e+'" must not have a selection since '+('type "'+String(t)+'" has no subfields.')}function r(e,t){return'Field "'+e+'" of type "'+String(t)+'" must have a '+('selection of subfields. Did you mean "'+e+' { ... }"?')}function o(e){return{Field:function(t){var n=e.getType();n&&((0,s.isLeafType)((0,s.getNamedType)(n))?t.selectionSet&&e.reportError(new a.GraphQLError(i(t.name.value,n),[t.selectionSet])):t.selectionSet||e.reportError(new a.GraphQLError(r(t.name.value,n),[t])))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.noSubselectionAllowedMessage=i,t.requiredSubselectionMessage=r,t.ScalarLeafs=o;var a=n(11),s=n(13)},function(e,t,n){"use strict";function i(e){return'There can be only one argument named "'+e+'".'}function r(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var r=n.name.value;return t[r]?e.reportError(new o.GraphQLError(i(r),[t[r],n.name])):t[r]=n.name,!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateArgMessage=i,t.UniqueArgumentNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return'The directive "'+e+'" can only be used once at this location.'}function r(e){return{enter:function(t){t.directives&&!function(){var n=Object.create(null);t.directives.forEach(function(t){var r=t.name.value;n[r]?e.reportError(new o.GraphQLError(i(r),[n[r],t])):n[r]=t})}()}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateDirectiveMessage=i,t.UniqueDirectivesPerLocation=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return'There can be only one fragment named "'+e+'".'}function r(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new o.GraphQLError(i(r),[t[r],n.name])):t[r]=n.name,!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateFragmentNameMessage=i,t.UniqueFragmentNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return'There can be only one input field named "'+e+'".'}function r(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var r=t.name.value;return n[r]?e.reportError(new o.GraphQLError(i(r),[n[r],t.name])):n[r]=t.name,!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateInputFieldMessage=i,t.UniqueInputFieldNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return'There can be only one operation named "'+e+'".'}function r(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new o.GraphQLError(i(r.value),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateOperationNameMessage=i,t.UniqueOperationNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return'There can be only one variable named "'+e+'".'}function r(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var r=n.variable.name.value;t[r]?e.reportError(new o.GraphQLError(i(r),[t[r],n.variable.name])):t[r]=n.variable.name}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateVariableMessage=i,t.UniqueVariableNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e,t){return'Variable "$'+e+'" cannot be non-input type "'+t+'".'}function r(e){return{VariableDefinition:function(t){var n=(0,u.typeFromAST)(e.getSchema(),t.type);if(n&&!(0,s.isInputType)(n)){var r=t.variable.name.value;e.reportError(new o.GraphQLError(i(r,(0,a.print)(t.type)),[t.type]))}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.nonInputTypeOnVarMessage=i,t.VariablesAreInputTypes=r;var o=n(11),a=n(36),s=n(13),u=n(43)},function(e,t,n){"use strict";function i(e,t,n){return'Variable "$'+e+'" of type "'+String(t)+'" used in '+('position expecting type "'+String(n)+'".')}function r(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var r=e.getRecursiveVariableUsages(n);r.forEach(function(n){var r=n.node,s=n.type,c=r.name.value,d=t[c];if(d&&s){var h=e.getSchema(),f=(0,l.typeFromAST)(h,d.type);f&&!(0,u.isTypeSubTypeOf)(h,o(f,d),s)&&e.reportError(new a.GraphQLError(i(c,f,s),[d,r]))}})}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function o(e,t){return!t.defaultValue||e instanceof s.GraphQLNonNull?e:new s.GraphQLNonNull(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.badVarPosMessage=i,t.VariablesInAllowedPosition=r;var a=n(11),s=n(13),u=n(126),l=n(43)},function(e,t){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,o){if("string"!=typeof t){var a=Object.getOwnPropertyNames(t);r&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?i.splice(a,1/0,r):i.push(r),~n.indexOf(o)&&(o=t.call(this,r,o))}else n.push(o);return null==e?o:e.call(this,r,o)}}t=e.exports=n,t.getSerialize=i},function(e,t,n){var i=n(65),r=n(31),o=i(r,"DataView");e.exports=o},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&n(c)?t>1?i(c,t-1,n,a,s):r(s,c):a||(s[s.length]=c)}return s}var r=n(190),o=n(647);e.exports=i},function(e,t){function n(e,t){return null!=e&&r.call(e,t)}var i=Object.prototype,r=i.hasOwnProperty;e.exports=n},function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},function(e,t,n){function i(e,t,n,i){return r(e,function(e,r,o){t(i,n(e),r,o)}),i}var r=n(79);e.exports=i},function(e,t,n){function i(e,t,n){t=o(t,e),e=s(e,t);var i=null==e?e:e[u(a(t))];return null==i?void 0:r(i,e,n)}var r=n(103),o=n(58),a=n(328),s=n(316),u=n(59);e.exports=i},function(e,t,n){function i(e){return o(e)&&r(e)==a}var r=n(56),o=n(45),a="[object Arguments]";e.exports=i},function(e,t,n){function i(e,t,n,i,m,y){var b=l(e),_=l(t),w=b?p:u(e),x=_?p:u(t);w=w==f?v:w,x=x==f?v:x;var T=w==v,E=x==v,C=w==x;if(C&&c(e)){if(!c(t))return!1;b=!0,T=!1}if(C&&!T)return y||(y=new r),b||d(e)?o(e,t,n,i,m,y):a(e,t,w,n,i,m,y);if(!(n&h)){var O=T&&g.call(e,"__wrapped__"),S=E&&g.call(t,"__wrapped__");if(O||S){var k=O?e.value():e,M=S?t.value():t;return y||(y=new r),m(k,M,n,i,y)}}return!!C&&(y||(y=new r),s(e,t,n,i,m,y))}var r=n(130),o=n(305),a=n(632),s=n(633),u=n(202),l=n(28),c=n(111),d=n(143),h=1,f="[object Arguments]",p="[object Array]",v="[object Object]",m=Object.prototype,g=m.hasOwnProperty;e.exports=i},function(e,t,n){function i(e,t,n,i){var u=n.length,l=u,c=!i;if(null==e)return!l;for(e=Object(e);u--;){var d=n[u];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++u":">",'"':""","'":"'"},o=i(r);e.exports=o},function(e,t){function n(e){return"\\"+i[e]}var i={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};e.exports=n},function(e,t,n){function i(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}var r=n(311),o=n(25);e.exports=i},function(e,t,n){function i(e){var t=a.call(e,u),n=e[u];try{e[u]=void 0;var i=!0}catch(e){}var r=s.call(e);return i&&(t?e[u]=n:delete e[u]),r}var r=n(78),o=Object.prototype,a=o.hasOwnProperty,s=o.toString,u=r?r.toStringTag:void 0;e.exports=i},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t){function n(e){return i.test(e)}var i=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=n},function(e,t,n){function i(){this.__data__=r?r(null):{},this.size=0}var r=n(139);e.exports=i},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function i(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return s.call(t,e)?t[e]:void 0}var r=n(139),o="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;e.exports=i},function(e,t,n){function i(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}var r=n(139),o=Object.prototype,a=o.hasOwnProperty;e.exports=i},function(e,t,n){function i(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}var r=n(139),o="__lodash_hash_undefined__";e.exports=i},function(e,t){function n(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var i=Object.prototype,r=i.hasOwnProperty;e.exports=n},function(e,t,n){function i(e,t,n,i){var P=e.constructor;switch(t){case b:return r(e);case d:case h:return new P(+e);case _:return o(e,i);case w:case x:case T:case E:case C:case O:case S:case k:case M:return c(e,i);case f:return a(e,i,n);case p:case g:return new P(e);case v:return s(e);case m:return u(e,i,n);case y:return l(e)}}var r=n(197),o=n(621),a=n(622),s=n(623),u=n(624),l=n(625),c=n(297),d="[object Boolean]",h="[object Date]",f="[object Map]",p="[object Number]",v="[object RegExp]",m="[object Set]",g="[object String]",y="[object Symbol]",b="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",T="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",O="[object Uint8Array]",S="[object Uint8ClampedArray]",k="[object Uint16Array]",M="[object Uint32Array]";e.exports=i},function(e,t,n){function i(e){return a(e)||o(e)||!!(s&&e&&e[s])}var r=n(78),o=n(141),a=n(28),s=r?r.isConcatSpreadable:void 0;e.exports=i},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function i(e){return!!o&&o in e}var r=n(628),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=i},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function i(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():a.call(t,n,1),--this.size,!0}var r=n(132),o=Array.prototype,a=o.splice;e.exports=i},function(e,t,n){function i(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}var r=n(132);e.exports=i},function(e,t,n){function i(e){return r(this.__data__,e)>-1}var r=n(132);e.exports=i},function(e,t,n){function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var r=n(132);e.exports=i},function(e,t,n){function i(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}var r=n(583),o=n(129),a=n(188);e.exports=i},function(e,t,n){function i(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}var r=n(134);e.exports=i},function(e,t,n){function i(e){return r(this,e).get(e)}var r=n(134);e.exports=i},function(e,t,n){function i(e){return r(this,e).has(e)}var r=n(134);e.exports=i},function(e,t,n){function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var r=n(134);e.exports=i},function(e,t,n){function i(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}var r=n(715),o=500;e.exports=i},function(e,t,n){var i=n(314),r=i(Object.keys,Object);e.exports=r},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t){function n(e){return r.call(e)}var i=Object.prototype,r=i.toString;e.exports=n},function(e,t){var n=/<%-([\s\S]+?)%>/g;e.exports=n},function(e,t){var n=/<%([\s\S]+?)%>/g;e.exports=n},function(e,t){function n(e){return this.__data__.set(e,i),this}var i="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}e.exports=n},function(e,t){function n(e){var t=0,n=0;return function(){var a=o(),s=r-(a-n);if(n=a,s>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i=800,r=16,o=Date.now;e.exports=n},function(e,t,n){function i(){this.__data__=new r,this.size=0}var r=n(129);e.exports=i},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function i(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length",""":'"',"'":"'"},o=i(r);e.exports=o},function(e,t){function n(e){for(var t=x.lastIndex=0;x.test(e);)++t;return t}var i="\\ud800-\\udfff",r="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",s=r+o+a,u="\\ufe0e\\ufe0f",l="["+i+"]",c="["+s+"]",d="\\ud83c[\\udffb-\\udfff]",h="(?:"+c+"|"+d+")",f="[^"+i+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",g=h+"?",y="["+u+"]?",b="(?:"+m+"(?:"+[f,p,v].join("|")+")"+y+g+")*",_=y+g+b,w="(?:"+[f+c+"?",c,p,v,l].join("|")+")",x=RegExp(d+"(?="+d+")|"+w+_,"g");e.exports=n},function(e,t){function n(e){return e.match(x)||[]}var i="\\ud800-\\udfff",r="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",s=r+o+a,u="\\ufe0e\\ufe0f",l="["+i+"]",c="["+s+"]",d="\\ud83c[\\udffb-\\udfff]",h="(?:"+c+"|"+d+")",f="[^"+i+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",m="\\u200d",g=h+"?",y="["+u+"]?",b="(?:"+m+"(?:"+[f,p,v].join("|")+")"+y+g+")*",_=y+g+b,w="(?:"+[f+c+"?",c,p,v,l].join("|")+")",x=RegExp(d+"(?="+d+")|"+w+_,"g");e.exports=n},function(e,t){function n(e){return e.match(H)||[]}var i="\\ud800-\\udfff",r="\\u0300-\\u036f",o="\\ufe20-\\ufe2f",a="\\u20d0-\\u20ff",s=r+o+a,u="\\u2700-\\u27bf",l="a-z\\xdf-\\xf6\\xf8-\\xff",c="\\xac\\xb1\\xd7\\xf7",d="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",h="\\u2000-\\u206f",f=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="A-Z\\xc0-\\xd6\\xd8-\\xde",v="\\ufe0e\\ufe0f",m=c+d+h+f,g="['’]",y="["+m+"]",b="["+s+"]",_="\\d+",w="["+u+"]",x="["+l+"]",T="[^"+i+m+_+u+l+p+"]",E="\\ud83c[\\udffb-\\udfff]",C="(?:"+b+"|"+E+")",O="[^"+i+"]",S="(?:\\ud83c[\\udde6-\\uddff]){2}",k="[\\ud800-\\udbff][\\udc00-\\udfff]",M="["+p+"]",P="\\u200d",N="(?:"+x+"|"+T+")",D="(?:"+M+"|"+T+")",I="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",L="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",A=C+"?",R="["+v+"]?",j="(?:"+P+"(?:"+[O,S,k].join("|")+")"+R+A+")*",F="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",B="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",z=R+A+j,G="(?:"+[w,S,k].join("|")+")"+z,H=RegExp([M+"?"+x+"+"+I+"(?="+[y,M,"$"].join("|")+")",D+"+"+L+"(?="+[y,M+N,"$"].join("|")+")",M+"?"+N+"+"+I,M+"+"+L,B,F,_,G].join("|"),"g");e.exports=n},function(e,t,n){var i=n(131),r=n(37),o=n(81),a=n(110),s=n(138),u=n(25),l=Object.prototype,c=l.hasOwnProperty,d=o(function(e,t){if(s(t)||a(t))return void r(t,u(t),e);for(var n in t)c.call(t,n)&&i(e,n,t[n])});e.exports=d},function(e,t,n){var i=n(37),r=n(81),o=n(25),a=r(function(e,t,n,r){i(t,o(t),e,r)});e.exports=a},function(e,t,n){var i=n(595),r=n(199),o=r(i);e.exports=o},function(e,t,n){var i=n(103),r=n(107),o=n(326),a=r(function(e,t){try{return i(e,void 0,t)}catch(e){return o(e)?e:new Error(e)}});e.exports=a},function(e,t,n){var i=n(322),r=n(82),o=r(function(e,t,n){return t=t.toLowerCase(),e+(n?i(t):t)});e.exports=o},function(e,t,n){function i(e,t){var n=o(e);return null==t?n:r(n,t)}var r=n(278),o=n(192);e.exports=i},function(e,t,n){var i=n(103),r=n(140),o=n(107),a=n(303),s=o(function(e){return e.push(void 0,a),i(r,void 0,e)});e.exports=s},function(e,t,n){var i=n(103),r=n(107),o=n(629),a=n(329),s=r(function(e){return e.push(void 0,o),i(a,void 0,e)});e.exports=s},function(e,t,n){function i(e,t,n){e=s(e),t=o(t);var i=e.length;n=void 0===n?i:r(a(n),0,i);var u=n;return n-=t.length,n>=0&&e.slice(n,u)==t}var r=n(279),o=n(44),a=n(68),s=n(15);e.exports=i},function(e,t,n){e.exports=n(334)},function(e,t,n){e.exports=n(335)},function(e,t,n){function i(e){return e=r(e),e&&a.test(e)?e.replace(o,"\\$&"):e}var r=n(15),o=/[\\^$.*+?()[\]{}|]/g,a=RegExp(o.source);e.exports=i},function(e,t,n){e.exports=n(321)},function(e,t,n){e.exports=n(140)},function(e,t,n){function i(e,t){return r(e,a(t,3),o)}var r=n(280),o=n(79),a=n(57);e.exports=i},function(e,t,n){function i(e,t){return r(e,a(t,3),o)}var r=n(280),o=n(281),a=n(57);e.exports=i},function(e,t,n){function i(e){var t=null==e?0:e.length;return t?r(e,1):[]}var r=n(598);e.exports=i},function(e,t,n){function i(e,t){return null==e?e:r(e,o(t),a)}var r=n(193),o=n(80),a=n(29);e.exports=i},function(e,t,n){function i(e,t){return null==e?e:r(e,o(t),a)}var r=n(282),o=n(80),a=n(29);e.exports=i},function(e,t,n){function i(e,t){return e&&r(e,o(t))}var r=n(79),o=n(80);e.exports=i},function(e,t,n){function i(e,t){return e&&r(e,o(t))}var r=n(281),o=n(80);e.exports=i},function(e,t,n){function i(e){return null==e?[]:r(e,o(e))}var r=n(283),o=n(25);e.exports=i},function(e,t,n){function i(e){return null==e?[]:r(e,o(e))}var r=n(283),o=n(29);e.exports=i},function(e,t,n){function i(e,t){return null!=e&&o(e,t,r)}var r=n(599),o=n(309);e.exports=i},function(e,t,n){var i=n(323),r=n(301),o=n(109),a=r(function(e,t,n){e[t]=n},i(o));e.exports=a},function(e,t,n){var i=n(57),r=n(301),o=Object.prototype,a=o.hasOwnProperty,s=r(function(e,t,n){a.call(e,t)?e[t].push(n):e[t]=[n]},i);e.exports=s},function(e,t,n){var i=n(602),r=n(107),o=r(i);e.exports=o},function(e,t,n){function i(e){return o(e)&&r(e)}var r=n(110),o=n(45);e.exports=i},function(e,t,n){var i=n(82),r=i(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});e.exports=r},function(e,t,n){var i;(function(e,r){(function(){function o(e,t){return e.set(t[0],t[1]),e}function a(e,t){return e.add(t),e}function s(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function u(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r-1}function p(e,t,n){for(var i=-1,r=null==e?0:e.length;++i-1;);return n}function B(e,t){for(var n=e.length;n--&&E(t,e[n],0)>-1;);return n}function z(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}function G(e){return"\\"+ni[e]}function H(e,t){return null==e?re:e[t]}function U(e){return Qn.test(e)}function W(e){return Kn.test(e)}function V(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function Q(e,t){return function(n){return e(t(n))}}function K(e,t){for(var n=-1,i=e.length,r=0,o=[];++n>>1,Ge=[["ary",Ee],["bind",ge],["bindKey",ye],["curry",_e],["curryRight",we],["flip",Oe],["partial",xe],["partialRight",Te],["rearg",Ce]],He="[object Arguments]",Ue="[object Array]",We="[object AsyncFunction]",Ve="[object Boolean]",Ye="[object Date]",Qe="[object DOMException]",Ke="[object Error]",qe="[object Function]",Xe="[object GeneratorFunction]",$e="[object Map]",Ze="[object Number]",Je="[object Null]",et="[object Object]",tt="[object Promise]",nt="[object Proxy]",it="[object RegExp]",rt="[object Set]",ot="[object String]",at="[object Symbol]",st="[object Undefined]",ut="[object WeakMap]",lt="[object WeakSet]",ct="[object ArrayBuffer]",dt="[object DataView]",ht="[object Float32Array]",ft="[object Float64Array]",pt="[object Int8Array]",vt="[object Int16Array]",mt="[object Int32Array]",gt="[object Uint8Array]",yt="[object Uint8ClampedArray]",bt="[object Uint16Array]",_t="[object Uint32Array]",wt=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,Tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Et=/&(?:amp|lt|gt|quot|#39);/g,Ct=/[&<>"']/g,Ot=RegExp(Et.source),St=RegExp(Ct.source),kt=/<%-([\s\S]+?)%>/g,Mt=/<%([\s\S]+?)%>/g,Pt=/<%=([\s\S]+?)%>/g,Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dt=/^\w*$/,It=/^\./,Lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,At=/[\\^$.*+?()[\]{}|]/g,Rt=RegExp(At.source),jt=/^\s+|\s+$/g,Ft=/^\s+/,Bt=/\s+$/,zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ht=/,? & /,Ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wt=/\\(\\)?/g,Vt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yt=/\w*$/,Qt=/^[-+]0x[0-9a-f]+$/i,Kt=/^0b[01]+$/i,qt=/^\[object .+?Constructor\]$/,Xt=/^0o[0-7]+$/i,$t=/^(?:0|[1-9]\d*)$/,Zt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jt=/($^)/,en=/['\n\r\u2028\u2029\\]/g,tn="\\ud800-\\udfff",nn="\\u0300-\\u036f",rn="\\ufe20-\\ufe2f",on="\\u20d0-\\u20ff",an=nn+rn+on,sn="\\u2700-\\u27bf",un="a-z\\xdf-\\xf6\\xf8-\\xff",ln="\\xac\\xb1\\xd7\\xf7",cn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dn="\\u2000-\\u206f",hn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fn="A-Z\\xc0-\\xd6\\xd8-\\xde",pn="\\ufe0e\\ufe0f",vn=ln+cn+dn+hn,mn="['’]",gn="["+tn+"]",yn="["+vn+"]",bn="["+an+"]",_n="\\d+",wn="["+sn+"]",xn="["+un+"]",Tn="[^"+tn+vn+_n+sn+un+fn+"]",En="\\ud83c[\\udffb-\\udfff]",Cn="(?:"+bn+"|"+En+")",On="[^"+tn+"]",Sn="(?:\\ud83c[\\udde6-\\uddff]){2}",kn="[\\ud800-\\udbff][\\udc00-\\udfff]",Mn="["+fn+"]",Pn="\\u200d",Nn="(?:"+xn+"|"+Tn+")",Dn="(?:"+Mn+"|"+Tn+")",In="(?:"+mn+"(?:d|ll|m|re|s|t|ve))?",Ln="(?:"+mn+"(?:D|LL|M|RE|S|T|VE))?",An=Cn+"?",Rn="["+pn+"]?",jn="(?:"+Pn+"(?:"+[On,Sn,kn].join("|")+")"+Rn+An+")*",Fn="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Bn="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",zn=Rn+An+jn,Gn="(?:"+[wn,Sn,kn].join("|")+")"+zn,Hn="(?:"+[On+bn+"?",bn,Sn,kn,gn].join("|")+")",Un=RegExp(mn,"g"),Wn=RegExp(bn,"g"),Vn=RegExp(En+"(?="+En+")|"+Hn+zn,"g"),Yn=RegExp([Mn+"?"+xn+"+"+In+"(?="+[yn,Mn,"$"].join("|")+")",Dn+"+"+Ln+"(?="+[yn,Mn+Nn,"$"].join("|")+")",Mn+"?"+Nn+"+"+In,Mn+"+"+Ln,Bn,Fn,_n,Gn].join("|"),"g"),Qn=RegExp("["+Pn+tn+an+pn+"]"),Kn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xn=-1,$n={};$n[ht]=$n[ft]=$n[pt]=$n[vt]=$n[mt]=$n[gt]=$n[yt]=$n[bt]=$n[_t]=!0,$n[He]=$n[Ue]=$n[ct]=$n[Ve]=$n[dt]=$n[Ye]=$n[Ke]=$n[qe]=$n[$e]=$n[Ze]=$n[et]=$n[it]=$n[rt]=$n[ot]=$n[ut]=!1;var Zn={};Zn[He]=Zn[Ue]=Zn[ct]=Zn[dt]=Zn[Ve]=Zn[Ye]=Zn[ht]=Zn[ft]=Zn[pt]=Zn[vt]=Zn[mt]=Zn[$e]=Zn[Ze]=Zn[et]=Zn[it]=Zn[rt]=Zn[ot]=Zn[at]=Zn[gt]=Zn[yt]=Zn[bt]=Zn[_t]=!0,Zn[Ke]=Zn[qe]=Zn[ut]=!1;var Jn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},ei={"&":"&","<":"<",">":">",'"':""","'":"'"},ti={"&":"&","<":"<",">":">",""":'"',"'":"'"},ni={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ii=parseFloat,ri=parseInt,oi="object"==typeof e&&e&&e.Object===Object&&e,ai="object"==typeof self&&self&&self.Object===Object&&self,si=oi||ai||Function("return this")(),ui="object"==typeof t&&t&&!t.nodeType&&t,li=ui&&"object"==typeof r&&r&&!r.nodeType&&r,ci=li&&li.exports===ui,di=ci&&oi.process,hi=function(){try{return di&&di.binding&&di.binding("util")}catch(e){}}(),fi=hi&&hi.isArrayBuffer,pi=hi&&hi.isDate,vi=hi&&hi.isMap,mi=hi&&hi.isRegExp,gi=hi&&hi.isSet,yi=hi&&hi.isTypedArray,bi=k("length"),_i=M(Jn),wi=M(ei),xi=M(ti),Ti=function e(t){function n(e){if(lu(e)&&!_h(e)&&!(e instanceof _)){if(e instanceof r)return e;if(_c.call(e,"__wrapped__"))return aa(e)}return new r(e)}function i(){}function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=re}function _(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Fe,this.__views__=[]}function M(){var e=new _(this.__wrapped__);return e.__actions__=zr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=zr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=zr(this.__views__),e}function $(){if(this.__filtered__){var e=new _(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function te(){var e=this.__wrapped__.value(),t=this.__dir__,n=_h(e),i=t<0,r=n?e.length:0,o=Po(0,r,this.__views__),a=o.start,s=o.end,u=s-a,l=i?s:a-1,c=this.__iteratees__,d=c.length,h=0,f=Xc(u,this.__takeCount__);if(!n||!i&&r==u&&f==u)return wr(e,this.__actions__);var p=[];e:for(;u--&&h-1}function dn(e,t){var n=this.__data__,i=In(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function zn(e,t,n,i,r,o){var a,s=t&he,u=t&fe,c=t&pe;if(n&&(a=r?n(e,i,r,o):n(e)),a!==re)return a;if(!uu(e))return e;var d=_h(e);if(d){if(a=Io(e),!s)return zr(e,a)}else{var h=Pd(e),f=h==qe||h==Xe;if(xh(e))return kr(e,s);if(h==et||h==He||f&&!r){if(a=u||f?{}:Lo(e),!s)return u?Ur(e,Rn(a,e)):Hr(e,An(a,e))}else{if(!Zn[h])return r?e:{};a=Ao(e,h,zn,s)}}o||(o=new wn);var p=o.get(e);if(p)return p;o.set(e,a);var v=c?u?xo:wo:u?Vu:Wu,m=d?re:v(e);return l(m||e,function(i,r){m&&(r=i,i=e[r]),Dn(a,r,zn(i,t,n,r,e,o))}),a}function Gn(e){var t=Wu(e);return function(n){return Hn(n,e,t)}}function Hn(e,t,n){var i=n.length;if(null==e)return!i;for(e=dc(e);i--;){var r=n[i],o=t[r],a=e[r];if(a===re&&!(r in e)||!o(a))return!1}return!0}function Vn(e,t,n){if("function"!=typeof e)throw new pc(ue);return Id(function(){e.apply(re,n)},t)}function Yn(e,t,n,i){var r=-1,o=f,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=v(t,A(n))),i?(o=p,a=!1):t.length>=ae&&(o=j,a=!1,t=new yn(t));e:for(;++rr?0:r+n),i=i===re||i>r?r:Ou(i),i<0&&(i+=r),i=n>i?0:Su(i);n0&&n(s)?t>1?ti(s,t-1,n,i,r):m(r,s):i||(r[r.length]=s)}return r}function ni(e,t){return e&&_d(e,t,Wu)}function oi(e,t){return e&&wd(e,t,Wu)}function ai(e,t){return h(t,function(t){return ou(e[t])})}function ui(e,t){t=Or(t,e);for(var n=0,i=t.length;null!=e&&nt}function bi(e,t){return null!=e&&_c.call(e,t)}function Ti(e,t){return null!=e&&t in dc(e)}function Ci(e,t,n){return e>=Xc(t,n)&&e=120&&c.length>=120)?new yn(a&&c):re}c=e[0];var d=-1,h=s[0];e:for(;++d-1;)s!==e&&Lc.call(s,u,1),Lc.call(e,u,1);return e}function tr(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;Fo(r)?Lc.call(e,r,1):yr(e,r)}}return e}function nr(e,t){return e+Uc(Jc()*(t-e+1))}function ir(e,t,n,i){for(var r=-1,o=qc(Hc((t-e)/(n||1)),0),a=ac(o);o--;)a[i?o:++r]=e,e+=n;return a}function rr(e,t){var n="";if(!e||t<1||t>Ae)return n;do t%2&&(n+=e),t=Uc(t/2),t&&(e+=e);while(t);return n}function or(e,t){return Ld($o(e,t,Ll),e+"")}function ar(e){return kn(il(e))}function sr(e,t){var n=il(e);return na(n,Bn(t,0,n.length))}function ur(e,t,n,i){if(!uu(e))return e;t=Or(t,e);for(var r=-1,o=t.length,a=o-1,s=e;null!=s&&++rr?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=ac(r);++i>>1,a=e[o];null!==a&&!_u(a)&&(n?a<=t:a=ae){var l=t?null:Od(e);if(l)return q(l);a=!1,r=j,u=new yn}else u=t?[]:s;e:for(;++i=i?e:cr(e,t,n)}function kr(e,t){if(t)return e.slice();var n=e.length,i=Pc?Pc(n):new e.constructor(n);return e.copy(i),i}function Mr(e){var t=new e.constructor(e.byteLength);return new Mc(t).set(new Mc(e)),t}function Pr(e,t){var n=t?Mr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Nr(e,t,n){var i=t?n(Y(e),he):Y(e);return g(i,o,new e.constructor)}function Dr(e){var t=new e.constructor(e.source,Yt.exec(e));return t.lastIndex=e.lastIndex,t}function Ir(e,t,n){var i=t?n(q(e),he):q(e);return g(i,a,new e.constructor)}function Lr(e){return vd?dc(vd.call(e)):{}}function Ar(e,t){var n=t?Mr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Rr(e,t){if(e!==t){var n=e!==re,i=null===e,r=e===e,o=_u(e),a=t!==re,s=null===t,u=t===t,l=_u(t);if(!s&&!l&&!o&&e>t||o&&a&&u&&!s&&!l||i&&a&&u||!n&&u||!r)return 1;if(!i&&!o&&!l&&e=s)return u;var l=n[i];return u*("desc"==l?-1:1)}}return e.index-t.index}function Fr(e,t,n,i){for(var r=-1,o=e.length,a=n.length,s=-1,u=t.length,l=qc(o-a,0),c=ac(u+l),d=!i;++s1?n[r-1]:re,a=r>2?n[2]:re;for(o=e.length>3&&"function"==typeof o?(r--,o):re,a&&Bo(n[0],n[1],a)&&(o=r<3?re:o,r=1),t=dc(t);++i-1?r[o?t[a]:a]:re}}function eo(e){return _o(function(t){var n=t.length,i=n,o=r.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new pc(ue);if(o&&!s&&"wrapper"==To(a))var s=new r([],!0)}for(i=s?i:n;++i1&&y.reverse(),d&&us))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,d=!0,h=n&me?new yn:re;for(o.set(e,t),o.set(t,e);++c1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(zt,"{\n/* [wrapped with "+t+"] */\n")}function jo(e){return _h(e)||bh(e)||!!(Ac&&e&&e[Ac])}function Fo(e,t){return t=null==t?Ae:t,!!t&&("number"==typeof e||$t.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Me)return arguments[0]}else t=0;return e.apply(re,arguments)}}function na(e,t){var n=-1,i=e.length,r=i-1;for(t=t===re?i:t;++n=this.__values__.length,t=e?re:this.__values__[this.__index__++];return{done:e,value:t}}function as(){return this}function ss(e){for(var t,n=this;n instanceof i;){var r=aa(n);r.__index__=0,r.__values__=re,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function us(){var e=this.__wrapped__;if(e instanceof _){var t=e;return this.__actions__.length&&(t=new _(this)),t=t.reverse(),t.__actions__.push({func:ns,args:[Da],thisArg:re}),new r(t,this.__chain__)}return this.thru(Da)}function ls(){return wr(this.__wrapped__,this.__actions__)}function cs(e,t,n){var i=_h(e)?d:Qn;return n&&Bo(e,t,n)&&(t=re),i(e,Co(t,3))}function ds(e,t){var n=_h(e)?h:ei;return n(e,Co(t,3))}function hs(e,t){return ti(ys(e,t),1)}function fs(e,t){return ti(ys(e,t),Le)}function ps(e,t,n){return n=n===re?1:Ou(n),ti(ys(e,t),n)}function vs(e,t){var n=_h(e)?l:yd;return n(e,Co(t,3))}function ms(e,t){var n=_h(e)?c:bd;return n(e,Co(t,3))}function gs(e,t,n,i){e=Xs(e)?e:il(e),n=n&&!i?Ou(n):0;var r=e.length;return n<0&&(n=qc(r+n,0)),bu(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&E(e,t,n)>-1}function ys(e,t){var n=_h(e)?v:Wi;return n(e,Co(t,3))}function bs(e,t,n,i){return null==e?[]:(_h(t)||(t=null==t?[]:[t]),n=i?re:n,_h(n)||(n=null==n?[]:[n]),Xi(e,t,n))}function _s(e,t,n){var i=_h(e)?g:P,r=arguments.length<3;return i(e,Co(t,4),n,r,yd)}function ws(e,t,n){var i=_h(e)?y:P,r=arguments.length<3;return i(e,Co(t,4),n,r,bd)}function xs(e,t){var n=_h(e)?h:ei;return n(e,Rs(Co(t,3)))}function Ts(e){var t=_h(e)?kn:ar;return t(e)}function Es(e,t,n){t=(n?Bo(e,t,n):t===re)?1:Ou(t);var i=_h(e)?Mn:sr;return i(e,t)}function Cs(e){var t=_h(e)?Pn:lr;return t(e)}function Os(e){if(null==e)return 0;if(Xs(e))return bu(e)?J(e):e.length;var t=Pd(e);return t==$e||t==rt?e.size:Gi(e).length}function Ss(e,t,n){var i=_h(e)?b:dr;return n&&Bo(e,t,n)&&(t=re),i(e,Co(t,3))}function ks(e,t){if("function"!=typeof t)throw new pc(ue);return e=Ou(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ms(e,t,n){return t=n?re:t,t=e&&null==t?e.length:t,fo(e,Ee,re,re,re,re,t)}function Ps(e,t){var n;if("function"!=typeof t)throw new pc(ue);return e=Ou(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=re),n}}function Ns(e,t,n){t=n?re:t;var i=fo(e,_e,re,re,re,re,re,t);return i.placeholder=Ns.placeholder,i}function Ds(e,t,n){t=n?re:t;var i=fo(e,we,re,re,re,re,re,t);return i.placeholder=Ds.placeholder,i}function Is(e,t,n){function i(t){var n=h,i=f;return h=f=re,y=t,v=e.apply(i,n)}function r(e){return y=e,m=Id(s,t),b?i(e):v}function o(e){var n=e-g,i=e-y,r=t-n;return _?Xc(r,p-i):r}function a(e){var n=e-g,i=e-y;return g===re||n>=t||n<0||_&&i>=p}function s(){var e=uh();return a(e)?u(e):void(m=Id(s,o(e)))}function u(e){return m=re,w&&h?i(e):(h=f=re,v)}function l(){m!==re&&Cd(m),y=0,h=g=f=m=re}function c(){return m===re?v:u(uh())}function d(){var e=uh(),n=a(e);if(h=arguments,f=this,g=e,n){if(m===re)return r(g);if(_)return m=Id(s,t),i(g)}return m===re&&(m=Id(s,t)),v}var h,f,p,v,m,g,y=0,b=!1,_=!1,w=!0;if("function"!=typeof e)throw new pc(ue);return t=ku(t)||0,uu(n)&&(b=!!n.leading,_="maxWait"in n,p=_?qc(ku(n.maxWait)||0,t):p,w="trailing"in n?!!n.trailing:w),d.cancel=l,d.flush=c,d}function Ls(e){return fo(e,Oe)}function As(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new pc(ue);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(As.Cache||hn),n}function Rs(e){if("function"!=typeof e)throw new pc(ue);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function js(e){return Ps(2,e)}function Fs(e,t){if("function"!=typeof e)throw new pc(ue);return t=t===re?t:Ou(t),or(e,t)}function Bs(e,t){if("function"!=typeof e)throw new pc(ue);return t=null==t?0:qc(Ou(t),0),or(function(n){var i=n[t],r=Sr(n,0,t);return i&&m(r,i),s(e,this,r)})}function zs(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new pc(ue);return uu(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Is(e,t,{leading:i,maxWait:t,trailing:r})}function Gs(e){return Ms(e,1)}function Hs(e,t){return ph(Cr(t),e)}function Us(){if(!arguments.length)return[];var e=arguments[0];return _h(e)?e:[e]}function Ws(e){return zn(e,pe)}function Vs(e,t){return t="function"==typeof t?t:re,zn(e,pe,t)}function Ys(e){return zn(e,he|pe)}function Qs(e,t){return t="function"==typeof t?t:re,zn(e,he|pe,t)}function Ks(e,t){return null==t||Hn(e,t,Wu(t))}function qs(e,t){return e===t||e!==e&&t!==t}function Xs(e){return null!=e&&su(e.length)&&!ou(e)}function $s(e){return lu(e)&&Xs(e)}function Zs(e){return e===!0||e===!1||lu(e)&&di(e)==Ve}function Js(e){return lu(e)&&1===e.nodeType&&!gu(e)}function eu(e){if(null==e)return!0;if(Xs(e)&&(_h(e)||"string"==typeof e||"function"==typeof e.splice||xh(e)||Sh(e)||bh(e)))return!e.length;var t=Pd(e);if(t==$e||t==rt)return!e.size;if(Wo(e))return!Gi(e).length;for(var n in e)if(_c.call(e,n))return!1;return!0}function tu(e,t){return Di(e,t)}function nu(e,t,n){n="function"==typeof n?n:re;var i=n?n(e,t):re;return i===re?Di(e,t,re,n):!!i}function iu(e){if(!lu(e))return!1;var t=di(e);return t==Ke||t==Qe||"string"==typeof e.message&&"string"==typeof e.name&&!gu(e)}function ru(e){return"number"==typeof e&&Yc(e)}function ou(e){if(!uu(e))return!1;var t=di(e);return t==qe||t==Xe||t==We||t==nt}function au(e){return"number"==typeof e&&e==Ou(e)}function su(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ae}function uu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function lu(e){return null!=e&&"object"==typeof e}function cu(e,t){return e===t||Ai(e,t,So(t))}function du(e,t,n){return n="function"==typeof n?n:re,Ai(e,t,So(t),n)}function hu(e){return mu(e)&&e!=+e}function fu(e){if(Nd(e))throw new uc(se);return Ri(e)}function pu(e){return null===e}function vu(e){return null==e}function mu(e){return"number"==typeof e||lu(e)&&di(e)==Ze}function gu(e){if(!lu(e)||di(e)!=et)return!1;var t=Nc(e);if(null===t)return!0;var n=_c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&bc.call(n)==Ec}function yu(e){return au(e)&&e>=-Ae&&e<=Ae}function bu(e){return"string"==typeof e||!_h(e)&&lu(e)&&di(e)==ot}function _u(e){return"symbol"==typeof e||lu(e)&&di(e)==at}function wu(e){return e===re}function xu(e){return lu(e)&&Pd(e)==ut}function Tu(e){return lu(e)&&di(e)==lt}function Eu(e){if(!e)return[];if(Xs(e))return bu(e)?ee(e):zr(e);if(Rc&&e[Rc])return V(e[Rc]());var t=Pd(e),n=t==$e?Y:t==rt?q:il;return n(e)}function Cu(e){if(!e)return 0===e?e:0;if(e=ku(e),e===Le||e===-Le){var t=e<0?-1:1;return t*Re}return e===e?e:0}function Ou(e){var t=Cu(e),n=t%1;return t===t?n?t-n:t:0}function Su(e){return e?Bn(Ou(e),0,Fe):0}function ku(e){if("number"==typeof e)return e;if(_u(e))return je;if(uu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=uu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(jt,"");var n=Kt.test(e);return n||Xt.test(e)?ri(e.slice(2),n?2:8):Qt.test(e)?je:+e}function Mu(e){return Gr(e,Vu(e))}function Pu(e){return e?Bn(Ou(e),-Ae,Ae):0===e?e:0}function Nu(e){return null==e?"":mr(e)}function Du(e,t){var n=gd(e);return null==t?n:An(n,t)}function Iu(e,t){return x(e,Co(t,3),ni)}function Lu(e,t){return x(e,Co(t,3),oi)}function Au(e,t){return null==e?e:_d(e,Co(t,3),Vu)}function Ru(e,t){return null==e?e:wd(e,Co(t,3),Vu)}function ju(e,t){return e&&ni(e,Co(t,3))}function Fu(e,t){return e&&oi(e,Co(t,3))}function Bu(e){return null==e?[]:ai(e,Wu(e))}function zu(e){return null==e?[]:ai(e,Vu(e))}function Gu(e,t,n){var i=null==e?re:ui(e,t);return i===re?n:i}function Hu(e,t){return null!=e&&Do(e,t,bi)}function Uu(e,t){return null!=e&&Do(e,t,Ti)}function Wu(e){return Xs(e)?Sn(e):Gi(e)}function Vu(e){return Xs(e)?Sn(e,!0):Hi(e)}function Yu(e,t){var n={};return t=Co(t,3),ni(e,function(e,i,r){jn(n,t(e,i,r),e)}),n}function Qu(e,t){var n={};return t=Co(t,3),ni(e,function(e,i,r){jn(n,i,t(e,i,r))}),n}function Ku(e,t){return qu(e,Rs(Co(t)))}function qu(e,t){if(null==e)return{};var n=v(xo(e),function(e){return[e]});return t=Co(t),Zi(e,n,function(e,n){return t(e,n[0])})}function Xu(e,t,n){t=Or(t,e);var i=-1,r=t.length;for(r||(r=1,e=re);++it){var i=e;e=t,t=i}if(n||e%1||t%1){var r=Jc();return Xc(e+r*(t-e+ii("1e-"+((r+"").length-1))),t)}return nr(e,t)}function ul(e){return Jh(Nu(e).toLowerCase())}function ll(e){return e=Nu(e),e&&e.replace(Zt,_i).replace(Wn,"")}function cl(e,t,n){e=Nu(e),t=mr(t);var i=e.length;n=n===re?i:Bn(Ou(n),0,i);var r=n;return n-=t.length,n>=0&&e.slice(n,r)==t}function dl(e){return e=Nu(e),e&&St.test(e)?e.replace(Ct,wi):e}function hl(e){return e=Nu(e),e&&Rt.test(e)?e.replace(At,"\\$&"):e}function fl(e,t,n){e=Nu(e),t=Ou(t);var i=t?J(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return oo(Uc(r),n)+e+oo(Hc(r),n)}function pl(e,t,n){e=Nu(e),t=Ou(t);var i=t?J(e):0;return t&&i>>0)?(e=Nu(e),e&&("string"==typeof t||null!=t&&!Ch(t))&&(t=mr(t),!t&&U(e))?Sr(ee(e),0,n):e.split(t,n)):[]}function _l(e,t,n){return e=Nu(e),n=null==n?0:Bn(Ou(n),0,e.length),t=mr(t),e.slice(n,n+t.length)==t}function wl(e,t,i){var r=n.templateSettings;i&&Bo(e,t,i)&&(t=re),e=Nu(e),t=Dh({},t,r,po);var o,a,s=Dh({},t.imports,r.imports,po),u=Wu(s),l=R(s,u),c=0,d=t.interpolate||Jt,h="__p += '",f=hc((t.escape||Jt).source+"|"+d.source+"|"+(d===Pt?Vt:Jt).source+"|"+(t.evaluate||Jt).source+"|$","g"),p="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Xn+"]")+"\n";e.replace(f,function(t,n,i,r,s,u){return i||(i=r),h+=e.slice(c,u).replace(en,G),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=u+t.length,t}),h+="';\n";var v=t.variable;v||(h="with (obj) {\n"+h+"\n}\n"),h=(a?h.replace(wt,""):h).replace(xt,"$1").replace(Tt,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=ef(function(){return lc(u,p+"return "+h).apply(re,l)});if(m.source=h,iu(m))throw m;return m}function xl(e){return Nu(e).toLowerCase()}function Tl(e){return Nu(e).toUpperCase()}function El(e,t,n){if(e=Nu(e),e&&(n||t===re))return e.replace(jt,"");if(!e||!(t=mr(t)))return e;var i=ee(e),r=ee(t),o=F(i,r),a=B(i,r)+1;return Sr(i,o,a).join("")}function Cl(e,t,n){if(e=Nu(e),e&&(n||t===re))return e.replace(Bt,"");if(!e||!(t=mr(t)))return e;var i=ee(e),r=B(i,ee(t))+1;return Sr(i,0,r).join("")}function Ol(e,t,n){if(e=Nu(e),e&&(n||t===re))return e.replace(Ft,"");if(!e||!(t=mr(t)))return e;var i=ee(e),r=F(i,ee(t));return Sr(i,r).join("")}function Sl(e,t){var n=Se,i=ke;if(uu(t)){var r="separator"in t?t.separator:r;n="length"in t?Ou(t.length):n,i="omission"in t?mr(t.omission):i}e=Nu(e);var o=e.length;if(U(e)){var a=ee(e);o=a.length}if(n>=o)return e;var s=n-J(i);if(s<1)return i;var u=a?Sr(a,0,s).join(""):e.slice(0,s);if(r===re)return u+i;if(a&&(s+=u.length-s),Ch(r)){if(e.slice(s).search(r)){var l,c=u;for(r.global||(r=hc(r.source,Nu(Yt.exec(r))+"g")),r.lastIndex=0;l=r.exec(c);)var d=l.index;u=u.slice(0,d===re?s:d)}}else if(e.indexOf(mr(r),s)!=s){var h=u.lastIndexOf(r);h>-1&&(u=u.slice(0,h))}return u+i}function kl(e){return e=Nu(e),e&&Ot.test(e)?e.replace(Et,xi):e}function Ml(e,t,n){return e=Nu(e),t=n?re:t,t===re?W(e)?ie(e):w(e):e.match(t)||[]}function Pl(e){var t=null==e?0:e.length,n=Co();return e=t?v(e,function(e){if("function"!=typeof e[1])throw new pc(ue);return[n(e[0]),e[1]]}):[],or(function(n){for(var i=-1;++iAe)return[];var n=Fe,i=Xc(e,Fe);t=Co(t),e-=Fe;for(var r=I(i,t);++n1?e[t-1]:re;return n="function"==typeof n?(e.pop(),n):re,$a(e,n)}),Jd=_o(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return Fn(t,e)};return!(t>1||this.__actions__.length)&&i instanceof _&&Fo(n)?(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:ns,args:[o],thisArg:re}),new r(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(re),e})):this.thru(o)}),eh=Wr(function(e,t,n){_c.call(e,n)?++e[n]:jn(e,n,1)}),th=Jr(va),nh=Jr(ma),ih=Wr(function(e,t,n){_c.call(e,n)?e[n].push(t):jn(e,n,[t])}),rh=or(function(e,t,n){var i=-1,r="function"==typeof t,o=Xs(e)?ac(e.length):[];return yd(e,function(e){o[++i]=r?s(t,e,n):ki(e,t,n)}),o}),oh=Wr(function(e,t,n){jn(e,n,t)}),ah=Wr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),sh=or(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Bo(e,t[0],t[1])?t=[]:n>2&&Bo(t[0],t[1],t[2])&&(t=[t[0]]),Xi(e,ti(t,1),[])}),uh=zc||function(){return si.Date.now()},lh=or(function(e,t,n){var i=ge;if(n.length){var r=K(n,Eo(lh));i|=xe}return fo(e,i,t,n,r)}),ch=or(function(e,t,n){var i=ge|ye;if(n.length){var r=K(n,Eo(ch));i|=xe}return fo(t,i,e,n,r)}),dh=or(function(e,t){return Vn(e,1,t)}),hh=or(function(e,t,n){return Vn(e,ku(t)||0,n)});As.Cache=hn;var fh=Ed(function(e,t){t=1==t.length&&_h(t[0])?v(t[0],A(Co())):v(ti(t,1),A(Co()));var n=t.length;return or(function(i){for(var r=-1,o=Xc(i.length,n);++r=t}),bh=Mi(function(){return arguments}())?Mi:function(e){return lu(e)&&_c.call(e,"callee")&&!Ic.call(e,"callee")},_h=ac.isArray,wh=fi?A(fi):Pi,xh=Vc||Vl,Th=pi?A(pi):Ni,Eh=vi?A(vi):Li,Ch=mi?A(mi):ji,Oh=gi?A(gi):Fi,Sh=yi?A(yi):Bi,kh=uo(Ui),Mh=uo(function(e,t){return e<=t}),Ph=Vr(function(e,t){if(Wo(t)||Xs(t))return void Gr(t,Wu(t),e);for(var n in t)_c.call(t,n)&&Dn(e,n,t[n])}),Nh=Vr(function(e,t){Gr(t,Vu(t),e)}),Dh=Vr(function(e,t,n,i){Gr(t,Vu(t),e,i)}),Ih=Vr(function(e,t,n,i){Gr(t,Wu(t),e,i)}),Lh=_o(Fn),Ah=or(function(e){return e.push(re,po),s(Dh,re,e)}),Rh=or(function(e){return e.push(re,vo),s(Gh,re,e)}),jh=no(function(e,t,n){e[t]=n},Dl(Ll)),Fh=no(function(e,t,n){_c.call(e,t)?e[t].push(n):e[t]=[n]},Co),Bh=or(ki),zh=Vr(function(e,t,n){Qi(e,t,n)}),Gh=Vr(function(e,t,n,i){Qi(e,t,n,i)}),Hh=_o(function(e,t){var n={};if(null==e)return n;var i=!1;t=v(t,function(t){return t=Or(t,e),i||(i=t.length>1),t}),Gr(e,xo(e),n),i&&(n=zn(n,he|fe|pe,mo));for(var r=t.length;r--;)yr(n,t[r]);return n}),Uh=_o(function(e,t){return null==e?{}:$i(e,t)}),Wh=ho(Wu),Vh=ho(Vu),Yh=Xr(function(e,t,n){return t=t.toLowerCase(),e+(n?ul(t):t)}),Qh=Xr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Kh=Xr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),qh=qr("toLowerCase"),Xh=Xr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),$h=Xr(function(e,t,n){return e+(n?" ":"")+Jh(t)}),Zh=Xr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Jh=qr("toUpperCase"),ef=or(function(e,t){try{return s(e,re,t)}catch(e){return iu(e)?e:new uc(e)}}),tf=_o(function(e,t){return l(t,function(t){t=ia(t),jn(e,t,lh(e[t],e))}),e}),nf=eo(),rf=eo(!0),of=or(function(e,t){return function(n){return ki(n,e,t)}}),af=or(function(e,t){return function(n){return ki(e,n,t)}}),sf=ro(v),uf=ro(d),lf=ro(b),cf=so(),df=so(!0),hf=io(function(e,t){return e+t},0),ff=co("ceil"),pf=io(function(e,t){return e/t},1),vf=co("floor"),mf=io(function(e,t){return e*t},1),gf=co("round"),yf=io(function(e,t){return e-t},0);return n.after=ks,n.ary=Ms,n.assign=Ph,n.assignIn=Nh,n.assignInWith=Dh,n.assignWith=Ih,n.at=Lh,n.before=Ps,n.bind=lh,n.bindAll=tf,n.bindKey=ch,n.castArray=Us,n.chain=es,n.chunk=sa,n.compact=ua,n.concat=la,n.cond=Pl,n.conforms=Nl,n.constant=Dl,n.countBy=eh,n.create=Du,n.curry=Ns,n.curryRight=Ds,n.debounce=Is,n.defaults=Ah,n.defaultsDeep=Rh,n.defer=dh,n.delay=hh,n.difference=Rd,n.differenceBy=jd,n.differenceWith=Fd,n.drop=ca,n.dropRight=da,n.dropRightWhile=ha,n.dropWhile=fa,n.fill=pa,n.filter=ds,n.flatMap=hs,n.flatMapDeep=fs,n.flatMapDepth=ps,n.flatten=ga,n.flattenDeep=ya,n.flattenDepth=ba,n.flip=Ls,n.flow=nf,n.flowRight=rf,n.fromPairs=_a,n.functions=Bu,n.functionsIn=zu,n.groupBy=ih,n.initial=Ta,n.intersection=Bd,n.intersectionBy=zd,n.intersectionWith=Gd,n.invert=jh,n.invertBy=Fh,n.invokeMap=rh,n.iteratee=Al,n.keyBy=oh,n.keys=Wu,n.keysIn=Vu,n.map=ys,n.mapKeys=Yu,n.mapValues=Qu,n.matches=Rl,n.matchesProperty=jl,n.memoize=As,n.merge=zh,n.mergeWith=Gh,n.method=of,n.methodOf=af,n.mixin=Fl,n.negate=Rs,n.nthArg=Gl,n.omit=Hh,n.omitBy=Ku,n.once=js,n.orderBy=bs,n.over=sf,n.overArgs=fh,n.overEvery=uf,n.overSome=lf,n.partial=ph,n.partialRight=vh,n.partition=ah,n.pick=Uh,n.pickBy=qu,n.property=Hl,n.propertyOf=Ul,n.pull=Hd,n.pullAll=ka,n.pullAllBy=Ma,n.pullAllWith=Pa,n.pullAt=Ud,n.range=cf,n.rangeRight=df,n.rearg=mh,n.reject=xs,n.remove=Na,n.rest=Fs,n.reverse=Da,n.sampleSize=Es,n.set=$u,n.setWith=Zu,n.shuffle=Cs,n.slice=Ia,n.sortBy=sh,n.sortedUniq=za,n.sortedUniqBy=Ga,n.split=bl,n.spread=Bs,n.tail=Ha,n.take=Ua,n.takeRight=Wa,n.takeRightWhile=Va,n.takeWhile=Ya,n.tap=ts,n.throttle=zs,n.thru=ns,n.toArray=Eu,n.toPairs=Wh,n.toPairsIn=Vh,n.toPath=Xl,n.toPlainObject=Mu,n.transform=Ju,n.unary=Gs,n.union=Wd,n.unionBy=Vd,n.unionWith=Yd,n.uniq=Qa,n.uniqBy=Ka,n.uniqWith=qa,n.unset=el,n.unzip=Xa,n.unzipWith=$a,n.update=tl,n.updateWith=nl,n.values=il,n.valuesIn=rl,n.without=Qd,n.words=Ml,n.wrap=Hs,n.xor=Kd,n.xorBy=qd,n.xorWith=Xd,n.zip=$d,n.zipObject=Za,n.zipObjectDeep=Ja,n.zipWith=Zd,n.entries=Wh,n.entriesIn=Vh,n.extend=Nh,n.extendWith=Dh,Fl(n,n),n.add=hf,n.attempt=ef,n.camelCase=Yh,n.capitalize=ul,n.ceil=ff,n.clamp=ol,n.clone=Ws,n.cloneDeep=Ys,n.cloneDeepWith=Qs,n.cloneWith=Vs,n.conformsTo=Ks,n.deburr=ll,n.defaultTo=Il,n.divide=pf,n.endsWith=cl,n.eq=qs,n.escape=dl,n.escapeRegExp=hl,n.every=cs,n.find=th,n.findIndex=va,n.findKey=Iu,n.findLast=nh,n.findLastIndex=ma,n.findLastKey=Lu,n.floor=vf,n.forEach=vs,n.forEachRight=ms, -n.forIn=Au,n.forInRight=Ru,n.forOwn=ju,n.forOwnRight=Fu,n.get=Gu,n.gt=gh,n.gte=yh,n.has=Hu,n.hasIn=Uu,n.head=wa,n.identity=Ll,n.includes=gs,n.indexOf=xa,n.inRange=al,n.invoke=Bh,n.isArguments=bh,n.isArray=_h,n.isArrayBuffer=wh,n.isArrayLike=Xs,n.isArrayLikeObject=$s,n.isBoolean=Zs,n.isBuffer=xh,n.isDate=Th,n.isElement=Js,n.isEmpty=eu,n.isEqual=tu,n.isEqualWith=nu,n.isError=iu,n.isFinite=ru,n.isFunction=ou,n.isInteger=au,n.isLength=su,n.isMap=Eh,n.isMatch=cu,n.isMatchWith=du,n.isNaN=hu,n.isNative=fu,n.isNil=vu,n.isNull=pu,n.isNumber=mu,n.isObject=uu,n.isObjectLike=lu,n.isPlainObject=gu,n.isRegExp=Ch,n.isSafeInteger=yu,n.isSet=Oh,n.isString=bu,n.isSymbol=_u,n.isTypedArray=Sh,n.isUndefined=wu,n.isWeakMap=xu,n.isWeakSet=Tu,n.join=Ea,n.kebabCase=Qh,n.last=Ca,n.lastIndexOf=Oa,n.lowerCase=Kh,n.lowerFirst=qh,n.lt=kh,n.lte=Mh,n.max=Zl,n.maxBy=Jl,n.mean=ec,n.meanBy=tc,n.min=nc,n.minBy=ic,n.stubArray=Wl,n.stubFalse=Vl,n.stubObject=Yl,n.stubString=Ql,n.stubTrue=Kl,n.multiply=mf,n.nth=Sa,n.noConflict=Bl,n.noop=zl,n.now=uh,n.pad=fl,n.padEnd=pl,n.padStart=vl,n.parseInt=ml,n.random=sl,n.reduce=_s,n.reduceRight=ws,n.repeat=gl,n.replace=yl,n.result=Xu,n.round=gf,n.runInContext=e,n.sample=Ts,n.size=Os,n.snakeCase=Xh,n.some=Ss,n.sortedIndex=La,n.sortedIndexBy=Aa,n.sortedIndexOf=Ra,n.sortedLastIndex=ja,n.sortedLastIndexBy=Fa,n.sortedLastIndexOf=Ba,n.startCase=$h,n.startsWith=_l,n.subtract=yf,n.sum=rc,n.sumBy=oc,n.template=wl,n.times=ql,n.toFinite=Cu,n.toInteger=Ou,n.toLength=Su,n.toLower=xl,n.toNumber=ku,n.toSafeInteger=Pu,n.toString=Nu,n.toUpper=Tl,n.trim=El,n.trimEnd=Cl,n.trimStart=Ol,n.truncate=Sl,n.unescape=kl,n.uniqueId=$l,n.upperCase=Zh,n.upperFirst=Jh,n.each=vs,n.eachRight=ms,n.first=wa,Fl(n,function(){var e={};return ni(n,function(t,i){_c.call(n.prototype,i)||(e[i]=t)}),e}(),{chain:!1}),n.VERSION=oe,l(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){n[e].placeholder=n}),l(["drop","take"],function(e,t){_.prototype[e]=function(n){n=n===re?1:qc(Ou(n),0);var i=this.__filtered__&&!t?new _(this):this.clone();return i.__filtered__?i.__takeCount__=Xc(n,i.__takeCount__):i.__views__.push({size:Xc(n,Fe),type:e+(i.__dir__<0?"Right":"")}),i},_.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),l(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==Ne||n==Ie;_.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Co(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),l(["head","last"],function(e,t){var n="take"+(t?"Right":"");_.prototype[e]=function(){return this[n](1).value()[0]}}),l(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");_.prototype[e]=function(){return this.__filtered__?new _(this):this[n](1)}}),_.prototype.compact=function(){return this.filter(Ll)},_.prototype.find=function(e){return this.filter(e).head()},_.prototype.findLast=function(e){return this.reverse().find(e)},_.prototype.invokeMap=or(function(e,t){return"function"==typeof e?new _(this):this.map(function(n){return ki(n,e,t)})}),_.prototype.reject=function(e){return this.filter(Rs(Co(e)))},_.prototype.slice=function(e,t){e=Ou(e);var n=this;return n.__filtered__&&(e>0||t<0)?new _(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==re&&(t=Ou(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},_.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},_.prototype.toArray=function(){return this.take(Fe)},ni(_.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=n[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);a&&(n.prototype[t]=function(){var t=this.__wrapped__,u=o?[1]:arguments,l=t instanceof _,c=u[0],d=l||_h(t),h=function(e){var t=a.apply(n,m([e],u));return o&&f?t[0]:t};d&&i&&"function"==typeof c&&1!=c.length&&(l=d=!1);var f=this.__chain__,p=!!this.__actions__.length,v=s&&!f,g=l&&!p;if(!s&&d){t=g?t:new _(this);var y=e.apply(t,u);return y.__actions__.push({func:ns,args:[h],thisArg:re}),new r(y,f)}return v&&g?e.apply(this,u):(y=this.thru(h),v?o?y.value()[0]:y.value():y)})}),l(["pop","push","shift","sort","splice","unshift"],function(e){var t=vc[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var n=this.value();return t.apply(_h(n)?n:[],e)}return this[i](function(n){return t.apply(_h(n)?n:[],e)})}}),ni(_.prototype,function(e,t){var i=n[t];if(i){var r=i.name+"",o=ud[r]||(ud[r]=[]);o.push({name:t,func:i})}}),ud[to(re,ye).name]=[{name:"wrapper",func:re}],_.prototype.clone=M,_.prototype.reverse=$,_.prototype.value=te,n.prototype.at=Jd,n.prototype.chain=is,n.prototype.commit=rs,n.prototype.next=os,n.prototype.plant=ss,n.prototype.reverse=us,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=ls,n.prototype.first=n.prototype.head,Rc&&(n.prototype[Rc]=as),n},Ei=Ti();si._=Ei,i=function(){return Ei}.call(t,n,t,r),!(i!==re&&(r.exports=i))}).call(this)}).call(t,function(){return this}(),n(119)(e))},function(e,t,n){var i=n(82),r=i(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()});e.exports=r},function(e,t,n){var i=n(300),r=i("toLowerCase");e.exports=r},function(e,t,n){function i(e,t){var n={};return t=a(t,3),o(e,function(e,i,o){r(n,t(e,i,o),e)}),n}var r=n(105),o=n(79),a=n(57);e.exports=i},function(e,t,n){function i(e,t){var n={};return t=a(t,3),o(e,function(e,i,o){r(n,i,t(e,i,o))}),n}var r=n(105),o=n(79),a=n(57);e.exports=i},function(e,t,n){function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(i.Cache||r),n}var r=n(189),o="Expected a function";i.Cache=r,e.exports=i},function(e,t,n){var i=n(194),r=n(81),o=r(function(e,t,n){i(e,t,n)});e.exports=o},function(e,t){function n(e){if("function"!=typeof e)throw new TypeError(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var i="Expected a function";e.exports=n},function(e,t,n){var i=n(104),r=n(596),o=n(292),a=n(58),s=n(37),u=n(630),l=n(199),c=n(200),d=1,h=2,f=4,p=l(function(e,t){var n={};if(null==e)return n;var l=!1;t=i(t,function(t){return t=a(t,e),l||(l=t.length>1),t}),s(e,c(e),n),l&&(n=r(n,d|h|f,u));for(var p=t.length;p--;)o(n,t[p]);return n});e.exports=p},function(e,t,n){function i(e,t){return a(e,o(r(t)))}var r=n(57),o=n(717),a=n(331);e.exports=i},function(e,t,n){function i(e,t,n){e=s(e),t=a(t);var i=t?o(e):0;if(!t||i>=t)return e;var c=(t-i)/2;return r(l(c),n)+e+r(u(c),n)}var r=n(198),o=n(108),a=n(68),s=n(15),u=Math.ceil,l=Math.floor;e.exports=i},function(e,t,n){function i(e,t,n){e=s(e),t=a(t);var i=t?o(e):0;return t&&i>>0)?(e=c(e),e&&("string"==typeof t||null!=t&&!u(t))&&(t=r(t),!t&&a(e))?o(l(e),0,n):e.split(t,n)):[]}var r=n(44),o=n(64),a=n(83),s=n(137),u=n(327),l=n(66),c=n(15),d=4294967295;e.exports=i},function(e,t,n){var i=n(82),r=n(208),o=i(function(e,t,n){return e+(n?" ":"")+r(t)});e.exports=o},function(e,t,n){function i(e,t,n){return e=s(e),n=null==n?0:r(a(n),0,e.length),t=o(t),e.slice(n,n+t.length)==t}var r=n(279),o=n(44),a=n(68),s=n(15);e.exports=i},function(e,t,n){e.exports={camelCase:n(685),capitalize:n(322),deburr:n(324),endsWith:n(689),escape:n(325),escapeRegExp:n(692),kebabCase:n(709),lowerCase:n(711),lowerFirst:n(712),pad:n(720),padEnd:n(721),padStart:n(722),parseInt:n(723),repeat:n(726),replace:n(727),snakeCase:n(731),split:n(732),startCase:n(733),startsWith:n(734),template:n(737),templateSettings:n(333),toLower:n(739),toUpper:n(742),trim:n(744),trimEnd:n(745),trimStart:n(746),truncate:n(747),unescape:n(748),upperCase:n(752),upperFirst:n(208),words:n(336)}},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){function i(e,t,n){var i=f.imports._.templateSettings||f;n&&c(e,t,n)&&(t=void 0),e=p(e),t=r({},t,i,s);var w,x,T=r({},t.imports,i.imports,s),E=d(T),C=a(T,E),O=0,S=t.interpolate||b,k="__p += '",M=RegExp((t.escape||b).source+"|"+S.source+"|"+(S===h?y:b).source+"|"+(t.evaluate||b).source+"|$","g"),P="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";e.replace(M,function(t,n,i,r,o,a){return i||(i=r),k+=e.slice(O,a).replace(_,u),n&&(w=!0,k+="' +\n__e("+n+") +\n'"),o&&(x=!0,k+="';\n"+o+";\n__p += '"),i&&(k+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),O=a+t.length,t}),k+="';\n";var N=t.variable;N||(k="with (obj) {\n"+k+"\n}\n"),k=(x?k.replace(v,""):k).replace(m,"$1").replace(g,"$1;"),k="function("+(N||"obj")+") {\n"+(N?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(w?", __e = _.escape":"")+(x?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+k+"return __p\n}";var D=o(function(){return Function(E,P+"return "+k).apply(void 0,C)});if(D.source=k,l(D))throw D;return D}var r=n(140),o=n(684),a=n(196),s=n(303),u=n(635),l=n(326),c=n(137),d=n(25),h=n(317),f=n(333),p=n(15),v=/\b__p \+= '';/g,m=/\b(__p \+=) '' \+/g,g=/(__e\(.*?\)|\b__t\)) \+\n'';/g,y=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,b=/($^)/,_=/['\n\r\u2028\u2029\\]/g;e.exports=i},function(e,t,n){function i(e){if(!e)return 0===e?e:0;if(e=r(e),e===o||e===-o){var t=e<0?-1:1;return t*a}return e===e?e:0}var r=n(740),o=1/0,a=1.7976931348623157e308;e.exports=i},function(e,t,n){function i(e){return r(e).toLowerCase()}var r=n(15);e.exports=i},function(e,t,n){function i(e){if("number"==typeof e)return e;if(o(e))return a;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||c.test(e)?d(e.slice(2),n?2:8):u.test(e)?a:+e}var r=n(24),o=n(142),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,d=parseInt;e.exports=i},function(e,t,n){function i(e){return r(e,o(e))}var r=n(37),o=n(29);e.exports=i},function(e,t,n){function i(e){return r(e).toUpperCase()}var r=n(15);e.exports=i},function(e,t,n){function i(e,t,n){var i=l(e),p=i||c(e)||f(e);if(t=s(t,4),null==n){var v=e&&e.constructor;n=p?i?new v:[]:h(e)&&d(v)?o(u(e)):{}}return(p?r:a)(e,function(e,i,r){return t(n,e,i,r)}),n}var r=n(274),o=n(192),a=n(79),s=n(57),u=n(135),l=n(28),c=n(111),d=n(85),h=n(24),f=n(143);e.exports=i},function(e,t,n){function i(e,t,n){if(e=l(e),e&&(n||void 0===t))return e.replace(c,"");if(!e||!(t=r(t)))return e;var i=u(e),d=u(t),h=s(i,d),f=a(i,d)+1;return o(i,h,f).join("")}var r=n(44),o=n(64),a=n(294),s=n(295),u=n(66),l=n(15),c=/^\s+|\s+$/g;e.exports=i},function(e,t,n){function i(e,t,n){if(e=u(e),e&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var i=s(e),c=a(i,s(t))+1;return o(i,0,c).join("")}var r=n(44),o=n(64),a=n(294),s=n(66),u=n(15),l=/\s+$/;e.exports=i},function(e,t,n){function i(e,t,n){if(e=u(e),e&&(n||void 0===t))return e.replace(l,"");if(!e||!(t=r(t)))return e;var i=s(e),c=a(i,s(t));return o(i,c).join("")}var r=n(44),o=n(64),a=n(295),s=n(66),u=n(15),l=/^\s+/;e.exports=i},function(e,t,n){function i(e,t){var n=f,i=p;if(s(t)){var m="separator"in t?t.separator:m;n="length"in t?d(t.length):n,i="omission"in t?r(t.omission):i}e=h(e);var g=e.length;if(a(e)){var y=c(e);g=y.length}if(n>=g)return e;var b=n-l(i);if(b<1)return i;var _=y?o(y,0,b).join(""):e.slice(0,b);if(void 0===m)return _+i;if(y&&(b+=_.length-b),u(m)){if(e.slice(b).search(m)){var w,x=_;for(m.global||(m=RegExp(m.source,h(v.exec(m))+"g")),m.lastIndex=0;w=m.exec(x);)var T=w.index;_=_.slice(0,void 0===T?b:T)}}else if(e.indexOf(r(m),b)!=b){var E=_.lastIndexOf(m);E>-1&&(_=_.slice(0,E))}return _+i}var r=n(44),o=n(64),a=n(83),s=n(24),u=n(327),l=n(108),c=n(66),d=n(68),h=n(15),f=30,p="...",v=/\w*$/;e.exports=i},function(e,t,n){function i(e){return e=r(e),e&&s.test(e)?e.replace(a,o):e}var r=n(15),o=n(677),a=/&(?:amp|lt|gt|quot|#39);/g,s=RegExp(a.source);e.exports=i},function(e,t,n){function i(e,t){return null==e||r(e,t)}var r=n(292);e.exports=i},function(e,t,n){function i(e,t,n){return null==e?e:r(e,t,o(n))}var r=n(293),o=n(80);e.exports=i},function(e,t,n){function i(e,t,n,i){return i="function"==typeof i?i:void 0,null==e?e:r(e,t,o(n),i)}var r=n(293),o=n(80);e.exports=i},function(e,t,n){var i=n(82),r=i(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()});e.exports=r},function(e,t,n){function i(e){return null==e?[]:r(e,o(e))}var r=n(196),o=n(25);e.exports=i},function(e,t,n){function i(e){return null==e?[]:r(e,o(e))}var r=n(196),o=n(29);e.exports=i},function(e,t,n){"use strict";function i(e){var t=new r(r._61);return t._81=1,t._65=e,t}var r=n(337);e.exports=r;var o=i(!0),a=i(!1),s=i(null),u=i(void 0),l=i(0),c=i("");r.resolve=function(e){if(e instanceof r)return e;if(null===e)return s;if(void 0===e)return u;if(e===!0)return o;if(e===!1)return a;if(0===e)return l;if(""===e)return c;if("object"==typeof e||"function"==typeof e)try{var t=e.then;if("function"==typeof t)return new r(t.bind(e))}catch(e){return new r(function(t,n){n(e)})}return i(e)},r.all=function(e){var t=Array.prototype.slice.call(e);return new r(function(e,n){function i(a,s){if(s&&("object"==typeof s||"function"==typeof s)){if(s instanceof r&&s.then===r.prototype.then){for(;3===s._81;)s=s._65;return 1===s._81?i(a,s._65):(2===s._81&&n(s._65),void s.then(function(e){i(a,e)},n))}var u=s.then;if("function"==typeof u){var l=new r(u.bind(s));return void l.then(function(e){i(a,e)},n)}}t[a]=s,0===--o&&e(t)}if(0===t.length)return e([]);for(var o=t.length,a=0;a=r&&t<=a){var l=(u-o)/(a-r),c=o-l*r;return l*t+c}}return 0}function o(e){if("number"==typeof parseInt(e)){var t=parseInt(e);if(t<360&&t>0)return[t,t]}if("string"==typeof e&&m[e]){var n=m[e];if(n.hueRange)return n.hueRange}return[0,360]}function a(e){return s(e).saturationRange}function s(e){e>=334&&e<=360&&(e-=360);for(var t in m){var n=m[t];if(n.hueRange&&e>=n.hueRange[0]&&e<=n.hueRange[1])return m[t]}return"Color not found"}function u(e){if(null===v)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var t=e[1]||1,n=e[0]||0;v=(9301*v+49297)%233280;var i=v/233280;return Math.floor(n+i*(t-n))}function l(e){function t(e){var t=e.toString(16);return 1==t.length?"0"+t:t}var n=h(e),i="#"+t(n[0])+t(n[1])+t(n[2]);return i}function c(e,t,n){var i=n[0][0],r=n[n.length-1][0],o=n[n.length-1][1],a=n[0][1];m[e]={hueRange:t,lowerBounds:n,saturationRange:[i,r],brightnessRange:[o,a]}}function d(){c("monochrome",null,[[0,0],[100,0]]),c("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),c("orange",[19,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),c("yellow",[47,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),c("green",[63,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),c("blue",[179,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),c("purple",[258,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),c("pink",[283,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function h(e){var t=e[0];0===t&&(t=1),360===t&&(t=359),t/=360;var n=e[1]/100,i=e[2]/100,r=Math.floor(6*t),o=6*t-r,a=i*(1-n),s=i*(1-o*n),u=i*(1-(1-o)*n),l=256,c=256,d=256;switch(r){case 0:l=i,c=u,d=a;break;case 1:l=s,c=i,d=a;break;case 2:l=a,c=i,d=u;break;case 3:l=a,c=s,d=i;break;case 4:l=u,c=a,d=i;break;case 5:l=i,c=a,d=s}var h=[Math.floor(255*l),Math.floor(255*c),Math.floor(255*d)];return h}function f(e){var t=e[0],n=e[1]/100,i=e[2]/100,r=(2-n)*i;return[t,Math.round(n*i/(r<1?r:2-r)*1e4)/100,r/2*100]}function p(e){for(var t=0,n=0;n!==e.length&&!(t>=Number.MAX_SAFE_INTEGER);n++)t+=e.charCodeAt(n);return t}var v=null,m={};d();var g=function(r){if(r=r||{},r.seed&&r.seed===parseInt(r.seed,10))v=r.seed;else if("string"==typeof r.seed)v=p(r.seed);else{if(void 0!==r.seed&&null!==r.seed)throw new TypeError("The seed value must be an integer or string");v=null}var o,a,s;if(null!==r.count&&void 0!==r.count){var u=r.count,l=[];for(r.count=null;u>l.length;)v&&r.seed&&(r.seed+=1),l.push(g(r));return r.count=u,l}return o=e(r),a=t(o,r),s=n(o,a,r),i([o,a,s],r)};return g})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(1),f=i(h),p=n(355),v=i(p),m=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){return f.default.createElement(v.default,(0,o.default)({},this.props,{accordion:!0}),this.props.children)},t}(f.default.Component);t.default=m,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(70),o=i(r),a=n(5),s=i(a),u=n(6),l=i(u),c=n(2),d=i(c),h=n(4),f=i(h),p=n(3),v=i(p),m=n(7),g=i(m),y=n(1),b=i(y),_=n(8),w=n(22),x={onDismiss:b.default.PropTypes.func,closeLabel:b.default.PropTypes.string},T={closeLabel:"Close alert"},E=function(e){function t(){return(0,d.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,v.default)(t,e),t.prototype.renderDismissButton=function(e){return b.default.createElement("button",{type:"button",className:"close",onClick:e,"aria-hidden":"true",tabIndex:"-1"},b.default.createElement("span",null,"×"))},t.prototype.renderSrOnlyDismissButton=function(e,t){return b.default.createElement("button",{type:"button",className:"close sr-only",onClick:e},t)},t.prototype.render=function(){var e,t=this.props,n=t.onDismiss,i=t.closeLabel,r=t.className,o=t.children,a=(0,l.default)(t,["onDismiss","closeLabel","className","children"]),u=(0,_.splitBsProps)(a),c=u[0],d=u[1],h=!!n,f=(0,s.default)({},(0,_.getClassSet)(c),(e={},e[(0,_.prefix)(c,"dismissable")]=h,e));return b.default.createElement("div",(0,s.default)({},d,{role:"alert",className:(0,g.default)(r,f)}),h&&this.renderDismissButton(n),o,h&&this.renderSrOnlyDismissButton(n,i))},t}(b.default.Component);E.propTypes=x,E.defaultProps=T,t.default=(0,_.bsStyles)((0,o.default)(w.State),w.State.INFO,(0,_.bsClass)("alert",E)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b={pullRight:g.default.PropTypes.bool},_={pullRight:!1},w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.hasContent=function(e){var t=!1;return g.default.Children.forEach(e,function(e){t||(e||0===e)&&(t=!0)}),t},t.prototype.render=function(){var e=this.props,t=e.pullRight,n=e.className,i=e.children,r=(0,s.default)(e,["pullRight","className","children"]),a=(0,y.splitBsProps)(r),u=a[0],l=a[1],c=(0,o.default)({},(0,y.getClassSet)(u),{"pull-right":t,hidden:!this.hasContent(i)});return g.default.createElement("span",(0,o.default)({},l,{className:(0,v.default)(n,c)}),i)},t}(g.default.Component);w.propTypes=b,w.defaultProps=_,t.default=(0,y.bsClass)("badge",w),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(340),b=i(y),_=n(8),w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,_.splitBsProps)(n),r=i[0],a=i[1],u=(0,_.getClassSet)(r);return g.default.createElement("ol",(0,o.default)({},a,{role:"navigation","aria-label":"breadcrumbs",className:(0,v.default)(t,u)}))},t}(g.default.Component);w.Item=b.default,t.default=(0,_.bsClass)("breadcrumb",w),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(112),b=i(y),_=n(8),w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,_.splitBsProps)(n),r=i[0],a=i[1],u=(0,_.getClassSet)(r);return g.default.createElement("div",(0,o.default)({},a,{role:"toolbar",className:(0,v.default)(t,u)}))},t}(g.default.Component);t.default=(0,_.bsClass)("btn-toolbar",(0,_.bsSizes)(b.default.SIZES,w)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(765),b=i(y),_=n(342),w=i(_),x=n(212),T=i(x),E=n(38),C=i(E),O=n(8),S=n(26),k=i(S),M={slide:g.default.PropTypes.bool,indicators:g.default.PropTypes.bool,interval:g.default.PropTypes.number,controls:g.default.PropTypes.bool,pauseOnHover:g.default.PropTypes.bool,wrap:g.default.PropTypes.bool,onSelect:g.default.PropTypes.func,onSlideEnd:g.default.PropTypes.func,activeIndex:g.default.PropTypes.number,defaultActiveIndex:g.default.PropTypes.number,direction:g.default.PropTypes.oneOf(["prev","next"]),prevIcon:g.default.PropTypes.node,prevLabel:g.default.PropTypes.string,nextIcon:g.default.PropTypes.node,nextLabel:g.default.PropTypes.string},P={slide:!0,interval:5e3,pauseOnHover:!0,wrap:!0,indicators:!0,controls:!0,prevIcon:g.default.createElement(T.default,{glyph:"chevron-left"}),prevLabel:"Previous",nextIcon:g.default.createElement(T.default,{glyph:"chevron-right"}),nextLabel:"Next"},N=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));r.handleMouseOver=r.handleMouseOver.bind(r),r.handleMouseOut=r.handleMouseOut.bind(r),r.handlePrev=r.handlePrev.bind(r),r.handleNext=r.handleNext.bind(r),r.handleItemAnimateOutEnd=r.handleItemAnimateOutEnd.bind(r);var o=n.defaultActiveIndex;return r.state={activeIndex:null!=o?o:0,previousActiveIndex:null,direction:null},r.isUnmounted=!1,r}return(0,f.default)(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.getActiveIndex();null!=e.activeIndex&&e.activeIndex!==t&&(clearTimeout(this.timeout),this.setState({previousActiveIndex:t,direction:null!=e.direction?e.direction:this.getDirection(t,e.activeIndex)}))},t.prototype.componentDidMount=function(){this.waitForNext()},t.prototype.componentWillUnmount=function(){clearTimeout(this.timeout),this.isUnmounted=!0},t.prototype.handleMouseOver=function(){this.props.pauseOnHover&&this.pause()},t.prototype.handleMouseOut=function(){this.isPaused&&this.play()},t.prototype.handlePrev=function(e){var t=this.getActiveIndex()-1;if(t<0){if(!this.props.wrap)return;t=k.default.count(this.props.children)-1}this.select(t,e,"prev")},t.prototype.handleNext=function(e){var t=this.getActiveIndex()+1,n=k.default.count(this.props.children);if(t>n-1){if(!this.props.wrap)return;t=0}this.select(t,e,"next")},t.prototype.handleItemAnimateOutEnd=function(){var e=this;this.setState({previousActiveIndex:null,direction:null},function(){e.waitForNext(),e.props.onSlideEnd&&e.props.onSlideEnd()})},t.prototype.getActiveIndex=function(){var e=this.props.activeIndex;return null!=e?e:this.state.activeIndex},t.prototype.getDirection=function(e,t){return e===t?null:e>t?"prev":"next"},t.prototype.select=function(e,t,n){if(clearTimeout(this.timeout),!this.isUnmounted){var i=this.props.slide?this.getActiveIndex():null;n=n||this.getDirection(i,e);var r=this.props.onSelect;if(r&&(r.length>1?(t?(t.persist(),t.direction=n):t={direction:n},r(e,t)):r(e)),null==this.props.activeIndex&&e!==i){if(null!=this.state.previousActiveIndex)return;this.setState({activeIndex:e,previousActiveIndex:i,direction:n})}}},t.prototype.waitForNext=function(){var e=this.props,t=e.slide,n=e.interval,i=e.activeIndex;!this.isPaused&&t&&n&&null==i&&(this.timeout=setTimeout(this.handleNext,n))},t.prototype.pause=function(){this.isPaused=!0,clearTimeout(this.timeout)},t.prototype.play=function(){this.isPaused=!1,this.waitForNext()},t.prototype.renderIndicators=function(e,t,n){var i=this,r=[];return k.default.forEach(e,function(e,n){r.push(g.default.createElement("li",{key:n,className:n===t?"active":null,onClick:function(e){return i.select(n,e)}})," ")}),g.default.createElement("ol",{className:(0,O.prefix)(n,"indicators")},r)},t.prototype.renderControls=function(e){var t=e.wrap,n=e.children,i=e.activeIndex,r=e.prevIcon,o=e.nextIcon,a=e.bsProps,s=e.prevLabel,u=e.nextLabel,l=(0,O.prefix)(a,"control"),c=k.default.count(n);return[(t||0!==i)&&g.default.createElement(C.default,{key:"prev",className:(0,v.default)(l,"left"),onClick:this.handlePrev},r,s&&g.default.createElement("span",{className:"sr-only"},s)),(t||i!==c-1)&&g.default.createElement(C.default,{key:"next",className:(0,v.default)(l,"right"),onClick:this.handleNext},o,u&&g.default.createElement("span",{className:"sr-only"},u))]},t.prototype.render=function(){var e=this,t=this.props,n=t.slide,i=t.indicators,r=t.controls,a=t.wrap,u=t.prevIcon,l=t.prevLabel,c=t.nextIcon,d=t.nextLabel,h=t.className,f=t.children,p=(0,s.default)(t,["slide","indicators","controls","wrap","prevIcon","prevLabel","nextIcon","nextLabel","className","children"]),y=this.state,b=y.previousActiveIndex,_=y.direction,w=(0,O.splitBsPropsAndOmit)(p,["interval","pauseOnHover","onSelect","onSlideEnd","activeIndex","defaultActiveIndex","direction"]),x=w[0],T=w[1],E=this.getActiveIndex(),C=(0,o.default)({},(0,O.getClassSet)(x),{slide:n});return g.default.createElement("div",(0,o.default)({},T,{className:(0,v.default)(h,C),onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut}),i&&this.renderIndicators(f,E,x),g.default.createElement("div",{className:(0,O.prefix)(x,"inner")},k.default.map(f,function(t,i){var r=i===E,o=n&&i===b;return(0,m.cloneElement)(t,{active:r,index:i,animateOut:o,animateIn:r&&null!=b&&n,direction:_,onAnimateOutEnd:o?e.handleItemAnimateOutEnd:null})})),r&&this.renderControls({wrap:a,children:f,activeIndex:E,prevIcon:u,prevLabel:l,nextIcon:c,nextLabel:d,bsProps:x}))},t}(g.default.Component);N.propTypes=M,N.defaultProps=P,N.Caption=b.default,N.Item=w.default,t.default=(0,O.bsClass)("carousel",N),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(8),w={componentClass:b.default},x={componentClass:"div"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return g.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(g.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("carousel-caption",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(33),b=(i(y),n(8)),_={inline:g.default.PropTypes.bool,disabled:g.default.PropTypes.bool,validationState:g.default.PropTypes.oneOf(["success","warning","error",null]),inputRef:g.default.PropTypes.func},w={inline:!1,disabled:!1},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.inline,n=e.disabled,i=e.validationState,r=e.inputRef,a=e.className,u=e.style,l=e.children,c=(0,s.default)(e,["inline","disabled","validationState","inputRef","className","style","children"]),d=(0,b.splitBsProps)(c),h=d[0],f=d[1],p=g.default.createElement("input",(0,o.default)({},f,{ref:r,type:"checkbox",disabled:n}));if(t){var m,y=(m={},m[(0,b.prefix)(h,"inline")]=!0,m.disabled=n, -m);return g.default.createElement("label",{className:(0,v.default)(a,y),style:u},p,l)}var _=(0,o.default)({},(0,b.getClassSet)(h),{disabled:n});return i&&(_["has-"+i]=!0),g.default.createElement("div",{className:(0,v.default)(a,_),style:u},g.default.createElement("label",null,p,l))},t}(g.default.Component);x.propTypes=_,x.defaultProps=w,t.default=(0,b.bsClass)("checkbox",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(8),w=n(357),x=i(w),T=n(22),E={componentClass:b.default,visibleXsBlock:g.default.PropTypes.bool,visibleSmBlock:g.default.PropTypes.bool,visibleMdBlock:g.default.PropTypes.bool,visibleLgBlock:g.default.PropTypes.bool},C={componentClass:"div"},O=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return T.DEVICE_SIZES.forEach(function(e){var t="visible"+(0,x.default)(e)+"Block";u[t]&&(l["visible-"+e+"-block"]=!0),delete u[t]}),g.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(g.default.Component);O.propTypes=E,O.defaultProps=C,t.default=(0,_.bsClass)("clearfix",O),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(8),w=n(22),x={componentClass:b.default,xs:g.default.PropTypes.number,sm:g.default.PropTypes.number,md:g.default.PropTypes.number,lg:g.default.PropTypes.number,xsHidden:g.default.PropTypes.bool,smHidden:g.default.PropTypes.bool,mdHidden:g.default.PropTypes.bool,lgHidden:g.default.PropTypes.bool,xsOffset:g.default.PropTypes.number,smOffset:g.default.PropTypes.number,mdOffset:g.default.PropTypes.number,lgOffset:g.default.PropTypes.number,xsPush:g.default.PropTypes.number,smPush:g.default.PropTypes.number,mdPush:g.default.PropTypes.number,lgPush:g.default.PropTypes.number,xsPull:g.default.PropTypes.number,smPull:g.default.PropTypes.number,mdPull:g.default.PropTypes.number,lgPull:g.default.PropTypes.number},T={componentClass:"div"},E=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=[];return w.DEVICE_SIZES.forEach(function(e){function t(t,n){var i=""+e+t,r=u[i];null!=r&&l.push((0,_.prefix)(a,""+e+n+"-"+r)),delete u[i]}t("",""),t("Offset","-offset"),t("Push","-push"),t("Pull","-pull");var n=e+"Hidden";u[n]&&l.push("hidden-"+e),delete u[n]}),g.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(g.default.Component);E.propTypes=x,E.defaultProps=T,t.default=(0,_.bsClass)("col",E),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(33),b=(i(y),n(8)),_={htmlFor:g.default.PropTypes.string,srOnly:g.default.PropTypes.bool},w={srOnly:!1},x={$bs_formGroup:g.default.PropTypes.object},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.context.$bs_formGroup,t=e&&e.controlId,n=this.props,i=n.htmlFor,r=void 0===i?t:i,a=n.srOnly,u=n.className,l=(0,s.default)(n,["htmlFor","srOnly","className"]),c=(0,b.splitBsProps)(l),d=c[0],h=c[1],f=(0,o.default)({},(0,b.getClassSet)(d),{"sr-only":a});return g.default.createElement("label",(0,o.default)({},h,{htmlFor:r,className:(0,v.default)(u,f)}))},t}(g.default.Component);T.propTypes=_,T.defaultProps=w,T.contextTypes=x,t.default=(0,b.bsClass)("control-label",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(5),f=i(h),p=n(1),v=i(p),m=n(144),g=i(m),y=n(146),b=i(y),_=(0,f.default)({},g.default.propTypes,{bsStyle:v.default.PropTypes.string,bsSize:v.default.PropTypes.string,title:v.default.PropTypes.node.isRequired,noCaret:v.default.PropTypes.bool,children:v.default.PropTypes.node}),w=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.bsSize,n=e.bsStyle,i=e.title,r=e.children,a=(0,o.default)(e,["bsSize","bsStyle","title","children"]),s=(0,b.default)(a,g.default.ControlledComponent),u=s[0],l=s[1];return v.default.createElement(g.default,(0,f.default)({},u,{bsSize:t,bsStyle:n}),v.default.createElement(g.default.Toggle,(0,f.default)({},l,{bsSize:t,bsStyle:n}),i),v.default.createElement(g.default.Menu,null,r))},t}(v.default.Component);w.propTypes=_,t.default=w,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(429),l=i(u),c=n(2),d=i(c),h=n(4),f=i(h),p=n(3),v=i(p),m=n(7),g=i(m),y=n(187),b=i(y),_=n(1),w=i(_),x=n(27),T=i(x),E=n(379),C=i(E),O=n(8),S=n(21),k=i(S),M=n(26),P=i(M),N={open:w.default.PropTypes.bool,pullRight:w.default.PropTypes.bool,onClose:w.default.PropTypes.func,labelledBy:w.default.PropTypes.oneOfType([w.default.PropTypes.string,w.default.PropTypes.number]),onSelect:w.default.PropTypes.func,rootCloseEvent:w.default.PropTypes.oneOf(["click","mousedown"])},D={bsRole:"menu",pullRight:!1},I=function(e){function t(n){(0,d.default)(this,t);var i=(0,f.default)(this,e.call(this,n));return i.handleRootClose=i.handleRootClose.bind(i),i.handleKeyDown=i.handleKeyDown.bind(i),i}return(0,v.default)(t,e),t.prototype.handleRootClose=function(e){this.props.onClose(e,{source:"rootClose"})},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case b.default.codes.down:this.focusNext(),e.preventDefault();break;case b.default.codes.up:this.focusPrevious(),e.preventDefault();break;case b.default.codes.esc:case b.default.codes.tab:this.props.onClose(e,{source:"keydown"})}},t.prototype.getItemsAndActiveIndex=function(){var e=this.getFocusableMenuItems(),t=e.indexOf(document.activeElement);return{items:e,activeIndex:t}},t.prototype.getFocusableMenuItems=function(){var e=T.default.findDOMNode(this);return e?(0,l.default)(e.querySelectorAll('[tabIndex="-1"]')):[]},t.prototype.focusNext=function(){var e=this.getItemsAndActiveIndex(),t=e.items,n=e.activeIndex;if(0!==t.length){var i=n===t.length-1?0:n+1;t[i].focus()}},t.prototype.focusPrevious=function(){var e=this.getItemsAndActiveIndex(),t=e.items,n=e.activeIndex;if(0!==t.length){var i=0===n?t.length-1:n-1;t[i].focus()}},t.prototype.render=function(){var e,t=this,n=this.props,i=n.open,r=n.pullRight,a=n.labelledBy,u=n.onSelect,l=n.className,c=n.rootCloseEvent,d=n.children,h=(0,s.default)(n,["open","pullRight","labelledBy","onSelect","className","rootCloseEvent","children"]),f=(0,O.splitBsPropsAndOmit)(h,["onClose"]),p=f[0],v=f[1],m=(0,o.default)({},(0,O.getClassSet)(p),(e={},e[(0,O.prefix)(p,"right")]=r,e));return w.default.createElement(C.default,{disabled:!i,onRootClose:this.handleRootClose,event:c},w.default.createElement("ul",(0,o.default)({},v,{role:"menu",className:(0,g.default)(l,m),"aria-labelledby":a}),P.default.map(d,function(e){return w.default.cloneElement(e,{onKeyDown:(0,k.default)(e.props.onKeyDown,t.handleKeyDown),onSelect:(0,k.default)(e.props.onSelect,u)})})))},t}(w.default.Component);I.propTypes=N,I.defaultProps=D,t.default=(0,O.bsClass)("dropdown-menu",I),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(8),w={horizontal:g.default.PropTypes.bool,inline:g.default.PropTypes.bool,componentClass:b.default},x={horizontal:!1,inline:!1,componentClass:"form"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.horizontal,n=e.inline,i=e.componentClass,r=e.className,a=(0,s.default)(e,["horizontal","inline","componentClass","className"]),u=(0,_.splitBsProps)(a),l=u[0],c=u[1],d=[];return t&&d.push((0,_.prefix)(l,"horizontal")),n&&d.push((0,_.prefix)(l,"inline")),g.default.createElement(i,(0,o.default)({},c,{className:(0,v.default)(r,d)}))},t}(g.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("form",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(33),w=(i(_),n(774)),x=i(w),T=n(775),E=i(T),C=n(8),O=n(22),S={componentClass:b.default,type:g.default.PropTypes.string,id:g.default.PropTypes.string,inputRef:g.default.PropTypes.func},k={componentClass:"input"},M={$bs_formGroup:g.default.PropTypes.object},P=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.context.$bs_formGroup,t=e&&e.controlId,n=this.props,i=n.componentClass,r=n.type,a=n.id,u=void 0===a?t:a,l=n.inputRef,c=n.className,d=n.bsSize,h=(0,s.default)(n,["componentClass","type","id","inputRef","className","bsSize"]),f=(0,C.splitBsProps)(h),p=f[0],m=f[1],y=void 0;if("file"!==r&&(y=(0,C.getClassSet)(p)),d){var b=O.SIZE_MAP[d]||d;y[(0,C.prefix)({bsClass:"input"},b)]=!0}return g.default.createElement(i,(0,o.default)({},m,{type:r,id:u,ref:l,className:(0,v.default)(c,y)}))},t}(g.default.Component);P.propTypes=S,P.defaultProps=k,P.contextTypes=M,P.Feedback=x.default,P.Static=E.default,t.default=(0,C.bsClass)("form-control",(0,C.bsSizes)([O.Size.SMALL,O.Size.LARGE],P)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(5),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(212),b=i(y),_=n(8),w={bsRole:"feedback"},x={$bs_formGroup:g.default.PropTypes.object},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.getGlyph=function(e){switch(e){case"success":return"ok";case"warning":return"warning-sign";case"error":return"remove";default:return null}},t.prototype.renderDefaultFeedback=function(e,t,n,i){var r=this.getGlyph(e&&e.validationState);return r?g.default.createElement(b.default,(0,s.default)({},i,{glyph:r,className:(0,v.default)(t,n)})):null},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=(0,o.default)(e,["className","children"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);if(!n)return this.renderDefaultFeedback(this.context.$bs_formGroup,t,l,u);var c=g.default.Children.only(n);return g.default.cloneElement(c,(0,s.default)({},u,{className:(0,v.default)(c.props.className,t,l)}))},t}(g.default.Component);T.defaultProps=w,T.contextTypes=x,t.default=(0,_.bsClass)("form-control-feedback",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(8),w={componentClass:b.default},x={componentClass:"p"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return g.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(g.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("form-control-static",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b=n(22),_=n(26),w=i(_),x={controlId:g.default.PropTypes.string,validationState:g.default.PropTypes.oneOf(["success","warning","error",null])},T={$bs_formGroup:g.default.PropTypes.object.isRequired},E=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.controlId,n=e.validationState;return{$bs_formGroup:{controlId:t,validationState:n}}},t.prototype.hasFeedback=function(e){var t=this;return w.default.some(e,function(e){return"feedback"===e.props.bsRole||e.props.children&&t.hasFeedback(e.props.children)})},t.prototype.render=function(){var e=this.props,t=e.validationState,n=e.className,i=e.children,r=(0,s.default)(e,["validationState","className","children"]),a=(0,y.splitBsPropsAndOmit)(r,["controlId"]),u=a[0],l=a[1],c=(0,o.default)({},(0,y.getClassSet)(u),{"has-feedback":this.hasFeedback(i)});return t&&(c["has-"+t]=!0),g.default.createElement("div",(0,o.default)({},l,{className:(0,v.default)(n,c)}),i)},t}(g.default.Component);E.propTypes=x,E.childContextTypes=T,t.default=(0,y.bsClass)("form-group",(0,y.bsSizes)([b.Size.LARGE,b.Size.SMALL],E)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,y.splitBsProps)(n),r=i[0],a=i[1],u=(0,y.getClassSet)(r);return g.default.createElement("span",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(g.default.Component);t.default=(0,y.bsClass)("help-block",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b={responsive:g.default.PropTypes.bool,rounded:g.default.PropTypes.bool,circle:g.default.PropTypes.bool,thumbnail:g.default.PropTypes.bool},_={responsive:!1,rounded:!1,circle:!1,thumbnail:!1},w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.responsive,i=t.rounded,r=t.circle,a=t.thumbnail,u=t.className,l=(0,s.default)(t,["responsive","rounded","circle","thumbnail","className"]),c=(0,y.splitBsProps)(l),d=c[0],h=c[1],f=(e={},e[(0,y.prefix)(d,"responsive")]=n,e[(0,y.prefix)(d,"rounded")]=i,e[(0,y.prefix)(d,"circle")]=r,e[(0,y.prefix)(d,"thumbnail")]=a,e);return g.default.createElement("img",(0,o.default)({},h,{className:(0,v.default)(u,f)}))},t}(g.default.Component);w.propTypes=b,w.defaultProps=_,t.default=(0,y.bsClass)("img",w),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(780),b=i(y),_=n(781),w=i(_),x=n(8),T=n(22),E=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,x.splitBsProps)(n),r=i[0],a=i[1],u=(0,x.getClassSet)(r);return g.default.createElement("span",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(g.default.Component);E.Addon=b.default,E.Button=w.default,t.default=(0,x.bsClass)("input-group",(0,x.bsSizes)([T.Size.LARGE,T.Size.SMALL],E)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,y.splitBsProps)(n),r=i[0],a=i[1],u=(0,y.getClassSet)(r);return g.default.createElement("span",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(g.default.Component);t.default=(0,y.bsClass)("input-group-addon",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,y.splitBsProps)(n),r=i[0],a=i[1],u=(0,y.getClassSet)(r);return g.default.createElement("span",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(g.default.Component);t.default=(0,y.bsClass)("input-group-btn",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(1),v=i(p),m=n(7),g=i(m),y=n(14),b=i(y),_=n(8),w={componentClass:b.default},x={componentClass:"div"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return v.default.createElement(t,(0,o.default)({},u,{className:(0,g.default)(n,l)}))},t}(v.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("jumbotron",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(70),o=i(r),a=n(5),s=i(a),u=n(6),l=i(u),c=n(2),d=i(c),h=n(4),f=i(h),p=n(3),v=i(p),m=n(7),g=i(m),y=n(1),b=i(y),_=n(8),w=n(22),x=function(e){function t(){return(0,d.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,v.default)(t,e),t.prototype.hasContent=function(e){var t=!1;return b.default.Children.forEach(e,function(e){t||(e||0===e)&&(t=!0)}),t},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=(0,l.default)(e,["className","children"]),r=(0,_.splitBsProps)(i),o=r[0],a=r[1],u=(0,s.default)({},(0,_.getClassSet)(o),{hidden:!this.hasContent(n)});return b.default.createElement("span",(0,s.default)({},a,{className:(0,g.default)(t,u)}),n)},t}(b.default.Component);t.default=(0,_.bsClass)("label",(0,_.bsStyles)([].concat((0,o.default)(w.State),[w.Style.DEFAULT,w.Style.PRIMARY]),w.Style.DEFAULT,x)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return e?C.default.some(e,function(e){return e.type!==x.default||e.props.href||e.props.onClick})?"div":"ul":"div"}t.__esModule=!0;var o=n(5),a=i(o),s=n(6),u=i(s),l=n(2),c=i(l),d=n(4),h=i(d),f=n(3),p=i(f),v=n(7),m=i(v),g=n(1),y=i(g),b=n(14),_=i(b),w=n(345),x=i(w),T=n(8),E=n(26),C=i(E),O={componentClass:_.default},S=function(e){function t(){return(0,c.default)(this,t),(0,h.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.componentClass,i=void 0===n?r(t):n,o=e.className,s=(0,u.default)(e,["children","componentClass","className"]),l=(0,T.splitBsProps)(s),c=l[0],d=l[1],h=(0,T.getClassSet)(c),f="ul"===i&&C.default.every(t,function(e){return e.type===x.default});return y.default.createElement(i,(0,a.default)({},d,{className:(0,m.default)(o,h)}),f?C.default.map(t,function(e){return(0,g.cloneElement)(e,{listItem:!0})}):t)},t}(y.default.Component);S.propTypes=O,t.default=(0,T.bsClass)("list-group",S),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(8),w={componentClass:b.default},x={componentClass:"div"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return g.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(g.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("media-body",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(8),w={componentClass:b.default},x={componentClass:"h4"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return g.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(g.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("media-heading",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(213),b=i(y),_=n(8),w={align:g.default.PropTypes.oneOf(["top","middle","bottom"])},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.align,n=e.className,i=(0,s.default)(e,["align","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return t&&(l[(0,_.prefix)(b.default.defaultProps,t)]=!0),g.default.createElement("div",(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(g.default.Component);x.propTypes=w,t.default=(0,_.bsClass)("media-left",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,y.splitBsProps)(n),r=i[0],a=i[1],u=(0,y.getClassSet)(r);return g.default.createElement("ul",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(g.default.Component);t.default=(0,y.bsClass)("media-list",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,y.splitBsProps)(n),r=i[0],a=i[1],u=(0,y.getClassSet)(r);return g.default.createElement("li",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(g.default.Component);t.default=(0,y.bsClass)("media",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(213),b=i(y),_=n(8),w={align:g.default.PropTypes.oneOf(["top","middle","bottom"])},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.align,n=e.className,i=(0,s.default)(e,["align","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return t&&(l[(0,_.prefix)(b.default.defaultProps,t)]=!0),g.default.createElement("div",(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(g.default.Component);x.propTypes=w,t.default=(0,_.bsClass)("media-right",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(152),b=i(y),_=n(38),w=i(_),x=n(8),T=n(21),E=i(T),C={active:g.default.PropTypes.bool,disabled:g.default.PropTypes.bool,divider:(0,b.default)(g.default.PropTypes.bool,function(e){var t=e.divider,n=e.children;return t&&n?new Error("Children will not be rendered for dividers"):null}),eventKey:g.default.PropTypes.any,header:g.default.PropTypes.bool,href:g.default.PropTypes.string,onClick:g.default.PropTypes.func,onSelect:g.default.PropTypes.func},O={divider:!1,disabled:!1,header:!1},S=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));return r.handleClick=r.handleClick.bind(r),r}return(0,f.default)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.href,i=t.disabled,r=t.onSelect,o=t.eventKey;n&&!i||e.preventDefault(),i||r&&r(o,e)},t.prototype.render=function(){var e=this.props,t=e.active,n=e.disabled,i=e.divider,r=e.header,a=e.onClick,u=e.className,l=e.style,c=(0,s.default)(e,["active","disabled","divider","header","onClick","className","style"]),d=(0,x.splitBsPropsAndOmit)(c,["eventKey","onSelect"]),h=d[0],f=d[1];return i?(f.children=void 0,g.default.createElement("li",(0,o.default)({},f,{role:"separator",className:(0,v.default)(u,"divider"),style:l}))):r?g.default.createElement("li",(0,o.default)({},f,{role:"heading",className:(0,v.default)(u,(0,x.prefix)(h,"header")),style:l})):g.default.createElement("li",{role:"presentation",className:(0,v.default)(u,{active:t,disabled:n}),style:l},g.default.createElement(w.default,(0,o.default)({},f,{role:"menuitem",tabIndex:"-1",onClick:(0,E.default)(a,this.handleClick)})))},t}(g.default.Component);S.propTypes=C,S.defaultProps=O,t.default=(0,x.bsClass)("dropdown",S),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(5),f=i(h),p=n(7),v=i(p),m=n(502),g=i(m),y=n(75),b=i(y),_=n(52),w=i(_),x=n(263),T=i(x),E=n(1),C=i(E),O=n(27),S=i(O),k=n(886),M=i(k),P=n(382),N=i(P),D=n(14),I=i(D),L=n(145),A=i(L),R=n(346),j=i(R),F=n(793),B=i(F),z=n(347),G=i(z),H=n(348),U=i(H),W=n(349),V=i(W),Y=n(8),Q=n(21),K=i(Q),q=n(146),X=i(q),$=n(22),Z=(0,f.default)({},M.default.propTypes,B.default.propTypes,{backdrop:C.default.PropTypes.oneOf(["static",!0,!1]),keyboard:C.default.PropTypes.bool,animation:C.default.PropTypes.bool,dialogComponentClass:I.default,autoFocus:C.default.PropTypes.bool,enforceFocus:C.default.PropTypes.bool,restoreFocus:C.default.PropTypes.bool,show:C.default.PropTypes.bool,onHide:C.default.PropTypes.func,onEnter:C.default.PropTypes.func,onEntering:C.default.PropTypes.func,onEntered:C.default.PropTypes.func,onExit:C.default.PropTypes.func,onExiting:C.default.PropTypes.func,onExited:C.default.PropTypes.func,container:M.default.propTypes.container}),J=(0,f.default)({},M.default.defaultProps,{animation:!0,dialogComponentClass:B.default}),ee={$bs_modal:C.default.PropTypes.shape({onHide:C.default.PropTypes.func})},te=function(e){function t(n,i){(0,s.default)(this,t);var r=(0,l.default)(this,e.call(this,n,i));return r.handleEntering=r.handleEntering.bind(r),r.handleExited=r.handleExited.bind(r),r.handleWindowResize=r.handleWindowResize.bind(r),r.handleDialogClick=r.handleDialogClick.bind(r),r.state={style:{}},r}return(0,d.default)(t,e),t.prototype.getChildContext=function(){return{$bs_modal:{onHide:this.props.onHide}}},t.prototype.componentWillUnmount=function(){this.handleExited()},t.prototype.handleEntering=function(){g.default.on(window,"resize",this.handleWindowResize),this.updateStyle()},t.prototype.handleExited=function(){g.default.off(window,"resize",this.handleWindowResize)},t.prototype.handleWindowResize=function(){this.updateStyle()},t.prototype.handleDialogClick=function(e){e.target===e.currentTarget&&this.props.onHide()},t.prototype.updateStyle=function(){if(w.default){var e=this._modal.getDialogElement(),t=e.scrollHeight,n=(0,b.default)(e),i=(0,N.default)(S.default.findDOMNode(this.props.container||n.body)),r=t>n.documentElement.clientHeight;this.setState({style:{paddingRight:i&&!r?(0,T.default)():void 0,paddingLeft:!i&&r?(0,T.default)():void 0}})}},t.prototype.render=function(){var e=this,n=this.props,i=n.backdrop,r=n.animation,a=n.show,s=n.dialogComponentClass,u=n.className,l=n.style,c=n.children,d=n.onEntering,h=n.onExited,p=(0,o.default)(n,["backdrop","animation","show","dialogComponentClass","className","style","children","onEntering","onExited"]),m=(0,X.default)(p,M.default),g=m[0],y=m[1],b=a&&!r&&"in";return C.default.createElement(M.default,(0,f.default)({},g,{ref:function(t){e._modal=t},show:a,onEntering:(0,K.default)(d,this.handleEntering),onExited:(0,K.default)(h,this.handleExited),backdrop:i,backdropClassName:(0,v.default)((0,Y.prefix)(p,"backdrop"),b),containerClassName:(0,Y.prefix)(p,"open"),transition:r?A.default:void 0,dialogTransitionTimeout:t.TRANSITION_DURATION,backdropTransitionTimeout:t.BACKDROP_TRANSITION_DURATION}),C.default.createElement(s,(0,f.default)({},y,{style:(0,f.default)({},this.state.style,l),className:(0,v.default)(u,b),onClick:i===!0?this.handleDialogClick:null}),c))},t}(C.default.Component);te.propTypes=Z,te.defaultProps=J,te.childContextTypes=ee,te.Body=j.default,te.Header=U.default,te.Title=V.default,te.Footer=G.default,te.Dialog=B.default,te.TRANSITION_DURATION=300,te.BACKDROP_TRANSITION_DURATION=150,t.default=(0,Y.bsClass)("modal",(0,Y.bsSizes)([$.Size.LARGE,$.Size.SMALL],te)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b=n(22),_={dialogClassName:g.default.PropTypes.string},w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.dialogClassName,i=t.className,r=t.style,a=t.children,u=(0,s.default)(t,["dialogClassName","className","style","children"]),l=(0,y.splitBsProps)(u),c=l[0],d=l[1],h=(0,y.prefix)(c),f=(0,o.default)({display:"block"},r),p=(0,o.default)({},(0,y.getClassSet)(c),(e={},e[h]=!1,e[(0,y.prefix)(c,"dialog")]=!0,e));return g.default.createElement("div",(0,o.default)({},d,{tabIndex:"-1",role:"dialog",style:f,className:(0,v.default)(i,h)}),g.default.createElement("div",{className:(0,v.default)(n,p)},g.default.createElement("div",{className:(0,y.prefix)(c,"content"),role:"document"},a)))},t}(g.default.Component);w.propTypes=_,t.default=(0,y.bsClass)("modal",(0,y.bsSizes)([b.Size.LARGE,b.Size.SMALL],w)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(5),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(144),b=i(y),_=n(146),w=i(_),x=n(26),T=i(x),E=(0, -f.default)({},b.default.propTypes,{title:g.default.PropTypes.node.isRequired,noCaret:g.default.PropTypes.bool,active:g.default.PropTypes.bool,children:g.default.PropTypes.node}),C=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.isActive=function(e,t,n){var i=e.props,r=this;return!!(i.active||null!=t&&i.eventKey===t||n&&i.href===n)||(!!T.default.some(i.children,function(e){return r.isActive(e,t,n)})||i.active)},t.prototype.render=function(){var e=this,t=this.props,n=t.title,i=t.activeKey,r=t.activeHref,a=t.className,s=t.style,u=t.children,l=(0,o.default)(t,["title","activeKey","activeHref","className","style","children"]),c=this.isActive(this,i,r);delete l.active,delete l.eventKey;var d=(0,w.default)(l,b.default.ControlledComponent),h=d[0],p=d[1];return g.default.createElement(b.default,(0,f.default)({},h,{componentClass:"li",className:(0,v.default)(a,{active:c}),style:s}),g.default.createElement(b.default.Toggle,(0,f.default)({},p,{useAnchor:!0}),n),g.default.createElement(b.default.Menu,null,T.default.map(u,function(t){return g.default.cloneElement(t,{active:e.isActive(t,i,r)})})))},t}(g.default.Component);C.propTypes=E,t.default=C,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i=function(e,n){var i=n.$bs_navbar,r=void 0===i?{bsClass:"navbar"}:i,o=e.componentClass,s=e.className,l=e.pullRight,c=e.pullLeft,d=(0,u.default)(e,["componentClass","className","pullRight","pullLeft"]);return y.default.createElement(o,(0,a.default)({},d,{className:(0,m.default)(s,(0,I.prefix)(r,t),l&&(0,I.prefix)(r,"right"),c&&(0,I.prefix)(r,"left"))}))};return i.displayName=n,i.propTypes={componentClass:_.default,pullRight:y.default.PropTypes.bool,pullLeft:y.default.PropTypes.bool},i.defaultProps={componentClass:e,pullRight:!1,pullLeft:!1},i.contextTypes={$bs_navbar:g.PropTypes.shape({bsClass:g.PropTypes.string})},i}t.__esModule=!0;var o=n(5),a=i(o),s=n(6),u=i(s),l=n(2),c=i(l),d=n(4),h=i(d),f=n(3),p=i(f),v=n(7),m=i(v),g=n(1),y=i(g),b=n(14),_=i(b),w=n(155),x=i(w),T=n(344),E=i(T),C=n(352),O=i(C),S=n(796),k=i(S),M=n(797),P=i(M),N=n(798),D=i(N),I=n(8),L=n(22),A=n(21),R=i(A),j={fixedTop:y.default.PropTypes.bool,fixedBottom:y.default.PropTypes.bool,staticTop:y.default.PropTypes.bool,inverse:y.default.PropTypes.bool,fluid:y.default.PropTypes.bool,componentClass:_.default,onToggle:y.default.PropTypes.func,onSelect:y.default.PropTypes.func,collapseOnSelect:y.default.PropTypes.bool,expanded:y.default.PropTypes.bool,role:y.default.PropTypes.string},F={componentClass:"nav",fixedTop:!1,fixedBottom:!1,staticTop:!1,inverse:!1,fluid:!1,collapseOnSelect:!1},B={$bs_navbar:g.PropTypes.shape({bsClass:g.PropTypes.string,expanded:g.PropTypes.bool,onToggle:g.PropTypes.func.isRequired,onSelect:g.PropTypes.func})},z=function(e){function t(n,i){(0,c.default)(this,t);var r=(0,h.default)(this,e.call(this,n,i));return r.handleToggle=r.handleToggle.bind(r),r.handleCollapse=r.handleCollapse.bind(r),r}return(0,p.default)(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.bsClass,n=e.expanded,i=e.onSelect,r=e.collapseOnSelect;return{$bs_navbar:{bsClass:t,expanded:n,onToggle:this.handleToggle,onSelect:(0,R.default)(i,r?this.handleCollapse:null)}}},t.prototype.handleCollapse=function(){var e=this.props,t=e.onToggle,n=e.expanded;n&&t(!1)},t.prototype.handleToggle=function(){var e=this.props,t=e.onToggle,n=e.expanded;t(!n)},t.prototype.render=function(){var e,t=this.props,n=t.componentClass,i=t.fixedTop,r=t.fixedBottom,o=t.staticTop,s=t.inverse,l=t.fluid,c=t.className,d=t.children,h=(0,u.default)(t,["componentClass","fixedTop","fixedBottom","staticTop","inverse","fluid","className","children"]),f=(0,I.splitBsPropsAndOmit)(h,["expanded","onToggle","onSelect","collapseOnSelect"]),p=f[0],v=f[1];void 0===v.role&&"nav"!==n&&(v.role="navigation"),s&&(p.bsStyle=L.Style.INVERSE);var g=(0,a.default)({},(0,I.getClassSet)(p),(e={},e[(0,I.prefix)(p,"fixed-top")]=i,e[(0,I.prefix)(p,"fixed-bottom")]=r,e[(0,I.prefix)(p,"static-top")]=o,e));return y.default.createElement(n,(0,a.default)({},v,{className:(0,m.default)(c,g)}),y.default.createElement(E.default,{fluid:l},d))},t}(y.default.Component);z.propTypes=j,z.defaultProps=F,z.childContextTypes=B,(0,I.bsClass)("navbar",z);var G=(0,x.default)(z,{expanded:"onToggle"});G.Brand=O.default,G.Header=P.default,G.Toggle=D.default,G.Collapse=k.default,G.Form=r("div","form","NavbarForm"),G.Text=r("p","text","NavbarText"),G.Link=r("a","link","NavbarLink"),t.default=(0,I.bsStyles)([L.Style.DEFAULT,L.Style.INVERSE],L.Style.DEFAULT,G),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(1),v=i(p),m=n(211),g=i(m),y=n(8),b={$bs_navbar:p.PropTypes.shape({bsClass:p.PropTypes.string,expanded:p.PropTypes.bool})},_=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=(0,s.default)(e,["children"]),i=this.context.$bs_navbar||{bsClass:"navbar"},r=(0,y.prefix)(i,"collapse");return v.default.createElement(g.default,(0,o.default)({in:i.expanded},n),v.default.createElement("div",{className:r},t))},t}(v.default.Component);_.contextTypes=b,t.default=_,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b={$bs_navbar:g.default.PropTypes.shape({bsClass:g.default.PropTypes.string})},_=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=this.context.$bs_navbar||{bsClass:"navbar"},r=(0,y.prefix)(i,"header");return g.default.createElement("div",(0,o.default)({},n,{className:(0,v.default)(t,r)}))},t}(g.default.Component);_.contextTypes=b,t.default=_,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b=n(21),_=i(b),w={onClick:m.PropTypes.func,children:m.PropTypes.node},x={$bs_navbar:m.PropTypes.shape({bsClass:m.PropTypes.string,expanded:m.PropTypes.bool,onToggle:m.PropTypes.func.isRequired})},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.onClick,n=e.className,i=e.children,r=(0,s.default)(e,["onClick","className","children"]),a=this.context.$bs_navbar||{bsClass:"navbar"},u=(0,o.default)({type:"button"},r,{onClick:(0,_.default)(t,a.onToggle),className:(0,v.default)(n,(0,y.prefix)(a,"toggle"),!a.expanded&&"collapsed")});return i?g.default.createElement("button",u,i):g.default.createElement("button",u,g.default.createElement("span",{className:"sr-only"},"Toggle navigation"),g.default.createElement("span",{className:"icon-bar"}),g.default.createElement("span",{className:"icon-bar"}),g.default.createElement("span",{className:"icon-bar"}))},t}(g.default.Component);T.propTypes=w,T.contextTypes=x,t.default=T,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return Array.isArray(t)?t.indexOf(e)>=0:e===t}t.__esModule=!0;var o=n(6),a=i(o),s=n(2),u=i(s),l=n(4),c=i(l),d=n(3),h=i(d),f=n(5),p=i(f),v=n(76),m=i(v),g=n(1),y=i(g),b=n(27),_=i(b),w=n(33),x=(i(w),n(353)),T=i(x),E=n(21),C=i(E),O=y.default.PropTypes.oneOf(["click","hover","focus"]),S=(0,p.default)({},T.default.propTypes,{trigger:y.default.PropTypes.oneOfType([O,y.default.PropTypes.arrayOf(O)]),delay:y.default.PropTypes.number,delayShow:y.default.PropTypes.number,delayHide:y.default.PropTypes.number,defaultOverlayShown:y.default.PropTypes.bool,overlay:y.default.PropTypes.node.isRequired,onBlur:y.default.PropTypes.func,onClick:y.default.PropTypes.func,onFocus:y.default.PropTypes.func,onMouseOut:y.default.PropTypes.func,onMouseOver:y.default.PropTypes.func,target:y.default.PropTypes.oneOf([null]),onHide:y.default.PropTypes.oneOf([null]),show:y.default.PropTypes.oneOf([null])}),k={defaultOverlayShown:!1,trigger:["hover","focus"]},M=function(e){function t(n,i){(0,u.default)(this,t);var r=(0,c.default)(this,e.call(this,n,i));return r.handleToggle=r.handleToggle.bind(r),r.handleDelayedShow=r.handleDelayedShow.bind(r),r.handleDelayedHide=r.handleDelayedHide.bind(r),r.handleHide=r.handleHide.bind(r),r.handleMouseOver=function(e){return r.handleMouseOverOut(r.handleDelayedShow,e)},r.handleMouseOut=function(e){return r.handleMouseOverOut(r.handleDelayedHide,e)},r._mountNode=null,r.state={show:n.defaultOverlayShown},r}return(0,h.default)(t,e),t.prototype.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},t.prototype.componentDidUpdate=function(){this.renderOverlay()},t.prototype.componentWillUnmount=function(){_.default.unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},t.prototype.handleToggle=function(){this.state.show?this.hide():this.show()},t.prototype.handleDelayedShow=function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;return t?void(this._hoverShowDelay=setTimeout(function(){e._hoverShowDelay=null,e.show()},t)):void this.show()}},t.prototype.handleDelayedHide=function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;return t?void(this._hoverHideDelay=setTimeout(function(){e._hoverHideDelay=null,e.hide()},t)):void this.hide()}},t.prototype.handleMouseOverOut=function(e,t){var n=t.currentTarget,i=t.relatedTarget||t.nativeEvent.toElement;i&&(i===n||(0,m.default)(n,i))||e(t)},t.prototype.handleHide=function(){this.hide()},t.prototype.show=function(){this.setState({show:!0})},t.prototype.hide=function(){this.setState({show:!1})},t.prototype.makeOverlay=function(e,t){return y.default.createElement(T.default,(0,p.default)({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},t.prototype.renderOverlay=function(){_.default.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},t.prototype.render=function(){var e=this.props,t=e.trigger,n=e.overlay,i=e.children,o=e.onBlur,s=e.onClick,u=e.onFocus,l=e.onMouseOut,c=e.onMouseOver,d=(0,a.default)(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var h=y.default.Children.only(i),f=h.props,p={};return this.state.show&&(p["aria-describedby"]=n.props.id),p.onClick=(0,C.default)(f.onClick,s),r("click",t)&&(p.onClick=(0,C.default)(p.onClick,this.handleToggle)),r("hover",t)&&(p.onMouseOver=(0,C.default)(f.onMouseOver,c,this.handleMouseOver),p.onMouseOut=(0,C.default)(f.onMouseOut,l,this.handleMouseOut)),r("focus",t)&&(p.onFocus=(0,C.default)(f.onFocus,u,this.handleDelayedShow),p.onBlur=(0,C.default)(f.onBlur,o,this.handleDelayedHide)),this._overlay=this.makeOverlay(n,d),(0,g.cloneElement)(h,p)},t}(y.default.Component);M.propTypes=S,M.defaultProps=k,t.default=M,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=(0,s.default)(e,["className","children"]),r=(0,y.splitBsProps)(i),a=r[0],u=r[1],l=(0,y.getClassSet)(a);return g.default.createElement("div",(0,o.default)({},u,{className:(0,v.default)(t,l)}),g.default.createElement("h1",null,n))},t}(g.default.Component);t.default=(0,y.bsClass)("page-header",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(354),o=i(r),a=n(821),s=i(a);t.default=s.default.wrapper(o.default,"``","``"),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(354),b=i(y),_=n(8),w=n(21),x=i(w),T=n(26),E=i(T),C={onSelect:g.default.PropTypes.func},O=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.onSelect,n=e.className,i=e.children,r=(0,s.default)(e,["onSelect","className","children"]),a=(0,_.splitBsProps)(r),u=a[0],l=a[1],c=(0,_.getClassSet)(u);return g.default.createElement("ul",(0,o.default)({},l,{className:(0,v.default)(n,c)}),E.default.map(i,function(e){return(0,m.cloneElement)(e,{onSelect:(0,x.default)(e.props.onSelect,t)})}))},t}(g.default.Component);O.propTypes=C,O.Item=b.default,t.default=(0,_.bsClass)("pager",O),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(5),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(804),w=i(_),x=n(8),T={activePage:g.default.PropTypes.number,items:g.default.PropTypes.number,maxButtons:g.default.PropTypes.number,boundaryLinks:g.default.PropTypes.bool,ellipsis:g.default.PropTypes.oneOfType([g.default.PropTypes.bool,g.default.PropTypes.node]),first:g.default.PropTypes.oneOfType([g.default.PropTypes.bool,g.default.PropTypes.node]),last:g.default.PropTypes.oneOfType([g.default.PropTypes.bool,g.default.PropTypes.node]),prev:g.default.PropTypes.oneOfType([g.default.PropTypes.bool,g.default.PropTypes.node]),next:g.default.PropTypes.oneOfType([g.default.PropTypes.bool,g.default.PropTypes.node]),onSelect:g.default.PropTypes.func,buttonComponentClass:b.default},E={activePage:1,items:1,maxButtons:0,first:!1,last:!1,prev:!1,next:!1,ellipsis:!0,boundaryLinks:!1},C=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.renderPageButtons=function(e,t,n,i,r,o){var a=[],u=void 0,l=void 0;n&&n1&&(u>2&&a.unshift(g.default.createElement(w.default,{key:"ellipsisFirst",disabled:!0,componentClass:o.componentClass},g.default.createElement("span",{"aria-label":"More"},r===!0?"…":r))),a.unshift(g.default.createElement(w.default,(0,s.default)({},o,{key:1,eventKey:1,active:!1}),"1"))),r&&l=n}),g.default.createElement("span",{"aria-label":"Next"},d===!0?"›":d)),l&&g.default.createElement(w.default,(0,s.default)({},E,{eventKey:n,disabled:t>=n}),g.default.createElement("span",{"aria-label":"Last"},l===!0?"»":l)))},t}(g.default.Component);C.propTypes=T,C.defaultProps=E,t.default=(0,x.bsClass)("pagination",C),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(38),w=i(_),x=n(21),T=i(x),E={componentClass:b.default,className:g.default.PropTypes.string,eventKey:g.default.PropTypes.any,onSelect:g.default.PropTypes.func,disabled:g.default.PropTypes.bool,active:g.default.PropTypes.bool,onClick:g.default.PropTypes.func},C={componentClass:w.default,active:!1,disabled:!1},O=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));return r.handleClick=r.handleClick.bind(r),r}return(0,f.default)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.disabled,i=t.onSelect,r=t.eventKey;n||i&&i(r,e)},t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.active,i=e.disabled,r=e.onClick,a=e.className,u=e.style,l=(0,s.default)(e,["componentClass","active","disabled","onClick","className","style"]);return t===w.default&&delete l.eventKey,delete l.onSelect,g.default.createElement("li",{className:(0,v.default)(a,{active:n,disabled:i}),style:u},g.default.createElement(t,(0,o.default)({},l,{disabled:i,onClick:(0,T.default)(r,this.handleClick)})))},t}(g.default.Component);O.propTypes=E,O.defaultProps=C,t.default=O,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(70),o=i(r),a=n(6),s=i(a),u=n(5),l=i(u),c=n(2),d=i(c),h=n(4),f=i(h),p=n(3),v=i(p),m=n(7),g=i(m),y=n(1),b=i(y),_=n(211),w=i(_),x=n(8),T=n(22),E={collapsible:b.default.PropTypes.bool,onSelect:b.default.PropTypes.func,header:b.default.PropTypes.node,id:b.default.PropTypes.oneOfType([b.default.PropTypes.string,b.default.PropTypes.number]),footer:b.default.PropTypes.node,defaultExpanded:b.default.PropTypes.bool,expanded:b.default.PropTypes.bool,eventKey:b.default.PropTypes.any,headerRole:b.default.PropTypes.string,panelRole:b.default.PropTypes.string,onEnter:b.default.PropTypes.func,onEntering:b.default.PropTypes.func,onEntered:b.default.PropTypes.func,onExit:b.default.PropTypes.func,onExiting:b.default.PropTypes.func,onExited:b.default.PropTypes.func},C={defaultExpanded:!1},O=function(e){function t(n,i){(0,d.default)(this,t);var r=(0,f.default)(this,e.call(this,n,i));return r.handleClickTitle=r.handleClickTitle.bind(r),r.state={expanded:r.props.defaultExpanded},r}return(0,v.default)(t,e),t.prototype.handleClickTitle=function(e){e.persist(),e.selected=!0,this.props.onSelect?this.props.onSelect(this.props.eventKey,e):e.preventDefault(),e.selected&&this.setState({expanded:!this.state.expanded})},t.prototype.renderHeader=function(e,t,n,i,r,o){var a=(0,x.prefix)(o,"title");return e?b.default.isValidElement(t)?(0,y.cloneElement)(t,{className:(0,g.default)(t.props.className,a),children:this.renderAnchor(t.props.children,n,i,r)}):b.default.createElement("h4",{role:"presentation",className:a},this.renderAnchor(t,n,i,r)):b.default.isValidElement(t)?(0,y.cloneElement)(t,{className:(0,g.default)(t.props.className,a)}):t},t.prototype.renderAnchor=function(e,t,n,i){return b.default.createElement("a",{role:n,href:t&&"#"+t,onClick:this.handleClickTitle,"aria-controls":t,"aria-expanded":i,"aria-selected":i,className:i?null:"collapsed"},e)},t.prototype.renderCollapsibleBody=function(e,t,n,i,r,o){return b.default.createElement(w.default,(0,l.default)({in:t},o),b.default.createElement("div",{id:e,role:n,className:(0,x.prefix)(r,"collapse"),"aria-hidden":!t},this.renderBody(i,r)))},t.prototype.renderBody=function(e,t){function n(){r.length&&(i.push(b.default.createElement("div",{key:i.length,className:o},r)),r=[])}var i=[],r=[],o=(0,x.prefix)(t,"body");return b.default.Children.toArray(e).forEach(function(e){return b.default.isValidElement(e)&&e.props.fill?(n(),void i.push((0,y.cloneElement)(e,{fill:void 0}))):void r.push(e)}),n(),i},t.prototype.render=function(){var e=this.props,t=e.collapsible,n=e.header,i=e.id,r=e.footer,o=e.expanded,a=e.headerRole,u=e.panelRole,c=e.className,d=e.children,h=e.onEnter,f=e.onEntering,p=e.onEntered,v=e.onExit,m=e.onExiting,y=e.onExited,_=(0,s.default)(e,["collapsible","header","id","footer","expanded","headerRole","panelRole","className","children","onEnter","onEntering","onEntered","onExit","onExiting","onExited"]),w=(0,x.splitBsPropsAndOmit)(_,["defaultExpanded","eventKey","onSelect"]),T=w[0],E=w[1],C=null!=o?o:this.state.expanded,O=(0,x.getClassSet)(T);return b.default.createElement("div",(0,l.default)({},E,{className:(0,g.default)(c,O),id:t?null:i}),n&&b.default.createElement("div",{className:(0,x.prefix)(T,"heading")},this.renderHeader(t,n,i,a,C,T)),t?this.renderCollapsibleBody(i,C,u,d,T,{onEnter:h,onEntering:f,onEntered:p,onExit:v,onExiting:m,onExited:y}):this.renderBody(d,T),r&&b.default.createElement("div",{className:(0,x.prefix)(T,"footer")},r))},t}(b.default.Component);O.propTypes=E,O.defaultProps=C,t.default=(0,x.bsClass)("panel",(0,x.bsStyles)([].concat((0,o.default)(T.State),[T.Style.DEFAULT,T.Style.PRIMARY]),T.Style.DEFAULT,O)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(153),b=i(y),_=n(8),w={id:(0,b.default)(g.default.PropTypes.oneOfType([g.default.PropTypes.string,g.default.PropTypes.number])),placement:g.default.PropTypes.oneOf(["top","right","bottom","left"]),positionTop:g.default.PropTypes.oneOfType([g.default.PropTypes.number,g.default.PropTypes.string]),positionLeft:g.default.PropTypes.oneOfType([g.default.PropTypes.number,g.default.PropTypes.string]),arrowOffsetTop:g.default.PropTypes.oneOfType([g.default.PropTypes.number,g.default.PropTypes.string]),arrowOffsetLeft:g.default.PropTypes.oneOfType([g.default.PropTypes.number,g.default.PropTypes.string]),title:g.default.PropTypes.node},x={placement:"right"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.placement,i=t.positionTop,r=t.positionLeft,a=t.arrowOffsetTop,u=t.arrowOffsetLeft,l=t.title,c=t.className,d=t.style,h=t.children,f=(0,s.default)(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"]),p=(0,_.splitBsProps)(f),m=p[0],y=p[1],b=(0,o.default)({},(0,_.getClassSet)(m),(e={},e[n]=!0,e)),w=(0,o.default)({display:"block",top:i,left:r},d),x={top:a,left:u};return g.default.createElement("div",(0,o.default)({},y,{role:"tooltip",className:(0,v.default)(c,b),style:w}),g.default.createElement("div",{className:"arrow",style:x}),l&&g.default.createElement("h3",{className:(0,_.prefix)(m,"title")},l),g.default.createElement("div",{className:(0,_.prefix)(m,"content")},h))},t}(g.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("popover",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i=e[t];if(!i)return null;var r=null;return w.default.Children.forEach(i,function(e){if(!r&&e.type!==M){var t=w.default.isValidElement(e)?e.type.displayName||e.type.name||e.type:e;r=new Error("Children of "+n+" can contain only ProgressBar "+("components. Found "+t+"."))}}),r}function o(e,t,n){var i=(e-t)/(n-t)*100;return Math.round(i*O)/O}t.__esModule=!0;var a=n(70),s=i(a),u=n(5),l=i(u),c=n(6),d=i(c),h=n(2),f=i(h),p=n(4),v=i(p),m=n(3),g=i(m),y=n(7),b=i(y),_=n(1),w=i(_),x=n(8),T=n(22),E=n(26),C=i(E),O=1e3,S={min:_.PropTypes.number,now:_.PropTypes.number,max:_.PropTypes.number,label:_.PropTypes.node,srOnly:_.PropTypes.bool,striped:_.PropTypes.bool,active:_.PropTypes.bool,children:r,isChild:_.PropTypes.bool},k={min:0,max:100,active:!1,isChild:!1,srOnly:!1,striped:!1},M=function(e){function t(){return(0,f.default)(this,t),(0,v.default)(this,e.apply(this,arguments))}return(0,g.default)(t,e),t.prototype.renderProgressBar=function(e){var t,n=e.min,i=e.now,r=e.max,a=e.label,s=e.srOnly,u=e.striped,c=e.active,h=e.className,f=e.style,p=(0,d.default)(e,["min","now","max","label","srOnly","striped","active","className","style"]),v=(0,x.splitBsProps)(p),m=v[0],g=v[1],y=(0,l.default)({},(0,x.getClassSet)(m),(t={active:c},t[(0,x.prefix)(m,"striped")]=c||u,t));return w.default.createElement("div",(0,l.default)({},g,{role:"progressbar",className:(0,b.default)(h,y),style:(0,l.default)({width:o(i,n,r)+"%"},f),"aria-valuenow":i,"aria-valuemin":n,"aria-valuemax":r}),s?w.default.createElement("span",{className:"sr-only"},a):a)},t.prototype.render=function(){var e=this.props,t=e.isChild,n=(0,d.default)(e,["isChild"]);if(t)return this.renderProgressBar(n);var i=n.min,r=n.now,o=n.max,a=n.label,s=n.srOnly,u=n.striped,c=n.active,h=n.bsClass,f=n.bsStyle,p=n.className,v=n.children,m=(0,d.default)(n,["min","now","max","label","srOnly","striped","active","bsClass","bsStyle","className","children"]);return w.default.createElement("div",(0,l.default)({},m,{className:(0,b.default)(p,"progress")}),v?C.default.map(v,function(e){return(0,_.cloneElement)(e,{isChild:!0})}):this.renderProgressBar({min:i,now:r,max:o,label:a,srOnly:s,striped:u,active:c,bsClass:h,bsStyle:f}))},t}(w.default.Component);M.propTypes=S,M.defaultProps=k,t.default=(0,x.bsClass)("progress-bar",(0,x.bsStyles)((0,s.default)(T.State),M)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(33),b=(i(y),n(8)),_={inline:g.default.PropTypes.bool,disabled:g.default.PropTypes.bool,validationState:g.default.PropTypes.oneOf(["success","warning","error",null]),inputRef:g.default.PropTypes.func},w={inline:!1,disabled:!1},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.inline,n=e.disabled,i=e.validationState,r=e.inputRef,a=e.className,u=e.style,l=e.children,c=(0,s.default)(e,["inline","disabled","validationState","inputRef","className","style","children"]),d=(0,b.splitBsProps)(c),h=d[0],f=d[1],p=g.default.createElement("input",(0,o.default)({},f,{ref:r,type:"radio",disabled:n}));if(t){var m,y=(m={},m[(0,b.prefix)(h,"inline")]=!0,m.disabled=n,m);return g.default.createElement("label",{className:(0,v.default)(a,y),style:u},p,l)}var _=(0,o.default)({},(0,b.getClassSet)(h),{disabled:n});return i&&(_["has-"+i]=!0),g.default.createElement("div",{className:(0,v.default)(a,_),style:u},g.default.createElement("label",null,p,l))},t}(g.default.Component);x.propTypes=_,x.defaultProps=w,t.default=(0,b.bsClass)("radio",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(33),b=(i(y),n(8)),_={children:m.PropTypes.element.isRequired,a16by9:m.PropTypes.bool,a4by3:m.PropTypes.bool},w={a16by9:!1,a4by3:!1},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.a16by9,i=t.a4by3,r=t.className,a=t.children,u=(0,s.default)(t,["a16by9","a4by3","className","children"]),l=(0,b.splitBsProps)(u),c=l[0],d=l[1],h=(0,o.default)({},(0,b.getClassSet)(c),(e={},e[(0,b.prefix)(c,"16by9")]=n,e[(0,b.prefix)(c,"4by3")]=i,e));return g.default.createElement("div",{className:(0,v.default)(h)},(0,m.cloneElement)(a,(0,o.default)({},d,{className:(0,v.default)(r,(0,b.prefix)(c,"item"))})))},t}(g.default.Component);x.propTypes=_,x.defaultProps=w,t.default=(0,b.bsClass)("embed-responsive",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(14),b=i(y),_=n(8),w={componentClass:b.default},x={componentClass:"div"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return g.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(g.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("row",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(5),f=i(h),p=n(1),v=i(p),m=n(112),g=i(m),y=n(144),b=i(y),_=n(812),w=i(_),x=n(146),T=i(x),E=(0,f.default)({},b.default.propTypes,{bsStyle:v.default.PropTypes.string,bsSize:v.default.PropTypes.string,href:v.default.PropTypes.string,onClick:v.default.PropTypes.func,title:v.default.PropTypes.node.isRequired,toggleLabel:v.default.PropTypes.string,children:v.default.PropTypes.node}),C=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.bsSize,n=e.bsStyle,i=e.title,r=e.toggleLabel,a=e.children,s=(0,o.default)(e,["bsSize","bsStyle","title","toggleLabel","children"]),u=(0,T.default)(s,b.default.ControlledComponent),l=u[0],c=u[1];return v.default.createElement(b.default,(0,f.default)({},l,{bsSize:t,bsStyle:n}),v.default.createElement(g.default,(0,f.default)({},c,{disabled:s.disabled,bsSize:t,bsStyle:n}),i),v.default.createElement(w.default,{"aria-label":r||i,bsSize:t,bsStyle:n}),v.default.createElement(b.default.Menu,null,a))},t}(v.default.Component);C.propTypes=E,C.Toggle=w.default,t.default=C,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(1),f=i(h),p=n(343),v=i(p),m=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){return f.default.createElement(v.default,(0,o.default)({},this.props,{useAnchor:!1,noCaret:!1}))},t}(f.default.Component);m.defaultProps=v.default.defaultProps,t.default=m,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(2),o=i(r),a=n(4),s=i(a),u=n(3),l=i(u),c=n(5),d=i(c),h=n(1),f=i(h),p=n(214),v=i(p),m=n(215),g=i(m),y=n(356),b=i(y),_=(0,d.default)({},b.default.propTypes,{disabled:f.default.PropTypes.bool,title:f.default.PropTypes.node,tabClassName:f.default.PropTypes.string}),w=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,l.default)(t,e),t.prototype.render=function(){var e=(0,d.default)({},this.props);return delete e.title,delete e.disabled, -delete e.tabClassName,f.default.createElement(b.default,e)},t}(f.default.Component);w.propTypes=_,w.Container=v.default,w.Content=g.default,w.Pane=b.default,t.default=w,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b={striped:g.default.PropTypes.bool,bordered:g.default.PropTypes.bool,condensed:g.default.PropTypes.bool,hover:g.default.PropTypes.bool,responsive:g.default.PropTypes.bool},_={bordered:!1,condensed:!1,hover:!1,responsive:!1,striped:!1},w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.striped,i=t.bordered,r=t.condensed,a=t.hover,u=t.responsive,l=t.className,c=(0,s.default)(t,["striped","bordered","condensed","hover","responsive","className"]),d=(0,y.splitBsProps)(c),h=d[0],f=d[1],p=(0,o.default)({},(0,y.getClassSet)(h),(e={},e[(0,y.prefix)(h,"striped")]=n,e[(0,y.prefix)(h,"bordered")]=i,e[(0,y.prefix)(h,"condensed")]=r,e[(0,y.prefix)(h,"hover")]=a,e)),m=g.default.createElement("table",(0,o.default)({},f,{className:(0,v.default)(l,p)}));return u?g.default.createElement("div",{className:(0,y.prefix)(h,"responsive")},m):m},t}(g.default.Component);w.propTypes=b,w.defaultProps=_,t.default=(0,y.bsClass)("table",w),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=void 0;return N.default.forEach(e,function(e){null==t&&(t=e.props.eventKey)}),t}t.__esModule=!0;var o=n(5),a=i(o),s=n(6),u=i(s),l=n(2),c=i(l),d=n(4),h=i(d),f=n(3),p=i(f),v=n(1),m=i(v),g=n(153),y=i(g),b=n(155),_=i(b),w=n(350),x=i(w),T=n(351),E=i(T),C=n(214),O=i(C),S=n(215),k=i(S),M=n(8),P=n(26),N=i(P),D=O.default.ControlledComponent,I={activeKey:m.default.PropTypes.any,bsStyle:m.default.PropTypes.oneOf(["tabs","pills"]),animation:m.default.PropTypes.bool,id:(0,y.default)(m.default.PropTypes.oneOfType([m.default.PropTypes.string,m.default.PropTypes.number])),onSelect:m.default.PropTypes.func,mountOnEnter:m.default.PropTypes.bool,unmountOnExit:m.default.PropTypes.bool},L={bsStyle:"tabs",animation:!0,mountOnEnter:!1,unmountOnExit:!1},A=function(e){function t(){return(0,c.default)(this,t),(0,h.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.renderTab=function(e){var t=e.props,n=t.title,i=t.eventKey,r=t.disabled,o=t.tabClassName;return null==n?null:m.default.createElement(E.default,{eventKey:i,disabled:r,className:o},n)},t.prototype.render=function(){var e=this.props,t=e.id,n=e.onSelect,i=e.animation,o=e.mountOnEnter,s=e.unmountOnExit,l=e.bsClass,c=e.className,d=e.style,h=e.children,f=e.activeKey,p=void 0===f?r(h):f,v=(0,u.default)(e,["id","onSelect","animation","mountOnEnter","unmountOnExit","bsClass","className","style","children","activeKey"]);return m.default.createElement(D,{id:t,activeKey:p,onSelect:n,className:c,style:d},m.default.createElement("div",null,m.default.createElement(x.default,(0,a.default)({},v,{role:"tablist"}),N.default.map(h,this.renderTab)),m.default.createElement(k.default,{bsClass:l,animation:i,mountOnEnter:o,unmountOnExit:s},h)))},t}(m.default.Component);A.propTypes=I,A.defaultProps=L,(0,M.bsClass)("tab",A),t.default=(0,_.default)(A,{activeKey:"onSelect"}),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(38),b=i(y),_=n(8),w={src:g.default.PropTypes.string,alt:g.default.PropTypes.string,href:g.default.PropTypes.string},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.src,n=e.alt,i=e.className,r=e.children,a=(0,s.default)(e,["src","alt","className","children"]),u=(0,_.splitBsProps)(a),l=u[0],c=u[1],d=c.href?b.default:"div",h=(0,_.getClassSet)(l);return g.default.createElement(d,(0,o.default)({},c,{className:(0,v.default)(i,h)}),g.default.createElement("img",{src:t,alt:n}),r&&g.default.createElement("div",{className:"caption"},r))},t}(g.default.Component);x.propTypes=w,t.default=(0,_.bsClass)("thumbnail",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(153),b=i(y),_=n(8),w={id:(0,b.default)(g.default.PropTypes.oneOfType([g.default.PropTypes.string,g.default.PropTypes.number])),placement:g.default.PropTypes.oneOf(["top","right","bottom","left"]),positionTop:g.default.PropTypes.oneOfType([g.default.PropTypes.number,g.default.PropTypes.string]),positionLeft:g.default.PropTypes.oneOfType([g.default.PropTypes.number,g.default.PropTypes.string]),arrowOffsetTop:g.default.PropTypes.oneOfType([g.default.PropTypes.number,g.default.PropTypes.string]),arrowOffsetLeft:g.default.PropTypes.oneOfType([g.default.PropTypes.number,g.default.PropTypes.string])},x={placement:"right"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.placement,i=t.positionTop,r=t.positionLeft,a=t.arrowOffsetTop,u=t.arrowOffsetLeft,l=t.className,c=t.style,d=t.children,h=(0,s.default)(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"]),f=(0,_.splitBsProps)(h),p=f[0],m=f[1],y=(0,o.default)({},(0,_.getClassSet)(p),(e={},e[n]=!0,e)),b=(0,o.default)({top:i,left:r},c),w={top:a,left:u};return g.default.createElement("div",(0,o.default)({},m,{role:"tooltip",className:(0,v.default)(l,y),style:b}),g.default.createElement("div",{className:(0,_.prefix)(p,"arrow"),style:w}),g.default.createElement("div",{className:(0,_.prefix)(p,"inner")},d))},t}(g.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("tooltip",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),g=i(m),y=n(8),b=n(22),_=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,y.splitBsProps)(n),r=i[0],a=i[1],u=(0,y.getClassSet)(r);return g.default.createElement("div",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(g.default.Component);t.default=(0,y.bsClass)("well",(0,y.bsSizes)([b.Size.LARGE,b.Size.SMALL],_)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(){for(var e=arguments.length,t=Array(e),n=0;n1)||(r=t,!1)}),r?new Error("(children) "+i+" - Duplicate children detected of bsRole: "+(r+". Only one child each allowed with the following ")+("bsRoles: "+t.join(", "))):null})}t.__esModule=!0,t.requiredRoles=r,t.exclusiveRoles=o;var a=n(154),s=i(a),u=n(26),l=i(u)},function(e,t){"use strict";function n(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete a.animationend.animation,"TransitionEvent"in window||delete a.transitionend.transition;for(var n in a){var i=a[n];for(var r in i)if(r in t){s.push(i[r]);break}}}function i(e,t,n){e.addEventListener(t,n,!1)}function r(e,t,n){e.removeEventListener(t,n,!1)}t.__esModule=!0;var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},s=[];o&&n();var u={addEndEventListener:function(e,t){return 0===s.length?void window.setTimeout(t,0):void s.forEach(function(n){i(e,n,t)})},removeEndEventListener:function(e,t){0!==s.length&&s.forEach(function(n){r(e,n,t)})}};t.default=u,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i=void 0;"object"===("undefined"==typeof e?"undefined":(0,f.default)(e))?i=e.message:(i=e+" is deprecated. Use "+t+" instead.",n&&(i+="\nYou can read more about it at "+n)),v[i]||(v[i]=!0)}function o(){v={}}t.__esModule=!0;var a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(157),f=i(h);t._resetWarned=o;var p=n(33),v=(i(p),{});r.wrapper=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i8&&w<=11),E=32,C=String.fromCharCode(E),O={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"]}},S=!1,k=null,M={eventTypes:O,extractEvents:function(e,t,n,i){return[l(e,t,n,i),h(e,t,n,i)]}};e.exports=M},function(e,t,n){"use strict";var i=n(358),r=n(23),o=(n(32),n(525),n(877)),a=n(532),s=n(535),u=(n(10),s(function(e){return a(e)})),l=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){l=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var h={createMarkupForStyles:function(e,t){var n="";for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];null!=r&&(n+=u(i)+":",n+=o(i,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var s=o(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),s)r[a]=s;else{var u=l&&i.shorthandPropertyExpansions[a];if(u)for(var d in u)r[d]="";else r[a]=""}}}};e.exports=h},function(e,t,n){"use strict";function i(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=E.getPooled(k.change,P,e,C(e));_.accumulateTwoPhaseDispatches(t),T.batchedUpdates(o,t)}function o(e){b.enqueueEvents(e),b.processEventQueue(!1)}function a(e,t){M=e,P=t,M.attachEvent("onchange",r)}function s(){M&&(M.detachEvent("onchange",r),M=null,P=null)}function u(e,t){if("topChange"===e)return t}function l(e,t,n){"topFocus"===e?(s(),a(t,n)):"topBlur"===e&&s()}function c(e,t){M=e,P=t,N=e.value,D=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(M,"value",A),M.attachEvent?M.attachEvent("onpropertychange",h):M.addEventListener("propertychange",h,!1)}function d(){M&&(delete M.value,M.detachEvent?M.detachEvent("onpropertychange",h):M.removeEventListener("propertychange",h,!1),M=null,P=null,N=null,D=null)}function h(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==N&&(N=t,r(e))}}function f(e,t){if("topInput"===e)return t}function p(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function v(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&M&&M.value!==N)return N=M.value,P}function m(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function g(e,t){if("topClick"===e)return t}function y(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var i=""+t.value;t.getAttribute("value")!==i&&t.setAttribute("value",i)}}}var b=n(113),_=n(114),w=n(23),x=n(17),T=n(39),E=n(47),C=n(228),O=n(229),S=n(375),k={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},M=null,P=null,N=null,D=null,I=!1;w.canUseDOM&&(I=O("change")&&(!document.documentMode||document.documentMode>8));var L=!1;w.canUseDOM&&(L=O("input")&&(!document.documentMode||document.documentMode>11));var A={get:function(){return D.get.call(this)},set:function(e){N=""+e,D.set.call(this,e)}},R={eventTypes:k,extractEvents:function(e,t,n,r){var o,a,s=t?x.getNodeFromInstance(t):window;if(i(s)?I?o=u:a=l:S(s)?L?o=f:(o=v,a=p):m(s)&&(o=g),o){var c=o(e,t);if(c){var d=E.getPooled(k.change,c,n,r);return d.type="change",_.accumulateTwoPhaseDispatches(d),d}}a&&a(e,s,t),"topBlur"===e&&y(t,s)}};e.exports=R},function(e,t,n){"use strict";var i=n(12),r=n(86),o=n(23),a=n(528),s=n(30),u=(n(9),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(o.canUseDOM?void 0:i("56"),t?void 0:i("57"),"HTML"===e.nodeName?i("58"):void 0,"string"==typeof t){var n=a(t,s)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=u},function(e,t){"use strict";var n=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=n},function(e,t,n){"use strict";var i=n(114),r=n(17),o=n(148),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var u;if(s.window===s)u=s;else{var l=s.ownerDocument;u=l?l.defaultView||l.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var h=n.relatedTarget||n.toElement;d=h?r.getClosestInstanceFromNode(h):null}else c=null,d=t;if(c===d)return null;var f=null==c?u:r.getNodeFromInstance(c),p=null==d?u:r.getNodeFromInstance(d),v=o.getPooled(a.mouseLeave,c,n,s);v.type="mouseleave",v.target=f,v.relatedTarget=p;var m=o.getPooled(a.mouseEnter,d,n,s);return m.type="mouseenter",m.target=p,m.relatedTarget=f,i.accumulateEnterLeaveDispatches(v,m,c,d),[v,m]}};e.exports=s},function(e,t,n){"use strict";function i(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(16),o=n(69),a=n(373);r(i.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,i=n.length,r=this.getText(),o=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,s),this._fallbackText}}),o.addPoolingTo(i),e.exports=i},function(e,t,n){"use strict";var i=n(87),r=i.injection.MUST_USE_PROPERTY,o=i.injection.HAS_BOOLEAN_VALUE,a=i.injection.HAS_NUMERIC_VALUE,s=i.injection.HAS_POSITIVE_NUMERIC_VALUE,u=i.injection.HAS_OVERLOADED_BOOLEAN_VALUE,l={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+i.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:o,allowTransparency:0,alt:0,as:0,async:o,autoComplete:0,autoPlay:o,capture:o,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|o,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:o,coords:0,crossOrigin:0,data:0,dateTime:0,default:o,defer:o,dir:0,disabled:o,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:o,formTarget:0,frameBorder:0,headers:0,height:0,hidden:o,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:o,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|o,muted:r|o,name:0,nonce:0,noValidate:o,open:o,optimum:0,pattern:0,placeholder:0,playsInline:o,poster:0,preload:0,profile:0,radioGroup:0,readOnly:o,referrerPolicy:0,rel:0,required:o,reversed:o,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:o,scrolling:0,seamless:o,selected:r|o,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:o,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){return null==t?e.removeAttribute("value"):void("number"!==e.type||e.hasAttribute("value")===!1?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t))}}};e.exports=l},function(e,t,n){(function(t){"use strict";function i(e,t,n,i){var r=void 0===e[n];null!=t&&r&&(e[n]=o(t,!0))}var r=n(88),o=n(374),a=(n(220),n(230)),s=n(377),u=(n(10),{instantiateChildren:function(e,t,n,r){if(null==e)return null;var o={};return s(e,i,o),o},updateChildren:function(e,t,n,i,s,u,l,c,d){if(t||e){var h,f;for(h in t)if(t.hasOwnProperty(h)){f=e&&e[h];var p=f&&f._currentElement,v=t[h];if(null!=f&&a(p,v))r.receiveComponent(f,v,s,c),t[h]=f;else{f&&(i[h]=r.getHostNode(f),r.unmountComponent(f,!1));var m=o(v,!0);t[h]=m;var g=r.mountComponent(m,s,u,l,c,d);n.push(g)}}for(h in e)!e.hasOwnProperty(h)||t&&t.hasOwnProperty(h)||(f=e[h],i[h]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];r.unmountComponent(i,t)}}});e.exports=u}).call(t,n(209))},function(e,t,n){"use strict";var i=n(216),r=n(841),o={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:i.dangerouslyReplaceNodeWithMarkup};e.exports=o},function(e,t,n){"use strict";function i(e){}function r(e,t){}function o(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var s=n(12),u=n(16),l=n(89),c=n(222),d=n(48),h=n(223),f=n(115),p=(n(32),n(368)),v=n(88),m=n(97),g=(n(9),n(177)),y=n(230),b=(n(10),{ImpureClass:0,PureClass:1,StatelessFunctional:2});i.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var _=1,w={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,u){this._context=u,this._mountOrder=_++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,h=this._processContext(u),p=this._currentElement.type,v=e.getUpdateQueue(),g=o(p),y=this._constructComponent(g,d,h,v);g||null!=y&&null!=y.render?a(p)?this._compositeType=b.PureClass:this._compositeType=b.ImpureClass:(c=y,r(p,c),null===y||y===!1||l.isValidElement(y)?void 0:s("105",p.displayName||p.name||"Component"),y=new i(p),this._compositeType=b.StatelessFunctional);y.props=d,y.context=h,y.refs=m,y.updater=v,this._instance=y,f.set(y,this);var w=y.state;void 0===w&&(y.state=w=null),"object"!=typeof w||Array.isArray(w)?s("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var x;return x=y.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,u):this.performInitialMount(c,t,n,e,u),y.componentDidMount&&e.getReactMountReady().enqueue(y.componentDidMount,y),x},_constructComponent:function(e,t,n,i){return this._constructComponentWithoutOwner(e,t,n,i)},_constructComponentWithoutOwner:function(e,t,n,i){var r=this._currentElement.type;return e?new r(t,n,i):r(t,n,i)},performInitialMountWithErrorHandling:function(e,t,n,i,r){var o,a=i.checkpoint();try{o=this.performInitialMount(e,t,n,i,r)}catch(s){i.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=i.checkpoint(),this._renderedComponent.unmountComponent(!0),i.rollback(a),o=this.performInitialMount(e,t,n,i,r)}return o},performInitialMount:function(e,t,n,i,r){var o=this._instance,a=0;o.componentWillMount&&(o.componentWillMount(),this._pendingStateQueue&&(o.state=this._processPendingState(o.props,o.context))),void 0===e&&(e=this._renderValidatedComponent());var s=p.getType(e);this._renderedNodeType=s;var u=this._instantiateReactComponent(e,s!==p.EMPTY);this._renderedComponent=u;var l=v.mountComponent(u,i,t,n,this._processChildContext(r),a);return l},getHostNode:function(){return v.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";h.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(v.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return m;var i={};for(var r in n)i[r]=e[r];return i},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,i=this._instance;if(i.getChildContext&&(t=i.getChildContext()),t){"object"!=typeof n.childContextTypes?s("107",this.getName()||"ReactCompositeComponent"):void 0;for(var r in t)r in n.childContextTypes?void 0:s("108",this.getName()||"ReactCompositeComponent",r);return u({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var i=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,i,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?v.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,i,r){var o=this._instance;null==o?s("136",this.getName()||"ReactCompositeComponent"):void 0;var a,u=!1;this._context===r?a=o.context:(a=this._processContext(r),u=!0);var l=t.props,c=n.props;t!==n&&(u=!0),u&&o.componentWillReceiveProps&&o.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),h=!0;this._pendingForceUpdate||(o.shouldComponentUpdate?h=o.shouldComponentUpdate(c,d,a):this._compositeType===b.PureClass&&(h=!g(l,c)||!g(o.state,d))),this._updateBatchNumber=null,h?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,o.props=c,o.state=d,o.context=a)},_processPendingState:function(e,t){var n=this._instance,i=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!i)return n.state;if(r&&1===i.length)return i[0];for(var o=u({},r?i[0]:n.state),a=r?1:0;a=0||null!=t.is}function p(e){var t=e.type;h(t),this._currentElement=e,this._tag=t.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 v=n(12),m=n(16),g=n(824),y=n(826),b=n(86),_=n(217),w=n(87),x=n(360),T=n(113),E=n(218),C=n(147),O=n(361),S=n(17),k=n(842),M=n(843),P=n(362),N=n(846),D=(n(32),n(855)),I=n(860),L=(n(30),n(150)),A=(n(9),n(229),n(177),n(231),n(10),O),R=T.deleteListener,j=S.getNodeFromInstance,F=C.listenTo,B=E.registrationNameModules,z={string:!0,number:!0},G="style",H="__html",U={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},W=11,V={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"},Y={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},Q={listing:!0,pre:!0,textarea:!0},K=m({menuitem:!0},Y),q=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,X={},$={}.hasOwnProperty,Z=1;p.displayName="ReactDOMComponent",p.Mixin={mountComponent:function(e,t,n,i){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var o=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},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,o,t),o=k.getHostProps(this,o),e.getReactMountReady().enqueue(c,this);break;case"option":M.mountWrapper(this,o,t),o=M.getHostProps(this,o);break;case"select":P.mountWrapper(this,o,t),o=P.getHostProps(this,o),e.getReactMountReady().enqueue(c,this);break;case"textarea":N.mountWrapper(this,o,t),o=N.getHostProps(this,o),e.getReactMountReady().enqueue(c,this)}r(this,o);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===_.svg&&"foreignobject"===d)&&(a=_.html),a===_.html&&("svg"===this._tag?a=_.svg:"math"===this._tag&&(a=_.mathml)),this._namespaceURI=a;var h;if(e.useCreateElement){var f,p=n._ownerDocument;if(a===_.html)if("script"===this._tag){var v=p.createElement("div"),m=this._currentElement.type;v.innerHTML="<"+m+">",f=v.removeChild(v.firstChild)}else f=o.is?p.createElement(this._currentElement.type,o.is):p.createElement(this._currentElement.type);else f=p.createElementNS(a,this._currentElement.type);S.precacheNode(this,f),this._flags|=A.hasCachedChildNodes,this._hostParent||x.setAttributeForRoot(f),this._updateDOMProperties(null,o,e);var y=b(f);this._createInitialChildren(e,o,i,y),h=y}else{var w=this._createOpenTagMarkupAndPutListeners(e,o),T=this._createContentMarkup(e,o,i);h=!T&&Y[this._tag]?w+"/>":w+">"+T+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),o.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(u,this),o.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"select":o.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"button":o.autoFocus&&e.getReactMountReady().enqueue(g.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(l,this)}return h},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(null!=r)if(B.hasOwnProperty(i))r&&o(this,i,r,e);else{i===G&&(r&&(r=this._previousStyleCopy=m({},t.style)),r=y.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?U.hasOwnProperty(i)||(a=x.createMarkupForCustomAttribute(i,r)):a=x.createMarkupForProperty(i,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+x.createMarkupForRoot()),n+=" "+x.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var i="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(i=r.__html);else{var o=z[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)i=L(o);else if(null!=a){var s=this.mountChildren(a,e,n);i=s.join("")}}return Q[this._tag]&&"\n"===i.charAt(0)?"\n"+i:i},_createInitialChildren:function(e,t,n,i){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&b.queueHTML(i,r.__html);else{var o=z[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)""!==o&&b.queueText(i,o);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;u"},receiveComponent:function(){},getHostNode:function(){return o.getNodeFromInstance(this)},unmountComponent:function(){o.uncacheNode(this)}}),e.exports=a},function(e,t){"use strict";var n={useCreateElement:!0,useFiber:!1};e.exports=n},function(e,t,n){"use strict";var i=n(216),r=n(17),o={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);i.processUpdates(n,t)}};e.exports=o},function(e,t,n){"use strict";function i(){this._rootNodeID&&h.updateWrapper(this)}function r(e){var t="checkbox"===e.type||"radio"===e.type;return t?null!=e.checked:null!=e.value}function o(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);d.asap(i,this);var r=t.name;if("radio"===t.type&&null!=r){for(var o=c.getNodeFromInstance(this),s=o;s.parentNode;)s=s.parentNode;for(var u=s.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),h=0;ht.end?(n=t.end,i=t.start):(n=t.start,i=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",i-n),r.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),i=e[c()].length,r=Math.min(t.start,i),o=void 0===t.end?r:Math.min(t.end,i);if(!n.extend&&r>o){var a=o;o=r,r=a}var s=l(e,r),u=l(e,o);if(s&&u){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),r>o?(n.addRange(d),n.extend(u.node,u.offset)):(d.setEnd(u.node,u.offset),n.addRange(d))}}}var u=n(23),l=n(882),c=n(373),d=u.canUseDOM&&"selection"in document&&!("getSelection"in window),h={getOffsets:d?r:o,setOffsets:d?a:s};e.exports=h},function(e,t,n){"use strict";var i=n(12),r=n(16),o=n(216),a=n(86),s=n(17),u=n(150),l=(n(9),n(231),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(l.prototype,{mountComponent:function(e,t,n,i){var r=n._idCounter++,o=" react-text: "+r+" ",l=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(o),h=c.createComment(l),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(h)),s.precacheNode(this,d),this._closingComment=h,f}var p=u(this._stringText);return e.renderToStaticMarkup?p:""+p+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var i=this.getHostNode();o.replaceDelimitedText(i[0],i[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?i("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=l},function(e,t,n){"use strict";function i(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return l.asap(i,this),n}var o=n(12),a=n(16),s=n(221),u=n(17),l=n(39),c=(n(9),n(10),{getHostProps:function(e,t){null!=t.dangerouslySetInnerHTML?o("91"):void 0;var n=a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=s.getValue(t),i=n;if(null==n){var a=t.defaultValue,u=t.children;null!=u&&(null!=a?o("92"):void 0,Array.isArray(u)&&(u.length<=1?void 0:o("93"),u=u[0]),a=""+u),null==a&&(a=""),i=a}e._wrapperState={initialValue:""+i,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=u.getNodeFromInstance(e),i=s.getValue(t);if(null!=i){var r=""+i;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=u.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function i(e,t){"_hostNode"in e?void 0:u("33"),"_hostNode"in t?void 0:u("33");for(var n=0,i=e;i;i=i._hostParent)n++;for(var r=0,o=t;o;o=o._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e?void 0:u("35"),"_hostNode"in t?void 0:u("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function o(e){return"_hostNode"in e?void 0:u("36"),e._hostParent}function a(e,t,n){for(var i=[];e;)i.push(e),e=e._hostParent;var r;for(r=i.length;r-- >0;)t(i[r],"captured",n);for(r=0;r0;)n(u[l],"captured",o)}var u=n(12);n(9);e.exports={isAncestor:r,getLowestCommonAncestor:i,getParentInstance:o,traverseTwoPhase:a,traverseEnterLeave:s}},function(e,t,n){"use strict";function i(){this.reinitializeTransaction()}var r=n(16),o=n(39),a=n(149),s=n(30),u={initialize:s,close:function(){h.isBatchingUpdates=!1}},l={initialize:s,close:o.flushBatchedUpdates.bind(o)},c=[l,u];r(i.prototype,a,{getTransactionWrappers:function(){return c}});var d=new i,h={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,i,r,o){var a=h.isBatchingUpdates;return h.isBatchingUpdates=!0,a?e(t,n,i,r,o):d.perform(e,null,t,n,i,r,o)}};e.exports=h},function(e,t,n){"use strict";function i(){T||(T=!0,y.EventEmitter.injectReactEventListener(g),y.EventPluginHub.injectEventPluginOrder(s),y.EventPluginUtils.injectComponentTree(h),y.EventPluginUtils.injectTreeTraversal(p),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:x,EnterLeaveEventPlugin:u,ChangeEventPlugin:a,SelectEventPlugin:w,BeforeInputEventPlugin:o}),y.HostComponent.injectGenericComponentClass(d),y.HostComponent.injectTextComponentClass(v),y.DOMProperty.injectDOMPropertyConfig(r),y.DOMProperty.injectDOMPropertyConfig(l),y.DOMProperty.injectDOMPropertyConfig(_),y.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),y.Updates.injectReconcileTransaction(b),y.Updates.injectBatchingStrategy(m),y.Component.injectEnvironment(c))}var r=n(823),o=n(825),a=n(827),s=n(829),u=n(830),l=n(832),c=n(834),d=n(837),h=n(17),f=n(839),p=n(847),v=n(845),m=n(848),g=n(852),y=n(853),b=n(858),_=n(863),w=n(864),x=n(865),T=!1;e.exports={inject:i}},388,function(e,t,n){"use strict";function i(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(113),o={handleTopLevel:function(e,t,n,o){var a=r.extractEvents(e,t,n,o);i(a)}};e.exports=o},function(e,t,n){"use strict";function i(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function o(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do e.ancestors.push(r),r=r&&i(r);while(r);for(var o=0;o/,o=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=i(e);return o.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var r=i(e);return r===n}};e.exports=a},function(e,t,n){"use strict";function i(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:h.getHostNode(e),toIndex:n,afterNode:t}}function o(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(e,t){return t&&(e=e||[],e.push(t)),e}function l(e,t){d.processChildrenUpdates(e,t)}var c=n(12),d=n(222),h=(n(115),n(32),n(48),n(88)),f=n(833),p=(n(30),n(879)),v=(n(9),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,i,r,o){var a,s=0;return a=p(t,s),f.updateChildren(e,a,n,i,r,this,this._hostContainerInfo,o,s),a},mountChildren:function(e,t,n){var i=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=i;var r=[],o=0;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a],u=0,l=h.mountComponent(s,t,this,this._hostContainerInfo,n,u);s._mountIndex=o++,r.push(l)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var i=[s(e)];l(this,i)},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var i=[a(e)];l(this,i)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var i=this._renderedChildren,r={},o=[],a=this._reconcilerUpdateChildren(i,e,o,r,t,n);if(a||i){var s,c=null,d=0,f=0,p=0,v=null;for(s in a)if(a.hasOwnProperty(s)){var m=i&&i[s],g=a[s];m===g?(c=u(c,this.moveChild(m,v,d,f)),f=Math.max(m._mountIndex,f),m._mountIndex=d):(m&&(f=Math.max(m._mountIndex,f)),c=u(c,this._mountChildAtIndex(g,o[p],v,d,t,n)),p++),d++,v=h.getHostNode(g)}for(s in r)r.hasOwnProperty(s)&&(c=u(c,this._unmountChild(i[s],r[s])));c&&l(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,i){if(e._mountIndex=t)return{node:r,offset:t-o};o=a}r=n(i(r))}}e.exports=r},function(e,t,n){"use strict";function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var o=n(23),a={animationend:i("Animation","AnimationEnd"),animationiteration:i("Animation","AnimationIteration"),animationstart:i("Animation","AnimationStart"),transitionend:i("Transition","TransitionEnd")},s={},u={};o.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function i(e){return'"'+r(e)+'"'}var r=n(150);e.exports=i},function(e,t,n){"use strict";var i=n(367);e.exports=i.renderSubtreeIntoContainer},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.hideSiblingNodes,i=void 0===n||n,o=t.handleContainerOverflow,a=void 0===o||o;r(this,e),this.hideSiblingNodes=i,this.handleContainerOverflow=a,this.modals=[],this.containers=[],this.data=[]}return l(e,[{key:"add",value:function(e,t,n){var i=this.modals.indexOf(e),r=this.containers.indexOf(t);if(i!==-1)return i;if(i=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&(0,y.hideSiblings)(t,e.mountNode),r!==-1)return this.data[r].modals.push(e),i;var o={modals:[e],classes:n?n.split(/\s+/):[],overflowing:(0,g.default)(t)};return this.handleContainerOverflow&&s(o,t),o.classes.forEach(f.default.addClass.bind(null,t)),this.containers.push(t),this.data.push(o),i}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(t!==-1){var n=a(this.data,e),i=this.data[n],r=this.containers[n];i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(t,1),0===i.modals.length?(i.classes.forEach(f.default.removeClass.bind(null,r)),this.handleContainerOverflow&&u(i,r),this.hideSiblingNodes&&(0,y.showSiblings)(r,e.mountNode),this.containers.splice(n,1),this.data.splice(n,1)):this.hideSiblingNodes&&(0,y.ariaHidden)(!1,i.modals[i.modals.length-1].mountNode)}}},{key:"isTopModal",value:function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}]),e}();t.default=b,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t1?n-1:0),r=1;r=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;ts?s-l:0}function a(e,t,n,i){var o=r(n),a=o.width,s=e-i,u=e+i+t;return s<0?-s:u>a?a-u:0}function s(e,t,n,i,r){var s="BODY"===i.tagName?(0,l.default)(n):(0,d.default)(n,i),u=(0,l.default)(t),c=u.height,h=u.width,f=void 0,p=void 0,v=void 0,m=void 0;if("left"===e||"right"===e){p=s.top+(s.height-c)/2,f="left"===e?s.left-h:s.left+s.width;var g=o(p,c,i,r);p+=g,m=50*(1-2*g/c)+"%",v=void 0}else{if("top"!==e&&"bottom"!==e)throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.');f=s.left+(s.width-h)/2,p="top"===e?s.top-c:s.top+s.height;var y=a(f,h,i,r);f+=y,v=50*(1-2*y/h)+"%",m=void 0}return{positionLeft:f,positionTop:p,arrowOffsetLeft:v,arrowOffsetTop:m}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var u=n(259),l=i(u),c=n(505),d=i(c),h=n(260),f=i(h),p=n(117),v=i(p);e.exports=t.default},function(e,t){"use strict";function n(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}function i(e,t){s(e,t,function(e){return n(!0,e)})}function r(e,t){s(e,t,function(e){return n(!1,e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.ariaHidden=n,t.hideSiblings=i,t.showSiblings=r;var o=["template","script","style"],a=function(e){var t=e.nodeType,n=e.tagName;return 1===t&&o.indexOf(n.toLowerCase())===-1},s=function(e,t,n){t=[].concat(t),[].forEach.call(e.children,function(e){t.indexOf(e)===-1&&a(e)&&n(e)})}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.default=void 0;var s=n(1),u=n(338),l=i(u),c=n(385),d=n(234),h=(i(d),function(e){function t(n,i){r(this,t);var a=o(this,e.call(this,n,i));return a.store=n.store,a}return a(t,e),t.prototype.getChildContext=function(){return{store:this.store,storeSubscription:null}},t.prototype.render=function(){return s.Children.only(this.props.children)},t}(s.Component));t.default=h,h.propTypes={store:c.storeShape.isRequired,children:l.default.element.isRequired},h.childContextTypes={store:c.storeShape.isRequired,storeSubscription:c.subscriptionShape},h.displayName="Provider"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t,n){for(var i=t.length-1;i>=0;i--){var r=t[i](e);if(r)return r}return function(t,i){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+i.wrappedComponentName+".")}}function a(e,t){return e===t}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?c.default:t,i=e.mapStateToPropsFactories,s=void 0===i?m.default:i,l=e.mapDispatchToPropsFactories,d=void 0===l?p.default:l,f=e.mergePropsFactories,v=void 0===f?y.default:f,g=e.selectorFactory,b=void 0===g?_.default:g;return function(e,t,i){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=l.pure,f=void 0===c||c,p=l.areStatesEqual,m=void 0===p?a:p,g=l.areOwnPropsEqual,y=void 0===g?h.default:g,_=l.areStatePropsEqual,w=void 0===_?h.default:_,x=l.areMergedPropsEqual,T=void 0===x?h.default:x,E=r(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),C=o(e,s,"mapStateToProps"),O=o(t,d,"mapDispatchToProps"),S=o(i,v,"mergeProps");return n(b,u({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:C,initMapDispatchToProps:O,initMergeProps:S,pure:f,areStatesEqual:m,areOwnPropsEqual:y,areStatePropsEqual:w,areMergedPropsEqual:T},E))}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t,n,i){return function(r,o){return n(e(r,o),t(i,o),o)}}function a(e,t,n,i,r){function o(r,o){return p=r,v=o,m=e(p,v),g=t(i,v),y=n(m,g,v),f=!0,y}function a(){return m=e(p,v),t.dependsOnOwnProps&&(g=t(i,v)),y=n(m,g,v)}function s(){return e.dependsOnOwnProps&&(m=e(p,v)),t.dependsOnOwnProps&&(g=t(i,v)),y=n(m,g,v)}function u(){var t=e(p,v),i=!h(t,m);return m=t,i&&(y=n(m,g,v)),y}function l(e,t){var n=!d(t,v),i=!c(e,p);return p=e,v=t,n&&i?a():n?s():i?u():y}var c=r.areStatesEqual,d=r.areOwnPropsEqual,h=r.areStatePropsEqual,f=!1,p=void 0,v=void 0,m=void 0,g=void 0,y=void 0;return function(e,t){return f?l(e,t):o(e,t)}}function s(e,t){var n=t.initMapStateToProps,i=t.initMapDispatchToProps,s=t.initMergeProps,u=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),l=n(e,u),c=i(e,u),d=s(e,u),h=u.pure?a:o;return h(l,c,d,e,u)}t.__esModule=!0,t.impureFinalPropsSelectorFactory=o,t.pureFinalPropsSelectorFactory=a,t.default=s;var u=n(899);i(u)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){if(!e)throw new Error("Unexpected value for "+t+" in "+n+".");"mapStateToProps"!==t&&"mapDispatchToProps"!==t||e.hasOwnProperty("dependsOnOwnProps")||(0,s.default)("The selector for "+t+" of "+n+" did not specify a value for dependsOnOwnProps.")}function o(e,t,n,i){r(e,"mapStateToProps",i),r(t,"mapDispatchToProps",i),r(n,"mergeProps",i)}t.__esModule=!0,t.default=o;var a=n(234),s=i(a)},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){var e=[],t=[];return{clear:function(){t=r,e=r},notify:function(){for(var n=e=t,i=0;i-1?t:e}function f(e,t){t=t||{};var n=t.body;if(e instanceof f){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new r(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new r(t.headers)),this.method=h(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function p(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function v(e){var t=new r;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}}),t}function m(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new r(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},_=ArrayBuffer.isView||function(e){return e&&y.indexOf(Object.prototype.toString.call(e))>-1};r.prototype.append=function(e,i){e=t(e),i=n(i);var r=this.map[e];this.map[e]=r?r+","+i:i},r.prototype.delete=function(e){delete this.map[t(e)]},r.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},r.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},r.prototype.set=function(e,i){this.map[t(e)]=n(i)},r.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},r.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),i(e)},r.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),i(e)},r.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),i(e)},g.iterable&&(r.prototype[Symbol.iterator]=r.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this,{body:this._bodyInit})},d.call(f.prototype),d.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new r(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];m.redirect=function(e,t){if(x.indexOf(t)===-1)throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.Headers=r,e.Request=f,e.Response=m,e.fetch=function(e,t){return new Promise(function(n,i){var r=new f(e,t),o=new XMLHttpRequest;o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:v(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;n(new m(t,e))},o.onerror=function(){i(new TypeError("Network request failed"))},o.ontimeout=function(){i(new TypeError("Network request failed"))},o.open(r.method,r.url,!0),"include"===r.credentials&&(o.withCredentials=!0),"responseType"in o&&g.blob&&(o.responseType="blob"),r.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send("undefined"==typeof r._bodyInit?null:r._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},220,[937,91],function(e,t,n){"use strict";function i(e){return(""+e).replace(_,"$&/")}function r(e,t){this.func=e,this.context=t,this.count=0}function o(e,t,n){var i=e.func,r=e.context;i.call(r,t,e.count++)}function a(e,t,n){if(null==e)return e;var i=r.getPooled(t,n);g(e,o,i),r.release(i)}function s(e,t,n,i){this.result=e,this.keyPrefix=t,this.func=n,this.context=i,this.count=0}function u(e,t,n){var r=e.result,o=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?l(u,r,n,m.thatReturnsArgument):null!=u&&(v.isValidElement(u)&&(u=v.cloneAndReplaceKey(u,o+(!u.key||t&&t.key===u.key?"":i(u.key)+"/")+n)),r.push(u))}function l(e,t,n,r,o){var a="";null!=n&&(a=i(n)+"/");var l=s.getPooled(t,a,r,o);g(e,u,l),s.release(l)}function c(e,t,n){if(null==e)return e;var i=[];return l(e,i,null,t,n),i}function d(e,t,n){return null}function h(e,t){return g(e,d,null)}function f(e){var t=[];return l(e,t,null,m.thatReturnsArgument),t}var p=n(905),v=n(90),m=n(30),g=n(916),y=p.twoArgumentPooler,b=p.fourArgumentPooler,_=/\/+/g;r.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},p.addPoolingTo(r,y),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p.addPoolingTo(s,b);var w={forEach:a,map:c,mapIntoWithKeyPrefixInternal:l,count:h,toArray:f};e.exports=w},function(e,t,n){"use strict";function i(e){return e}function r(e,t){var n=_.hasOwnProperty(t)?_[t]:null;x.hasOwnProperty(t)&&("OVERRIDE_BASE"!==n?h("73",t):void 0),e&&("DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n?h("74",t):void 0)}function o(e,t){if(t){"function"==typeof t?h("75"):void 0,v.isValidElement(t)?h("76"):void 0;var n=e.prototype,i=n.__reactAutoBindPairs;t.hasOwnProperty(y)&&w.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==y){var a=t[o],s=n.hasOwnProperty(o);if(r(s,o),w.hasOwnProperty(o))w[o](e,a);else{var c=_.hasOwnProperty(o),d="function"==typeof a,f=d&&!c&&!s&&t.autobind!==!1;if(f)i.push(o,a),n[o]=a;else if(s){var p=_[o];!c||"DEFINE_MANY_MERGED"!==p&&"DEFINE_MANY"!==p?h("77",p,o):void 0,"DEFINE_MANY_MERGED"===p?n[o]=u(n[o],a):"DEFINE_MANY"===p&&(n[o]=l(n[o],a))}else n[o]=a}}}else;}function a(e,t){if(t)for(var n in t){var i=t[n];if(t.hasOwnProperty(n)){var r=n in w;r?h("78",n):void 0;var o=n in e;o?h("79",n):void 0,e[n]=i}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:h("80");for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?h("81",n):void 0,e[n]=t[n]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),i=t.apply(this,arguments);if(null==n)return i;if(null==i)return n;var r={};return s(r,n),s(r,i),r}}function l(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function c(e,t){var n=t.bind(e);return n}function d(e){for(var t=e.__reactAutoBindPairs,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.stateReconciler||a;return function(t){return function(n,i,r){var o=t(e(n),i,r);return u({},o,{replaceReducer:function(t){return o.replaceReducer(e(t))}})}}}function o(e){var t=e.slice(1);t.length>0&&console.log("\n redux-persist/autoRehydrate: %d actions were fired before rehydration completed. This can be a symptom of a race\n condition where the rehydrate action may overwrite the previously affected state. Consider running these actions\n after rehydration:\n ",t.length,t)}function a(e,t,n,i){var r=u({},n);return Object.keys(t).forEach(function(o){if(e.hasOwnProperty(o)){if("object"===s(e[o])&&!t[o])return void(i&&console.log("redux-persist/autoRehydrate: sub state for key `%s` is falsy but initial state is an object, skipping autoRehydrate.",o));if(e[o]!==n[o])return i&&console.log("redux-persist/autoRehydrate: sub state for key `%s` modified, skipping autoRehydrate.",o),void(r[o]=n[o]);(0,d.default)(t[o])&&(0,d.default)(e[o])?r[o]=u({},e[o],t[o]):r[o]=t[o],i&&console.log("redux-persist/autoRehydrate: key `%s`, rehydrated to ",o,r[o])}}),r}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=i.whitelist||null,o=i.blacklist||null;return{in:function(t,i){return!n(i)&&e?e(t,i):t},out:function(e,i){return!n(i)&&t?t(e,i):e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.storages=t.purgeStoredState=t.persistStore=t.getStoredState=t.createTransform=t.createPersistor=t.autoRehydrate=void 0;var r=n(917),o=i(r),a=n(390),s=i(a),u=n(918),l=i(u),c=n(392),d=i(c),h=n(920),f=i(h),p=n(393),v=i(p),m=function(e,t,n){console.error('redux-persist: this method of importing storages has been removed. instead use `import { asyncLocalStorage } from "redux-persist/storages"`'),"function"==typeof e&&e(),"function"==typeof t&&t(),"function"==typeof n&&n()},g={getAllKeys:m,getItem:m,setItem:m,removeItem:m},y={asyncLocalStorage:g,asyncSessionStorage:g};t.autoRehydrate=o.default,t.createPersistor=s.default,t.createTransform=l.default,t.getStoredState=d.default,t.persistStore=f.default,t.purgeStoredState=v.default,t.storages=y},function(e,t,n){(function(e,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){function t(e,t){u.resume(),i&&i(e,t)}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],r=!n.skipRestore,o=null,u=(0,h.default)(e,n);return u.pause(),f(r?function(){(0,c.default)(n,function(n,i){o&&("*"===o?i={}:o.forEach(function(e){return delete i[e]})),e.dispatch(a(i,n)),t(n,i)})}:t),s({},u,{purge:function(e){return o=e||"*",u.purge(e)}})}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:u.REHYDRATE,payload:e,error:t}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t2?a-2:0),l=2;l=15||0===y[0]&&y[1]>=13?e:e.type}function a(e,t){var n=u(t);return n&&!s(e,t)&&s(e,n)?e[n].value:e[t]}function s(e,t){return void 0!==e[t]}function u(e){return"value"===e?"valueLink":"checked"===e?"checkedLink":null}function l(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function c(e,t,n){return function(){for(var i=arguments.length,r=Array(i),o=0;ol)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=d,c=h,u=a,d+=122192928e5;var p=(1e4*(268435455&d)+h)%4294967296;r[i++]=p>>>24&255,r[i++]=p>>>16&255,r[i++]=p>>>8&255,r[i++]=255&p;var v=d/4294967296*1e4&268435455;r[i++]=v>>>8&255,r[i++]=255&v,r[i++]=v>>>24&15|16,r[i++]=v>>>16&255,r[i++]=a>>>8|128,r[i++]=255&a;for(var m=e.node||s,g=0;g<6;++g)r[i+g]=m[g];return t?t:o(r)}var r=n(399),o=n(398),a=r(),s=[1|a[0],a[1],a[2],a[3],a[4],a[5]],u=16383&(a[6]<<8|a[7]),l=0,c=0;e.exports=i},function(e,t,n){function i(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null),e=e||{};var a=e.random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}var r=n(399),o=n(398);e.exports=i},function(e,t,n){"use strict";!function(t,n){e.exports=n()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var i=n(1);i.extend(t,n(87)),i.extend(t,n(116)),i.extend(t,n(158))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=n(2),o=i(r),a=n(55),s=i(a),u=n(58),l=i(u),c=n(62),d=i(c),h=n(82),f=n(86);t.isNumber=function(e){return e instanceof Number||"number"==typeof e},t.recursiveDOMDelete=function(e){if(e)for(;e.hasChildNodes()===!0;)t.recursiveDOMDelete(e.firstChild),e.removeChild(e.firstChild)},t.giveRange=function(e,t,n,i){if(t==e)return.5;var r=1/(t-e);return Math.max(0,(i-e)*r)},t.isString=function(e){return e instanceof String||"string"==typeof e},t.isDate=function(e){if(e instanceof Date)return!0;if(t.isString(e)){var n=p.exec(e);if(n)return!0;if(!isNaN(Date.parse(e)))return!0}return!1},t.randomUUID=function(){return f.v4()},t.assignAllKeys=function(e,t){for(var n in e)e.hasOwnProperty(n)&&"object"!==(0,d.default)(e[n])&&(e[n]=t)},t.fillIfDefined=function(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var r in e)void 0!==n[r]&&("object"!==(0,d.default)(n[r])?void 0!==n[r]&&null!==n[r]||void 0===e[r]||i!==!0?e[r]=n[r]:delete e[r]:"object"===(0,d.default)(e[r])&&t.fillIfDefined(e[r],n[r],i))},t.protoExtend=function(e,t){for(var n=1;n3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o=2;o3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o in i)if(i.hasOwnProperty(o)&&e.indexOf(o)==-1)if(i[o]&&i[o].constructor===Object)void 0===n[o]&&(n[o]={}),n[o].constructor===Object?t.deepExtend(n[o],i[o]):null===i[o]&&void 0!==n[o]&&r===!0?delete n[o]:n[o]=i[o];else if(Array.isArray(i[o])){n[o]=[];for(var a=0;a=0&&(t="DOMMouseScroll"),e.addEventListener(t,n,i)):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n,i){e.removeEventListener?(void 0===i&&(i=!1),"mousewheel"===t&&navigator.userAgent.indexOf("Firefox")>=0&&(t="DOMMouseScroll"),e.removeEventListener(t,n,i)):e.detachEvent("on"+t,n)},t.preventDefault=function(e){e||(e=window.event),e.preventDefault?e.preventDefault():e.returnValue=!1},t.getTarget=function(e){e||(e=window.event);var t;return e.target?t=e.target:e.srcElement&&(t=e.srcElement),void 0!=t.nodeType&&3==t.nodeType&&(t=t.parentNode),t},t.hasParent=function(e,t){for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1},t.option={},t.option.asBoolean=function(e,t){return"function"==typeof e&&(e=e()),null!=e?0!=e:t||null},t.option.asNumber=function(e,t){return"function"==typeof e&&(e=e()),null!=e?Number(e)||t||null:t||null},t.option.asString=function(e,t){return"function"==typeof e&&(e=e()),null!=e?String(e):t||null},t.option.asSize=function(e,n){return"function"==typeof e&&(e=e()),t.isString(e)?e:t.isNumber(e)?e+"px":n||null},t.option.asElement=function(e,t){return"function"==typeof e&&(e=e()),e||t||null},t.hexToRGB=function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,n,i){return t+t+n+n+i+i});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},t.overrideOpacity=function(e,n){if(e.indexOf("rgba")!=-1)return e;if(e.indexOf("rgb")!=-1){var i=e.substr(e.indexOf("(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+n+")"}var i=t.hexToRGB(e);return null==i?e:"rgba("+i.r+","+i.g+","+i.b+","+n+")"},t.RGBToHex=function(e,t,n){return"#"+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)},t.parseColor=function(e){var n;if(t.isString(e)===!0){if(t.isValidRGB(e)===!0){var i=e.substr(4).substr(0,e.length-5).split(",").map(function(e){return parseInt(e)});e=t.RGBToHex(i[0],i[1],i[2])}if(t.isValidHex(e)===!0){var r=t.hexToHSV(e),o={h:r.h,s:.8*r.s,v:Math.min(1,1.02*r.v)},a={h:r.h,s:Math.min(1,1.25*r.s),v:.8*r.v},s=t.HSVToHex(a.h,a.s,a.v),u=t.HSVToHex(o.h,o.s,o.v);n={background:e,border:s,highlight:{background:u,border:s},hover:{background:u,border:s}}}else n={background:e,border:e,highlight:{background:e,border:e},hover:{background:e,border:e}}}else n={},n.background=e.background||void 0,n.border=e.border||void 0,t.isString(e.highlight)?n.highlight={border:e.highlight,background:e.highlight}:(n.highlight={},n.highlight.background=e.highlight&&e.highlight.background||void 0,n.highlight.border=e.highlight&&e.highlight.border||void 0),t.isString(e.hover)?n.hover={border:e.hover,background:e.hover}:(n.hover={},n.hover.background=e.hover&&e.hover.background||void 0,n.hover.border=e.hover&&e.hover.border||void 0);return n},t.RGBToHSV=function(e,t,n){e/=255,t/=255,n/=255;var i=Math.min(e,Math.min(t,n)),r=Math.max(e,Math.max(t,n));if(i==r)return{h:0,s:0,v:i};var o=e==i?t-n:n==i?e-t:n-e,a=e==i?3:n==i?1:5,s=60*(a-o/(r-i))/360,u=(r-i)/r,l=r;return{h:s,s:u,v:l}};var v={split:function(e){var t={};return e.split(";").forEach(function(e){if(""!=e.trim()){var n=e.split(":"),i=n[0].trim(),r=n[1].trim();t[i]=r}}),t},join:function(e){return(0,l.default)(e).map(function(t){return t+": "+e[t]}).join("; ")}};t.addCssText=function(e,n){var i=v.split(e.style.cssText),r=v.split(n),o=t.extend(i,r);e.style.cssText=v.join(o)},t.removeCssText=function(e,t){var n=v.split(e.style.cssText),i=v.split(t);for(var r in i)i.hasOwnProperty(r)&&delete n[r];e.style.cssText=v.join(n)},t.HSVToRGB=function(e,t,n){var i,r,o,a=Math.floor(6*e),s=6*e-a,u=n*(1-t),l=n*(1-s*t),c=n*(1-(1-s)*t);switch(a%6){case 0:i=n,r=c,o=u;break;case 1:i=l,r=n,o=u;break;case 2:i=u,r=n,o=c;break;case 3:i=u,r=l,o=n;break;case 4:i=c,r=u,o=n;break;case 5:i=n,r=u,o=l}return{r:Math.floor(255*i),g:Math.floor(255*r),b:Math.floor(255*o)}},t.HSVToHex=function(e,n,i){var r=t.HSVToRGB(e,n,i);return t.RGBToHex(r.r,r.g,r.b)},t.hexToHSV=function(e){var n=t.hexToRGB(e);return t.RGBToHSV(n.r,n.g,n.b)},t.isValidHex=function(e){var t=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return t},t.isValidRGB=function(e){e=e.replace(" ","");var t=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/i.test(e);return t},t.isValidRGBA=function(e){e=e.replace(" ","");var t=/rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(.{1,3})\)/i.test(e);return t},t.selectiveBridgeObject=function(e,n){if("object"==("undefined"==typeof n?"undefined":(0,d.default)(n))){for(var i=(0,s.default)(n),r=0;r0&&t(i,e[r-1])<0;r--)e[r]=e[r-1];e[r]=i}return e},t.mergeOptions=function(e,t,n){var i=(arguments.length>3&&void 0!==arguments[3]&&arguments[3],arguments.length>4&&void 0!==arguments[4]?arguments[4]:{});if(null===t[n])e[n]=(0,s.default)(i[n]);else if(void 0!==t[n])if("boolean"==typeof t[n])e[n].enabled=t[n];else{void 0===t[n].enabled&&(e[n].enabled=!0);for(var r in t[n])t[n].hasOwnProperty(r)&&(e[n][r]=t[n][r])}},t.binarySearchCustom=function(e,t,n,i){for(var r=1e4,o=0,a=0,s=e.length-1;a<=s&&o0)return"before"==i?Math.max(0,u-1):u;if(r(a,t)<0&&r(s,t)>0)return"before"==i?u:Math.min(e.length-1,u+1);r(a,t)<0?d=u+1:h=u-1,c++}return-1},t.easingFunctions={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},t.getScrollBarWidth=function(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var i=e.offsetWidth;return n==i&&(i=t.clientWidth),document.body.removeChild(t),n-i},t.topMost=function(e,t){var n=void 0;Array.isArray(t)||(t=[t]);var i=!0,r=!1,a=void 0;try{for(var s,u=(0,o.default)(e);!(i=(s=u.next()).done);i=!0){var l=s.value;if(l){n=l[t[0]];for(var c=1;c=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports={}},function(e,t,n){var i=n(10),r=n(12);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(11);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(14),r=n(15),o=n(30),a=n(20),s=n(31),u=n(8),l=n(32),c=n(46),d=n(48),h=n(47)("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",m="values",g=function(){return this};e.exports=function(e,t,n,y,b,_,w){l(n,t,y);var x,T,E,C=function(e){if(!f&&e in M)return M[e];switch(e){case v:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",S=b==m,k=!1,M=e.prototype,P=M[h]||M[p]||b&&M[b],N=P||C(b),D=b?S?C("entries"):N:void 0,I="Array"==t?M.entries||P:P;if(I&&(E=d(I.call(new e)),E!==Object.prototype&&(c(E,O,!0),i||s(E,h)||a(E,h,g))),S&&P&&P.name!==m&&(k=!0,N=function(){return P.call(this)}),i&&!w||!f&&!k&&M[h]||a(M,h,N),u[t]=N,u[O]=g,b)if(x={values:S?N:C(m),keys:_?N:C(v),entries:D},w)for(T in x)T in M||o(M,T,x[T]);else r(r.P+r.F*(f||k),t,x);return x}},function(e,t){e.exports=!0},function(e,t,n){var i=n(16),r=n(17),o=n(18),a=n(20),s="prototype",u=function(e,t,n){var l,c,d,h=e&u.F,f=e&u.G,p=e&u.S,v=e&u.P,m=e&u.B,g=e&u.W,y=f?r:r[t]||(r[t]={}),b=y[s],_=f?i:p?i[t]:(i[t]||{})[s];f&&(n=t);for(l in n)c=!h&&_&&void 0!==_[l],c&&l in y||(d=c?_[l]:n[l],y[l]=f&&"function"!=typeof _[l]?n[l]:m&&c?o(d,i):g&&_[l]==d?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[s]=e[s],t}(d):v&&"function"==typeof d?o(Function.call,d):d,v&&((y.virtual||(y.virtual={}))[l]=d,e&u.R&&b&&!b[l]&&a(b,l,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(19);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(21),r=n(29);e.exports=n(25)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(22),r=n(24),o=n(28),a=Object.defineProperty;t.f=n(25)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(23);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(25)&&!n(26)(function(){return 7!=Object.defineProperty(n(27)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(26)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(23),r=n(16).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,n){var i=n(23);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){e.exports=n(20)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(33),r=n(29),o=n(46),a={};n(20)(a,n(47)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var i=n(22),r=n(34),o=n(44),a=n(41)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(27)("iframe"),i=o.length,r="<",a=">";for(t.style.display="none",n(45).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),l=e.F;i--;)delete l[u][o[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=i(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(21),r=n(22),o=n(35);e.exports=n(25)?Object.defineProperties:function(e,t){r(e);for(var n,a=o(t),s=a.length,u=0;s>u;)i.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var i=n(36),r=n(44);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(31),r=n(9),o=n(37)(!1),a=n(41)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),u=0,l=[];for(n in s)n!=a&&i(s,n)&&l.push(n);for(;t.length>u;)i(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var i=n(9),r=n(38),o=n(40);e.exports=function(e){return function(t,n,a){var s,u=i(t),l=r(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(39),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(39),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},function(e,t,n){var i=n(42)("keys"),r=n(43);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(16),r="__core-js_shared__",o=i[r]||(i[r]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){e.exports=n(16).document&&document.documentElement},function(e,t,n){var i=n(21).f,r=n(31),o=n(47)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t,n){var i=n(42)("wks"),r=n(43),o=n(16).Symbol,a="function"==typeof o,s=e.exports=function(e){return i[e]||(i[e]=a&&o[e]||(a?o:r)("Symbol."+e))};s.store=i},function(e,t,n){var i=n(31),r=n(49),o=n(41)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(51)(!0);n(13)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var i=n(39),r=n(12);e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),u=i(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(e,t,n){var i=n(22),r=n(53);e.exports=n(17).getIterator=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},function(e,t,n){var i=n(54),r=n(47)("iterator"),o=n(8);e.exports=n(17).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||o[i(e)]}},function(e,t,n){var i=n(11),r=n(47)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),r))?n:o?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){e.exports={default:n(56),__esModule:!0}},function(e,t,n){n(57);var i=n(17).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,n){var i=n(15);i(i.S,"Object",{create:n(33)})},function(e,t,n){e.exports={default:n(59),__esModule:!0}},function(e,t,n){n(60),e.exports=n(17).Object.keys},function(e,t,n){var i=n(49),r=n(35);n(61)("keys",function(){return function(e){return r(i(e))}})},function(e,t,n){var i=n(15),r=n(17),o=n(26);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(63),o=i(r),a=n(66),s=i(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(o.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t,n){e.exports={default:n(64),__esModule:!0}},function(e,t,n){n(50),n(4),e.exports=n(65).f("iterator")},function(e,t,n){t.f=n(47)},function(e,t,n){e.exports={default:n(67),__esModule:!0}},function(e,t,n){n(68),n(79),n(80),n(81),e.exports=n(17).Symbol},function(e,t,n){var i=n(16),r=n(31),o=n(25),a=n(15),s=n(30),u=n(69).KEY,l=n(26),c=n(42),d=n(46),h=n(43),f=n(47),p=n(65),v=n(70),m=n(71),g=n(72),y=n(75),b=n(22),_=n(9),w=n(28),x=n(29),T=n(33),E=n(76),C=n(78),O=n(21),S=n(35),k=C.f,M=O.f,P=E.f,N=i.Symbol,D=i.JSON,I=D&&D.stringify,L="prototype",A=f("_hidden"),R=f("toPrimitive"),j={}.propertyIsEnumerable,F=c("symbol-registry"),B=c("symbols"),z=c("op-symbols"),G=Object[L],H="function"==typeof N,U=i.QObject,W=!U||!U[L]||!U[L].findChild,V=o&&l(function(){return 7!=T(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=k(G,t);i&&delete G[t],M(e,t,n),i&&e!==G&&M(G,t,i)}:M,Y=function(e){var t=B[e]=T(N[L]);return t._k=e,t},Q=H&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},K=function(e,t,n){return e===G&&K(z,t,n),b(e),t=w(t,!0),b(n),r(B,t)?(n.enumerable?(r(e,A)&&e[A][t]&&(e[A][t]=!1),n=T(n,{enumerable:x(0,!1)})):(r(e,A)||M(e,A,x(1,{})),e[A][t]=!0),V(e,t,n)):M(e,t,n)},q=function(e,t){b(e);for(var n,i=g(t=_(t)),r=0,o=i.length;o>r;)K(e,n=i[r++],t[n]);return e},X=function(e,t){return void 0===t?T(e):q(T(e),t)},$=function(e){var t=j.call(this,e=w(e,!0));return!(this===G&&r(B,e)&&!r(z,e))&&(!(t||!r(this,e)||!r(B,e)||r(this,A)&&this[A][e])||t)},Z=function(e,t){if(e=_(e),t=w(t,!0),e!==G||!r(B,t)||r(z,t)){var n=k(e,t);return!n||!r(B,t)||r(e,A)&&e[A][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=P(_(e)),i=[],o=0;n.length>o;)r(B,t=n[o++])||t==A||t==u||i.push(t);return i},ee=function(e){for(var t,n=e===G,i=P(n?z:_(e)),o=[],a=0;i.length>a;)!r(B,t=i[a++])||n&&!r(G,t)||o.push(B[t]);return o};H||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){ -this===G&&t.call(z,n),r(this,A)&&r(this[A],e)&&(this[A][e]=!1),V(this,e,x(1,n))};return o&&W&&V(G,e,{configurable:!0,set:t}),Y(e)},s(N[L],"toString",function(){return this._k}),C.f=Z,O.f=K,n(77).f=E.f=J,n(74).f=$,n(73).f=ee,o&&!n(14)&&s(G,"propertyIsEnumerable",$,!0),p.f=function(e){return Y(f(e))}),a(a.G+a.W+a.F*!H,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=S(f.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return r(F,e+="")?F[e]:F[e]=N(e)},keyFor:function(e){if(Q(e))return m(F,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!H,"Object",{create:X,defineProperty:K,defineProperties:q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),D&&a(a.S+a.F*(!H||l(function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!Q(e)){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);return t=i[1],"function"==typeof t&&(n=t),!n&&y(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!Q(t))return t}),i[1]=t,I.apply(D,i)}}}),N[L][R]||n(20)(N[L],R,N[L].valueOf),d(N,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){var i=n(43)("meta"),r=n(23),o=n(31),a=n(21).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(26)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[i].i},h=function(e,t){if(!o(e,i)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[i].w},f=function(e){return l&&p.NEED&&u(e)&&!o(e,i)&&c(e),e},p=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},function(e,t,n){var i=n(16),r=n(17),o=n(14),a=n(65),s=n(21).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var i=n(35),r=n(9);e.exports=function(e,t){for(var n,o=r(e),a=i(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===t)return n}},function(e,t,n){var i=n(35),r=n(73),o=n(74);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(11);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(9),r=n(77).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},function(e,t,n){var i=n(36),r=n(44).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){var i=n(74),r=n(29),o=n(9),a=n(28),s=n(31),u=n(24),l=Object.getOwnPropertyDescriptor;t.f=n(25)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(70)("asyncIterator")},function(e,t,n){n(70)("observable")},function(e,t,n){e.exports="undefined"!=typeof window&&window.moment||n(83)},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(this,function(){function t(){return _i.apply(null,arguments)}function n(e){_i=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t;for(t in e)return!1;return!0}function a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n0)for(n=0;n0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}function R(e,t){var n=e.toLowerCase();Ai[n]=Ai[n+"s"]=Ai[t]=e}function j(e){return"string"==typeof e?Ai[e]||Ai[e.toLowerCase()]:void 0}function F(e){var t,n,i={};for(n in e)c(e,n)&&(t=j(n),t&&(i[t]=e[n]));return i}function B(e,t){Ri[e]=t}function z(e){var t=[];for(var n in e)t.push({unit:n,priority:Ri[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function G(e,n){return function(i){return null!=i?(U(this,e,i),t.updateOffset(this,n),this):H(this,e)}}function H(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function U(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function W(e){return e=j(e),O(this[e])?this[e]():this}function V(e,t){if("object"==typeof e){e=F(e);for(var n=z(e),i=0;i=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function Q(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(zi[e]=r),t&&(zi[t[0]]=function(){return Y(r.apply(this,arguments),t[1],t[2])}),n&&(zi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function K(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function q(e){var t,n,i=e.match(ji);for(t=0,n=i.length;t=0&&Fi.test(e);)e=e.replace(Fi,n),Fi.lastIndex=0,i-=1;return e}function Z(e,t,n){rr[e]=O(t)?t:function(e,i){return e&&n?n:t}}function J(e,t){return c(rr,e)?rr[e](t._strict,t._locale):new RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),s(t)&&(i=function(e,n){n[t]=w(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function _e(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function we(e,t,n){var i=7+t-n,r=(7+_e(e,0,i).getUTCDay()-t)%7;return-r+i-1}function xe(e,t,n,i,r){var o,a,s=(7+n-i)%7,u=we(e,i,r),l=1+7*(t-1)+s+u;return l<=0?(o=e-1,a=me(o)+l):l>me(e)?(o=e+1,a=l-me(e)):(o=e,a=l),{year:o,dayOfYear:a}}function Te(e,t,n){var i,r,o=we(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(r=e.year()-1,i=a+Ee(r,t,n)):a>Ee(e.year(),t,n)?(i=a-Ee(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Ee(e,t,n){var i=we(e,t,n),r=we(e+1,t,n);return(me(e)-i+r)/7}function Ce(e){return Te(e,this._week.dow,this._week.doy).week}function Oe(){return this._week.dow}function Se(){return this._week.doy}function ke(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Me(e){var t=Te(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ne(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function De(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone}function Ie(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Le(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ae(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(r=vr.call(this._weekdaysParse,a),r!==-1?r:null):"ddd"===t?(r=vr.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=vr.call(this._minWeekdaysParse,a),r!==-1?r:null):"dddd"===t?(r=vr.call(this._weekdaysParse,a),r!==-1?r:(r=vr.call(this._shortWeekdaysParse,a),r!==-1?r:(r=vr.call(this._minWeekdaysParse,a),r!==-1?r:null))):"ddd"===t?(r=vr.call(this._shortWeekdaysParse,a),r!==-1?r:(r=vr.call(this._weekdaysParse,a),r!==-1?r:(r=vr.call(this._minWeekdaysParse,a),r!==-1?r:null))):(r=vr.call(this._minWeekdaysParse,a),r!==-1?r:(r=vr.call(this._weekdaysParse,a),r!==-1?r:(r=vr.call(this._shortWeekdaysParse,a),r!==-1?r:null)))}function Re(e,t,n){var i,r,o;if(this._weekdaysParseExact)return Ae.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pe(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Be(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ne(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function ze(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Or),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ge(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function He(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ue(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),u.push(o),l.push(i),l.push(r),l.push(o);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=te(s[t]),u[t]=te(u[t]),l[t]=te(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function We(){return this.hours()%12||12}function Ve(){return this.hours()||24}function Ye(e,t){Q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qe(e,t){return t._meridiemParse}function Ke(e){return"p"===(e+"").toLowerCase().charAt(0)}function qe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Xe(e){return e?e.toLowerCase().replace("_","-"):e}function $e(e){for(var t,n,i,r,o=0;o0;){if(i=Ze(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&x(r,n,!0)>=t-1)break;t--}o++}return null}function Ze(t){var n=null;if(!Ir[t]&&"undefined"!=typeof e&&e&&e.exports)try{n=Mr._abbr,!function(){var e=new Error('Cannot find module "./locale"');throw e.code="MODULE_NOT_FOUND",e}(),Je(n)}catch(e){}return Ir[t]}function Je(e,t){var n;return e&&(n=a(t)?nt(e):et(e,t),n&&(Mr=n)),Mr._abbr}function et(e,t){if(null!==t){var n=Dr;if(t.abbr=e,null!=Ir[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ir[e]._config;else if(null!=t.parentLocale){if(null==Ir[t.parentLocale])return Lr[t.parentLocale]||(Lr[t.parentLocale]=[]),Lr[t.parentLocale].push({name:e,config:t}),null;n=Ir[t.parentLocale]._config}return Ir[e]=new M(k(n,t)),Lr[e]&&Lr[e].forEach(function(e){et(e.name,e.config)}),Je(e),Ir[e]}return delete Ir[e],null}function tt(e,t){if(null!=t){var n,i=Dr;null!=Ir[e]&&(i=Ir[e]._config),t=k(i,t),n=new M(t),n.parentLocale=Ir[e],Ir[e]=n,Je(e)}else null!=Ir[e]&&(null!=Ir[e].parentLocale?Ir[e]=Ir[e].parentLocale:null!=Ir[e]&&delete Ir[e]);return Ir[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Mr;if(!i(e)){if(t=Ze(e))return t;e=[e]}return $e(e)}function it(){return ki(Ir)}function rt(e){var t,n=e._a;return n&&p(e).overflow===-2&&(t=n[sr]<0||n[sr]>11?sr:n[ur]<1||n[ur]>oe(n[ar],n[sr])?ur:n[lr]<0||n[lr]>24||24===n[lr]&&(0!==n[cr]||0!==n[dr]||0!==n[hr])?lr:n[cr]<0||n[cr]>59?cr:n[dr]<0||n[dr]>59?dr:n[hr]<0||n[hr]>999?hr:-1,p(e)._overflowDayOfYear&&(tur)&&(t=ur),p(e)._overflowWeeks&&t===-1&&(t=fr),p(e)._overflowWeekday&&t===-1&&(t=pr),p(e).overflow=t),e}function ot(e){var t,n,i,r,o,a,s=e._i,u=Ar.exec(s)||Rr.exec(s);if(u){for(p(e).iso=!0,t=0,n=Fr.length;t10?"YYYY ":"YY "),o="HH:mm"+(n[4]?":ss":""),n[1]){var d=new Date(n[2]),h=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][d.getDay()];if(n[1].substr(0,3)!==h)return p(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===u?s=" +0000":(u=c.indexOf(n[5][1].toUpperCase())-12,s=(u<0?" -":" +")+(""+u).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:s=l[n[5]];break;default:s=l[" GMT"]}n[5]=s,e._i=n.splice(1).join(""),a=" ZZ",e._f=i+r+o+a,ht(e),p(e).rfc2822=!0}else e._isValid=!1}function st(e){var n=zr.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(ot(e),void(e._isValid===!1&&(delete e._isValid,at(e),e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e)))))}function ut(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ct(e){var t,n,i,r,o=[];if(!e._d){for(i=lt(e),e._w&&null==e._a[ur]&&null==e._a[sr]&&dt(e),null!=e._dayOfYear&&(r=ut(e._a[ar],i[ar]),(e._dayOfYear>me(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=_e(r,0,e._dayOfYear),e._a[sr]=n.getUTCMonth(),e._a[ur]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[lr]&&0===e._a[cr]&&0===e._a[dr]&&0===e._a[hr]&&(e._nextDay=!0,e._a[lr]=0),e._d=(e._useUTC?_e:be).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[lr]=24)}}function dt(e){var t,n,i,r,o,a,s,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=ut(t.GG,e._a[ar],Te(_t(),1,4).year),i=ut(t.W,1),r=ut(t.E,1),(r<1||r>7)&&(u=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var l=Te(_t(),o,a);n=ut(t.gg,e._a[ar],l.year),i=ut(t.w,l.week),null!=t.d?(r=t.d,(r<0||r>6)&&(u=!0)):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(u=!0)):r=o}i<1||i>Ee(n,o,a)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(s=xe(n,i,r,o,a),e._a[ar]=s.year,e._dayOfYear=s.dayOfYear)}function ht(e){if(e._f===t.ISO_8601)return void ot(e);if(e._f===t.RFC_2822)return void at(e);e._a=[],p(e).empty=!0;var n,i,r,o,a,s=""+e._i,u=s.length,l=0;for(r=$(e._f,e._locale).match(ji)||[],n=0;n0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),l+=i.length),zi[o]?(i?p(e).empty=!1:p(e).unusedTokens.push(o),re(o,i,e)):e._strict&&!i&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-l,s.length>0&&p(e).unusedInput.push(s),e._a[lr]<=12&&p(e).bigHour===!0&&e._a[lr]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[lr]=ft(e._locale,e._a[lr],e._meridiem),ct(e),rt(e)}function ft(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function pt(e){var t,n,i,r,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Gt(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=gt(e),e._a){var t=e._isUTC?h(e._a):_t(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ht(){return!!this.isValid()&&!this._isUTC}function Ut(){return!!this.isValid()&&this._isUTC}function Wt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Vt(e,t){var n,i,r,o=e,a=null;return kt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(o={},t?o[t]=e:o.milliseconds=e):(a=Qr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:w(a[ur])*n,h:w(a[lr])*n,m:w(a[cr])*n,s:w(a[dr])*n,ms:w(Mt(1e3*a[hr]))*n}):(a=Kr.exec(e))?(n="-"===a[1]?-1:1,o={y:Yt(a[2],n),M:Yt(a[3],n),w:Yt(a[4],n),d:Yt(a[5],n),h:Yt(a[6],n),m:Yt(a[7],n),s:Yt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Kt(_t(o.from),_t(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),i=new St(o),kt(e)&&c(e,"_locale")&&(i._locale=e._locale),i}function Yt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Qt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Kt(e,t){var n;return e.isValid()&&t.isValid()?(t=Dt(t,e),e.isBefore(t)?n=Qt(e,t):(n=Qt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function qt(e,t){return function(n,i){var r,o;return null===i||isNaN(+i)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Vt(n,i),Xt(this,r,e),this}}function Xt(e,n,i,r){var o=n._milliseconds,a=Mt(n._days),s=Mt(n._months);e.isValid()&&(r=null==r||r,o&&e._d.setTime(e._d.valueOf()+o*i),a&&U(e,"Date",H(e,"Date")+a*i),s&&ce(e,H(e,"Month")+s*i),r&&t.updateOffset(e,a||s))}function $t(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Zt(e,n){var i=e||_t(),r=Dt(i,this).startOf("day"),o=t.calendarFormat(this,r)||"sameElse",a=n&&(O(n[o])?n[o].call(this,i):n[o]);return this.format(a||this.localeData().calendar(o,this,_t(i)))}function Jt(){return new y(this)}function en(e,t){var n=b(e)?e:_t(e);return!(!this.isValid()||!n.isValid())&&(t=j(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()9999?X(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):O(Date.prototype.toISOString)?this.toDate().toISOString():X(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function dn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]';return this.format(n+i+r+o)}function hn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=X(this,e);return this.localeData().postformat(n)}function fn(e,t){return this.isValid()&&(b(e)&&e.isValid()||_t(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pn(e){return this.from(_t(),e)}function vn(e,t){return this.isValid()&&(b(e)&&e.isValid()||_t(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mn(e){return this.to(_t(),e)}function gn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function yn(){return this._locale}function bn(e){switch(e=j(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function _n(e){return e=j(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function wn(){return this._d.valueOf()-6e4*(this._offset||0)}function xn(){return Math.floor(this.valueOf()/1e3)}function Tn(){return new Date(this.valueOf())}function En(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Cn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function On(){return this.isValid()?this.toISOString():null}function Sn(){return v(this)}function kn(){return d({},p(this))}function Mn(){return p(this).overflow}function Pn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Nn(e,t){Q(0,[e,e.length],0,t)}function Dn(e){return Rn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function In(e){return Rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ln(){return Ee(this.year(),1,4)}function An(){var e=this.localeData()._week;return Ee(this.year(),e.dow,e.doy)}function Rn(e,t,n,i,r){var o;return null==e?Te(this,i,r).year:(o=Ee(e,i,r),t>o&&(t=o),jn.call(this,e,t,n,i,r))}function jn(e,t,n,i,r){var o=xe(e,t,n,i,r),a=_e(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Fn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Bn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function zn(e,t){t[hr]=w(1e3*("0."+e))}function Gn(){return this._isUTC?"UTC":""}function Hn(){return this._isUTC?"Coordinated Universal Time":""}function Un(e){return _t(1e3*e)}function Wn(){return _t.apply(null,arguments).parseZone()}function Vn(e){return e}function Yn(e,t,n,i){var r=nt(),o=h().set(i,t);return r[n](o,e)}function Qn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Yn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Yn(e,i,n,"month");return r}function Kn(e,t,n,i){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var r=nt(),o=e?r._week.dow:0;if(null!=n)return Yn(t,(n+o)%7,i,"day");var a,u=[];for(a=0;a<7;a++)u[a]=Yn(t,(a+o)%7,i,"day");return u}function qn(e,t){return Qn(e,t,"months")}function Xn(e,t){return Qn(e,t,"monthsShort")}function $n(e,t,n){return Kn(e,t,n,"weekdays")}function Zn(e,t,n){return Kn(e,t,n,"weekdaysShort")}function Jn(e,t,n){return Kn(e,t,n,"weekdaysMin")}function ei(){var e=this._data;return this._milliseconds=oo(this._milliseconds),this._days=oo(this._days),this._months=oo(this._months),e.milliseconds=oo(e.milliseconds),e.seconds=oo(e.seconds),e.minutes=oo(e.minutes),e.hours=oo(e.hours),e.months=oo(e.months),e.years=oo(e.years),this}function ti(e,t,n,i){var r=Vt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function ni(e,t){return ti(this,e,t,1)}function ii(e,t){return ti(this,e,t,-1)}function ri(e){return e<0?Math.floor(e):Math.ceil(e)}function oi(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*ri(si(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=_(o/1e3),u.seconds=e%60,t=_(e/60),u.minutes=t%60,n=_(t/60),u.hours=n%24,a+=_(n/24),r=_(ai(a)),s+=r,a-=ri(si(r)),i=_(s/12),s%=12,u.days=a,u.months=s,u.years=i,this}function ai(e){return 4800*e/146097}function si(e){return 146097*e/4800}function ui(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if(e=j(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+ai(t),"month"===e?n:n/12;switch(t=this._days+Math.round(si(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function li(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN}function ci(e){return function(){return this.as(e)}}function di(e){return e=j(e),this.isValid()?this[e+"s"]():NaN}function hi(e){return function(){return this.isValid()?this._data[e]:NaN}}function fi(){return _(this.days()/7)}function pi(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function vi(e,t,n){var i=Vt(e).abs(),r=xo(i.as("s")),o=xo(i.as("m")),a=xo(i.as("h")),s=xo(i.as("d")),u=xo(i.as("M")),l=xo(i.as("y")),c=r<=To.ss&&["s",r]||r0,c[4]=n,pi.apply(null,c)}function mi(e){return void 0===e?xo:"function"==typeof e&&(xo=e,!0)}function gi(e,t){return void 0!==To[e]&&(void 0===t?To[e]:(To[e]=t,"s"===e&&(To.ss=t-1),!0))}function yi(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=vi(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function bi(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i=Eo(this._milliseconds)/1e3,r=Eo(this._days),o=Eo(this._months);e=_(i/60),t=_(e/60),i%=60,e%=60,n=_(o/12),o%=12;var a=n,s=o,u=r,l=t,c=e,d=i,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||d?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var _i,wi;wi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i68?1900:2e3)};var wr=G("FullYear",!0);Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),B("week",5),B("isoWeek",5),Z("w",Yi),Z("ww",Yi,Hi),Z("W",Yi),Z("WW",Yi,Hi),ie(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=w(e)});var xr={dow:0,doy:6};Q("d",0,"do","day"),Q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),Z("d",Yi),Z("e",Yi),Z("E",Yi),Z("dd",function(e,t){return t.weekdaysMinRegex(e)}),Z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Z("dddd",function(e,t){return t.weekdaysRegex(e)}),ie(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),ie(["d","e","E"],function(e,t,n,i){t[i]=w(e)});var Tr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Er="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Cr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Or=ir,Sr=ir,kr=ir;Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,We),Q("k",["kk",2],0,Ve),Q("hmm",0,0,function(){return""+We.apply(this)+Y(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+We.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),Ye("a",!0),Ye("A",!1),R("hour","h"),B("hour",13),Z("a",Qe),Z("A",Qe),Z("H",Yi),Z("h",Yi),Z("k",Yi),Z("HH",Yi,Hi),Z("hh",Yi,Hi),Z("kk",Yi,Hi),Z("hmm",Qi),Z("hmmss",Ki),Z("Hmm",Qi),Z("Hmmss",Ki),ne(["H","HH"],lr),ne(["k","kk"],function(e,t,n){var i=w(e);t[lr]=24===i?0:i}),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[lr]=w(e),p(n).bigHour=!0}),ne("hmm",function(e,t,n){var i=e.length-2;t[lr]=w(e.substr(0,i)),t[cr]=w(e.substr(i)),p(n).bigHour=!0}),ne("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[lr]=w(e.substr(0,i)),t[cr]=w(e.substr(i,2)),t[dr]=w(e.substr(r)),p(n).bigHour=!0}),ne("Hmm",function(e,t,n){var i=e.length-2;t[lr]=w(e.substr(0,i)),t[cr]=w(e.substr(i))}),ne("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[lr]=w(e.substr(0,i)),t[cr]=w(e.substr(i,2)),t[dr]=w(e.substr(r))});var Mr,Pr=/[ap]\.?m?\.?/i,Nr=G("Hours",!0),Dr={calendar:Mi,longDateFormat:Pi,invalidDate:Ni,ordinal:Di,dayOfMonthOrdinalParse:Ii,relativeTime:Li,months:gr,monthsShort:yr,week:xr,weekdays:Tr,weekdaysMin:Cr,weekdaysShort:Er,meridiemParse:Pr},Ir={},Lr={},Ar=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jr=/Z|[+-]\d\d(?::?\d\d)?/,Fr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Br=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],zr=/^\/?Date\((\-?\d+)/i,Gr=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;t.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Hr=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=_t.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:m()}),Wr=function(){return Date.now?Date.now():+new Date},Vr=["year","quarter","month","week","day","hour","minute","second","millisecond"];Pt("Z",":"),Pt("ZZ",""),Z("Z",tr),Z("ZZ",tr),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(tr,e)});var Yr=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Qr=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Kr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Vt.fn=St.prototype,Vt.invalid=Ot;var qr=qt(1,"add"),Xr=qt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $r=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});Q(0,["gg",2],0,function(){return this.weekYear()%100}),Q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Nn("gggg","weekYear"),Nn("ggggg","weekYear"),Nn("GGGG","isoWeekYear"),Nn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),Z("G",Ji),Z("g",Ji),Z("GG",Yi,Hi),Z("gg",Yi,Hi),Z("GGGG",Xi,Wi),Z("gggg",Xi,Wi),Z("GGGGG",$i,Vi),Z("ggggg",$i,Vi),ie(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=w(e)}),ie(["gg","GG"],function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)}),Q("Q",0,"Qo","quarter"),R("quarter","Q"),B("quarter",7),Z("Q",Gi),ne("Q",function(e,t){t[sr]=3*(w(e)-1)}),Q("D",["DD",2],"Do","date"),R("date","D"),B("date",9),Z("D",Yi),Z("DD",Yi,Hi),Z("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ne(["D","DD"],ur),ne("Do",function(e,t){t[ur]=w(e.match(Yi)[0],10)});var Zr=G("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),B("dayOfYear",4),Z("DDD",qi),Z("DDDD",Ui),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),Q("m",["mm",2],0,"minute"),R("minute","m"),B("minute",14),Z("m",Yi),Z("mm",Yi,Hi),ne(["m","mm"],cr);var Jr=G("Minutes",!1);Q("s",["ss",2],0,"second"),R("second","s"),B("second",15),Z("s",Yi),Z("ss",Yi,Hi),ne(["s","ss"],dr);var eo=G("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)}),Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Q(0,["SSS",3],0,"millisecond"),Q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),B("millisecond",16),Z("S",qi,Gi),Z("SS",qi,Hi),Z("SSS",qi,Ui);var to;for(to="SSSS";to.length<=9;to+="S")Z(to,Zi);for(to="S";to.length<=9;to+="S")ne(to,zn);var no=G("Milliseconds",!1);Q("z",0,0,"zoneAbbr"),Q("zz",0,0,"zoneName");var io=y.prototype;io.add=qr,io.calendar=Zt,io.clone=Jt,io.diff=sn,io.endOf=_n,io.format=hn,io.from=fn,io.fromNow=pn,io.to=vn,io.toNow=mn,io.get=W,io.invalidAt=Mn,io.isAfter=en,io.isBefore=tn,io.isBetween=nn,io.isSame=rn,io.isSameOrAfter=on,io.isSameOrBefore=an,io.isValid=Sn,io.lang=$r,io.locale=gn,io.localeData=yn,io.max=Ur,io.min=Hr,io.parsingFlags=kn,io.set=V,io.startOf=bn,io.subtract=Xr,io.toArray=En,io.toObject=Cn,io.toDate=Tn,io.toISOString=cn,io.inspect=dn,io.toJSON=On,io.toString=ln,io.unix=xn,io.valueOf=wn,io.creationData=Pn,io.year=wr,io.isLeapYear=ye,io.weekYear=Dn,io.isoWeekYear=In,io.quarter=io.quarters=Fn,io.month=de,io.daysInMonth=he,io.week=io.weeks=ke,io.isoWeek=io.isoWeeks=Me,io.weeksInYear=An,io.isoWeeksInYear=Ln,io.date=Zr,io.day=io.days=je,io.weekday=Fe,io.isoWeekday=Be,io.dayOfYear=Bn,io.hour=io.hours=Nr,io.minute=io.minutes=Jr,io.second=io.seconds=eo,io.millisecond=io.milliseconds=no,io.utcOffset=Lt,io.utc=Rt,io.local=jt,io.parseZone=Ft,io.hasAlignedHourOffset=Bt,io.isDST=zt,io.isLocal=Ht,io.isUtcOffset=Ut,io.isUtc=Wt,io.isUTC=Wt,io.zoneAbbr=Gn,io.zoneName=Hn,io.dates=E("dates accessor is deprecated. Use date instead.",Zr),io.months=E("months accessor is deprecated. Use month instead",de),io.years=E("years accessor is deprecated. Use year instead",wr),io.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",At),io.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Gt);var ro=M.prototype;ro.calendar=P,ro.longDateFormat=N,ro.invalidDate=D,ro.ordinal=I,ro.preparse=Vn,ro.postformat=Vn,ro.relativeTime=L,ro.pastFuture=A,ro.set=S,ro.months=ae,ro.monthsShort=se,ro.monthsParse=le,ro.monthsRegex=pe,ro.monthsShortRegex=fe,ro.week=Ce,ro.firstDayOfYear=Se,ro.firstDayOfWeek=Oe,ro.weekdays=De,ro.weekdaysMin=Le,ro.weekdaysShort=Ie,ro.weekdaysParse=Re,ro.weekdaysRegex=ze,ro.weekdaysShortRegex=Ge,ro.weekdaysMinRegex=He,ro.isPM=Ke,ro.meridiem=qe,Je("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=E("moment.lang is deprecated. Use moment.locale instead.",Je),t.langData=E("moment.langData is deprecated. Use moment.localeData instead.",nt);var oo=Math.abs,ao=ci("ms"),so=ci("s"),uo=ci("m"),lo=ci("h"),co=ci("d"),ho=ci("w"),fo=ci("M"),po=ci("y"),vo=hi("milliseconds"),mo=hi("seconds"),go=hi("minutes"),yo=hi("hours"),bo=hi("days"),_o=hi("months"),wo=hi("years"),xo=Math.round,To={ss:44,s:45,m:45,h:22,d:26,M:11},Eo=Math.abs,Co=St.prototype;return Co.isValid=Ct,Co.abs=ei,Co.add=ni,Co.subtract=ii,Co.as=ui,Co.asMilliseconds=ao,Co.asSeconds=so,Co.asMinutes=uo,Co.asHours=lo,Co.asDays=co,Co.asWeeks=ho,Co.asMonths=fo,Co.asYears=po,Co.valueOf=li,Co._bubble=oi,Co.get=di,Co.milliseconds=vo,Co.seconds=mo,Co.minutes=go,Co.hours=yo,Co.days=bo,Co.weeks=fi,Co.months=_o,Co.years=wo,Co.humanize=yi,Co.toISOString=bi,Co.toString=bi,Co.toJSON=bi,Co.locale=gn,Co.localeData=yn,Co.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bi),Co.lang=$r,Q("X",0,0,"unix"),Q("x",0,0,"valueOf"),Z("x",Ji),Z("X",nr),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(w(e))}),t.version="2.18.0",n(_t),t.fn=io,t.min=xt,t.max=Tt,t.now=Wr,t.utc=h,t.unix=Un,t.months=qn,t.isDate=u,t.locale=Je,t.invalid=m,t.duration=Vt,t.isMoment=b,t.weekdays=$n,t.parseZone=Wn,t.localeData=nt,t.isDuration=kt,t.monthsShort=Xn,t.weekdaysMin=Jn,t.defineLocale=et,t.updateLocale=tt,t.locales=it,t.weekdaysShort=Zn,t.normalizeUnits=j,t.relativeTimeRounding=mi,t.relativeTimeThreshold=gi,t.calendarFormat=$t,t.prototype=io,t})}).call(t,n(84)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){function n(e){throw new Error("Cannot find module '"+e+"'.")}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=85},function(e,t){(function(t){function n(e,t,n){var i=t&&n||0,r=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){r<16&&(t[i+r++]=d[e])});r<16;)t[i+r++]=0;return t}function i(e,t){var n=t||0,i=c;return i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]}function r(e,t,n){var r=t&&n||0,o=t||[];e=e||{};var a=void 0!==e.clockseq?e.clockseq:v,s=void 0!==e.msecs?e.msecs:(new Date).getTime(),u=void 0!==e.nsecs?e.nsecs:g+1,l=s-m+(u-g)/1e4;if(l<0&&void 0===e.clockseq&&(a=a+1&16383),(l<0||s>m)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");m=s,g=u,v=a,s+=122192928e5;var c=(1e4*(268435455&s)+u)%4294967296;o[r++]=c>>>24&255,o[r++]=c>>>16&255,o[r++]=c>>>8&255,o[r++]=255&c;var d=s/4294967296*1e4&268435455;o[r++]=d>>>8&255,o[r++]=255&d,o[r++]=d>>>24&15|16,o[r++]=d>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var h=e.node||p,f=0;f<6;f++)o[r+f]=h[f];return t?t:i(o)}function o(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var s=0;s<16;s++)t[r+s]=o[s];return t||i(o)}var a,s="undefined"!=typeof window?window:"undefined"!=typeof t?t:null;if(s&&s.crypto&&crypto.getRandomValues){var u=new Uint8Array(16);a=function(){return crypto.getRandomValues(u),u}}if(!a){var l=new Array(16);a=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),l[t]=e>>>((3&t)<<3)&255;return l}}for(var c=[],d={},h=0;h<256;h++)c[h]=(h+256).toString(16).substr(1),d[c[h]]=h;var f=a(),p=[1|f[0],f[1],f[2],f[3],f[4],f[5]],v=16383&(f[6]<<8|f[7]),m=0,g=0,y=o;y.v1=r,y.v4=o,y.parse=n,y.unparse=i,e.exports=y}).call(t,function(){return this}())},function(e,t,n){t.util=n(1),t.DOMutil=n(88),t.DataSet=n(89),t.DataView=n(93),t.Queue=n(92),t.Graph3d=n(94),t.graph3d={Camera:n(102),Filter:n(107),Point2d:n(101),Point3d:n(100),Slider:n(108),StepNumber:n(109)},t.moment=n(82),t.Hammer=n(112),t.keycharm=n(115)},function(e,t){t.prepareElements=function(e){for(var t in e)e.hasOwnProperty(t)&&(e[t].redundant=e[t].used,e[t].used=[])},t.cleanupElements=function(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t].redundant){for(var n=0;n0?(i=t[e].redundant[0],t[e].redundant.shift()):(i=document.createElementNS("http://www.w3.org/2000/svg",e),n.appendChild(i)):(i=document.createElementNS("http://www.w3.org/2000/svg",e),t[e]={used:[],redundant:[]},n.appendChild(i)),t[e].used.push(i),i},t.getDOMElement=function(e,t,n,i){var r;return t.hasOwnProperty(e)?t[e].redundant.length>0?(r=t[e].redundant[0],t[e].redundant.shift()):(r=document.createElement(e),void 0!==i?n.insertBefore(r,i):n.appendChild(r)):(r=document.createElement(e),t[e]={used:[],redundant:[]},void 0!==i?n.insertBefore(r,i):n.appendChild(r)),t[e].used.push(r),r},t.drawPoint=function(e,n,i,r,o,a){var s;if("circle"==i.style?(s=t.getSVGElement("circle",r,o),s.setAttributeNS(null,"cx",e),s.setAttributeNS(null,"cy",n),s.setAttributeNS(null,"r",.5*i.size)):(s=t.getSVGElement("rect",r,o),s.setAttributeNS(null,"x",e-.5*i.size),s.setAttributeNS(null,"y",n-.5*i.size),s.setAttributeNS(null,"width",i.size),s.setAttributeNS(null,"height",i.size)),void 0!==i.styles&&s.setAttributeNS(null,"style",i.styles),s.setAttributeNS(null,"class",i.className+" vis-point"),a){var u=t.getSVGElement("text",r,o);a.xOffset&&(e+=a.xOffset),a.yOffset&&(n+=a.yOffset),a.content&&(u.textContent=a.content),a.className&&u.setAttributeNS(null,"class",a.className+" vis-label"),u.setAttributeNS(null,"x",e),u.setAttributeNS(null,"y",n)}return s},t.drawBar=function(e,n,i,r,o,a,s,u){if(0!=r){r<0&&(r*=-1,n-=r);var l=t.getSVGElement("rect",a,s);l.setAttributeNS(null,"x",e-.5*i),l.setAttributeNS(null,"y",n),l.setAttributeNS(null,"width",i),l.setAttributeNS(null,"height",r),l.setAttributeNS(null,"class",o),u&&l.setAttributeNS(null,"style",u)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(e&&!Array.isArray(e)&&(t=e,e=null),this._options=t||{},this._data={},this.length=0,this._fieldId=this._options.fieldId||"id",this._type={},this._options.type)for(var n=(0,c.default)(this._options.type),i=0,r=n.length;ir?1:ia)&&(o=u,a=l)}return o},r.prototype.min=function(e){var t,n,i=this._data,r=(0,c.default)(i),o=null,a=null;for(t=0,n=r.length;tthis.max&&this.flush(),clearTimeout(this._timeout),this.queue.length>0&&"number"==typeof this.delay){var e=this;this._timeout=setTimeout(function(){e.flush()},this.delay)}},n.prototype.flush=function(){for(;this._queue.length>0;){var e=this._queue.shift();e.fn.apply(e.context||e.fn,e.args||[])}},e.exports=n},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){this._data=null,this._ids={},this.length=0,this._options=t||{},this._fieldId="id",this._subscribers={};var n=this;this.listener=function(){n._onEvent.apply(n,arguments)},this.setData(e)}var o=n(58),a=i(o),s=n(1),u=n(89);r.prototype.setData=function(e){var t,n,i,r,o;if(this._data){for(this._data.off&&this._data.off("*",this.listener),t=this._data.getIds({filter:this._options&&this._options.filter}),o=[],i=0,r=t.length;io)&&(i=o)}return i},r.prototype.getColumnRange=function(e,t){for(var n=new y,i=0;i0&&(u[i-1].pointNext=a),u.push(a);return u},r.prototype.create=function(){for(;this.containerElement.hasChildNodes();)this.containerElement.removeChild(this.containerElement.firstChild);this.frame=document.createElement("div"),this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas);var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e),this.frame.filter=document.createElement("div"),this.frame.filter.style.position="absolute",this.frame.filter.style.bottom="0px",this.frame.filter.style.left="0px",this.frame.filter.style.width="100%",this.frame.appendChild(this.frame.filter);var t=this,n=function(e){t._onMouseDown(e)},i=function(e){t._onTouchStart(e)},r=function(e){t._onWheel(e)},o=function(e){t._onTooltip(e)},a=function(e){t._onClick(e)};h.addEventListener(this.frame.canvas,"mousedown",n),h.addEventListener(this.frame.canvas,"touchstart",i),h.addEventListener(this.frame.canvas,"mousewheel",r),h.addEventListener(this.frame.canvas,"mousemove",o),h.addEventListener(this.frame.canvas,"click",a),this.containerElement.appendChild(this.frame)},r.prototype._setSize=function(e,t){this.frame.style.width=e,this.frame.style.height=t,this._resizeCanvas()},r.prototype._resizeCanvas=function(){this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=this.frame.canvas.clientWidth,this.frame.canvas.height=this.frame.canvas.clientHeight,this.frame.filter.style.width=this.frame.canvas.clientWidth-20+"px"},r.prototype.animationStart=function(){if(!this.frame.filter||!this.frame.filter.slider)throw new Error("No animation available");this.frame.filter.slider.play()},r.prototype.animationStop=function(){this.frame.filter&&this.frame.filter.slider&&this.frame.filter.slider.stop()},r.prototype._resizeCenter=function(){"%"===this.xCenter.charAt(this.xCenter.length-1)?this.currentXCenter=parseFloat(this.xCenter)/100*this.frame.canvas.clientWidth:this.currentXCenter=parseFloat(this.xCenter),"%"===this.yCenter.charAt(this.yCenter.length-1)?this.currentYCenter=parseFloat(this.yCenter)/100*(this.frame.canvas.clientHeight-this.frame.filter.clientHeight):this.currentYCenter=parseFloat(this.yCenter)},r.prototype.getCameraPosition=function(){var e=this.camera.getArmRotation();return e.distance=this.camera.getArmLength(),e},r.prototype._readData=function(e){this._dataInitialize(e,this.style),this.dataFilter?this.dataPoints=this.dataFilter._getDataPoints():this.dataPoints=this._getDataPoints(this.dataTable),this._redrawFilter()},r.prototype.setData=function(e){this._readData(e),this.redraw(),this.animationAutoStart&&this.dataFilter&&this.animationStart()},r.prototype.setOptions=function(e){this.animationStop(),b.setOptions(e,this),this.setPointDrawingMethod(),this._setSize(this.width,this.height),this.dataTable&&this.setData(this.dataTable),this.animationAutoStart&&this.dataFilter&&this.animationStart()},r.prototype.setPointDrawingMethod=function(){var e=void 0;switch(this.style){case r.STYLE.BAR:e=r.prototype._redrawBarGraphPoint;break;case r.STYLE.BARCOLOR:e=r.prototype._redrawBarColorGraphPoint;break;case r.STYLE.BARSIZE:e=r.prototype._redrawBarSizeGraphPoint;break;case r.STYLE.DOT:e=r.prototype._redrawDotGraphPoint;break;case r.STYLE.DOTLINE:e=r.prototype._redrawDotLineGraphPoint;break;case r.STYLE.DOTCOLOR:e=r.prototype._redrawDotColorGraphPoint;break;case r.STYLE.DOTSIZE:e=r.prototype._redrawDotSizeGraphPoint;break;case r.STYLE.SURFACE:e=r.prototype._redrawSurfaceGraphPoint;break;case r.STYLE.GRID:e=r.prototype._redrawGridGraphPoint;break;case r.STYLE.LINE:e=r.prototype._redrawLineGraphPoint;break;default:throw new Error("Can not determine point drawing method for graph style '"+this.style+"'")}this._pointDrawingMethod=e},r.prototype.redraw=function(){if(void 0===this.dataPoints)throw new Error("Graph data not initialized");this._resizeCanvas(),this._resizeCenter(),this._redrawSlider(),this._redrawClear(),this._redrawAxis(),this._redrawDataGraph(),this._redrawInfo(),this._redrawLegend()},r.prototype._getContext=function(){var e=this.frame.canvas,t=e.getContext("2d");return t.lineJoin="round",t.lineCap="round",t},r.prototype._redrawClear=function(){var e=this.frame.canvas,t=e.getContext("2d");t.clearRect(0,0,e.width,e.height)},r.prototype._dotSize=function(){return this.frame.clientWidth*this.dotSizeRatio},r.prototype._getLegendWidth=function(){var e;if(this.style===r.STYLE.DOTSIZE){var t=this._dotSize();e=t/2+2*t}else e=this.style===r.STYLE.BARSIZE?this.xBarWidth:20;return e},r.prototype._redrawLegend=function(){if(this.showLegend===!0&&this.style!==r.STYLE.LINE&&this.style!==r.STYLE.BARSIZE){var e=this.style===r.STYLE.BARSIZE||this.style===r.STYLE.DOTSIZE,t=this.style===r.STYLE.DOTSIZE||this.style===r.STYLE.DOTCOLOR||this.style===r.STYLE.BARCOLOR,n=Math.max(.25*this.frame.clientHeight,100),i=this.margin,o=this._getLegendWidth(),a=this.frame.clientWidth-this.margin,s=a-o,u=i+n,l=this._getContext();if(l.lineWidth=1,l.font="14px arial",e===!1){var c,d=0,h=n;for(c=d;c0?(e.textAlign="center",e.textBaseline="top",o.y+=r):Math.sin(2*i)<0?(e.textAlign="right",e.textBaseline="middle"):(e.textAlign="left",e.textBaseline="middle"),e.fillStyle=this.axisColor,e.fillText(n,o.x,o.y)},r.prototype.drawAxisLabelY=function(e,t,n,i,r){void 0===r&&(r=0);var o=this._convert3Dto2D(t);Math.cos(2*i)<0?(e.textAlign="center",e.textBaseline="top",o.y+=r):Math.sin(2*i)>0?(e.textAlign="right",e.textBaseline="middle"):(e.textAlign="left",e.textBaseline="middle"),e.fillStyle=this.axisColor,e.fillText(n,o.x,o.y)},r.prototype.drawAxisLabelZ=function(e,t,n,i){void 0===i&&(i=0);var r=this._convert3Dto2D(t);e.textAlign="right",e.textBaseline="middle",e.fillStyle=this.axisColor,e.fillText(n,r.x-i,r.y)},r.prototype._line3d=function(e,t,n,i){var r=this._convert3Dto2D(t),o=this._convert3Dto2D(n);this._line(e,r,o,i)},r.prototype._redrawAxis=function(){var e,t,n,i,r,o,a,s,u,l,c,d=this._getContext();d.font=24/this.camera.getArmLength()+"px arial";var h=.025/this.scale.x,v=.025/this.scale.y,m=5/this.camera.getArmLength(),y=this.camera.getArmRotation().horizontal,b=new p(Math.cos(y),Math.sin(y)),_=this.xRange,w=this.yRange,x=this.zRange;for(d.lineWidth=1,i=void 0===this.defaultXStep,n=new g(_.min,_.max,this.xStep,i),n.start(!0);!n.end();){var T=n.getCurrent();if(this.showGrid?(e=new f(T,w.min,x.min),t=new f(T,w.max,x.min),this._line3d(d,e,t,this.gridColor)):this.showXAxis&&(e=new f(T,w.min,x.min),t=new f(T,w.min+h,x.min),this._line3d(d,e,t,this.axisColor),e=new f(T,w.max,x.min),t=new f(T,w.max-h,x.min),this._line3d(d,e,t,this.axisColor)),this.showXAxis){a=b.x>0?w.min:w.max;var E=new f(T,a,x.min),C=" "+this.xValueLabel(T)+" ";this.drawAxisLabelX(d,E,C,y,m)}n.next()}for(d.lineWidth=1,i=void 0===this.defaultYStep,n=new g(w.min,w.max,this.yStep,i),n.start(!0);!n.end();){var O=n.getCurrent();if(this.showGrid?(e=new f(_.min,O,x.min),t=new f(_.max,O,x.min),this._line3d(d,e,t,this.gridColor)):this.showYAxis&&(e=new f(_.min,O,x.min),t=new f(_.min+v,O,x.min),this._line3d(d,e,t,this.axisColor),e=new f(_.max,O,x.min),t=new f(_.max-v,O,x.min),this._line3d(d,e,t,this.axisColor)),this.showYAxis){o=b.y>0?_.min:_.max,E=new f(o,O,x.min);var C=" "+this.yValueLabel(O)+" ";this.drawAxisLabelY(d,E,C,y,m)}n.next()}if(this.showZAxis){for(d.lineWidth=1,i=void 0===this.defaultZStep,n=new g(x.min,x.max,this.zStep,i),n.start(!0),o=b.x>0?_.min:_.max,a=b.y<0?w.min:w.max;!n.end();){var S=n.getCurrent(),k=new f(o,a,S),M=this._convert3Dto2D(k);t=new p(M.x-m,M.y),this._line(d,M,t,this.axisColor);var C=this.zValueLabel(S)+" ";this.drawAxisLabelZ(d,k,C,5),n.next()}d.lineWidth=1,e=new f(o,a,x.min),t=new f(o,a,x.max),this._line3d(d,e,t,this.axisColor)}if(this.showXAxis){var P,N;d.lineWidth=1,P=new f(_.min,w.min,x.min),N=new f(_.max,w.min,x.min),this._line3d(d,P,N,this.axisColor),P=new f(_.min,w.max,x.min),N=new f(_.max,w.max,x.min),this._line3d(d,P,N,this.axisColor)}this.showYAxis&&(d.lineWidth=1,e=new f(_.min,w.min,x.min),t=new f(_.min,w.max,x.min),this._line3d(d,e,t,this.axisColor),e=new f(_.max,w.min,x.min),t=new f(_.max,w.max,x.min),this._line3d(d,e,t,this.axisColor));var D=this.xLabel;D.length>0&&this.showXAxis&&(c=.1/this.scale.y,o=(_.max+3*_.min)/4,a=b.x>0?w.min-c:w.max+c,r=new f(o,a,x.min),this.drawAxisLabelX(d,r,D,y));var I=this.yLabel;I.length>0&&this.showYAxis&&(l=.1/this.scale.x,o=b.y>0?_.min-l:_.max+l,a=(w.max+3*w.min)/4,r=new f(o,a,x.min),this.drawAxisLabelY(d,r,I,y));var L=this.zLabel;L.length>0&&this.showZAxis&&(u=30,o=b.x>0?_.min:_.max,a=b.y<0?w.min:w.max,s=(x.max+3*x.min)/4,r=new f(o,a,s),this.drawAxisLabelZ(d,r,L,u))},r.prototype._hsv2rgb=function(e,t,n){var i,r,o,a,s,u;switch(a=n*t,s=Math.floor(e/60),u=a*(1-Math.abs(e/60%2-1)),s){case 0:i=a,r=u,o=0;break;case 1:i=u,r=a,o=0;break;case 2:i=0,r=a,o=u;break;case 3:i=0,r=u,o=a;break;case 4:i=u,r=0,o=a;break;case 5:i=a,r=0,o=u;break;default:i=0,r=0,o=0}return"RGB("+parseInt(255*i)+","+parseInt(255*r)+","+parseInt(255*o)+")"},r.prototype._getStrokeWidth=function(e){return void 0!==e?this.showPerspective?1/-e.trans.z*this.dataColor.strokeWidth:-(this.eye.z/this.camera.getArmLength())*this.dataColor.strokeWidth:this.dataColor.strokeWidth},r.prototype._redrawBar=function(e,t,n,i,r,o){var a,s,u=this,l=t.point,c=this.zRange.min,d=[{point:new f(l.x-n,l.y-i,l.z)},{point:new f(l.x+n,l.y-i,l.z)},{point:new f(l.x+n,l.y+i,l.z)},{point:new f(l.x-n,l.y+i,l.z)}],h=[{point:new f(l.x-n,l.y-i,c)},{point:new f(l.x+n,l.y-i,c)},{point:new f(l.x+n,l.y+i,c)},{point:new f(l.x-n,l.y+i,c)}];d.forEach(function(e){e.screen=u._convert3Dto2D(e.point)}),h.forEach(function(e){e.screen=u._convert3Dto2D(e.point)});var p=[{corners:d,center:f.avg(h[0].point,h[2].point)},{corners:[d[0],d[1],h[1],h[0]],center:f.avg(h[1].point,h[0].point)},{corners:[d[1],d[2],h[2],h[1]],center:f.avg(h[2].point,h[1].point)},{corners:[d[2],d[3],h[3],h[2]],center:f.avg(h[3].point,h[2].point)},{corners:[d[3],d[0],h[0],h[3]],center:f.avg(h[0].point,h[3].point)}];for(t.surfaces=p,a=0;a0}if(s){var h,p=(t.point.z+n.point.z+i.point.z+r.point.z)/4,v=240*(1-(p-this.zRange.min)*this.scale.z/this.verticalRatio),m=1;this.showShadow?(h=Math.min(1+c.x/d/2,1),o=this._hsv2rgb(v,m,h),a=o):(h=1,o=this._hsv2rgb(v,m,h),a=this.axisColor)}else o="gray",a=this.axisColor;e.lineWidth=this._getStrokeWidth(t);var g=[t,n,r,i];this._polygon(e,g,o,a)}},r.prototype._drawGridLine=function(e,t,n){if(void 0!==t&&void 0!==n){var i=(t.point.z+n.point.z)/2,r=240*(1-(i-this.zRange.min)*this.scale.z/this.verticalRatio);e.lineWidth=2*this._getStrokeWidth(t),e.strokeStyle=this._hsv2rgb(r,1,1),this._line(e,t.screen,n.screen)}},r.prototype._redrawGridGraphPoint=function(e,t){this._drawGridLine(e,t,t.pointRight),this._drawGridLine(e,t,t.pointTop)},r.prototype._redrawLineGraphPoint=function(e,t){void 0!==t.pointNext&&(e.lineWidth=this._getStrokeWidth(t),e.strokeStyle=this.dataColor.stroke,this._line(e,t.screen,t.pointNext.screen))},r.prototype._redrawDataGraph=function(){var e,t=this._getContext();if(!(void 0===this.dataPoints||this.dataPoints.length<=0))for(this._calcTranslations(this.dataPoints),e=0;e0?1:e<0?-1:0}var i=t[0],r=t[1],o=t[2],a=n((r.x-i.x)*(e.y-i.y)-(r.y-i.y)*(e.x-i.x)),s=n((o.x-r.x)*(e.y-r.y)-(o.y-r.y)*(e.x-r.x)),u=n((i.x-o.x)*(e.y-o.y)-(i.y-o.y)*(e.x-o.x));return!(0!=a&&0!=s&&a!=s||0!=s&&0!=u&&s!=u||0!=a&&0!=u&&a!=u)},r.prototype._dataPointFromXY=function(e,t){var n,i=100,o=null,a=null,s=null,u=new p(e,t);if(this.style===r.STYLE.BAR||this.style===r.STYLE.BARCOLOR||this.style===r.STYLE.BARSIZE)for(n=this.dataPoints.length-1;n>=0;n--){o=this.dataPoints[n];var l=o.surfaces;if(l)for(var c=l.length-1;c>=0;c--){var d=l[c],h=d.corners,f=[h[0].screen,h[1].screen,h[2].screen],v=[h[2].screen,h[3].screen,h[0].screen];if(this._insideTriangle(u,f)||this._insideTriangle(u,v))return o}}else for(n=0;n"+this.xLabel+":"+e.point.x+""+this.yLabel+":"+e.point.y+""+this.zLabel+":"+e.point.z+"",t.style.left="0",t.style.top="0",this.frame.appendChild(t),this.frame.appendChild(n),this.frame.appendChild(i);var r=t.offsetWidth,o=t.offsetHeight,a=n.offsetHeight,s=i.offsetWidth,l=i.offsetHeight,c=e.screen.x-r/2;c=Math.min(Math.max(c,10),this.frame.clientWidth-10-r),n.style.left=e.screen.x+"px",n.style.top=e.screen.y-a+"px",t.style.left=c+"px",t.style.top=e.screen.y-a-o+"px",i.style.left=e.screen.x-s/2+"px",i.style.top=e.screen.y-l/2+"px"},r.prototype._hideTooltip=function(){if(this.tooltip){this.tooltip.dataPoint=null;for(var e in this.tooltip.dom)if(this.tooltip.dom.hasOwnProperty(e)){var t=this.tooltip.dom[e];t&&t.parentNode&&t.parentNode.removeChild(t)}}},r.prototype.setCameraPosition=function(e){b.setCameraPosition(e,this),this.redraw()},r.prototype.setSize=function(e,t){this._setSize(e,t),this.redraw()},e.exports=r},function(e,t,n){e.exports={default:n(96),__esModule:!0}},function(e,t,n){n(97),e.exports=n(17).Object.assign},function(e,t,n){var i=n(15);i(i.S+i.F,"Object",{assign:n(98)})},function(e,t,n){var i=n(35),r=n(73),o=n(74),a=n(49),s=n(10),u=Object.assign;e.exports=!u||n(26)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=i})?function(e,t){for(var n=a(e),u=arguments.length,l=1,c=r.f,d=o.f;u>l;)for(var h,f=s(arguments[l++]),p=c?i(f).concat(c(f)):i(f),v=p.length,m=0;v>m;)d.call(f,h=p[m++])&&(n[h]=f[h]);return n}:u},function(e,t){function n(e){if(e)return i(e)}function i(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},n.prototype.once=function(e,t){function n(){i.off(e,n),t.apply(this,arguments)}var i=this;return this._callbacks=this._callbacks||{},n.fn=t,this.on(e,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1==arguments.length)return delete this._callbacks[e],this;for(var i,r=0;ro&&(e=i(e)*o),n(t)>o&&(t=i(t)*o),this.cameraOffset.x=e,this.cameraOffset.y=t,this.calculateCameraOrientation()},r.prototype.getOffset=function(e,t){return this.cameraOffset},r.prototype.setArmLocation=function(e,t,n){this.armLocation.x=e,this.armLocation.y=t,this.armLocation.z=n,this.calculateCameraOrientation()},r.prototype.setArmRotation=function(e,t){void 0!==e&&(this.armRotation.horizontal=e),void 0!==t&&(this.armRotation.vertical=t,this.armRotation.vertical<0&&(this.armRotation.vertical=0),this.armRotation.vertical>.5*Math.PI&&(this.armRotation.vertical=.5*Math.PI)),void 0===e&&void 0===t||this.calculateCameraOrientation()},r.prototype.getArmRotation=function(){var e={};return e.horizontal=this.armRotation.horizontal,e.vertical=this.armRotation.vertical,e},r.prototype.setArmLength=function(e){void 0!==e&&(this.armLength=e,this.armLength<.71&&(this.armLength=.71),this.armLength>5&&(this.armLength=5),this.setOffset(this.cameraOffset.x,this.cameraOffset.y),this.calculateCameraOrientation())},r.prototype.getArmLength=function(){return this.armLength},r.prototype.getCameraLocation=function(){return this.cameraLocation},r.prototype.getCameraRotation=function(){return this.cameraRotation},r.prototype.calculateCameraOrientation=function(){this.cameraLocation.x=this.armLocation.x-this.armLength*Math.sin(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.y=this.armLocation.y-this.armLength*Math.cos(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.z=this.armLocation.z+this.armLength*Math.sin(this.armRotation.vertical),this.cameraRotation.x=Math.PI/2-this.armRotation.vertical,this.cameraRotation.y=0,this.cameraRotation.z=-this.armRotation.horizontal;var e=this.cameraRotation.x,t=(this.cameraRotation.y,this.cameraRotation.z),n=this.cameraOffset.x,i=this.cameraOffset.y,r=Math.sin,o=Math.cos;this.cameraLocation.x=this.cameraLocation.x+n*o(t)+i*-r(t)*o(e),this.cameraLocation.y=this.cameraLocation.y+n*r(t)+i*o(t)*o(e),this.cameraLocation.z=this.cameraLocation.z+i*r(e)},e.exports=r},function(e,t,n){e.exports={default:n(104),__esModule:!0}},function(e,t,n){n(105),e.exports=n(17).Math.sign},function(e,t,n){var i=n(15);i(i.S,"Math",{sign:n(106)})},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){function i(e,t,n){this.data=e,this.column=t,this.graph=n,this.index=void 0,this.value=void 0,this.values=n.getDistinctValues(e.get(),this.column),this.values.sort(function(e,t){return e>t?1:e0&&this.selectValue(0),this.dataPoints=[],this.loaded=!1,this.onLoadCallback=void 0,n.animationPreload?(this.loaded=!1,this.loadInBackground()):this.loaded=!0}var r=n(93);i.prototype.isLoaded=function(){return this.loaded},i.prototype.getLoadedProgress=function(){for(var e=this.values.length,t=0;this.dataPoints[t];)t++;return Math.round(t/e*100)},i.prototype.getLabel=function(){return this.graph.filterLabel},i.prototype.getColumn=function(){return this.column},i.prototype.getSelectedValue=function(){if(void 0!==this.index)return this.values[this.index]},i.prototype.getValues=function(){return this.values},i.prototype.getValue=function(e){if(e>=this.values.length)throw new Error("Index out of range");return this.values[e]},i.prototype._getDataPoints=function(e){if(void 0===e&&(e=this.index),void 0===e)return[];var t;if(this.dataPoints[e])t=this.dataPoints[e];else{var n={};n.column=this.column,n.value=this.values[e];var i=new r(this.data,{filter:function(e){return e[n.column]==n.value}}).get();t=this.graph._getDataPoints(i),this.dataPoints[e]=t}return t},i.prototype.setOnLoadCallback=function(e){this.onLoadCallback=e},i.prototype.selectValue=function(e){if(e>=this.values.length)throw new Error("Index out of range");this.index=e,this.value=this.values[e]},i.prototype.loadInBackground=function(e){void 0===e&&(e=0);var t=this.graph.frame;if(e0&&(e--,this.setIndex(e))},i.prototype.next=function(){var e=this.getIndex();e0?this.setIndex(0):this.index=void 0},i.prototype.setIndex=function(e){if(!(ethis.values.length-1&&(i=this.values.length-1),i},i.prototype.indexToLeft=function(e){var t=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10,n=e/(this.values.length-1)*t,i=n+3;return i},i.prototype._onMouseMove=function(e){var t=e.clientX-this.startClientX,n=this.startSlideX+t,i=this.leftToIndex(n);this.setIndex(i),r.preventDefault()},i.prototype._onMouseUp=function(e){this.frame.style.cursor="auto",r.removeEventListener(document,"mousemove",this.onmousemove),r.removeEventListener(document,"mouseup",this.onmouseup),r.preventDefault()},e.exports=i},function(e,t){function n(e,t,n,i){this._start=0,this._end=0,this._step=1,this.prettyStep=!0,this.precision=5,this._current=0,this.setRange(e,t,n,i)}n.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},n.prototype.setRange=function(e,t,n,i){if(!this.isNumeric(e))throw new Error("Parameter 'start' is not numeric; value: "+e);if(!this.isNumeric(t))throw new Error("Parameter 'end' is not numeric; value: "+e);if(!this.isNumeric(n))throw new Error("Parameter 'step' is not numeric; value: "+e);this._start=e?e:0,this._end=t?t:0,this.setStep(n,i)},n.prototype.setStep=function(e,t){void 0===e||e<=0||(void 0!==t&&(this.prettyStep=t),this.prettyStep===!0?this._step=n.calculatePrettyStep(e):this._step=e)},n.calculatePrettyStep=function(e){var t=function(e){return Math.log(e)/Math.LN10},n=Math.pow(10,Math.round(t(e))),i=2*Math.pow(10,Math.round(t(e/2))),r=5*Math.pow(10,Math.round(t(e/5))),o=n;return Math.abs(i-e)<=Math.abs(o-e)&&(o=i),Math.abs(r-e)<=Math.abs(o-e)&&(o=r),o<=0&&(o=1),o},n.prototype.getCurrent=function(){return parseFloat(this._current.toPrecision(this.precision))},n.prototype.getStep=function(){return this._step},n.prototype.start=function(e){void 0===e&&(e=!1),this._current=this._start-this._start%this._step,e&&this.getCurrent()this._end},e.exports=n},function(e,t){function n(){this.min=void 0,this.max=void 0}n.prototype.adjust=function(e){void 0!==e&&((void 0===this.min||this.min>e)&&(this.min=e),(void 0===this.max||this.maxn)throw new Error("Passed expansion value makes range invalid");this.min=t,this.max=n}},n.prototype.range=function(){return this.max-this.min},n.prototype.center=function(){return(this.min+this.max)/2},e.exports=n},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function o(e){return void 0===e||""===e||"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function a(e,t){return void 0===e||""===e?t:e+o(t)}function s(e,t,n,i){var r,o;for(var s in n)r=n[s],o=a(i,r),t[o]=e[r]}function u(e,t,n,i){var r,o;for(var s in n)r=n[s],void 0!==e[r]&&(o=a(i,r),t[o]=e[r])}function l(e,t){if(void 0===e||r(e))throw new Error("No DEFAULTS passed");if(void 0===t)throw new Error("No dst passed");k=e,s(e,t,O),s(e,t,S,"default"),d(e,t),t.margin=10,t.showGrayBottom=!1,t.showTooltip=!1,t.onclick_callback=null,t.eye=new T(0,0,-1)}function c(e,t){if(void 0!==e){if(void 0===t)throw new Error("No dst passed");if(void 0===k||r(k))throw new Error("DEFAULTS not set for module Settings");u(e,t,O),u(e,t,S,"default"),d(e,t)}}function d(e,t){void 0!==e.backgroundColor&&m(e.backgroundColor,t),g(e.dataColor,t),v(e.style,t),h(e.showLegend,t),y(e.cameraPosition,t),void 0!==e.tooltip&&(t.showTooltip=e.tooltip),void 0!=e.onclick&&(t.onclick_callback=e.onclick),void 0!==e.tooltipStyle&&w.selectiveDeepExtend(["tooltipStyle"],t,e)}function h(e,t){if(void 0===e){var n=void 0===k.showLegend;if(n){var i=t.style===E.DOTCOLOR||t.style===E.DOTSIZE;t.showLegend=i}}else t.showLegend=e}function f(e){var t=C[e];return void 0===t?-1:t}function p(e){var t=!1;for(var n in E)if(E[n]===e){t=!0;break}return t}function v(e,t){if(void 0!==e){var n;if("string"==typeof e){if(n=f(e),n===-1)throw new Error("Style '"+e+"' is invalid")}else{if(!p(e))throw new Error("Style '"+e+"' is invalid");n=e}t.style=n}}function m(e,t){var n="white",i="gray",r=1;if("string"==typeof e)n=e,i="none",r=0;else{if("object"!==("undefined"==typeof e?"undefined":(0,_.default)(e)))throw new Error("Unsupported type of backgroundColor");void 0!==e.fill&&(n=e.fill),void 0!==e.stroke&&(i=e.stroke),void 0!==e.strokeWidth&&(r=e.strokeWidth)}t.frame.style.backgroundColor=n,t.frame.style.borderColor=i,t.frame.style.borderWidth=r+"px",t.frame.style.borderStyle="solid"}function g(e,t){void 0!==e&&(void 0===t.dataColor&&(t.dataColor={}),"string"==typeof e?(t.dataColor.fill=e,t.dataColor.stroke=e):(e.fill&&(t.dataColor.fill=e.fill),e.stroke&&(t.dataColor.stroke=e.stroke),void 0!==e.strokeWidth&&(t.dataColor.strokeWidth=e.strokeWidth)))}function y(e,t){var n=e;void 0!==n&&(void 0===t.camera&&(t.camera=new x),t.camera.setArmRotation(n.horizontal,n.vertical),t.camera.setArmLength(n.distance))}var b=n(62),_=i(b),w=n(1),x=n(102),T=n(100),E={BAR:0,BARCOLOR:1,BARSIZE:2,DOT:3,DOTLINE:4,DOTCOLOR:5,DOTSIZE:6,GRID:7,LINE:8,SURFACE:9},C={dot:E.DOT,"dot-line":E.DOTLINE,"dot-color":E.DOTCOLOR,"dot-size":E.DOTSIZE,line:E.LINE,grid:E.GRID,surface:E.SURFACE,bar:E.BAR,"bar-color":E.BARCOLOR,"bar-size":E.BARSIZE},O=["width","height","filterLabel","legendLabel","xLabel","yLabel","zLabel","xValueLabel","yValueLabel","zValueLabel","showXAxis","showYAxis","showZAxis","showGrid","showPerspective","showShadow","keepAspectRatio","verticalRatio","dotSizeRatio","showAnimationControls","animationInterval","animationPreload","animationAutoStart","axisColor","gridColor","xCenter","yCenter"],S=["xBarWidth","yBarWidth","valueMin","valueMax","xMin","xMax","xStep","yMin","yMax","yStep","zMin","zMax","zStep"],k=void 0;e.exports.STYLE=E,e.exports.setDefaults=l,e.exports.setOptions=c,e.exports.setCameraPosition=y},function(e,t,n){if("undefined"!=typeof window){var i=n(113),r=window.Hammer||n(114);e.exports=i(r,{preventDefault:"mouse"})}else e.exports=function(){throw Error("hammer.js is only available in a browser, not in node.js.")}},function(e,t,n){var i,r,o;!function(n){r=[],i=n,o="function"==typeof i?i.apply(t,r):i,!(void 0!==o&&(e.exports=o))}(function(){var e=null;return function t(n,i){function r(e){return e.match(/[^ ]+/g)}function o(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var n=!1;t.stopPropagation=function(){n=!0};var i=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof i&&(t.srcEvent.stopPropagation=function(){i(),t.stopPropagation()}),t.firstTarget=e;for(var r=e;r&&!n;){var o=r.hammer;if(o)for(var a,s=0;s0?l._handlers[e]=i:(n.off(e,o),delete l._handlers[e]))}),l},l.emit=function(t,i){e=i.target,n.emit(t,i)},l.destroy=function(){var e=n.element.hammer,t=e.indexOf(l);t!==-1&&e.splice(t,1),e.length||delete n.element.hammer,l._handlers={},n.destroy()},l}})},function(e,t,n){var i;!function(r,o,a,s){function u(e,t,n){return setTimeout(f(e,n),t)}function l(e,t,n){return!!Array.isArray(e)&&(c(e,n[t],n),!0)}function c(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),e.apply(this,arguments)}}function h(e,t,n){var i,r=t.prototype;i=e.prototype=Object.create(r),i.constructor=e,i._super=r,n&&ve(i,n)}function f(e,t){return function(){return e.apply(t,arguments)}}function p(e,t){return typeof e==ye?e.apply(t?t[0]||s:s,t):e}function v(e,t){return e===s?t:e}function m(e,t,n){c(_(t),function(t){e.addEventListener(t,n,!1)})}function g(e,t,n){c(_(t),function(t){e.removeEventListener(t,n,!1)})}function y(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function b(e,t){return e.indexOf(t)>-1}function _(e){return e.trim().split(/\s+/g)}function w(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;in[t]}):i.sort()),i}function E(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=I(t):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=t.center=L(i);t.timeStamp=we(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=F(s,u),t.distance=j(s,u),N(n,t),t.offsetDirection=R(t.deltaX,t.deltaY);var l=A(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=_e(l.x)>_e(l.y)?l.x:l.y,t.scale=a?z(a.pointers,i):1,t.rotation=a?B(a.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,D(n,t);var c=e.element;y(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function N(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};t.eventType!==Le&&o.eventType!==Re||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}function D(e,t){var n,i,r,o,a=e.lastInterval||t,u=t.timeStamp-a.timeStamp;if(t.eventType!=je&&(u>Ie||a.velocity===s)){var l=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,d=A(u,l,c);i=d.x,r=d.y,n=_e(d.x)>_e(d.y)?d.x:d.y,o=R(l,c),e.lastInterval=t}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=o}function I(e){for(var t=[],n=0;n=_e(t)?e<0?Be:ze:t<0?Ge:He}function j(e,t,n){n||(n=Ye);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function F(e,t,n){n||(n=Ye);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}function B(e,t){return F(t[1],t[0],Qe)+F(e[1],e[0],Qe)}function z(e,t){return j(t[0],t[1],Qe)/j(e[0],e[1],Qe)}function G(){this.evEl=qe,this.evWin=Xe,this.pressed=!1,S.apply(this,arguments)}function H(){this.evEl=Je,this.evWin=et,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function U(){this.evTarget=nt,this.evWin=it,this.started=!1,S.apply(this,arguments)}function W(e,t){var n=x(e.touches),i=x(e.changedTouches);return t&(Re|je)&&(n=T(n.concat(i),"identifier",!0)),[n,i]}function V(){this.evTarget=ot,this.targetIds={},S.apply(this,arguments)}function Y(e,t){var n=x(e.touches),i=this.targetIds;if(t&(Le|Ae)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=x(e.changedTouches),s=[],u=this.target;if(o=n.filter(function(e){return y(e.target,u)}),t===Le)for(r=0;r-1&&i.splice(e,1)};setTimeout(r,at)}}function X(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,i=this.state;i<_t&&t(n.options.event+te(i)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),i>=_t&&t(n.options.event+te(i))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=Tt)},canEmit:function(){for(var e=0;et.threshold&&r&t.direction},attrTest:function(e){return re.prototype.attrTest.call(this,e)&&(this.state&yt||!(this.state&yt)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ne(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),h(ae,re,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ft]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&yt)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),h(se,ee,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[dt]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distancet.time;if(this._input=e,!i||!n||e.eventType&(Re|je)&&!r)this.reset();else if(e.eventType&Le)this.reset(),this._timer=u(function(){this.state=wt,this.tryEmit()},t.time,this);else if(e.eventType&Re)return wt;return Tt},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===wt&&(e&&e.eventType&Re?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=we(),this.manager.emit(this.options.event,this._input)))}}),h(ue,re,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ft]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&yt)}}),h(le,re,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ue|We,pointers:1},getTouchAction:function(){return oe.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Ue|We)?t=e.overallVelocity:n&Ue?t=e.overallVelocityX:n&We&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&_e(t)>this.options.velocity&&e.eventType&Re},emit:function(e){var t=ne(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),h(ce,ee,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ht]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distanceo)&&(o=n)}),null!==r&&null!==o){var a=(r+o)/2,s=Math.max(this.range.end-this.range.start,1.1*(o-r)),u=!t||void 0===t.animation||t.animation;this.range.setRange(a-s/2,a+s/2,u)}}},r.prototype.fit=function(e){var t,n=!e||void 0===e.animation||e.animation,i=this.itemsData&&this.itemsData.getDataSet();1===i.length&&void 0===i.get()[0].end?(t=this.getDataRange(),this.moveTo(t.min.valueOf(),{animation:n})):(t=this.getItemRange(),this.range.setRange(t.min,t.max,n))},r.prototype.getItemRange=function(){var e=this.getDataRange(),t=null!==e.min?e.min.valueOf():null,n=null!==e.max?e.max.valueOf():null,i=null,r=null;if(null!=t&&null!=n){var o=function(e){return c.convert(e.data.start,"Date").valueOf()},a=function(e){var t=void 0!=e.data.end?e.data.end:e.data.start;return c.convert(t,"Date").valueOf()},s=n-t;s<=0&&(s=10);var u=s/this.props.center.width;if(c.forEach(this.itemSet.items,function(e){e.groupShowing&&(e.show(),e.repositionX());var s=o(e),l=a(e);if(this.options.rtl)var c=s-(e.getWidthRight()+10)*u,d=l+(e.getWidthLeft()+10)*u;else var c=s-(e.getWidthLeft()+10)*u,d=l+(e.getWidthRight()+10)*u;cn&&(n=d,r=e)}.bind(this)),i&&r){var l=i.getWidthLeft()+10,d=r.getWidthRight()+10,h=this.props.center.width-l-d;h>0&&(this.options.rtl?(t=o(i)-d*s/h,n=a(r)+l*s/h):(t=o(i)-l*s/h,n=a(r)+d*s/h))}}return{min:null!=t?new Date(t):null,max:null!=n?new Date(n):null}},r.prototype.getDataRange=function(){var e=null,t=null,n=this.itemsData&&this.itemsData.getDataSet();return n&&n.forEach(function(n){var i=c.convert(n.start,"Date").valueOf(),r=c.convert(void 0!=n.end?n.end:n.start,"Date").valueOf();(null===e||it)&&(t=r)}),{min:null!=e?new Date(e):null,max:null!=t?new Date(t):null}},r.prototype.getEventProperties=function(e){var t=e.center?e.center.x:e.clientX,n=e.center?e.center.y:e.clientY;if(this.options.rtl)var i=c.getAbsoluteRight(this.dom.centerContainer)-t;else var i=t-c.getAbsoluteLeft(this.dom.centerContainer);var r=n-c.getAbsoluteTop(this.dom.centerContainer),o=this.itemSet.itemFromTarget(e),a=this.itemSet.groupFromTarget(e),s=g.customTimeFromTarget(e),u=this.itemSet.options.snap||null,l=this.body.util.getScale(),d=this.body.util.getStep(),h=this._toTime(i),f=u?u(h,l,d):h,p=c.getTarget(e),v=null;return null!=o?v="item":null!=s?v="custom-time":c.hasParent(p,this.timeAxis.dom.foreground)?v="axis":this.timeAxis2&&c.hasParent(p,this.timeAxis2.dom.foreground)?v="axis":c.hasParent(p,this.itemSet.dom.labelSet)?v="group-label":c.hasParent(p,this.currentTime.bar)?v="current-time":c.hasParent(p,this.dom.center)&&(v="background"),{event:e,item:o?o.id:null,group:a?a.groupId:null,what:v,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:i,y:r,time:h,snappedTime:f}},r.prototype.toggleRollingMode=function(){this.range.rolling?this.range.stopRolling():(void 0==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())},e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(90),o=i(r),a=n(62),s=i(a),u=n(119),l=i(u),c=n(120),d=i(c),h=n(124),f=i(h),p=n(1),v=function(){function e(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;(0,l.default)(this,e),this.parent=t,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},p.extend(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new f.default(r),this.wrapper=void 0}return(0,d.default)(e,[{key:"setOptions",value:function(e){if(void 0!==e){this.popupHistory={},this._removePopup();var t=!0;"string"==typeof e?this.options.filter=e:e instanceof Array?this.options.filter=e.join():"object"===("undefined"==typeof e?"undefined":(0,s.default)(e))?(void 0!==e.container&&(this.options.container=e.container),void 0!==e.filter&&(this.options.filter=e.filter),void 0!==e.showButton&&(this.options.showButton=e.showButton),void 0!==e.enabled&&(t=e.enabled)):"boolean"==typeof e?(this.options.filter=!0,t=e):"function"==typeof e&&(this.options.filter=e,t=!0),this.options.filter===!1&&(t=!1),this.options.enabled=t}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){var e=this;this._clean(),this.changedOptions=[];var t=this.options.filter,n=0,i=!1;for(var r in this.configureOptions)this.configureOptions.hasOwnProperty(r)&&(this.allowCreation=!1,i=!1,"function"==typeof t?(i=t(r,[]),i=i||this._handleObject(this.configureOptions[r],[r],!0)):t!==!0&&t.indexOf(r)===-1||(i=!0),i!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),n++);if(this.options.showButton===!0){var o=document.createElement("div");o.className="vis-configuration vis-config-button",o.innerHTML="generate options",o.onclick=function(){e._printOptions()},o.onmouseover=function(){o.className="vis-configuration vis-config-button hover"},o.onmouseout=function(){o.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(o)}this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e1?n-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],i=document.createElement("div");return i.className="vis-configuration vis-config-label vis-config-s"+t.length,n===!0?i.innerHTML=""+e+":":i.innerHTML=e+":",i}},{key:"_makeDropdown",value:function(e,t,n){var i=document.createElement("select");i.className="vis-configuration vis-config-select";var r=0;void 0!==t&&e.indexOf(t)!==-1&&(r=e.indexOf(t));for(var o=0;oo&&1!==o&&(s.max=Math.ceil(t*c),l=s.max,u="range increased"),s.value=t}else s.value=i;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=s.value;var h=this;s.onchange=function(){d.value=this.value,h._update(Number(this.value),n)},s.oninput=function(){d.value=this.value};var f=this._makeLabel(n[n.length-1],n),p=this._makeItem(n,f,s,d);""!==u&&this.popupHistory[p]!==l&&(this.popupHistory[p]=l,this._setupPopup(u,p))}},{key:"_setupPopup",value:function(e,t){var n=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!1,r=this.options.filter,o=!1;for(var a in e)if(e.hasOwnProperty(a)){i=!0;var s=e[a],u=p.copyAndExtendArray(t,a);if("function"==typeof r&&(i=r(a,t),i===!1&&!(s instanceof Array)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,i=this._handleObject(s,u,!0),this.allowCreation=n===!1)),i!==!1){o=!0;var l=this._getValue(u);if(s instanceof Array)this._handleArray(s,l,u);else if("string"==typeof s)this._makeTextInput(s,l,u);else if("boolean"==typeof s)this._makeCheckbox(s,l,u);else if(s instanceof Object){var c=!0;if(t.indexOf("physics")!==-1&&this.moduleOptions.physics.solver!==a&&(c=!1),c===!0)if(void 0!==s.enabled){var d=p.copyAndExtendArray(u,"enabled"),h=this._getValue(d);if(h===!0){var f=this._makeLabel(a,u,!0);this._makeItem(u,f),o=this._handleObject(s,u)||o}else this._makeCheckbox(s,h,u)}else{var v=this._makeLabel(a,u,!0);this._makeItem(u,v),o=this._handleObject(s,u)||o}}else console.error("dont know how to handle",s,a,u)}}return o}},{key:"_handleArray",value:function(e,t,n){"string"==typeof e[0]&&"color"===e[0]?(this._makeColorField(e,t,n),e[1]!==t&&this.changedOptions.push({path:n,value:t})):"string"==typeof e[0]?(this._makeDropdown(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:t})):"number"==typeof e[0]&&(this._makeRange(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:Number(t)}))}},{key:"_update",value:function(e,t){var n=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n;e="true"===e||e,e="false"!==e&&e;for(var r=0;rvar options = "+(0,o.default)(e,null,2)+""}},{key:"getOptions",value:function(){for(var e={},t=0;t0&&void 0!==arguments[0]?arguments[0]:1;(0,s.default)(this,e),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return(0,l.default)(e,[{key:"insertTo",value:function(e){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if("function"!=typeof e)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=e}},{key:"setCloseCallback",value:function(e){if("function"!=typeof e)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=e}},{key:"_isColorString",value:function(e){var t={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"};if("string"==typeof e)return t[e]}},{key:"setColor",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==e){var n=void 0,i=this._isColorString(e);if(void 0!==i&&(e=i),h.isString(e)===!0){if(h.isValidRGB(e)===!0){var r=e.substr(4).substr(0,e.length-5).split(",");n={r:r[0],g:r[1],b:r[2],a:1}}else if(h.isValidRGBA(e)===!0){var a=e.substr(5).substr(0,e.length-6).split(",");n={r:a[0],g:a[1],b:a[2],a:a[3]}}else if(h.isValidHex(e)===!0){var s=h.hexToRGB(e);n={r:s.r,g:s.g,b:s.b,a:1}}}else if(e instanceof Object&&void 0!==e.r&&void 0!==e.g&&void 0!==e.b){var u=void 0!==e.a?e.a:"1.0";n={r:e.r,g:e.g,b:e.b,a:u}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+(0,o.default)(e));this._setColor(n,t)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t===!0&&(this.previousColor=h.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",setTimeout(function(){void 0!==e.closeCallback&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t===!0&&(this.initialColor=h.extend({},e)),this.color=e;var n=h.RGBToHSV(e.r,e.g,e.b),i=2*Math.PI,r=this.r*n.s,o=this.centerCoordinates.x+r*Math.sin(i*n.h),a=this.centerCoordinates.y+r*Math.cos(i*n.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=a-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var t=h.RGBToHSV(this.color.r,this.color.g,this.color.b);t.v=e/100;var n=h.HSVToRGB(t.h,t.s,t.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,t=h.RGBToHSV(e.r,e.g,e.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var i=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,i,r),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-t.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),n.fill(),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var e=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(t)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(e){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(e){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var n=this;this.opacityRange.onchange=function(){n._setOpacity(this.value)},this.opacityRange.oninput=function(){n._setOpacity(this.value)},this.brightnessRange.onchange=function(){n._setBrightness(this.value)},this.brightnessRange.oninput=function(){n._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=this._hide.bind(this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=this._apply.bind(this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=this._save.bind(this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=this._loadLast.bind(this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new c(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),d.onTouch(this.hammer,function(t){e._moveSelector(t)}),this.hammer.on("tap",function(t){e._moveSelector(t)}),this.hammer.on("panstart",function(t){e._moveSelector(t)}),this.hammer.on("panmove",function(t){e._moveSelector(t)}),this.hammer.on("panend",function(t){e._moveSelector(t)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var e=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var t=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,t,n);var i=void 0,r=void 0,o=void 0,a=void 0;this.centerCoordinates={x:.5*t,y:.5*n},this.r=.49*t;var s=2*Math.PI/360,u=1/360,l=1/this.r,c=void 0;for(o=0;o<360;o++)for(a=0;ao.distance?console.log('%cUnknown option detected: "'+t+'" in '+e.printLocation(r.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(o.path,o.closestMatch,""),g):r.distance<=a?console.log('%cUnknown option detected: "'+t+'". Did you mean "'+r.closestMatch+'"?'+e.printLocation(r.path,t),g):console.log('%cUnknown option detected: "'+t+'". Did you mean one of these: '+e.print((0,l.default)(n))+e.printLocation(i,t),g),v=!0}},{key:"findInOptions",value:function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[],u=t.toLowerCase(),l=void 0;for(var c in n){var d=void 0;if(void 0!==n[c].__type__&&r===!0){var h=e.findInOptions(t,n[c],p.copyAndExtendArray(i,c));o>h.distance&&(a=h.closestMatch,s=h.path,o=h.distance,l=h.indexMatch)}else c.toLowerCase().indexOf(u)!==-1&&(l=c),d=e.levenshteinDistance(t,c),o>d&&(a=c,s=p.copyArray(i),o=d)}return{closestMatch:a,path:s,distance:o,indexMatch:l}}},{key:"printLocation",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",i="\n\n"+n+"options = {\n",r=0;r1e3&&(n=1e3),t.body.dom.rollingModeBtn.style.visibility="hidden",t.currentTimeTimer=setTimeout(e,n)}var t=this;e()},r.prototype.stopRolling=function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")},r.prototype.setRange=function(e,t,n,i,r){i!==!0&&(i=!1);var o=void 0!=e?h.convert(e,"Date").valueOf():null,a=void 0!=t?h.convert(t,"Date").valueOf():null;if(this._cancelAnimation(),n){var u=this,c=this.start,f=this.end,p="object"===("undefined"==typeof n?"undefined":(0,d.default)(n))&&"duration"in n?n.duration:500,m="object"===("undefined"==typeof n?"undefined":(0,d.default)(n))&&"easingFunction"in n?n.easingFunction:"easeInOutQuad",g=h.easingFunctions[m];if(!g)throw new Error("Unknown easing function "+(0,l.default)(m)+". Choose from: "+(0,s.default)(h.easingFunctions).join(", "));var y=(new Date).valueOf(),b=!1,_=function e(){if(!u.props.touch.dragging){var t=(new Date).valueOf(),n=t-y,s=g(n/p),l=n>p,d=l||null===o?o:c+(o-c)*s,h=l||null===a?a:f+(a-f)*s;w=u._applyRange(d,h),v.updateHiddenDates(u.options.moment,u.body,u.options.hiddenDates),b=b||w;var m={start:new Date(u.start),end:new Date(u.end),byUser:i,event:r};w&&u.body.emitter.emit("rangechange",m),l?b&&u.body.emitter.emit("rangechanged",m):u.animationTimer=setTimeout(e,20)}};return _()}var w=this._applyRange(o,a);if(v.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),w){var x={start:new Date(this.start),end:new Date(this.end),byUser:i,event:r};this.body.emitter.emit("rangechange",x),this.body.emitter.emit("rangechanged",x)}},r.prototype.getMillisecondsPerPixel=function(){return(this.end-this.start)/this.body.dom.center.clientWidth},r.prototype._cancelAnimation=function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)},r.prototype._applyRange=function(e,t){var n,i=null!=e?h.convert(e,"Date").valueOf():this.start,r=null!=t?h.convert(t,"Date").valueOf():this.end,o=null!=this.options.max?h.convert(this.options.max,"Date").valueOf():null,a=null!=this.options.min?h.convert(this.options.min,"Date").valueOf():null;if(isNaN(i)||null===i)throw new Error('Invalid start "'+e+'"');if(isNaN(r)||null===r)throw new Error('Invalid end "'+t+'"');if(ro&&(r=o)),null!==o&&r>o&&(n=r-o,i-=n,r-=n,null!=a&&i=this.start-u&&r<=this.end?(i=this.start,r=this.end):(n=s-(r-i),i-=n/2,r+=n/2)}}if(null!==this.options.zoomMax){var l=parseFloat(this.options.zoomMax);l<0&&(l=0),r-i>l&&(this.end-this.start===l&&ithis.end?(i=this.start,r=this.end):(n=r-i-l,i+=n/2,r-=n/2))}var c=this.start!=i||this.end!=r;return i>=this.start&&i<=this.end||r>=this.start&&r<=this.end||this.start>=i&&this.start<=r||this.end>=i&&this.end<=r||this.body.emitter.emit("checkRangedItems"),this.start=i,this.end=r,c},r.prototype.getRange=function(){return{start:this.start,end:this.end}},r.prototype.conversion=function(e,t){return r.conversion(this.start,this.end,e,t)},r.conversion=function(e,t,n,i){return void 0===i&&(i=0),0!=n&&t-e!=0?{offset:e,scale:n/(t-e-i)}:{offset:0,scale:1}},r.prototype._onDragStart=function(e){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(e)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))},r.prototype._onDrag=function(e){if(e&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var t=this.options.direction;o(t);var n="horizontal"==t?e.deltaX:e.deltaY;n-=this.deltaDifference;var i=this.props.touch.end-this.props.touch.start,r=v.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);i-=r;var a="horizontal"==t?this.body.domProps.center.width:this.body.domProps.center.height;if(this.options.rtl)var s=n/a*i;else var s=-n/a*i;var u=this.props.touch.start+s,l=this.props.touch.end+s,c=v.snapAwayFromHidden(this.body.hiddenDates,u,this.previousDelta-n,!0),d=v.snapAwayFromHidden(this.body.hiddenDates,l,this.previousDelta-n,!0);if(c!=u||d!=l)return this.deltaDifference+=n,this.props.touch.start=c,this.props.touch.end=d,void this._onDrag(e);this.previousDelta=n,this._applyRange(u,l);var h=new Date(this.start),f=new Date(this.end);this.body.emitter.emit("rangechange",{start:h,end:f,byUser:!0,event:e}),this.body.emitter.emit("panmove")}},r.prototype._onDragEnd=function(e){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:e}))},r.prototype._onMouseWheel=function(e){var t=0;if(e.wheelDelta?t=e.wheelDelta/120:e.detail&&(t=-e.detail/3),this.options.zoomKey&&!e[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable){if(this.options.horizontalScroll){e.preventDefault();var n=t*(this.end-this.start)/20,i=this.start-n,r=this.end-n;this.setRange(i,r,!1,!0,e)}}else if(this.options.zoomable&&this.options.moveable&&this._isInsideRange(e)&&t){var o;o=t<0?1-t/5:1/(1+t/5);var a;if(this.rolling)a=(this.start+this.end)/2;else{var s=this.getPointer({x:e.clientX,y:e.clientY},this.body.dom.center);a=this._pointerToDate(s)}this.zoom(o,a,t,e),e.preventDefault()}},r.prototype._onTouch=function(e){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.scaleOffset=0,this.deltaDifference=0},r.prototype._onPinch=function(e){if(this.options.zoomable&&this.options.moveable){this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(e.center,this.body.dom.center)),this.stopRolling();var t=1/(e.scale+this.scaleOffset),n=this._pointerToDate(this.props.touch.center),i=v.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),r=v.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,n),o=i-r,a=n-r+(this.props.touch.start-(n-r))*t,s=n+o+(this.props.touch.end-(n+o))*t;this.startToFront=1-t<=0,this.endToFront=t-1<=0;var u=v.snapAwayFromHidden(this.body.hiddenDates,a,1-t,!0),l=v.snapAwayFromHidden(this.body.hiddenDates,s,t-1,!0);u==a&&l==s||(this.props.touch.start=u,this.props.touch.end=l,this.scaleOffset=1-e.scale,a=u,s=l),this.setRange(a,s,!1,!0,e),this.startToFront=!1,this.endToFront=!0}},r.prototype._isInsideRange=function(e){var t=e.center?e.center.x:e.clientX;if(this.options.rtl)var n=t-h.getAbsoluteLeft(this.body.dom.centerContainer);else var n=h.getAbsoluteRight(this.body.dom.centerContainer)-t;var i=this.body.util.toTime(n);return i>=this.start&&i<=this.end},r.prototype._pointerToDate=function(e){var t,n=this.options.direction;if(o(n),"horizontal"==n)return this.body.util.toTime(e.x).valueOf();var i=this.body.domProps.center.height;return t=this.conversion(i),e.y/t.scale+t.offset},r.prototype.getPointer=function(e,t){return this.options.rtl?{x:h.getAbsoluteRight(t)-e.x,y:e.y-h.getAbsoluteTop(t)}:{x:e.x-h.getAbsoluteLeft(t),y:e.y-h.getAbsoluteTop(t)}},r.prototype.zoom=function(e,t,n,i){null==t&&(t=(this.start+this.end)/2);var r=v.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),o=v.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,t),a=r-o,s=t-o+(this.start-(t-o))*e,u=t+a+(this.end-(t+a))*e; -this.startToFront=!(n>0),this.endToFront=!(-n>0);var l=v.snapAwayFromHidden(this.body.hiddenDates,s,n,!0),c=v.snapAwayFromHidden(this.body.hiddenDates,u,-n,!0);l==s&&c==u||(s=l,u=c),this.setRange(s,u,!1,!0,i),this.startToFront=!1,this.endToFront=!0},r.prototype.move=function(e){var t=this.end-this.start,n=this.start+t*e,i=this.end+t*e;this.start=n,this.end=i},r.prototype.moveTo=function(e){var t=(this.start+this.end)/2,n=t-e,i=this.start-n,r=this.end-n;this.setRange(i,r,!1,!0,null)},e.exports=r},function(e,t,n){function i(e,t){this.options=null,this.props=null}var r=n(1);i.prototype.setOptions=function(e){e&&r.extend(this.options,e)},i.prototype.redraw=function(){return!1},i.prototype.destroy=function(){},i.prototype._isResized=function(){var e=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,e},e.exports=i},function(e,t){t.convertHiddenOptions=function(e,n,i){if(i&&!Array.isArray(i))return t.convertHiddenOptions(e,n,[i]);if(n.hiddenDates=[],i&&1==Array.isArray(i)){for(var r=0;r=4*s){var h=0,f=o.clone();switch(i[u].repeat){case"daily":l.day()!=c.day()&&(h=1),l.dayOfYear(r.dayOfYear()),l.year(r.year()),l.subtract(7,"days"),c.dayOfYear(r.dayOfYear()),c.year(r.year()),c.subtract(7-h,"days"),f.add(1,"weeks");break;case"weekly":var p=c.diff(l,"days"),v=l.day();l.date(r.date()),l.month(r.month()),l.year(r.year()),c=l.clone(),l.day(v),c.day(v),c.add(p,"days"),l.subtract(1,"weeks"),c.subtract(1,"weeks"),f.add(1,"weeks");break;case"monthly":l.month()!=c.month()&&(h=1),l.month(r.month()),l.year(r.year()),l.subtract(1,"months"),c.month(r.month()),c.year(r.year()),c.subtract(1,"months"),c.add(h,"months"),f.add(1,"months");break;case"yearly":l.year()!=c.year()&&(h=1),l.year(r.year()),l.subtract(1,"years"),c.year(r.year()),c.subtract(1,"years"),c.add(h,"years"),f.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",i[u].repeat)}for(;l=t[i].start&&t[r].end<=t[i].end?t[r].remove=!0:t[r].start>=t[i].start&&t[r].start<=t[i].end?(t[i].end=t[r].end,t[r].remove=!0):t[r].end>=t[i].start&&t[r].end<=t[i].end&&(t[i].start=t[r].start,t[r].remove=!0));for(var i=0;i=a&&re.range.end){var u={start:e.range.start,end:n};n=t.correctTimeForHidden(e.options.moment,e.body.hiddenDates,u,n);var r=e.range.conversion(i,a);return(n.valueOf()-r.offset)*r.scale}n=t.correctTimeForHidden(e.options.moment,e.body.hiddenDates,e.range,n);var r=e.range.conversion(i,a);return(n.valueOf()-r.offset)*r.scale},t.toTime=function(e,n,i){if(0==e.body.hiddenDates.length){var r=e.range.conversion(i);return new Date(n/r.scale+r.offset)}var o=t.getHiddenDurationBetween(e.body.hiddenDates,e.range.start,e.range.end),a=e.range.end-e.range.start-o,s=a*n/i,u=t.getAccumulatedHiddenDuration(e.body.hiddenDates,e.range,s),l=new Date(u+s+e.range.start);return l},t.getHiddenDurationBetween=function(e,t,n){for(var i=0,r=0;r=t&&a=t&&a<=n&&(i+=a-o)}return i},t.correctTimeForHidden=function(e,n,i,r){return r=e(r).toDate().valueOf(),r-=t.getHiddenDurationBefore(e,n,i,r)},t.getHiddenDurationBefore=function(e,t,n,i){var r=0;i=e(i).toDate().valueOf();for(var o=0;o=n.start&&s=s&&(r+=s-a)}return r},t.getAccumulatedHiddenDuration=function(e,t,n){for(var i=0,r=0,o=t.start,a=0;a=t.start&&u=n)break;i+=u-s}}return i},t.snapAwayFromHidden=function(e,n,i,r){var o=t.isHidden(n,e);return 1==o.hidden?i<0?1==r?o.startDate-(o.endDate-n)-1:o.startDate-1:1==r?o.endDate+(n-o.startDate)+1:o.endDate+1:n},t.isHidden=function(e,t){for(var n=0;n=i&&e-1||u))return e.dataTransfer.dropEffect="move",u=!0,!1}function r(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation();try{var t=JSON.parse(e.dataTransfer.getData("text"));if(!t.content)return}catch(e){return!1}return u=!1,e.center={x:e.clientX,y:e.clientY},o.itemSet._onAddItem(e),!1}this.dom={},this.dom.container=e,this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){this.initialDrawDone===!0&&this._redraw()}.bind(this)),this.on("touch",this._onTouch.bind(this)),this.on("panmove",this._onDrag.bind(this));var o=this;this._origRedraw=this._redraw.bind(this),this._redraw=h.throttle(this._origRedraw),this.on("_change",function(e){o.itemSet&&o.itemSet.initialItemSetDrawn&&e&&1==e.queue?o._redraw():o._origRedraw()}),this.hammer=new c(this.dom.root);var a=this.hammer.get("pinch").set({enable:!0});d.disablePreventDefaultVertically(a),this.hammer.get("pan").set({threshold:5,direction:c.DIRECTION_HORIZONTAL}),this.listeners={};var s=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];s.forEach(function(e){var t=function(t){o.isActive()&&o.emit(e,t)};o.hammer.on(e,t),o.listeners[e]=t}),d.onTouch(this.hammer,function(e){o.emit("touch",e)}.bind(this)),d.onRelease(this.hammer,function(e){o.emit("release",e)}.bind(this)),this.dom.centerContainer.addEventListener?(this.dom.centerContainer.addEventListener("mousewheel",t.bind(this),!1),this.dom.centerContainer.addEventListener("DOMMouseScroll",t.bind(this),!1)):this.dom.centerContainer.attachEvent("onmousewheel",t.bind(this)),this.dom.left.parentNode.addEventListener("scroll",n.bind(this)),this.dom.right.parentNode.addEventListener("scroll",n.bind(this));var u=!1;if(this.dom.center.addEventListener("dragover",i.bind(this),!1),this.dom.center.addEventListener("drop",r.bind(this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,!e)throw new Error("No container provided");e.appendChild(this.dom.root)},r.prototype.setOptions=function(e){if(e){var t=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","rtl","zoomKey","horizontalScroll","verticalScroll"];if(h.selectiveExtend(t,this.options,e),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),this.options.orientation={item:void 0,axis:void 0},"orientation"in e&&("string"==typeof e.orientation?this.options.orientation={item:e.orientation,axis:e.orientation}:"object"===(0,u.default)(e.orientation)&&("item"in e.orientation&&(this.options.orientation.item=e.orientation.item),"axis"in e.orientation&&(this.options.orientation.axis=e.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var n=this.timeAxis2=new f(this.body);n.setOptions=function(e){var t=e?h.extend({},e):{};t.orientation="top",f.prototype.setOptions.call(n,t)},this.components.push(n)}}else if(this.timeAxis2){var i=this.components.indexOf(this.timeAxis2);i!==-1&&this.components.splice(i,1),this.timeAxis2.destroy(),this.timeAxis2=null}if("function"==typeof e.drawPoints&&(e.drawPoints={onRender:e.drawPoints}),"hiddenDates"in this.options&&v.convertHiddenOptions(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in e&&(e.clickToUse?this.activator||(this.activator=new p(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),"showCustomTime"in e)throw new Error("Option `showCustomTime` is deprecated. Create a custom time bar via timeline.addCustomTime(time [, id])");this._initAutoResize()}if(this.components.forEach(function(t){return t.setOptions(e)}),"configure"in e){this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(e.configure);var r=h.deepExtend({},this.options);this.components.forEach(function(e){h.deepExtend(r,e.options)}),this.configurator.setModuleOptions({global:r})}this._redraw()},r.prototype.isActive=function(){return!this.activator||this.activator.active},r.prototype.destroy=function(){this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator);for(var e in this.listeners)this.listeners.hasOwnProperty(e)&&delete this.listeners[e];this.listeners=null,this.hammer=null,this.components.forEach(function(e){return e.destroy()}),this.body=null},r.prototype.setCustomTime=function(e,t){var n=this.customTimes.filter(function(e){return t===e.options.id});if(0===n.length)throw new Error("No custom time bar found with id "+(0,a.default)(t));n.length>0&&n[0].setCustomTime(e)},r.prototype.getCustomTime=function(e){var t=this.customTimes.filter(function(t){return t.options.id===e});if(0===t.length)throw new Error("No custom time bar found with id "+(0,a.default)(e));return t[0].getCustomTime()},r.prototype.setCustomTimeTitle=function(e,t){var n=this.customTimes.filter(function(e){return e.options.id===t});if(0===n.length)throw new Error("No custom time bar found with id "+(0,a.default)(t));if(n.length>0)return n[0].setCustomTitle(e)},r.prototype.getEventProperties=function(e){return{event:e}},r.prototype.addCustomTime=function(e,t){var n=void 0!==e?h.convert(e,"Date").valueOf():new Date,i=this.customTimes.some(function(e){return e.options.id===t});if(i)throw new Error("A custom time with id "+(0,a.default)(t)+" already exists");var r=new m(this.body,h.extend({},this.options,{time:n,id:t}));return this.customTimes.push(r),this.components.push(r),this._redraw(),t},r.prototype.removeCustomTime=function(e){var t=this.customTimes.filter(function(t){return t.options.id===e});if(0===t.length)throw new Error("No custom time bar found with id "+(0,a.default)(e));t.forEach(function(e){this.customTimes.splice(this.customTimes.indexOf(e),1),this.components.splice(this.components.indexOf(e),1),e.destroy()}.bind(this))},r.prototype.getVisibleItems=function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]},r.prototype.fit=function(e){var t=this.getDataRange();if(null!==t.min||null!==t.max){var n=t.max-t.min,i=new Date(t.min.valueOf()-.01*n),r=new Date(t.max.valueOf()+.01*n),o=!e||void 0===e.animation||e.animation;this.range.setRange(i,r,o)}},r.prototype.getDataRange=function(){throw new Error("Cannot invoke abstract method getDataRange")},r.prototype.setWindow=function(e,t,n){var i;if(1==arguments.length){var r=arguments[0];i=void 0===r.animation||r.animation,this.range.setRange(r.start,r.end,i)}else i=!n||void 0===n.animation||n.animation,this.range.setRange(e,t,i)},r.prototype.moveTo=function(e,t){var n=this.range.end-this.range.start,i=h.convert(e,"Date").valueOf(),r=i-n/2,o=i+n/2,a=!t||void 0===t.animation||t.animation;this.range.setRange(r,o,a)},r.prototype.getWindow=function(){var e=this.range.getRange();return{start:new Date(e.start),end:new Date(e.end)}},r.prototype.zoomIn=function(e,t){if(!(!e||e<0||e>1)){var n=this.getWindow(),i=n.start.valueOf(),r=n.end.valueOf(),o=r-i,a=o/(1+e),s=(o-a)/2,u=i+s,l=r-s;this.setWindow(u,l,t)}},r.prototype.zoomOut=function(e,t){if(!(!e||e<0||e>1)){var n=this.getWindow(),i=n.start.valueOf(),r=n.end.valueOf(),o=r-i,a=i-o*e/2,s=r+o*e/2;this.setWindow(a,s,t)}},r.prototype.redraw=function(){this._redraw()},r.prototype._redraw=function(){this.redrawCount++;var e=!1,t=this.options,n=this.props,i=this.dom;if(i&&i.container&&0!=i.root.offsetWidth){v.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),"top"==t.orientation?(h.addClassName(i.root,"vis-top"),h.removeClassName(i.root,"vis-bottom")):(h.removeClassName(i.root,"vis-top"),h.addClassName(i.root,"vis-bottom")),i.root.style.maxHeight=h.option.asSize(t.maxHeight,""),i.root.style.minHeight=h.option.asSize(t.minHeight,""),i.root.style.width=h.option.asSize(t.width,""),n.border.left=(i.centerContainer.offsetWidth-i.centerContainer.clientWidth)/2,n.border.right=n.border.left,n.border.top=(i.centerContainer.offsetHeight-i.centerContainer.clientHeight)/2,n.border.bottom=n.border.top,n.borderRootHeight=i.root.offsetHeight-i.root.clientHeight,n.borderRootWidth=i.root.offsetWidth-i.root.clientWidth,0===i.centerContainer.clientHeight&&(n.border.left=n.border.top,n.border.right=n.border.left),0===i.root.clientHeight&&(n.borderRootWidth=n.borderRootHeight),n.center.height=i.center.offsetHeight,n.left.height=i.left.offsetHeight,n.right.height=i.right.offsetHeight,n.top.height=i.top.clientHeight||-n.border.top,n.bottom.height=i.bottom.clientHeight||-n.border.bottom;var r=Math.max(n.left.height,n.center.height,n.right.height),o=n.top.height+r+n.bottom.height+n.borderRootHeight+n.border.top+n.border.bottom;i.root.style.height=h.option.asSize(t.height,o+"px"),n.root.height=i.root.offsetHeight,n.background.height=n.root.height-n.borderRootHeight;var a=n.root.height-n.top.height-n.bottom.height-n.borderRootHeight;n.centerContainer.height=a,n.leftContainer.height=a,n.rightContainer.height=n.leftContainer.height,n.root.width=i.root.offsetWidth,n.background.width=n.root.width-n.borderRootWidth,this.initialDrawDone||(n.scrollbarWidth=h.getScrollBarWidth()),t.verticalScroll?t.rtl?(n.left.width=i.leftContainer.clientWidth||-n.border.left,n.right.width=i.rightContainer.clientWidth+n.scrollbarWidth||-n.border.right):(n.left.width=i.leftContainer.clientWidth+n.scrollbarWidth||-n.border.left,n.right.width=i.rightContainer.clientWidth||-n.border.right):(n.left.width=i.leftContainer.clientWidth||-n.border.left,n.right.width=i.rightContainer.clientWidth||-n.border.right),this._setDOM();var s=this._updateScrollTop();"top"!=t.orientation.item&&(s+=Math.max(n.centerContainer.height-n.center.height-n.border.top-n.border.bottom,0)),i.center.style.top=s+"px";var u=0==n.scrollTop?"hidden":"",l=n.scrollTop==n.scrollTopMin?"hidden":"";i.shadowTop.style.visibility=u,i.shadowBottom.style.visibility=l,i.shadowTopLeft.style.visibility=u,i.shadowBottomLeft.style.visibility=l,i.shadowTopRight.style.visibility=u,i.shadowBottomRight.style.visibility=l,t.verticalScroll&&(i.rightContainer.className="vis-panel vis-right vis-vertical-scroll",i.leftContainer.className="vis-panel vis-left vis-vertical-scroll",i.shadowTopRight.style.visibility="hidden",i.shadowBottomRight.style.visibility="hidden",i.shadowTopLeft.style.visibility="hidden",i.shadowBottomLeft.style.visibility="hidden",i.left.style.top="0px",i.right.style.top="0px"),(!t.verticalScroll||n.center.heightn.centerContainer.height;this.hammer.get("pan").set({direction:d?c.DIRECTION_ALL:c.DIRECTION_HORIZONTAL}),this.components.forEach(function(t){e=t.redraw()||e});var f=5;if(e){if(this.redrawCount0&&(this.props.scrollTop=0),this.props.scrollTopt&&i.push(u.id):u.leftn&&i.push(u.id)}return i},r.prototype._deselect=function(e){for(var t=this.selection,n=0,i=t.length;nr)return}}if(n&&n!=this.groupTouchParams.group){var u=t.get(n.groupId),l=t.get(this.groupTouchParams.group.groupId);l&&u&&(this.options.groupOrderSwap(l,u,t),t.update(l),t.update(u));var c=t.getIds({order:this.options.groupOrder});if(!h.equalArray(c,this.groupTouchParams.originalOrder))for(var d=this.groupTouchParams.originalOrder,f=this.groupTouchParams.group.groupId,v=Math.min(d.length,c.length),m=0,g=0,y=0;m=v)break;if(c[m+g]!=f)if(d[m+y]!=f){var b=c.indexOf(d[m+y]),_=t.get(c[m+g]),w=t.get(d[m+y]);this.options.groupOrderSwap(_,w,t),t.update(_),t.update(w);var x=c[m+g];c[m+g]=d[m+y],c[b]=x,m++}else y=1;else g=1}}}},r.prototype._onGroupDragEnd=function(e){if(this.options.groupEditable.order&&this.groupTouchParams.group){e.stopPropagation();var t=this,n=t.groupTouchParams.group.groupId,i=t.groupsData.getDataSet(),r=h.extend({},i.get(n));t.options.onMoveGroup(r,function(e){if(e)e[i._fieldId]=n,i.update(e);else{var r=i.getIds({order:t.options.groupOrder});if(!h.equalArray(r,t.groupTouchParams.originalOrder))for(var o=t.groupTouchParams.originalOrder,a=Math.min(o.length,r.length),s=0;s=a)break;var u=r.indexOf(o[s]),l=i.get(r[s]),c=i.get(o[s]);t.options.groupOrderSwap(l,c,i),i.update(l),i.update(c);var d=r[s];r[s]=o[s],r[u]=d,s++}}}),t.body.emitter.emit("groupDragged",{groupId:n})}},r.prototype._onSelectItem=function(e){if(this.options.selectable){var t=e.srcEvent&&(e.srcEvent.ctrlKey||e.srcEvent.metaKey),n=e.srcEvent&&e.srcEvent.shiftKey;if(t||n)return void this._onMultiSelectItem(e);var i=this.getSelection(),r=this.itemFromTarget(e),o=r?[r.id]:[];this.setSelection(o);var a=this.getSelection();(a.length>0||i.length>0)&&this.body.emitter.emit("select",{items:a,event:e})}},r.prototype._onMouseOver=function(e){var t=this.itemFromTarget(e);if(t){var n=this.itemFromRelatedTarget(e);if(t!==n){var i=t.getTitle();if(i){null==this.popup&&(this.popup=new c.default(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(i);var r=this.body.dom.centerContainer;this.popup.setPosition(e.clientX-h.getAbsoluteLeft(r)+r.offsetLeft,e.clientY-h.getAbsoluteTop(r)+r.offsetTop),this.popup.show()}else null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:t.id,event:e})}}},r.prototype._onMouseOut=function(e){var t=this.itemFromTarget(e);if(t){var n=this.itemFromRelatedTarget(e);t!==n&&(null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:t.id,event:e}))}},r.prototype._onMouseMove=function(e){var t=this.itemFromTarget(e);if(t&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden){var n=this.body.dom.centerContainer;this.popup.setPosition(e.clientX-h.getAbsoluteLeft(n)+n.offsetLeft,e.clientY-h.getAbsoluteTop(n)+n.offsetTop),this.popup.show()}},r.prototype._onMouseWheel=function(e){this.touchParams.itemIsDragging&&this._onDragEnd(e)},r.prototype._onUpdateItem=function(e){if(this.options.selectable&&this.options.editable.add){var t=this;if(e){var n=t.itemsData.get(e.id);this.options.onUpdate(n,function(e){e&&t.itemsData.getDataSet().update(e)})}}},r.prototype._onAddItem=function(e){if(this.options.selectable&&this.options.editable.add){var t=this,n=this.options.snap||null,i=this.itemFromTarget(e);if(!i){if(this.options.rtl)var r=h.getAbsoluteRight(this.dom.frame),o=r-e.center.x;else var r=h.getAbsoluteLeft(this.dom.frame),o=e.center.x-r;var a=this.body.util.toTime(o),s=this.body.util.getScale(),u=this.body.util.getStep(),l={start:n?n(a,s,u):a,content:"new item"};if("drop"==e.type){var c=JSON.parse(e.dataTransfer.getData("text"));if(l.content=c.content,l.type=c.type||"box",l[this.itemsData._fieldId]=c.id||h.randomUUID(),"range"==c.type||c.end&&c.start)if(c.end)l.end=c.end,l.start=c.start;else{var d=this.body.util.toTime(o+this.props.width/5);l.end=n?n(d,s,u):d}}else if(l[this.itemsData._fieldId]=h.randomUUID(),"range"===this.options.type){var d=this.body.util.toTime(o+this.props.width/5);l.end=n?n(d,s,u):d}var f=this.groupFromTarget(e);f&&(l.group=f.groupId),l=this._cloneItemData(l),this.options.onAdd(l,function(n){n&&(t.itemsData.getDataSet().add(n),"drop"==e.type&&t.setSelection([n.id]))})}}},r.prototype._onMultiSelectItem=function(e){if(this.options.selectable){var t=this.itemFromTarget(e);if(t){var n=this.options.multiselect?this.getSelection():[],i=e.srcEvent&&e.srcEvent.shiftKey||!1;if(i&&this.options.multiselect){var o=this.itemsData.get(t.id).group,a=void 0;this.options.multiselectPerGroup&&n.length>0&&(a=this.itemsData.get(n[0]).group),this.options.multiselectPerGroup&&void 0!=a&&a!=o||n.push(t.id);var s=r._getItemRange(this.itemsData.get(n,this.itemOptions));if(!this.options.multiselectPerGroup||a==o){n=[];for(var u in this.items)if(this.items.hasOwnProperty(u)){var l=this.items[u],c=l.data.start,d=void 0!==l.data.end?l.data.end:c;!(c>=s.min&&d<=s.max)||this.options.multiselectPerGroup&&a!=this.itemsData.get(l.id).group||l instanceof x||n.push(l.id)}}}else{var h=n.indexOf(t.id);h==-1?n.push(t.id):n.splice(h,1)}this.setSelection(n),this.body.emitter.emit("select",{items:this.getSelection(),event:e})}}},r._getItemRange=function(e){var t=null,n=null;return e.forEach(function(e){(null==n||e.startt)&&(t=e.end):(null==t||e.start>t)&&(t=e.start)}),{min:n,max:t}},r.prototype.itemFromElement=function(e){for(var t=e;t;){if(t.hasOwnProperty("timeline-item"))return t["timeline-item"];t=t.parentNode}return null},r.prototype.itemFromTarget=function(e){return this.itemFromElement(e.target)},r.prototype.itemFromRelatedTarget=function(e){return this.itemFromElement(e.relatedTarget)},r.prototype.groupFromTarget=function(e){for(var t=e.center?e.center.y:e.clientY,n=0;na&&ta)return r}else if(0===n&&tr-this.padding&&(s=!0),o=s?this.x-n:this.x,a=u?this.y-t:this.y}else a=this.y-t,a+t+this.padding>i&&(a=i-t-this.padding),ar&&(o=r-n-this.padding),o0&&this.current.milliseconds()0&&this.current.seconds()0&&this.current.minutes()0&&this.current.hours()0?e.step:1,this.autoScale=!1)},i.prototype.setAutoScale=function(e){this.autoScale=e},i.prototype.setMinimumStep=function(e){if(void 0!=e){var t=31104e6,n=2592e6,i=864e5,r=36e5,o=6e4,a=1e3,s=1;1e3*t>e&&(this.scale="year",this.step=1e3),500*t>e&&(this.scale="year",this.step=500),100*t>e&&(this.scale="year",this.step=100),50*t>e&&(this.scale="year",this.step=50),10*t>e&&(this.scale="year",this.step=10),5*t>e&&(this.scale="year",this.step=5),t>e&&(this.scale="year",this.step=1),3*n>e&&(this.scale="month",this.step=3),n>e&&(this.scale="month",this.step=1),5*i>e&&(this.scale="day",this.step=5),2*i>e&&(this.scale="day",this.step=2),i>e&&(this.scale="day",this.step=1),i/2>e&&(this.scale="weekday",this.step=1),4*r>e&&(this.scale="hour",this.step=4),r>e&&(this.scale="hour",this.step=1),15*o>e&&(this.scale="minute",this.step=15),10*o>e&&(this.scale="minute",this.step=10),5*o>e&&(this.scale="minute",this.step=5),o>e&&(this.scale="minute",this.step=1),15*a>e&&(this.scale="second",this.step=15),10*a>e&&(this.scale="second",this.step=10),5*a>e&&(this.scale="second",this.step=5),a>e&&(this.scale="second",this.step=1),200*s>e&&(this.scale="millisecond",this.step=200),100*s>e&&(this.scale="millisecond",this.step=100),50*s>e&&(this.scale="millisecond",this.step=50),10*s>e&&(this.scale="millisecond",this.step=10),5*s>e&&(this.scale="millisecond",this.step=5),s>e&&(this.scale="millisecond",this.step=1)}},i.snap=function(e,t,n){var i=r(e);if("year"==t){var o=i.year()+Math.round(i.month()/12);i.year(Math.round(o/n)*n),i.month(0),i.date(0),i.hours(0),i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("month"==t)i.date()>15?(i.date(1),i.add(1,"month")):i.date(1),i.hours(0),i.minutes(0),i.seconds(0),i.milliseconds(0);else if("day"==t){switch(n){case 5:case 2:i.hours(24*Math.round(i.hours()/24));break;default:i.hours(12*Math.round(i.hours()/12))}i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("weekday"==t){switch(n){case 5:case 2:i.hours(12*Math.round(i.hours()/12));break;default:i.hours(6*Math.round(i.hours()/6))}i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("hour"==t){switch(n){case 4:i.minutes(60*Math.round(i.minutes()/60));break;default:i.minutes(30*Math.round(i.minutes()/30))}i.seconds(0),i.milliseconds(0)}else if("minute"==t){switch(n){case 15:case 10:i.minutes(5*Math.round(i.minutes()/5)),i.seconds(0);break;case 5:i.seconds(60*Math.round(i.seconds()/60));break;default:i.seconds(30*Math.round(i.seconds()/30))}i.milliseconds(0)}else if("second"==t)switch(n){case 15:case 10:i.seconds(5*Math.round(i.seconds()/5)),i.milliseconds(0);break;case 5:i.milliseconds(1e3*Math.round(i.milliseconds()/1e3));break;default:i.milliseconds(500*Math.round(i.milliseconds()/500))}else if("millisecond"==t){var a=n>5?n/2:1;i.milliseconds(Math.round(i.milliseconds()/a)*a)}return i},i.prototype.isMajor=function(){if(1==this.switchedYear)switch(this.scale){case"year":case"month":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var e=this.moment(this.current);switch(this.scale){case"millisecond":return 0==e.milliseconds(); -case"second":return 0==e.seconds();case"minute":return 0==e.hours()&&0==e.minutes();case"hour":return 0==e.hours();case"weekday":case"day":return 1==e.date();case"month":return 0==e.month();case"year":return!1;default:return!1}},i.prototype.getLabelMinor=function(e){if(void 0==e&&(e=this.current),e instanceof Date&&(e=this.moment(e)),"function"==typeof this.format.minorLabels)return this.format.minorLabels(e,this.scale,this.step);var t=this.format.minorLabels[this.scale];return t&&t.length>0?this.moment(e).format(t):""},i.prototype.getLabelMajor=function(e){if(void 0==e&&(e=this.current),e instanceof Date&&(e=this.moment(e)),"function"==typeof this.format.majorLabels)return this.format.majorLabels(e,this.scale,this.step);var t=this.format.majorLabels[this.scale];return t&&t.length>0?this.moment(e).format(t):""},i.prototype.getClassName=function(){function e(e){return e/u%2==0?" vis-even":" vis-odd"}function t(e){return e.isSame(new Date,"day")?" vis-today":e.isSame(o().add(1,"day"),"day")?" vis-tomorrow":e.isSame(o().add(-1,"day"),"day")?" vis-yesterday":""}function n(e){return e.isSame(new Date,"week")?" vis-current-week":""}function i(e){return e.isSame(new Date,"month")?" vis-current-month":""}function r(e){return e.isSame(new Date,"year")?" vis-current-year":""}var o=this.moment,a=this.moment(this.current),s=a.locale?a.locale("en"):a.lang("en"),u=this.step;switch(this.scale){case"millisecond":return t(s)+e(s.milliseconds()).trim();case"second":return t(s)+e(s.seconds()).trim();case"minute":return t(s)+e(s.minutes()).trim();case"hour":return"vis-h"+s.hours()+(4==this.step?"-h"+(s.hours()+4):"")+t(s)+e(s.hours());case"weekday":return"vis-"+s.format("dddd").toLowerCase()+t(s)+n(s)+e(s.date());case"day":return"vis-day"+s.date()+" vis-"+s.format("MMMM").toLowerCase()+t(s)+i(s)+(this.step<=2?t(s):"")+(this.step<=2?" vis-"+s.format("dddd").toLowerCase():""+e(s.date()-1));case"month":return"vis-"+s.format("MMMM").toLowerCase()+i(s)+e(s.month());case"year":var l=s.year();return"vis-year"+l+r(s)+e(l);default:return""}},e.exports=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){this.groupId=e,this.subgroups={},this.subgroupIndex=0,this.subgroupOrderer=t&&t.subgroupOrder,this.itemSet=n,this.isVisible=null,t&&t.nestedGroups&&(this.nestedGroups=t.nestedGroups,0==t.showNested?this.showNested=!1:this.showNested=!0),this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var i=this;this.itemSet.body.emitter.on("checkRangedItems",function(){i.checkRangedItems=!0}),this._create(),this.setData(t)}var o=n(58),a=i(o),s=n(1),u=n(135);n(136);r.prototype._create=function(){var e=document.createElement("div");this.itemSet.options.groupEditable.order?e.className="vis-label draggable":e.className="vis-label",this.dom.label=e;var t=document.createElement("div");t.className="vis-inner",e.appendChild(t),this.dom.inner=t;var n=document.createElement("div");n.className="vis-group",n["timeline-group"]=this,this.dom.foreground=n,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)},r.prototype.setData=function(e){var t,n;if(this.itemSet.options&&this.itemSet.options.groupTemplate?(n=this.itemSet.options.groupTemplate.bind(this),t=n(e,this.dom.inner)):t=e&&e.content,t instanceof Element){for(this.dom.inner.appendChild(t);this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(t)}else t instanceof Object?n(e,this.dom.inner):void 0!==t&&null!==t?this.dom.inner.innerHTML=t:this.dom.inner.innerHTML=this.groupId||"";if(this.dom.label.title=e&&e.title||"",this.dom.inner.firstChild?s.removeClassName(this.dom.inner,"vis-hidden"):s.addClassName(this.dom.inner,"vis-hidden"),e&&e.nestedGroups){this.nestedGroups&&this.nestedGroups==e.nestedGroups||(this.nestedGroups=e.nestedGroups),void 0===e.showNested&&void 0!==this.showNested||(0==e.showNested?this.showNested=!1:this.showNested=!0),s.addClassName(this.dom.label,"vis-nesting-group");var i=this.itemSet.options.rtl?"collapsed-rtl":"collapsed";this.showNested?(s.removeClassName(this.dom.label,i),s.addClassName(this.dom.label,"expanded")):(s.removeClassName(this.dom.label,"expanded"),s.addClassName(this.dom.label,i))}else if(this.nestedGroups){this.nestedGroups=null;var i=this.itemSet.options.rtl?"collapsed-rtl":"collapsed";s.removeClassName(this.dom.label,i),s.removeClassName(this.dom.label,"expanded"),s.removeClassName(this.dom.label,"vis-nesting-group")}e&&e.nestedInGroup&&(s.addClassName(this.dom.label,"vis-nested-group"),this.itemSet.options&&this.itemSet.options.rtl?this.dom.inner.style.paddingRight="30px":this.dom.inner.style.paddingLeft="30px");var r=e&&e.className||null;r!=this.className&&(this.className&&(s.removeClassName(this.dom.label,this.className),s.removeClassName(this.dom.foreground,this.className),s.removeClassName(this.dom.background,this.className),s.removeClassName(this.dom.axis,this.className)),s.addClassName(this.dom.label,r),s.addClassName(this.dom.foreground,r),s.addClassName(this.dom.background,r),s.addClassName(this.dom.axis,r),this.className=r),this.style&&(s.removeCssText(this.dom.label,this.style),this.style=null),e&&e.style&&(s.addCssText(this.dom.label,e.style),this.style=e.style)},r.prototype.getLabelWidth=function(){return this.props.label.width},r.prototype.redraw=function(e,t,n){var i=!1,r=this.dom.marker.clientHeight;r!=this.lastMarkerHeight&&(this.lastMarkerHeight=r,s.forEach(this.items,function(e){e.dirty=!0,e.displayed&&e.redraw()}),n=!0),this._calculateSubGroupHeights(t);var o=this.dom.foreground;if(this.top=o.offsetTop,this.right=o.offsetLeft,this.width=o.offsetWidth,this.isVisible=this._isGroupVisible(e,t),"function"==typeof this.itemSet.options.order){if(n){var a=this,l=!1;s.forEach(this.items,function(e){e.displayed||(e.redraw(),a.visibleItems.push(e)),e.repositionX(l)});var c=this.orderedItems.byStart.slice().sort(function(e,t){return a.itemSet.options.order(e.data,t.data)});u.stack(c,t,!0)}this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,e)}else this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,e),this.itemSet.options.stack?u.stack(this.visibleItems,t,n):u.nostack(this.visibleItems,t,this.subgroups,this.itemSet.options.stackSubgroups);this._updateSubgroupsSizes();var d=this._calculateHeight(t),o=this.dom.foreground;this.top=o.offsetTop,this.right=o.offsetLeft,this.width=o.offsetWidth,i=s.updateProperty(this,"height",d)||i,i=s.updateProperty(this.props.label,"width",this.dom.inner.clientWidth)||i,i=s.updateProperty(this.props.label,"height",this.dom.inner.clientHeight)||i,this.dom.background.style.height=d+"px",this.dom.foreground.style.height=d+"px",this.dom.label.style.height=d+"px";for(var h=0,f=this.visibleItems.length;h0){var t=this;this.resetSubgroups(),s.forEach(this.visibleItems,function(n){void 0!==n.data.subgroup&&(t.subgroups[n.data.subgroup].height=Math.max(t.subgroups[n.data.subgroup].height,n.height+e.item.vertical),t.subgroups[n.data.subgroup].visible=!0)})}},r.prototype._isGroupVisible=function(e,t){var n=this.top<=e.body.domProps.centerContainer.height-e.body.domProps.scrollTop+t.axis&&this.top+this.height+t.axis>=-e.body.domProps.scrollTop;return n},r.prototype._calculateHeight=function(e){var t,n=this.visibleItems;if(n.length>0){var i=n[0].top,r=n[0].top+n[0].height;if(s.forEach(n,function(e){i=Math.min(i,e.top),r=Math.max(r,e.top+e.height)}),i>e.axis){var o=i-e.axis;r-=o,s.forEach(n,function(e){e.top-=o})}t=r+e.item.vertical/2}else t=0;return t=Math.max(t,this.props.label.height)},r.prototype.show=function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)},r.prototype.hide=function(){var e=this.dom.label;e.parentNode&&e.parentNode.removeChild(e);var t=this.dom.foreground;t.parentNode&&t.parentNode.removeChild(t);var n=this.dom.background;n.parentNode&&n.parentNode.removeChild(n);var i=this.dom.axis;i.parentNode&&i.parentNode.removeChild(i)},r.prototype.add=function(e){if(this.items[e.id]=e,e.setParent(this),void 0!==e.data.subgroup&&(this._addToSubgroup(e),this.orderSubgroups()),this.visibleItems.indexOf(e)==-1){var t=this.itemSet.body.range;this._checkIfVisible(e,this.visibleItems,t)}},r.prototype._addToSubgroup=function(e,t){t=t||e.data.subgroup,void 0!=t&&void 0===this.subgroups[t]&&(this.subgroups[t]={height:0,top:0,start:e.data.start,end:e.data.end,visible:!1,index:this.subgroupIndex,items:[]},this.subgroupIndex++),new Date(e.data.start)new Date(this.subgroups[t].end)&&(this.subgroups[t].end=e.data.end),this.subgroups[t].items.push(e)},r.prototype._updateSubgroupsSizes=function(){var e=this;if(e.subgroups)for(var t in e.subgroups){var n=e.subgroups[t].items[0].data.start,i=e.subgroups[t].items[0].data.end;e.subgroups[t].items.forEach(function(e){new Date(e.data.start)new Date(i)&&(i=e.data.end)}),e.subgroups[t].start=n,e.subgroups[t].end=i}},r.prototype.orderSubgroups=function(){if(void 0!==this.subgroupOrderer){var e=[];if("string"==typeof this.subgroupOrderer){for(var t in this.subgroups)e.push({subgroup:t,sortField:this.subgroups[t].items[0].data[this.subgroupOrderer]});e.sort(function(e,t){return e.sortField-t.sortField})}else if("function"==typeof this.subgroupOrderer){for(var t in this.subgroups)e.push(this.subgroups[t].items[0].data);e.sort(this.subgroupOrderer)}if(e.length>0)for(var n=0;n=0&&(n.items.splice(i,1),n.items.length?this._updateSubgroupsSizes():delete this.subgroups[t])}}},r.prototype.removeFromDataSet=function(e){this.itemSet.removeItem(e.id)},r.prototype.order=function(){for(var e=s.toArray(this.items),t=[],n=[],i=0;i0)for(var c=0;cu}),1==this.checkRangedItems)for(this.checkRangedItems=!1,c=0;cu})}for(var c=0;c=0;o--){var a=t[o];if(r(a))break;void 0===i[a.id]&&(i[a.id]=!0,n.push(a))}for(var o=e+1;oi[a].index&&t.collisionByTimes(i[r],i[a])){o=i[a];break}null!=o&&(i[r].top=o.top+o.height)}while(o)}for(var s=0;st.right&&e.top-i.vertical+nt.top:e.left-i.horizontal+nt.left&&e.top-i.vertical+nt.top},t.collisionByTimes=function(e,t){return e.start<=t.start&&e.end>=t.start&&e.topt.top||t.start<=e.start&&t.end>=e.start&&t.tope.top}},function(e,t,n){function i(e,t,n){if(this.props={content:{width:0}},this.overflow=!1,this.options=n,e){if(void 0==e.start)throw new Error('Property "start" missing in item '+e.id);if(void 0==e.end)throw new Error('Property "end" missing in item '+e.id)}r.call(this,e,t,n)}var r=(n(112),n(137));i.prototype=new r(null,null,null),i.prototype.baseClassName="vis-item vis-range",i.prototype.isVisible=function(e){return this.data.starte.start},i.prototype.redraw=function(){var e=this.dom;if(e||(this.dom={},e=this.dom,e.box=document.createElement("div"),e.frame=document.createElement("div"),e.frame.className="vis-item-overflow",e.box.appendChild(e.frame),e.visibleFrame=document.createElement("div"),e.visibleFrame.className="vis-item-visible-frame",e.box.appendChild(e.visibleFrame),e.content=document.createElement("div"),e.content.className="vis-item-content",e.frame.appendChild(e.content),e.box["timeline-item"]=this,this.dirty=!0),!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!e.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(e.box)}if(this.displayed=!0,this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var n=this.editable.updateTime||this.editable.updateGroup,i=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");e.box.className=this.baseClassName+i,this.overflow="hidden"!==window.getComputedStyle(e.frame).overflow,this.dom.content.style.maxWidth="none",this.props.content.width=this.dom.content.offsetWidth,this.height=this.dom.box.offsetHeight,this.dom.content.style.maxWidth="",this.dirty=!1}this._repaintOnItemUpdateTimeTooltip(e.box),this._repaintDeleteButton(e.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()},i.prototype.show=function(){this.displayed||this.redraw()},i.prototype.hide=function(){if(this.displayed){var e=this.dom.box;e.parentNode&&e.parentNode.removeChild(e),this.displayed=!1}},i.prototype.repositionX=function(e){var t,n,i=this.parent.width,r=this.conversion.toScreen(this.data.start),o=this.conversion.toScreen(this.data.end);void 0!==e&&e!==!0||(r<-i&&(r=-i),o>2*i&&(o=2*i));var a=Math.max(o-r+.5,1);switch(this.overflow?(this.options.rtl?this.right=r:this.left=r,this.width=a+this.props.content.width,n=this.props.content.width):(this.options.rtl?this.right=r:this.left=r,this.width=a,n=Math.min(o-r,this.props.content.width)),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=a+"px",this.options.align){case"left":this.options.rtl?this.dom.content.style.right="0":this.dom.content.style.left="0";break;case"right":this.options.rtl?this.dom.content.style.right=Math.max(a-n,0)+"px":this.dom.content.style.left=Math.max(a-n,0)+"px";break;case"center":this.options.rtl?this.dom.content.style.right=Math.max((a-n)/2,0)+"px":this.dom.content.style.left=Math.max((a-n)/2,0)+"px";break;default:t=this.overflow?o>0?Math.max(-r,0):-n:r<0?-r:0,this.options.rtl?this.dom.content.style.right=t+"px":(this.dom.content.style.left=t+"px",this.dom.content.style.width="calc(100% - "+t+"px)")}},i.prototype.repositionY=function(){var e=this.options.orientation.item,t=this.dom.box;"top"==e?t.style.top=this.top+"px":t.style.top=this.parent.height-this.top-this.height+"px"},i.prototype._repaintDragLeft=function(){if(this.selected&&this.options.editable.updateTime&&!this.dom.dragLeft){var e=document.createElement("div");e.className="vis-drag-left",e.dragLeftItem=this,this.dom.box.appendChild(e),this.dom.dragLeft=e}else!this.selected&&this.dom.dragLeft&&(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)},i.prototype._repaintDragRight=function(){if(this.selected&&this.options.editable.updateTime&&!this.dom.dragRight){var e=document.createElement("div");e.className="vis-drag-right",e.dragRightItem=this,this.dom.box.appendChild(e),this.dom.dragRight=e}else!this.selected&&this.dom.dragRight&&(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)},e.exports=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=t||{},this.options=n||{},this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.editable=null,this._updateEditStatus()}var o=n(62),a=i(o),s=n(58),u=i(s),l=n(112),c=n(1),d=n(82);r.prototype.stack=!0,r.prototype.select=function(){this.selected=!0,this.dirty=!0,this.displayed&&this.redraw()},r.prototype.unselect=function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()},r.prototype.setData=function(e){var t=void 0!=e.group&&this.data.group!=e.group;t&&this.parent.itemSet._moveToGroup(this,e.group),this.data=e,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()},r.prototype.setParent=function(e){this.displayed?(this.hide(),this.parent=e,this.parent&&this.show()):this.parent=e},r.prototype.isVisible=function(e){return!1},r.prototype.show=function(){return!1},r.prototype.hide=function(){return!1},r.prototype.redraw=function(){},r.prototype.repositionX=function(){},r.prototype.repositionY=function(){},r.prototype._repaintDragCenter=function(){if(this.selected&&this.options.editable.updateTime&&!this.dom.dragCenter){var e=this,t=document.createElement("div");t.className="vis-drag-center",t.dragCenterItem=this,new l(t).on("doubletap",function(t){t.stopPropagation(),e.parent.itemSet._onUpdateItem(e)}),this.dom.box?this.dom.box.appendChild(t):this.dom.point&&this.dom.point.appendChild(t),this.dom.dragCenter=t}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null)},r.prototype._repaintDeleteButton=function(e){var t=(this.options.editable.overrideItems||null==this.editable)&&this.options.editable.remove||!this.options.editable.overrideItems&&null!=this.editable&&this.editable.remove;if(this.selected&&t&&!this.dom.deleteButton){var n=this,i=document.createElement("div");this.options.rtl?i.className="vis-delete-rtl":i.className="vis-delete",i.title="Delete this item",new l(i).on("tap",function(e){e.stopPropagation(),n.parent.removeFromDataSet(n)}),e.appendChild(i),this.dom.deleteButton=i}else!this.selected&&this.dom.deleteButton&&(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null)},r.prototype._repaintOnItemUpdateTimeTooltip=function(e){if(this.options.tooltipOnItemUpdateTime){var t=(this.options.editable.updateTime||this.data.editable===!0)&&this.data.editable!==!1;if(this.selected&&t&&!this.dom.onItemUpdateTimeTooltip){var n=document.createElement("div");n.className="vis-onUpdateTime-tooltip",e.appendChild(n),this.dom.onItemUpdateTimeTooltip=n}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.options.rtl?this.dom.onItemUpdateTimeTooltip.style.right=this.dom.content.style.right:this.dom.onItemUpdateTimeTooltip.style.left=this.dom.content.style.left;var i,r=50,o=this.parent.itemSet.body.domProps.scrollTop;i="top"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height;var a=i+this.parent.top-r<-o;a?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top=this.height+2+"px"):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom=this.height+2+"px");var s,u;this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template?(u=this.options.tooltipOnItemUpdateTime.template.bind(this),s=u(this.data)):(s="start: "+d(this.data.start).format("MM/DD/YYYY hh:mm"),this.data.end&&(s+="
end: "+d(this.data.end).format("MM/DD/YYYY hh:mm"))),this.dom.onItemUpdateTimeTooltip.innerHTML=s}}},r.prototype._updateContents=function(e){var t,n,i,r,o=this.parent.itemSet.itemsData.get(this.id),a=this.dom.box||this.dom.point,s=a.getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate?(r=this.options.visibleFrameTemplate.bind(this),i=r(o,a)):i="",s)if(i instanceof Object&&!(i instanceof Element))r(o,s);else{var u=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(i);if(u){if(i instanceof Element)s.innerHTML="",s.appendChild(i);else if(void 0!=i)s.innerHTML=i;else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '+this.id);this.itemVisibleFrameContent=i}}if(this.options.template?(n=this.options.template.bind(this),t=n(o,e,this.data)):t=this.data.content,t instanceof Object&&!(t instanceof Element))n(o,e);else{var u=this._contentToString(this.content)!==this._contentToString(t);if(u){if(t instanceof Element)e.innerHTML="",e.appendChild(t);else if(void 0!=t)e.innerHTML=t;else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '+this.id);this.content=t}}},r.prototype._updateDataAttributes=function(e){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var t=[];if(Array.isArray(this.options.dataAttributes))t=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;t=(0,u.default)(this.data)}for(var n=0;ne.start&&this.data.start.getTime()-ie.start&&this.data.start.getTime()e.start&&this.data.start.getTime()-i/2e.start&&this.data.starte.start},i.prototype.redraw=function(){var e=this.dom;if(e||(this.dom={},e=this.dom,e.box=document.createElement("div"),e.frame=document.createElement("div"),e.frame.className="vis-item-overflow",e.box.appendChild(e.frame),e.content=document.createElement("div"),e.content.className="vis-item-content",e.frame.appendChild(e.content),this.dirty=!0),!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!e.box.parentNode){var t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(e.box)}if(this.displayed=!0,this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var n=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");e.box.className=this.baseClassName+n,this.overflow="hidden"!==window.getComputedStyle(e.content).overflow,this.props.content.width=this.dom.content.offsetWidth,this.height=0,this.dirty=!1}},i.prototype.show=a.prototype.show,i.prototype.hide=a.prototype.hide,i.prototype.repositionX=a.prototype.repositionX,i.prototype.repositionY=function(e){var t,n=this.options.orientation.item;if(void 0!==this.data.subgroup){var i=this.data.subgroup,r=this.parent.subgroups;r[i].index;this.dom.box.style.height=this.parent.subgroups[i].height+"px","top"==n?this.dom.box.style.top=this.parent.top+this.parent.subgroups[i].top+"px":this.dom.box.style.top=this.parent.top+this.parent.height-this.parent.subgroups[i].top-this.parent.subgroups[i].height+"px",this.dom.box.style.bottom=""}else this.parent instanceof o?(t=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==n?"0":"",this.dom.box.style.top="top"==n?"0":""):(t=this.parent.height,this.dom.box.style.top=this.parent.top+"px",this.dom.box.style.bottom="");this.dom.box.style.height=t+"px"},e.exports=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){this.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},this.props={range:{start:0,end:0,minimumStep:0},lineTop:0},this.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,maxMinorChars:7,format:l.FORMAT,moment:d,timeAxis:null},this.options=s.extend({},this.defaultOptions),this.body=e,this._create(),this.setOptions(t)}var o=n(62),a=i(o),s=n(1),u=n(128),l=n(133),c=n(129),d=n(82);r.prototype=new u,r.prototype.setOptions=function(e){e&&(s.selectiveExtend(["showMinorLabels","showMajorLabels","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,e),s.selectiveDeepExtend(["format"],this.options,e),"orientation"in e&&("string"==typeof e.orientation?this.options.orientation.axis=e.orientation:"object"===(0,a.default)(e.orientation)&&"axis"in e.orientation&&(this.options.orientation.axis=e.orientation.axis)),"locale"in e&&("function"==typeof d.locale?d.locale(e.locale):d.lang(e.locale)))},r.prototype._create=function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"},r.prototype.destroy=function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null},r.prototype.redraw=function(){var e=this.props,t=this.dom.foreground,n=this.dom.background,i="top"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,r=t.parentNode!==i;this._calculateCharSize();var o=this.options.showMinorLabels&&"none"!==this.options.orientation.axis,a=this.options.showMajorLabels&&"none"!==this.options.orientation.axis;e.minorLabelHeight=o?e.minorCharHeight:0,e.majorLabelHeight=a?e.majorCharHeight:0,e.height=e.minorLabelHeight+e.majorLabelHeight,e.width=t.offsetWidth,e.minorLineHeight=this.body.domProps.root.height-e.majorLabelHeight-("top"==this.options.orientation.axis?this.body.domProps.bottom.height:this.body.domProps.top.height),e.minorLineWidth=1,e.majorLineHeight=e.minorLineHeight+e.majorLabelHeight,e.majorLineWidth=1;var s=t.nextSibling,u=n.nextSibling;return t.parentNode&&t.parentNode.removeChild(t),n.parentNode&&n.parentNode.removeChild(n),t.style.height=this.props.height+"px",this._repaintLabels(),s?i.insertBefore(t,s):i.appendChild(t),u?this.body.dom.backgroundVertical.insertBefore(n,u):this.body.dom.backgroundVertical.appendChild(n),this._isResized()||r},r.prototype._repaintLabels=function(){var e=this.options.orientation.axis,t=s.convert(this.body.range.start,"Number"),n=s.convert(this.body.range.end,"Number"),i=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),r=i-c.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this.body.range,i);r-=this.body.util.toTime(0).valueOf();var o=new l(new Date(t),new Date(n),r,this.body.hiddenDates);o.setMoment(this.options.moment),this.options.format&&o.setFormat(this.options.format),this.options.timeAxis&&o.setScale(this.options.timeAxis),this.step=o;var a=this.dom;a.redundant.lines=a.lines,a.redundant.majorTexts=a.majorTexts,a.redundant.minorTexts=a.minorTexts,a.lines=[],a.majorTexts=[],a.minorTexts=[];var u,d,f,p,v,m,g,y,b,_,w=0,x=void 0,T=0,E=1e3;for(o.start(),d=o.getCurrent(),p=this.body.util.toScreen(d);o.hasNext()&&T=.4*g;if(this.options.showMinorLabels&&C){var O=this._repaintMinorText(f,b,e,_);O.style.width=w+"px"}v&&this.options.showMajorLabels?(f>0&&(void 0==x&&(x=f),O=this._repaintMajorText(f,o.getLabelMajor(),e,_)),y=this._repaintMajorLine(f,w,e,_)):C?y=this._repaintMinorLine(f,w,e,_):y&&(y.style.width=parseInt(y.style.width)+w+"px")}if(T!==E||h||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to "+E+" lines."),h=!0),this.options.showMajorLabels){var S=this.body.util.toTime(0),k=o.getLabelMajor(S),M=k.length*(this.props.majorCharWidth||10)+10;(void 0==x||M1e3&&(i=1e3),t.redraw(),t.body.emitter.emit("currentTimeTick"),t.currentTimeTimer=setTimeout(e,i)}var t=this;e()},i.prototype.stop=function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)},i.prototype.setCurrentTime=function(e){var t=r.convert(e,"Date").valueOf(),n=(new Date).valueOf();this.offset=t-n,this.redraw()},i.prototype.getCurrentTime=function(){return new Date((new Date).valueOf()+this.offset)},e.exports=i},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="string",i="boolean",r="number",o="array",a="date",s="object",u="dom",l="moment",c="any",d={configure:{enabled:{boolean:i},filter:{boolean:i,function:"function"},container:{dom:u},__type__:{object:s,boolean:i,function:"function"}},align:{string:n},rtl:{boolean:i,undefined:"undefined"},rollingMode:{boolean:i,undefined:"undefined"},verticalScroll:{boolean:i,undefined:"undefined"},horizontalScroll:{boolean:i,undefined:"undefined"},autoResize:{boolean:i},throttleRedraw:{number:r},clickToUse:{boolean:i},dataAttributes:{string:n,array:o},editable:{add:{boolean:i,undefined:"undefined"},remove:{boolean:i,undefined:"undefined"},updateGroup:{boolean:i,undefined:"undefined"},updateTime:{boolean:i,undefined:"undefined"},overrideItems:{boolean:i,undefined:"undefined"},__type__:{boolean:i,object:s}},end:{number:r,date:a,string:n,moment:l},format:{minorLabels:{millisecond:{string:n,undefined:"undefined"},second:{string:n,undefined:"undefined"},minute:{string:n,undefined:"undefined"},hour:{string:n,undefined:"undefined"},weekday:{string:n,undefined:"undefined"},day:{string:n,undefined:"undefined"},month:{string:n,undefined:"undefined"},year:{string:n,undefined:"undefined"},__type__:{object:s,function:"function"}},majorLabels:{millisecond:{string:n,undefined:"undefined"},second:{string:n,undefined:"undefined"},minute:{string:n,undefined:"undefined"},hour:{string:n,undefined:"undefined"},weekday:{string:n,undefined:"undefined"},day:{string:n,undefined:"undefined"},month:{string:n,undefined:"undefined"},year:{string:n,undefined:"undefined"},__type__:{object:s,function:"function"}},__type__:{object:s}},moment:{function:"function"},groupOrder:{string:n,function:"function"},groupEditable:{add:{boolean:i,undefined:"undefined"},remove:{boolean:i,undefined:"undefined"},order:{boolean:i,undefined:"undefined"},__type__:{boolean:i,object:s}},groupOrderSwap:{function:"function"},height:{string:n,number:r},hiddenDates:{start:{date:a,number:r,string:n,moment:l},end:{date:a,number:r,string:n,moment:l},repeat:{string:n},__type__:{object:s,array:o}},itemsAlwaysDraggable:{boolean:i},locale:{string:n},locales:{__any__:{any:c},__type__:{object:s}},margin:{axis:{number:r},item:{horizontal:{number:r,undefined:"undefined"},vertical:{number:r,undefined:"undefined"},__type__:{object:s,number:r}},__type__:{object:s,number:r}},max:{date:a,number:r,string:n,moment:l},maxHeight:{number:r,string:n},maxMinorChars:{number:r},min:{date:a,number:r,string:n,moment:l},minHeight:{number:r,string:n},moveable:{boolean:i},multiselect:{boolean:i},multiselectPerGroup:{boolean:i},onAdd:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},order:{function:"function"},orientation:{axis:{string:n,undefined:"undefined"},item:{string:n,undefined:"undefined"},__type__:{string:n,object:s}},selectable:{boolean:i},showCurrentTime:{boolean:i},showMajorLabels:{boolean:i},showMinorLabels:{boolean:i},stack:{boolean:i},stackSubgroups:{boolean:i},snap:{function:"function",null:"null"},start:{date:a,number:r,string:n,moment:l},template:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:n,function:"function"},tooltip:{followMouse:{boolean:i},overflowMethod:{string:["cap","flip"]},__type__:{object:s}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:i,object:s}},timeAxis:{scale:{string:n,undefined:"undefined"},step:{number:r,undefined:"undefined"},__type__:{object:s}},type:{string:n},width:{string:n,number:r},zoomable:{boolean:i},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:r},zoomMin:{number:r},__type__:{object:s}},h={global:{align:["center","left","right"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",month:"YYYY",year:""}},groupsDraggable:!1,height:"",locale:"",margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,start:"",tooltip:{followMouse:!1,overflowMethod:"flip"},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1]}};t.allOptions=d,t.configureOptions=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){if(!(Array.isArray(n)||n instanceof d||n instanceof h)&&n instanceof Object){var r=i;i=n,n=r}i&&i.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var o=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:l,width:null,height:null,maxHeight:null,minHeight:null},this.options=c.deepExtend({},this.defaultOptions),this._create(e),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this)},hiddenDates:[],util:{toScreen:o._toScreen.bind(o),toGlobalScreen:o._toGlobalScreen.bind(o),toTime:o._toTime.bind(o),toGlobalTime:o._toGlobalTime.bind(o)}},this.range=new f(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new v(this.body),this.components.push(this.timeAxis),this.currentTime=new m(this.body),this.components.push(this.currentTime),this.linegraph=new y(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(e){o.emit("click",o.getEventProperties(e))}),this.on("doubletap",function(e){o.emit("doubleClick",o.getEventProperties(e))}),this.dom.root.oncontextmenu=function(e){o.emit("contextmenu",o.getEventProperties(e))},i&&this.setOptions(i),n&&this.setGroups(n),t&&this.setItems(t),this._redraw()}var o=n(118),a=i(o),s=n(126),u=i(s),l=(n(99),n(112),n(82)),c=n(1),d=n(89),h=n(93),f=n(127),p=n(130),v=n(142),m=n(146),g=n(144),y=n(149),b=n(126).printStyle,_=n(157).allOptions,w=n(157).configureOptions;r.prototype=new p,r.prototype.setOptions=function(e){var t=u.default.validate(e,_);t===!0&&console.log("%cErrors have been found in the supplied options object.",b),p.prototype.setOptions.call(this,e)},r.prototype.setItems=function(e){var t,n=null==this.itemsData;if(t=e?e instanceof d||e instanceof h?e:new d(e,{type:{start:"Date",end:"Date"}}):null,this.itemsData=t,this.linegraph&&this.linegraph.setItems(t),n)if(void 0!=this.options.start||void 0!=this.options.end){var i=void 0!=this.options.start?this.options.start:null,r=void 0!=this.options.end?this.options.end:null;this.setWindow(i,r,{animation:!1})}else this.fit({animation:!1})},r.prototype.setGroups=function(e){var t;t=e?e instanceof d||e instanceof h?e:new d(e):null,this.groupsData=t,this.linegraph.setGroups(t)},r.prototype.getLegend=function(e,t,n){return void 0===t&&(t=15),void 0===n&&(n=15),void 0!==this.linegraph.groups[e]?this.linegraph.groups[e].getLegend(t,n):"cannot find group:'"+e+"'"},r.prototype.isGroupVisible=function(e){return void 0!==this.linegraph.groups[e]&&(this.linegraph.groups[e].visible&&(void 0===this.linegraph.options.groups.visibility[e]||1==this.linegraph.options.groups.visibility[e]))},r.prototype.getDataRange=function(){var e=null,t=null;for(var n in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(n)&&1==this.linegraph.groups[n].visible)for(var i=0;io?o:e,t=null==t?o:t0&&l.push(d.screenToValue(r)),!h.hidden&&this.itemsData.length>0&&l.push(h.screenToValue(r)),{event:e,what:u,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:i,y:r,time:o,value:l}},r.prototype._createConfigurator=function(){return new a.default(this,this.dom.container,w)},e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){this.id=s.randomUUID(),this.body=e,this.defaultOptions={yAxisOrientation:"left",defaultGroup:"default",sort:!0,sampling:!0,stack:!1,graphHeight:"400px",shaded:{enabled:!1,orientation:"bottom"},style:"line",barChart:{width:50,sideBySide:!1,align:"center"},interpolation:{enabled:!0,parametrization:"centripetal",alpha:.5},drawPoints:{enabled:!0,size:6,style:"square"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=s.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var n=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(e,t,i){n._onAdd(t.items)},update:function(e,t,i){n._onUpdate(t.items)},remove:function(e,t,i){n._onRemove(t.items)}},this.groupListeners={add:function(e,t,i){n._onAddGroups(t.items)},update:function(e,t,i){n._onUpdateGroups(t.items)},remove:function(e,t,i){n._onRemoveGroups(t.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(t),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",function(){n.lastStart=n.body.range.start,n.svg.style.left=s.option.asSize(-n.props.width),n.forceGraphUpdate=!0,n.redraw.call(n)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}var o=n(62),a=i(o),s=n(1),u=n(88),l=n(89),c=n(93),d=n(128),h=n(150),f=n(152),p=n(156),v=n(153),m=n(155),g=n(154),y="__ungrouped__";r.prototype=new d,r.prototype._create=function(){var e=document.createElement("div");e.className="vis-line-graph",this.dom.frame=e,this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="relative",this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",this.svg.style.display="block",e.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new h(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new h(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new p(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new p(this.body,this.options.legend,"right",this.options.groups),this.show()},r.prototype.setOptions=function(e){if(e){var t=["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"];void 0===e.graphHeight&&void 0!==e.height?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):void 0!==this.body.domProps.centerContainer.height&&void 0!==e.graphHeight&&parseInt((e.graphHeight+"").replace("px",""))0){var s={};for(this._getRelevantData(a,s,r,o),this._applySampling(a,s),t=0;t0)switch(e.options.style){case"line":c.hasOwnProperty(a[t])||(c[a[t]]=m.calcPath(s[a[t]],e)),m.draw(c[a[t]],e,this.framework);case"point":case"points":"point"!=e.options.style&&"points"!=e.options.style&&1!=e.options.drawPoints.enabled||g.draw(s[a[t]],e,this.framework);break;case"bar":}}}return u.cleanupElements(this.svgElements),!1},r.prototype._stack=function(e,t){var n,i,r,o,a;n=0;for(var s=0;se[s].x){a=t[u],o=0==u?a:t[u-1],n=u;break}}void 0===a&&(o=t[t.length-1],a=t[t.length-1]),i=a.x-o.x,r=a.y-o.y,0==i?e[s].y=e[s].orginalY+a.y:e[s].y=e[s].orginalY+r/i*(e[s].x-o.x)+o.y}},r.prototype._getRelevantData=function(e,t,n,i){var r,o,a,u;if(e.length>0)for(o=0;o0)for(var i=0;i0){var o=1,a=r.length,s=this.body.util.toGlobalScreen(r[r.length-1].x)-this.body.util.toGlobalScreen(r[0].x),u=a/s;o=Math.min(Math.ceil(.2*a),Math.max(1,Math.round(u)));for(var l=new Array(a),c=0;c0){for(o=0;o0&&(r=this.groups[e[o]],a.stack===!0&&"bar"===a.style?"left"===a.yAxisOrientation?s=s.concat(i):u=u.concat(i):n[e[o]]=r.getYRange(i,e[o]));v.getStackedYRange(s,n,e,"__barStackLeft","left"),v.getStackedYRange(u,n,e,"__barStackRight","right")}},r.prototype._updateYAxis=function(e,t){var n,i,r=!1,o=!1,a=!1,s=1e9,u=1e9,l=-1e9,c=-1e9;if(e.length>0){for(var d=0;dn?n:s,l=ln?n:u,c=c=0&&e._redrawLabel(i-2,t.val,n,"vis-y-axis vis-major",e.props.majorCharHeight),e.master===!0&&(r?e._redrawLine(i,n,"vis-grid vis-horizontal vis-major",e.options.majorLinesOffset,e.props.majorLineWidth):e._redrawLine(i,n,"vis-grid vis-horizontal vis-minor",e.options.minorLinesOffset,e.props.minorLineWidth))});var s=0;void 0!==this.options[n].title&&void 0!==this.options[n].title.text&&(s=this.props.titleCharHeight);var l=this.options.icons===!0?Math.max(this.options.iconWidth,s)+this.options.labelOffsetX+15:s+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-l&&this.options.visible===!0?(this.width=this.maxLabelSize+l,this.options.width=this.width+"px",u.cleanupElements(this.DOMelements.lines),u.cleanupElements(this.DOMelements.labels),this.redraw(),t=!0):this.maxLabelSizethis.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+l),this.options.width=this.width+"px",u.cleanupElements(this.DOMelements.lines),u.cleanupElements(this.DOMelements.labels),this.redraw(),t=!0):(u.cleanupElements(this.DOMelements.lines),u.cleanupElements(this.DOMelements.labels),t=!1),t},r.prototype.convertValue=function(e){return this.scale.convertValue(e)},r.prototype.screenToValue=function(e){return this.scale.screenToValue(e)},r.prototype._redrawLabel=function(e,t,n,i,r){var o=u.getDOMElement("div",this.DOMelements.labels,this.dom.frame);o.className=i,o.innerHTML=t,"left"===n?(o.style.left="-"+this.options.labelOffsetX+"px",o.style.textAlign="right"):(o.style.right="-"+this.options.labelOffsetX+"px",o.style.textAlign="left"),o.style.top=e-.5*r+this.options.labelOffsetY+"px",t+="";var a=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=r,this.majorCharHeight=o,this._start=e,this._end=t,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=a,this.autoScaleStart=n,this.autoScaleEnd=i,this.formattingFunction=s,n||i){var u=this,l=function(e){var t=e-e%(u.magnitudefactor*u.minorSteps[u.minorStepIdx]);return e%(u.magnitudefactor*u.minorSteps[u.minorStepIdx])>.5*(u.magnitudefactor*u.minorSteps[u.minorStepIdx])?t+u.magnitudefactor*u.minorSteps[u.minorStepIdx]:t};n&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=l(this._start)),i&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=l(this._end)),this.determineScale()}}n.prototype.setCharHeight=function(e){this.majorCharHeight=e},n.prototype.setHeight=function(e){this.containerHeight=e},n.prototype.determineScale=function(){var e=this._end-this._start;this.scale=this.containerHeight/e;var t=this.majorCharHeight/this.scale,n=e>0?Math.round(Math.log(e)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,n);var i=0;n<0&&(i=n);for(var r=!1,o=i;Math.abs(o)<=Math.abs(n);o++){this.magnitudefactor=Math.pow(10,o);for(var a=0;a=t){r=!0,this.minorStepIdx=a;break}}if(r===!0)break}},n.prototype.is_major=function(e){return e%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0},n.prototype.getStep=function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]},n.prototype.getFirstMajor=function(){var e=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(e-this._start%e)%e)},n.prototype.formatValue=function(e){var t=e.toPrecision(5);return"function"==typeof this.formattingFunction&&(t=this.formattingFunction(e)),"number"==typeof t?""+t:"string"==typeof t?t:e.toPrecision(5)},n.prototype.getLines=function(){for(var e=[],t=this.getStep(),n=(t-this._start%t)%t,i=this._start+n;this._end-i>1e-5;i+=t)i!=this._start&&e.push({major:this.is_major(i),y:this.convertValue(i),val:this.formatValue(i)});return e},n.prototype.followScale=function(e){var t=this.minorStepIdx,n=this._start,i=this._end,r=this,o=function(){r.magnitudefactor*=2},a=function(){r.magnitudefactor/=2};e.minorStepIdx<=1&&this.minorStepIdx<=1||e.minorStepIdx>1&&this.minorStepIdx>1||(e.minorStepIdxi+1e-5)a(),l=!1;else{if(!this.autoScaleStart&&this._start=0)){a(),l=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&dt.x?1:-1})):this.itemsData=[]},r.prototype.getItems=function(){return this.itemsData},r.prototype.setZeroPosition=function(e){this.zeroPosition=e},r.prototype.setOptions=function(e){if(void 0!==e){var t=["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"];s.selectiveDeepExtend(t,this.options,e),"function"==typeof e.drawPoints&&(e.drawPoints={onRender:e.drawPoints}),s.mergeOptions(this.options,e,"interpolation"),s.mergeOptions(this.options,e,"drawPoints"),s.mergeOptions(this.options,e,"shaded"),e.interpolation&&"object"==(0,a.default)(e.interpolation)&&e.interpolation.parametrization&&("uniform"==e.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==e.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}},r.prototype.update=function(e){this.group=e,this.content=e.content||"graph",this.className=e.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===e.visible||e.visible,this.style=e.style,this.setOptions(e.options)},r.prototype.getLegend=function(e,t,n,i,r){if(void 0==n||null==n){var o=document.createElementNS("http://www.w3.org/2000/svg","svg");n={svg:o,svgElements:{},options:this.options,groups:[this]}}switch(void 0!=i&&null!=i||(i=0),void 0!=r&&null!=r||(r=.5*t),this.options.style){case"line":l.drawIcon(this,i,r,e,t,n);break;case"points":case"point":c.drawIcon(this,i,r,e,t,n);break;case"bar":u.drawIcon(this,i,r,e,t,n)}return{icon:n.svg,label:this.content,orientation:this.options.yAxisOrientation}},r.prototype.getYRange=function(e){for(var t=e[0].y,n=e[0].y,i=0;ie[i].y?e[i].y:t,n=n0&&(n=Math.min(n,Math.abs(t[i-1].screen_x-t[i].screen_x))),0===n&&(void 0===e[t[i].screen_x]&&(e[t[i].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),e[t[i].screen_x].amount+=1)},i._getSafeDrawData=function(e,t,n){var i,r;return e0?(i=e0){e.sort(function(e,t){return e.screen_x===t.screen_x?e.groupIdt[o].screen_y?t[o].screen_y:i,r=re[a].accumulatedNegative?e[a].accumulatedNegative:i,i=i>e[a].accumulatedPositive?e[a].accumulatedPositive:i,r=r0){var n=[];return n=1==t.options.interpolation.enabled?i._catmullRom(e,t):i._linear(e)}},i.drawIcon=function(e,t,n,i,o,a){var s,u,l=.5*o,c=r.getSVGElement("rect",a.svgElements,a.svg);if(c.setAttributeNS(null,"x",t),c.setAttributeNS(null,"y",n-l),c.setAttributeNS(null,"width",i),c.setAttributeNS(null,"height",2*l),c.setAttributeNS(null,"class","vis-outline"),s=r.getSVGElement("path",a.svgElements,a.svg),s.setAttributeNS(null,"class",e.className),void 0!==e.style&&s.setAttributeNS(null,"style",e.style),s.setAttributeNS(null,"d","M"+t+","+n+" L"+(t+i)+","+n),1==e.options.shaded.enabled&&(u=r.getSVGElement("path",a.svgElements,a.svg),"top"==e.options.shaded.orientation?u.setAttributeNS(null,"d","M"+t+", "+(n-l)+"L"+t+","+n+" L"+(t+i)+","+n+" L"+(t+i)+","+(n-l)):u.setAttributeNS(null,"d","M"+t+","+n+" L"+t+","+(n+l)+" L"+(t+i)+","+(n+l)+"L"+(t+i)+","+n),u.setAttributeNS(null,"class",e.className+" vis-icon-fill"),void 0!==e.options.shaded.style&&""!==e.options.shaded.style&&u.setAttributeNS(null,"style",e.options.shaded.style)),1==e.options.drawPoints.enabled){var d={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size,className:e.className};r.drawPoint(t+.5*i,n,d,a.svgElements,a.svg)}},i.drawShading=function(e,t,n,i){if(1==t.options.shaded.enabled){var o=Number(i.svg.style.height.replace("px","")),a=r.getSVGElement("path",i.svgElements,i.svg),s="L";1==t.options.interpolation.enabled&&(s="C");var u,l=0;l="top"==t.options.shaded.orientation?0:"bottom"==t.options.shaded.orientation?o:Math.min(Math.max(0,t.zeroPosition),o),u="group"==t.options.shaded.orientation&&null!=n&&void 0!=n?"M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,s,!1)+" L"+n[n.length-1][0]+","+n[n.length-1][1]+" "+this.serializePath(n,s,!0)+n[0][0]+","+n[0][1]+" Z":"M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,s,!1)+" V"+l+" H"+e[0][0]+" Z",a.setAttributeNS(null,"class",t.className+" vis-fill"),void 0!==t.options.shaded.style&&a.setAttributeNS(null,"style",t.options.shaded.style),a.setAttributeNS(null,"d",u)}},i.draw=function(e,t,n){if(null!=e&&void 0!=e){var i=r.getSVGElement("path",n.svgElements,n.svg);i.setAttributeNS(null,"class",t.className),void 0!==t.style&&i.setAttributeNS(null,"style",t.style);var o="L";1==t.options.interpolation.enabled&&(o="C"),i.setAttributeNS(null,"d","M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,o,!1))}},i.serializePath=function(e,t,n){if(e.length<2)return"";var i=t;if(n)for(var r=e.length-2;r>0;r--)i+=e[r][0]+","+e[r][1]+" ";else for(var r=1;r0&&(p=1/p),v=3*m*(m+g),v>0&&(v=1/v),s={screen_x:(-b*i.screen_x+h*r.screen_x+_*o.screen_x)*p,screen_y:(-b*i.screen_y+h*r.screen_y+_*o.screen_y)*p},u={screen_x:(y*r.screen_x+f*o.screen_x-b*a.screen_x)*v,screen_y:(y*r.screen_y+f*o.screen_y-b*a.screen_y)*v},0==s.screen_x&&0==s.screen_y&&(s=r),0==u.screen_x&&0==u.screen_y&&(u=o),x.push([s.screen_x,s.screen_y]),x.push([u.screen_x,u.screen_y]),x.push([o.screen_x,o.screen_y]);return x},i._linear=function(e){for(var t=[],n=0;n")}this.dom.textArea.innerHTML=o,this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},r.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=(0,a.default)(this.groups);e.sort(function(e,t){return e0){var n=this.groupIndex%this.groupsArray.length;this.groupIndex++,t={},t.color=this.groups[this.groupsArray[n]],this.groups[e]=t}else{var i=this.defaultIndex%this.defaultGroups.length;this.defaultIndex++,t={},t.color=this.defaultGroups[i],this.groups[e]=t}return t}},{key:"add",value:function(e,t){return this.groups[e]=t,this.groupsArray.push(e),t}}]),e}();t.default=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(163),l=i(u),c=n(164),d=i(c),h=n(1),f=n(89),p=n(93),v=function(){function e(t,n,i,r){var a=this;(0,o.default)(this,e),this.body=t,this.images=n,this.groups=i,this.layoutEngine=r,this.body.functions.createNode=this.create.bind(this),this.nodesListeners={add:function(e,t){a.add(t.items)},update:function(e,t){a.update(t.items,t.data)},remove:function(e,t){a.remove(t.items)}},this.options={},this.defaultOptions={borderWidth:1,borderWidthSelected:2,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(e,t,n,i){if(t===e)return.5;var r=1/(t-e);return Math.max(0,(i-e)*r)}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1},size:25,title:void 0,value:void 0,x:void 0,y:void 0},h.extend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,s.default)(e,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("refreshNodes",this.refresh.bind(this)),this.body.emitter.on("refresh",this.refresh.bind(this)),this.body.emitter.on("destroy",function(){h.forEach(e.nodesListeners,function(t,n){e.body.data.nodes&&e.body.data.nodes.off(n,t)}),delete e.body.functions.createNode,delete e.nodesListeners.add,delete e.nodesListeners.update,delete e.nodesListeners.remove,delete e.nodesListeners})}},{key:"setOptions",value:function(e){if(this.nodeOptions=e,void 0!==e){if(l.default.parseOptions(this.options,e),void 0!==e.shape)for(var t in this.body.nodes)this.body.nodes.hasOwnProperty(t)&&this.body.nodes[t].updateShape();if(void 0!==e.font){d.default.parseOptions(this.options.font,e);for(var n in this.body.nodes)this.body.nodes.hasOwnProperty(n)&&(this.body.nodes[n].updateLabelModule(),this.body.nodes[n]._reset())}if(void 0!==e.size)for(var i in this.body.nodes)this.body.nodes.hasOwnProperty(i)&&this.body.nodes[i]._reset();void 0===e.hidden&&void 0===e.physics||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.data.nodes;if(e instanceof f||e instanceof p)this.body.data.nodes=e;else if(Array.isArray(e))this.body.data.nodes=new f,this.body.data.nodes.add(e);else{if(e)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new f}if(n&&h.forEach(this.nodesListeners,function(e,t){n.off(t,e)}),this.body.nodes={},this.body.data.nodes){var i=this;h.forEach(this.nodesListeners,function(e,t){i.body.data.nodes.on(t,e)});var r=this.body.data.nodes.getIds();this.add(r,!0)}t===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=void 0,i=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:l.default;return new t(e,this.body,this.images,this.groups,this.options,this.defaultOptions,this.nodeOptions)}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.body.nodes;for(var n in t){var i=void 0;t.hasOwnProperty(n)&&(i=t[n]);var r=this.body.data.nodes._data[n];void 0!==i&&void 0!==r&&(e===!0&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(r))}}},{key:"getPositions",value:function(e){var t={};if(void 0!==e){if(Array.isArray(e)===!0){for(var n=0;ne.left&&this.shape.tope.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}}],[{key:"parseOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=["color","font","fixed","shadow"];if(G.selectiveNotDeepExtend(r,e,t,n),G.mergeOptions(e,t,"shadow",n,i),void 0!==t.color&&null!==t.color){var o=G.parseColor(t.color);G.fillIfDefined(e.color,o)}else n===!0&&null===t.color&&(e.color=G.bridgeObject(i.color));void 0!==t.fixed&&null!==t.fixed&&("boolean"==typeof t.fixed?(e.fixed.x=t.fixed,e.fixed.y=t.fixed):(void 0!==t.fixed.x&&"boolean"==typeof t.fixed.x&&(e.fixed.x=t.fixed.x),void 0!==t.fixed.y&&"boolean"==typeof t.fixed.y&&(e.fixed.y=t.fixed.y))),void 0!==t.font&&null!==t.font?d.default.parseOptions(e.font,t):n===!0&&null===t.font&&(e.font=G.bridgeObject(i.font)),void 0!==t.scaling&&G.mergeOptions(e.scaling,t.scaling,"label",n,i.scaling)}}]),e}();t.default=H},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(165),o=i(r),a=n(2),s=i(a),u=n(62),l=i(u),c=n(119),d=i(c),h=n(120),f=i(h),p=n(1),v=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,d.default)(this,e),this.body=t,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(n),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=i}return(0,f.default)(e,[{key:"setOptions",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.elementOptions=t,this.fontOptions=p.deepExtend({},t.font,!0),void 0!==t.label&&(this.labelDirty=!0),void 0!==t.font&&(e.parseOptions(this.fontOptions,t,n),"string"==typeof t.font?this.baseSize=this.fontOptions.size:"object"===(0,l.default)(t.font)&&void 0!==t.font.size&&(this.baseSize=t.font.size))}},{key:"constrain",value:function(e,t,n){this.fontOptions.constrainWidth=!1,this.fontOptions.maxWdt=-1,this.fontOptions.minWdt=-1;var i=[t,e,n],r=p.topMost(i,"widthConstraint");if("number"==typeof r)this.fontOptions.maxWdt=Number(r),this.fontOptions.minWdt=Number(r);else if("object"===("undefined"==typeof r?"undefined":(0,l.default)(r))){var o=p.topMost(i,["widthConstraint","maximum"]);"number"==typeof o&&(this.fontOptions.maxWdt=Number(o));var a=p.topMost(i,["widthConstraint","minimum"]);"number"==typeof a&&(this.fontOptions.minWdt=Number(a))}this.fontOptions.constrainHeight=!1,this.fontOptions.minHgt=-1,this.fontOptions.valign="middle";var s=p.topMost(i,"heightConstraint");if("number"==typeof s)this.fontOptions.minHgt=Number(s);else if("object"===("undefined"==typeof s?"undefined":(0,l.default)(s))){var u=p.topMost(i,["heightConstraint","minimum"]);"number"==typeof u&&(this.fontOptions.minHgt=Number(u));var c=p.topMost(i,["heightConstraint","valign"]);"string"==typeof c&&("top"!==c&&"bottom"!==c||(this.fontOptions.valign=c))}}},{key:"choosify",value:function(e,t,n){this.fontOptions.chooser=!0;var i=[t,e,n],r=p.topMost(i,"chosen");if("boolean"==typeof r)this.fontOptions.chooser=r;else if("object"===("undefined"==typeof r?"undefined":(0,l.default)(r))){var o=p.topMost(i,["chosen","label"]);"boolean"!=typeof o&&"function"!=typeof o||(this.fontOptions.chooser=o)}}},{key:"adjustSizes",value:function(e){var t=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=t,this.fontOptions.minWdt-=t);var n=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=n)}},{key:"propagateFonts",value:function(e,t,n){if(this.fontOptions.multi){var i=["bold","ital","boldital","mono"],r=!0,o=!1,a=void 0;try{for(var u,l=(0,s.default)(i);!(r=(u=l.next()).done);r=!0){var c=u.value,d=void 0;if(e.font&&(d=e.font[c]),"string"==typeof d){var h=d.split(" ");this.fontOptions[c].size=h[0].replace("px",""),this.fontOptions[c].face=h[1],this.fontOptions[c].color=h[2],this.fontOptions[c].vadjust=this.fontOptions.vadjust,this.fontOptions[c].mod=n.font[c].mod}else{if(d&&d.hasOwnProperty("face")?this.fontOptions[c].face=d.face:t.font&&t.font[c]&&t.font[c].hasOwnProperty("face")?this.fontOptions[c].face=t.font[c].face:"mono"===c?this.fontOptions[c].face=n.font[c].face:t.font&&t.font.hasOwnProperty("face")?this.fontOptions[c].face=t.font.face:this.fontOptions[c].face=this.fontOptions.face,d&&d.hasOwnProperty("color")?this.fontOptions[c].color=d.color:t.font&&t.font[c]&&t.font[c].hasOwnProperty("color")?this.fontOptions[c].color=t.font[c].color:t.font&&t.font.hasOwnProperty("color")?this.fontOptions[c].color=t.font.color:this.fontOptions[c].color=this.fontOptions.color,d&&d.hasOwnProperty("mod")?this.fontOptions[c].mod=d.mod:t.font&&t.font[c]&&t.font[c].hasOwnProperty("mod")?this.fontOptions[c].mod=t.font[c].mod:t.font&&t.font.hasOwnProperty("mod")?this.fontOptions[c].mod=t.font.mod:this.fontOptions[c].mod=n.font[c].mod,d&&d.hasOwnProperty("size"))this.fontOptions[c].size=d.size;else if(t.font&&t.font[c]&&t.font[c].hasOwnProperty("size"))this.fontOptions[c].size=t.font[c].size;else if(this.fontOptions[c].face===n.font[c].face&&this.fontOptions.face===n.font.face){var f=this.fontOptions.size/Number(n.font.size);this.fontOptions[c].size=n.font[c].size*f}else t.font&&t.font.hasOwnProperty("size")?this.fontOptions[c].size=t.font.size:this.fontOptions[c].size=this.fontOptions.size;if(d&&d.hasOwnProperty("vadjust"))this.fontOptions[c].vadjust=d.vadjust;else if(t.font&&t.font[c]&&t.font[c].hasOwnProperty("vadjust"))this.fontOptions[c].vadjust=t.font[c].vadjust;else if(this.fontOptions[c].face===n.font[c].face&&this.fontOptions.face===n.font.face){var p=this.fontOptions.size/Number(n.font.size);this.fontOptions[c].vadjust=n.font[c].vadjust*Math.round(p)}else t.font&&t.font.hasOwnProperty("vadjust")?this.fontOptions[c].vadjust=t.font.vadjust:this.fontOptions[c].vadjust=this.fontOptions.vadjust}this.fontOptions[c].size=Number(this.fontOptions[c].size),this.fontOptions[c].vadjust=Number(this.fontOptions[c].vadjust)}}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}}}},{key:"draw",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var a=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&a5&&void 0!==arguments[5]?arguments[5]:"middle",s=this.fontOptions.size,u=s*this.body.view.scale;u>=this.elementOptions.scaling.label.maxVisible&&(s=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale);var l=this.size.yLine,c=this._setAlignment(e,i,l,a),d=(0,o.default)(c,2);i=d[0],l=d[1],e.textAlign="left",i-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(l-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(l+=(this.size.height-this.size.labelHeight)/2));for(var h=0;h0&&(e.lineWidth=v.strokeWidth,e.strokeStyle=b,e.lineJoin="round"),e.fillStyle=y,v.strokeWidth>0&&e.strokeText(v.text,i+f,l+v.vadjust),e.fillText(v.text,i+f,l+v.vadjust),f+=v.width}l+=this.lines[h].height}}},{key:"_setAlignment",value:function(e,t,n,i){if(this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&this.pointToSelf===!1){t=0,n=0;var r=2;"top"===this.fontOptions.align?(e.textBaseline="alphabetic",n-=2*r):"bottom"===this.fontOptions.align?(e.textBaseline="hanging",n+=2*r):e.textBaseline="middle"}else e.textBaseline=i;return[t,n]}},{key:"_getColor",value:function(e,t,n){var i=e||"#000000",r=n||"#ffffff";if(t<=this.elementOptions.scaling.label.drawThreshold){var o=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-t)));i=p.overrideOpacity(i,o),r=p.overrideOpacity(r,o)}return[i,r]}},{key:"getTextSize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(e,t,n),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"calculateLabelSize",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this.labelDirty===!0&&this._processLabel(e,t,n),this.size.left=i-.5*this.size.width,this.size.top=r-.5*this.size.height,this.size.yLine=r+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===o&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4),this.labelDirty=!1}},{key:"decodeMarkupSystem",value:function(e){var t="none";return"markdown"===e||"md"===e?t="markdown":e!==!0&&"html"!==e||(t="html"),t}},{key:"splitBlocks",value:function(e,t){var n=this.decodeMarkupSystem(t);return"none"===n?[{text:e,mod:"normal"}]:"markdown"===n?this.splitMarkdownBlocks(e):"html"===n?this.splitHtmlBlocks(e):void 0}},{key:"splitMarkdownBlocks",value:function(e){var t=[],n={bold:!1,ital:!1,mono:!1,beginable:!0,spacing:!1,position:0,buffer:"",modStack:[]};for(n.mod=function(){return 0===this.modStack.length?"normal":this.modStack[0]},n.modName=function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":n.bold&&n.ital?"boldital":n.bold?"bold":n.ital?"ital":void 0},n.emitBlock=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(t.push({text:this.buffer,mod:this.modName()}),this.buffer="")},n.add=function(e){" "===e&&(n.spacing=!0),n.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=e&&(this.buffer+=e)};n.position0&&void 0!==arguments[0]&&arguments[0];this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(t.push({text:this.buffer,mod:this.modName()}),this.buffer="")},n.add=function(e){" "===e&&(n.spacing=!0),n.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=e&&(this.buffer+=e)};n.position/.test(e.substr(n.position,3))?n.mono||n.ital||!//.test(e.substr(n.position,3))?!n.mono&&//.test(e.substr(n.position,6))?(n.emitBlock(),n.mono=!0,n.modStack.unshift("mono"),n.position+=5):!n.mono&&"bold"===n.mod()&&/<\/b>/.test(e.substr(n.position,4))?(n.emitBlock(),n.bold=!1,n.modStack.shift(),n.position+=3):!n.mono&&"ital"===n.mod()&&/<\/i>/.test(e.substr(n.position,4))?(n.emitBlock(),n.ital=!1,n.modStack.shift(),n.position+=3):"mono"===n.mod()&&/<\/code>/.test(e.substr(n.position,7))?(n.emitBlock(),n.mono=!1,n.modStack.shift(),n.position+=6):n.add(i):(n.emitBlock(),n.ital=!0,n.modStack.unshift("ital"),n.position+=2):(n.emitBlock(),n.bold=!0,n.modStack.unshift("bold"),n.position+=2):/&/.test(i)?/</.test(e.substr(n.position,4))?(n.add("<"),n.position+=3):/&/.test(e.substr(n.position,5))?(n.add("&"),n.position+=4):n.add("&"):n.add(i),n.position++}return n.emitBlock(),t}},{key:"getFormattingValues",value:function(e,t,n,i){var r={color:"normal"===i?this.fontOptions.color:this.fontOptions[i].color,size:"normal"===i?this.fontOptions.size:this.fontOptions[i].size,face:"normal"===i?this.fontOptions.face:this.fontOptions[i].face,mod:"normal"===i?"":this.fontOptions[i].mod,vadjust:"normal"===i?this.fontOptions.vadjust:this.fontOptions[i].vadjust,strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};return"normal"===i?(t||n)&&(this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?r.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(e,r,this.elementOptions.id,t,n)):(t||n)&&"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(e,r,this.elementOptions.id,t,n),e.font=(r.mod+" "+r.size+"px "+r.face).replace(/"/g,""),r.font=e.font,r.height=r.size,r}},{key:"differentState",value:function(e,t){return e!==this.fontOptions.selectedState&&t!==this.fontOptions.hoverState}},{key:"_processLabel",value:function(e,t,n){var i=0,r=0,o=[],a=0;if(o.add=function(e,t,n,i,r,o,a,s,u,l){this.length==e&&(this[e]={width:0,height:0,blocks:[]}),this[e].blocks.push({text:t,font:n,color:i,width:r,height:o,vadjust:a,mod:s,strokeWidth:u,strokeColor:l})},o.accumulate=function(e,t,n){this[e].width+=t,this[e].height=n>this[e].height?n:this[e].height},o.addAndAccumulate=function(e,t,n,i,r,o,a,s,u,l){this.add(e,t,n,i,r,o,a,s,u,l),this.accumulate(e,r,o)},void 0!==this.elementOptions.label){var s=String(this.elementOptions.label).split("\n"),u=s.length;if(this.elementOptions.font.multi)for(var l=0;l0)for(var v=this.getFormattingValues(e,t,n,c[p].mod),m=c[p].text.split(" "),g=!0,y="",b={width:0},_=void 0,w=0;wthis.fontOptions.maxWdt&&0!=_.width?(h=v.height>h?v.height:h,o.add(a,y,v.font,v.color,_.width,v.height,v.vadjust,c[p].mod,v.strokeWidth,v.strokeColor), -o.accumulate(a,_.width,h),y="",g=!0,d=0,i=o[a].width>i?o[a].width:i,r+=o[a].height,a++):(y=y+x+m[w],w===m.length-1&&(h=v.height>h?v.height:h,d+=b.width,o.add(a,y,v.font,v.color,b.width,v.height,v.vadjust,c[p].mod,v.strokeWidth,v.strokeColor),o.accumulate(a,b.width,h),p===c.length-1&&(i=o[a].width>i?o[a].width:i,r+=o[a].height,a++)),w++,g=!1)}else{var T=this.getFormattingValues(e,t,n,c[p].mod),E=e.measureText(c[p].text);o.addAndAccumulate(a,c[p].text,T.font,T.color,E.width,T.height,T.vadjust,c[p].mod,T.strokeWidth,T.strokeColor),i=o[a].width>i?o[a].width:i,c.length-1===p&&(r+=o[a].height,a++)}}}else for(var C=0;C0)for(var S=s[C].split(" "),k="",M={width:0},P=void 0,N=0;Nthis.fontOptions.maxWdt&&0!=P.width?(o.addAndAccumulate(a,k,O.font,O.color,P.width,O.size,O.vadjust,"normal",O.strokeWidth,O.strokeColor),i=o[a].width>i?o[a].width:i,r+=o[a].height,k="",a++):(k=k+D+S[N],N===S.length-1&&(o.addAndAccumulate(a,k,O.font,O.color,M.width,O.size,O.vadjust,"normal",O.strokeWidth,O.strokeColor),i=o[a].width>i?o[a].width:i,r+=o[a].height,a++),N++)}else{var I=s[C],L=e.measureText(I);o.addAndAccumulate(a,I,O.font,O.color,L.width,O.size,O.vadjust,"normal",O.strokeWidth,O.strokeColor),i=o[a].width>i?o[a].width:i,r+=o[a].height,a++}}}this.fontOptions.minWdt>0&&i0&&r2&&void 0!==arguments[2]&&arguments[2];if("string"==typeof t.font){var i=t.font.split(" ");e.size=i[0].replace("px",""),e.face=i[1],e.color=i[2],e.vadjust=0}else"object"===(0,l.default)(t.font)&&p.fillIfDefined(e,t.font,n);e.size=Number(e.size),e.vadjust=Number(e.vadjust)}}]),e}();t.default=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(166),o=i(r),a=n(2),s=i(a);t.default=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,u=(0,s.default)(e);!(i=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&u.return&&u.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){e.exports={default:n(167),__esModule:!0}},function(e,t,n){n(4),n(50),e.exports=n(168)},function(e,t,n){var i=n(54),r=n(47)("iterator"),o=n(8);e.exports=n(17).isIterable=function(e){var t=Object(e);return void 0!==t[r]||"@@iterator"in t||o.hasOwnProperty(i(t))}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r._setMargins(i),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;(void 0===this.width||this.labelModule.differentState(t,n))&&(this.textSize=this.labelModule.getTextSize(e,t,n),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=this.width/2)}},{key:"draw",value:function(e,t,n,i,r,o){this.resize(e,i,r),this.left=t-this.width/2,this.top=n-this.height/2,e.strokeStyle=o.borderColor,e.lineWidth=o.borderWidth,e.lineWidth/=this.body.view.scale,e.lineWidth=Math.min(this.width,e.lineWidth),e.fillStyle=o.color,e.roundRect(this.left,this.top,this.width,this.height,o.borderRadius),this.enableShadow(e,o),e.fill(),this.disableShadow(e,o),e.save(),o.borderWidth>0&&(this.enableBorderDashes(e,o),e.stroke(),this.disableBorderDashes(e,o)),e.restore(),this.updateBoundingBox(t,n,e,i,r),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,r)}},{key:"updateBoundingBox",value:function(e,t,n,i,r){this.resize(n,i,r),this.left=e-this.width/2,this.top=t-this.height/2;var o=this.options.shapeProperties.borderRadius;this.boundingBox.left=this.left-o,this.boundingBox.top=this.top-o,this.boundingBox.bottom=this.top+this.height+o,this.boundingBox.right=this.left+this.width+o}},{key:"distanceToBorder",value:function(e,t){this.resize(e);var n=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(t)),Math.abs(this.height/2/Math.sin(t)))+n}}]),t}(v.default);t.default=m},function(e,t,n){e.exports={default:n(171),__esModule:!0}},function(e,t,n){n(172),e.exports=n(17).Object.getPrototypeOf},function(e,t,n){var i=n(49),r=n(48);n(61)("getPrototypeOf",function(){return function(e){return r(i(e))}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(62),o=i(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(175),o=i(r),a=n(55),s=i(a),u=n(62),l=i(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,l.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(176),__esModule:!0}},function(e,t,n){n(177),e.exports=n(17).Object.setPrototypeOf},function(e,t,n){var i=n(15);i(i.S,"Object",{setPrototypeOf:n(178).set})},function(e,t,n){var i=n(23),r=n(22),o=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{i=n(18)(Function.call,n(78).f(Object.prototype,"__proto__").set,2),i(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(62),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=function(){function e(t,n,i){(0,s.default)(this,e),this.body=n,this.labelModule=i,this.setOptions(t),this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.radius=void 0,this.margin=void 0,this.boundingBox={top:0,left:0,right:0,bottom:0}}return(0,l.default)(e,[{key:"setOptions",value:function(e){this.options=e}},{key:"_setMargins",value:function(e){this.margin={},this.options.margin&&("object"==(0,o.default)(this.options.margin)?(this.margin.top=this.options.margin.top,this.margin.right=this.options.margin.right,this.margin.bottom=this.options.margin.bottom,this.margin.left=this.options.margin.left):(this.margin.top=this.options.margin,this.margin.right=this.options.margin,this.margin.bottom=this.options.margin,this.margin.left=this.options.margin)),e.adjustSizes(this.margin)}},{key:"_distanceToBorder",value:function(e,t){var n=this.options.borderWidth;return this.resize(e),Math.min(Math.abs(this.width/2/Math.cos(t)),Math.abs(this.height/2/Math.sin(t)))+n}},{key:"enableShadow",value:function(e,t){t.shadow&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}},{key:"disableShadow",value:function(e,t){t.shadow&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"enableBorderDashes",value:function(e,t){if(t.borderDashes!==!1)if(void 0!==e.setLineDash){var n=t.borderDashes;n===!0&&(n=[5,15]),e.setLineDash(n)}else console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,t.borderDashes=!1}},{key:"disableBorderDashes",value:function(e,t){t.borderDashes!==!1&&(void 0!==e.setLineDash?e.setLineDash([0]):(console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,t.borderDashes=!1))}}]),e}();t.default=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(181),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r._setMargins(i),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(void 0===this.width||this.labelModule.differentState(t,n)){this.textSize=this.labelModule.getTextSize(e,t,n);var i=Math.max(this.textSize.width+this.margin.right+this.margin.left,this.textSize.height+this.margin.top+this.margin.bottom);this.options.size=i/2,this.width=i,this.height=i,this.radius=this.width/2}}},{key:"draw",value:function(e,t,n,i,r,o){this.resize(e,i,r),this.left=t-this.width/2,this.top=n-this.height/2,this._drawRawCircle(e,t,n,i,r,o),this.boundingBox.top=n-o.size,this.boundingBox.left=t-o.size,this.boundingBox.right=t+o.size,this.boundingBox.bottom=n+o.size,this.updateBoundingBox(t,n),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,n,i,r)}},{key:"updateBoundingBox",value:function(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size}},{key:"distanceToBorder",value:function(e,t){return this.resize(e),.5*this.width}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r.labelOffset=0,r.imageLoaded=!1,r.selected=!1,r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"setOptions",value:function(e,t,n){this.options=e,this.setImages(t,n)}},{key:"setImages",value:function(e,t){e&&(this.imageObj=e,t&&(this.imageObjAlt=t))}},{key:"switchImages",value:function(e){if(e&&!this.selected||!e&&this.selected){var t=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=t}this.selected=e}},{key:"_resizeImage",value:function(){var e=!1;if(this.imageObj.width&&this.imageObj.height?this.imageLoaded===!1&&(this.imageLoaded=!0,e=!0):this.imageLoaded=!1,!this.width||!this.height||e===!0){var t,n,i;this.imageObj.width&&this.imageObj.height&&(t=0,n=0),this.options.shapeProperties.useImageSize===!1?this.imageObj.width>this.imageObj.height?(i=this.imageObj.width/this.imageObj.height,t=2*this.options.size*i||this.imageObj.width,n=2*this.options.size||this.imageObj.height):(i=this.imageObj.width&&this.imageObj.height?this.imageObj.height/this.imageObj.width:1,t=2*this.options.size,n=2*this.options.size*i):(t=this.imageObj.width,n=this.imageObj.height),this.width=t,this.height=n,this.radius=.5*this.width}}},{key:"_drawRawCircle",value:function(e,t,n,i,r,o){var a=o.borderWidth/this.body.view.scale;e.lineWidth=Math.min(this.width,a),e.strokeStyle=o.borderColor,e.fillStyle=o.color,e.circle(t,n,o.size),this.enableShadow(e,o),e.fill(),this.disableShadow(e,o),e.save(),a>0&&(this.enableBorderDashes(e,o),e.stroke(),this.disableBorderDashes(e,o)),e.restore()}},{key:"_drawImageAtPosition",value:function(e,t){if(0!=this.imageObj.width){e.globalAlpha=1,this.enableShadow(e,t);var n=this.imageObj.width/this.width/this.body.view.scale;if(n>2&&this.options.shapeProperties.interpolation===!0){var i=this.imageObj.width,r=this.imageObj.height,o=document.createElement("canvas");o.width=i,o.height=i;var a=o.getContext("2d");n*=.5,i*=.5,r*=.5,a.drawImage(this.imageObj,0,0,i,r);for(var s=0,u=1;n>2&&u<4;)a.drawImage(o,s,0,i,r,s+i,0,i/2,r/2),s+=i,n*=.5,i*=.5,r*=.5,u+=1;e.drawImage(o,s,0,i,r,this.left,this.top,this.width,this.height)}else e.drawImage(this.imageObj,this.left,this.top,this.width,this.height);this.disableShadow(e,t)}}},{key:"_drawImageLabel",value:function(e,t,n,i,r){var o,a=0;if(void 0!==this.height){a=.5*this.height;var s=this.labelModule.getTextSize(e,i,r);s.lineCount>=1&&(a+=s.height/2)}o=n+a,this.options.label&&(this.labelOffset=a),this.labelModule.draw(e,t,o,i,r,"hanging")}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(181),v=i(p),m=function(e){function t(e,n,i,r,a){(0,s.default)(this,t);var u=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return u.setImages(r,a),u._swapToImageResizeWhenImageLoaded=!0,u}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height||this.labelModule.differentState(t,n)){var i=2*this.options.size;this.width=i,this.height=i,this._swapToImageResizeWhenImageLoaded=!0,this.radius=.5*this.width}else this._swapToImageResizeWhenImageLoaded&&(this.width=void 0,this.height=void 0,this._swapToImageResizeWhenImageLoaded=!1),this._resizeImage()}},{key:"draw",value:function(e,t,n,i,r,o){this.imageObjAlt&&this.switchImages(i),this.resize(),this.left=t-this.width/2,this.top=n-this.height/2;Math.min(.5*this.height,.5*this.width);this._drawRawCircle(e,t,n,i,r,o),e.save(),e.clip(),this._drawImageAtPosition(e,o),e.restore(),this._drawImageLabel(e,t,n,i,r),this.updateBoundingBox(t,n)}},{key:"updateBoundingBox",value:function(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size,this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(e,t){return this.resize(e),.5*this.width}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r._setMargins(i),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e,t,n){if(void 0===this.width||this.labelModule.differentState(t,n)){this.textSize=this.labelModule.getTextSize(e,t,n);var i=this.textSize.width+this.margin.right+this.margin.left;this.width=i,this.height=i,this.radius=this.width/2}}},{key:"draw",value:function(e,t,n,i,r,o){this.resize(e,i,r),this.left=t-this.width/2,this.top=n-this.height/2;var a=o.borderWidth/this.body.view.scale;e.lineWidth=Math.min(this.width,a),e.strokeStyle=o.borderColor,e.fillStyle=o.color,e.database(t-this.width/2,n-this.height/2,this.width,this.height),this.enableShadow(e,o),e.fill(),this.disableShadow(e,o),e.save(),a>0&&(this.enableBorderDashes(e,o),e.stroke(),this.disableBorderDashes(e,o)),e.restore(),this.updateBoundingBox(t,n,e,i,r),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,r)}},{key:"updateBoundingBox",value:function(e,t,n,i,r){this.resize(n,i,r),this.left=e-.5*this.width,this.top=t-.5*this.height,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,i=arguments[3];this._resizeShape(t,n,i)}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"diamond",4,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"_resizeShape",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selected,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hover,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{size:this.options.size};if(void 0===this.width||this.labelModule.differentState(e,t)){var i=2*n.size;this.width=i,this.height=i,this.radius=.5*this.width}}},{key:"_drawShape",value:function(e,t,n,i,r,o,a,s){this._resizeShape(o,a,s),this.left=i-this.width/2,this.top=r-this.height/2;var u=s.borderWidth/this.body.view.scale;if(e.lineWidth=Math.min(this.width,u),e.strokeStyle=s.borderColor,e.fillStyle=s.color,e[t](i,r,s.size),this.enableShadow(e,s),e.fill(),this.disableShadow(e,s),e.save(),u>0&&(this.enableBorderDashes(e,s),e.stroke(),this.disableBorderDashes(e,s)),e.restore(),void 0!==this.options.label){var l=r+.5*this.height+3;this.labelModule.draw(e,i,l,o,a,"hanging")}this.updateBoundingBox(i,r)}},{key:"updateBoundingBox",value:function(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+3))}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,i=arguments[3];this._resizeShape(t,n,i)}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"circle",2,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this.resize(e),this.options.size}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.width||this.labelModule.differentState(t,n)){var i=this.labelModule.getTextSize(e,t,n);this.height=2*i.height,this.width=i.width+this.height,this.radius=.5*this.width}}},{key:"draw",value:function(e,t,n,i,r,o){this.resize(e,i,r),this.left=t-.5*this.width,this.top=n-.5*this.height;var a=o.borderWidth/this.body.view.scale;e.lineWidth=Math.min(this.width,a),e.strokeStyle=o.borderColor,e.fillStyle=o.color,e.ellipse(this.left,this.top,this.width,this.height),this.enableShadow(e,o),e.fill(),this.disableShadow(e,o),e.save(),a>0&&(this.enableBorderDashes(e,o),e.stroke(),this.disableBorderDashes(e,o)),e.restore(),this.updateBoundingBox(t,n,e,i,r),this.labelModule.draw(e,t,n,i,r)}},{key:"updateBoundingBox",value:function(e,t,n,i,r){this.resize(n,i,r),this.left=e-.5*this.width,this.top=t-.5*this.height,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"distanceToBorder",value:function(e,t){this.resize(e);var n=.5*this.width,i=.5*this.height,r=Math.sin(t)*n,o=Math.cos(t)*i;return n*i/Math.sqrt(r*r+o*o)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r._setMargins(i),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e,t,n){(void 0===this.width||this.labelModule.differentState(t,n))&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(e,t,n,i,r,o){if(this.resize(e,i,r),this.options.icon.size=this.options.icon.size||50,this.left=t-this.width/2,this.top=n-this.height/2,this._icon(e,t,n,i,r,o),void 0!==this.options.label){var a=5;this.labelModule.draw(e,this.left+this.iconSize.width/2+this.margin.left,n+this.height/2+a,i)}this.updateBoundingBox(t,n)}},{key:"updateBoundingBox",value:function(e,t){if(this.boundingBox.top=t-.5*this.options.icon.size,this.boundingBox.left=e-.5*this.options.icon.size,this.boundingBox.right=e+.5*this.options.icon.size,this.boundingBox.bottom=t+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0){var n=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+n)}}},{key:"_icon",value:function(e,t,n,i,r,o){var a=Number(this.options.icon.size);void 0!==this.options.icon.code?(e.font=(i?"bold ":"")+a+"px "+this.options.icon.face,e.fillStyle=this.options.icon.color||"black",e.textAlign="center",e.textBaseline="middle",this.enableShadow(e,o),e.fillText(this.options.icon.code,t,n),this.disableShadow(e,o)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(181),v=i(p),m=function(e){function t(e,n,i,r,a){(0,s.default)(this,t);var u=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return u.setImages(r,a),u}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(){this._resizeImage()}},{key:"draw",value:function(e,t,n,i,r,o){if(this.imageObjAlt&&this.switchImages(i),this.selected=i,this.resize(),this.left=t-this.width/2,this.top=n-this.height/2,this.options.shapeProperties.useBorderWithImage===!0){var a=this.options.borderWidth,s=this.options.borderWidthSelected||2*this.options.borderWidth,u=(i?s:a)/this.body.view.scale;e.lineWidth=Math.min(this.width,u),e.beginPath(),e.strokeStyle=i?this.options.color.highlight.border:r?this.options.color.hover.border:this.options.color.border,e.fillStyle=i?this.options.color.highlight.background:r?this.options.color.hover.background:this.options.color.background,e.rect(this.left-.5*e.lineWidth,this.top-.5*e.lineWidth,this.width+e.lineWidth,this.height+e.lineWidth),e.fill(),e.save(),u>0&&(this.enableBorderDashes(e,o),e.stroke(),this.disableBorderDashes(e,o)),e.restore(),e.closePath()}this._drawImageAtPosition(e,o),this._drawImageLabel(e,t,n,i,r),this.updateBoundingBox(t,n)}},{key:"updateBoundingBox",value:function(e,t){this.resize(),this.left=e-this.width/2,this.top=t-this.height/2,this.boundingBox.top=this.top,this.boundingBox.left=this.left,this.boundingBox.right=this.left+this.width,this.boundingBox.bottom=this.top+this.height,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(){this._resizeShape()}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"square",2,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e,t,n,i){this._resizeShape(t,n,i)}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"star",4,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r._setMargins(i),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e,t,n){(void 0===this.width||this.labelModule.differentState(t,n))&&(this.textSize=this.labelModule.getTextSize(e,t,n),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(e,t,n,i,r,o){this.resize(e,i,r),this.left=t-this.width/2,this.top=n-this.height/2,this.enableShadow(e,o),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,r),this.disableShadow(e,o),this.updateBoundingBox(t,n,e,i,r)}},{key:"updateBoundingBox",value:function(e,t,n,i,r){this.resize(n,i,r),this.left=e-this.width/2,this.top=t-this.height/2,this.boundingBox.top=this.top,this.boundingBox.left=this.left,this.boundingBox.right=this.left+this.width,this.boundingBox.bottom=this.top+this.height}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){this._resizeShape()}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"triangle",3,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){this._resizeShape()}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"triangleDown",3,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(196),l=i(u),c=n(164),d=i(c),h=n(1),f=n(89),p=n(93),v=function(){function e(t,n,i){var r=this;(0,o.default)(this,e),this.body=t,this.images=n,this.groups=i,this.body.functions.createEdge=this.create.bind(this),this.edgesListeners={add:function(e,t){r.add(t.items)},update:function(e,t){r.update(t.items)},remove:function(e,t){r.remove(t.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(e,t,n,i){if(t===e)return.5;var r=1/(t-e);return Math.max(0,(i-e)*r)}},selectionWidth:1.5,selfReferenceSize:20,shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0, -width:1,value:void 0},h.extend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,s.default)(e,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("_forceDisableDynamicCurves",function(t){"dynamic"===t&&(t="continuous");var n=!1;for(var i in e.body.edges)if(e.body.edges.hasOwnProperty(i)){var r=e.body.edges[i],o=e.body.data.edges._data[i];if(void 0!==o){var a=o.smooth;void 0!==a&&a.enabled===!0&&"dynamic"===a.type&&(void 0===t?r.setOptions({smooth:!1}):r.setOptions({smooth:{type:t}}),n=!0)}}n===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",this.refresh.bind(this)),this.body.emitter.on("refresh",this.refresh.bind(this)),this.body.emitter.on("destroy",function(){h.forEach(e.edgesListeners,function(t,n){e.body.data.edges&&e.body.data.edges.off(n,t)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(this.edgeOptions=e,void 0!==e){l.default.parseOptions(this.options,e);var t=!1;if(void 0!==e.smooth)for(var n in this.body.edges)this.body.edges.hasOwnProperty(n)&&(t=this.body.edges[n].updateEdgeType()||t);if(void 0!==e.font){d.default.parseOptions(this.options.font,e);for(var i in this.body.edges)this.body.edges.hasOwnProperty(i)&&this.body.edges[i].updateLabelModule()}void 0===e.hidden&&void 0===e.physics&&t!==!0||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.data.edges;if(e instanceof f||e instanceof p)this.body.data.edges=e;else if(Array.isArray(e))this.body.data.edges=new f,this.body.data.edges.add(e);else{if(e)throw new TypeError("Array or DataSet expected");this.body.data.edges=new f}if(i&&h.forEach(this.edgesListeners,function(e,t){i.off(t,e)}),this.body.edges={},this.body.data.edges){h.forEach(this.edgesListeners,function(e,n){t.body.data.edges.on(n,e)});var r=this.body.data.edges.getIds();this.add(r,!0)}n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.edges,i=this.body.data.edges,r=0;rn.shape.height?(a=n.x+.5*n.shape.width,s=n.y-u):(a=n.x+u,s=n.y-.5*n.shape.height),o=this._pointOnCircle(a,s,u,.125),this.labelModule.draw(e,o.x,o.y,r,this.hover)}}}},{key:"isOverlappingWith",value:function(e){if(this.connected){var t=10,n=this.from.x,i=this.from.y,r=this.to.x,o=this.to.y,a=e.left,s=e.top,u=this.edgeType.getDistanceToEdge(n,i,r,o,a,s);return u0&&n<0)&&(i+=Math.PI),e.rotate(i)}},{key:"_pointOnCircle",value:function(e,t,n,i){var r=2*i*Math.PI;return{x:e+n*Math.cos(r),y:t-n*Math.sin(r)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}}],[{key:"parseOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=["arrowStrikethrough","id","from","hidden","hoverWidth","label","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","to","title","value","width"];if(E.selectiveDeepExtend(r,e,t,n),E.mergeOptions(e,t,"smooth",n,i),E.mergeOptions(e,t,"shadow",n,i),void 0!==t.dashes&&null!==t.dashes?e.dashes=t.dashes:n===!0&&null===t.dashes&&(e.dashes=(0,s.default)(i.dashes)),void 0!==t.scaling&&null!==t.scaling?(void 0!==t.scaling.min&&(e.scaling.min=t.scaling.min),void 0!==t.scaling.max&&(e.scaling.max=t.scaling.max),E.mergeOptions(e.scaling,t.scaling,"label",n,i.scaling)):n===!0&&null===t.scaling&&(e.scaling=(0,s.default)(i.scaling)),void 0!==t.arrows&&null!==t.arrows)if("string"==typeof t.arrows){var a=t.arrows.toLowerCase();e.arrows.to.enabled=a.indexOf("to")!=-1,e.arrows.middle.enabled=a.indexOf("middle")!=-1,e.arrows.from.enabled=a.indexOf("from")!=-1}else{if("object"!==(0,l.default)(t.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+(0,o.default)(t.arrows));E.mergeOptions(e.arrows,t.arrows,"to",n,i.arrows),E.mergeOptions(e.arrows,t.arrows,"middle",n,i.arrows),E.mergeOptions(e.arrows,t.arrows,"from",n,i.arrows)}else n===!0&&null===t.arrows&&(e.arrows=(0,s.default)(i.arrows));if(void 0!==t.color&&null!==t.color)if(e.color=E.deepExtend({},e.color,!0),E.isString(t.color))e.color.color=t.color,e.color.highlight=t.color,e.color.hover=t.color,e.color.inherit=!1;else{var u=!1;void 0!==t.color.color&&(e.color.color=t.color.color,u=!0),void 0!==t.color.highlight&&(e.color.highlight=t.color.highlight,u=!0),void 0!==t.color.hover&&(e.color.hover=t.color.hover,u=!0),void 0!==t.color.inherit&&(e.color.inherit=t.color.inherit),void 0!==t.color.opacity&&(e.color.opacity=Math.min(1,Math.max(0,t.color.opacity))),void 0===t.color.inherit&&u===!0&&(e.color.inherit=!1)}else n===!0&&null===t.color&&(e.color=E.bridgeObject(i.color));void 0!==t.font&&null!==t.font?v.default.parseOptions(e.font,t):n===!0&&null===t.font&&(e.font=E.bridgeObject(i.font))}}]),e}();t.default=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(165),o=i(r),a=n(170),s=i(a),u=n(119),l=i(u),c=n(120),d=i(c),h=n(173),f=i(h),p=n(174),v=i(p),m=n(198),g=i(m),y=function(e){function t(e,n,i){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e,n,i))}return(0,v.default)(t,e),(0,d.default)(t,[{key:"_line",value:function(e,t,n){var i=n[0],r=n[1];e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),void 0===n||void 0===i.x?e.lineTo(this.toPoint.x,this.toPoint.y):e.bezierCurveTo(i.x,i.y,r.x,r.y,this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}},{key:"_getViaCoordinates",value:function(){var e=this.from.x-this.to.x,t=this.from.y-this.to.y,n=void 0,i=void 0,r=void 0,o=void 0,a=this.options.smooth.roundness;return(Math.abs(e)>Math.abs(t)||this.options.smooth.forceDirection===!0||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(i=this.from.y,o=this.to.y,n=this.from.x-a*e,r=this.to.x+a*e):(i=this.from.y-a*t,o=this.to.y+a*t,n=this.from.x,r=this.to.x),[{x:n,y:i},{x:r,y:o}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(e,t){return this._findBorderPositionBezier(e,t)}},{key:"_getDistanceToEdge",value:function(e,t,n,i,r,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),u=(0,o.default)(s,2),l=u[0],c=u[1];return this._getDistanceToBezierEdge(e,t,n,i,r,a,l,c)}},{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),n=(0,o.default)(t,2),i=n[0],r=n[1],a=e,s=[];s[0]=Math.pow(1-a,3),s[1]=3*a*Math.pow(1-a,2),s[2]=3*Math.pow(a,2)*(1-a),s[3]=Math.pow(a,3);var u=s[0]*this.fromPoint.x+s[1]*i.x+s[2]*r.x+s[3]*this.toPoint.x,l=s[0]*this.fromPoint.y+s[1]*i.y+s[2]*r.y+s[3]*this.toPoint.y;return{x:u,y:l}}}]),t}(g.default);t.default=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(199),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"_getDistanceToBezierEdge",value:function(e,t,n,i,r,o,a,s){var u=1e9,l=void 0,c=void 0,d=void 0,h=void 0,f=void 0,p=e,v=t,m=[0,0,0,0];for(c=1;c<10;c++)d=.1*c,m[0]=Math.pow(1-d,3),m[1]=3*d*Math.pow(1-d,2),m[2]=3*Math.pow(d,2)*(1-d),m[3]=Math.pow(d,3),h=m[0]*e+m[1]*a.x+m[2]*s.x+m[3]*n,f=m[0]*t+m[1]*a.y+m[2]*s.y+m[3]*i,c>0&&(l=this._getDistanceToLine(p,v,h,f,r,o),u=l2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),u=10,l=0,c=0,d=1,h=.2,f=this.to,p=!1;for(e.id===this.from.id&&(f=this.from,p=!0);c<=d&&l0&&(u=this._getDistanceToLine(f,p,d,h,r,o),s=ui.shape.height?(t=i.x+.5*i.shape.width,n=i.y-r):(t=i.x+r,n=i.y-.5*i.shape.height),[t,n,r]}},{key:"_pointOnCircle",value:function(e,t,n,i){var r=2*i*Math.PI;return{x:e+n*Math.cos(r),y:t-n*Math.sin(r)}}},{key:"_findBorderPositionCircle",value:function(e,t,n){for(var i=n.x,r=n.y,o=n.low,a=n.high,s=n.direction,u=10,l=0,c=this.options.selfReferenceSize,d=void 0,h=void 0,f=void 0,p=void 0,v=void 0,m=.05,g=.5*(o+a);o<=a&&l0?s>0?o=g:a=g:s>0?a=g:o=g,l++;return d.t=g,d}},{key:"getLineWidth",value:function(e,t){return e===!0?Math.max(this.selectionWidth,.3/this.body.view.scale):t===!0?Math.max(this.hoverWidth,.3/this.body.view.scale):Math.max(this.options.width,.3/this.body.view.scale)}},{key:"getColor",value:function(e,t,n,i){if(t.inheritsColor!==!1){if("both"===t.inheritsColor&&this.from.id!==this.to.id){var r=e.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),o=void 0,a=void 0;return o=this.from.options.color.highlight.border,a=this.to.options.color.highlight.border,this.from.selected===!1&&this.to.selected===!1?(o=c.overrideOpacity(this.from.options.color.border,t.opacity),a=c.overrideOpacity(this.to.options.color.border,t.opacity)):this.from.selected===!0&&this.to.selected===!1?a=this.to.options.color.border:this.from.selected===!1&&this.to.selected===!0&&(o=this.from.options.color.border),r.addColorStop(0,o),r.addColorStop(1,a),r}return"to"===t.inheritsColor?c.overrideOpacity(this.to.options.color.border,t.opacity):c.overrideOpacity(this.from.options.color.border,t.opacity)}return c.overrideOpacity(t.color,t.opacity)}},{key:"_circle",value:function(e,t,n,i,r){this.enableShadow(e,t),e.beginPath(),e.arc(n,i,r,0,2*Math.PI,!1),e.stroke(),this.disableShadow(e,t)}},{key:"getDistanceToEdge",value:function(e,t,n,i,r,a,s,u){var l=0;if(this.from!=this.to)l=this._getDistanceToEdge(e,t,n,i,r,a,s);else{var c=this._getCircleData(void 0),d=(0,o.default)(c,3),h=d[0],f=d[1],p=d[2],v=h-r,m=f-a;l=Math.abs(Math.sqrt(v*v+m*m)-p)}return this.labelModule.size.leftr&&this.labelModule.size.topa?0:l}},{key:"_getDistanceToLine",value:function(e,t,n,i,r,o){var a=n-e,s=i-t,u=a*a+s*s,l=((r-e)*a+(o-t)*s)/u;l>1?l=1:l<0&&(l=0);var c=e+l*a,d=t+l*s,h=c-r,f=d-o;return Math.sqrt(h*h+f*f)}},{key:"getArrowData",value:function(e,t,n,i,r,a){var s=void 0,u=void 0,l=void 0,c=void 0,d=void 0,h=void 0,f=void 0,p=a.width;if("from"===t?(l=this.from,c=this.to,d=.1,h=a.fromArrowScale,f=a.fromArrowType):"to"===t?(l=this.to,c=this.from,d=-.1,h=a.toArrowScale,f=a.toArrowType):(l=this.to,c=this.from,h=a.middleArrowScale,f=a.middleArrowType),l!=c)if("middle"!==t)if(this.options.smooth.enabled===!0){u=this.findBorderPosition(l,e,{via:n});var v=this.getPoint(Math.max(0,Math.min(1,u.t+d)),n);s=Math.atan2(u.y-v.y,u.x-v.x)}else s=Math.atan2(l.y-c.y,l.x-c.x),u=this.findBorderPosition(l,e);else s=Math.atan2(l.y-c.y,l.x-c.x),u=this.getPoint(.5,n);else{var m=this._getCircleData(e),g=(0,o.default)(m,3),y=g[0],b=g[1],_=g[2];"from"===t?(u=this.findBorderPosition(this.from,e,{x:y,y:b,low:.25,high:.6,direction:-1}),s=u.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI):"to"===t?(u=this.findBorderPosition(this.from,e,{x:y,y:b,low:.6,high:1,direction:1}),s=u.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI):(u=this._pointOnCircle(y,b,_,.175),s=3.9269908169872414)}var w=15*h+3*p,x=u.x-.9*w*Math.cos(s),T=u.y-.9*w*Math.sin(s),E={x:x,y:T};return{point:u,core:E,angle:s,length:w,type:f}}},{key:"drawArrowHead",value:function(e,t,n,i,r){e.strokeStyle=this.getColor(e,t,n,i),e.fillStyle=e.strokeStyle,e.lineWidth=t.width,r.type&&"circle"===r.type.toLowerCase()?e.circleEndpoint(r.point.x,r.point.y,r.angle,r.length):e.arrowEndpoint(r.point.x,r.point.y,r.angle,r.length),this.enableShadow(e,t),e.fill(),this.disableShadow(e,t)}},{key:"enableShadow",value:function(e,t){t.shadow===!0&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}},{key:"disableShadow",value:function(e,t){t.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}}]),e}();t.default=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(165),o=i(r),a=n(170),s=i(a),u=n(119),l=i(u),c=n(120),d=i(c),h=n(173),f=i(h),p=n(174),v=i(p),m=n(199),g=i(m),y=function(e){function t(e,n,i){(0,l.default)(this,t);var r=(0,f.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e,n,i));return r._boundFunction=function(){r.positionBezierNode()},r.body.emitter.on("_repositionBezierNodes",r._boundFunction),r}return(0,v.default)(t,e),(0,d.default)(t,[{key:"setOptions",value:function(e){var t=!1;this.options.physics!==e.physics&&(t=!0),this.options=e,this.id=this.options.id,this.from=this.body.nodes[this.options.from],this.to=this.body.nodes[this.options.to],this.setupSupportNode(),this.connect(),t===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this.body.nodes[this.options.from],this.to=this.body.nodes[this.options.to],void 0===this.from||void 0===this.to||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this.body.emitter.off("_repositionBezierNodes",this._boundFunction),void 0!==this.via&&(delete this.body.nodes[this.via.id],this.via=void 0,!0)}},{key:"setupSupportNode",value:function(){if(void 0===this.via){var e="edgeId:"+this.id,t=this.body.functions.createNode({id:e,shape:"circle",physics:!0,hidden:!0});this.body.nodes[e]=t,this.via=t,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){void 0!==this.via&&void 0!==this.from&&void 0!==this.to?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):void 0!==this.via&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(e,t,n){e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),void 0===n.x?e.lineTo(this.toPoint.x,this.toPoint.y):e.quadraticCurveTo(n.x,n.y,this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.via,n=e,i=void 0,r=void 0;if(this.from===this.to){var a=this._getCircleData(this.from),s=(0,o.default)(a,3),u=s[0],l=s[1],c=s[2],d=2*Math.PI*(1-n);i=u+c*Math.sin(d),r=l+c-c*(1-Math.cos(d))}else i=Math.pow(1-n,2)*this.fromPoint.x+2*n*(1-n)*t.x+Math.pow(n,2)*this.toPoint.x,r=Math.pow(1-n,2)*this.fromPoint.y+2*n*(1-n)*t.y+Math.pow(n,2)*this.toPoint.y;return{x:i,y:r}}},{key:"_findBorderPosition",value:function(e,t){return this._findBorderPositionBezier(e,t,this.via)}},{key:"_getDistanceToEdge",value:function(e,t,n,i,r,o){return this._getDistanceToBezierEdge(e,t,n,i,r,o,this.via)}}]),t}(g.default);t.default=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(199),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"_line",value:function(e,t,n){e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),void 0===n.x?e.lineTo(this.toPoint.x,this.toPoint.y):e.quadraticCurveTo(n.x,n.y,this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var e=void 0,t=void 0,n=this.options.smooth.roundness,i=this.options.smooth.type,r=Math.abs(this.from.x-this.to.x),o=Math.abs(this.from.y-this.to.y);if("discrete"===i||"diagonalCross"===i)Math.abs(this.from.x-this.to.x)<=Math.abs(this.from.y-this.to.y)?(this.from.y>=this.to.y?this.from.x<=this.to.x?(e=this.from.x+n*o,t=this.from.y-n*o):this.from.x>this.to.x&&(e=this.from.x-n*o,t=this.from.y-n*o):this.from.ythis.to.x&&(e=this.from.x-n*o,t=this.from.y+n*o)),"discrete"===i&&(e=rMath.abs(this.from.y-this.to.y)&&(this.from.y>=this.to.y?this.from.x<=this.to.x?(e=this.from.x+n*r,t=this.from.y-n*r):this.from.x>this.to.x&&(e=this.from.x-n*r,t=this.from.y-n*r):this.from.ythis.to.x&&(e=this.from.x-n*r,t=this.from.y+n*r)),"discrete"===i&&(t=oMath.abs(this.from.y-this.to.y)&&(e=this.from.x=this.to.y?this.from.x<=this.to.x?(e=this.from.x+n*o,t=this.from.y-n*o,e=this.to.xthis.to.x&&(e=this.from.x-n*o,t=this.from.y-n*o,e=this.to.x>e?this.to.x:e):this.from.ythis.to.x&&(e=this.from.x-n*o,t=this.from.y+n*o,e=this.to.x>e?this.to.x:e)):Math.abs(this.from.x-this.to.x)>Math.abs(this.from.y-this.to.y)&&(this.from.y>=this.to.y?this.from.x<=this.to.x?(e=this.from.x+n*r,t=this.from.y-n*r,t=this.to.y>t?this.to.y:t):this.from.x>this.to.x&&(e=this.from.x-n*r,t=this.from.y-n*r,t=this.to.y>t?this.to.y:t):this.from.ythis.to.x&&(e=this.from.x-n*r,t=this.from.y+n*r,t=this.to.y2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(e,t,n.via)}},{key:"_getDistanceToEdge",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(e,t,n,i,r,o,a)}},{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),n=e,i=Math.pow(1-n,2)*this.fromPoint.x+2*n*(1-n)*t.x+Math.pow(n,2)*this.toPoint.x,r=Math.pow(1-n,2)*this.fromPoint.y+2*n*(1-n)*t.y+Math.pow(n,2)*this.toPoint.y;return{x:i,y:r}}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(200),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"_line",value:function(e,t){e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),e.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(e){return{x:(1-e)*this.fromPoint.x+e*this.toPoint.x,y:(1-e)*this.fromPoint.y+e*this.toPoint.y}}},{key:"_findBorderPosition",value:function(e,t){var n=this.to,i=this.from;e.id===this.from.id&&(n=this.from,i=this.to);var r=Math.atan2(n.y-i.y,n.x-i.x),o=n.x-i.x,a=n.y-i.y,s=Math.sqrt(o*o+a*a),u=e.distanceToBorder(t,r),l=(s-u)/s,c={};return c.x=(1-l)*i.x+l*n.x,c.y=(1-l)*i.y+l*n.y,c}},{key:"_getDistanceToEdge",value:function(e,t,n,i,r,o){return this._getDistanceToLine(e,t,n,i,r,o)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(205),d=i(c),h=n(206),f=i(h),p=n(207),v=i(p),m=n(208),g=i(m),y=n(209),b=i(y),_=n(210),w=i(_),x=n(211),T=i(x),E=n(212),C=i(E),O=n(1),S=function(){function e(t){(0,s.default)(this,e),this.body=t,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0},O.extend(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return(0,l.default)(e,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(e){void 0!==e&&(e===!1?(this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation()):(this.physicsEnabled=!0,O.selectiveNotDeepExtend(["stabilization"],this.options,e),O.mergeOptions(this.options,e,"stabilization"),void 0===e.enabled&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation()),this.timestep=this.options.timestep)),this.init()}},{key:"init",value:function(){var e;"forceAtlas2Based"===this.options.solver?(e=this.options.forceAtlas2Based,this.nodesSolver=new T.default(this.body,this.physicsBody,e),this.edgesSolver=new g.default(this.body,this.physicsBody,e),this.gravitySolver=new C.default(this.body,this.physicsBody,e)):"repulsion"===this.options.solver?(e=this.options.repulsion,this.nodesSolver=new f.default(this.body,this.physicsBody,e),this.edgesSolver=new g.default(this.body,this.physicsBody,e),this.gravitySolver=new w.default(this.body,this.physicsBody,e)):"hierarchicalRepulsion"===this.options.solver?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new v.default(this.body,this.physicsBody,e),this.edgesSolver=new b.default(this.body,this.physicsBody,e),this.gravitySolver=new w.default(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new d.default(this.body,this.physicsBody,e),this.edgesSolver=new g.default(this.body,this.physicsBody,e),this.gravitySolver=new w.default(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=this.simulationStep.bind(this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,e===!0&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var e=Date.now();this.physicsTick();var t=Date.now()-e;(t<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&setTimeout(function(){e.body.emitter.emit("stabilized",{iterations:t}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsTick",value:function(){if(this.startedStabilization===!1&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0),this.stabilized===!1){if(this.adaptiveTimestep===!0&&this.adaptiveTimestepEnabled===!0){var e=1.2;this.adaptiveCounter%this.adaptiveInterval===0?(this.timestep=2*this.timestep,this.calculateForces(),this.moveNodes(),this.revert(),this.timestep=.5*this.timestep,this.calculateForces(),this.moveNodes(),this.calculateForces(),this.moveNodes(),this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/eo))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,t=this.options.maxVelocity?this.options.maxVelocity:1e9,n=0,i=0,r=5,o=0;ot?o[e].x>0?t:-t:o[e].x,n.x+=o[e].x*i}else r[e].x=0,o[e].x=0;if(n.options.fixed.y===!1){var u=this.modelOptions.damping*o[e].y,l=(r[e].y-u)/n.options.mass;o[e].y+=l*i,o[e].y=Math.abs(o[e].y)>t?o[e].y>0?t:-t:o[e].y,n.y+=o[e].y*i}else r[e].y=0,o[e].y=0;var c=Math.sqrt(Math.pow(o[e].x,2)+Math.pow(o[e].y,2));return c}},{key:"calculateForces",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve()}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var t in e)e.hasOwnProperty(t)&&e[t].x&&e[t].y&&(this.freezeCache[t]={x:e[t].options.fixed.x,y:e[t].options.fixed.y},e[t].options.fixed.x=!0,e[t].options.fixed.y=!0)}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var t in e)e.hasOwnProperty(t)&&void 0!==this.freezeCache[t]&&(e[t].options.fixed.x=this.freezeCache[t].x,e[t].options.fixed.y=this.freezeCache[t].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;return"number"!=typeof t&&(console.log("The stabilize method needs a numeric amount of iterations. Switching to default: ",this.options.stabilization.iterations),t=this.options.stabilization.iterations),0===this.physicsBody.physicsNodeIndices.length?void(this.ready=!0):(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=t,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,void setTimeout(function(){return e._stabilizationBatch()},0))}},{key:"_stabilizationBatch",value:function(){this.startedStabilization===!1&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0);for(var e=0;this.stabilized===!1&&e0){var e=void 0,t=this.body.nodes,n=this.physicsBody.physicsNodeIndices,i=n.length,r=this._formBarnesHutTree(t,n);this.barnesHutTree=r;for(var o=0;o0&&(this._getForceContribution(r.root.children.NW,e),this._getForceContribution(r.root.children.NE,e),this._getForceContribution(r.root.children.SW,e),this._getForceContribution(r.root.children.SE,e))}}},{key:"_getForceContribution",value:function(e,t){if(e.childrenCount>0){var n=void 0,i=void 0,r=void 0;n=e.centerOfMass.x-t.x,i=e.centerOfMass.y-t.y,r=Math.sqrt(n*n+i*i),r*e.calcSize>this.thetaInversed?this._calculateForces(r,n,i,t,e):4===e.childrenCount?(this._getForceContribution(e.children.NW,t),this._getForceContribution(e.children.NE,t),this._getForceContribution(e.children.SW,t),this._getForceContribution(e.children.SE,t)):e.children.data.id!=t.id&&this._calculateForces(r,n,i,t,e)}}},{key:"_calculateForces",value:function(e,t,n,i,r){0===e&&(e=.1,t=e),this.overlapAvoidanceFactor<1&&i.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*i.shape.radius,e-i.shape.radius));var o=this.options.gravitationalConstant*r.mass*i.options.mass/Math.pow(e,3),a=t*o,s=n*o;this.physicsBody.forces[i.id].x+=a,this.physicsBody.forces[i.id].y+=s}},{key:"_formBarnesHutTree",value:function(e,t){for(var n=void 0,i=t.length,r=e[t[0]].x,o=e[t[0]].y,a=e[t[0]].x,s=e[t[0]].y,u=1;u0&&(la&&(a=l),cs&&(s=c))}var d=Math.abs(a-r)-Math.abs(s-o);d>0?(o-=.5*d,s+=.5*d):(r+=.5*d,a-=.5*d);var h=1e-5,f=Math.max(h,Math.abs(a-r)),p=.5*f,v=.5*(r+a),m=.5*(o+s),g={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:v-p,maxX:v+p,minY:m-p,maxY:m+p},size:f,calcSize:1/f,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(g.root);for(var y=0;y0&&this._placeInTree(g.root,n);return g}},{key:"_updateBranchMass",value:function(e,t){var n=e.mass+t.options.mass,i=1/n;e.centerOfMass.x=e.centerOfMass.x*e.mass+t.x*t.options.mass,e.centerOfMass.x*=i,e.centerOfMass.y=e.centerOfMass.y*e.mass+t.y*t.options.mass,e.centerOfMass.y*=i,e.mass=n;var r=Math.max(Math.max(t.height,t.radius),t.width);e.maxWidth=e.maxWidtht.x?e.children.NW.range.maxY>t.y?this._placeInRegion(e,t,"NW"):this._placeInRegion(e,t,"SW"):e.children.NW.range.maxY>t.y?this._placeInRegion(e,t,"NE"):this._placeInRegion(e,t,"SE")}},{key:"_placeInRegion",value:function(e,t,n){switch(e.children[n].childrenCount){case 0:e.children[n].children.data=t,e.children[n].childrenCount=1,this._updateBranchMass(e.children[n],t);break;case 1:e.children[n].children.data.x===t.x&&e.children[n].children.data.y===t.y?(t.x+=this.seededRandom(),t.y+=this.seededRandom()):(this._splitBranch(e.children[n]),this._placeInTree(e.children[n],t));break;case 4:this._placeInTree(e.children[n],t)}}},{key:"_splitBranch",value:function(e){var t=null;1===e.childrenCount&&(t=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),null!=t&&this._placeInTree(e,t)}},{key:"_insertRegion",value:function(e,t){var n=void 0,i=void 0,r=void 0,o=void 0,a=.5*e.size;switch(t){case"NW":n=e.range.minX,i=e.range.minX+a,r=e.range.minY,o=e.range.minY+a;break;case"NE":n=e.range.minX+a,i=e.range.maxX,r=e.range.minY,o=e.range.minY+a;break;case"SW":n=e.range.minX,i=e.range.minX+a,r=e.range.minY+a,o=e.range.maxY;break;case"SE":n=e.range.minX+a,i=e.range.maxX,r=e.range.minY+a,o=e.range.maxY}e.children[t]={centerOfMass:{x:0,y:0},mass:0,range:{minX:n,maxX:i,minY:r,maxY:o},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,t){void 0!==this.barnesHutTree&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,t))}},{key:"_drawBranch",value:function(e,t,n){void 0===n&&(n="#FF0000"),4===e.childrenCount&&(this._drawBranch(e.children.NW,t),this._drawBranch(e.children.NE,t),this._drawBranch(e.children.SE,t),this._drawBranch(e.children.SW,t)),t.strokeStyle=n,t.beginPath(),t.moveTo(e.range.minX,e.range.minY),t.lineTo(e.range.maxX,e.range.minY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.minY),t.lineTo(e.range.maxX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.maxY),t.lineTo(e.range.minX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.minX,e.range.maxY),t.lineTo(e.range.minX,e.range.minY),t.stroke()}}]),e}();t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=function(){function e(t,n,i){(0,o.default)(this,e),this.body=t,this.physicsBody=n,this.setOptions(i)}return(0,s.default)(e,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,t,n,i,r,o,a,s,u=this.body.nodes,l=this.physicsBody.physicsNodeIndices,c=this.physicsBody.forces,d=this.options.nodeDistance,h=-2/3/d,f=4/3,p=0;p0){var o=r.edges.length+1,a=this.options.centralGravity*o*r.options.mass;i[r.id].x=t*a,i[r.id].y=n*a}}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=i(r),a=n(62),s=i(a),u=n(119),l=i(u),c=n(120),d=i(c),h=n(214),f=i(h),p=n(215),v=i(p),m=n(1),g=function(){function e(t){var n=this;(0,l.default)(this,e),this.body=t,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},m.extend(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){n.clusteredNodes={},n.clusteredEdges={}})}return(0,d.default)(e,[{key:"clusterByHubsize",value:function(e,t){void 0===e?e=this._getHubSize():"object"===("undefined"==typeof e?"undefined":(0,s.default)(e))&&(t=this._checkOptions(e),e=this._getHubSize());for(var n=[],i=0;i=e&&n.push(r.id)}for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);for(var n={},i={},r=0;r2&&void 0!==arguments[2])||arguments[2];t=this._checkOptions(t);for(var i=[],r={},a=void 0,s=void 0,u=void 0,l=void 0,c=void 0,d=0;d0&&(0,o.default)(p).length>0&&m===!0&&i.push({nodes:h,edges:p})}}}for(var _=0;_1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,e,t)}},{key:"clusterBridges",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,e,t)}},{key:"clusterByConnection",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===e)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[e])throw new Error("The nodeId given to clusterByConnection does not exist!");var i=this.body.nodes[e];t=this._checkOptions(t,i),void 0===t.clusterNodeProperties.x&&(t.clusterNodeProperties.x=i.x),void 0===t.clusterNodeProperties.y&&(t.clusterNodeProperties.y=i.y),void 0===t.clusterNodeProperties.fixed&&(t.clusterNodeProperties.fixed={},t.clusterNodeProperties.fixed.x=i.options.fixed.x,t.clusterNodeProperties.fixed.y=i.options.fixed.y);var r={},a={},s=i.id,u=f.default.cloneOptions(i);r[s]=i;for(var l=0;l-1&&(a[g.id]=g)}this._cluster(r,a,t,n)}},{key:"_createClusterEdges",value:function(e,t,n,i){for(var r=void 0,a=void 0,s=void 0,u=void 0,l=void 0,c=void 0,d=(0,o.default)(e),h=[],p=0;p0&&void 0!==arguments[0]?arguments[0]:{};return void 0===e.clusterEdgeProperties&&(e.clusterEdgeProperties={}),void 0===e.clusterNodeProperties&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(0!=(0,o.default)(e).length&&(1!=(0,o.default)(e).length||1==n.clusterNodeProperties.allowSingleNodeCluster)){for(var r in e)if(e.hasOwnProperty(r)&&void 0!==this.clusteredNodes[r])return;var a=m.deepExtend({},n.clusterNodeProperties);if(void 0!==n.processProperties){var s=[];for(var u in e)if(e.hasOwnProperty(u)){var l=f.default.cloneOptions(e[u]);s.push(l)}var c=[];for(var d in t)if(t.hasOwnProperty(d)&&"clusterEdge:"!==d.substr(0,12)){var h=f.default.cloneOptions(t[d],"edge");c.push(h)}if(a=n.processProperties(a,s,c),!a)throw new Error("The processProperties function does not return properties!")}void 0===a.id&&(a.id="cluster:"+m.randomUUID());var p=a.id;void 0===a.label&&(a.label="cluster");var g=void 0;void 0===a.x&&(g=this._getClusterPosition(e),a.x=g.x),void 0===a.y&&(void 0===g&&(g=this._getClusterPosition(e)),a.y=g.y),a.id=p;var y=this.body.functions.createNode(a,v.default);y.isCluster=!0,y.containedNodes=e,y.containedEdges=t,y.clusterEdgeProperties=n.clusterEdgeProperties,this.body.nodes[a.id]=y,this._createClusterEdges(e,t,a,n.clusterEdgeProperties);for(var b in t)if(t.hasOwnProperty(b)&&void 0!==this.body.edges[b]){ -var _=this.body.edges[b];this._backupEdgeOptions(_),_.setOptions({physics:!1,hidden:!0})}for(var w in e)e.hasOwnProperty(w)&&(this.clusteredNodes[w]={clusterId:a.id,node:this.body.nodes[w]},this.body.nodes[w].setOptions({hidden:!0,physics:!1}));a.id=void 0,i===!0&&this.body.emitter.emit("_dataChanged")}}},{key:"_backupEdgeOptions",value:function(e){void 0===this.clusteredEdges[e.id]&&(this.clusteredEdges[e.id]={physics:e.options.physics,hidden:e.options.hidden})}},{key:"_restoreEdge",value:function(e){var t=this.clusteredEdges[e.id];void 0!==t&&(e.setOptions({physics:t.physics,hidden:t.hidden}),delete this.clusteredEdges[e.id])}},{key:"isCluster",value:function(e){return void 0!==this.body.nodes[e]?this.body.nodes[e].isCluster===!0:(console.log("Node does not exist."),!1)}},{key:"_getClusterPosition",value:function(e){for(var t=(0,o.default)(e),n=e[t[0]].x,i=e[t[0]].x,r=e[t[0]].y,a=e[t[0]].y,s=void 0,u=1;ui?s.x:i,r=s.ya?s.y:a;return{x:.5*(n+i),y:.5*(r+a)}}},{key:"openCluster",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===e)throw new Error("No clusterNodeId supplied to openCluster.");if(void 0===this.body.nodes[e])throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(void 0===this.body.nodes[e].containedNodes)return void console.log("The node:"+e+" is not a cluster.");var i=this.body.nodes[e],r=i.containedNodes,o=i.containedEdges;if(void 0!==t&&void 0!==t.releaseFunction&&"function"==typeof t.releaseFunction){var a={},s={x:i.x,y:i.y};for(var u in r)if(r.hasOwnProperty(u)){var l=this.body.nodes[u];a[u]={x:l.x,y:l.y}}var c=t.releaseFunction(s,a);for(var d in r)if(r.hasOwnProperty(d)){var h=this.body.nodes[d];void 0!==c[d]&&(h.x=void 0===c[d].x?i.x:c[d].x,h.y=void 0===c[d].y?i.y:c[d].y)}}else for(var p in r)if(r.hasOwnProperty(p)){var v=this.body.nodes[p];v=r[p],v.options.fixed.x===!1&&(v.x=i.x),v.options.fixed.y===!1&&(v.y=i.y)}for(var g in r)if(r.hasOwnProperty(g)){var y=this.body.nodes[g];y.vx=i.vx,y.vy=i.vy,y.setOptions({hidden:!1,physics:!0}),delete this.clusteredNodes[g]}for(var b=[],_=0;_i&&(i=o.edges.length),e+=o.edges.length,t+=Math.pow(o.edges.length,2),n+=1}e/=n,t/=n;var a=t-Math.pow(e,2),s=Math.sqrt(a),u=Math.floor(e+2*s);return u>i&&(u=i),u}}]),e}();t.default=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(1),l=function(){function e(){(0,o.default)(this,e)}return(0,s.default)(e,null,[{key:"getRange",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=1e9,r=-1e9,o=1e9,a=-1e9;if(n.length>0)for(var s=0;st.shape.boundingBox.left&&(o=t.shape.boundingBox.left),at.shape.boundingBox.top&&(i=t.shape.boundingBox.top),r1&&void 0!==arguments[1]?arguments[1]:[],i=1e9,r=-1e9,o=1e9,a=-1e9;if(n.length>0)for(var s=0;st.x&&(o=t.x),at.y&&(i=t.y),r0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(void 0!==e){var t=["hideEdgesOnDrag","hideNodesOnDrag"];u.selectiveDeepExtend(t,this.options,e)}}},{key:"_startRendering",value:function(){this.renderingActive===!0&&void 0===this.renderTimer&&(this.requiresTimeout===!0?this.renderTimer=window.setTimeout(this._renderStep.bind(this),this.simulationInterval):this.renderTimer=window.requestAnimationFrame(this._renderStep.bind(this)))}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this.requiresTimeout===!0?window.setTimeout(function(){e._redraw(!1)},0):window.requestAnimationFrame(function(){e._redraw(!1)}))}},{key:"_redraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var t=this.canvas.frame.canvas.getContext("2d");0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.canvas.frame.canvas.clientWidth,i=this.canvas.frame.canvas.clientHeight;if(t.clearRect(0,0,n,i),0===this.canvas.frame.clientWidth)return;t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale),t.beginPath(),this.body.emitter.emit("beforeDrawing",t),t.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&this._drawEdges(t),(this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1)&&this._drawNodes(t,e),t.beginPath(),this.body.emitter.emit("afterDrawing",t),t.closePath(),t.restore(),e===!0&&t.clearRect(0,0,n,i)}}},{key:"_resizeNodes",value:function(){var e=this.canvas.frame.canvas.getContext("2d");void 0===this.pixelRatio&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);var t=this.body.nodes,n=void 0;for(var i in t)t.hasOwnProperty(i)&&(n=t[i],n.resize(e),n.updateBoundingBox(e,n.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.nodes,i=this.body.nodeIndices,r=void 0,o=[],a=20,s=this.canvas.DOMtoCanvas({x:-a,y:-a}),u=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+a,y:this.canvas.frame.canvas.clientHeight+a}),l={top:s.y,left:s.x,bottom:u.y,right:u.x},c=0;c0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,t=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,n=this.cameraState.scale;1!=e&&1!=t?n=.5*this.cameraState.scale*(e+t):1!=e?n=this.cameraState.scale*e:1!=t&&(n=this.cameraState.scale*t),this.body.view.scale=n;var i=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),r={x:i.x-this.cameraState.position.x,y:i.y-this.cameraState.position.y};this.body.view.translation.x+=r.x*this.body.view.scale,this.body.view.translation.y+=r.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if("number"==typeof e)return e+"px";if("string"==typeof e){if(e.indexOf("%")!==-1||e.indexOf("px")!==-1)return e;if(e.indexOf("%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=900,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext){var e=this.frame.canvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1),this.frame.canvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var e=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new u(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:u.DIRECTION_ALL}),l.onTouch(this.hammer,function(t){e.body.eventListeners.onTouch(t)}),this.hammer.on("tap",function(t){e.body.eventListeners.onTap(t)}),this.hammer.on("doubletap",function(t){e.body.eventListeners.onDoubleTap(t)}),this.hammer.on("press",function(t){e.body.eventListeners.onHold(t)}),this.hammer.on("panstart",function(t){e.body.eventListeners.onDragStart(t)}),this.hammer.on("panmove",function(t){e.body.eventListeners.onDrag(t)}),this.hammer.on("panend",function(t){e.body.eventListeners.onDragEnd(t)}),this.hammer.on("pinch",function(t){e.body.eventListeners.onPinch(t)}),this.frame.canvas.addEventListener("mousewheel",function(t){e.body.eventListeners.onMouseWheel(t)}),this.frame.canvas.addEventListener("DOMMouseScroll",function(t){e.body.eventListeners.onMouseWheel(t)}),this.frame.canvas.addEventListener("mousemove",function(t){e.body.eventListeners.onMouseMove(t)}),this.frame.canvas.addEventListener("contextmenu",function(t){e.body.eventListeners.onContext(t)}),this.hammerFrame=new u(this.frame),l.onRelease(this.hammerFrame,function(t){e.body.eventListeners.onRelease(t)})}},{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;e=this._prepareValue(e),t=this._prepareValue(t);var n=!1,i=this.frame.canvas.width,r=this.frame.canvas.height,o=this.frame.canvas.getContext("2d"),a=this.pixelRatio;return this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1),e!=this.options.width||t!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=t?(this._getCameraState(a),this.frame.style.width=e,this.frame.style.height=t,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=t,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},n=!0):(this.frame.canvas.width==Math.round(this.frame.canvas.clientWidth*this.pixelRatio)&&this.frame.canvas.height==Math.round(this.frame.canvas.clientHeight*this.pixelRatio)||this._getCameraState(a),this.frame.canvas.width!=Math.round(this.frame.canvas.clientWidth*this.pixelRatio)&&(this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),n=!0),this.frame.canvas.height!=Math.round(this.frame.canvas.clientHeight*this.pixelRatio)&&(this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),n=!0)),n===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(i/this.pixelRatio),oldHeight:Math.round(r/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,n}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),e}();t.default=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(214),l=i(u),c=n(1),d=function(){function e(t,n){var i=this;(0,o.default)(this,e),this.body=t,this.canvas=n,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",this.fit.bind(this)),this.body.emitter.on("animationFinished",function(){i.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",this.releaseNode.bind(this))}return(0,s.default)(e,[{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e}},{key:"fit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{nodes:[]},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=void 0,i=void 0;if(void 0!==e.nodes&&0!==e.nodes.length||(e.nodes=this.body.nodeIndices),t===!0){var r=0;for(var o in this.body.nodes)if(this.body.nodes.hasOwnProperty(o)){var a=this.body.nodes[o];a.predefinedPosition===!0&&(r+=1)}if(r>.5*this.body.nodeIndices.length)return void this.fit(e,!1);n=l.default.getRange(this.body.nodes,e.nodes);var s=this.body.nodeIndices.length;i=12.662/(s+7.4147)+.0964822;var u=Math.min(this.canvas.frame.canvas.clientWidth/600,this.canvas.frame.canvas.clientHeight/600);i*=u}else{this.body.emitter.emit("_resizeNodes"),n=l.default.getRange(this.body.nodes,e.nodes);var c=1.1*Math.abs(n.maxX-n.minX),d=1.1*Math.abs(n.maxY-n.minY),h=this.canvas.frame.canvas.clientWidth/c,f=this.canvas.frame.canvas.clientHeight/d;i=h<=f?h:f}i>1?i=1:0===i&&(i=1);var p=l.default.findCenter(n),v={position:p,scale:i,animation:e.animation};this.moveTo(v)}},{key:"focus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[e]){var n={x:this.body.nodes[e].x,y:this.body.nodes[e].y};t.position=n,t.lockedOnNode=e,this.moveTo(t)}else console.log("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){return void 0===e?void(e={}):(void 0===e.offset&&(e.offset={x:0,y:0}),void 0===e.offset.x&&(e.offset.x=0),void 0===e.offset.y&&(e.offset.y=0),void 0===e.scale&&(e.scale=this.body.view.scale),void 0===e.position&&(e.position=this.getViewPosition()),void 0===e.animation&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),void 0===e.animation.duration&&(e.animation.duration=1e3),void 0===e.animation.easingFunction&&(e.animation.easingFunction="easeInOutQuad"),void this.animateView(e))}},{key:"animateView",value:function(e){if(void 0!==e){this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;var t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),n={x:t.x-e.position.x,y:t.y-e.position.y};this.targetTranslation={x:this.sourceTranslation.x+n.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+n.y*this.targetScale+e.offset.y},0===e.animation.duration?void 0!=this.lockedOnNodeId?(this.viewFunction=this._lockedRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction)):(this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw")):(this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=this._transitionRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),n={x:t.x-e.x,y:t.y-e.y},i=this.body.view.translation,r={x:i.x+n.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:i.y+n.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=r}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var t=c.easingFunctions[this.animationEasingFunction](this.easingTime);this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*t,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*t,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*t},this.easingTime>=1&&(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,void 0!=this.lockedOnNodeId&&(this.viewFunction=this._lockedRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction)),this.body.emitter.emit("animationFinished"))}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),e}();t.default=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(220),l=i(u),c=n(132),d=i(c),h=n(1),f=function(){function e(t,n,i){(0,o.default)(this,e),this.body=t,this.canvas=n,this.selectionHandler=i,this.navigationHandler=new l.default(t,n),this.body.eventListeners.onTap=this.onTap.bind(this),this.body.eventListeners.onTouch=this.onTouch.bind(this),this.body.eventListeners.onDoubleTap=this.onDoubleTap.bind(this),this.body.eventListeners.onHold=this.onHold.bind(this),this.body.eventListeners.onDragStart=this.onDragStart.bind(this),this.body.eventListeners.onDrag=this.onDrag.bind(this),this.body.eventListeners.onDragEnd=this.onDragEnd.bind(this),this.body.eventListeners.onMouseWheel=this.onMouseWheel.bind(this),this.body.eventListeners.onPinch=this.onPinch.bind(this),this.body.eventListeners.onMouseMove=this.onMouseMove.bind(this),this.body.eventListeners.onRelease=this.onRelease.bind(this),this.body.eventListeners.onContext=this.onContext.bind(this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=this.getPointer.bind(this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0},h.extend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,s.default)(e,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("destroy",function(){clearTimeout(e.popupTimer),delete e.body.functions.getPointer})}},{key:"setOptions",value:function(e){if(void 0!==e){var t=["hideEdgesOnDrag","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"];h.selectiveNotDeepExtend(t,this.options,e),h.mergeOptions(this.options,e,"keyboard"),e.tooltip&&(h.extend(this.options.tooltip,e.tooltip),e.tooltip.color&&(this.options.tooltip.color=h.parseColor(e.tooltip.color)))}this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(e){return{x:e.x-h.getAbsoluteLeft(this.canvas.frame.canvas),y:e.y-h.getAbsoluteTop(this.canvas.frame.canvas)}}},{key:"onTouch",value:function(e){(new Date).valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(e){var t=this.getPointer(e.center),n=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(t,e,n),this.selectionHandler._generateClickEvent("click",e,t)}},{key:"onDoubleTap",value:function(e){var t=this.getPointer(e.center);this.selectionHandler._generateClickEvent("doubleClick",e,t)}},{key:"onHold",value:function(e){var t=this.getPointer(e.center),n=this.selectionHandler.options.multiselect;this.checkSelectionChanges(t,e,n),this.selectionHandler._generateClickEvent("click",e,t),this.selectionHandler._generateClickEvent("hold",e,t)}},{key:"onRelease",value:function(e){if((new Date).valueOf()-this.touchTime>10){var t=this.getPointer(e.center);this.selectionHandler._generateClickEvent("release",e,t),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(e){var t=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler._generateClickEvent("oncontext",e,t)}},{key:"checkSelectionChanges",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.selectionHandler._getSelectedEdgeCount(),r=this.selectionHandler._getSelectedNodeCount(),o=this.selectionHandler.getSelection(),a=void 0;a=n===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e);var s=this.selectionHandler._getSelectedEdgeCount(),u=this.selectionHandler._getSelectedNodeCount(),l=this.selectionHandler.getSelection(),c=this._determineIfDifferent(o,l),d=c.nodesChanged,h=c.edgesChanged,f=!1;u-r>0?(this.selectionHandler._generateClickEvent("selectNode",t,e),a=!0,f=!0):d===!0&&u>0?(this.selectionHandler._generateClickEvent("deselectNode",t,e,o),this.selectionHandler._generateClickEvent("selectNode",t,e),f=!0,a=!0):u-r<0&&(this.selectionHandler._generateClickEvent("deselectNode",t,e,o),a=!0),s-i>0&&f===!1?(this.selectionHandler._generateClickEvent("selectEdge",t,e),a=!0):s>0&&h===!0?(this.selectionHandler._generateClickEvent("deselectEdge",t,e,o),this.selectionHandler._generateClickEvent("selectEdge",t,e),a=!0):s-i<0&&(this.selectionHandler._generateClickEvent("deselectEdge",t,e,o),a=!0),a===!0&&this.selectionHandler._generateClickEvent("select",t,e)}},{key:"_determineIfDifferent",value:function(e,t){for(var n=!1,i=!1,r=0;r10&&(e=10);var i=void 0;void 0!==this.drag&&this.drag.dragging===!0&&(i=this.canvas.DOMtoCanvas(this.drag.pointer));var r=this.body.view.translation,o=e/n,a=(1-o)*t.x+r.x*o,s=(1-o)*t.y+r.y*o;if(this.body.view.scale=e,this.body.view.translation={x:a,y:s},void 0!=i){var u=this.canvas.canvasToDOM(i);this.drag.pointer.x=u.x,this.drag.pointer.y=u.y}this.body.emitter.emit("_requestRedraw"),n0&&(this.popupObj=u[c[c.length-1]],o=!0)}if(void 0===this.popupObj&&o===!1){for(var f=this.body.edgeIndices,p=this.body.edges,v=void 0,m=[],g=0;g0&&(this.popupObj=p[m[m.length-1]],a="edge")}void 0!==this.popupObj?this.popupObj.id!==r&&(void 0===this.popup&&(this.popup=new d.default(this.canvas.frame)),this.popup.popupTargetType=a,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(e){var t=this.selectionHandler._pointerToPositionObject(e),n=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&(n=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(t),n===!0)){var i=this.selectionHandler.getNodeAt(e);n=void 0!==i&&i.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(e)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(n=this.body.edges[this.popup.popupTargetId].isOverlappingWith(t));n===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),e}();t.default=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=(n(1),n(112)),l=n(125),c=n(115),d=function(){function e(t,n){var i=this;(0,o.default)(this,e),this.body=t,this.canvas=n,this.iconsCreated=!1,this.navigationHammers=[],this.boundFunctions={},this.touchTime=0,this.activated=!1,this.body.emitter.on("activate",function(){i.activated=!0,i.configureKeyboardBindings()}),this.body.emitter.on("deactivate",function(){i.activated=!1,i.configureKeyboardBindings()}),this.body.emitter.on("destroy",function(){void 0!==i.keycharm&&i.keycharm.destroy()}),this.options={}}return(0,s.default)(e,[{key:"setOptions",value:function(e){void 0!==e&&(this.options=e,this.create())}},{key:"create",value:function(){this.options.navigationButtons===!0?this.iconsCreated===!1&&this.loadNavigationElements():this.iconsCreated===!0&&this.cleanNavigation(),this.configureKeyboardBindings()}},{key:"cleanNavigation",value:function(){if(0!=this.navigationHammers.length){for(var e=0;e700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var e in this.boundFunctions)this.boundFunctions.hasOwnProperty(e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,t=this.body.view.scale*(1+this.options.keyboard.speed.zoom),n=this.body.view.translation,i=t/e,r=(1-i)*this.canvas.canvasViewCenter.x+n.x*i,o=(1-i)*this.canvas.canvasViewCenter.y+n.y*i;this.body.view.scale=t,this.body.view.translation={x:r,y:o},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,t=this.body.view.scale/(1+this.options.keyboard.speed.zoom),n=this.body.view.translation,i=t/e,r=(1-i)*this.canvas.canvasViewCenter.x+n.x*i,o=(1-i)*this.canvas.canvasViewCenter.y+n.y*i;this.body.view.scale=t,this.body.view.translation={x:r,y:o},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;void 0!==this.keycharm&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=c({container:window,preventDefault:!0}):this.keycharm=c({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0&&(this.keycharm.bind("up",function(){e.bindToRedraw("_moveUp")},"keydown"),this.keycharm.bind("down",function(){e.bindToRedraw("_moveDown")},"keydown"),this.keycharm.bind("left",function(){e.bindToRedraw("_moveLeft")},"keydown"),this.keycharm.bind("right",function(){e.bindToRedraw("_moveRight")},"keydown"),this.keycharm.bind("=",function(){e.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("-",function(){e.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("[",function(){e.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("]",function(){e.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),this.keycharm.bind("down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),this.keycharm.bind("left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),this.keycharm.bind("right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),this.keycharm.bind("=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")))}}]),e}();t.default=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(163),l=i(u),c=n(196),d=i(c),h=n(1),f=function(){function e(t,n){var i=this;(0,o.default)(this,e),this.body=t,this.canvas=n,this.selectionObj={nodes:[],edges:[]},this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},h.extend(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",function(){i.updateSelection()})}return(0,s.default)(e,[{key:"setOptions",value:function(e){if(void 0!==e){var t=["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"];h.selectiveDeepExtend(t,this.options,e)}}},{key:"selectOnPoint",value:function(e){var t=!1;if(this.options.selectable===!0){var n=this.getNodeAt(e)||this.getEdgeAt(e);this.unselectAll(),void 0!==n&&(t=this.selectObject(n)),this.body.emitter.emit("_requestRedraw")}return t}},{key:"selectAdditionalOnPoint",value:function(e){var t=!1;if(this.options.selectable===!0){var n=this.getNodeAt(e)||this.getEdgeAt(e);void 0!==n&&(t=!0,n.isSelected()===!0?this.deselectObject(n):this.selectObject(n),this.body.emitter.emit("_requestRedraw"))}return t}},{key:"_generateClickEvent",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=void 0;o=r===!0?{nodes:[],edges:[]}:this.getSelection(),o.pointer={DOM:{x:n.x,y:n.y},canvas:this.canvas.DOMtoCanvas(n)},o.event=t,void 0!==i&&(o.previousSelection=i),this.body.emitter.emit(e,o)}},{key:"selectObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;return void 0!==e&&(e instanceof l.default&&t===!0&&this._selectConnectedEdges(e),e.select(),this._addToSelection(e),!0)}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var t=[],n=this.body.nodes,i=0;i1&&void 0!==arguments[1])||arguments[1],n=this._pointerToPositionObject(e),i=this._getAllNodesOverlappingWith(n);return i.length>0?t===!0?this.body.nodes[i[i.length-1]]:i[i.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(e,t){for(var n=this.body.edges,i=0;i1&&void 0!==arguments[1])||arguments[1],n=this.canvas.DOMtoCanvas(e),i=10,r=null,o=this.body.edges,a=0;a1)return!0;return!1}},{key:"_selectConnectedEdges",value:function(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},n=void 0,i=void 0;if(!e||!e.nodes&&!e.edges)throw"Selection must be an object with nodes and/or edges properties";if((t.unselectAll||void 0===t.unselectAll)&&this.unselectAll(),e.nodes)for(n=0;n1&&void 0!==arguments[1])||arguments[1];if(!e||void 0===e.length)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:t})}},{key:"selectEdges",value:function(e){if(!e||void 0===e.length)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(e)&&(this.body.nodes.hasOwnProperty(e)||delete this.selectionObj.nodes[e]);for(var t in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(t)&&(this.body.edges.hasOwnProperty(t)||delete this.selectionObj.edges[t])}}]),e}();t.default=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=i(r),a=n(165),s=i(a),u=n(62),l=i(u),c=n(119),d=i(c),h=n(120),f=i(h),p=n(214),v=i(p),m=n(1),g=function(){function e(t){(0,d.default)(this,e),this.body=t,this.initialRandomSeed=Math.round(1e6*Math.random()),this.randomSeed=this.initialRandomSeed,this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},m.extend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,f.default)(e,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("_dataChanged",function(){e.setupHierarchicalLayout()}),this.body.emitter.on("_dataLoaded",function(){e.layoutNetwork()}),this.body.emitter.on("_resetHierarchicalLayout",function(){e.setupHierarchicalLayout()})}},{key:"setOptions",value:function(e,t){if(void 0!==e){var n=this.options.hierarchical.enabled;if(m.selectiveDeepExtend(["randomSeed","improvedLayout"],this.options,e),m.mergeOptions(this.options,e,"hierarchical"),void 0!==e.randomSeed&&(this.initialRandomSeed=e.randomSeed),this.options.hierarchical.enabled===!0)return n===!0&&this.body.emitter.emit("refresh",!0),"RL"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction?this.options.hierarchical.levelSeparation>0&&(this.options.hierarchical.levelSeparation*=-1):this.options.hierarchical.levelSeparation<0&&(this.options.hierarchical.levelSeparation*=-1),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(t);if(n===!0)return this.body.emitter.emit("refresh"),m.deepExtend(t,this.optionsBackup)}return t}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){void 0===e.physics||e.physics===!0?(e.physics={enabled:void 0===this.optionsBackup.physics.enabled||this.optionsBackup.physics.enabled,solver:"hierarchicalRepulsion"},this.optionsBackup.physics.enabled=void 0===this.optionsBackup.physics.enabled||this.optionsBackup.physics.enabled,this.optionsBackup.physics.solver=this.optionsBackup.physics.solver||"barnesHut"):"object"===(0,l.default)(e.physics)?(this.optionsBackup.physics.enabled=void 0===e.physics.enabled||e.physics.enabled,this.optionsBackup.physics.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(this.optionsBackup.physics.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var t="horizontal";"RL"!==this.options.hierarchical.direction&&"LR"!==this.options.hierarchical.direction||(t="vertical"),void 0===e.edges?(this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1}):void 0===e.edges.smooth?(this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1):"boolean"==typeof e.edges.smooth?(this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:t}):(void 0!==e.edges.smooth.type&&"dynamic"!==e.edges.smooth.type&&(t=e.edges.smooth.type),this.optionsBackup.edges={smooth:void 0===e.edges.smooth.enabled||e.edges.smooth.enabled,type:void 0===e.edges.smooth.type?"dynamic":e.edges.smooth.type,roundness:void 0===e.edges.smooth.roundness?.5:e.edges.smooth.roundness,forceDirection:void 0!==e.edges.smooth.forceDirection&&e.edges.smooth.forceDirection},e.edges.smooth={enabled:void 0===e.edges.smooth.enabled||e.edges.smooth.enabled,type:t,roundness:void 0===e.edges.smooth.roundness?.5:e.edges.smooth.roundness,forceDirection:void 0!==e.edges.smooth.forceDirection&&e.edges.smooth.forceDirection}),this.body.emitter.emit("_forceDisableDynamicCurves",t)}return e}},{key:"seededRandom",value:function(){var e=1e4*Math.sin(this.randomSeed++);return e-Math.floor(e)}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this.randomSeed=this.initialRandomSeed;for(var t=0;to){for(var a=this.body.nodeIndices.length;this.body.nodeIndices.length>o;){r+=1;var s=this.body.nodeIndices.length;r%3===0?this.body.modules.clustering.clusterBridges():this.body.modules.clustering.clusterOutliers();var u=this.body.nodeIndices.length;if(s==u&&r%3!==0||r>i)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*a)})}this.body.modules.kamadaKawai.solve(this.body.nodeIndices,this.body.edgeIndices,!0),this._shiftToCenter();for(var l=70,c=0;c0){var e=void 0,t=void 0,n=!1,i=!0,r=!1;this.hierarchicalLevels={},this.lastNodeOnLevel={},this.hierarchicalChildrenReference={},this.hierarchicalParentReference={},this.hierarchicalTrees={},this.treeIndex=-1,this.distributionOrdering={},this.distributionIndex={},this.distributionOrderingPresence={};for(t in this.body.nodes)this.body.nodes.hasOwnProperty(t)&&(e=this.body.nodes[t],void 0===e.options.x&&void 0===e.options.y&&(i=!1),void 0!==e.options.level?(n=!0,this.hierarchicalLevels[t]=e.options.level):r=!0);if(r===!0&&n===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");r===!0&&("hubsize"===this.options.hierarchical.sortMethod?this._determineLevelsByHubsize():"directed"===this.options.hierarchical.sortMethod?this._determineLevelsDirected():"custom"===this.options.hierarchical.sortMethod&&this._determineLevelsCustomCallback());for(var o in this.body.nodes)this.body.nodes.hasOwnProperty(o)&&void 0===this.hierarchicalLevels[o]&&(this.hierarchicalLevels[o]=0);var a=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(a),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,t=!1,n={},i=function(){for(var t=u(),n=0,i=0;i0)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:1e9,i=1e9,r=1e9,o=1e9,a=-1e9;for(var u in t)if(t.hasOwnProperty(u)){var l=e.body.nodes[u],c=e.hierarchicalLevels[l.id],d=e._getPositionForHierarchy(l),h=e._getSpaceAroundNode(l,t),f=(0,s.default)(h,2),p=f[0],v=f[1];i=Math.min(p,i),r=Math.min(v,r),c<=n&&(o=Math.min(d,o),a=Math.max(d,a))}return[o,a,i,r]},d=function(t){var n={},i=function t(i){if(void 0!==n[i])return n[i];var r=e.hierarchicalLevels[i];if(e.hierarchicalChildrenReference[i]){var o=e.hierarchicalChildrenReference[i];if(o.length>0)for(var a=0;a1)for(var s=0;s2&&void 0!==arguments[2]&&arguments[2],o=e._getPositionForHierarchy(n),a=e._getPositionForHierarchy(i),u=Math.abs(a-o);if(u>e.options.hierarchical.nodeSpacing){var d={},f={};l(n,d),l(i,f);var p=h(n,i),v=c(d,p),m=(0,s.default)(v,4),g=(m[0],m[1]),y=(m[2],m[3],c(f,p)),b=(0,s.default)(y,4),_=b[0],w=(b[1],b[2]),x=(b[3],Math.abs(g-_));if(x>e.options.hierarchical.nodeSpacing){var T=g-_+e.options.hierarchical.nodeSpacing;T<-w+e.options.hierarchical.nodeSpacing&&(T=-w+e.options.hierarchical.nodeSpacing),T<0&&(e._shiftBlock(i.id,T),t=!0,r===!0&&e._centerParent(i))}}},m=function(i,r){for(var o=r.id,a=r.edges,u=e.hierarchicalLevels[r.id],d=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,h={},f=[],p=0;p0?v=Math.min(p,f-e.options.hierarchical.nodeSpacing):p<0&&(v=-Math.min(-p,h-e.options.hierarchical.nodeSpacing)), -0!=v&&(e._shiftBlock(r.id,v),t=!0)},w=function(n){var i=e._getPositionForHierarchy(r),o=e._getSpaceAroundNode(r),a=(0,s.default)(o,2),u=a[0],l=a[1],c=n-i,d=i;c>0?d=Math.min(i+(l-e.options.hierarchical.nodeSpacing),n):c<0&&(d=Math.max(i-(u-e.options.hierarchical.nodeSpacing),n)),d!==i&&(e._setPositionForHierarchy(r,d,void 0,!0),t=!0)},x=b(i,f);_(x),x=b(i,a),w(x)},g=function(n){var i=(0,o.default)(e.distributionOrdering);i=i.reverse();for(var r=0;r0)for(var l=0;l0&&Math.abs(g)0&&(s=this._getPositionForHierarchy(n[r-1])+this.options.hierarchical.nodeSpacing),this._setPositionForHierarchy(a,s,t),this._validataPositionAndContinue(a,t,s),i++}}}}},{key:"_placeBranchNodes",value:function(e,t){if(void 0!==this.hierarchicalChildrenReference[e]){for(var n=[],i=0;it&&void 0===this.positionedNodes[o.id]))return;var s=void 0;s=0===r?this._getPositionForHierarchy(this.body.nodes[e]):this._getPositionForHierarchy(n[r-1])+this.options.hierarchical.nodeSpacing,this._setPositionForHierarchy(o,s,a),this._validataPositionAndContinue(o,a,s)}for(var u=1e9,l=-1e9,c=0;c0&&(t=this._getHubSize(),0!==t);)for(var i in this.body.nodes)if(this.body.nodes.hasOwnProperty(i)){var r=this.body.nodes[i];r.edges.length===t&&this._crawlNetwork(n,i)}}},{key:"_determineLevelsCustomCallback",value:function(){var e=this,t=1e5,n=function(e,t,n){},i=function(i,r,o){var a=e.hierarchicalLevels[i.id];void 0===a&&(e.hierarchicalLevels[i.id]=t);var s=n(v.default.cloneOptions(i,"node"),v.default.cloneOptions(r,"node"),v.default.cloneOptions(o,"edge"));e.hierarchicalLevels[r.id]=e.hierarchicalLevels[i.id]+s};this._crawlNetwork(i),this._setMinLevelToZero()}},{key:"_determineLevelsDirected",value:function(){var e=this,t=1e4,n=function(n,i,r){var o=e.hierarchicalLevels[n.id];void 0===o&&(e.hierarchicalLevels[n.id]=t),r.toId==i.id?e.hierarchicalLevels[i.id]=e.hierarchicalLevels[n.id]+1:e.hierarchicalLevels[i.id]=e.hierarchicalLevels[n.id]-1};this._crawlNetwork(n),this._setMinLevelToZero()}},{key:"_setMinLevelToZero",value:function(){var e=1e9;for(var t in this.body.nodes)this.body.nodes.hasOwnProperty(t)&&void 0!==this.hierarchicalLevels[t]&&(e=Math.min(this.hierarchicalLevels[t],e));for(var n in this.body.nodes)this.body.nodes.hasOwnProperty(n)&&void 0!==this.hierarchicalLevels[n]&&(this.hierarchicalLevels[n]-=e)}},{key:"_generateMap",value:function(){var e=this,t=function(t,n){if(e.hierarchicalLevels[n.id]>e.hierarchicalLevels[t.id]){var i=t.id,r=n.id;void 0===e.hierarchicalChildrenReference[i]&&(e.hierarchicalChildrenReference[i]=[]),e.hierarchicalChildrenReference[i].push(r),void 0===e.hierarchicalParentReference[r]&&(e.hierarchicalParentReference[r]=[]),e.hierarchicalParentReference[r].push(i)}};this._crawlNetwork(t)}},{key:"_crawlNetwork",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments[1],i={},r=0,o=function n(r,o){if(void 0===i[r.id]){void 0===e.hierarchicalTrees[r.id]&&(e.hierarchicalTrees[r.id]=o,e.treeIndex=Math.max(o,e.treeIndex)),i[r.id]=!0;for(var a=void 0,s=0;s3&&void 0!==arguments[3]&&arguments[3];i!==!0&&(void 0===this.distributionOrdering[n]&&(this.distributionOrdering[n]=[],this.distributionOrderingPresence[n]={}),void 0===this.distributionOrderingPresence[n][e.id]&&(this.distributionOrdering[n].push(e),this.distributionIndex[e.id]=this.distributionOrdering[n].length-1),this.distributionOrderingPresence[n][e.id]=!0),"UD"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction?e.x=t:e.y=t}},{key:"_getPositionForHierarchy",value:function(e){return"UD"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction?e.x:e.y}},{key:"_sortNodeArray",value:function(e){e.length>1&&("UD"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction?e.sort(function(e,t){return e.x-t.x}):e.sort(function(e,t){return e.y-t.y}))}}]),e}();t.default=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=i(r),a=n(90),s=i(a),u=n(62),l=i(u),c=n(119),d=i(c),h=n(120),f=i(h),p=n(1),v=n(112),m=n(125),g=function(){function e(t,n,i){var r=this;(0,d.default)(this,e),this.body=t,this.canvas=n,this.selectionHandler=i,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this.manipulationHammers=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},p.extend(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){r._clean()}),this.body.emitter.on("_dataChanged",this._restore.bind(this)),this.body.emitter.on("_resetData",this._restore.bind(this))}return(0,f.default)(e,[{key:"_restore",value:function(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(e,t,n){void 0!==t&&(void 0!==t.locale?this.options.locale=t.locale:this.options.locale=n.locale,void 0!==t.locales?this.options.locales=t.locales:this.options.locales=n.locales),void 0!==e&&("boolean"==typeof e?this.options.enabled=e:(this.options.enabled=!0,p.deepExtend(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var e=this.selectionHandler._getSelectedNodeCount(),t=this.selectionHandler._getSelectedEdgeCount(),n=e+t,i=this.options.locales[this.options.locale],r=!1;this.options.addNode!==!1&&(this._createAddNodeButton(i),r=!0),this.options.addEdge!==!1&&(r===!0?this._createSeperator(1):r=!0,this._createAddEdgeButton(i)),1===e&&"function"==typeof this.options.editNode?(r===!0?this._createSeperator(2):r=!0,this._createEditNodeButton(i)):1===t&&0===e&&this.options.editEdge!==!1&&(r===!0?this._createSeperator(3):r=!0,this._createEditEdgeButton(i)),0!==n&&(e>0&&this.options.deleteNode!==!1?(r===!0&&this._createSeperator(4),this._createDeleteButton(i)):0===e&&this.options.deleteEdge!==!1&&(r===!0&&this._createSeperator(4),this._createDeleteButton(i))),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this)),this._temporaryBindEvent("select",this.showManipulatorToolbar.bind(this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.addDescription||this.options.locales.en.addDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindEvent("click",this._performAddNode.bind(this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var t=this.selectionHandler._getSelectedNode();if(void 0!==t){if(this.inMode="editNode","function"!=typeof this.options.editNode)throw new Error("No function has been configured to handle the editing of nodes.");if(t.isCluster!==!0){var n=p.deepExtend({},t.options,!1);if(n.x=t.x,n.y=t.y,2!==this.options.editNode.length)throw new Error("The function for edit does not support two arguments (data, callback)");this.options.editNode(n,function(t){null!==t&&void 0!==t&&"editNode"===e.inMode&&e.body.data.nodes.getDataSet().update(t),e.showManipulatorToolbar()})}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.edgeDescription||this.options.locales.en.edgeDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindUI("onTouch",this._handleConnect.bind(this)),this._temporaryBindUI("onDragEnd",this._finishConnect.bind(this)),this._temporaryBindUI("onDrag",this._dragControlNode.bind(this)),this._temporaryBindUI("onRelease",this._finishConnect.bind(this)),this._temporaryBindUI("onDragStart",function(){}),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge","object"===(0,l.default)(this.options.editEdge)&&"function"==typeof this.options.editEdge.editWithoutDrag&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0!==this.edgeBeingEditedId)){var e=this.body.edges[this.edgeBeingEditedId];return void this._performEditEdge(e.from,e.to)}if(this.guiEnabled===!0){var t=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(t),this._createSeperator(),this._createDescription(t.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0!==this.edgeBeingEditedId){var n=this.body.edges[this.edgeBeingEditedId],i=this._getNewTargetNode(n.from.x,n.from.y),r=this._getNewTargetNode(n.to.x,n.to.y);this.temporaryIds.nodes.push(i.id),this.temporaryIds.nodes.push(r.id),this.body.nodes[i.id]=i,this.body.nodeIndices.push(i.id),this.body.nodes[r.id]=r,this.body.nodeIndices.push(r.id),this._temporaryBindUI("onTouch",this._controlNodeTouch.bind(this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",this._controlNodeDragStart.bind(this)),this._temporaryBindUI("onDrag",this._controlNodeDrag.bind(this)),this._temporaryBindUI("onDragEnd",this._controlNodeDragEnd.bind(this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(e){var t=n.edgeType.findBorderPositions(e);i.selected===!1&&(i.x=t.from.x,i.y=t.from.y),r.selected===!1&&(r.x=t.to.x,r.y=t.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var t=this.selectionHandler.getSelectedNodes(),n=this.selectionHandler.getSelectedEdges(),i=void 0;if(t.length>0){for(var r=0;r0&&"function"==typeof this.options.deleteEdge&&(i=this.options.deleteEdge);if("function"==typeof i){var o={nodes:t,edges:n};if(2!==i.length)throw new Error("The function for delete does not support two arguments (data, callback)");i(o,function(t){null!==t&&void 0!==t&&"delete"===e.inMode?(e.body.data.edges.getDataSet().remove(t.edges),e.body.data.nodes.getDataSet().remove(t.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().remove(n),this.body.data.nodes.getDataSet().remove(t),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv&&(this.closeDiv=document.createElement("div"),this.closeDiv.className="vis-close",this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}},{key:"_getNewTargetNode",value:function(e,t){var n=p.deepExtend({},this.options.controlNodeStyle);n.id="targetNode"+p.randomUUID(),n.hidden=!1,n.physics=!1,n.x=e,n.y=t;var i=this.body.functions.createNode(n);return i.shape.boundingBox={left:e,right:e,top:t,bottom:t},i}},{key:"_createEditButton",value:function(){this._clean(),this.manipulationDOM={},p.recursiveDOMDelete(this.editModeDiv);var e=this.options.locales[this.options.locale],t=this._createButton("editMode","vis-button vis-edit vis-edit-mode",e.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(t),this._bindHammerToDiv(t,this.toggleEditMode.bind(this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(p.recursiveDOMDelete(this.editModeDiv),p.recursiveDOMDelete(this.manipulationDiv),this._cleanManipulatorHammers()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanManipulatorHammers",value:function(){if(0!=this.manipulationHammers.length){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var t=this._createButton("addNode","vis-button vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.addNodeMode.bind(this))}},{key:"_createAddEdgeButton",value:function(e){var t=this._createButton("addEdge","vis-button vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.addEdgeMode.bind(this))}},{key:"_createEditNodeButton",value:function(e){var t=this._createButton("editNode","vis-button vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.editNode.bind(this))}},{key:"_createEditEdgeButton",value:function(e){var t=this._createButton("editEdge","vis-button vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.editEdgeMode.bind(this))}},{key:"_createDeleteButton",value:function(e){if(this.options.rtl)var t="vis-button vis-delete-rtl";else var t="vis-button vis-delete";var n=this._createButton("delete",t,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(n),this._bindHammerToDiv(n,this.deleteSelected.bind(this))}},{key:"_createBackButton",value:function(e){var t=this._createButton("back","vis-button vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.showManipulatorToolbar.bind(this))}},{key:"_createButton",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("div"),this.manipulationDOM[e+"Div"].className=t,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=i,this.manipulationDOM[e+"Label"].innerHTML=n,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDiv.appendChild(this._createButton("description","vis-button vis-none",e))}},{key:"_temporaryBindEvent",value:function(e,t){this.temporaryEventFunctions.push({event:e,boundFunction:t}),this.body.emitter.on(e,t)}},{key:"_temporaryBindUI",value:function(e,t){if(void 0===this.body.eventListeners[e])throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+(0,s.default)((0,o.default)(this.body.eventListeners)));this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=t}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)this.temporaryUIFunctions.hasOwnProperty(e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e=0;a--)if(r[a]!==this.selectedControlNode.id){o=this.body.nodes[r[a]];break}if(void 0!==o&&void 0!==this.selectedControlNode)if(o.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var s=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===s.id?this._performEditEdge(o.id,i.to.id):this._performEditEdge(i.from.id,o.id)}else i.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=p.extend({},this.body.view.translation);var t=this.lastTouch,n=this.selectionHandler.getNodeAt(t);if(void 0!==n)if(n.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var i=this._getNewTargetNode(n.x,n.y);this.body.nodes[i.id]=i,this.body.nodeIndices.push(i.id);var r=this.body.functions.createEdge({id:"connectionEdge"+p.randomUUID(),from:n.id,to:i.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[r.id]=r,this.body.edgeIndices.push(r.id),this.temporaryIds.nodes.push(i.id),this.temporaryIds.edges.push(r.id)}this.touchTime=(new Date).valueOf()}}},{key:"_dragControlNode",value:function(e){var t=this.body.functions.getPointer(e.center);if(void 0!==this.temporaryIds.nodes[0]){var n=this.body.nodes[this.temporaryIds.nodes[0]];n.x=this.canvas._XconvertDOMtoCanvas(t.x),n.y=this.canvas._YconvertDOMtoCanvas(t.y),this.body.emitter.emit("_redraw")}else{var i=t.x-this.lastTouch.x,r=t.y-this.lastTouch.y;this.body.view.translation={x:this.lastTouch.translation.x+i,y:this.lastTouch.translation.y+r}}}},{key:"_finishConnect",value:function(e){var t=this.body.functions.getPointer(e.center),n=this.selectionHandler._pointerToPositionObject(t),i=void 0;void 0!==this.temporaryIds.edges[0]&&(i=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var r=this.selectionHandler._getAllNodesOverlappingWith(n),o=void 0,a=r.length-1;a>=0;a--)if(this.temporaryIds.nodes.indexOf(r[a])===-1){o=this.body.nodes[r[a]];break}this._cleanupTemporaryNodesAndEdges(),void 0!==o&&(o.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[i]&&void 0!==this.body.nodes[o.id]&&this._performAddEdge(i,o.id)),this.body.emitter.emit("_redraw")}},{key:"_performAddNode",value:function(e){var t=this,n={id:p.randomUUID(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if("function"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw new Error("The function for add does not support two arguments (data,callback)");this.options.addNode(n,function(e){null!==e&&void 0!==e&&"addNode"===t.inMode&&(t.body.data.nodes.getDataSet().add(e),t.showManipulatorToolbar())})}else this.body.data.nodes.getDataSet().add(n),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,t){var n=this,i={from:e,to:t};if("function"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error("The function for connect does not support two arguments (data,callback)");this.options.addEdge(i,function(e){null!==e&&void 0!==e&&"addEdge"===n.inMode&&(n.body.data.edges.getDataSet().add(e),n.selectionHandler.unselectAll(),n.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().add(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(e,t){var n=this,i={id:this.edgeBeingEditedId,from:e,to:t,label:this.body.data.edges._data[this.edgeBeingEditedId].label},r=this.options.editEdge;if("object"===("undefined"==typeof r?"undefined":(0,l.default)(r))&&(r=r.editWithoutDrag),"function"==typeof r){if(2!==r.length)throw new Error("The function for edit does not support two arguments (data, callback)");r(i,function(e){null===e||void 0===e||"editEdge"!==n.inMode?(n.body.edges[i.id].updateEdgeType(),n.body.emitter.emit("_redraw"),n.showManipulatorToolbar()):(n.body.data.edges.getDataSet().update(e),n.selectionHandler.unselectAll(),n.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().update(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),e}();t.default=g},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="string",i="boolean",r="number",o="array",a="object",s="dom",u="any",l={configure:{enabled:{boolean:i},filter:{boolean:i,string:n,array:o,function:"function"},container:{dom:s},showButton:{boolean:i},__type__:{object:a,boolean:i,string:n,array:o,function:"function"}},edges:{arrows:{to:{enabled:{boolean:i},scaleFactor:{number:r},type:{string:["arrow","circle"]},__type__:{object:a,boolean:i}},middle:{enabled:{boolean:i},scaleFactor:{number:r},type:{string:["arrow","circle"]},__type__:{object:a,boolean:i}},from:{enabled:{boolean:i},scaleFactor:{number:r},type:{string:["arrow","circle"]},__type__:{object:a,boolean:i}},__type__:{string:["from","to","middle"],object:a}},arrowStrikethrough:{boolean:i},chosen:{label:{boolean:i,function:"function"},edge:{boolean:i,function:"function"},__type__:{object:a,boolean:i}},color:{color:{string:n},highlight:{string:n},hover:{string:n},inherit:{string:["from","to","both"],boolean:i},opacity:{number:r},__type__:{object:a,string:n}},dashes:{boolean:i,array:o},font:{color:{string:n},size:{number:r},face:{string:n},background:{string:n},strokeWidth:{number:r},strokeColor:{string:n},align:{string:["horizontal","top","middle","bottom"]},vadjust:{ -number:r},multi:{boolean:i,string:n},bold:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},boldital:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},ital:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},mono:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},__type__:{object:a,string:n}},hidden:{boolean:i},hoverWidth:{function:"function",number:r},label:{string:n,undefined:"undefined"},labelHighlightBold:{boolean:i},length:{number:r,undefined:"undefined"},physics:{boolean:i},scaling:{min:{number:r},max:{number:r},label:{enabled:{boolean:i},min:{number:r},max:{number:r},maxVisible:{number:r},drawThreshold:{number:r},__type__:{object:a,boolean:i}},customScalingFunction:{function:"function"},__type__:{object:a}},selectionWidth:{function:"function",number:r},selfReferenceSize:{number:r},shadow:{enabled:{boolean:i},color:{string:n},size:{number:r},x:{number:r},y:{number:r},__type__:{object:a,boolean:i}},smooth:{enabled:{boolean:i},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:r},forceDirection:{string:["horizontal","vertical","none"],boolean:i},__type__:{object:a,boolean:i}},title:{string:n,undefined:"undefined"},width:{number:r},widthConstraint:{maximum:{number:r},__type__:{object:a,boolean:i,number:r}},value:{number:r,undefined:"undefined"},__type__:{object:a}},groups:{useDefaultGroups:{boolean:i},__any__:"get from nodes, will be overwritten below",__type__:{object:a}},interaction:{dragNodes:{boolean:i},dragView:{boolean:i},hideEdgesOnDrag:{boolean:i},hideNodesOnDrag:{boolean:i},hover:{boolean:i},keyboard:{enabled:{boolean:i},speed:{x:{number:r},y:{number:r},zoom:{number:r},__type__:{object:a}},bindToWindow:{boolean:i},__type__:{object:a,boolean:i}},multiselect:{boolean:i},navigationButtons:{boolean:i},selectable:{boolean:i},selectConnectedEdges:{boolean:i},hoverConnectedEdges:{boolean:i},tooltipDelay:{number:r},zoomView:{boolean:i},__type__:{object:a}},layout:{randomSeed:{undefined:"undefined",number:r},improvedLayout:{boolean:i},hierarchical:{enabled:{boolean:i},levelSeparation:{number:r},nodeSpacing:{number:r},treeSpacing:{number:r},blockShifting:{boolean:i},edgeMinimization:{boolean:i},parentCentralization:{boolean:i},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},__type__:{object:a,boolean:i}},__type__:{object:a}},manipulation:{enabled:{boolean:i},initiallyActive:{boolean:i},addNode:{boolean:i,function:"function"},addEdge:{boolean:i,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:a,boolean:i,function:"function"}},deleteNode:{boolean:i,function:"function"},deleteEdge:{boolean:i,function:"function"},controlNodeStyle:"get from nodes, will be overwritten below",__type__:{object:a,boolean:i}},nodes:{borderWidth:{number:r},borderWidthSelected:{number:r,undefined:"undefined"},brokenImage:{string:n,undefined:"undefined"},chosen:{label:{boolean:i,function:"function"},node:{boolean:i,function:"function"},__type__:{object:a,boolean:i}},color:{border:{string:n},background:{string:n},highlight:{border:{string:n},background:{string:n},__type__:{object:a,string:n}},hover:{border:{string:n},background:{string:n},__type__:{object:a,string:n}},__type__:{object:a,string:n}},fixed:{x:{boolean:i},y:{boolean:i},__type__:{object:a,boolean:i}},font:{align:{string:n},color:{string:n},size:{number:r},face:{string:n},background:{string:n},strokeWidth:{number:r},strokeColor:{string:n},vadjust:{number:r},multi:{boolean:i,string:n},bold:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},boldital:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},ital:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},mono:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},__type__:{object:a,string:n}},group:{string:n,number:r,undefined:"undefined"},heightConstraint:{minimum:{number:r},valign:{string:n},__type__:{object:a,boolean:i,number:r}},hidden:{boolean:i},icon:{face:{string:n},code:{string:n},size:{number:r},color:{string:n},__type__:{object:a}},id:{string:n,number:r},image:{selected:{string:n,undefined:"undefined"},unselected:{string:n,undefined:"undefined"},__type__:{object:a,string:n}},label:{string:n,undefined:"undefined"},labelHighlightBold:{boolean:i},level:{number:r,undefined:"undefined"},margin:{top:{number:r},right:{number:r},bottom:{number:r},left:{number:r},__type__:{object:a,number:r}},mass:{number:r},physics:{boolean:i},scaling:{min:{number:r},max:{number:r},label:{enabled:{boolean:i},min:{number:r},max:{number:r},maxVisible:{number:r},drawThreshold:{number:r},__type__:{object:a,boolean:i}},customScalingFunction:{function:"function"},__type__:{object:a}},shadow:{enabled:{boolean:i},color:{string:n},size:{number:r},x:{number:r},y:{number:r},__type__:{object:a,boolean:i}},shape:{string:["ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon"]},shapeProperties:{borderDashes:{boolean:i,array:o},borderRadius:{number:r},interpolation:{boolean:i},useImageSize:{boolean:i},useBorderWithImage:{boolean:i},__type__:{object:a}},size:{number:r},title:{string:n,undefined:"undefined"},value:{number:r,undefined:"undefined"},widthConstraint:{minimum:{number:r},maximum:{number:r},__type__:{object:a,boolean:i,number:r}},x:{number:r},y:{number:r},__type__:{object:a}},physics:{enabled:{boolean:i},barnesHut:{gravitationalConstant:{number:r},centralGravity:{number:r},springLength:{number:r},springConstant:{number:r},damping:{number:r},avoidOverlap:{number:r},__type__:{object:a}},forceAtlas2Based:{gravitationalConstant:{number:r},centralGravity:{number:r},springLength:{number:r},springConstant:{number:r},damping:{number:r},avoidOverlap:{number:r},__type__:{object:a}},repulsion:{centralGravity:{number:r},springLength:{number:r},springConstant:{number:r},nodeDistance:{number:r},damping:{number:r},__type__:{object:a}},hierarchicalRepulsion:{centralGravity:{number:r},springLength:{number:r},springConstant:{number:r},nodeDistance:{number:r},damping:{number:r},__type__:{object:a}},maxVelocity:{number:r},minVelocity:{number:r},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:i},iterations:{number:r},updateInterval:{number:r},onlyDynamicEdges:{boolean:i},fit:{boolean:i},__type__:{object:a,boolean:i}},timestep:{number:r},adaptiveTimestep:{boolean:i},__type__:{object:a,boolean:i}},autoResize:{boolean:i},clickToUse:{boolean:i},locale:{string:n},locales:{__any__:{any:u},__type__:{object:a}},height:{string:n},width:{string:n},__type__:{object:a}};l.groups.__any__=l.nodes,l.manipulation.controlNodeStyle=l.nodes;var c={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01]}};t.allOptions=l,t.configureOptions=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(165),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(226),d=i(c),h=function(){function e(t,n,i){(0,s.default)(this,e),this.body=t,this.springLength=n,this.springConstant=i,this.distanceSolver=new d.default}return(0,l.default)(e,[{key:"setOptions",value:function(e){e&&(e.springLength&&(this.springLength=e.springLength),e.springConstant&&(this.springConstant=e.springConstant))}},{key:"solve",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.distanceSolver.getDistances(this.body,e,t);this._createL_matrix(i),this._createK_matrix(i);for(var r=.01,a=1,s=0,u=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),l=5,c=1e9,d=0,h=0,f=0,p=0,v=0;c>r&&sa&&v=.1;)f=r[c++%o],f>l&&(f=l),h=Math.sqrt(f*f/(1+u*u)),h=a<0?-h:h,e+=h,t+=u*h,d===!0?this.lineTo(e,t):this.moveTo(e,t),l-=f,d=!d})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return A=e,v()}function o(){R=0,j=A.charAt(0)}function a(){R++,j=A.charAt(R)}function s(){return A.charAt(R+1)}function u(e){return z.test(e)}function l(e,t){if(e||(e={}),t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function c(e,t,n){for(var i=t.split("."),r=e;i.length;){var o=i.shift();i.length?(r[o]||(r[o]={}),r=r[o]):r[o]=n}}function d(e,t){for(var n,i,r=null,o=[e],a=e;a.parent;)o.push(a.parent),a=a.parent;if(a.nodes)for(n=0,i=a.nodes.length;n=0;n--){var s=o[n];s.nodes||(s.nodes=[]),s.nodes.indexOf(r)===-1&&s.nodes.push(r)}t.attr&&(r.attr=l(r.attr,t.attr))}function h(e,t){if(e.edges||(e.edges=[]),e.edges.push(t),e.edge){var n=l({},e.edge);t.attr=l(n,t.attr)}}function f(e,t,n,i,r){var o={from:t,to:n,type:i};return e.edge&&(o.attr=l({},e.edge)),o.attr=l(o.attr||{},r),o}function p(){for(B=I.NULL,F="";" "===j||"\t"===j||"\n"===j||"\r"===j;)a();do{var e=!1;if("#"===j){for(var t=R-1;" "===A.charAt(t)||"\t"===A.charAt(t);)t--;if("\n"===A.charAt(t)||""===A.charAt(t)){for(;""!=j&&"\n"!=j;)a();e=!0}}if("/"===j&&"/"===s()){for(;""!=j&&"\n"!=j;)a();e=!0}if("/"===j&&"*"===s()){for(;""!=j;){if("*"===j&&"/"===s()){a(),a();break}a()}e=!0}for(;" "===j||"\t"===j||"\n"===j||"\r"===j;)a()}while(e);if(""===j)return void(B=I.DELIMITER);var n=j+s();if(L[n])return B=I.DELIMITER,F=n,a(),void a();if(L[j])return B=I.DELIMITER,F=j,void a();if(u(j)||"-"===j){for(F+=j,a();u(j);)F+=j,a();return"false"===F?F=!1:"true"===F?F=!0:isNaN(Number(F))||(F=Number(F)),void(B=I.IDENTIFIER)}if('"'===j){for(a();""!=j&&('"'!=j||'"'===j&&'"'===s());)F+=j,'"'===j&&a(),a();if('"'!=j)throw T('End of string " expected');return a(),void(B=I.IDENTIFIER)}for(B=I.UNKNOWN;""!=j;)F+=j,a();throw new SyntaxError('Syntax error in part "'+E(F,30)+'"')}function v(){var e={};if(o(),p(),"strict"===F&&(e.strict=!0,p()),"graph"!==F&&"digraph"!==F||(e.type=F,p()),B===I.IDENTIFIER&&(e.id=F,p()),"{"!=F)throw T("Angle bracket { expected");if(p(),m(e),"}"!=F)throw T("Angle bracket } expected");if(p(),""!==F)throw T("End of file expected");return p(),delete e.node,delete e.edge,delete e.graph,e}function m(e){for(;""!==F&&"}"!=F;)g(e),";"===F&&p()}function g(e){var t=y(e);if(t)return void w(e,t);var n=b(e);if(!n){if(B!=I.IDENTIFIER)throw T("Identifier expected");var i=F;if(p(),"="===F){if(p(),B!=I.IDENTIFIER)throw T("Identifier expected");e[i]=F,p()}else _(e,i)}}function y(e){var t=null;if("subgraph"===F&&(t={},t.type="subgraph",p(),B===I.IDENTIFIER&&(t.id=F,p())),"{"===F){if(p(),t||(t={}),t.parent=e,t.node=e.node,t.edge=e.edge,t.graph=e.graph,m(t),"}"!=F)throw T("Angle bracket } expected");p(),delete t.node,delete t.edge,delete t.graph,delete t.parent,e.subgraphs||(e.subgraphs=[]),e.subgraphs.push(t)}return t}function b(e){return"node"===F?(p(),e.node=x(),"node"):"edge"===F?(p(),e.edge=x(),"edge"):"graph"===F?(p(),e.graph=x(),"graph"):null}function _(e,t){var n={id:t},i=x();i&&(n.attr=i),d(e,n),w(e,t)}function w(e,t){for(;"->"===F||"--"===F;){var n,i=F;p();var r=y(e);if(r)n=r;else{if(B!=I.IDENTIFIER)throw T("Identifier or subgraph expected");n=F,d(e,{id:n}),p()}var o=x(),a=f(e,t,n,i,o);h(e,a),t=n}}function x(){for(var e=null;"["===F;){for(p(),e={};""!==F&&"]"!=F;){if(B!=I.IDENTIFIER)throw T("Attribute name expected");var t=F;if(p(),"="!=F)throw T("Equal sign = expected");if(p(),B!=I.IDENTIFIER)throw T("Attribute value expected");var n=F;c(e,t,n),p(),","==F&&p()}if("]"!=F)throw T("Bracket ] expected");p()}return e}function T(e){return new SyntaxError(e+', got "'+E(F,30)+'" (char '+R+")")}function E(e,t){return e.length<=t?e:e.substr(0,27)+"..."}function C(e,t,n){Array.isArray(e)?e.forEach(function(e){Array.isArray(t)?t.forEach(function(t){n(e,t)}):n(e,t)}):Array.isArray(t)?t.forEach(function(t){n(e,t)}):n(e,t)}function O(e,t,n){for(var i=t.split("."),r=i.pop(),o=e,a=0;a":!0,"--":!0},A="",R=0,j="",F="",B=I.NULL,z=/[a-zA-Z_0-9.:#]/;t.parseDOT=r,t.DOTToGraph=k},function(e,t){function n(e,t){var n=[],i=[],r={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};void 0!==t&&(void 0!==t.fixed&&(r.nodes.fixed=t.fixed),void 0!==t.parseColor&&(r.nodes.parseColor=t.parseColor),void 0!==t.inheritColor&&(r.edges.inheritColor=t.inheritColor));for(var o=e.edges,a=e.nodes,s=0;s=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}},function(e,t,n){var i,r;!function(){"use strict";function n(){for(var e=[],t=0;t1?t-1:0),i=1;i0,e.name+" fields must be an object with field names as keys or a function which returns such an object.");var r={};return i.forEach(function(t){(0,L.assertValidName)(t);var i=n[t];(0,M.default)(E(i),e.name+"."+t+" field config must be an object"),(0,M.default)(!i.hasOwnProperty("isDeprecated"),e.name+"."+t+' should provide "deprecationReason" instead of "isDeprecated".');var o=k({},i,{isDeprecated:Boolean(i.deprecationReason),name:t});(0,M.default)(l(o.type),e.name+"."+t+" field type must be Output Type but "+("got: "+String(o.type)+".")),(0,M.default)(C(o.resolve),e.name+"."+t+" field resolver must be a function if "+("provided, but got: "+String(o.resolve)+"."));var a=i.args;a?((0,M.default)(E(a),e.name+"."+t+" args must be an object with argument names as keys."),o.args=Object.keys(a).map(function(n){(0,L.assertValidName)(n);var i=a[n];return(0,M.default)(s(i.type),e.name+"."+t+"("+n+":) argument type must be "+("Input Type but got: "+String(i.type)+".")),{name:n,description:void 0===i.description?null:i.description,type:i.type,defaultValue:i.defaultValue}})):o.args=[],r[t]=o}),r}function E(e){return e&&"object"==typeof e&&!Array.isArray(e)}function C(e){return null==e||"function"==typeof e}function O(e,t){var n=w(t);return(0,M.default)(Array.isArray(n)&&n.length>0,"Must provide Array of types or a function which returns "+("such an array for Union "+e.name+".")),n.forEach(function(t){(0,M.default)(t instanceof R,e.name+" may only contain Object types, it cannot contain: "+(String(t)+".")),"function"!=typeof e.resolveType&&(0,M.default)("function"==typeof t.isTypeOf,'Union type "'+e.name+'" does not provide a "resolveType" '+('function and possible type "'+t.name+'" does not provide an ')+'"isTypeOf" function. There is no way to resolve this possible type during execution.')}),n}function S(e,t){(0,M.default)(E(t),e.name+" values must be an object with value names as keys.");var n=Object.keys(t);return(0,M.default)(n.length>0,e.name+" values must be an object with value names as keys."),n.map(function(n){(0,L.assertValidName)(n);var i=t[n];return(0,M.default)(E(i),e.name+"."+n+' must refer to an object with a "value" key '+("representing an internal value but got: "+String(i)+".")),(0,M.default)(!i.hasOwnProperty("isDeprecated"),e.name+"."+n+' should provide "deprecationReason" instead of "isDeprecated".'),{name:n,description:i.description,isDeprecated:Boolean(i.deprecationReason),deprecationReason:i.deprecationReason,value:(0,D.default)(i.value)?n:i.value}})}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLNonNull=t.GraphQLList=t.GraphQLInputObjectType=t.GraphQLEnumType=t.GraphQLUnionType=t.GraphQLInterfaceType=t.GraphQLObjectType=t.GraphQLScalarType=void 0;var k=Object.assign||function(e){for(var t=1;t0,this.name+" fields must be an object with field names as keys or a function which returns such an object.");var i={};return n.forEach(function(n){(0,L.assertValidName)(n);var r=k({},t[n],{name:n});(0,M.default)(s(r.type),e.name+"."+n+" field type must be Input Type but "+("got: "+String(r.type)+".")),(0,M.default)(null==r.resolve,e.name+"."+n+" field type has a resolve property, but Input Types cannot define resolvers."),i[n]=r}),i},e.prototype.toString=function(){return this.name},e}();z.prototype.toJSON=z.prototype.inspect=z.prototype.toString;var H=t.GraphQLList=function(){function e(t){r(this,e),(0,M.default)(o(t),"Can only create List of a GraphQLType but got: "+String(t)+"."),this.ofType=t}return e.prototype.toString=function(){return"["+String(this.ofType)+"]"},e}();H.prototype.toJSON=H.prototype.inspect=H.prototype.toString;var G=t.GraphQLNonNull=function(){function e(t){r(this,e),(0,M.default)(o(t)&&!(t instanceof e),"Can only create NonNull of a Nullable GraphQLType but got: "+(String(t)+".")),this.ofType=t}return e.prototype.toString=function(){return this.ofType.toString()+"!"},e}();G.prototype.toJSON=G.prototype.inspect=G.prototype.toString},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i,r){var a=e[t],u="undefined"==typeof a?"undefined":o(a);return s.default.isValidElement(a)?new Error("Invalid "+i+" `"+r+"` of type ReactElement "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):"function"!==u&&"string"!==u?new Error("Invalid "+i+" `"+r+"` of value `"+a+"` "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):null}t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=n(1),s=i(a),u=n(146),l=i(u);t.default=(0,l.default)(r)},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function i(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var i=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==i.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=i()?Object.assign:function(e,t){for(var i,s,u=n(e),l=1;l0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function i(e,t,n,i){var r=document.createElement(e);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}function h(e,t){for(var n=0;n=t)return i+Math.min(a,t-r);if(r+=o-i,r+=n-r%n,i=o+1,r>=t)return i}}function p(e){for(;ka.length<=e;)ka.push(v(ka)+" ");return ka[e]}function v(e){return e[e.length-1]}function m(e,t){for(var n=[],i=0;i"€"&&(e.toUpperCase()!=e.toLowerCase()||Pa.test(e))}function w(e,t){return t?!!(t.source.indexOf("\\w")>-1&&_(e))||t.test(e):_(e)}function x(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function T(e){return e.charCodeAt(0)>=768&&Ma.test(e)}function E(e,t,n){for(;(n<0?t>0:t=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var i=0;;++i){var r=n.children[i],o=r.chunkSize();if(t=e.first&&tn?A(n,S(e,n).text.length):U(t,S(e,t.line).text.length)}function U(e,t){var n=e.ch;return null==n||n>t?A(e.line,t):n<0?A(e.line,0):e}function W(e,t){for(var n=[],i=0;i=t:o.to>t);(i||(i=[])).push(new Q(a,o.from,u?null:o.to))}}return i}function Z(e,t,n){var i;if(e)for(var r=0;r=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var u=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var w=0;w0)){var c=[u,1],d=R(l.from,s.from),f=R(l.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:l.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:l.to}),r.splice.apply(r,c),u+=c.length-3}}return r}function ne(e){var t=e.markedSpans;if(t){for(var n=0;n=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(u.marker.inclusiveRight&&r.inclusiveLeft?R(l.to,n)>=0:R(l.to,n)>0)||c>=0&&(u.marker.inclusiveRight&&r.inclusiveLeft?R(l.from,i)<=0:R(l.from,i)<0)))return!0}}}function de(e){for(var t;t=ue(e);)e=t.find(-1,!0).line;return e}function he(e){for(var t;t=le(e);)e=t.find(1,!0).line;return e}function fe(e){for(var t,n;t=le(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function pe(e,t){var n=S(e,t),i=de(n);return n==i?t:N(i)}function ve(e,t){if(t>e.lastLine())return t;var n,i=S(e,t);if(!me(e,i))return t;for(;n=le(i);)i=n.find(1,!0).line;return N(i)+1}function me(e,t){var n=Da&&t.markedSpans;if(n)for(var i=void 0,r=0;rt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function we(e,t,n,i){if(!e)return i(t,n,"ltr");for(var r=!1,o=0;ot||t==n&&a.to==t)&&(i(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),r=!0)}r||i(t,n,"ltr")}function xe(e,t,n){var i;Ia=null;for(var r=0;rt)return r;o.to==t&&(o.from!=o.to&&"before"==n?i=r:Ia=r),o.from==t&&(o.from!=o.to&&"before"!=n?i=r:Ia=r)}return null!=i?i:Ia}function Te(e,t){var n=e.order;return null==n&&(n=e.order=La(e.text,t)),n}function Ee(e,t,n){var i=E(e.text,t+n,n);return i<0||i>e.text.length?null:i}function Ce(e,t,n){var i=Ee(e,t.ch,n);return null==i?null:new A(t.line,i,n<0?"after":"before")}function Oe(e,t,n,i,r){if(e){var o=Te(n,t.doc.direction);if(o){var a,s=r<0?v(o):o[0],u=r<0==(1==s.level),l=u?"after":"before";if(s.level>0){var c=Xt(t,n);a=r<0?n.text.length-1:0;var d=$t(t,c,a).top;a=C(function(e){return $t(t,c,e).top==d},r<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ee(n,a,1,!0))}else a=r<0?s.to:s.from;return new A(i,a,l)}}return new A(i,r<0?n.text.length:0,r<0?"before":"after")}function Se(e,t,n,i){var r=Te(t,e.doc.direction);if(!r)return Ce(t,n,i);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=xe(r,n.ch,n.sticky),a=r[o];if("ltr"==e.doc.direction&&a.level%2==0&&(i>0?a.to>n.ch:a.from=a.from&&h>=c.begin)){var f=d?"before":"after";return new A(n.line,h,f)}}var p=function(e,t,i){for(var o=function(e,t){return t?new A(n.line,u(e,1),"before"):new A(n.line,e,"after")};e>=0&&e0==(1!=a.level),l=s?i.begin:u(i.end,-1);if(a.from<=l&&l0?c.end:u(c.begin,-1);return null==m||i>0&&m==t.text.length||!(v=p(i>0?0:r.length-1,i,l(m)))?null:v}function ke(e,t){return e._handlers&&e._handlers[t]||Aa}function Pe(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var i=e._handlers,r=i&&i[t];if(r){var o=h(r,n);o>-1&&(i[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function Me(e,t){var n=ke(e,t);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function Le(e){e.prototype.on=function(e,t){Ra(this,e,t)},e.prototype.off=function(e,t){Pe(this,e,t)}}function Ae(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Re(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function je(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Fe(e){Ae(e),Re(e)}function Be(e){return e.target||e.srcElement}function ze(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),da&&e.ctrlKey&&1==t&&(t=3),t}function He(e){if(null==wa){var t=i("span","​");n(e,i("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(wa=t.offsetWidth<=1&&t.offsetHeight>2&&!(Jo&&ea<8))}var r=wa?i("span","​"):i("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Ge(e){if(null!=xa)return xa;var i=n(e,document.createTextNode("AخA")),r=va(i,0,1).getBoundingClientRect(),o=va(i,1,2).getBoundingClientRect();return t(e),!(!r||r.left==r.right)&&(xa=o.right-r.right<3)}function Ue(e){if(null!=Ha)return Ha;var t=n(e,i("span","x")),r=t.getBoundingClientRect(),o=va(t,0,1).getBoundingClientRect();return Ha=Math.abs(r.left-o.left)>1}function We(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ga[e]=t}function Ve(e,t){Ua[e]=t}function Ye(e){if("string"==typeof e&&Ua.hasOwnProperty(e))e=Ua[e];else if(e&&"string"==typeof e.name&&Ua.hasOwnProperty(e.name)){var t=Ua[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ye("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ye("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Qe(e,t){t=Ye(t);var n=Ga[t.name];if(!n)return Qe(e,"text/plain");var i=n(e,t);if(Wa.hasOwnProperty(t.name)){var r=Wa[t.name];for(var o in r)r.hasOwnProperty(o)&&(i.hasOwnProperty(o)&&(i["_"+o]=i[o]),i[o]=r[o])}if(i.name=t.name,t.helperType&&(i.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)i[a]=t.modeProps[a];return i}function qe(e,t){var n=Wa.hasOwnProperty(e)?Wa[e]:Wa[e]={};c(t,n)}function Ke(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var i in t){var r=t[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Xe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),n&&n.mode!=e);)t=n.state,e=n.mode;return n||{mode:e,state:t}}function $e(e,t,n){return!e.startState||e.startState(t,n)}function Ze(e,t,n,i){var r=[e.state.modeGen],o={};at(e,t.text,e.doc.mode,n,function(e,t){return r.push(e,t)},o,i);for(var a=function(n){var i=e.state.overlays[n],a=1,s=0;at(e,t.text,i.mode,!0,function(e,t){for(var n=a;se&&r.splice(a,1,e,r[a+1],o),a+=2,s=Math.min(e,o)}if(t)if(i.opaque)r.splice(n,a-n,e,"overlay "+t),a=n+2;else for(;ne.options.maxHighlightLength?Ke(e.doc.mode,i):i);t.stateAfter=i,t.styles=r.styles,r.classes?t.styleClasses=r.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function et(e,t,n){var i=e.doc,r=e.display;if(!i.mode.startState)return!0;var o=st(e,t,n),a=o>i.first&&S(i,o-1).stateAfter;return a=a?Ke(i.mode,a):$e(i.mode),i.iter(o,t,function(n){tt(e,n.text,a);var s=o==t-1||o%5==0||o>=r.viewFrom&&ot.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function rt(e,t,n,i){var r,o=function(e){return{start:d.start,end:d.pos,string:d.current(),type:r||null,state:e?Ke(a.mode,c):c}},a=e.doc,s=a.mode;t=G(a,t);var u,l=S(a,t.line),c=et(e,t.line,n),d=new Va(l.text,e.options.tabSize);for(i&&(u=[]);(i||d.pose.options.maxHighlightLength?(s=!1,a&&tt(e,t,i,d.pos),d.pos=t.length,u=null):u=ot(it(n,d,i,h),o),h){var f=h[0].name;f&&(u="m-"+(u?f+" "+u:f))}if(!s||c!=u){for(;la;--s){if(s<=o.first)return o.first;var u=S(o,s-1);if(u.stateAfter&&(!n||s<=o.frontier))return s;var l=d(u.text,null,e.options.tabSize);(null==r||i>l)&&(r=s-1,i=l)}return r}function ut(e,t,n,i){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),ne(e),ie(e,n);var r=i?i(e):1;r!=e.height&&M(e,r)}function lt(e){e.parent=null,ne(e)}function ct(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Ka:qa;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function dt(e,t){var n=r("span",null,null,ta?"padding-right: .1px":null),i={pre:r("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(Jo||ta)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var a=o?t.rest[o-1]:t.line,s=void 0;i.pos=0,i.addToken=ft,Ge(e.display.measure)&&(s=Te(a,e.doc.direction))&&(i.addToken=vt(i.addToken,s)),i.map=[];var l=t!=e.display.externalMeasured&&N(a);yt(a,i,Je(e,a,l)),a.styleClasses&&(a.styleClasses.bgClass&&(i.bgClass=u(a.styleClasses.bgClass,i.bgClass||"")),a.styleClasses.textClass&&(i.textClass=u(a.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(He(e.display.measure))),0==o?(t.measure.map=i.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(i.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ta){var c=i.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Me(e,"renderLine",e,t.line,i.pre),i.pre.className&&(i.textClass=u(i.pre.className,i.textClass||"")),i}function ht(e){var t=i("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ft(e,t,n,r,o,a,s){if(t){var u,l=e.splitSpaces?pt(t,e.trailingSpace):t,c=e.cm.state.specialChars,d=!1;if(c.test(t)){u=document.createDocumentFragment();for(var h=0;;){c.lastIndex=h;var f=c.exec(t),v=f?f.index-h:t.length-h;if(v){var m=document.createTextNode(l.slice(h,h+v));Jo&&ea<9?u.appendChild(i("span",[m])):u.appendChild(m),e.map.push(e.pos,e.pos+v,m),e.col+=v,e.pos+=v}if(!f)break;h+=v+1;var y=void 0;if("\t"==f[0]){var g=e.cm.options.tabSize,b=g-e.col%g;y=u.appendChild(i("span",p(b),"cm-tab")),y.setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),e.col+=b}else"\r"==f[0]||"\n"==f[0]?(y=u.appendChild(i("span","\r"==f[0]?"␍":"␤","cm-invalidchar")),y.setAttribute("cm-text",f[0]),e.col+=1):(y=e.cm.options.specialCharPlaceholder(f[0]),y.setAttribute("cm-text",f[0]),Jo&&ea<9?u.appendChild(i("span",[y])):u.appendChild(y),e.col+=1);e.map.push(e.pos,e.pos+1,y),e.pos++}}else e.col+=t.length,u=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,u),Jo&&ea<9&&(d=!0),e.pos+=t.length;if(e.trailingSpace=32==l.charCodeAt(t.length-1),n||r||o||d||s){var _=n||"";r&&(_+=r),o&&(_+=o);var w=i("span",[u],_,s);return a&&(w.title=a),e.content.appendChild(w)}e.content.appendChild(u)}}function pt(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,i="",r=0;rl&&d.from<=l));h++);if(d.to>=c)return e(n,i,r,o,a,s,u);e(n,i.slice(0,d.to-l),r,o,null,s,u),o=null,i=i.slice(d.to-l),l=d.to}}}function mt(e,t,n,i){var r=!i&&n.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!i&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function yt(e,t,n){var i=e.markedSpans,r=e.text,o=0;if(i)for(var a,s,u,l,c,d,h,f=r.length,p=0,v=1,m="",y=0;;){if(y==p){u=l=c=d=s="",h=null,y=1/0;for(var g=[],b=void 0,_=0;_p||x.collapsed&&w.to==p&&w.from==p)?(null!=w.to&&w.to!=p&&y>w.to&&(y=w.to,l=""),x.className&&(u+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==p&&(c+=" "+x.startStyle),x.endStyle&&w.to==y&&(b||(b=[])).push(x.endStyle,w.to),x.title&&!d&&(d=x.title),x.collapsed&&(!h||ae(h.marker,x)<0)&&(h=w)):w.from>p&&y>w.from&&(y=w.from)}if(b)for(var T=0;T=f)break;for(var C=Math.min(f,y);;){if(m){var O=p+m.length;if(!h){var S=O>C?m.slice(0,C-p):m;t.addToken(t,S,a?a+u:u,c,p+S.length==y?l:"",d,s)}if(O>=C){m=m.slice(C-p),p=C;break}p=O,c=""}m=r.slice(o,o=n[v++]),a=ct(n[v++],t.cm.options)}}else for(var k=1;k2&&o.push((u.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Yt(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var i=0;in)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Qt(e,t){t=de(t);var i=N(t),r=e.display.externalMeasured=new gt(e.doc,t,i);r.lineN=i;var o=r.built=dt(e,r);return r.text=o.pre,n(e.display.lineMeasure,o.pre),r}function qt(e,t,n,i){return $t(e,Xt(e,t),n,i)}function Kt(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=u-s,r=o-1,t>=u&&(a="right")),null!=r){if(i=e[l+2],s==u&&n==(i.insertLeft?"left":"right")&&(a=n),"left"==n&&0==r)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)i=e[(l-=3)+2],a="left";if("right"==n&&r==u-s)for(;l=0&&(n=e[r]).left==n.right;r--);return n}function en(e,t,n,i){var r,o=Zt(t.map,n,i),a=o.node,s=o.start,u=o.end,l=o.collapse;if(3==a.nodeType){for(var c=0;c<4;c++){for(;s&&T(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+u0&&(l=i="right");var d;r=e.options.lineWrapping&&(d=a.getClientRects()).length>1?d["right"==i?d.length-1:0]:a.getBoundingClientRect()}if(Jo&&ea<9&&!s&&(!r||!r.left&&!r.right)){var h=a.parentNode.getClientRects()[0];r=h?{left:h.left,right:h.left+bn(e.display),top:h.top,bottom:h.bottom}:Za}for(var f=r.top-t.rect.top,p=r.bottom-t.rect.top,v=(f+p)/2,m=t.view.measure.heights,y=0;y=i.text.length?(l=i.text.length,c="before"):l<=0&&(l=0,c="after"),!u)return a("before"==c?l-1:l,"before"==c);var d=xe(u,l,c),h=Ia,f=s(l,d,"before"==c);return null!=h&&(f.other=s(l,h,"before"!=c)),f}function hn(e,t){var n=0;t=G(e.doc,t),e.options.lineWrapping||(n=bn(e.display)*t.ch);var i=S(e.doc,t.line),r=ge(i)+Bt(e.display);return{left:n,right:n,top:r,bottom:r+i.height}}function fn(e,t,n,i,r){var o=A(e,t,n);return o.xRel=r,i&&(o.outside=!0),o}function pn(e,t,n){var i=e.doc;if(n+=e.display.viewOffset,n<0)return fn(i.first,0,null,!0,-1);var r=D(i,n),o=i.first+i.size-1;if(r>o)return fn(i.first+i.size-1,S(i,o).text.length,null,!0,1);t<0&&(t=0);for(var a=S(i,r);;){var s=yn(e,a,r,t,n),u=le(a),l=u&&u.find(0,!0);if(!u||!(s.ch>l.from.ch||s.ch==l.from.ch&&s.xRel>0))return s;r=N(a=l.to.line)}}function vn(e,t,n,i){var r=function(i){return un(e,t,$t(e,n,i),"line")},o=t.text.length,a=C(function(e){return r(e-1).bottom<=i},o,0);return o=C(function(e){return r(e).top>i},a,o),{begin:a,end:o}}function mn(e,t,n,i){var r=un(e,t,$t(e,n,i),"line").top;return vn(e,t,n,r)}function yn(e,t,n,i,r){r-=ge(t);var o,a=0,s=t.text.length,u=Xt(e,t),l=Te(t,e.doc.direction);if(l){if(e.options.lineWrapping){var c;c=vn(e,t,u,r),a=c.begin,s=c.end,c}o=new A(n,a);var d,h,f=dn(e,o,"line",t,u).left,p=fMath.abs(d)){if(v<0==d<0)throw new Error("Broke out of infinite loop in coordsCharInner");o=h}}else{var m=C(function(n){var o=un(e,t,$t(e,u,n),"line");return o.top>r?(s=Math.min(n,s),!0):!(o.bottom<=r)&&(o.left>i||!(o.righty.right?1:0,o}function gn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Qa){Qa=i("pre");for(var r=0;r<49;++r)Qa.appendChild(document.createTextNode("x")),Qa.appendChild(i("br"));Qa.appendChild(document.createTextNode("x"))}n(e.measure,Qa);var o=Qa.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function bn(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=i("span","xxxxxxxxxx"),r=i("pre",[t]);n(e.measure,r);var o=t.getBoundingClientRect(),a=(o.right-o.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function _n(e){for(var t=e.display,n={},i={},r=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+r,i[e.options.gutters[a]]=o.clientWidth;return{fixedPos:wn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:t.wrapper.clientWidth}}function wn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function xn(e){var t=gn(e.display),n=e.options.lineWrapping,i=n&&Math.max(5,e.display.scroller.clientWidth/bn(e.display)-3);return function(r){if(me(e.doc,r))return 0;var o=0;if(r.widgets)for(var a=0;a=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,i=0;i=e.display.viewTo||s.to().line3&&(r(f,v.top,null,v.bottom),f=c,v.bottomu.bottom||l.bottom==u.bottom&&l.right>u.right)&&(u=l),f0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden"); +}}function Nn(e){e.state.focused||(e.display.input.focus(),In(e))}function Dn(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Ln(e))},100)}function In(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Me(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),ta&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Mn(e))}function Ln(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Me(e,"blur",e,t),e.state.focused=!1,ga(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function An(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var i=wn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=i+"px",a=0;a.001||u<-.001)&&(M(r.line,o),Fn(r.line),r.rest))for(var l=0;l=a&&(o=D(t,ge(S(t,u))-e.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function zn(e,t){Math.abs(e.doc.scrollTop-t)<2||(e.doc.scrollTop=t,Ko||Ci(e,{top:t}),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t),e.display.scrollbars.setScrollTop(t),Ko&&Ci(e),_i(e,100))}function Hn(e,t,n){(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||(t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),e.doc.scrollLeft=t,An(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Gn(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Un(e){var t=Gn(e);return t.x*=es,t.y*=es,t}function Wn(e,t){var n=Gn(t),i=n.x,r=n.y,o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(i&&s||r&&u){if(r&&da&&ta)e:for(var l=t.target,c=o.view;l!=a;l=l.parentNode)for(var d=0;d(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!sa){var a=i("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Bt(e.display))+"px;\n height: "+(t.bottom-t.top+Gt(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(o),e.display.lineSpace.removeChild(a)}}}function Xn(e,t,n,i){null==i&&(i=0);for(var r,o=0;o<5;o++){var a=!1,s=dn(e,t),u=n&&n!=t?dn(e,n):s;r={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-i,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+i};var l=Zn(e,r),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=l.scrollTop&&(zn(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(Hn(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return r}function $n(e,t){var n=Zn(e,t);null!=n.scrollTop&&zn(e,n.scrollTop),null!=n.scrollLeft&&Hn(e,n.scrollLeft)}function Zn(e,t){var n=e.display,i=gn(e.display);t.top<0&&(t.top=0);var r=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Wt(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+zt(n),u=t.tops-i;if(t.topr+o){var c=Math.min(t.top,(l?s:t.bottom)-o);c!=r&&(a.scrollTop=c)}var d=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,h=Ut(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),f=t.right-t.left>h;return f&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.lefth+d-3&&(a.scrollLeft=t.right+(f?0:10)-h),a}function Jn(e,t,n){null==t&&null==n||ti(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function ei(e){ti(e);var t=e.getCursor(),n=t,i=t;e.options.lineWrapping||(n=t.ch?A(t.line,t.ch-1):t,i=A(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:i,margin:e.options.cursorScrollMargin}}function ti(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=hn(e,t.from),i=hn(e,t.to),r=Zn(e,{left:Math.min(n.left,i.left),top:Math.min(n.top,i.top)-t.margin,right:Math.max(n.right,i.right),bottom:Math.max(n.bottom,i.bottom)+t.margin});e.scrollTo(r.scrollLeft,r.scrollTop)}}function ni(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++rs},_t(e.curOp)}function ii(e){var t=e.curOp;xt(t,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new os(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ai(e){e.updatedDisplay=e.mustUpdate&&Ti(e.cm,e.update)}function si(e){var t=e.cm,n=t.display;e.updatedDisplay&&jn(t),e.barMeasure=Vn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=qt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Gt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Ut(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function ui(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Da&&pe(e.doc,t)r.viewFrom?mi(e):(r.viewFrom+=i,r.viewTo+=i);else if(t<=r.viewFrom&&n>=r.viewTo)mi(e);else if(t<=r.viewFrom){var o=yi(e,n,n+i,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=i):mi(e)}else if(n>=r.viewTo){var a=yi(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):mi(e)}else{var s=yi(e,t,t,-1),u=yi(e,n,n+i,1);s&&u?(r.view=r.view.slice(0,s.index).concat(bt(e,s.lineN,u.lineN)).concat(r.view.slice(u.index)),r.viewTo+=i):mi(e)}var l=r.externalMeasured;l&&(n=r.lineN&&t=i.viewTo)){var o=i.view[Cn(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);h(a,n)==-1&&a.push(n)}}}function mi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function yi(e,t,n,i){var r,o=Cn(e,t),a=e.display.view;if(!Da||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,u=0;u0){if(o==a.length-1)return null;r=s+a[o].size-t,o++}else r=s-t;t+=r,n+=r}for(;pe(e.doc,n)!=n;){if(o==(i<0?0:a.length-1))return null;n+=i*a[o-(i<0?1:0)].size,o+=i}return{index:o,lineN:n}}function gi(e,t,n){var i=e.display,r=i.view;0==r.length||t>=i.viewTo||n<=i.viewFrom?(i.view=bt(e,t,n),i.viewFrom=t):(i.viewFrom>t?i.view=bt(e,t,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,Cn(e,n)))),i.viewTo=n}function bi(e){for(var t=e.display.view,n=0,i=0;i=e.display.viewTo)){var n=+new Date+e.options.workTime,i=Ke(t.mode,et(e,t.frontier)),r=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(t.frontier>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength,u=Ze(e,o,s?Ke(t.mode,i):i,!0);o.styles=u.styles;var l=o.styleClasses,c=u.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),h=0;!d&&hn)return _i(e,e.options.workDelay),!0}),r.length&&ci(e,function(){for(var t=0;t=i.viewFrom&&n.visible.to<=i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&0==bi(e))return!1;Rn(e)&&(mi(e),n.dims=_n(e));var o=r.first+r.size,s=Math.max(n.visible.from-e.options.viewportMargin,r.first),u=Math.min(o,n.visible.to+e.options.viewportMargin);i.viewFromu&&i.viewTo-u<20&&(u=Math.min(o,i.viewTo)),Da&&(s=pe(e.doc,s),u=ve(e.doc,u));var l=s!=i.viewFrom||u!=i.viewTo||i.lastWrapHeight!=n.wrapperHeight||i.lastWrapWidth!=n.wrapperWidth;gi(e,s,u),i.viewOffset=ge(S(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var c=bi(e);if(!l&&0==c&&!n.force&&i.renderedView==i.view&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo))return!1;var d=a();return c>4&&(i.lineDiv.style.display="none"),Oi(e,i.updateLineNumbers,n.dims),c>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,d&&a()!=d&&d.offsetHeight&&d.focus(),t(i.cursorDiv),t(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,l&&(i.lastWrapHeight=n.wrapperHeight,i.lastWrapWidth=n.wrapperWidth,_i(e,400)),i.updateLineNumbers=null,!0}function Ei(e,t){for(var n=t.viewport,i=!0;(i&&e.options.lineWrapping&&t.oldDisplayWidth!=Ut(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+zt(e.display)-Wt(e),n.top)}),t.visible=Bn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Ti(e,t);i=!1){jn(e);var r=Vn(e);On(e),Yn(e,r),ki(e,r)}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ci(e,t){var n=new os(e,t);if(Ti(e,n)){jn(e),Ei(e,n);var i=Vn(e);On(e),Yn(e,i),ki(e,i),n.finish()}}function Oi(e,n,i){function r(t){var n=t.nextSibling;return ta&&da&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var o=e.display,a=e.options.lineNumbers,s=o.lineDiv,u=s.firstChild,l=o.view,c=o.viewFrom,d=0;d-1&&(p=!1),Ct(e,f,c,i)),p&&(t(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(L(e.options,c)))),u=f.node.nextSibling}else{var v=It(e,f,c,i);s.insertBefore(v,u)}c+=f.size}for(;u;)u=r(u)}function Si(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function ki(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Gt(e)+"px"}function Pi(e){var n=e.display.gutters,r=e.options.gutters;t(n);for(var o=0;o-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Ni(e,t){var n=e[t];e.sort(function(e,t){return R(e.from(),t.from())}),t=h(e,n);for(var i=1;i=0){var a=z(o.from(),r.from()),s=B(o.to(),r.to()),u=o.empty()?r.from()==r.head:o.from()==o.head;i<=t&&--t,e.splice(--i,2,new ss(u?s:a,u?a:s))}}return new as(e,t)}function Di(e,t){return new as([new ss(e,t||e)],0)}function Ii(e){return e.text?A(e.from.line+e.text.length-1,v(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Li(e,t){if(R(e,t.from)<0)return e;if(R(e,t.to)<=0)return Ii(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,i=e.ch;return e.line==t.to.line&&(i+=Ii(t).ch-t.to.ch),A(n,i)}function Ai(e,t){for(var n=[],i=0;i1&&e.remove(s.line+1,p-1),e.insert(s.line+1,g)}Tt(e,"change",e,t)}function Gi(e,t,n){function i(e,r,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),v(e.done)):void 0}function Xi(e,t,n,i){var r=e.history;r.undone.length=0;var o,a,s=+new Date;if((r.lastOp==i||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&r.lastModTime>s-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=Ki(r,r.lastOp==i)))a=v(o.changes),0==R(t.from,t.to)&&0==R(t.from,a.to)?a.to=Ii(t):o.changes.push(Qi(e,t));else{var u=v(r.done);for(u&&u.ranges||Ji(e.sel,r.done),o={changes:[Qi(e,t)],generation:r.generation},r.done.push(o);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=s,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=t.origin,a||Me(e,"historyAdded")}function $i(e,t,n,i){var r=t.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Zi(e,t,n,i){var r=e.history,o=i&&i.origin;n==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||$i(e,o,v(r.done),t))?r.done[r.done.length-1]=t:Ji(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=n,i&&i.clearRedo!==!1&&qi(r.undone)}function Ji(e,t){var n=v(t);n&&n.ranges&&n.equals(e)||t.push(e)}function er(e,t,n,i){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,i),function(n){n.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function tr(e){if(!e)return null;for(var t,n=0;n-1&&(v(s)[d]=l[d],delete l[d])}}}return i}function or(e,t,n,i){if(e.cm&&e.cm.display.shift||e.extend){var r=t.anchor;if(i){var o=R(n,r)<0;o!=R(i,r)<0?(r=n,n=i):o!=R(n,i)<0&&(n=i)}return new ss(r,n)}return new ss(i||n,n)}function ar(e,t,n,i){hr(e,new as([or(e,e.sel.primary(),t,n)],0),i)}function sr(e,t,n){for(var i=[],r=0;r=t.ch:s.to>t.ch))){if(r&&(Me(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var l=u.find(i<0?1:-1),c=void 0;if((i<0?u.inclusiveRight:u.inclusiveLeft)&&(l=br(e,l,-i,l&&l.line==t.line?o:null)),l&&l.line==t.line&&(c=R(l,n))&&(i<0?c<0:c>0))return yr(e,l,t,i,r)}var d=u.find(i<0?-1:1);return(i<0?u.inclusiveLeft:u.inclusiveRight)&&(d=br(e,d,i,d.line==t.line?o:null)),d?yr(e,d,t,i,r):null}}return t}function gr(e,t,n,i,r){var o=i||1,a=yr(e,t,n,o,r)||!r&&yr(e,t,n,o,!0)||yr(e,t,n,-o,r)||!r&&yr(e,t,n,-o,!0);return a?a:(e.cantEdit=!0,A(e.first,0))}function br(e,t,n,i){return n<0&&0==t.ch?t.line>e.first?G(e,A(t.line-1)):null:n>0&&t.ch==(i||S(e,t.line)).text.length?t.line=0;--r)Tr(e,{from:i[r].from,to:i[r].to,text:r?[""]:t.text});else Tr(e,t)}}function Tr(e,t){if(1!=t.text.length||""!=t.text[0]||0!=R(t.from,t.to)){var n=Ai(e,t);Xi(e,t,n,e.cm?e.cm.curOp.id:NaN),Or(e,t,n,J(e,t));var i=[];Gi(e,function(e,n){n||h(i,e.history)!=-1||(Nr(e.history,t),i.push(e.history)),Or(e,t,null,J(e,t))})}}function Er(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var i,r=e.history,o=e.sel,a="undo"==t?r.done:r.undone,s="undo"==t?r.undone:r.done,u=0;u=0;--f){var p=d(f);if(p)return p.v}}}}function Cr(e,t){if(0!=t&&(e.first+=t,e.sel=new as(m(e.sel.ranges,function(e){return new ss(A(e.anchor.line+t,e.anchor.ch),A(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){pi(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,i=n.viewFrom;ie.lastLine())){if(t.from.lineo&&(t={from:t.from,to:A(o,S(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=k(e,t.from,t.to),n||(n=Ai(e,t)),e.cm?Sr(e.cm,t,i):Hi(e,t,i),fr(e,n,Ca)}}function Sr(e,t,n){var i=e.doc,r=e.display,o=t.from,a=t.to,s=!1,u=o.line;e.options.lineWrapping||(u=N(de(S(i,o.line))),i.iter(u,a.line+1,function(e){if(e==r.maxLine)return s=!0,!0})),i.sel.contains(t.from,t.to)>-1&&De(e),Hi(i,t,n,xn(e)),e.options.lineWrapping||(i.iter(u,o.line+t.text.length,function(e){var t=be(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),i.frontier=Math.min(i.frontier,o.line),_i(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?pi(e):o.line!=a.line||1!=t.text.length||zi(e.doc,t)?pi(e,o.line,a.line+1,l):vi(e,o.line,"text");var c=Ie(e,"changes"),d=Ie(e,"change");if(d||c){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Tt(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function kr(e,t,n,i,r){if(i||(i=n),R(i,n)<0){var o=i;i=n,n=o}"string"==typeof t&&(t=e.splitLines(t)),xr(e,{from:n,to:i,text:t,origin:r})}function Pr(e,t,n,i){n0||0==s&&a.clearWhenEmpty!==!1)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=r("span",[a.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(ce(e,t.line,t,n,a)||t.line!=n.line&&ce(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Y()}a.addToHistory&&Xi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var u,l=t.line,d=e.cm;if(e.iter(l,n.line+1,function(e){d&&a.collapsed&&!d.options.lineWrapping&&de(e)==d.display.maxLine&&(u=!0),a.collapsed&&l!=t.line&&M(e,0),X(e,new Q(a,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l}),a.collapsed&&e.iter(t.line,n.line+1,function(t){me(e,t)&&M(t,0)}),a.clearOnEnter&&Ra(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(V(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++ds,a.atomic=!0),d){if(u&&(d.curOp.updateMaxLine=!0),a.collapsed)pi(d,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var h=t.line;h<=n.line;h++)vi(d,h,"text");a.atomic&&vr(d.doc),Tt(d,"markerAdded",d,a)}return a}function Rr(e,t,n,i,r){i=c(i),i.shared=!1;var o=[Ar(e,t,n,i,r)],a=o[0],s=i.widgetNode;return Gi(e,function(e){s&&(i.widgetNode=s.cloneNode(!0)),o.push(Ar(e,G(e,t),G(e,n),i,r));for(var u=0;u-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var l=e.dataTransfer.getData("Text");if(l){var c;if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),fr(t.doc,Di(n,n)),c)for(var d=0;d=0;t--)kr(e.doc,"",i[t].from,i[t].to,"+delete");ei(e)})}function to(e,t){var n=S(e.doc,t),i=de(n);return i!=n&&(t=N(i)),Oe(!0,e,i,t,1)}function no(e,t){var n=S(e.doc,t),i=he(n);return i!=n&&(t=N(i)),Oe(!0,e,n,t,-1)}function io(e,t){var n=to(e,t.line),i=S(e.doc,n.line),r=Te(i,e.doc.direction);if(!r||0==r[0].level){var o=Math.max(0,i.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return A(n.line,a?0:o,n.sticky)}return n}function ro(e,t,n){if("string"==typeof t&&(t=Cs[t],!t))return!1;e.display.input.ensurePolled();var i=e.display.shift,r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),r=t(e)!=Ea}finally{e.display.shift=i,e.state.suppressEdits=!1}return r}function oo(e,t,n){for(var i=0;ir-400&&0==R(Es.pos,n)?i="triple":Ts&&Ts.time>r-400&&0==R(Ts.pos,n)?(i="double",Es={time:r,pos:n}):(i="single",Ts={time:r,pos:n});var o,s=e.doc.sel,u=da?t.metaKey:t.ctrlKey;e.options.dragDrop&&ja&&!e.isReadOnly()&&"single"==i&&(o=s.contains(n))>-1&&(R((o=s.ranges[o]).from(),n)<0||n.xRel>0)&&(R(o.to(),n)>0||n.xRel<0)?mo(e,t,n,u):yo(e,t,n,i,u)}function mo(e,t,n,i){var r=e.display,o=+new Date,a=di(e,function(s){ta&&(r.scroller.draggable=!1),e.state.draggingText=!1,Pe(document,"mouseup",a),Pe(r.scroller,"drop",a),Math.abs(t.clientX-s.clientX)+Math.abs(t.clientY-s.clientY)<10&&(Ae(s),!i&&+new Date-200_&&r.push(new ss(A(m,_),A(m,f(g,l,o))))}r.length||r.push(new ss(n,n)),hr(c,Ni(v.ranges.slice(0,p).concat(r),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var w=h,x=w.anchor,T=t;if("single"!=i){var E;E="double"==i?e.findWordAt(t):new ss(A(t.line,0),G(c,A(t.line+1,0))),R(E.anchor,x)>0?(T=E.head,x=z(w.from(),E.anchor)):(T=E.anchor,x=B(w.to(),E.head))}var C=v.ranges.slice(0);C[p]=new ss(G(c,x),T),hr(c,Ni(C,p),Oa)}}function s(t){var n=++w,r=En(e,t,!0,"rect"==i);if(r)if(0!=R(r,b)){e.curOp.focus=a(),o(r);var u=Bn(l,c);(r.line>=u.to||r.line_.bottom?20:0;d&&setTimeout(di(e,function(){w==n&&(l.scroller.scrollTop+=d,s(t))}),50)}}function u(t){e.state.selectingText=!1,w=1/0,Ae(t),l.input.focus(),Pe(document,"mousemove",x),Pe(document,"mouseup",T),c.history.lastSelOrigin=null}var l=e.display,c=e.doc;Ae(t);var h,p,v=c.sel,m=v.ranges;if(r&&!t.shiftKey?(p=c.sel.contains(n),h=p>-1?m[p]:new ss(n,n)):(h=c.sel.primary(),p=c.sel.primIndex),ha?t.shiftKey&&t.metaKey:t.altKey)i="rect",r||(h=new ss(n,n)),n=En(e,t,!0,!0),p=-1;else if("double"==i){var y=e.findWordAt(n);h=e.display.shift||c.extend?or(c,h,y.anchor,y.head):y}else if("triple"==i){var g=new ss(A(n.line,0),G(c,A(n.line+1,0)));h=e.display.shift||c.extend?or(c,h,g.anchor,g.head):g}else h=or(c,h,n);r?p==-1?(p=m.length,hr(c,Ni(m.concat([h]),p),{scroll:!1,origin:"*mouse"})):m.length>1&&m[p].empty()&&"single"==i&&!t.shiftKey?(hr(c,Ni(m.slice(0,p).concat(m.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),v=c.sel):ur(c,p,h,Oa):(p=0,hr(c,new as([h],0),Oa),v=c.sel);var b=n,_=l.wrapper.getBoundingClientRect(),w=0,x=di(e,function(e){ze(e)?s(e):u(e)}),T=di(e,u);e.state.selectingText=T,Ra(document,"mousemove",x),Ra(document,"mouseup",T)}function go(e,t,n,i){var r,o;try{r=t.clientX,o=t.clientY}catch(e){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Ae(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ie(e,n))return je(t);o-=s.top-a.viewOffset;for(var u=0;u=r){var c=D(e.doc,o),d=e.options.gutters[u];return Me(e,n,e,c,d,t),je(t)}}}function bo(e,t){return go(e,t,"gutterClick",!0)}function _o(e,t){Ft(e.display,t)||wo(e,t)||Ne(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function wo(e,t){return!!Ie(e,"gutterContextMenu")&&go(e,t,"gutterContextMenu",!1)}function xo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),on(e)}function To(e){function t(t,i,r,o){e.defaults[t]=i,r&&(n[t]=o?function(e,t,n){n!=ks&&r(e,t,n)}:r)}var n=e.optionHandlers;e.defineOption=t,e.Init=ks,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Fi(e)},!0),t("indentUnit",2,Fi,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){Bi(e),on(e),pi(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],i=e.doc.first;e.doc.iter(function(e){for(var r=0;;){var o=e.text.indexOf(t,r);if(o==-1)break;r=o+t.length,n.push(A(i,o))}i++});for(var r=n.length-1;r>=0;r--)kr(e.doc,t,n[r],A(n[r].line,n[r].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=ks&&e.refresh()}),t("specialCharPlaceholder",ht,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",ca?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!fa),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){xo(e),Eo(e)},!0),t("keyMap","default",function(e,t,n){var i=Jr(t),r=n!=ks&&Jr(n);r&&r.detach&&r.detach(e,i),i.attach&&i.attach(e,r||null)}),t("extraKeys",null),t("lineWrapping",!1,Oo,!0),t("gutters",[],function(e){Mi(e.options),Eo(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?wn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return Yn(e)},!0),t("scrollbarStyle","native",function(e){qn(e),Yn(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Mi(e.options),Eo(e)},!0),t("firstLineNumber",1,Eo,!0),t("lineNumberFormatter",function(e){return e},Eo,!0),t("showCursorWhenSelecting",!1,On,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("readOnly",!1,function(e,t){"nocursor"==t?(Ln(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Co),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,On,!0),t("singleCursorHeightPerLine",!0,On,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,Bi,!0),t("addModeClass",!1,Bi,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,Bi,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}function Eo(e){Pi(e),pi(e),An(e)}function Co(e,t,n){var i=n&&n!=ks;if(!t!=!i){var r=e.display.dragFunctions,o=t?Ra:Pe;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Oo(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ga(e.display.wrapper,"CodeMirror-wrap"),_e(e)),Tn(e),pi(e),on(e),setTimeout(function(){return Yn(e)},100)}function So(e,t){var n=this;if(!(this instanceof So))return new So(e,t);this.options=t=t?c(t):{},c(Ps,t,!1),Mi(t);var i=t.value;"string"==typeof i&&(i=new vs(i,t.mode,null,t.lineSeparator,t.direction)),this.doc=i;var r=new So.inputStyles[t.inputStyle](this),o=this.display=new O(e,i,r);o.wrapper.CodeMirror=this,Pi(this),xo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qn(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 _a,keySeq:null,specialChars:null},t.autofocus&&!ca&&o.input.focus(),Jo&&ea<11&&setTimeout(function(){return n.display.input.reset(!0)},20),ko(this),Vr(),ni(this),this.curOp.forceUpdate=!0,Ui(this,i),t.autofocus&&!ca||this.hasFocus()?setTimeout(l(In,this),20):Ln(this);for(var a in Ms)Ms.hasOwnProperty(a)&&Ms[a](n,t[a],ks);Rn(this),t.finishInit&&t.finishInit(this);for(var s=0;s400}var r=e.display;Ra(r.scroller,"mousedown",di(e,po)),Jo&&ea<11?Ra(r.scroller,"dblclick",di(e,function(t){if(!Ne(e,t)){var n=En(e,t);if(n&&!bo(e,t)&&!Ft(e.display,t)){Ae(t);var i=e.findWordAt(n);ar(e.doc,i.anchor,i.head)}}})):Ra(r.scroller,"dblclick",function(t){return Ne(e,t)||Ae(t)}),ya||Ra(r.scroller,"contextmenu",function(t){return _o(e,t)});var o,a={end:0};Ra(r.scroller,"touchstart",function(t){if(!Ne(e,t)&&!n(t)){r.input.ensurePolled(),clearTimeout(o);var i=+new Date;r.activeTouch={start:i,moved:!1,prev:i-a.end<=300?a:null},1==t.touches.length&&(r.activeTouch.left=t.touches[0].pageX,r.activeTouch.top=t.touches[0].pageY)}}),Ra(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),Ra(r.scroller,"touchend",function(n){var o=r.activeTouch;if(o&&!Ft(r,n)&&null!=o.left&&!o.moved&&new Date-o.start<300){var a,s=e.coordsChar(r.activeTouch,"page");a=!o.prev||i(o,o.prev)?new ss(s,s):!o.prev.prev||i(o,o.prev.prev)?e.findWordAt(s):new ss(A(s.line,0),G(e.doc,A(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ae(n)}t()}),Ra(r.scroller,"touchcancel",t),Ra(r.scroller,"scroll",function(){r.scroller.clientHeight&&(zn(e,r.scroller.scrollTop),Hn(e,r.scroller.scrollLeft,!0),Me(e,"scroll",e))}),Ra(r.scroller,"mousewheel",function(t){return Wn(e,t)}),Ra(r.scroller,"DOMMouseScroll",function(t){return Wn(e,t)}),Ra(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(t){Ne(e,t)||Fe(t)},over:function(t){Ne(e,t)||(Gr(e,t),Fe(t))},start:function(t){return Hr(e,t)},drop:di(e,zr),leave:function(t){Ne(e,t)||Ur(e)}};var s=r.input.getField();Ra(s,"keyup",function(t){return ho.call(e,t)}),Ra(s,"keydown",di(e,lo)),Ra(s,"keypress",di(e,fo)),Ra(s,"focus",function(t){return In(e,t)}),Ra(s,"blur",function(t){return Ln(e,t)})}function Po(e,t,n,i){var r,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?r=et(e,t):n="prev");var a=e.options.tabSize,s=S(o,t),u=d(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,c=s.text.match(/^\s*/)[0];if(i||/\S/.test(s.text)){if("smart"==n&&(l=o.mode.indent(r,s.text.slice(c.length),s.text),l==Ea||l>150)){if(!i)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?d(S(o,t-1).text,null,a):0:"add"==n?l=u+e.options.indentUnit:"subtract"==n?l=u-e.options.indentUnit:"number"==typeof n&&(l=u+n),l=Math.max(0,l);var h="",f=0;if(e.options.indentWithTabs)for(var v=Math.floor(l/a);v;--v)f+=a,h+="\t";if(f1)if(Ds&&Ds.text.join("\n")==t){if(i.ranges.length%Ds.text.length==0){u=[];for(var l=0;l=0;d--){var h=i.ranges[d],f=h.from(),p=h.to();h.empty()&&(n&&n>0?f=A(f.line,f.ch-n):e.state.overwrite&&!a?p=A(p.line,Math.min(S(o,p.line).text.length,p.ch+v(s).length)):Ds&&Ds.lineWise&&Ds.text.join("\n")==t&&(f=p=A(f.line,0))),c=e.curOp.updateInput;var y={from:f,to:p,text:u?u[d%u.length]:s,origin:r||(a?"paste":e.state.cutIncoming?"cut":"+input")};xr(e.doc,y),Tt(e,"inputRead",e,y)}t&&!a&&Io(e,t),ei(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Do(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||ci(t,function(){return No(t,n,0,null,"paste")}),!0}function Io(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var o=e.getModeAt(r.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Po(e,r.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(S(e.doc,r.head.line).text.slice(0,r.head.ch))&&(a=Po(e,r.head.line,"smart"));a&&Tt(e,"electricInput",e,r.head.line)}}}function Lo(e){for(var t=[],n=[],i=0;i=e.first+e.size)&&(t=new A(i,t.ch,t.sticky),l=S(e,i))}function a(i){var a;if(a=r?Se(e.cm,l,t,n):Ce(l,t,n),null==a){if(i||!o())return!1;t=Oe(r,e.cm,l,t.line,n)}else t=a;return!0}var s=t,u=n,l=S(e,t.line);if("char"==i)a();else if("column"==i)a(!0);else if("word"==i||"group"==i)for(var c=null,d="group"==i,h=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||a(!f);f=!1){var p=l.text.charAt(t.ch)||"\n",v=w(p,h)?"w":d&&"\n"==p?"n":!d||/\s/.test(p)?null:"p";if(!d||f||v||(v="s"),c&&c!=v){n<0&&(n=1,a(),t.sticky="after");break}if(v&&(c=v),n>0&&!a(!f))break}var m=gr(e,t,s,u,!0);return j(s,m)&&(m.hitSide=!0),m}function Fo(e,t,n,i){var r,o=e.doc,a=t.left;if("page"==i){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*gn(e.display),3);r=(n>0?t.bottom:t.top)+n*u}else"line"==i&&(r=n>0?t.bottom+3:t.top-3);for(var l;l=pn(e,a,r),l.outside;){if(n<0?r<=0:r>=o.height){l.hitSide=!0;break}r+=5*n}return l}function Bo(e,t){var n=Kt(e,t.line);if(!n||n.hidden)return null;var i=S(e.doc,t.line),r=Yt(n,i,t.line),o=Te(i,e.doc.direction),a="left";if(o){var s=xe(o,t.ch);a=s%2?"right":"left"}var u=Zt(r.map,t.ch,a);return u.offset="right"==u.collapse?u.end:u.start,u}function zo(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Ho(e,t){return t&&(e.bad=!0),e}function Go(e,t,n,i,r){function o(e){return function(t){return t.id==e}}function a(){c&&(l+=d,c=!1)}function s(e){e&&(a(),l+=e)}function u(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void s(n||t.textContent.replace(/\u200b/g,""));var l,h=t.getAttribute("cm-marker");if(h){var f=e.findMarks(A(i,0),A(r+1,0),o(+h));return void(f.length&&(l=f[0].find())&&s(k(e.doc,l.from,l.to).join(d)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p)$/i.test(t.nodeName);p&&a();for(var v=0;v=15&&(ra=!1,ta=!0);var va,ma=da&&(na||ra&&(null==pa||pa<12.11)),ya=Ko||Jo&&ea>=9,ga=function(t,n){var i=t.className,r=e(n).exec(i);if(r){var o=i.slice(r.index+r[0].length);t.className=i.slice(0,r.index)+(o?r[1]+o:"")}};va=document.createRange?function(e,t,n,i){var r=document.createRange();return r.setEnd(i||e,n),r.setStart(e,t),r}:function(e,t,n){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch(e){return i}return i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i};var ba=function(e){e.select()};ua?ba=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:Jo&&(ba=function(e){try{e.select()}catch(e){}});var _a=function(){this.id=null};_a.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var wa,xa,Ta=30,Ea={toString:function(){return"CodeMirror.Pass"}},Ca={scroll:!1},Oa={origin:"*mouse"},Sa={origin:"+move"},ka=[""],Pa=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Ma=/[\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]/,Na=!1,Da=!1,Ia=null,La=function(){ +function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?i.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,u=/[1n]/;return function(n,i){var l="ltr"==i?"L":"R";if(0==n.length||"ltr"==i&&!r.test(n))return!1;for(var c=n.length,d=[],h=0;h=this.string.length},Va.prototype.sol=function(){return this.pos==this.lineStart},Va.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Va.prototype.next=function(){if(this.post},Va.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},Va.prototype.skipToEnd=function(){this.pos=this.string.length},Va.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Va.prototype.backUp=function(e){this.pos-=e},Va.prototype.column=function(){return this.lastColumnPos0?null:(i&&t!==!1&&(this.pos+=i[0].length),i)}var r=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(r(o)==r(e))return t!==!1&&(this.pos+=e.length),!0},Va.prototype.current=function(){return this.string.slice(this.start,this.pos)},Va.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}};var Ya=function(e,t,n){this.text=e,ie(this,t),this.height=n?n(this):1};Ya.prototype.lineNo=function(){return N(this)},Le(Ya);var Qa,qa={},Ka={},Xa=null,$a=null,Za={left:0,right:0,top:0,bottom:0},Ja=0,es=null;Jo?es=-.53:Ko?es=15:ia?es=-.7:oa&&(es=-1/3);var ts=function(e,t,n){this.cm=n;var r=this.vert=i("div",[i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=i("div",[i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(o),Ra(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Ra(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Jo&&ea<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ts.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?i+"px":"0";var r=e.viewHeight-(t?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:t?i:0}},ts.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},ts.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},ts.prototype.zeroWidthHack=function(){var e=da&&!aa?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new _a,this.disableVert=new _a},ts.prototype.enableZeroWidthBar=function(e,t){function n(){var i=e.getBoundingClientRect(),r=document.elementFromPoint(i.left+1,i.bottom-1);r!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},ts.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ns=function(){};ns.prototype.update=function(){return{bottom:0,right:0}},ns.prototype.setScrollLeft=function(){},ns.prototype.setScrollTop=function(){},ns.prototype.clear=function(){};var is={native:ts,null:ns},rs=0,os=function(e,t,n){var i=e.display;this.viewport=t,this.visible=Bn(i,e.doc,t),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Ut(e),this.force=n,this.dims=_n(e),this.events=[]};os.prototype.signal=function(e,t){Ie(e,t)&&this.events.push(arguments)},os.prototype.finish=function(){for(var e=this,t=0;t=0&&R(e,r.to())<=0)return i}return-1};var ss=function(e,t){this.anchor=e,this.head=t};ss.prototype.from=function(){return z(this.anchor,this.head)},ss.prototype.to=function(){return B(this.anchor,this.head)},ss.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};var us=function(e){var t=this;this.lines=e,this.parent=null;for(var n=0,i=0;i1||!(this.children[0]instanceof us))){var u=[];this.collapse(u),this.children=[new us(u)],this.children[0].parent=this}},ls.prototype.collapse=function(e){for(var t=this,n=0;n50){for(var s=o.lines.length%25+25,u=s;u10);e.parent.maybeSpill()}},ls.prototype.iterN=function(e,t,n){for(var i=this,r=0;rt.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=d,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&pi(t,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&vr(t.doc)),t&&Tt(t,"markerCleared",t,this,r,o),n&&ii(t),this.parent&&this.parent.clear()}},hs.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var i,r,o=0;o=0;l--)xr(i,r[l]);u?dr(this,u):this.cm&&ei(this.cm)}),undo:fi(function(){Er(this,"undo")}),redo:fi(function(){Er(this,"redo")}),undoSelection:fi(function(){Er(this,"undo",!0)}),redoSelection:fi(function(){Er(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,i=0;i=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,n){e=G(this,e),t=G(this,t);var i=[],r=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s=u.to||null==u.from&&r!=e.line||null!=u.from&&r==t.line&&u.from>=t.ch||n&&!n(u.marker)||i.push(u.marker.parent||u.marker)}++r}),i},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var i=0;ie?(t=e,!0):(e-=o,void++n)}),G(this,A(n,t))},indexFromPos:function(e){e=G(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to0)r=new A(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),A(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var a=S(e.doc,r.line-1).text;a&&(r=new A(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),A(r.line-1,a.length-1),r,"+transpose"))}n.push(new ss(r,r))}e.setSelections(n)})},newlineAndIndent:function(e){return ci(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var i=0;ii&&(Po(t,o.head.line,e,!0),i=o.head.line,r==t.doc.sel.primIndex&&ei(t));else{var a=o.from(),s=o.to(),u=Math.max(i,a.line);i=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var l=u;l0&&ur(t.doc,r,new ss(a,c[r].to()),Ca)}}}),getTokenAt:function(e,t){return rt(this,e,t)},getLineTokens:function(e,t){return rt(this,A(e),t,!0)},getTokenTypeAt:function(e){e=G(this.doc,e);var t,n=Je(this,S(this.doc,e.line)),i=0,r=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=i+r>>1;if((a?n[2*a-1]:0)>=o)r=a;else{if(!(n[2*a+1]o&&(e=o,r=!0),i=S(this.doc,e)}else i=e;return un(this,i,{top:0,left:0},t||"page",n||r).top+(r?this.doc.height-ge(i):0)},defaultTextHeight:function(){return gn(this.display)},defaultCharWidth:function(){return bn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,i,r){var o=this.display;e=dn(this,G(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==i)a=e.top;else if("above"==i||"near"==i){var u=Math.max(o.wrapper.clientHeight,this.doc.height),l=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==i||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(a=e.bottom),s+t.offsetWidth>l&&(s=l-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==r?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&$n(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:hi(lo),triggerOnKeyPress:hi(fo),triggerOnKeyUp:ho,execCommand:function(e){if(Cs.hasOwnProperty(e))return Cs[e].call(null,this)},triggerElectric:hi(function(e){Io(this,e)}),findPosH:function(e,t,n,i){var r=this,o=1;t<0&&(o=-1,t=-t);for(var a=G(this.doc,e),s=0;s0&&s(n.charAt(i-1));)--i;for(;r.5)&&Tn(this),Me(this,"refresh",this)}),swapDoc:hi(function(e){var t=this.doc;return t.cm=null,Ui(this,e),on(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Tt(this,"swapDoc",this,t),t}),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}},Le(e),e.registerHelper=function(t,i,r){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][i]=r},e.registerGlobalHelper=function(t,i,r,o){e.registerHelper(t,i,o),n[t]._global.push({pred:r,val:o})}},Ls=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new _a,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ls.prototype.init=function(e){function t(e){if(!Ne(r,e)){if(r.somethingSelected())Mo({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Lo(r);Mo({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,Ca),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=Ds.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=Ro(),s=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),s.value=Ds.text.join("\n");var u=document.activeElement;ba(s),setTimeout(function(){r.display.lineSpace.removeChild(a),u.focus(),u==o&&i.showPrimarySelection()},50)}}var n=this,i=this,r=i.cm,o=i.div=e.lineDiv;Ao(o,r.options.spellcheck),Ra(o,"paste",function(e){Ne(r,e)||Do(e,r)||ea<=11&&setTimeout(di(r,function(){return n.updateFromDOM()}),20)}),Ra(o,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),Ra(o,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),Ra(o,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),Ra(o,"touchstart",function(){return i.forceCompositionEnd()}),Ra(o,"input",function(){n.composing||n.readFromDOMSoon()}),Ra(o,"copy",t),Ra(o,"cut",t)},Ls.prototype.prepareSelection=function(){var e=Sn(this.cm,!1);return e.focus=this.cm.state.focused,e},Ls.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ls.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm.doc.sel.primary(),n=Uo(this.cm,e.anchorNode,e.anchorOffset),i=Uo(this.cm,e.focusNode,e.focusOffset);if(!n||n.bad||!i||i.bad||0!=R(z(n,i),t.from())||0!=R(B(n,i),t.to())){var r=Bo(this.cm,t.from()),o=Bo(this.cm,t.to());if(!r&&!o)return void e.removeAllRanges();var a=this.cm.display.view,s=e.rangeCount&&e.getRangeAt(0);if(r){if(!o){var u=a[a.length-1].measure,l=u.maps?u.maps[u.maps.length-1]:u.map;o={node:l[l.length-1],offset:l[l.length-2]-l[l.length-3]}}}else r={node:a[0].measure.map[2],offset:0};var c;try{c=va(r.node,r.offset,o.offset,o.node)}catch(e){}c&&(!Ko&&this.cm.state.focused?(e.collapse(r.node,r.offset),c.collapsed||(e.removeAllRanges(),e.addRange(c))):(e.removeAllRanges(),e.addRange(c)),s&&null==e.anchorNode?e.addRange(s):Ko&&this.startGracePeriod()),this.rememberSelection()}},Ls.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ls.prototype.showMultipleSelections=function(e){n(this.cm.display.cursorDiv,e.cursors),n(this.cm.display.selectionDiv,e.selection)},Ls.prototype.rememberSelection=function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ls.prototype.selectionInEditor=function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return o(this.div,t)},Ls.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ls.prototype.blur=function(){this.div.blur()},Ls.prototype.getField=function(){return this.div},Ls.prototype.supportsTouch=function(){return!0},Ls.prototype.receivedFocus=function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():ci(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},Ls.prototype.selectionChanged=function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ls.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;if(la&&ia&&this.cm.options.gutters.length&&zo(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Uo(t,e.anchorNode,e.anchorOffset),i=Uo(t,e.focusNode,e.focusOffset);n&&i&&ci(t,function(){hr(t.doc,Di(n,i),Ca),(n.bad||i.bad)&&(t.curOp.selectionChanged=!0)})}}},Ls.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,n=e.doc.sel.primary(),i=n.from(),r=n.to();if(0==i.ch&&i.line>e.firstLine()&&(i=A(i.line-1,S(e.doc,i.line-1).length)),r.ch==S(e.doc,r.line).text.length&&r.linet.viewTo-1)return!1;var o,a,s;i.line==t.viewFrom||0==(o=Cn(e,i.line))?(a=N(t.view[0].line),s=t.view[0].node):(a=N(t.view[o].line),s=t.view[o-1].node.nextSibling);var u,l,c=Cn(e,r.line);if(c==t.view.length-1?(u=t.viewTo-1,l=t.lineDiv.lastChild):(u=N(t.view[c+1].line)-1,l=t.view[c+1].node.previousSibling),!s)return!1;for(var d=e.doc.splitLines(Go(e,s,l,a,u)),h=k(e.doc,A(a,0),A(u,S(e.doc,u).text.length));d.length>1&&h.length>1;)if(v(d)==v(h))d.pop(),h.pop(),u--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),a++}for(var f=0,p=0,m=d[0],y=h[0],g=Math.min(m.length,y.length);fi.ch&&b.charCodeAt(b.length-p-1)==_.charCodeAt(_.length-p-1);)f--,p++;d[d.length-1]=b.slice(0,b.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var x=A(a,f),T=A(u,h.length?v(h).length-p:0);return d.length>1||d[0]||R(x,T)?(kr(e.doc,d,x,T,"+input"),!0):void 0},Ls.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ls.prototype.reset=function(){this.forceCompositionEnd()},Ls.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ls.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ls.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ci(this.cm,function(){return pi(e.cm)})},Ls.prototype.setUneditable=function(e){e.contentEditable="false"},Ls.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||di(this.cm,No)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ls.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ls.prototype.onContextMenu=function(){},Ls.prototype.resetPosition=function(){},Ls.prototype.needsContentAttribute=!0;var As=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new _a,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null};As.prototype.init=function(e){function t(e){if(!Ne(r,e)){if(r.somethingSelected())Mo({lineWise:!1,text:r.getSelections()}),i.inaccurateSelection&&(i.prevInput="",i.inaccurateSelection=!1,a.value=Ds.text.join("\n"),ba(a));else{if(!r.options.lineWiseCopyCut)return;var t=Lo(r);Mo({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,Ca):(i.prevInput="",a.value=t.text.join("\n"),ba(a))}"cut"==e.type&&(r.state.cutIncoming=!0)}}var n=this,i=this,r=this.cm,o=this.wrapper=Ro(),a=this.textarea=o.firstChild;e.wrapper.insertBefore(o,e.wrapper.firstChild),ua&&(a.style.width="0px"),Ra(a,"input",function(){Jo&&ea>=9&&n.hasSelection&&(n.hasSelection=null),i.poll()}),Ra(a,"paste",function(e){Ne(r,e)||Do(e,r)||(r.state.pasteIncoming=!0,i.fastPoll())}),Ra(a,"cut",t),Ra(a,"copy",t),Ra(e.scroller,"paste",function(t){Ft(e,t)||Ne(r,t)||(r.state.pasteIncoming=!0,i.focus())}),Ra(e.lineSpace,"selectstart",function(t){Ft(e,t)||Ae(t)}),Ra(a,"compositionstart",function(){var e=r.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Ra(a,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},As.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,i=Sn(e);if(e.options.moveInputWithCursor){var r=dn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+a.top-o.top)),i.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+a.left-o.left))}return i},As.prototype.showSelection=function(e){var t=this.cm,i=t.display;n(i.cursorDiv,e.cursors),n(i.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},As.prototype.reset=function(e){if(!this.contextMenuPending){var t,n,i=this.cm,r=i.doc;if(i.somethingSelected()){this.prevInput="";var o=r.sel.primary();t=za&&(o.to().line-o.from().line>100||(n=i.getSelection()).length>1e3);var a=t?"-":n||i.getSelection();this.textarea.value=a,i.state.focused&&ba(this.textarea),Jo&&ea>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",Jo&&ea>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},As.prototype.getField=function(){return this.textarea},As.prototype.supportsTouch=function(){return!1},As.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!ca||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},As.prototype.blur=function(){this.textarea.blur()},As.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},As.prototype.receivedFocus=function(){this.slowPoll()},As.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},As.prototype.fastPoll=function(){function e(){var i=n.poll();i||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},As.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ba(n)&&!i&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=n.value;if(r==i&&!t.somethingSelected())return!1;if(Jo&&ea>=9&&this.hasSelection===r||da&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(8203!=o||i||(i="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(i.length,r.length);a1e3||r.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},As.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},As.prototype.onKeyPress=function(){Jo&&ea>=9&&(this.hasSelection=null),this.fastPoll()},As.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=r.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,i.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,o.selForContextMenu=r.doc.sel}}function n(){if(i.contextMenuPending=!1,i.wrapper.style.cssText=d,a.style.cssText=c,Jo&&ea<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=u),null!=a.selectionStart){(!Jo||Jo&&ea<9)&&t();var e=0,n=function(){o.selForContextMenu==r.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==i.prevInput?di(r,_r)(r):e++<10?o.detectingSelectAll=setTimeout(n,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(n,200)}}var i=this,r=i.cm,o=r.display,a=i.textarea,s=En(r,e),u=o.scroller.scrollTop;if(s&&!ra){var l=r.options.resetSelectionOnContextMenu;l&&r.doc.sel.contains(s)==-1&&di(r,hr)(r.doc,Di(s),Ca);var c=a.style.cssText,d=i.wrapper.style.cssText;i.wrapper.style.cssText="position: absolute";var h=i.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(Jo?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var f;if(ta&&(f=window.scrollY),o.input.focus(),ta&&window.scrollTo(null,f),o.input.reset(),r.somethingSelected()||(a.value=i.prevInput=" "),i.contextMenuPending=!0,o.selForContextMenu=r.doc.sel,clearTimeout(o.detectingSelectAll),Jo&&ea>=9&&t(),ya){Fe(e);var p=function(){Pe(window,"mouseup",p),setTimeout(n,20)};Ra(window,"mouseup",p)}else setTimeout(n,50)}},As.prototype.readOnlyChanged=function(e){e||this.reset()},As.prototype.setUneditable=function(){},As.prototype.needsContentAttribute=!1,To(So),Is(So);var Rs="iter insert remove copy getEditor constructor".split(" ");for(var js in vs.prototype)vs.prototype.hasOwnProperty(js)&&h(Rs,js)<0&&(So.prototype[js]=function(e){return function(){return e.apply(this.doc,arguments)}}(vs.prototype[js]));return Le(vs),So.inputStyles={textarea:As,contenteditable:Ls},So.defineMode=function(e){So.defaults.mode||"null"==e||(So.defaults.mode=e),We.apply(this,arguments)},So.defineMIME=Ve,So.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),So.defineMIME("text/plain","null"),So.defineExtension=function(e,t){So.prototype[e]=t},So.defineDocExtension=function(e,t){vs.prototype[e]=t},So.fromTextArea=Vo,Yo(So),So.version="5.25.0",So})},function(e,t,n){"use strict";var i=function(){};e.exports=i},function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(){for(var e=arguments.length,t=Array(e),n=0;n=c)return(t<0?Math.ceil:Math.floor)(t);throw new TypeError("Int cannot represent non 32-bit signed integer value: "+String(e))}function o(e){if(""===e)throw new TypeError("Float cannot represent non numeric value: (empty string)");var t=Number(e);if(t===t)return t;throw new TypeError("Float cannot represent non numeric value: "+String(e))}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLID=t.GraphQLBoolean=t.GraphQLString=t.GraphQLFloat=t.GraphQLInt=void 0;var a=n(13),s=n(17),u=i(s),l=2147483647,c=-2147483648;t.GraphQLInt=new a.GraphQLScalarType({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1. ",serialize:r,parseValue:r,parseLiteral:function(e){if(e.kind===u.INT){var t=parseInt(e.value,10);if(t<=l&&t>=c)return t}return null}}),t.GraphQLFloat=new a.GraphQLScalarType({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ",serialize:o,parseValue:o,parseLiteral:function(e){return e.kind===u.FLOAT||e.kind===u.INT?parseFloat(e.value):null}}),t.GraphQLString=new a.GraphQLScalarType({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize:String,parseValue:String,parseLiteral:function(e){return e.kind===u.STRING?e.value:null}}),t.GraphQLBoolean=new a.GraphQLScalarType({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize:Boolean,parseValue:Boolean,parseLiteral:function(e){return e.kind===u.BOOLEAN?e.value:null}}),t.GraphQLID=new a.GraphQLScalarType({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize:String,parseValue:String,parseLiteral:function(e){return e.kind===u.STRING||e.kind===u.INT?e.value:null}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!t)return e;if(t instanceof s.GraphQLList||t instanceof s.GraphQLNonNull)return o(e,t.ofType);if(e[t.name])return(0,f.default)(e[t.name]===t,"Schema must contain unique named types but contains multiple "+('types named "'+t.name+'".')),e;e[t.name]=t;var n=e;return t instanceof s.GraphQLUnionType&&(n=t.getTypes().reduce(o,n)),t instanceof s.GraphQLObjectType&&(n=t.getInterfaces().reduce(o,n)),(t instanceof s.GraphQLObjectType||t instanceof s.GraphQLInterfaceType)&&!function(){var e=t.getFields();Object.keys(e).forEach(function(t){var i=e[t];if(i.args){var r=i.args.map(function(e){return e.type});n=r.reduce(o,n)}n=o(n,i.type)})}(),t instanceof s.GraphQLInputObjectType&&!function(){var e=t.getFields();Object.keys(e).forEach(function(t){var i=e[t];n=o(n,i.type)})}(),n}function a(e,t,n){var i=t.getFields(),r=n.getFields();Object.keys(r).forEach(function(o){var a=i[o],u=r[o];(0,f.default)(a,'"'+n.name+'" expects field "'+o+'" but "'+t.name+'" does not provide it.'),(0,f.default)((0,p.isTypeSubTypeOf)(e,a.type,u.type),n.name+"."+o+' expects type "'+String(u.type)+'" but '+(t.name+"."+o+' provides type "'+String(a.type)+'".')),u.args.forEach(function(e){var i=e.name,r=(0,d.default)(a.args,function(e){return e.name===i});(0,f.default)(r,n.name+"."+o+' expects argument "'+i+'" but '+(t.name+"."+o+" does not provide it.")),(0,f.default)((0,p.isEqualType)(e.type,r.type),n.name+"."+o+"("+i+":) expects type "+('"'+String(e.type)+'" but ')+(t.name+"."+o+"("+i+":) provides type ")+('"'+String(r.type)+'".'))}),a.args.forEach(function(e){var i=e.name,r=(0,d.default)(u.args,function(e){return e.name===i});r||(0,f.default)(!(e.type instanceof s.GraphQLNonNull),t.name+"."+o+"("+i+":) is of required type "+('"'+String(e.type)+'" but is not also provided by the ')+("interface "+n.name+"."+o+"."))})})}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLSchema=void 0;var s=n(13),u=n(41),l=n(42),c=n(61),d=i(c),h=n(20),f=i(h),p=n(120);t.GraphQLSchema=function(){function e(t){var n=this;r(this,e),(0,f.default)("object"==typeof t,"Must provide configuration object."),(0,f.default)(t.query instanceof s.GraphQLObjectType,"Schema query must be Object Type but got: "+String(t.query)+"."),this._queryType=t.query,(0,f.default)(!t.mutation||t.mutation instanceof s.GraphQLObjectType,"Schema mutation must be Object Type if provided but got: "+String(t.mutation)+"."),this._mutationType=t.mutation,(0,f.default)(!t.subscription||t.subscription instanceof s.GraphQLObjectType,"Schema subscription must be Object Type if provided but got: "+String(t.subscription)+"."),this._subscriptionType=t.subscription,(0,f.default)(!t.types||Array.isArray(t.types),"Schema types must be Array if provided but got: "+String(t.types)+"."),(0,f.default)(!t.directives||Array.isArray(t.directives)&&t.directives.every(function(e){return e instanceof u.GraphQLDirective}),"Schema directives must be Array if provided but got: "+String(t.directives)+"."),this._directives=t.directives||u.specifiedDirectives;var i=[this.getQueryType(),this.getMutationType(),this.getSubscriptionType(),l.__Schema],c=t.types;c&&(i=i.concat(c)),this._typeMap=i.reduce(o,Object.create(null)),this._implementations=Object.create(null),Object.keys(this._typeMap).forEach(function(e){var t=n._typeMap[e];t instanceof s.GraphQLObjectType&&t.getInterfaces().forEach(function(e){var i=n._implementations[e.name];i?i.push(t):n._implementations[e.name]=[t]})}),Object.keys(this._typeMap).forEach(function(e){var t=n._typeMap[e];t instanceof s.GraphQLObjectType&&t.getInterfaces().forEach(function(e){return a(n,t,e)})})}return e.prototype.getQueryType=function(){return this._queryType},e.prototype.getMutationType=function(){return this._mutationType},e.prototype.getSubscriptionType=function(){return this._subscriptionType},e.prototype.getTypeMap=function(){return this._typeMap},e.prototype.getType=function(e){return this.getTypeMap()[e]},e.prototype.getPossibleTypes=function(e){return e instanceof s.GraphQLUnionType?e.getTypes():((0,f.default)(e instanceof s.GraphQLInterfaceType),this._implementations[e.name])},e.prototype.isPossibleType=function(e,t){var n=this._possibleTypeMap;if(n||(this._possibleTypeMap=n=Object.create(null)),!n[e.name]){var i=this.getPossibleTypes(e);(0,f.default)(Array.isArray(i),"Could not find possible implementing types for "+e.name+" in schema. Check that schema.types is defined and is an array of all possible types in the schema."),n[e.name]=i.reduce(function(e,t){return e[t.name]=!0,e},Object.create(null))}return Boolean(n[e.name][t.name])},e.prototype.getDirectives=function(){return this._directives},e.prototype.getDirective=function(e){return(0,d.default)(this.getDirectives(),function(t){return t.name===e})},e}()},function(e,t,n){"use strict";var i=function(e,t,n,i,r,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,r,o,a,s],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};e.exports=i; +},function(e,t,n){function i(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(e)?o(e[0],e[1]):r(e):u(e)}var r=n(588),o=n(589),a=n(102),s=n(26),u=n(686);e.exports=i},function(e,t,n){function i(e,t){return r(e)?e:o(e,t)?[e]:a(s(e))}var r=n(26),o=n(192),a=n(652),s=n(692);e.exports=i},function(e,t,n){function i(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}var r=n(198),o=1/0;e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initialServerState=t.getQuery=t.getShareId=t.queryFound=t.updateShareId=t.deleteScratchpadEntries=t.addScratchpadEntry=t.updateRegex=t.hideProgressBar=t.updateProgress=t.updateFullscreen=t.runQuery=t.resetResponseState=t.renderGraph=t.updateLatency=t.setCurrentNode=t.deleteAllQueries=t.deleteQuery=t.selectQuery=t.updatePartial=void 0;var i=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=n(113),o=t.updatePartial=function(e){return{type:"UPDATE_PARTIAL",partial:e}},a=t.selectQuery=function(e){return{type:"SELECT_QUERY",text:e}},s=(t.deleteQuery=function(e){return{type:"DELETE_QUERY",idx:e}},t.deleteAllQueries=function(){return{type:"DELETE_ALL_QUERIES"}},t.setCurrentNode=function(e){return{type:"SELECT_NODE",node:e}},function(e){return{type:"ADD_QUERY",text:e}}),u=function(){return{type:"IS_FETCHING",fetching:!0}},l=function(){return{type:"IS_FETCHING",fetching:!1}},c=function(e,t,n){return{type:"SUCCESS_RESPONSE",text:e,data:t,isMutation:n}},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"ERROR_RESPONSE",text:e,json:t}},h=function(e){return Object.assign({type:"RESPONSE_PROPERTIES"},e)},f=t.updateLatency=function(e){return Object.assign({type:"UPDATE_LATENCY"},e)},p=t.renderGraph=function(e,t,n){return function(a,s){var u=(0,r.processGraph)(t,n,e,s().query.propertyRegex),l=i(u,5),c=l[0],d=l[1],p=l[2],v=l[3],m=l[4];a(f({server:t.server_latency&&t.server_latency.total})),a(o(v <_share_> "+i+" .\n }\n }";fetch((0,r.dgraphQuery)(!1),{method:"POST",mode:"cors",headers:{Accept:"application/json","Content-Type":"text/plain"},body:o}).then(r.checkStatus).then(function(e){return e.json()}).then(function(t){t.uids&&t.uids.share&&e(m(t.uids.share))}).catch(function(t){e(d("Got error while saving querying for share: "+t.message))})},b=(t.getShareId=function(e,t){var n=t().query.text;if(""!==n){var i=JSON.stringify(encodeURI(n)),o="\nmutation {\n schema {\n _share_: string @index(exact) .\n }\n}\n{\n query(func:eq(_share_, "+i+")) {\n _uid_\n }\n}";(0,r.timeout)(6e3,fetch((0,r.dgraphQuery)(!1),{method:"POST",mode:"cors",headers:{Accept:"application/json","Content-Type":"text/plain"},body:o}).then(r.checkStatus).then(function(e){return e.json()}).then(function(n){n.query&&n.query.length>0?e(m(n.query[0]._uid_)):g(e,t)})).catch(function(t){e(d("Got error while saving querying for share: "+t.message))})}},t.getQuery=function(e){return function(t){(0,r.timeout)(6e3,fetch((0,r.dgraphQuery)(!1),{method:"POST",mode:"cors",headers:{Accept:"application/json"},body:"{\n query(id: "+e+") {\n _share_\n }\n }"}).then(r.checkStatus).then(function(e){return e.json()}).then(function(e){return e.query&&e.query.length>0?void t(a(decodeURI(e.query[0]._share_))):void t(y(!1))})).catch(function(n){t(d("Got error while getting query for id: "+e+", err: "+n.message))})}},function(e){return{type:"UPDATE_ALLOWED",allowed:e}});t.initialServerState=function(){var e=[(0,r.dgraphAddress)(),"ui/init"].join("/");return function(t){(0,r.timeout)(6e3,fetch(e,{method:"GET",mode:"cors",headers:{Accept:"application/json"}}).then(r.checkStatus).then(function(e){return e.json()}).then(function(e){t(b(e.share))})).catch(function(e){t(d("Got error while communicating with server: "+e.message))})}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(66),r=n(233),o=n(161),a=Object.defineProperty;t.f=n(67)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){"use strict";function n(e,t){for(var n=0;n1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(r--,a):void 0,s&&o(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++i1){for(var m=Array(v),y=0;y1){for(var b=Array(g),_=0;_0){var l=t[0];u=l&&l.loc&&l.loc.source}var c=o;!c&&t&&(c=t.filter(function(e){return Boolean(e.loc)}).map(function(e){return e.loc.start})),c&&0===c.length&&(c=void 0);var d=void 0,h=u;h&&c&&(d=c.map(function(e){return(0,r.getLocation)(h,e)})),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:t||void 0},source:{value:u||void 0},positions:{value:c||void 0},originalError:{value:s}})}Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=i;var r=n(173);i.prototype=Object.create(Error.prototype,{constructor:{value:i},name:{value:"GraphQLError"}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(520);Object.defineProperty(t,"graphql",{enumerable:!0,get:function(){return i.graphql}});var r=n(522);Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return r.GraphQLSchema}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return r.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return r.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return r.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return r.GraphQLUnionType}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return r.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return r.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return r.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return r.GraphQLNonNull}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return r.GraphQLDirective}}),Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return r.TypeKind}}),Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return r.DirectiveLocation}}),Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return r.GraphQLInt}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return r.GraphQLFloat}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return r.GraphQLString}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return r.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return r.GraphQLID}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return r.specifiedDirectives}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return r.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return r.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return r.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return r.DEFAULT_DEPRECATION_REASON}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return r.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return r.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return r.TypeNameMetaFieldDef}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return r.__Schema}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return r.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return r.__DirectiveLocation}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return r.__Type}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return r.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return r.__InputValue}}),Object.defineProperty(t,"__EnumValue",{enumerable:!0,get:function(){return r.__EnumValue}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return r.__TypeKind}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return r.isType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return r.isInputType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return r.isOutputType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return r.isLeafType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return r.isCompositeType}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return r.isAbstractType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return r.isNamedType}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return r.assertType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return r.assertInputType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return r.assertOutputType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return r.assertLeafType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return r.assertCompositeType}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return r.assertAbstractType}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return r.assertNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return r.getNullableType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return r.getNamedType}});var o=n(521);Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return o.Source}}),Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return o.getLocation}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return o.parseValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return o.parseType}}),Object.defineProperty(t,"print",{enumerable:!0,get:function(){return o.print}}),Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return o.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return o.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return o.visitWithTypeInfo}}),Object.defineProperty(t,"Kind",{enumerable:!0,get:function(){return o.Kind}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return o.TokenKind}}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return o.BREAK}});var a=n(519);Object.defineProperty(t,"execute",{enumerable:!0,get:function(){return a.execute}}),Object.defineProperty(t,"defaultFieldResolver",{enumerable:!0,get:function(){return a.defaultFieldResolver}}),Object.defineProperty(t,"responsePathAsArray",{enumerable:!0,get:function(){return a.responsePathAsArray}});var s=n(533);Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return s.validate}}),Object.defineProperty(t,"ValidationContext",{enumerable:!0,get:function(){return s.ValidationContext}}),Object.defineProperty(t,"specifiedRules",{enumerable:!0,get:function(){return s.specifiedRules}});var u=n(11);Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return u.GraphQLError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return u.formatError}});var l=n(529);Object.defineProperty(t,"introspectionQuery",{enumerable:!0,get:function(){return l.introspectionQuery}}),Object.defineProperty(t,"getOperationAST",{enumerable:!0,get:function(){return l.getOperationAST}}),Object.defineProperty(t,"buildClientSchema",{enumerable:!0,get:function(){return l.buildClientSchema}}),Object.defineProperty(t,"buildASTSchema",{enumerable:!0,get:function(){return l.buildASTSchema}}),Object.defineProperty(t,"buildSchema",{enumerable:!0,get:function(){return l.buildSchema}}),Object.defineProperty(t,"extendSchema",{enumerable:!0,get:function(){return l.extendSchema}}),Object.defineProperty(t,"printSchema",{enumerable:!0,get:function(){return l.printSchema}}),Object.defineProperty(t,"printType",{enumerable:!0,get:function(){return l.printType}}),Object.defineProperty(t,"typeFromAST",{enumerable:!0,get:function(){return l.typeFromAST}}),Object.defineProperty(t,"valueFromAST",{enumerable:!0,get:function(){return l.valueFromAST}}),Object.defineProperty(t,"astFromValue",{enumerable:!0,get:function(){return l.astFromValue}}),Object.defineProperty(t,"TypeInfo",{enumerable:!0,get:function(){return l.TypeInfo}}),Object.defineProperty(t,"isValidJSValue",{enumerable:!0,get:function(){return l.isValidJSValue}}),Object.defineProperty(t,"isValidLiteralValue",{enumerable:!0,get:function(){return l.isValidLiteralValue}}),Object.defineProperty(t,"concatAST",{enumerable:!0,get:function(){return l.concatAST}}),Object.defineProperty(t,"separateOperations",{enumerable:!0,get:function(){return l.separateOperations}}),Object.defineProperty(t,"isEqualType",{enumerable:!0,get:function(){return l.isEqualType}}),Object.defineProperty(t,"isTypeSubTypeOf",{enumerable:!0,get:function(){return l.isTypeSubTypeOf}}),Object.defineProperty(t,"doTypesOverlap",{enumerable:!0,get:function(){return l.doTypesOverlap}}),Object.defineProperty(t,"assertValidName",{enumerable:!0,get:function(){return l.assertValidName}}),Object.defineProperty(t,"findBreakingChanges",{enumerable:!0,get:function(){return l.findBreakingChanges}}),Object.defineProperty(t,"findDeprecatedUsages",{enumerable:!0,get:function(){return l.findDeprecatedUsages}})},function(e,t){"use strict";function n(e){return void 0===e||e!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t,n){var r=n||s,o=void 0,l=Array.isArray(e),c=[e],d=-1,h=[],f=void 0,p=[],v=[],m=e;do{d++;var y=d===c.length,g=void 0,b=void 0,_=y&&0!==h.length;if(y){if(g=0===v.length?void 0:p.pop(),b=f,f=v.pop(),_){if(l)b=b.slice();else{var w={};for(var x in b)b.hasOwnProperty(x)&&(w[x]=b[x]);b=w}for(var T=0,E=0;E=200&&e.status<300)return e;var t=new Error(e.statusText);throw t.response=e,t}function o(e,t){return new Promise(function(n,i){setTimeout(function(){i(new Error("timeout"))},e),t.then(n,i)})}function a(e){var t=["max(","min(","sum("];for(var n in e)if(e.hasOwnProperty(n)){if("count"===n)return["count","count"];var i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0){var u=a.value;if(n.startsWith(u))return[u.substr(0,u.length-1),n]}}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}}return["",""]}function s(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t.test(n))return n;return""}function u(e){var t=e.split(" "),n=t[0];return e=n.length>20?[n.substr(0,9),n.substr(9,7)+"..."].join("-\n"):n.length>10?[n.substr(0,9),n.substr(9)].join("-\n"):t.length>1?t[1].length>10?[n,t[1].substr(0,7)+"..."].join("\n"):[n,t[1]].join("\n"):n}function l(e,t){var n="",i=Object.keys(e);if(1===i.length&&(n=a(e)[0],""!==n))return n;var r=s(e,t);return e[r]||""}function c(e,t){return t.get({filter:function(t){return t.from===e}})}function d(e){return e.indexOf("shortest")!==-1&&e.indexOf("to")!==-1&&e.indexOf("from")!==-1}function h(e){return e.indexOf("orderasc")!==-1||e.indexOf("orderdesc")!==-1}function f(e){var t=Object.keys(e);if(0===t.length)return!1;for(var n=0;n0&&e[t[n]];return!1}function p(e){for(var t in e)if(Array.isArray(e[t]))return!0;return!1}function v(e){if(0===e.length)return(0,k.default)();var t=e[0];return e.splice(0,1),t}function m(e,t,n,i,r){e[t]={label:n,color:v(r)},i[n]=!0}function y(e,t,n,i){var r=n[e];if(void 0!==r)return r;var o=void 0,a=e.indexOf(".");if(a!==-1&&0!==a&&a!==e.length-1)return o=e[0]+e[a+1],m(n,e,o,t,i),n[e];for(var s=1;s<=e.length;s++)if(o=e.substr(0,s),(1!==o.length||o.toLowerCase()!==o.toUpperCase())&&void 0===t[o])return m(n,e,o,t,i),n[e];return n[e]={label:e,color:v(i)},t[e]=!0,n[e]}function g(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({label:e[n].label,pred:n,color:e[n].color});return t}function b(e,t,n){for(var i in e)if(e.hasOwnProperty(i))if("_"===i)t.facets=e._;else{var r=e[i];for(var o in r)r.hasOwnProperty(o)&&(n.facets[i+"["+o+"]"]=r[o])}}function _(e,t){var n=JSON.parse(t.title),i=n.attrs._uid_,r=e.findIndex(function(e){return e.id===i});if(r===-1)return void console.warn("Expected to find node with uid: ",i);var o=e[r],a=JSON.parse(o.title);D.default.merge(a,n),o.title=JSON.stringify(a),o.color=t.color,""===o.label&&(o.label=t.label),""===o.name&&""!==t.name&&(o.name=t.name),e[r]=o}function w(e,t,n,i){var r=[],o={},s={},c={},d=[],h=[],f={node:{},src:{id:"",pred:"empty"}},v=!1,m=[],w=void 0,x=void 0,T=["#47c0ee","#8dd593","#f6c4e1","#8595e1","#f0b98d","#f79cd4","#bec1d4","#11c638","#b5bbe3","#7d87b9","#e07b91","#4a6fe3"],E={},S=void 0,k=void 0,P=new RegExp(i),N=!1;e=D.default.cloneDeep(e);for(var I in e){if(!e.hasOwnProperty(I))return;if(v=!1,m=[],"server_latency"!==I&&"uids"!==I){var L=e[I];N="schema"===I;for(var A=0;A50&&(w=d.length,x=h.length),0===r.length?"break":(r.push(f),"continue");var n={attrs:{},facets:{}},p=void 0,v={facets:{}},m=void 0;m=void 0===e.node._uid_?(0,M.default)():e.node._uid_,p=t?[e.src.id,m].filter(function(e){return e}).join("-"):m;for(var g in e.node)if(e.node.hasOwnProperty(g)){var I=e.node[g];if(N&&"tokenizer"===g)n.attrs[g]=JSON.stringify(I);else if(Array.isArray(I))for(var L=I,A=1,R=0;R1e3&&void 0===w&&(w=d.length,x=h.length),""===e.src.id)return"continue";var Q=[e.src.id,p].filter(function(e){return e}).join("-");if(c[Q]){var q=h.findIndex(function(t){return t.from===e.src.id&&t.to===p});if(q===-1)return"continue";var K=h[q],X=JSON.parse(K.title);D.default.merge(v,X),K.title=JSON.stringify(v),h[q]=K}else c[Q]=!0,F={from:e.src.id,to:p,title:JSON.stringify(v),label:W.label,color:W.color,arrows:"to"},h.push(F)};e:for(;r.length>0;){var F,B=j();switch(B){case"break":break e;case"continue":continue}}return[d,h,g(E),w,x]}function x(e,t){var n=e.toLowerCase(),i=t.toLowerCase();return ni?1:0}function T(){return window.SERVER_URL}function E(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[T(),"query"].join("/");return e&&(t=[t,"debug=true"].join("?")),t}Object.defineProperty(t,"__esModule",{value:!0});var C=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.checkStatus=r,t.timeout=o,t.aggregationPrefix=a,t.outgoingEdges=c,t.isShortestPath=d,t.showTreeView=h,t.isNotEmpty=f,t.processGraph=w,t.sortStrings=x,t.dgraphAddress=T,t.dgraphQuery=E;var S=n(702),k=i(S),P=n(902),M=i(P),N=n(677),D=i(N)},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(50),o=i(r),a=function(){};o.default&&(a=function(){return document.addEventListener?function(e,t,n,i){return e.addEventListener(t,n,i||!1)}:document.attachEvent?function(e,t,n){return e.attachEvent("on"+t,function(t){t=t||window.event,t.target=t.target||t.srcElement,t.currentTarget=e,n.call(e,t)})}:void 0}()),t.default=a,e.exports=t.default},function(e,t){"use strict";function n(e){return e===e.window?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i="",r="",o=t;if("string"==typeof t){if(void 0===n)return e.style[(0,a.default)(t)]||(0,c.default)(e).getPropertyValue((0,u.default)(t));(o={})[t]=n}Object.keys(o).forEach(function(t){var n=o[t];n||0===n?(0,v.default)(t)?r+=t+"("+n+") ":i+=(0,u.default)(t)+": "+n+";":(0,h.default)(e,(0,u.default)(t))}),r&&(i+=f.transform+": "+r+";"),e.style.cssText+=";"+i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(254),a=i(o),s=n(492),u=i(s),l=n(487),c=i(l),d=n(488),h=i(d),f=n(253),p=n(489),v=i(p);e.exports=t.default},function(e,t,n){"use strict";function i(e,t){var n="string"==typeof e?new oe.Source(e):e,i=(0,se.createLexer)(n,t||{});return s(i)}function r(e,t){var n="string"==typeof e?new oe.Source(e):e,i=(0,se.createLexer)(n,t||{});ee(i,se.TokenKind.SOF);var r=x(i,!1);return ee(i,se.TokenKind.EOF),r}function o(e,t){var n="string"==typeof e?new oe.Source(e):e,i=(0,se.createLexer)(n,t||{});ee(i,se.TokenKind.SOF);var r=M(i);return ee(i,se.TokenKind.EOF),r}function a(e){var t=ee(e,se.TokenKind.NAME);return{kind:ue.NAME,value:t.value,loc:X(e,t)}}function s(e){var t=e.token;ee(e,se.TokenKind.SOF);var n=[];do n.push(u(e));while(!J(e,se.TokenKind.EOF));return{kind:ue.DOCUMENT,definitions:n,loc:X(e,t)}}function u(e){if(Z(e,se.TokenKind.BRACE_L))return l(e);if(Z(e,se.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return l(e);case"fragment":return _(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return D(e)}throw ne(e)}function l(e){var t=e.token;if(Z(e,se.TokenKind.BRACE_L))return{kind:ue.OPERATION_DEFINITION,operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:p(e),loc:X(e,t)};var n=c(e),i=void 0;return Z(e,se.TokenKind.NAME)&&(i=a(e)),{kind:ue.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:d(e),directives:k(e),selectionSet:p(e),loc:X(e,t)}}function c(e){var t=ee(e,se.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw ne(e,t)}function d(e){return Z(e,se.TokenKind.PAREN_L)?re(e,se.TokenKind.PAREN_L,h,se.TokenKind.PAREN_R):[]}function h(e){var t=e.token;return{kind:ue.VARIABLE_DEFINITION,variable:f(e),type:(ee(e,se.TokenKind.COLON),M(e)),defaultValue:J(e,se.TokenKind.EQUALS)?x(e,!0):null,loc:X(e,t)}}function f(e){var t=e.token;return ee(e,se.TokenKind.DOLLAR),{kind:ue.VARIABLE,name:a(e),loc:X(e,t)}}function p(e){var t=e.token;return{kind:ue.SELECTION_SET,selections:re(e,se.TokenKind.BRACE_L,v,se.TokenKind.BRACE_R),loc:X(e,t)}}function v(e){return Z(e,se.TokenKind.SPREAD)?b(e):m(e)}function m(e){var t=e.token,n=a(e),i=void 0,r=void 0;return J(e,se.TokenKind.COLON)?(i=n,r=a(e)):(i=null,r=n),{kind:ue.FIELD,alias:i,name:r,arguments:y(e),directives:k(e),selectionSet:Z(e,se.TokenKind.BRACE_L)?p(e):null,loc:X(e,t)}}function y(e){return Z(e,se.TokenKind.PAREN_L)?re(e,se.TokenKind.PAREN_L,g,se.TokenKind.PAREN_R):[]}function g(e){var t=e.token;return{kind:ue.ARGUMENT,name:a(e),value:(ee(e,se.TokenKind.COLON),x(e,!1)),loc:X(e,t)}}function b(e){var t=e.token;if(ee(e,se.TokenKind.SPREAD),Z(e,se.TokenKind.NAME)&&"on"!==e.token.value)return{kind:ue.FRAGMENT_SPREAD,name:w(e),directives:k(e),loc:X(e,t)};var n=null;return"on"===e.token.value&&(e.advance(),n=N(e)),{kind:ue.INLINE_FRAGMENT,typeCondition:n,directives:k(e),selectionSet:p(e),loc:X(e,t)}}function _(e){var t=e.token;return te(e,"fragment"),{kind:ue.FRAGMENT_DEFINITION,name:w(e),typeCondition:(te(e,"on"),N(e)),directives:k(e),selectionSet:p(e),loc:X(e,t)}}function w(e){if("on"===e.token.value)throw ne(e);return a(e)}function x(e,t){var n=e.token;switch(n.kind){case se.TokenKind.BRACKET_L:return C(e,t);case se.TokenKind.BRACE_L:return O(e,t);case se.TokenKind.INT:return e.advance(),{kind:ue.INT,value:n.value,loc:X(e,n)};case se.TokenKind.FLOAT:return e.advance(),{kind:ue.FLOAT,value:n.value,loc:X(e,n)};case se.TokenKind.STRING:return e.advance(),{kind:ue.STRING,value:n.value,loc:X(e,n)};case se.TokenKind.NAME:return"true"===n.value||"false"===n.value?(e.advance(),{kind:ue.BOOLEAN,value:"true"===n.value,loc:X(e,n)}):"null"===n.value?(e.advance(),{kind:ue.NULL,loc:X(e,n)}):(e.advance(),{kind:ue.ENUM,value:n.value,loc:X(e,n)});case se.TokenKind.DOLLAR:if(!t)return f(e)}throw ne(e)}function T(e){return x(e,!0)}function E(e){return x(e,!1)}function C(e,t){var n=e.token,i=t?T:E;return{kind:ue.LIST,values:ie(e,se.TokenKind.BRACKET_L,i,se.TokenKind.BRACKET_R),loc:X(e,n)}}function O(e,t){var n=e.token;ee(e,se.TokenKind.BRACE_L);for(var i=[];!J(e,se.TokenKind.BRACE_R);)i.push(S(e,t));return{kind:ue.OBJECT,fields:i,loc:X(e,n)}}function S(e,t){var n=e.token;return{kind:ue.OBJECT_FIELD,name:a(e),value:(ee(e,se.TokenKind.COLON),x(e,t)),loc:X(e,n)}}function k(e){for(var t=[];Z(e,se.TokenKind.AT);)t.push(P(e));return t}function P(e){var t=e.token;return ee(e,se.TokenKind.AT),{kind:ue.DIRECTIVE,name:a(e),arguments:y(e),loc:X(e,t)}}function M(e){var t=e.token,n=void 0;return J(e,se.TokenKind.BRACKET_L)?(n=M(e),ee(e,se.TokenKind.BRACKET_R),n={kind:ue.LIST_TYPE,type:n,loc:X(e,t)}):n=N(e),J(e,se.TokenKind.BANG)?{kind:ue.NON_NULL_TYPE,type:n,loc:X(e,t)}:n}function N(e){var t=e.token;return{kind:ue.NAMED_TYPE,name:a(e),loc:X(e,t)}}function D(e){if(Z(e,se.TokenKind.NAME))switch(e.token.value){case"schema":return I(e);case"scalar":return A(e);case"type":return R(e);case"interface":return H(e);case"union":return G(e);case"enum":return W(e);case"input":return Y(e);case"extend":return Q(e);case"directive":return q(e)}throw ne(e)}function I(e){var t=e.token;te(e,"schema");var n=k(e),i=re(e,se.TokenKind.BRACE_L,L,se.TokenKind.BRACE_R);return{kind:ue.SCHEMA_DEFINITION,directives:n,operationTypes:i,loc:X(e,t)}}function L(e){var t=e.token,n=c(e);ee(e,se.TokenKind.COLON);var i=N(e);return{kind:ue.OPERATION_TYPE_DEFINITION,operation:n,type:i,loc:X(e,t)}}function A(e){var t=e.token;te(e,"scalar");var n=a(e),i=k(e);return{kind:ue.SCALAR_TYPE_DEFINITION,name:n,directives:i,loc:X(e,t)}}function R(e){var t=e.token;te(e,"type");var n=a(e),i=j(e),r=k(e),o=ie(e,se.TokenKind.BRACE_L,F,se.TokenKind.BRACE_R);return{kind:ue.OBJECT_TYPE_DEFINITION,name:n,interfaces:i,directives:r,fields:o,loc:X(e,t)}}function j(e){var t=[];if("implements"===e.token.value){e.advance();do t.push(N(e));while(Z(e,se.TokenKind.NAME))}return t}function F(e){var t=e.token,n=a(e),i=B(e);ee(e,se.TokenKind.COLON);var r=M(e),o=k(e);return{kind:ue.FIELD_DEFINITION,name:n,arguments:i,type:r,directives:o,loc:X(e,t)}}function B(e){return Z(e,se.TokenKind.PAREN_L)?re(e,se.TokenKind.PAREN_L,z,se.TokenKind.PAREN_R):[]}function z(e){var t=e.token,n=a(e);ee(e,se.TokenKind.COLON);var i=M(e),r=null;J(e,se.TokenKind.EQUALS)&&(r=T(e));var o=k(e);return{kind:ue.INPUT_VALUE_DEFINITION,name:n,type:i,defaultValue:r,directives:o,loc:X(e,t)}}function H(e){var t=e.token;te(e,"interface");var n=a(e),i=k(e),r=ie(e,se.TokenKind.BRACE_L,F,se.TokenKind.BRACE_R);return{kind:ue.INTERFACE_TYPE_DEFINITION,name:n,directives:i,fields:r,loc:X(e,t)}}function G(e){var t=e.token;te(e,"union");var n=a(e),i=k(e);ee(e,se.TokenKind.EQUALS);var r=U(e);return{kind:ue.UNION_TYPE_DEFINITION,name:n,directives:i,types:r,loc:X(e,t)}}function U(e){var t=[];do t.push(N(e));while(J(e,se.TokenKind.PIPE));return t}function W(e){var t=e.token;te(e,"enum");var n=a(e),i=k(e),r=re(e,se.TokenKind.BRACE_L,V,se.TokenKind.BRACE_R);return{kind:ue.ENUM_TYPE_DEFINITION,name:n,directives:i,values:r,loc:X(e,t)}}function V(e){var t=e.token,n=a(e),i=k(e);return{kind:ue.ENUM_VALUE_DEFINITION,name:n,directives:i,loc:X(e,t)}}function Y(e){var t=e.token;te(e,"input");var n=a(e),i=k(e),r=ie(e,se.TokenKind.BRACE_L,z,se.TokenKind.BRACE_R);return{kind:ue.INPUT_OBJECT_TYPE_DEFINITION,name:n,directives:i,fields:r,loc:X(e,t)}}function Q(e){var t=e.token;te(e,"extend");var n=R(e);return{kind:ue.TYPE_EXTENSION_DEFINITION,definition:n,loc:X(e,t)}}function q(e){var t=e.token;te(e,"directive"),ee(e,se.TokenKind.AT);var n=a(e),i=B(e);te(e,"on");var r=K(e);return{kind:ue.DIRECTIVE_DEFINITION,name:n,arguments:i,locations:r,loc:X(e,t)}}function K(e){var t=[];do t.push(a(e));while(J(e,se.TokenKind.PIPE));return t}function X(e,t){if(!e.options.noLocation)return new $(t,e.lastToken,e.source)}function $(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function Z(e,t){return e.token.kind===t}function J(e,t){var n=e.token.kind===t;return n&&e.advance(),n}function ee(e,t){var n=e.token;if(n.kind===t)return e.advance(),n;throw(0,ae.syntaxError)(e.source,n.start,"Expected "+t+", found "+(0,se.getTokenDesc)(n))}function te(e,t){var n=e.token;if(n.kind===se.TokenKind.NAME&&n.value===t)return e.advance(),n;throw(0,ae.syntaxError)(e.source,n.start,'Expected "'+t+'", found '+(0,se.getTokenDesc)(n))}function ne(e,t){var n=t||e.token;return(0,ae.syntaxError)(e.source,n.start,"Unexpected "+(0,se.getTokenDesc)(n))}function ie(e,t,n,i){ee(e,t);for(var r=[];!J(e,i);)r.push(n(e));return r}function re(e,t,n,i){ee(e,t);for(var r=[n(e)];!J(e,i);)r.push(n(e));return r}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=i,t.parseValue=r,t.parseType=o,t.parseConstValue=T,t.parseTypeReference=M,t.parseNamedType=N;var oe=n(174),ae=n(11),se=n(172),ue=n(17);$.prototype.toJSON=$.prototype.inspect=function(){return{start:this.start,end:this.end}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(e instanceof s.GraphQLNonNull)return t&&t.kind!==a.NULL?r(e.ofType,t):['Expected "'+String(e)+'", found null.'];if(!t||t.kind===a.NULL)return[];if(t.kind===a.VARIABLE)return[];if(e instanceof s.GraphQLList){var n=function(){var n=e.ofType;return t.kind===a.LIST?{v:t.values.reduce(function(e,t,i){var o=r(n,t);return e.concat(o.map(function(e){return"In element #"+i+": "+e}))},[])}:{v:r(n,t)}}();if("object"==typeof n)return n.v}if(e instanceof s.GraphQLInputObjectType){var i=function(){if(t.kind!==a.OBJECT)return{v:['Expected "'+e.name+'", found not an object.']};var n=e.getFields(),i=[],o=t.fields;o.forEach(function(e){n[e.name.value]||i.push('In field "'+e.name.value+'": Unknown field.')});var s=(0,d.default)(o,function(e){return e.name.value});return Object.keys(n).forEach(function(e){var t=r(n[e].type,s[e]&&s[e].value);i.push.apply(i,t.map(function(t){return'In field "'+e+'": '+t}))}),{v:i}}();if("object"==typeof i)return i.v}(0,l.default)(e instanceof s.GraphQLScalarType||e instanceof s.GraphQLEnumType,"Must be input type");var u=e.parseLiteral(t);return(0,f.default)(u)?['Expected type "'+e.name+'", found '+(0,o.print)(t)+"."]:[]}Object.defineProperty(t,"__esModule",{value:!0}),t.isValidLiteralValue=r;var o=n(35),a=n(17),s=n(13),u=n(20),l=i(u),c=n(72),d=i(c),h=n(51),f=i(h)},function(e,t,n){"use strict";function i(e,t){return e===t||(e instanceof a.GraphQLNonNull&&t instanceof a.GraphQLNonNull?i(e.ofType,t.ofType):e instanceof a.GraphQLList&&t instanceof a.GraphQLList&&i(e.ofType,t.ofType))}function r(e,t,n){return t===n||(n instanceof a.GraphQLNonNull?t instanceof a.GraphQLNonNull&&r(e,t.ofType,n.ofType):t instanceof a.GraphQLNonNull?r(e,t.ofType,n):n instanceof a.GraphQLList?t instanceof a.GraphQLList&&r(e,t.ofType,n.ofType):!(t instanceof a.GraphQLList)&&!!((0,a.isAbstractType)(n)&&t instanceof a.GraphQLObjectType&&e.isPossibleType(n,t)))}function o(e,t,n){var i=n;return t===i||(t instanceof a.GraphQLInterfaceType||t instanceof a.GraphQLUnionType?i instanceof a.GraphQLInterfaceType||i instanceof a.GraphQLUnionType?e.getPossibleTypes(t).some(function(t){return e.isPossibleType(i,t)}):e.isPossibleType(t,i):(i instanceof a.GraphQLInterfaceType||i instanceof a.GraphQLUnionType)&&e.isPossibleType(i,t))}Object.defineProperty(t,"__esModule",{value:!0}),t.isEqualType=i,t.isTypeSubTypeOf=r,t.doTypesOverlap=o;var a=n(13)},function(e,t){function n(e){return!!a(e)}function i(e){var t=null!=e&&e.length;return"number"==typeof t&&t>=0&&t%1===0}function r(e){return Object(e)===e&&(i(e)||n(e))}function o(e){var t=a(e);if(t)return t.call(e)}function a(e){if(null!=e){var t=c&&e[c]||e["@@iterator"];if("function"==typeof t)return t}}function s(e,t,n){if(null!=e){if("function"==typeof e.forEach)return e.forEach(t,n);var r=0,a=o(e);if(a){for(var s;!(s=a.next()).done;)if(t.call(n,s.value,r++,e),r>9999999)throw new TypeError("Near-infinite iteration.")}else if(i(e))for(;r=this._o.length?(this._o=void 0,{value:void 0,done:!0}):{value:this._o[this._i++],done:!1}}},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e]/;e.exports=i},function(e,t,n){"use strict";var i,r=n(23),o=n(207),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(215),l=u(function(e,t){if(e.namespaceURI!==o.svg||"innerHTML"in e)e.innerHTML=t;else{i=i||document.createElement("div"),i.innerHTML=""+t+"";for(var n=i.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(r.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),c=null}e.exports=l},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(){function e(){for(var e=arguments.length,t=Array(e),i=0;i>",s=o||n;if(null==t[n])return new Error("The "+r+" `"+s+"` is required to make "+("`"+a+"` accessible for users of assistive ")+"technologies such as screen readers.");for(var u=arguments.length,l=Array(u>5?u-5:0),c=5;c>",u=a||i;if(null==n[i])return t?new Error("Required "+o+" `"+u+"` was not specified "+("in `"+s+"`.")):null;for(var l=arguments.length,c=Array(l>6?l-6:0),d=6;d";for(t.style.display="none",n(426).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),l=e.F;i--;)delete l[u][o[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=i(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(60).f,r=n(59),o=n(34)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t,n){var i=n(158)("keys"),r=n(114);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(48),r="__core-js_shared__",o=i[r]||(i[r]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(151);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(88);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(48),r=n(33),o=n(153),a=n(163),s=n(60).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(34)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return(0,c.default)(t,function(t){switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?o(e,n.parentType,t.name):null,n.type=n.fieldDef&&n.fieldDef.type;break;case"SelectionSet":n.parentType=(0,s.getNamedType)(n.type);break;case"Directive":n.directiveDef=t.name&&e.getDirective(t.name);break;case"Arguments":var i="Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&o(e,n.parentType,t.prevState.name):null;n.argDefs=i&&i.args;break;case"Argument":if(n.argDef=null,n.argDefs)for(var r=0;r2?", ":" ")+(i===t.length-1?"or ":"")+n})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=5},function(e,t){"use strict";function n(e,t){for(var n=Object.create(null),r=t.length,o=e.length/2,a=0;a1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+s))}return r[o][a]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function i(e,t){var n=new a(b,0,0,0,0,null),i={source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:r};return i}function r(){var e=this.lastToken=this.token;if(e.kind!==_){do e=e.next=u(this,e);while(e.kind===F);this.token=e}return e}function o(e){var t=e.value;return t?e.kind+' "'+t+'"':e.kind}function a(e,t,n,i,r,o,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=a,this.prev=o,this.next=null}function s(e){return isNaN(e)?_:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function u(e,t){var n=e.source,i=n.body,r=i.length,o=c(i,t.end,e),u=e.line,f=1+o-e.lineStart;if(o>=r)return new a(_,r,r,u,f,t);var v=B.call(i,o);if(v<32&&9!==v&&10!==v&&13!==v)throw(0,g.syntaxError)(n,o,"Cannot contain the invalid character "+s(v)+".");switch(v){case 33:return new a(w,o,o+1,u,f,t);case 35:return d(n,o,u,f,t);case 36:return new a(x,o,o+1,u,f,t);case 40:return new a(T,o,o+1,u,f,t);case 41:return new a(E,o,o+1,u,f,t);case 46:if(46===B.call(i,o+1)&&46===B.call(i,o+2))return new a(C,o,o+3,u,f,t);break;case 58:return new a(O,o,o+1,u,f,t);case 61:return new a(S,o,o+1,u,f,t);case 64:return new a(k,o,o+1,u,f,t);case 91:return new a(P,o,o+1,u,f,t);case 93:return new a(M,o,o+1,u,f,t);case 123:return new a(N,o,o+1,u,f,t);case 124:return new a(D,o,o+1,u,f,t);case 125:return new a(I,o,o+1,u,f,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return y(n,o,u,f,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return h(n,o,v,u,f,t);case 34:return p(n,o,u,f,t)}throw(0,g.syntaxError)(n,o,l(v))}function l(e){return 39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character "+s(e)+"."}function c(e,t,n){for(var i=e.length,r=t;r31||9===s));return new a(F,t,u,n,i,r,z.call(o,t+1,u))}function h(e,t,n,i,r,o){var u=e.body,l=n,c=t,d=!1;if(45===l&&(l=B.call(u,++c)),48===l){if(l=B.call(u,++c),l>=48&&l<=57)throw(0,g.syntaxError)(e,c,"Invalid number, unexpected digit after 0: "+s(l)+".")}else c=f(e,c,l),l=B.call(u,c);return 46===l&&(d=!0,l=B.call(u,++c),c=f(e,c,l),l=B.call(u,c)),69!==l&&101!==l||(d=!0,l=B.call(u,++c),43!==l&&45!==l||(l=B.call(u,++c)),c=f(e,c,l)),new a(d?R:A,t,c,i,r,o,z.call(u,t,c))}function f(e,t,n){var i=e.body,r=t,o=n;if(o>=48&&o<=57){do o=B.call(i,++r);while(o>=48&&o<=57);return r}throw(0,g.syntaxError)(e,r,"Invalid number, expected digit but got: "+s(o)+".")}function p(e,t,n,i,r){for(var o=e.body,u=t+1,l=u,c=0,d="";u=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function y(e,t,n,i,r){for(var o=e.body,s=o.length,u=t+1,l=0;u!==s&&null!==(l=B.call(o,u))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++u;return new a(L,t,u,n,i,r,z.call(o,t,u))}Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.createLexer=i,t.getTokenDesc=o;var g=n(11),b="",_="",w="!",x="$",T="(",E=")",C="...",O=":",S="=",k="@",P="[",M="]",N="{",D="|",I="}",L="Name",A="Int",R="Float",j="String",F="Comment",B=(t.TokenKind={SOF:b,EOF:_,BANG:w,DOLLAR:x,PAREN_L:T,PAREN_R:E,SPREAD:C,COLON:O,EQUALS:S,AT:k,BRACKET_L:P,BRACKET_R:M,BRACE_L:N,PIPE:D,BRACE_R:I,NAME:L,INT:A,FLOAT:R,STRING:j,COMMENT:F},String.prototype.charCodeAt),z=String.prototype.slice;a.prototype.toJSON=a.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},function(e,t){"use strict";function n(e,t){for(var n=/\r\n|[\n\r]/g,i=1,r=t+1,o=void 0;(o=n.exec(e.body))&&o.index0)return this._typeStack[this._typeStack.length-1]},e.prototype.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},e.prototype.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},e.prototype.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},e.prototype.getDirective=function(){return this._directive},e.prototype.getArgument=function(){return this._argument},e.prototype.getEnumValue=function(){return this._enumValue},e.prototype.enter=function(e){var t=this._schema;switch(e.kind){case u.SELECTION_SET:var n=(0,l.getNamedType)(this.getType());this._parentTypeStack.push((0,l.isCompositeType)(n)?n:void 0);break;case u.FIELD:var i=this.getParentType(),r=void 0;i&&(r=this._getFieldDef(t,i,e)),this._fieldDefStack.push(r),this._typeStack.push(r&&r.type);break;case u.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case u.OPERATION_DEFINITION:var o=void 0;"query"===e.operation?o=t.getQueryType():"mutation"===e.operation?o=t.getMutationType():"subscription"===e.operation&&(o=t.getSubscriptionType()),this._typeStack.push(o);break;case u.INLINE_FRAGMENT:case u.FRAGMENT_DEFINITION:var a=e.typeCondition,s=a?(0,d.typeFromAST)(t,a):this.getType();this._typeStack.push((0,l.isOutputType)(s)?s:void 0);break;case u.VARIABLE_DEFINITION:var c=(0,d.typeFromAST)(t,e.type);this._inputTypeStack.push((0,l.isInputType)(c)?c:void 0);break;case u.ARGUMENT:var h=void 0,p=void 0,v=this.getDirective()||this.getFieldDef();v&&(h=(0,f.default)(v.args,function(t){return t.name===e.name.value}),h&&(p=h.type)),this._argument=h,this._inputTypeStack.push(p);break;case u.LIST:var m=(0,l.getNullableType)(this.getInputType());this._inputTypeStack.push(m instanceof l.GraphQLList?m.ofType:void 0);break;case u.OBJECT_FIELD:var y=(0,l.getNamedType)(this.getInputType()),g=void 0;if(y instanceof l.GraphQLInputObjectType){var b=y.getFields()[e.name.value];g=b?b.type:void 0}this._inputTypeStack.push(g);break;case u.ENUM:var _=(0,l.getNamedType)(this.getInputType()),w=void 0;_ instanceof l.GraphQLEnumType&&(w=_.getValue(e.value)),this._enumValue=w}},e.prototype.leave=function(e){switch(e.kind){case u.SELECTION_SET:this._parentTypeStack.pop();break;case u.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case u.DIRECTIVE:this._directive=null;break;case u.OPERATION_DEFINITION:case u.INLINE_FRAGMENT:case u.FRAGMENT_DEFINITION:this._typeStack.pop();break;case u.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case u.ARGUMENT:this._argument=null,this._inputTypeStack.pop();break;case u.LIST:case u.OBJECT_FIELD:this._inputTypeStack.pop();break;case u.ENUM:this._enumValue=null}},e}()},function(e,t){"use strict";function n(e,t){if(!e||"string"!=typeof e)throw new Error("Must be named. Unexpected name: "+e+".");if(!t&&"__"===e.slice(0,2)&&!a&&(a=!0,console&&console.warn)){var n=new Error('Name "'+e+'" must not begin with "__", which is reserved by GraphQL introspection. In a future release of graphql this will become a hard error.');console.warn(i(n))}if(!r.test(e))throw new Error('Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "'+e+'" does not.')}function i(e){var t="",n=String(e).replace(o,""),i=e.stack;return i&&(t=i.replace(o,"")),t.indexOf(n)===-1&&(t=n+"\n"+t),t.trim()}Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidName=n,t.formatWarning=i;var r=/^[_a-zA-Z][_a-zA-Z0-9]*$/,o=/^Error: /,a=!1},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=e;if(t instanceof f.GraphQLNonNull){var i=r(n,t.ofType);return i&&i.kind===h.NULL?null:i}if(null===n)return{kind:h.NULL};if((0,d.default)(n))return null;if(t instanceof f.GraphQLList){var a=function(){var e=t.ofType;if((0,o.isCollection)(n)){var i=function(){var t=[];return(0,o.forEach)(n,function(n){var i=r(n,e);i&&t.push(i)}),{v:{v:{kind:h.LIST,values:t}}}}();if("object"==typeof i)return i.v}return{v:r(n,e)}}();if("object"==typeof a)return a.v}if(t instanceof f.GraphQLInputObjectType){var u=function(){if(null===n||"object"!=typeof n)return{v:null};var e=t.getFields(),i=[];return Object.keys(e).forEach(function(t){var o=e[t].type,a=r(n[t],o);a&&i.push({kind:h.OBJECT_FIELD,name:{kind:h.NAME,value:t},value:a})}),{v:{kind:h.OBJECT,fields:i}}}();if("object"==typeof u)return u.v}(0,s.default)(t instanceof f.GraphQLScalarType||t instanceof f.GraphQLEnumType,"Must provide Input Type, cannot use: "+String(t));var c=t.serialize(n);if((0,l.default)(c))return null;if("boolean"==typeof c)return{kind:h.BOOLEAN,value:c};if("number"==typeof c){var v=String(c);return/^[0-9]+$/.test(v)?{kind:h.INT,value:v}:{kind:h.FLOAT,value:v}}if("string"==typeof c)return t instanceof f.GraphQLEnumType?{kind:h.ENUM,value:c}:t===p.GraphQLID&&/^[0-9]+$/.test(c)?{kind:h.INT,value:c}:{kind:h.STRING,value:JSON.stringify(c).slice(1,-1)};throw new TypeError("Cannot convert value to AST: "+String(c))}Object.defineProperty(t,"__esModule",{value:!0}),t.astFromValue=r;var o=n(121),a=n(20),s=i(a),u=n(51),l=i(u),c=n(95),d=i(c),h=n(17),f=n(13),p=n(52)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var r=Object.assign||function(e){for(var t=1;t-1&&e%1==0&&e<=i}var i=9007199254740991;e.exports=n},function(e,t,n){function i(e){return"symbol"==typeof e||o(e)&&r(e)==a}var r=n(75),o=n(63),a="[object Symbol]";e.exports=i},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){v&&f&&(v=!1,f.length?p=f.concat(p):m=-1,p.length&&s())}function s(){if(!v){var e=r(a);v=!0;for(var t=p.length;t;){for(f=p,p=[];++m1)for(var n=1;n1?n-1:0),r=1;r-1?void 0:a("96",e),!l.plugins[n]){t.extractEvents?void 0:a("97",e),l.plugins[n]=t;var i=t.eventTypes;for(var o in i)r(i[o],t,o)?void 0:a("98",o,e)}}}function r(e,t,n){l.eventNameDispatchConfigs.hasOwnProperty(n)?a("99",n):void 0,l.eventNameDispatchConfigs[n]=e;var i=e.phasedRegistrationNames;if(i){for(var r in i)if(i.hasOwnProperty(r)){var s=i[r];o(s,t,n)}return!0}return!!e.registrationName&&(o(e.registrationName,t,n),!0)}function o(e,t,n){l.registrationNameModules[e]?a("100",e):void 0,l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(12),s=(n(9),null),u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s?a("101"):void 0,s=Array.prototype.slice.call(e),i()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];u.hasOwnProperty(n)&&u[n]===r||(u[n]?a("102",n):void 0,u[n]=r,t=!0)}t&&i()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var i in n)if(n.hasOwnProperty(i)){var r=l.registrationNameModules[n[i]];if(r)return r}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var i=l.registrationNameModules;for(var r in i)i.hasOwnProperty(r)&&delete i[r]}};e.exports=l},function(e,t,n){"use strict";function i(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function r(e){return"topMouseMove"===e||"topTouchMove"===e}function o(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,i){var r=e.type||"unknown-event";e.currentTarget=y.getNodeFromInstance(i),t?v.invokeGuardedCallbackWithCatch(r,n,e):v.invokeGuardedCallback(r,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,i=e._dispatchInstances;if(Array.isArray(n))for(var r=0;r0&&i.length<20?n+" (keys: "+i.join(", ")+")":n}function o(e,t){var n=s.get(e);if(!n){return null}return n}var a=n(12),s=(n(46),n(108)),u=(n(32),n(39)),l=(n(9),n(10),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){l.validateCallback(t,n);var r=o(e);return r?(r._pendingCallbacks?r._pendingCallbacks.push(t):r._pendingCallbacks=[t],void i(r)):null},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],i(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,i(t))},enqueueReplaceState:function(e,t,n){var r=o(e,"replaceState");r&&(r._pendingStateQueue=[t],r._pendingReplaceState=!0,void 0!==n&&null!==n&&(l.validateCallback(n,"replaceState"),r._pendingCallbacks?r._pendingCallbacks.push(n):r._pendingCallbacks=[n]),i(r))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var r=n._pendingStateQueue||(n._pendingStateQueue=[]);r.push(t),i(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,i(e)},validateCallback:function(e,t){e&&"function"!=typeof e?a("122",t,r(e)):void 0}});e.exports=l},function(e,t){"use strict";var n=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,i,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,r)})}:e};e.exports=n},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var i=r[e];return!!i&&!!n[i]}function i(e){return n}var r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=i},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var a=document.createElement("div");a.setAttribute(n,"return;"),i="function"==typeof a[n]}return!i&&r&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var r,o=n(23);o.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=i},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,i=null===t||t===!1;if(n||i)return n===i;var r=typeof e,o=typeof t;return"string"===r||"number"===r?"string"===o||"number"===o:"object"===o&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t,n){"use strict";var i=(n(15),n(31)),r=(n(10),i);e.exports=r},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return e="function"==typeof e?e():e,a.default.findDOMNode(e)||t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(25),a=i(o);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i,r){var a=e[t],u="undefined"==typeof a?"undefined":o(a);return s.default.isValidElement(a)?new Error("Invalid "+i+" `"+r+"` of type ReactElement "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===u&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+i+" `"+r+"` of value `"+a+"` "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement.")}t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=n(1),s=i(a),u=n(146),l=i(u);t.default=(0,l.default)(r)},function(e,t){"use strict";function n(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}t.__esModule=!0,t.default=n},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t may have only one child element"),this.unlisten=i.listen(function(){e.setState({match:e.computeMatch(i.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){(0,l.default)(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?f.default.Children.only(e):null},t}(f.default.Component);p.propTypes={history:h.PropTypes.object.isRequired,children:h.PropTypes.node},p.contextTypes={router:h.PropTypes.object},p.childContextTypes={router:h.PropTypes.object.isRequired},t.default=p},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(867),o=i(r),a={},s=1e4,u=0,l=function(e,t){var n=""+t.end+t.strict,i=a[n]||(a[n]={});if(i[e])return i[e];var r=[],l=(0,o.default)(e,r,t),c={re:l,keys:r};return u1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&(t={path:t});var n=t,i=n.path,r=void 0===i?"/":i,o=n.exact,a=void 0!==o&&o,s=n.strict,u=void 0!==s&&s,c=l(r,{end:a,strict:u}),d=c.re,h=c.keys,f=d.exec(e);if(!f)return null;var p=f[0],v=f.slice(1),m=e===p;return a&&!m?null:{path:r,url:"/"===r&&""===p?"/":p,isExact:m,params:h.reduce(function(e,t,n){return e[t.name]=v[n],e},{})}};t.default=c},function(e,t,n){"use strict";function i(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||o}var r=n(86),o=n(228),a=(n(367),n(92));n(9),n(10);i.prototype.isReactComponent={},i.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?r("85"):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};e.exports=i},function(e,t,n){"use strict";function i(e,t){}var r=(n(10),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){i(e,"forceUpdate")},enqueueReplaceState:function(e,t){i(e,"replaceState")},enqueueSetState:function(e,t){i(e,"setState")}});e.exports=r},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void 0;var r=n(373),o=i(r),a=n(892),s=i(a),u=n(891),l=i(u),c=n(890),d=i(c),h=n(372),f=i(h),p=n(374);i(p);t.createStore=o.default,t.combineReducers=s.default,t.bindActionCreators=l.default,t.applyMiddleware=d.default,t.compose=f.default},function(e,t,n){e.exports={default:n(413),__esModule:!0}},function(e,t,n){e.exports={default:n(415),__esModule:!0}},function(e,t,n){var i=n(88),r=n(48).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,n){e.exports=!n(67)&&!n(87)(function(){return 7!=Object.defineProperty(n(232)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(149);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){"use strict";var i=n(153),r=n(47),o=n(240),a=n(68),s=n(59),u=n(89),l=n(430),c=n(156),d=n(438),h=n(34)("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",m="values",y=function(){return this};e.exports=function(e,t,n,g,b,_,w){l(n,t,g);var x,T,E,C=function(e){if(!f&&e in P)return P[e];switch(e){case v:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",S=b==m,k=!1,P=e.prototype,M=P[h]||P[p]||b&&P[b],N=M||C(b),D=b?S?C("entries"):N:void 0,I="Array"==t?P.entries||M:M;if(I&&(E=d(I.call(new e)),E!==Object.prototype&&(c(E,O,!0),i||s(E,h)||a(E,h,y))),S&&M&&M.name!==m&&(k=!0,N=function(){return M.call(this)}),i&&!w||!f&&!k&&P[h]||a(P,h,N),u[t]=N,u[O]=y,b)if(x={values:S?N:C(m),keys:_?N:C(v),entries:D},w)for(T in x)T in P||o(P,T,x[T]);else r(r.P+r.F*(f||k),t,x);return x}},function(e,t,n){var i=n(90),r=n(91),o=n(49),a=n(161),s=n(59),u=n(233),l=Object.getOwnPropertyDescriptor;t.f=n(67)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){var i=n(238),r=n(152).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){var i=n(59),r=n(49),o=n(422)(!1),a=n(157)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),u=0,l=[];for(n in s)n!=a&&i(s,n)&&l.push(n);for(;t.length>u;)i(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var i=n(69),r=n(49),o=n(90).f;e.exports=function(e){return function(t){for(var n,a=r(t),s=i(a),u=s.length,l=0,c=[];u>l;)o.call(a,n=s[l++])&&c.push(e?[n,a[n]]:a[n]);return c}}},function(e,t,n){e.exports=n(68)},function(e,t,n){var i=n(159),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){"use strict";var i=n(440)(!0);n(235)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i; +return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";function i(e){return{style:"keyword",match:function(t){return"Name"===t.kind&&t.value===e}}}function r(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value}}}function o(e){return{style:e,match:function(e){return"Name"===e.kind},update:function(e,t){e.name=t.value,e.prevState.prevState.type=t.value}}}Object.defineProperty(t,"__esModule",{value:!0}),t.ParseRules=t.LexRules=t.isIgnored=void 0;var a=n(461);t.isIgnored=function(e){return" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e},t.LexRules={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Comment:/^#.*/},t.ParseRules={Document:[(0,a.list)("Definition")],Definition:function(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return"FragmentDefinition";case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[i("query"),(0,a.opt)(r("def")),(0,a.opt)("VariableDefinitions"),(0,a.list)("Directive"),"SelectionSet"],Mutation:[i("mutation"),(0,a.opt)(r("def")),(0,a.opt)("VariableDefinitions"),(0,a.list)("Directive"),"SelectionSet"],Subscription:[i("subscription"),(0,a.opt)(r("def")),(0,a.opt)("VariableDefinitions"),(0,a.list)("Directive"),"SelectionSet"],VariableDefinitions:[(0,a.p)("("),(0,a.list)("VariableDefinition"),(0,a.p)(")")],VariableDefinition:["Variable",(0,a.p)(":"),"Type",(0,a.opt)("DefaultValue")],Variable:[(0,a.p)("$","variable"),r("variable")],DefaultValue:[(0,a.p)("="),"Value"],SelectionSet:[(0,a.p)("{"),(0,a.list)("Selection"),(0,a.p)("}")],Selection:function(e,t){return"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[r("property"),(0,a.p)(":"),r("qualifier"),(0,a.opt)("Arguments"),(0,a.list)("Directive"),(0,a.opt)("SelectionSet")],Field:[r("property"),(0,a.opt)("Arguments"),(0,a.list)("Directive"),(0,a.opt)("SelectionSet")],Arguments:[(0,a.p)("("),(0,a.list)("Argument"),(0,a.p)(")")],Argument:[r("attribute"),(0,a.p)(":"),"Value"],FragmentSpread:[(0,a.p)("..."),r("def"),(0,a.list)("Directive")],InlineFragment:[(0,a.p)("..."),(0,a.opt)("TypeCondition"),(0,a.list)("Directive"),"SelectionSet"],FragmentDefinition:[i("fragment"),(0,a.opt)((0,a.butNot)(r("def"),[i("on")])),"TypeCondition",(0,a.list)("Directive"),"SelectionSet"],TypeCondition:[i("on"),"NamedType"],Value:function(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[(0,a.t)("Number","number")],StringValue:[(0,a.t)("String","string")],BooleanValue:[(0,a.t)("Name","builtin")],NullValue:[(0,a.t)("Name","keyword")],EnumValue:[r("string-2")],ListValue:[(0,a.p)("["),(0,a.list)("Value"),(0,a.p)("]")],ObjectValue:[(0,a.p)("{"),(0,a.list)("ObjectField"),(0,a.p)("}")],ObjectField:[r("attribute"),(0,a.p)(":"),"Value"],Type:function(e){return"["===e.value?"ListType":"NonNullType"},ListType:[(0,a.p)("["),"Type",(0,a.p)("]"),(0,a.opt)((0,a.p)("!"))],NonNullType:["NamedType",(0,a.opt)((0,a.p)("!"))],NamedType:[o("atom")],Directive:[(0,a.p)("@","meta"),r("meta"),(0,a.opt)("Arguments")],SchemaDef:[i("schema"),(0,a.list)("Directive"),(0,a.p)("{"),(0,a.list)("OperationTypeDef"),(0,a.p)("}")],OperationTypeDef:[r("keyword"),(0,a.p)(":"),r("atom")],ScalarDef:[i("scalar"),r("atom"),(0,a.list)("Directive")],ObjectTypeDef:[i("type"),r("atom"),(0,a.opt)("Implements"),(0,a.list)("Directive"),(0,a.p)("{"),(0,a.list)("FieldDef"),(0,a.p)("}")],Implements:[i("implements"),(0,a.list)("NamedType")],FieldDef:[r("property"),(0,a.opt)("ArgumentsDef"),(0,a.p)(":"),"Type",(0,a.list)("Directive")],ArgumentsDef:[(0,a.p)("("),(0,a.list)("InputValueDef"),(0,a.p)(")")],InputValueDef:[r("attribute"),(0,a.p)(":"),"Type",(0,a.opt)("DefaultValue"),(0,a.list)("Directive")],InterfaceDef:[i("interface"),r("atom"),(0,a.list)("Directive"),(0,a.p)("{"),(0,a.list)("FieldDef"),(0,a.p)("}")],UnionDef:[i("union"),r("atom"),(0,a.list)("Directive"),(0,a.p)("="),(0,a.list)("UnionMember",(0,a.p)("|"))],UnionMember:["NamedType"],EnumDef:[i("enum"),r("atom"),(0,a.list)("Directive"),(0,a.p)("{"),(0,a.list)("EnumValueDef"),(0,a.p)("}")],EnumValueDef:[r("string-2"),(0,a.list)("Directive")],InputDef:[i("input"),r("atom"),(0,a.list)("Directive"),(0,a.p)("{"),(0,a.list)("InputValueDef"),(0,a.p)("}")],ExtendDef:[i("extend"),"ObjectTypeDef"],DirectiveDef:[i("directive"),(0,a.p)("@","meta"),r("meta"),(0,a.opt)("ArgumentsDef"),i("on"),(0,a.list)("DirectiveLocation",(0,a.p)("|"))],DirectiveLocation:[r("string-2")]}},function(e,t,n){"use strict";function i(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:u(e.fieldDef)?null:e.parentType}}function r(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function o(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:u(e.fieldDef)?null:e.parentType}}function a(e){return{kind:"EnumValue",value:e.enumValue,type:(0,l.getNamedType)(e.inputType)}}function s(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function u(e){return"__"===e.name.slice(0,2)}Object.defineProperty(t,"__esModule",{value:!0}),t.getFieldReference=i,t.getDirectiveReference=r,t.getArgumentReference=o,t.getEnumValueReference=a,t.getTypeReference=s;var l=n(94)},function(e,t){"use strict";function n(e,t){for(var n=[],i=e;i&&i.kind;)n.push(i),i=i.prevState;for(var r=n.length-1;r>=0;r--)t(n[r])}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e){return{startState:function(){var t={level:0};return o(e.ParseRules,t,"Document"),t},token:function(t,n){return i(t,n,e)}}}function i(e,t,n){var i=n.LexRules,u=n.ParseRules,h=n.eatWhitespace,f=n.editorConfig;if(t.rule&&0===t.rule.length?a(t):t.needsAdvance&&(t.needsAdvance=!1,s(t,!0)),e.sol()){var p=f&&f.tabSize||2;t.indentLevel=Math.floor(e.indentation()/p)}if(h(e))return"ws";var v=c(i,e);if(!v)return e.match(/\S+/),o(d,t,"Invalid"),"invalidchar";if("Comment"===v.kind)return o(d,t,"Comment"),"comment";var m=r({},t);if("Punctuation"===v.kind)if(/^[{([]/.test(v.value))t.levels=(t.levels||[]).concat(t.indentLevel+1);else if(/^[})\]]/.test(v.value)){var y=t.levels=(t.levels||[]).slice(0,-1);y.length>0&&y[y.length-1]=0&&s[o.text.charAt(u)]||s[o.text.charAt(++u)];if(!l)return null;var c=">"==l.charAt(1)?1:-1;if(i&&c>0!=(u==t.ch))return null;var d=e.getTokenTypeAt(a(t.line,u+1)),h=n(e,a(t.line,u+(c>0?1:0)),c,d||null,r);return null==h?null:{from:a(t.line,u),to:h&&h.pos,match:h&&h.ch==l.charAt(0),forward:c>0}}function n(e,t,n,i,r){for(var o=r&&r.maxScanLineLength||1e4,u=r&&r.maxScanLines||1e3,l=[],c=r&&r.bracketRegex?r.bracketRegex:/[(){}[\]]/,d=n>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),h=t.line;h!=d;h+=n){var f=e.getLine(h);if(f){var p=n>0?0:f.length-1,v=n>0?f.length:-1;if(!(f.length>o))for(h==t.line&&(p=t.ch-(n<0?1:0));p!=v;p+=n){var m=f.charAt(p);if(c.test(m)&&(void 0===i||e.getTokenTypeAt(a(h,p+1))==i)){var y=s[m];if(">"==y.charAt(1)==n>0)l.push(m);else{if(!l.length)return{pos:a(h,p),ch:m};l.pop()}}}}}return h-n!=(n>0?e.lastLine():e.firstLine())&&null}function i(e,n,i){for(var r=e.state.matchBrackets.maxHighlightLineLength||1e3,s=[],u=e.listSelections(),l=0;l",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},u=null;e.defineOption("matchBrackets",!1,function(t,n,i){i&&i!=e.Init&&(t.off("cursorActivity",r),u&&(u(),u=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",r))}),e.defineExtension("matchBrackets",function(){i(this,!0)}),e.defineExtension("findMatchingBracket",function(e,n,i){return t(this,e,n,i)}),e.defineExtension("scanForBracket",function(e,t,i,r){return n(this,e,t,i,r)})})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";function t(t,r,o,a){function s(e){var n=u(t,r);if(!n||n.to.line-n.from.linet.firstLine();)r=e.Pos(r.line-1,0),c=s(!1);if(c&&!c.cleared&&"unfold"!==a){var d=n(t,o);e.on(d,"mousedown",function(t){h.clear(),e.e_preventDefault(t)});var h=t.markText(c.from,c.to,{replacedWith:d,clearOnEnter:i(t,o,"clearOnEnter"),__isFold:!0});h.on("clear",function(n,i){e.signal(t,"unfold",t,n,i)}),e.signal(t,"fold",t,c.from,c.to)}}function n(e,t){var n=i(e,t,"widget");if("string"==typeof n){var r=document.createTextNode(n);n=document.createElement("span"),n.appendChild(r),n.className="CodeMirror-foldmarker"}return n}function i(e,t,n){if(t&&void 0!==t[n])return t[n];var i=e.options.foldOptions;return i&&void 0!==i[n]?i[n]:r[n]}e.newFoldFunction=function(e,n){return function(i,r){t(i,r,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,i){t(this,e,n,i)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:(0,a.default)();try{return e.activeElement}catch(e){}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(70),a=i(o);e.exports=t.default},function(e,t){"use strict";function n(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")!==-1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=(0,c.default)(e),n=(0,u.default)(t),i=t&&t.documentElement,r={top:0,left:0,height:0,width:0};if(t)return(0,a.default)(i,e)?(void 0!==e.getBoundingClientRect&&(r=e.getBoundingClientRect()),r={top:r.top+(n.pageYOffset||i.scrollTop)-(i.clientTop||0),left:r.left+(n.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:(null==r.width?e.offsetWidth:r.width)||0,height:(null==r.height?e.offsetHeight:r.height)||0}):r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(71),a=i(o),s=n(116),u=i(s),l=n(70),c=i(l);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=(0,a.default)(e);return void 0===t?n?"pageYOffset"in n?n.pageYOffset:n.document.documentElement.scrollTop:e.scrollTop:void(n?n.scrollTo("pageXOffset"in n?n.pageXOffset:n.document.documentElement.scrollLeft,t):e.scrollTop=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(116),a=i(o);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(){for(var e=document.createElement("div").style,t={O:function(e){return"o"+e.toLowerCase()},Moz:function(e){return e.toLowerCase()},Webkit:function(e){return"webkit"+e},ms:function(e){return"MS"+e}},n=Object.keys(t),i=void 0,r=void 0,o="",a=0;ah))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var v=-1,m=!0,y=n&u?new r:void 0;for(c.set(e,t),c.set(t,e);++v=c?l=0:l<0&&(l=c-1),i[l]},t.prototype.getActiveProps=function(){var e=this.context.$bs_tabContainer;return e?e:this.props},t.prototype.isActive=function(e,t,n){var i=e.props;return!!(i.active||null!=t&&i.eventKey===t||n&&i.href===n)||i.active},t.prototype.getTabProps=function(e,t,n,i,r){var o=this;if(!t&&"tablist"!==n)return null;var a=e.props,s=a.id,u=a["aria-controls"],l=a.eventKey,c=a.role,d=a.onKeyDown,h=a.tabIndex;return t&&(s=t.getTabId(l),u=t.getPaneId(l)),"tablist"===n&&(c=c||"tab",d=(0,S.default)(function(e){return o.handleTabKeyDown(r,e)},d),h=i?h:-1),{id:s,role:c,onKeyDown:d,"aria-controls":u,tabIndex:h}},t.prototype.render=function(){var e,t=this,n=this.props,i=n.stacked,r=n.justified,a=n.onSelect,u=n.role,l=n.navbar,c=n.pullRight,d=n.pullLeft,h=n.className,f=n.children,p=(0,s.default)(n,["stacked","justified","onSelect","role","navbar","pullRight","pullLeft","className","children"]),m=this.context.$bs_tabContainer,y=u||(m?"tablist":null),_=this.getActiveProps(),w=_.activeKey,x=_.activeHref;delete p.activeKey,delete p.activeHref;var T=(0,C.splitBsProps)(p),E=T[0],O=T[1],k=(0,o.default)({},(0,C.getClassSet)(E),(e={},e[(0,C.prefix)(E,"stacked")]=i,e[(0,C.prefix)(E,"justified")]=r,e)),M=null!=l?l:this.context.$bs_navbar,N=void 0,D=void 0;if(M){var I=this.context.$bs_navbar||{bsClass:"navbar"};k[(0,C.prefix)(I,"nav")]=!0,D=(0,C.prefix)(I,"right"),N=(0,C.prefix)(I,"left")}else D="pull-right",N="pull-left";return k[D]=c,k[N]=d,b.default.createElement("ul",(0,o.default)({},O,{role:y,className:(0,v.default)(h,k)}),P.default.map(f,function(e){var n=t.isActive(e,w,x),i=(0,S.default)(e.props.onSelect,a,M&&M.onSelect,m&&m.onSelect);return(0,g.cloneElement)(e,(0,o.default)({},t.getTabProps(e,m,y,n,i),{active:n,activeKey:w,activeHref:x,onSelect:i}))}))},t}(b.default.Component);I.propTypes=M,I.defaultProps=N,I.contextTypes=D,t.default=(0,C.bsClass)("nav",(0,C.bsStyles)(["tabs","pills"],I)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(38),b=i(g),_=n(21),w=i(_),x={active:y.default.PropTypes.bool,disabled:y.default.PropTypes.bool,role:y.default.PropTypes.string,href:y.default.PropTypes.string,onClick:y.default.PropTypes.func,onSelect:y.default.PropTypes.func,eventKey:y.default.PropTypes.any},T={active:!1,disabled:!1},E=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));return r.handleClick=r.handleClick.bind(r),r}return(0,f.default)(t,e),t.prototype.handleClick=function(e){this.props.onSelect&&(e.preventDefault(),this.props.disabled||this.props.onSelect(this.props.eventKey,e))},t.prototype.render=function(){var e=this.props,t=e.active,n=e.disabled,i=e.onClick,r=e.className,a=e.style,u=(0,s.default)(e,["active","disabled","onClick","className","style"]);return delete u.onSelect,delete u.eventKey,delete u.activeKey,delete u.activeHref,u.role?"tab"===u.role&&(u["aria-selected"]=t):"#"===u.href&&(u.role="button"),y.default.createElement("li",{role:"presentation",className:(0,v.default)(r,{active:t,disabled:n}),style:a},y.default.createElement(b.default,(0,o.default)({},u,{disabled:n,onClick:(0,w.default)(i,this.handleClick)})))},t}(y.default.Component);E.propTypes=x,E.defaultProps=T,t.default=E,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b={$bs_navbar:y.default.PropTypes.shape({bsClass:y.default.PropTypes.string})},_=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=(0,s.default)(e,["className","children"]),r=this.context.$bs_navbar||{bsClass:"navbar"},a=(0,g.prefix)(r,"brand");return y.default.isValidElement(n)?y.default.cloneElement(n,{className:(0,v.default)(n.props.className,t,a)}):y.default.createElement("span",(0,o.default)({},i,{className:(0,v.default)(t,a)}),n)},t}(y.default.Component);_.contextTypes=b,t.default=_,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(5),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(834),b=i(g),_=n(14),w=i(_),x=n(137),T=i(x),E=(0,f.default)({},b.default.propTypes,{show:y.default.PropTypes.bool,rootClose:y.default.PropTypes.bool,onHide:y.default.PropTypes.func,animation:y.default.PropTypes.oneOfType([y.default.PropTypes.bool,w.default]),onEnter:y.default.PropTypes.func,onEntering:y.default.PropTypes.func,onEntered:y.default.PropTypes.func,onExit:y.default.PropTypes.func,onExiting:y.default.PropTypes.func,onExited:y.default.PropTypes.func,placement:y.default.PropTypes.oneOf(["top","right","bottom","left"])}),C={animation:T.default,rootClose:!1,show:!1,placement:"right"},O=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.animation,n=e.children,i=(0,o.default)(e,["animation","children"]),r=t===!0?T.default:t||null,a=void 0;return a=r?n:(0,m.cloneElement)(n,{className:(0,v.default)(n.props.className,"in")}),y.default.createElement(b.default,(0,f.default)({},i,{transition:r}),a)},t}(y.default.Component);O.propTypes=E,O.defaultProps=C,t.default=O,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(38),b=i(g),_=n(21),w=i(_),x={disabled:y.default.PropTypes.bool,previous:y.default.PropTypes.bool,next:y.default.PropTypes.bool,onClick:y.default.PropTypes.func,onSelect:y.default.PropTypes.func,eventKey:y.default.PropTypes.any},T={disabled:!1,previous:!1,next:!1},E=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));return r.handleSelect=r.handleSelect.bind(r),r}return(0,f.default)(t,e),t.prototype.handleSelect=function(e){var t=this.props,n=t.disabled,i=t.onSelect,r=t.eventKey;(i||n)&&e.preventDefault(),n||i&&i(r,e)},t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.previous,i=e.next,r=e.onClick,a=e.className,u=e.style,l=(0,s.default)(e,["disabled","previous","next","onClick","className","style"]);return delete l.onSelect,delete l.eventKey,y.default.createElement("li",{className:(0,v.default)(a,{disabled:t,previous:n,next:i}),style:u},y.default.createElement(b.default,(0,o.default)({},l,{disabled:t,onClick:(0,w.default)(r,this.handleSelect)})))},t}(y.default.Component);E.propTypes=x,E.defaultProps=T,t.default=E,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(230),s=i(a),u=n(6),l=i(u),c=n(2),d=i(c),h=n(4),f=i(h),p=n(3),v=i(p),m=n(7),y=i(m),g=n(1),b=i(g),_=n(8),w=n(21),x=i(w),T=n(24),E=i(T),C={accordion:b.default.PropTypes.bool,activeKey:b.default.PropTypes.any,defaultActiveKey:b.default.PropTypes.any,onSelect:b.default.PropTypes.func,role:b.default.PropTypes.string},O={accordion:!1},S=function(e){function t(n,i){(0,d.default)(this,t);var r=(0,f.default)(this,e.call(this,n,i));return r.handleSelect=r.handleSelect.bind(r),r.state={activeKey:n.defaultActiveKey},r}return(0,v.default)(t,e),t.prototype.handleSelect=function(e,t){t.preventDefault(),this.props.onSelect&&this.props.onSelect(e,t),this.state.activeKey===e&&(e=null),this.setState({activeKey:e})},t.prototype.render=function(){var e=this,t=this.props,n=t.accordion,i=t.activeKey,r=t.className,a=t.children,u=(0,l.default)(t,["accordion","activeKey","className","children"]),c=(0,_.splitBsPropsAndOmit)(u,["defaultActiveKey","onSelect"]),d=c[0],h=c[1],f=void 0;n&&(f=null!=i?i:this.state.activeKey,h.role=h.role||"tablist");var p=(0,_.getClassSet)(d);return b.default.createElement("div",(0,o.default)({},h,{className:(0,y.default)(r,p)}),E.default.map(a,function(t){var i={bsStyle:t.props.bsStyle||d.bsStyle};return n&&(0,s.default)(i,{headerRole:"tab",panelRole:"tabpanel",collapsible:!0,expanded:t.props.eventKey===f,onSelect:(0,x.default)(e.handleSelect,t.props.onSelect)}),(0,g.cloneElement)(t,i)}))},t}(b.default.Component);S.propTypes=C,S.defaultProps=O,t.default=(0,_.bsClass)("panel-group",S),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(19),w=(i(_),n(8)),x=n(21),T=i(x),E=n(137),C=i(E),O={eventKey:m.PropTypes.any,animation:m.PropTypes.oneOfType([m.PropTypes.bool,b.default]),id:m.PropTypes.string,"aria-labelledby":m.PropTypes.string,bsClass:y.default.PropTypes.string,onEnter:m.PropTypes.func,onEntering:m.PropTypes.func,onEntered:m.PropTypes.func,onExit:m.PropTypes.func,onExiting:m.PropTypes.func,onExited:m.PropTypes.func,mountOnEnter:y.default.PropTypes.bool,unmountOnExit:m.PropTypes.bool},S={$bs_tabContainer:m.PropTypes.shape({getTabId:m.PropTypes.func,getPaneId:m.PropTypes.func}),$bs_tabContent:m.PropTypes.shape({bsClass:m.PropTypes.string,animation:m.PropTypes.oneOfType([m.PropTypes.bool,b.default]),activeKey:m.PropTypes.any,mountOnEnter:m.PropTypes.bool,unmountOnExit:m.PropTypes.bool,onPaneEnter:m.PropTypes.func.isRequired,onPaneExited:m.PropTypes.func.isRequired,exiting:m.PropTypes.bool.isRequired})},k={$bs_tabContainer:m.PropTypes.oneOf([null])},P=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));return r.handleEnter=r.handleEnter.bind(r),r.handleExited=r.handleExited.bind(r),r.in=!1,r}return(0,f.default)(t,e),t.prototype.getChildContext=function(){return{$bs_tabContainer:null}},t.prototype.componentDidMount=function(){this.shouldBeIn()&&this.handleEnter()},t.prototype.componentDidUpdate=function(){this.in?this.shouldBeIn()||this.handleExited():this.shouldBeIn()&&this.handleEnter()},t.prototype.componentWillUnmount=function(){this.in&&this.handleExited()},t.prototype.handleEnter=function(){var e=this.context.$bs_tabContent;e&&(this.in=e.onPaneEnter(this,this.props.eventKey))},t.prototype.handleExited=function(){var e=this.context.$bs_tabContent;e&&(e.onPaneExited(this),this.in=!1)},t.prototype.getAnimation=function(){if(null!=this.props.animation)return this.props.animation;var e=this.context.$bs_tabContent;return e&&e.animation},t.prototype.isActive=function(){var e=this.context.$bs_tabContent,t=e&&e.activeKey;return this.props.eventKey===t},t.prototype.shouldBeIn=function(){return this.getAnimation()&&this.isActive()},t.prototype.render=function(){var e=this.props,t=e.eventKey,n=e.className,i=e.onEnter,r=e.onEntering,a=e.onEntered,u=e.onExit,l=e.onExiting,c=e.onExited,d=e.mountOnEnter,h=e.unmountOnExit,f=(0,s.default)(e,["eventKey","className","onEnter","onEntering","onEntered","onExit","onExiting","onExited","mountOnEnter","unmountOnExit"]),p=this.context,m=p.$bs_tabContent,g=p.$bs_tabContainer,b=(0,w.splitBsPropsAndOmit)(f,["animation"]),_=b[0],x=b[1],E=this.isActive(),O=this.getAnimation(),S=null!=d?d:m&&m.mountOnEnter,k=null!=h?h:m&&m.unmountOnExit;if(!E&&!O&&k)return null;var P=O===!0?C.default:O||null;m&&(_.bsClass=(0,w.prefix)(m,"pane"));var M=(0,o.default)({},(0,w.getClassSet)(_),{active:E});g&&(x.id=g.getPaneId(t),x["aria-labelledby"]=g.getTabId(t));var N=y.default.createElement("div",(0,o.default)({},x,{role:"tabpanel","aria-hidden":!E,className:(0,v.default)(n,M)}));if(P){var D=m&&m.exiting;return y.default.createElement(P,{in:E&&!D,onEnter:(0,T.default)(this.handleEnter,i),onEntering:r,onEntered:a,onExit:u,onExiting:l,onExited:(0,T.default)(this.handleExited,c),mountOnEnter:S,unmountOnExit:k},N)}return N},t}(y.default.Component);P.propTypes=O,P.contextTypes=S,P.childContextTypes=k,t.default=(0,w.bsClass)("tab-pane",P),e.exports=t.default},function(e,t){"use strict";function n(e){return""+e.charAt(0).toUpperCase()+e.slice(1)}t.__esModule=!0,t.default=n,e.exports=t.default},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var i={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},r=["Webkit","ms","Moz","O"];Object.keys(i).forEach(function(e){r.forEach(function(t){i[n(t,e)]=i[e]})});var o={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:i,shorthandPropertyExpansions:o};e.exports=a},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(12),o=n(64),a=(n(9),function(){function e(t){i(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length?r("24"):void 0,this._callbacks=null,this._contexts=null;for(var i=0;i.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=m.createElement(F,{child:t});if(e){var u=x.get(e);a=u._processChildContext(u._context)}else a=S;var c=h(n);if(c){var d=c._currentElement,p=d.props.child;if(M(p,t)){var v=c._renderedComponent.getPublicInstance(),y=i&&function(){i.call(v)};return B._updateRootComponent(c,s,a,n,y),v}B.unmountComponentAtNode(n)}var g=r(n),b=g&&!!o(g),_=l(n),w=b&&!c&&!_,T=B._renderNewRootComponent(s,n,w,a)._renderedComponent.getPublicInstance();return i&&i.call(T),T},render:function(e,t,n){return B._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){c(e)?void 0:f("40");var t=h(e);if(!t){l(e),1===e.nodeType&&e.hasAttribute(D);return!1}return delete R[t._instance.rootID],O.batchedUpdates(u,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,o,a){if(c(t)?void 0:f("41"),o){var s=r(t);if(T.canReuseMarkup(e,s))return void g.precacheNode(n,s);var u=s.getAttribute(T.CHECKSUM_ATTR_NAME);s.removeAttribute(T.CHECKSUM_ATTR_NAME);var l=s.outerHTML;s.setAttribute(T.CHECKSUM_ATTR_NAME,u);var d=e,h=i(d,l),v=" (client) "+d.substring(h-20,h+20)+"\n (server) "+l.substring(h-20,h+20);t.nodeType===L?f("42",v):void 0}if(t.nodeType===L?f("43"):void 0,a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);p.insertTreeBefore(t,e,null)}else P(t,e),g.precacheNode(n,t.firstChild)}};e.exports=B},function(e,t,n){"use strict";var i=n(12),r=n(84),o=(n(9),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||e===!1?o.EMPTY:r.isValidElement(e)?"function"==typeof e.type?o.COMPOSITE:o.HOST:void i("26",e)}});e.exports=o},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function i(e,t){return null==t?r("30"):void 0,null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var r=n(12);n(9);e.exports=i},function(e,t){"use strict";function n(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=n},function(e,t,n){"use strict";function i(e){for(var t;(t=e._renderedNodeType)===r.COMPOSITE;)e=e._renderedComponent;return t===r.HOST?e._renderedComponent:t===r.EMPTY?null:void 0}var r=n(344);e.exports=i},function(e,t,n){"use strict";function i(){return!o&&r.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var r=n(23),o=null;e.exports=i},function(e,t,n){"use strict";function i(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e,t){var n;if(null===e||e===!1)n=l.create(o);else if("object"==typeof e){var s=e,u=s.type;if("function"!=typeof u&&"string"!=typeof u){var h="";h+=i(s._owner),a("130",null==u?u:typeof u,h)}"string"==typeof s.type?n=c.createInternalComponent(s):r(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new d(s)}else"string"==typeof e||"number"==typeof e?n=c.createInstanceForText(e):a("131",typeof e);return n._mountIndex=0,n._mountImage=null,n}var a=n(12),s=n(15),u=n(781),l=n(339),c=n(341),d=(n(881),n(9),n(10),function(e){this.construct(e)});s(d.prototype,u,{_instantiateReactComponent:o}),e.exports=o},function(e,t){"use strict";function n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!i[e.type]:"textarea"===t}var i={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";var i=n(23),r=n(142),o=n(143),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};i.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){return 3===e.nodeType?void(e.nodeValue=t):void o(e,r(t))})),e.exports=a},function(e,t,n){"use strict";function i(e,t){return e&&"object"==typeof e&&null!=e.key?l.escape(e.key):t.toString(36)}function r(e,t,n,o){var h=typeof e;if("undefined"!==h&&"boolean"!==h||(e=null),null===e||"string"===h||"number"===h||"object"===h&&e.$$typeof===s)return n(o,e,""===t?c+i(e,0):t),1;var f,p,v=0,m=""===t?c:t+d;if(Array.isArray(e))for(var y=0;y=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function u(){}Object.defineProperty(t,"__esModule",{value:!0}),t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var l=Object.assign||function(e){for(var t=1;te.clientHeight}Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var s=n(116),u=i(s),l=n(70),c=i(l);e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function u(){}function l(e,t){var n={run:function(i){try{var r=e(t.getState(),i);(r!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=r,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}function c(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=i.getDisplayName,h=void 0===c?function(e){return"ConnectAdvanced("+e+")"}:c,p=i.methodName,y=void 0===p?"connectAdvanced":p,x=i.renderCountProp,T=void 0===x?void 0:x,E=i.shouldHandleStateChanges,C=void 0===E||E,O=i.storeKey,S=void 0===O?"store":O,k=i.withRef,P=void 0!==k&&k,M=s(i,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),N=S+"Subscription",D=_++,I=(t={},t[S]=b.storeShape,t[N]=b.subscriptionShape,t),L=(n={},n[N]=b.subscriptionShape,n);return function(t){(0,v.default)("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=h(n),s=d({},M,{getDisplayName:h,methodName:y,renderCountProp:T,shouldHandleStateChanges:C,storeKey:S,withRef:P,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=function(n){function c(e,t){r(this,c);var a=o(this,n.call(this,e,t));return a.version=D,a.state={},a.renderCount=0,a.store=e[S]||t[S],a.propsMode=Boolean(e[S]),a.setWrappedInstance=a.setWrappedInstance.bind(a),(0,v.default)(a.store,'Could not find "'+S+'" in either the context or props of '+('"'+i+'". Either wrap the root component in a , ')+('or explicitly pass "'+S+'" as a prop to "'+i+'".')),a.initSelector(),a.initSubscription(),a}return a(c,n),c.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return e={},e[N]=t||this.context[N],e},c.prototype.componentDidMount=function(){C&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},c.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=u,this.store=null,this.selector.run=u,this.selector.shouldComponentUpdate=!1},c.prototype.getWrappedInstance=function(){return(0,v.default)(P,"To access the wrapped instance, you need to specify "+("{ withRef: true } in the options argument of the "+y+"() call.")),this.wrappedInstance},c.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},c.prototype.initSelector=function(){var t=e(this.store.dispatch,s);this.selector=l(t,this.store),this.selector.run(this.props)},c.prototype.initSubscription=function(){if(C){var e=(this.propsMode?this.props:this.context)[N];this.subscription=new g.default(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(w)):this.notifyNestedSubs()},c.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.prototype.addExtraProps=function(e){if(!(P||T||this.propsMode&&this.subscription))return e;var t=d({},e);return P&&(t.ref=this.setWrappedInstance),T&&(t[T]=this.renderCount++),this.propsMode&&this.subscription&&(t[N]=this.subscription),t},c.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,m.createElement)(t,this.addExtraProps(e.props))},c}(m.Component);return c.WrappedComponent=t,c.displayName=i,c.childContextTypes=L,c.contextTypes=I,c.propTypes=I,(0,f.default)(c,t)}}t.__esModule=!0;var d=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t and in the same route; will be ignored"),(0,l.default)(!(t&&i),"You should not use and in the same route; will be ignored"),(0,l.default)(!(n&&i),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){(0,l.default)(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,l.default)(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function e(){var t=this.state.match,n=this.props,i=n.children,r=n.component,e=n.render,o=this.context.router,a=o.history,s=o.route,u=o.staticContext,l=this.props.location||s.location,c={match:t,location:l,history:a,staticContext:u};return r?t?d.default.createElement(r,c):null:e?t?e(c):null:i?"function"==typeof i?i(c):!Array.isArray(i)||i.length?d.default.Children.only(i):null:null},t}(d.default.Component);p.propTypes={computedMatch:c.PropTypes.object,path:c.PropTypes.string,exact:c.PropTypes.bool,strict:c.PropTypes.bool,component:c.PropTypes.func,render:c.PropTypes.func,children:c.PropTypes.oneOfType([c.PropTypes.func,c.PropTypes.node]),location:c.PropTypes.object},p.contextTypes={router:c.PropTypes.shape({history:c.PropTypes.object.isRequired,route:c.PropTypes.object.isRequired,staticContext:c.PropTypes.object})},p.childContextTypes={router:c.PropTypes.object.isRequired},t.default=p},function(e,t,n){"use strict";function i(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,i=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=t.call(e);return i.test(r)}catch(e){return!1}}function r(e){var t=l(e);if(t){var n=t.childIDs;c(e),n.forEach(r)}}function o(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function s(e){var t,n=C.getDisplayName(e),i=C.getElement(e),r=C.getOwnerID(e);return r&&(t=C.getDisplayName(r)),o(n,i&&i._source,t)}var u,l,c,d,h,f,p,v=n(86),m=n(46),y=(n(9),n(10),"function"==typeof Array.from&&"function"==typeof Map&&i(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&i(Map.prototype.keys)&&"function"==typeof Set&&i(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&i(Set.prototype.keys));if(y){var g=new Map,b=new Set;u=function(e,t){g.set(e,t)},l=function(e){return g.get(e)},c=function(e){g.delete(e)},d=function(){return Array.from(g.keys())},h=function(e){b.add(e)},f=function(e){b.delete(e)},p=function(){return Array.from(b.keys())}}else{var _={},w={},x=function(e){return"."+e},T=function(e){return parseInt(e.substr(1),10)};u=function(e,t){var n=x(e);_[n]=t},l=function(e){var t=x(e);return _[t]},c=function(e){var t=x(e);delete _[t]},d=function(){return Object.keys(_).map(T)},h=function(e){var t=x(e);w[t]=!0},f=function(e){var t=x(e);delete w[t]},p=function(){return Object.keys(w).map(T)}}var E=[],C={onSetChildren:function(e,t){var n=l(e);n?void 0:v("144"),n.childIDs=t;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{},i={};return n.serial?T(t,function(e,t){try{var n=v(e),r=b.reduceRight(function(e,n){return n.out(e,t)},n);i=C(i,t,r)}catch(e){}}):i=t,e.dispatch(u(i)),i}function r(e){return""+w+e}var f=t.serialize===!1?function(e){return e}:a,v=t.serialize===!1?function(e){return e}:s,y=t.blacklist||[],g=t.whitelist||!1,b=t.transforms||[],_=t.debounce||!1,w=void 0!==t.keyPrefix?t.keyPrefix:h.KEY_PREFIX,x=t._stateInit||{},T=t._stateIterator||l,E=t._stateGetter||c,C=t._stateSetter||d,O=t.storage||(0,p.default)("local");O.keys&&!O.getAllKeys&&(O.getAllKeys=O.keys);var S=x,k=!1,P=[],M=null;return e.subscribe(function(){if(!k){var t=e.getState();T(t,function(e,i){n(i)&&E(S,i)!==E(t,i)&&P.indexOf(i)===-1&&P.push(i)}),null===M&&(M=setInterval(function(){if(0===P.length)return clearInterval(M),void(M=null);var t=P[0],n=r(t),i=b.reduce(function(e,n){return n.in(e,t)},E(e.getState(),t));"undefined"!=typeof i&&O.setItem(n,f(i),o(t)),P.shift()},_)),S=t}}),{rehydrate:i,pause:function(){k=!0},resume:function(){k=!1},purge:function(e){return(0,m.default)({storage:O,keyPrefix:w},e)}}}function o(e){return function(e){}}function a(e){return(0,g.default)(e,null,null,function(e,t){throw new Error('\n redux-persist: cannot process cyclical state.\n Consider changing your state structure to have no cycles.\n Alternatively blacklist the corresponding reducer key.\n Cycle encounted at key "'+e+'" with value "'+t+'".\n ')})}function s(e){return JSON.parse(e)}function u(e){return{type:h.REHYDRATE,payload:e}}function l(e,t){return Object.keys(e).forEach(function(n){return t(e[n],n)})}function c(e,t){return e[t]}function d(e,t,n){return e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var h=n(111),f=n(369),p=i(f),v=n(371),m=i(v),y=n(563),g=i(y)},function(e,t,n){(function(e,n){"use strict";function i(e){if("object"!==("undefined"==typeof window?"undefined":s(window))||!(e in window))return!1;try{var t=window[e],n="redux-persist "+e+" test";t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch(e){return!1}return!0}function r(){return i("localStorage")}function o(){return i("sessionStorage")}function a(e){return"local"===e?r()?window.localStorage:{getItem:l,setItem:l,removeItem:l,getAllKeys:l}:"session"===e?o()?window.sessionStorage:{getItem:l,setItem:l,removeItem:l,getAllKeys:l}:void 0}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){var n=a(e);return{getAllKeys:function(e){return new Promise(function(t,i){try{for(var r=[],o=0;o=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(895),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t){function n(e,t){var n=t||0,r=i;return r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]; +}for(var i=[],r=0;r<256;++r)i[r]=(r+256).toString(16).substr(1);e.exports=n},function(e,t){(function(t){var n,i=t.crypto||t.msCrypto;if(i&&i.getRandomValues){var r=new Uint8Array(16);n=function(){return i.getRandomValues(r),r}}if(!n){var o=new Array(16);n=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}e.exports=n}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e){s.length||(a(),u=!0),s[s.length]=e}function i(){for(;lc){for(var t=0,n=s.length-l;t0&&!o&&l.default.createElement("span",{className:"Properties-facets"},"Facets"),l.default.createElement("div",{className:"Properties"},Object.keys(s).map(function(e,t){return l.default.createElement("div",{className:"Properties-key-val",key:t},l.default.createElement("div",{className:"Properties-key"},e,": "),l.default.createElement("div",{className:"Properties-val"},String(s[e])))})))}}]),t}(u.Component);t.default=d},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(397),s=i(a),u=n(394),l=i(u),c=n(44);n(502);var d=function(e){var t=e.query,n=e.result,i=e.partial,r=(e.rendering,e.latency,e.numNodes),a=e.numEdges,u=e.numNodesRendered,d=e.numEdgesRendered,h=e.treeView,f=e.renderGraph,p=e.expand;return o.default.createElement("div",{className:"ResponseInfo"},o.default.createElement(l.default,null),o.default.createElement("div",{className:"ResponseInfo-stats"},o.default.createElement("div",{className:"ResponseInfo-flex"},o.default.createElement(s.default,null),o.default.createElement("div",null,"Nodes:"," ",r,", Edges:"," ",a)),o.default.createElement("div",{className:"ResponseInfo-flex"},o.default.createElement(c.Button,{className:"ResponseInfo-button",bsStyle:"primary",disabled:0===r||u===r&&d===a,onClick:function(){return p()}},i?"Expand":"Collapse"),o.default.createElement(c.Button,{className:"ResponseInfo-button",bsStyle:"primary",disabled:0===r,onClick:function(){return f(t,n,!h)}},h?"Graph view":"Tree View"))),o.default.createElement("div",{className:"ResponseInfo-partial"},o.default.createElement("i",null,i?"We have only loaded a subset of the graph. Double click on a leaf node to expand its child nodes.":"")))};t.default=d},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n0&&'"'===u[0])return{list:[],from:s,to:a};"invalidchar"===r.type&&void 0!==r.state.prevState&&"Field"===r.state.prevState.kind&&(u=r.state.prevState.name+r.string,s.ch-=r.state.prevState.name.length),"Directive"===r.state.kind&&(u="@"+u,s.ch-=1),u=u.toLowerCase();for(var l=[],c=0;c0&&d.startsWith(u)&&l.push(d)}return l.length?{list:l.sort(f.sortStrings),from:s,to:a}:void 0}),e.commands.autocomplete=function(n){e.showHint(n,e.hint.fromList,{completeSingle:!1,words:t})},a.editor.on("change",function(e){a.props.updateShareId(""),a.props.updateQuery(a.editor.getValue())}),a.editor.on("keydown",function(t,n){var i=n.keyCode;!n.ctrlKey&&i>=65&&i<=90&&e.commands.autocomplete(t)})},s=i,o(a,s)}return a(t,e),s(t,[{key:"render",value:function(){var e=this;return l.default.createElement("div",null,l.default.createElement(d.Form,{horizontal:!0,bsSize:"sm",style:{marginBottom:"10px"}},l.default.createElement(d.FormGroup,{bsSize:"sm"},l.default.createElement(d.Col,{xs:2},l.default.createElement(d.ControlLabel,null,"Query")),l.default.createElement(d.Col,{xs:8},l.default.createElement(d.FormControl,{type:"text",placeholder:"Regex to choose property for display",value:this.props.regex,onChange:function(t){t.preventDefault(),e.props.updateRegex(t.target.value)}})),l.default.createElement(d.Col,{xs:2},l.default.createElement(d.Button,{type:"submit",className:"btn btn-primary pull-right",onClick:function(t){t.preventDefault(),e.props.onRunQuery(e.getValue())}},"Run")))),l.default.createElement("div",{className:"Editor-basic",ref:function(t){e._editor=t}}))}}]),t}(u.Component),v=function(e){return{query:e.query.text,regex:e.query.propertyRegex}},m={onRunQuery:h.runQuery,updateQuery:h.selectQuery,updateShareId:h.updateShareId,updateRegex:h.updateRegex};t.default=(0,c.connect)(v,m)(p)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e.map(function(e){return e.to})}function u(e,t,n,i){if(e.nodes.length>0){var r=e.nodes[0],o=t.get(r);this.setState({selectedNode:!0}),i((0,g.setCurrentNode)(o))}else if(e.edges.length>0){var a=e.edges[0],s=n.get(a);this.setState({selectedNode:!0}),i((0,g.setCurrentNode)(s))}else this.setState({selectedNode:!1}),i((0,g.setCurrentNode)("{}"))}function l(e,t){function n(e){for(var t=[e],n=[e],i=[];0!==n.length;){var r=n.pop(),a=(0,b.outgoingEdges)(r,d),s=a.map(function(e){return e.to});if(n=n.concat(s),t=t.concat(s),i=i.concat(a),s.length>3)break}o.nodes.update(c.get(t)),o.edges.update(i)}function i(e,t){return(0,b.outgoingEdges)(e,t).length===(0,b.outgoingEdges)(e,d).length}t((0,g.updateLatency)({rendering:{start:new Date}}));var r=document.getElementById("graph"),o={nodes:new v.default.DataSet(e.nodes),edges:new v.default.DataSet(e.edges)},a={nodes:{shape:"circle",scaling:{max:20,min:20,label:{enabled:!0,min:14,max:14}},font:{size:16},margin:{top:25}},height:"100%",width:"100%",interaction:{hover:!0,keyboard:{enabled:!0,bindToWindow:!1},navigationButtons:!0,tooltipDelay:1e6,hideEdgesOnDrag:!0},layout:{randomSeed:42,improvedLayout:!1},physics:{stabilization:{fit:!0,updateInterval:5,iterations:20},barnesHut:{damping:.7}}};o.nodes.length<100&&w.default.merge(a,{physics:{stabilization:{iterations:200,updateInterval:50}}}),e.treeView&&Object.assign(a,{layout:{hierarchical:{sortMethod:"directed"}},physics:{enabled:!1,barnesHut:{}}});var l=new v.default.Network(r,o,a),c=new v.default.DataSet(e.allNodes),d=new v.default.DataSet(e.allEdges),h=this;this.setState({network:l}),e.treeView&&t((0,g.updateLatency)({rendering:{end:new Date}})),c.length===o.nodes.length&&d.length===o.edges.length||t((0,g.updatePartial)(!0)),l.on("stabilizationProgress",function(e){var n=e.iterations/e.total;t((0,g.updateProgress)(100*n))}),l.once("stabilizationIterationsDone",function(){t((0,g.hideProgressBar)()),t((0,g.updateLatency)({rendering:{end:new Date}}))}),l.on("doubleClick",function(e){if(x=new Date,e.nodes&&e.nodes.length>0){var i=e.nodes[0],r=o.nodes.get(i);l.unselectAll(),t((0,g.setCurrentNode)(r)),h.setState({selectedNode:!1});var a=(0,b.outgoingEdges)(i,o.edges),s=(0,b.outgoingEdges)(i,d),u=a.length>0||0===s.length,f=s.map(function(e){return e.to}),p=c.get(f);if(u){for(var v=a.map(function(e){return e.id}),m=p.slice();f.length>0;){var y=f.pop(),_=(0,b.outgoingEdges)(y,o.edges),w=_.map(function(e){return e.to});m=m.concat(w),v=v.concat(_),f=f.concat(w)}o.nodes.remove(m),o.edges.remove(v)}else n(i),o.nodes.length===c.length&&t((0,g.updatePartial)(!1))}}),l.on("click",function(e){var n=new Date;n-x>T&&setTimeout(function(){n-x>T&&u.bind(h)(e,o.nodes,o.edges,t)},T)}),window.onresize=function(){void 0!==l&&l.fit()},l.on("hoverNode",function(e){if(!h.state.selectedNode&&e.node.length>0){var n=e.node,i=o.nodes.get(n);t((0,g.setCurrentNode)(i))}}),l.on("hoverEdge",function(e){if(!h.state.selectedNode&&e.edge.length>0){var n=e.edge,i=o.edges.get(n);t((0,g.setCurrentNode)(i))}}),l.on("dragEnd",function(e){for(var t=0;t0;){var f=e.pop();if(!i.bind(this)(f,r)){var p=(0,b.outgoingEdges)(f,d),v=s(p);e=e.concat(v);var m=!0,y=!1,_=void 0;try{for(var w,x=v[Symbol.iterator]();!(m=(w=x.next()).done);m=!0){var T=w.value;a.add(T)}}catch(e){y=!0,_=e}finally{try{!m&&x.return&&x.return()}finally{if(y)throw _}}if(u=u.concat(p),a.size>h)return n.update(c.get(Array.from(a))),r.update(u),a=new Set,void(u=[])}}0===e.length&&t((0,g.updatePartial)(!1)),(a.size>0||u.length>0)&&(n.update(c.get(Array.from(a))),r.update(u)),l.fit()}},p=function(){l.fit()};this.setState({expand:f,fit:p})}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n1?t.toFixed(1)+"s":(1e3*(t-Math.floor(t))).toFixed(0)+"ms"}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(40),a=n(386),s=i(a),u=function(e,t){return{server:e.latency.server,rendering:r(e.latency.rendering)}};t.default=(0,o.connect)(u,null)(s.default)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(1),o=i(r),a=n(25),s=i(a),u=n(858),l=n(229),c=n(40),d=n(889),h=i(d),f=n(886),p=n(399),v=i(p);n(494),n(493);var m=n(387),y=i(m),g=[h.default],b=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||l.compose,_=(0,l.createStore)(v.default,void 0,b(l.applyMiddleware.apply(void 0,g),(0,f.autoRehydrate)()));(0,f.persistStore)(_,{whitelist:["previousQueries","scratchpad"]});var w=function(e){return s.default.render(o.default.createElement(c.Provider,{store:_},o.default.createElement(u.BrowserRouter,{history:u.browserHistory},o.default.createElement(u.Route,{path:"/:id?",component:e}))),document.getElementById("root"))};w(y.default)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(229),o=n(402),a=i(o),s=n(403),u=i(s),l=n(404),c=i(l),d=n(400),h=i(d),f=n(401),p=i(f),v=n(405),m=i(v),y=n(406),g=i(y),b=(0,r.combineReducers)({query:u.default,previousQueries:a.default,response:c.default,interaction:h.default,latency:p.default,scratchpad:m.default,share:g.default});t.default=b},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={node:"{}",partial:!1,fullscreen:!1,progress:{perc:0,display:!1}},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments[1];switch(t.type){case"SELECT_NODE":return Object.assign({},e,{node:t.node});case"UPDATE_PARTIAL":return Object.assign({},e,{partial:t.partial});case"RESET_RESPONSE":return n;case"UPDATE_FULLSCREEN":return Object.assign({},e,{fullscreen:t.fs});case"UPDATE_PROGRESS":return Object.assign({},e,{progress:{perc:t.perc,display:!0}});case"HIDE_PROGRESS":return Object.assign({},e,{progress:{display:!1}});default:return e}};t.default=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(308),o=i(r),a={server:"",rendering:{start:void 0,end:void 0}},s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments[1];switch(t.type){case"UPDATE_LATENCY":return o.default.merge({},e,t);case"RESET_RESPONSE":return a;default:return e}};t.default=s},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"ADD_QUERY":var r=t.text.trim();return[i(void 0,t)].concat(n(e.filter(function(e){return e.text.trim()!==r})));case"DELETE_QUERY":return[].concat(n(e.slice(0,t.idx)),n(e.slice(t.idx+1)));case"DELETE_ALL_QUERIES":return[];default:return e}};t.default=r},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{text:"",propertyRegex:""},t=arguments[1];switch(t.type){case"SELECT_QUERY":return Object.assign({},e,{text:t.text});case"UPDATE_PROPERTY_REGEX":return Object.assign({},e,{propertyRegex:t.regex});default:return e}};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={text:"",data:{},success:!1,plotAxis:[],nodes:[],edges:[],allNodes:[],allEdges:[],numNodes:0,numEdges:0,treeView:!1,isFetching:!1,mutation:!1},i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments[1];switch(t.type){case"ERROR_RESPONSE":return Object.assign({},e,{text:t.text,success:!1,data:t.json});case"SUCCESS_RESPONSE":return Object.assign({},e,{data:t.data,text:t.text||"",success:!0,mutation:t.isMutation});case"RESPONSE_PROPERTIES":return Object.assign({},e,t,{numNodes:t.allNodes&&t.allNodes.length,numEdges:t.allEdges&&t.allEdges.length});case"RESET_RESPONSE":return n;case"IS_FETCHING":return Object.assign({},e,{isFetching:t.fetching});default:return e}};t.default=i},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];switch(t.type){case"ADD_SCRATCHPAD_ENTRY":var i={name:t.name,uid:t.uid},r=e.map(function(e){return e.uid}).indexOf(i.uid);return r!==-1?e:[].concat(n(e),[i]);case"DELETE_SCRATCHPAD_ENTRIES":return[];default:return e}};t.default=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{allowed:!1,id:"",found:!0},t=arguments[1];switch(t.type){case"UPDATE_SHARE_ID":return Object.assign({},e,{id:t.shareId});case"QUERY_FOUND":return Object.assign({},e,{found:t.found});case"UPDATE_ALLOWED":return Object.assign({},e,{allowed:t.allowed});default:return e}};t.default=n},function(e,t,n){e.exports={default:n(412),__esModule:!0}},function(e,t,n){e.exports={default:n(414),__esModule:!0}},function(e,t,n){e.exports={default:n(416),__esModule:!0}},function(e,t,n){e.exports={default:n(418),__esModule:!0}},function(e,t,n){e.exports={default:n(419),__esModule:!0}},function(e,t,n){n(242),n(443),e.exports=n(33).Array.from},function(e,t,n){n(445),e.exports=n(33).Object.assign},function(e,t,n){n(446);var i=n(33).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,n){n(450),e.exports=n(33).Object.entries},function(e,t,n){n(447),e.exports=n(33).Object.setPrototypeOf},function(e,t,n){n(451),e.exports=n(33).Object.values},function(e,t,n){n(449),n(448),n(452),n(453),e.exports=n(33).Symbol},function(e,t,n){n(242),n(454),e.exports=n(163).f("iterator")},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,n){var i=n(49),r=n(241),o=n(441);e.exports=function(e){return function(t,n,a){var s,u=i(t),l=r(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(149),r=n(34)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),r))?n:o?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){"use strict";var i=n(60),r=n(91);e.exports=function(e,t,n){t in e?i.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var i=n(69),r=n(155),o=n(90);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){e.exports=n(48).document&&document.documentElement},function(e,t,n){var i=n(89),r=n(34)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[r]===e)}},function(e,t,n){var i=n(149);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(66);e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&i(o.call(e)),t}}},function(e,t,n){"use strict";var i=n(154),r=n(91),o=n(156),a={};n(68)(a,n(34)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var i=n(34)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},e(o)}catch(e){}return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var i=n(69),r=n(49);e.exports=function(e,t){for(var n,o=r(e),a=i(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===t)return n}},function(e,t,n){var i=n(114)("meta"),r=n(88),o=n(59),a=n(60).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(87)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[i].i},h=function(e,t){if(!o(e,i)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[i].w},f=function(e){return l&&p.NEED&&u(e)&&!o(e,i)&&c(e),e},p=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},function(e,t,n){"use strict";var i=n(69),r=n(155),o=n(90),a=n(160),s=n(234),u=Object.assign;e.exports=!u||n(87)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=i})?function(e,t){for(var n=a(e),u=arguments.length,l=1,c=r.f,d=o.f;u>l;)for(var h,f=s(arguments[l++]),p=c?i(f).concat(c(f)):i(f),v=p.length,m=0;v>m;)d.call(f,h=p[m++])&&(n[h]=f[h]);return n}:u},function(e,t,n){var i=n(60),r=n(66),o=n(69);e.exports=n(67)?Object.defineProperties:function(e,t){r(e);for(var n,a=o(t),s=a.length,u=0;s>u;)i.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var i=n(49),r=n(237).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},function(e,t,n){var i=n(59),r=n(160),o=n(157)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var i=n(88),r=n(66),o=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{i=n(150)(Function.call,n(236).f(Object.prototype,"__proto__").set,2),i(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var i=n(159),r=n(151);e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),u=i(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(e,t,n){var i=n(159),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},function(e,t,n){var i=n(423),r=n(34)("iterator"),o=n(89);e.exports=n(33).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||o[i(e)]}},function(e,t,n){"use strict";var i=n(150),r=n(47),o=n(160),a=n(429),s=n(427),u=n(241),l=n(424),c=n(442);r(r.S+r.F*!n(431)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,r,d,h=o(e),f="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,m=void 0!==v,y=0,g=c(h);if(m&&(v=i(v,p>2?arguments[2]:void 0,2)),void 0==g||f==Array&&s(g))for(t=u(h.length),n=new f(t);t>y;y++)l(n,y,m?v(h[y],y):h[y]);else for(d=g.call(h),n=new f;!(r=d.next()).done;y++)l(n,y,m?a(d,v,[r.value,y],!0):r.value);return n.length=y,n}})},function(e,t,n){"use strict";var i=n(421),r=n(432),o=n(89),a=n(49);e.exports=n(235)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var i=n(47);i(i.S+i.F,"Object",{assign:n(435)})},function(e,t,n){var i=n(47);i(i.S,"Object",{create:n(154)})},function(e,t,n){var i=n(47);i(i.S,"Object",{setPrototypeOf:n(439).set})},function(e,t){},function(e,t,n){"use strict";var i=n(48),r=n(59),o=n(67),a=n(47),s=n(240),u=n(434).KEY,l=n(87),c=n(158),d=n(156),h=n(114),f=n(34),p=n(163),v=n(162),m=n(433),y=n(425),g=n(428),b=n(66),_=n(49),w=n(161),x=n(91),T=n(154),E=n(437),C=n(236),O=n(60),S=n(69),k=C.f,P=O.f,M=E.f,N=i.Symbol,D=i.JSON,I=D&&D.stringify,L="prototype",A=f("_hidden"),R=f("toPrimitive"),j={}.propertyIsEnumerable,F=c("symbol-registry"),B=c("symbols"),z=c("op-symbols"),H=Object[L],G="function"==typeof N,U=i.QObject,W=!U||!U[L]||!U[L].findChild,V=o&&l(function(){return 7!=T(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=k(H,t);i&&delete H[t],P(e,t,n),i&&e!==H&&P(H,t,i)}:P,Y=function(e){var t=B[e]=T(N[L]);return t._k=e,t},Q=G&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},q=function(e,t,n){return e===H&&q(z,t,n),b(e),t=w(t,!0),b(n),r(B,t)?(n.enumerable?(r(e,A)&&e[A][t]&&(e[A][t]=!1),n=T(n,{enumerable:x(0,!1)})):(r(e,A)||P(e,A,x(1,{})),e[A][t]=!0),V(e,t,n)):P(e,t,n)},K=function(e,t){b(e);for(var n,i=y(t=_(t)),r=0,o=i.length;o>r;)q(e,n=i[r++],t[n]);return e},X=function(e,t){return void 0===t?T(e):K(T(e),t)},$=function(e){var t=j.call(this,e=w(e,!0));return!(this===H&&r(B,e)&&!r(z,e))&&(!(t||!r(this,e)||!r(B,e)||r(this,A)&&this[A][e])||t)},Z=function(e,t){if(e=_(e),t=w(t,!0),e!==H||!r(B,t)||r(z,t)){var n=k(e,t);return!n||!r(B,t)||r(e,A)&&e[A][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(_(e)),i=[],o=0;n.length>o;)r(B,t=n[o++])||t==A||t==u||i.push(t);return i},ee=function(e){for(var t,n=e===H,i=M(n?z:_(e)),o=[],a=0;i.length>a;)!r(B,t=i[a++])||n&&!r(H,t)||o.push(B[t]);return o};G||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(z,n),r(this,A)&&r(this[A],e)&&(this[A][e]=!1),V(this,e,x(1,n))};return o&&W&&V(H,e,{configurable:!0,set:t}),Y(e)},s(N[L],"toString",function(){return this._k}),C.f=Z,O.f=q,n(237).f=E.f=J,n(90).f=$,n(155).f=ee,o&&!n(153)&&s(H,"propertyIsEnumerable",$,!0),p.f=function(e){return Y(f(e))}),a(a.G+a.W+a.F*!G,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=S(f.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!G,"Symbol",{for:function(e){return r(F,e+="")?F[e]:F[e]=N(e)},keyFor:function(e){if(Q(e))return m(F,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!G,"Object",{create:X,defineProperty:q,defineProperties:K,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),D&&a(a.S+a.F*(!G||l(function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!Q(e)){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);return t=i[1],"function"==typeof t&&(n=t),!n&&g(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!Q(t))return t}),i[1]=t,I.apply(D,i)}}}),N[L][R]||n(68)(N[L],R,N[L].valueOf),d(N,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){var i=n(47),r=n(239)(!0);i(i.S,"Object",{entries:function(e){return r(e)}})},function(e,t,n){var i=n(47),r=n(239)(!1);i(i.S,"Object",{values:function(e){return r(e)}})},function(e,t,n){n(162)("asyncIterator")},function(e,t,n){n(162)("observable")},function(e,t,n){n(444);for(var i=n(48),r=n(68),o=n(89),a=n(34)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var l=s[u],c=i[l],d=c&&c.prototype;d&&!d[a]&&r(d,a,l),o[l]=o.Array}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(18),o=i(r),a=n(462),s=i(a);o.default.registerHelper("hint","graphql",function(e,t){var n=t.schema;if(n){var i=e.getCursor(),r=e.getTokenAt(i),a=(0,s.default)(n,e.getValue(),i,r);return a&&a.list&&a.list.length>0&&(a.from=o.default.Pos(a.from.line,a.from.column),a.to=o.default.Pos(a.to.line,a.to.column),o.default.signal(e,"hasCompletion",e,a,r)),a}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){o(e,t,n),u(e,t,n,t.type)}function o(e,t,n){var i=t.fieldDef.name;"__"!==i.slice(0,2)&&(c(e,t,n,t.parentType),f(e,".")),f(e,i,"field-name",n,(0,b.getFieldReference)(t))}function a(e,t,n){var i="@"+t.directiveDef.name;f(e,i,"directive-name",n,(0,b.getDirectiveReference)(t))}function s(e,t,n){t.directiveDef?a(e,t,n):t.fieldDef&&o(e,t,n);var i=t.argDef.name;f(e,"("),f(e,i,"arg-name",n,(0,b.getArgumentReference)(t)),u(e,t,n,t.inputType),f(e,")")}function u(e,t,n,i){f(e,": "),c(e,t,n,i)}function l(e,t,n){var i=t.enumValue.name;c(e,t,n,t.inputType),f(e,"."),f(e,i,"enum-value",n,(0,b.getEnumValueReference)(t))}function c(e,t,n,i){i instanceof p.GraphQLNonNull?(c(e,t,n,i.ofType),f(e,"!")):i instanceof p.GraphQLList?(f(e,"["),c(e,t,n,i.ofType),f(e,"]")):f(e,i.name,"type-name",n,(0,b.getTypeReference)(t,i))}function d(e,t,n){var i=n.description;if(i){var r=document.createElement("div");r.className="info-description",t.renderDescription?r.innerHTML=t.renderDescription(i):r.appendChild(document.createTextNode(i)),e.appendChild(r)}h(e,t,n)}function h(e,t,n){var i=n.deprecationReason;if(i){var r=document.createElement("div");r.className="info-deprecation",t.renderDescription?r.innerHTML=t.renderDescription(i):r.appendChild(document.createTextNode(i));var o=document.createElement("span");o.className="info-deprecation-label",o.appendChild(document.createTextNode("Deprecated: ")),r.insertBefore(o,r.firstChild),e.appendChild(r)}}function f(e,t,n,i,r){n?!function(){var o=i.onClick,a=document.createElement(o?"a":"span");o&&(a.href="javascript:void 0",a.addEventListener("click",function(e){o(r,e)})),a.className=n,a.appendChild(document.createTextNode(t)),e.appendChild(a)}():e.appendChild(document.createTextNode(t))}var p=n(94),v=n(18),m=i(v),y=n(164),g=i(y),b=n(244);n(464),m.default.registerHelper("info","graphql",function(e,t){if(t.schema&&e.state){var n=e.state,i=n.kind,o=n.step,u=(0,g.default)(t.schema,e.state);if("Field"===i&&0===o&&u.fieldDef||"AliasedField"===i&&2===o&&u.fieldDef){var h=document.createElement("div");return r(h,u,t),d(h,t,u.fieldDef),h}if("Directive"===i&&1===o&&u.directiveDef){var f=document.createElement("div");return a(f,u,t),d(f,t,u.directiveDef),f}if("Argument"===i&&0===o&&u.argDef){var p=document.createElement("div");return s(p,u,t),d(p,t,u.argDef),p}if("EnumValue"===i&&u.enumValue&&u.enumValue.description){var v=document.createElement("div");return l(v,u,t),d(v,t,u.enumValue),v}if("NamedType"===i&&u.type&&u.type.description){var m=document.createElement("div");return c(m,u,t,u.type),d(m,t,u.type),m}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(18),o=i(r),a=n(164),s=i(a),u=n(244);n(465),o.default.registerHelper("jump","graphql",function(e,t){if(t.schema&&t.onClick&&e.state){var n=e.state,i=n.kind,r=n.step,o=(0,s.default)(t.schema,n);return"Field"===i&&0===r&&o.fieldDef||"AliasedField"===i&&2===r&&o.fieldDef?(0,u.getFieldReference)(o):"Directive"===i&&1===r&&o.directiveDef?(0,u.getDirectiveReference)(o):"Argument"===i&&0===r&&o.argDef?(0,u.getArgumentReference)(o):"EnumValue"===i&&o.enumValue?(0,u.getEnumValueReference)(o):"NamedType"===i&&o.type?(0,u.getTypeReference)(o):void 0}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){return t.nodes.map(function(r){var o="Variable"!==r.kind&&r.name?r.name:r.variable?r.variable:r;return{message:t.message,severity:n,type:i,from:e.posFromIndex(o.loc.start),to:e.posFromIndex(o.loc.end)}})}function o(e,t){return Array.prototype.concat.apply([],e.map(t))}var a=n(18),s=i(a),u=n(94);s.default.registerHelper("lint","graphql",function(e,t,n){var i=t.schema;if(!i)return[];try{var a=(0,u.parse)(e),l=o((0,u.validate)(i,a),function(e){return r(n,e,"error","validation")}),c=u.findDeprecatedUsages?o((0,u.findDeprecatedUsages)(i,a),function(e){return r(n,e,"warning","deprecation")}):[];return l.concat(c)}catch(e){var d=e.locations[0],h=s.default.Pos(d.line-1,d.column),f=n.getTokenAt(h);return[{message:e.message,severity:"error",type:"syntax",from:s.default.Pos(d.line-1,f.start),to:s.default.Pos(d.line-1,f.end)}]}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=e.levels,i=n&&0!==n.length?n[n.length-1]-(this.electricInput.test(t)?1:0):e.indentLevel;return i*this.config.indentUnit}var o=n(18),a=i(o),s=n(246),u=i(s),l=n(243);a.default.defineMode("graphql",function(e){var t=(0,u.default)({eatWhitespace:function(e){return e.eatWhile(l.isIgnored)},LexRules:l.LexRules,ParseRules:l.ParseRules,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:r,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}})},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t){n(this,e),this._start=0,this._pos=0,this._sourceText=t}return e.prototype.getStartOfToken=function(){return this._start},e.prototype.getCurrentPosition=function(){return this._pos},e.prototype._testNextCharacter=function(e){var t=this._sourceText.charAt(this._pos);return"string"==typeof e?t===e:e.test?e.test(t):e(t)},e.prototype.eol=function(){return this._sourceText.length===this._pos},e.prototype.sol=function(){return 0===this._pos},e.prototype.peek=function(){return this._sourceText.charAt(this._pos)?this._sourceText.charAt(this._pos):null},e.prototype.next=function(){var e=this._sourceText.charAt(this._pos);return this._pos++,e},e.prototype.eat=function(e){var t=this._testNextCharacter(e);if(t)return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},e.prototype.eatWhile=function(e){var t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},e.prototype.eatSpace=function(){return this.eatWhile(/[\s\u00a0]/)},e.prototype.skipToEnd=function(){this._pos=this._sourceText.length},e.prototype.skipTo=function(e){this._pos=e},e.prototype.match=function e(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],r=null,e=null;switch(typeof t){case"string":var o=new RegExp(t,i?"i":"");e=o.test(this._sourceText.substr(this._pos,t.length)),r=t;break;case"object":case"function":e=this._sourceText.slice(this._pos).match(t),r=e&&e[0]}return!(!e||"string"!=typeof t&&0!==e.index)&&(n&&(this._start=this._pos,this._pos+=r.length),e)},e.prototype.backUp=function(e){this._pos-=e},e.prototype.column=function(){return this._pos},e.prototype.indentation=function(){var e=this._sourceText.match(/\s*/),t=0;if(e&&0===e.index)for(var n=e[0],i=0;n.length>i;)9===n.charCodeAt(i)?t+=2:t++,i++;return t},e.prototype.current=function(){return this._sourceText.slice(this._start,this._pos)},e}();t.default=i},function(e,t){"use strict";function n(e){return{ofRule:e}}function i(e,t){return{ofRule:e,isList:!0,separator:t}}function r(e,t){var n=e.match;return e.match=function(e){return n(e)&&t.every(function(t){return!t.match(e)})},e}function o(e,t){return{style:t,match:function(t){return t.kind===e}}}function a(e,t){return{style:t||"punctuation",match:function(t){return"Punctuation"===t.kind&&t.value===e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.opt=n,t.list=i,t.butNot=r,t.t=o,t.p=a},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){var r="Invalid"===i.state.kind?i.state.prevState:i.state,c=r.kind,d=r.step,h=(0,f.default)(e,r);if("Document"===c)return(0,v.default)(n,i,[{text:"query"},{text:"mutation"},{text:"subscription"},{text:"fragment"},{text:"{"}]);if(("SelectionSet"===c||"Field"===c||"AliasedField"===c)&&h.parentType){var p=h.parentType.getFields?(0,y.default)(h.parentType.getFields()):[];return(0,u.isAbstractType)(h.parentType)&&p.push(l.TypeNameMetaFieldDef),h.parentType===e.getQueryType()&&p.push(l.SchemaMetaFieldDef,l.TypeMetaFieldDef),(0,v.default)(n,i,p.map(function(e){return{text:e.name,type:e.type,description:e.description,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}))}if("Arguments"===c||"Argument"===c&&0===d){var m=h.argDefs;if(m)return(0,v.default)(n,i,m.map(function(e){return{text:e.name,type:e.type,description:e.description}}))}if(("ObjectValue"===c||"ObjectField"===c&&0===d)&&h.objectFieldDefs){var g=(0,y.default)(h.objectFieldDefs);return(0,v.default)(n,i,g.map(function(e){return{text:e.name,type:e.type,description:e.description}}))}if("EnumValue"===c||"ListValue"===c&&1===d||"ObjectField"===c&&2===d||"Argument"===c&&2===d){var b=function(){var e=(0,u.getNamedType)(h.inputType);if(e instanceof u.GraphQLEnumType){var t=e.getValues(),r=(0,y.default)(t);return{v:(0,v.default)(n,i,r.map(function(t){return{text:t.name,type:e,description:t.description,isDeprecated:t.isDeprecated,deprecationReason:t.deprecationReason}}))}}if(e===u.GraphQLBoolean)return{v:(0,v.default)(n,i,[{text:"true",type:u.GraphQLBoolean,description:"Not false."},{text:"false",type:u.GraphQLBoolean,description:"Not true."}])}}();if("object"==typeof b)return b.v}if("TypeCondition"===c&&1===d||"NamedType"===c&&"TypeCondition"===r.prevState.kind){var _=void 0;if(h.parentType)(0,u.isAbstractType)(h.parentType)?!function(){var t=e.getPossibleTypes(h.parentType),n=Object.create(null);t.forEach(function(e){e.getInterfaces().forEach(function(e){n[e.name]=e})}),_=t.concat((0,y.default)(n))}():_=[h.parentType];else{var w=e.getTypeMap();_=(0,y.default)(w).filter(u.isCompositeType)}return(0,v.default)(n,i,_.map(function(e){return{text:e.name,description:e.description}}))}if("FragmentSpread"===c&&1===d){var x=function(){var r=e.getTypeMap(),o=s(i.state),l=a(t),c=l.filter(function(t){return r[t.typeCondition.name.value]&&!(o&&"FragmentDefinition"===o.kind&&o.name===t.name.value)&&(0,u.doTypesOverlap)(e,h.parentType,r[t.typeCondition.name.value])});return{v:(0,v.default)(n,i,c.map(function(e){return{text:e.name.value,type:r[e.typeCondition.name.value],description:"fragment "+e.name.value+" on "+e.typeCondition.name.value}}))}}();if("object"==typeof x)return x.v}if("VariableDefinition"===c&&2===d||"ListType"===c&&1===d||"NamedType"===c&&("VariableDefinition"===r.prevState.kind||"ListType"===r.prevState.kind)){var T=e.getTypeMap(),E=(0,y.default)(T).filter(u.isInputType);return(0,v.default)(n,i,E.map(function(e){return{text:e.name,description:e.description}}))}if("Directive"===c){var C=e.getDirectives().filter(function(e){return o(r.prevState.kind,e)});return(0,v.default)(n,i,C.map(function(e){return{text:e.name,description:e.description}}))}}function o(e,t){var n=t.locations;switch(e){case"Query":return n.indexOf("QUERY")!==-1;case"Mutation":return n.indexOf("MUTATION")!==-1;case"Subscription":return n.indexOf("SUBSCRIPTION")!==-1;case"Field":case"AliasedField":return n.indexOf("FIELD")!==-1;case"FragmentDefinition":return n.indexOf("FRAGMENT_DEFINITION")!==-1;case"FragmentSpread":return n.indexOf("FRAGMENT_SPREAD")!==-1;case"InlineFragment":return n.indexOf("INLINE_FRAGMENT")!==-1}return!1}function a(e){var t=[];return(0,b.default)(e,{eatWhitespace:function(e){return e.eatWhile(_.isIgnored)},LexRules:_.LexRules,ParseRules:_.ParseRules},function(e,n){"FragmentDefinition"===n.kind&&n.name&&n.type&&t.push({kind:"FragmentDefinition",name:{kind:"Name",value:n.name},typeCondition:{kind:"NamedType",name:{kind:"Name",value:n.type}}})}),t}function s(e){var t=void 0;return(0,d.default)(e,function(e){switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var u=n(94),l=n(42),c=n(245),d=i(c),h=n(164),f=i(h),p=n(463),v=i(p),m=n(466),y=i(m),g=n(467),b=i(g),_=n(243)},function(e,t){"use strict";function n(e,t,n){var r=i(n,o(t.string));if(r){var a=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,column:a},to:{line:e.line,column:t.end}}}}function i(e,t){if(!t)return r(e,function(e){return!e.isDeprecated});var n=e.map(function(e){return{proximity:a(o(e.text),t),entry:e}}),i=r(r(n,function(e){return e.proximity<=2}),function(e){return!e.entry.isDeprecated}),s=i.sort(function(e,t){return(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length; +});return s.map(function(e){return e.entry})}function r(e,t){var n=e.filter(t);return 0===n.length?e:n}function o(e){return e.toLowerCase().replace(/\W/g,"")}function a(e,t){var n=s(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}function s(e,t){var n=void 0,i=void 0,r=[],o=e.length,a=t.length;for(n=0;n<=o;n++)r[n]=[n];for(i=1;i<=a;i++)r[0][i]=i;for(n=1;n<=o;n++)for(i=1;i<=a;i++){var s=e[n-1]===t[i-1]?0:1;r[n][i]=Math.min(r[n-1][i]+1,r[n][i-1]+1,r[n-1][i-1]+s),n>1&&i>1&&e[n-1]===t[i-2]&&e[n-2]===t[i-1]&&(r[n][i]=Math.min(r[n][i],r[n-2][i-2]+s))}return r[o][a]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function o(e){var t=e.state.info.options;return t&&t.hoverTime||500}function a(e,t){var n=e.state.info,i=t.target||t.srcElement;if("SPAN"===i.nodeName&&void 0===n.hoverTimeout){var r=i.getBoundingClientRect(),a=o(e);n.hoverTimeout=setTimeout(d,a);var u=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(d,a)},l=function t(){c.default.off(document,"mousemove",u),c.default.off(e.getWrapperElement(),"mouseout",t),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},d=function(){c.default.off(document,"mousemove",u),c.default.off(e.getWrapperElement(),"mouseout",l),n.hoverTimeout=void 0,s(e,r)};c.default.on(document,"mousemove",u),c.default.on(e.getWrapperElement(),"mouseout",l)}}function s(e,t){var n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}),i=e.state.info,r=i.options,o=r.render||e.getHelper(n,"info");if(o){var a=e.getTokenAt(n,!0);if(a){var s=o(a,r,e);s&&u(e,t,s)}}}function u(e,t,n){var i=document.createElement("div");i.className="CodeMirror-info",i.appendChild(n),document.body.appendChild(i);var r=i.getBoundingClientRect(),o=i.currentStyle||window.getComputedStyle(i),a=r.right-r.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),s=r.bottom-r.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom),u=t.bottom;s>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(u=t.top-s),u<0&&(u=t.bottom);var l=Math.max(0,window.innerWidth-a-15);l>t.left&&(l=t.left),i.style.opacity=1,i.style.top=u+"px",i.style.left=l+"px";var d=void 0,h=function(){clearTimeout(d)},f=function(){clearTimeout(d),d=setTimeout(p,200)},p=function(){c.default.off(i,"mouseover",h),c.default.off(i,"mouseout",f),c.default.off(e.getWrapperElement(),"mouseout",f),i.style.opacity?(i.style.opacity=0,setTimeout(function(){i.parentNode&&i.parentNode.removeChild(i)},600)):i.parentNode&&i.parentNode.removeChild(i)};c.default.on(i,"mouseover",h),c.default.on(i,"mouseout",f),c.default.on(e.getWrapperElement(),"mouseout",f)}var l=n(18),c=i(l);c.default.defineOption("info",!1,function(e,t,n){if(n&&n!==c.default.Init){var i=e.state.info.onMouseOver;c.default.off(e.getWrapperElement(),"mouseover",i),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){var o=e.state.info=r(t);o.onMouseOver=a.bind(null,e),c.default.on(e.getWrapperElement(),"mouseover",o.onMouseOver)}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=t.target||t.srcElement;if("SPAN"===n.nodeName){var i=n.getBoundingClientRect(),r={left:(i.left+i.right)/2,top:(i.top+i.bottom)/2};e.state.jump.cursor=r,e.state.jump.isHoldingModifier&&u(e)}}function o(e){return!e.state.jump.isHoldingModifier&&e.state.jump.cursor?void(e.state.jump.cursor=null):void(e.state.jump.isHoldingModifier&&e.state.jump.marker&&l(e))}function a(e,t){if(!e.state.jump.isHoldingModifier&&s(t.key)){e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&u(e);var n=function n(o){o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&l(e),d.default.off(document,"keyup",n),d.default.off(document,"click",i),e.off("mousedown",r))},i=function(t){var n=e.state.jump.destination;n&&e.state.jump.options.onClick(n,t)},r=function(t,n){e.state.jump.destination&&(n.codemirrorIgnore=!0)};d.default.on(document,"keyup",n),d.default.on(document,"click",i),e.on("mousedown",r)}}function s(e){return e===(h?"Meta":"Control")}function u(e){if(!e.state.jump.marker){var t=e.state.jump.cursor,n=e.coordsChar(t),i=e.getTokenAt(n,!0),r=e.state.jump.options,o=r.getDestination||e.getHelper(n,"jump");if(o){var a=o(i,r,e);if(a){var s=e.markText({line:n.line,ch:i.start},{line:n.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=s,e.state.jump.destination=a}}}}function l(e){var t=e.state.jump.marker;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}var c=n(18),d=i(c);d.default.defineOption("jump",!1,function(e,t,n){if(n&&n!==d.default.Init){var i=e.state.jump.onMouseOver;d.default.off(e.getWrapperElement(),"mouseover",i);var s=e.state.jump.onMouseOut;d.default.off(e.getWrapperElement(),"mouseout",s),d.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){var u=e.state.jump={options:t,onMouseOver:r.bind(null,e),onMouseOut:o.bind(null,e),onKeyDown:a.bind(null,e)};d.default.on(e.getWrapperElement(),"mouseover",u.onMouseOver),d.default.on(e.getWrapperElement(),"mouseout",u.onMouseOut),d.default.on(document,"keydown",u.onKeyDown)}});var h=navigator&&navigator.appVersion.indexOf("Mac")!==-1},function(e,t){"use strict";function n(e){for(var t=Object.keys(e),n=t.length,i=new Array(n),r=0;r=0;s--){var u=i[s].from(),l=i[s].to();u.line>=n||(l.line>=n&&(l=a(n,0)),n=u.line,null==o?t.uncomment(u,l,e)?o="un":(t.lineComment(u,l,e),o="line"):"un"==o?t.uncomment(u,l,e):t.lineComment(u,l,e))}}),e.defineExtension("lineComment",function(e,s,u){u||(u=r);var l=this,c=i(l,e),d=l.getLine(e.line);if(null!=d&&!n(l,e,d)){var h=u.lineComment||c.lineComment;if(!h)return void((u.blockCommentStart||c.blockCommentStart)&&(u.fullLines=!0,l.blockComment(e,s,u)));var f=Math.min(0!=s.ch||s.line==e.line?s.line+1:s.line,l.lastLine()+1),p=null==u.padding?" ":u.padding,v=u.commentBlankLines||e.line==s.line;l.operation(function(){if(u.indent){for(var n=null,i=e.line;is.length)&&(n=s)}for(var i=e.line;id||s.operation(function(){if(0!=n.fullLines){var i=o.test(s.getLine(d));s.replaceRange(h+c,a(d)),s.replaceRange(l+h,a(e.line,0));var r=n.blockCommentLead||u.blockCommentLead;if(null!=r)for(var f=e.line+1;f<=d;++f)(f!=d||i)&&s.replaceRange(r+h,a(f,0))}else s.replaceRange(c,t),s.replaceRange(l,e)})}}),e.defineExtension("uncomment",function(e,t,n){n||(n=r);var s,u=this,l=i(u,e),c=Math.min(0!=t.ch||t.line==e.line?t.line:t.line-1,u.lastLine()),d=Math.min(e.line,c),h=n.lineComment||l.lineComment,f=[],p=null==n.padding?" ":n.padding;e:if(h){for(var v=d;v<=c;++v){var m=u.getLine(v),y=m.indexOf(h);if(y>-1&&!/comment/.test(u.getTokenTypeAt(a(v,y+1)))&&(y=-1),y==-1&&o.test(m))break e;if(y>-1&&o.test(m.slice(0,y)))break e;f.push(m)}if(u.operation(function(){for(var e=d;e<=c;++e){var t=f[e-d],n=t.indexOf(h),i=n+h.length;n<0||(t.slice(i,i+p.length)==p&&(i+=p.length),s=!0,u.replaceRange("",a(e,n),a(e,i)))}}),s)return!0}var g=n.blockCommentStart||l.blockCommentStart,b=n.blockCommentEnd||l.blockCommentEnd;if(!g||!b)return!1;var _=n.blockCommentLead||l.blockCommentLead,w=u.getLine(d),x=w.indexOf(g);if(x==-1)return!1;var T=c==d?w:u.getLine(c),E=T.indexOf(b,c==d?x+g.length:0);E==-1&&d!=c&&(T=u.getLine(--c),E=T.indexOf(b));var C=a(d,x+1),O=a(c,E+1);if(E==-1||!/comment/.test(u.getTokenTypeAt(C))||!/comment/.test(u.getTokenTypeAt(O))||u.getRange(C,O,"\n").indexOf(b)>-1)return!1;var S=w.lastIndexOf(g,e.ch),k=S==-1?-1:w.slice(0,e.ch).indexOf(b,S+g.length);if(S!=-1&&k!=-1&&k+b.length!=e.ch)return!1;k=T.indexOf(b,t.ch);var P=T.slice(t.ch).lastIndexOf(g,k-t.ch);return S=k==-1||P==-1?-1:t.ch+P,(k==-1||S==-1||S==t.ch)&&(u.operation(function(){u.replaceRange("",a(c,E-(p&&T.slice(E-p.length,E)==p?p.length:0)),a(c,E+b.length));var e=x+g.length;if(p&&w.slice(e,e+p.length)==p&&(e+=p.length),u.replaceRange("",a(d,x),a(d,e)),_)for(var t=d+1;t<=c;++t){var n=u.getLine(t),i=n.indexOf(_);if(i!=-1&&!o.test(n.slice(0,i))){var r=i+_.length;p&&n.slice(r,r+p.length)==p&&(r+=p.length),u.replaceRange("",a(t,i),a(t,r))}}}),!0)})})},function(e,t,n){!function(e){e(n(18))}(function(e){function t(e,t){return"pairs"==t&&"string"==typeof e?e:"object"==typeof e&&null!=e[t]?e[t]:h[t]}function n(e){return function(t){return s(t,e)}}function i(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var n=e.getModeAt(e.getCursor());return n.closeBrackets||t}function r(n){var r=i(n);if(!r||n.getOption("disableInput"))return e.Pass;for(var o=t(r,"pairs"),a=n.listSelections(),s=0;s=0;s--){var c=a[s].head;n.replaceRange("",f(c.line,c.ch-1),f(c.line,c.ch+1),"+delete")}}function o(n){var r=i(n),o=r&&t(r,"explode");if(!o||n.getOption("disableInput"))return e.Pass;for(var a=n.listSelections(),s=0;s0;return{anchor:new f(t.anchor.line,t.anchor.ch+(n?-1:1)),head:new f(t.head.line,t.head.ch+(n?1:-1))}}function s(n,r){var o=i(n);if(!o||n.getOption("disableInput"))return e.Pass;var s=t(o,"pairs"),l=s.indexOf(r);if(l==-1)return e.Pass;for(var h,p=t(o,"triples"),v=s.charAt(l+1)==r,m=n.listSelections(),y=l%2==0,g=0;g1&&p.indexOf(r)>=0&&n.getRange(f(w.line,w.ch-2),w)==r+r&&(w.ch<=2||n.getRange(f(w.line,w.ch-3),f(w.line,w.ch-2))!=r))b="addFour";else if(v){if(e.isWordChar(x)||!c(n,w,r))return e.Pass;b="both"}else{if(!y||n.getLine(w.line).length!=w.ch&&!u(x,s)&&!/\s/.test(x))return e.Pass;b="both"}else b=v&&d(n,w)?"both":p.indexOf(r)>=0&&n.getRange(w,f(w.line,w.ch+3))==r+r+r?"skipThree":"skip";if(h){if(h!=b)return e.Pass}else h=b}var T=l%2?s.charAt(l-1):r,E=l%2?r:s.charAt(l+1);n.operation(function(){if("skip"==h)n.execCommand("goCharRight");else if("skipThree"==h)for(var e=0;e<3;e++)n.execCommand("goCharRight");else if("surround"==h){for(var t=n.getSelections(),e=0;e-1&&n%2==1}function l(e,t){var n=e.getRange(f(t.line,t.ch-1),f(t.line,t.ch+1));return 2==n.length?n:null}function c(t,n,i){var r=t.getLine(n.line),o=t.getTokenAt(n);if(/\bstring2?\b/.test(o.type)||d(t,n))return!1;var a=new e.StringStream(r.slice(0,n.ch)+i+r.slice(n.ch),4);for(a.pos=a.start=o.start;;){var s=t.getMode().token(a,o.state);if(a.pos>=n.ch+1)return/\bstring2?\b/.test(s);a.start=a.pos}}function d(e,t){var n=e.getTokenAt(f(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch}var h={pairs:"()[]{}''\"\"",triples:"",explode:"[]{}"},f=e.Pos;e.defineOption("autoCloseBrackets",!1,function(t,n,i){i&&i!=e.Init&&(t.removeKeyMap(v),t.state.closeBrackets=null),n&&(t.state.closeBrackets=n,t.addKeyMap(v))});for(var p=h.pairs+"`",v={Backspace:r,Enter:o},m=0;mt.lastLine())return null;var i=t.getTokenAt(e.Pos(n,1));if(/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(n,i.end+1))),"keyword"!=i.type||"import"!=i.string)return null;for(var r=n,o=Math.min(t.lastLine(),n+10);r<=o;++r){var a=t.getLine(r),s=a.indexOf(";");if(s!=-1)return{startCh:i.end,end:e.Pos(r,s)}}}var r,o=n.line,a=i(o);if(!a||i(o-1)||(r=i(o-2))&&r.end.line==o-1)return null;for(var s=a.end;;){var u=i(s.line+1);if(null==u)break;s=u.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}}),e.registerHelper("fold","include",function(t,n){function i(n){if(nt.lastLine())return null;var i=t.getTokenAt(e.Pos(n,1));return/\S/.test(i.string)||(i=t.getTokenAt(e.Pos(n,i.end+1))),"meta"==i.type&&"#include"==i.string.slice(0,8)?i.start+8:void 0}var r=n.line,o=i(r);if(null==o||null!=i(r-1))return null;for(var a=r;;){var s=i(a+1);if(null==s)break;++a}return{from:e.Pos(r,o+1),to:t.clipPos(e.Pos(a))}})})},function(e,t,n){!function(e){e(n(18),n(248))}(function(e){"use strict";function t(e){this.options=e,this.from=this.to=0}function n(e){return e===!0&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function i(e,t){for(var n=e.findMarks(d(t,0),d(t+1,0)),i=0;i=s&&(n=r(o.indicatorOpen))}e.setGutterMarker(t,o.gutter,n),++a})}function a(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function s(e,t,n){var r=e.state.foldGutter;if(r){var o=r.options;if(n==o.gutter){var a=i(e,t);a?a.clear():e.foldCode(d(t,0),o.rangeFinder)}}}function u(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},n.foldOnChangeTimeSpan||600)}}function l(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?a(e):e.operation(function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function c(e,t){var n=e.state.foldGutter;if(n){var i=t.line;i>=n.from&&i0&&t.to.ch-t.from.ch!=n.to.ch-n.from.ch}function i(e,t,n){var i=e.options.hintOptions,r={};for(var o in v)r[o]=v[o];if(i)for(var o in i)void 0!==i[o]&&(r[o]=i[o]);if(n)for(var o in n)void 0!==n[o]&&(r[o]=n[o]);return r.hint.resolve&&(r.hint=r.hint.resolve(e,t)),r}function r(e){return"string"==typeof e?e:e.text}function o(e,t){function n(e,n){var r;r="string"!=typeof n?function(e){return n(e,t)}:i.hasOwnProperty(n)?i[n]:n,o[e]=r}var i={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(-t.menuSize()+1,!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},r=e.options.customKeys,o=r?{}:i;if(r)for(var a in r)r.hasOwnProperty(a)&&n(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&n(a,s[a]);return o}function a(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function s(t,n){this.completion=t,this.data=n,this.picked=!1;var i=this,s=t.cm,u=this.hints=document.createElement("ul");u.className="CodeMirror-hints",this.selectedHint=n.selectedHint||0;for(var l=n.list,c=0;cu.clientHeight+1,C=s.getScrollInfo();if(T>0){var O=x.bottom-x.top,S=m.top-(m.bottom-x.top);if(S-O>0)u.style.top=(g=m.top-O)+"px",b=!1;else if(O>w){u.style.height=w-5+"px",u.style.top=(g=m.bottom-x.top)+"px";var k=s.getCursor();n.from.ch!=k.ch&&(m=s.cursorCoords(k),u.style.left=(y=m.left)+"px",x=u.getBoundingClientRect())}}var P=x.right-_;if(P>0&&(x.right-x.left>_&&(u.style.width=_-5+"px",P-=x.right-x.left-_),u.style.left=(y=m.left-P)+"px"),E)for(var M=u.firstChild;M;M=M.nextSibling)M.style.paddingRight=s.display.nativeBarWidth+"px";if(s.addKeyMap(this.keyMap=o(t,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:l.length,close:function(){t.close()},pick:function(){i.pick()},data:n})),t.options.closeOnUnfocus){var N;s.on("blur",this.onBlur=function(){N=setTimeout(function(){t.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(N)})}return s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),n=s.getWrapperElement().getBoundingClientRect(),i=g+C.top-e.top,r=i-(window.pageYOffset||(document.documentElement||document.body).scrollTop);return b||(r+=u.offsetHeight),r<=n.top||r>=n.bottom?t.close():(u.style.top=i+"px",void(u.style.left=y+C.left-e.left+"px"))}),e.on(u,"dblclick",function(e){var t=a(u,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())}),e.on(u,"click",function(e){var n=a(u,e.target||e.srcElement);n&&null!=n.hintId&&(i.changeActive(n.hintId),t.options.completeOnSingleClick&&i.pick())}),e.on(u,"mousedown",function(){setTimeout(function(){s.focus()},20)}),e.signal(n,"select",l[0],u.firstChild),!0}function u(e,t){if(!e.somethingSelected())return t;for(var n=[],i=0;i0?t(e):i(r+1)})}var o=u(e,r);i(0)};return o.async=!0,o.supportsSelection=!0,o}return(i=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:i})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}var d="CodeMirror-hint",h="CodeMirror-hint-active";e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var i={hint:t};if(n)for(var r in n)i[r]=n[r];return e.showHint(i)},e.defineExtension("showHint",function(n){n=i(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var o=0;o=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var i=this.hints.childNodes[this.selectedHint];i.className=i.className.replace(" "+h,""),i=this.hints.childNodes[this.selectedHint=t],i.className+=" "+h,i.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=i.offsetTop+i.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:c}),e.registerHelper("hint","fromList",function(t,n){var i=t.getCursor(),r=t.getTokenAt(i),o=e.Pos(i.line,r.end);if(r.string&&/\w/.test(r.string[r.string.length-1]))var a=r.string,s=e.Pos(i.line,r.start);else var a="",s=o;for(var u=[],l=0;l,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)})},function(e,t,n){!function(e){e(n(18))}(function(e){"use strict";function t(t,n){function i(t){return r.parentNode?(r.style.top=Math.max(0,t.clientY-r.offsetHeight-5)+"px",void(r.style.left=t.clientX+5+"px")):e.off(document,"mousemove",i)}var r=document.createElement("div");return r.className="CodeMirror-lint-tooltip",r.appendChild(n.cloneNode(!0)),document.body.appendChild(r),e.on(document,"mousemove",i),i(t),null!=r.style.opacity&&(r.style.opacity=1),r}function n(e){e.parentNode&&e.parentNode.removeChild(e)}function i(e){e.parentNode&&(null==e.style.opacity&&n(e),e.style.opacity=0,setTimeout(function(){n(e)},600))}function r(n,r,o){function a(){e.off(o,"mouseout",a),s&&(i(s),s=null)}var s=t(n,r),u=setInterval(function(){if(s)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){a();break}}if(!s)return clearInterval(u)},400);e.on(o,"mouseout",a)}function o(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){y(e,t)},this.waitingFor=0}function a(e,t){return t instanceof Function?{getAnnotations:t}:(t&&t!==!0||(t={}),t)}function s(e){var t=e.state.lint;t.hasGutter&&e.clearGutter(g);for(var n=0;n1,n.options.tooltips))}}i.onUpdateLinting&&i.onUpdateLinting(t,r,e)}function v(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){f(e)},t.options.delay||500))}function m(e,t){for(var n=t.target||t.srcElement,i=document.createDocumentFragment(),o=0;o-1)return c=n(u,l,c),{from:i(o.line,c),to:i(o.line,c+a.length)}}else{var u=e.getLine(o.line).slice(o.ch),l=s(u),c=l.indexOf(t);if(c>-1)return c=n(u,l,c)+o.ch,{from:i(o.line,c),to:i(o.line,c+a.length)}}}:this.matches=function(){};else{var l=a.split("\n");this.matches=function(t,n){var r=u.length-1;if(t){if(n.line-(u.length-1)=1;--c,--a)if(u[c]!=s(e.getLine(a)))return;var d=e.getLine(a),h=d.length-l[0].length;if(s(d.slice(h))!=u[0])return;return{from:i(a,h),to:o}}if(!(n.line+(u.length-1)>e.lastLine())){var d=e.getLine(n.line),h=d.length-l[0].length;if(s(d.slice(h))==u[0]){for(var f=i(n.line,h),a=n.line+1,c=1;cn))return i;--i}}}var i=e.Pos;t.prototype={findNext:function(){ +return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){function t(e){var t=i(e,0);return n.pos={from:t,to:t},n.atOccurrence=!1,!1}for(var n=this,r=this.doc.clipPos(e?this.pos.from:this.pos.to);;){if(this.pos=this.matches(e,r))return this.atOccurrence=!0,this.pos.match||!0;if(e){if(!r.line)return t(0);r=i(r.line-1,this.doc.getLine(r.line-1).length)}else{var o=this.doc.lineCount();if(r.line==o-1)return t(o);r=i(r.line+1,0)}}},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var r=e.splitLines(t);this.doc.replaceRange(r,this.pos.from,this.pos.to,n),this.pos.to=i(this.pos.from.line+r.length-1,r[r.length-1].length+(1==r.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,n,i){return new t(this.doc,e,n,i)}),e.defineDocExtension("getSearchCursor",function(e,n,i){return new t(this,e,n,i)}),e.defineExtension("selectMatches",function(t,n){for(var i=[],r=this.getSearchCursor(t,this.getCursor("from"),n);r.findNext()&&!(e.cmpPos(r.to(),this.getCursor("to"))>0);)i.push({anchor:r.from(),head:r.to()});i.length&&this.setSelections(i,0)})})},function(e,t,n){!function(e){e(n(18),n(474),n(247))}(function(e){"use strict";function t(t,n,i){if(i<0&&0==n.ch)return t.clipPos(f(n.line-1));var r=t.getLine(n.line);if(i>0&&n.ch>=r.length)return t.clipPos(f(n.line+1,0));for(var o,a="start",s=n.ch,u=i<0?0:r.length,l=0;s!=u;s+=i,l++){var c=r.charAt(i<0?s-1:s),d="_"!=c&&e.isWordChar(c)?"w":"o";if("w"==d&&c.toUpperCase()==c&&(d="W"),"start"==a)"o"!=d&&(a="in",o=d);else if("in"==a&&o!=d){if("w"==o&&"W"==d&&i<0&&s--,"W"==o&&"w"==d&&i>0){o="w";continue}break}}return f(n.line,s)}function n(e,n){e.extendSelectionsBy(function(i){return e.display.shift||e.doc.extend||i.empty()?t(e.doc,i.head,n):n<0?i.from():i.to()})}function i(t,n){return t.isReadOnly()?e.Pass:(t.operation(function(){for(var e=t.listSelections().length,i=[],r=-1,o=0;o=0;s--){var u=i[o[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=r(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}})}function l(t){var n=t.getCursor("from"),i=t.getCursor("to");if(0==e.cmpPos(n,i)){var o=r(t,n);if(!o.word)return;n=o.from,i=o.to}return{from:n,to:i,query:t.getRange(n,i),word:o}}function c(e,t){var n=l(e);if(n){var i=n.query,r=e.getSearchCursor(i,t?n.to:n.from);(t?r.findNext():r.findPrevious())?e.setSelection(r.from(),r.to()):(r=e.getSearchCursor(i,t?f(e.firstLine(),0):e.clipPos(f(e.lastLine()))),(t?r.findNext():r.findPrevious())?e.setSelection(r.from(),r.to()):n.word&&e.setSelection(n.from,n.to))}}var d=e.keyMap.sublime={fallthrough:"default"},h=e.commands,f=e.Pos,p=e.keyMap.default==e.keyMap.macDefault,v=p?"Cmd-":"Ctrl-",m=p?"Ctrl-":"Alt-";h[d[m+"Left"]="goSubwordLeft"]=function(e){n(e,-1)},h[d[m+"Right"]="goSubwordRight"]=function(e){n(e,1)},p&&(d["Cmd-Left"]="goLineStartSmart");var y=p?"Ctrl-Alt-":"Ctrl-";h[d[y+"Up"]="scrollLineUp"]=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},h[d[y+"Down"]="scrollLineDown"]=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},h[d["Shift-"+v+"L"]="splitSelectionByLine"]=function(e){for(var t=e.listSelections(),n=[],i=0;ir.line&&a==o.line&&0==o.ch||n.push({anchor:a==r.line?r:f(a,0),head:a==o.line?o:f(a)});e.setSelections(n,0)},d["Shift-Tab"]="indentLess",h[d.Esc="singleSelectionTop"]=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},h[d[v+"L"]="selectLine"]=function(e){for(var t=e.listSelections(),n=[],i=0;ir?i.push(u,l):i.length&&(i[i.length-1]=l),r=l}t.operation(function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+a,f(t.lastLine()),null,"+swapLine"):t.replaceRange(a+"\n",f(r,0),null,"+swapLine")}t.setSelections(o),t.scrollIntoView()})},h[d[b+"Down"]="swapLineDown"]=function(t){if(t.isReadOnly())return e.Pass;for(var n=t.listSelections(),i=[],r=t.lastLine()+1,o=n.length-1;o>=0;o--){var a=n[o],s=a.to().line+1,u=a.from().line;0!=a.to().ch||a.empty()||s--,s=0;e-=2){var n=i[e],r=i[e+1],o=t.getLine(n);n==t.lastLine()?t.replaceRange("",f(n-1),f(n),"+swapLine"):t.replaceRange("",f(n,0),f(n+1,0),"+swapLine"),t.replaceRange(o+"\n",f(r,0),null,"+swapLine")}t.scrollIntoView()})},h[d[v+"/"]="toggleCommentIndented"]=function(e){e.toggleComment({indent:!0})},h[d[v+"J"]="joinLines"]=function(e){for(var t=e.listSelections(),n=[],i=0;i=0;r--){var o=n[r].head,a=t.getRange({line:o.line,ch:0},o),s=e.countColumn(a,null,t.getOption("tabSize")),u=t.findPosH(o,-1,"char",!1);if(a&&!/\S/.test(a)&&s%i==0){var l=new f(o.line,e.findColumn(a,s-i,i));l.ch!=o.ch&&(u=l)}t.replaceRange("",u,o,"+delete")}})},h[d[_+v+"K"]="delLineRight"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange("",t[n].anchor,f(t[n].to().line),"+delete");e.scrollIntoView()})},h[d[_+v+"U"]="upcaseAtCursor"]=function(e){u(e,function(e){return e.toUpperCase()})},h[d[_+v+"L"]="downcaseAtCursor"]=function(e){u(e,function(e){return e.toLowerCase()})},h[d[_+v+"Space"]="setSublimeMark"]=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},h[d[_+v+"A"]="selectToSublimeMark"]=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},h[d[_+v+"W"]="deleteToSublimeMark"]=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var i=t.getCursor(),r=n;if(e.cmpPos(i,r)>0){var o=r;r=i,i=o}t.state.sublimeKilled=t.getRange(i,r),t.replaceRange("",i,r)}},h[d[_+v+"X"]="swapWithSublimeMark"]=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},h[d[_+v+"Y"]="sublimeYank"]=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},d[_+v+"G"]="clearBookmarks",h[d[_+v+"C"]="showInCenter"]=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)};var w=p?"Ctrl-Shift-":"Ctrl-Alt-";h[d[w+"Up"]="selectLinesUpward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;ne.firstLine()&&e.addSelection(f(i.head.line-1,i.head.ch))}})},h[d[w+"Down"]="selectLinesDownward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;n":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?h[e]:null}var r=n(23),o=n(9),a=r.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],l=[1,"","
"],c=[3,"","
"],d=[1,'',""],h={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(e){h[e]=d,s[e]=!0}),e.exports=i},function(e,t){"use strict";function n(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){"use strict";function n(e){return e.replace(i,"-$1").toLowerCase()}var i=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function i(e){return r(e).replace(o,"-ms-")}var r=n(510),o=/^ms-/;e.exports=i},function(e,t){"use strict";function n(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t,n){"use strict";function i(e){return r(e)&&3==e.nodeType}var r=n(512);e.exports=i},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){e.exports=n.p+"static/media/logo.d93b077d.svg"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return(0,a.default)(e,"Received null or undefined error."),{message:e.message,locations:e.locations,path:e.path}}Object.defineProperty(t,"__esModule",{value:!0}),t.formatError=r;var o=n(20),a=i(o)},function(e,t,n){"use strict";function i(e,t,n){if(e&&e.path)return e;var i=e?e.message||String(e):"An unknown error occurred.";return new r.GraphQLError(i,e&&e.nodes||t,e&&e.source,e&&e.positions,n,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=i;var r=n(93)},function(e,t,n){"use strict";function i(e,t,n){var i=(0,a.getLocation)(e,t),o=new s.GraphQLError("Syntax Error "+e.name+" ("+i.line+":"+i.column+") "+n+"\n\n"+r(e,i),void 0,e,[t]);return o}function r(e,t){var n=t.line,i=(n-1).toString(),r=n.toString(),a=(n+1).toString(),s=a.length,u=e.body.split(/\r\n|[\n\r]/g);return(n>=2?o(s,i)+": "+u[n-2]+"\n":"")+o(s,r)+": "+u[n-1]+"\n"+Array(2+s+t.column).join(" ")+"^\n"+(n0?{errors:f}:(0,s.execute)(e,h,n,i,u,l))}).then(void 0,function(e){return{errors:[e]}})}Object.defineProperty(t,"__esModule",{value:!0}),t.graphql=i;var r=n(174),o=n(118),a=n(264),s=n(259)},function(e,t,n){"use strict";function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.BREAK=t.visitWithTypeInfo=t.visitInParallel=t.visit=t.Source=t.print=t.parseType=t.parseValue=t.parse=t.TokenKind=t.createLexer=t.Kind=t.getLocation=void 0;var r=n(173);Object.defineProperty(t,"getLocation",{enumerable:!0,get:function(){return r.getLocation}});var o=n(172);Object.defineProperty(t,"createLexer",{enumerable:!0,get:function(){return o.createLexer}}),Object.defineProperty(t,"TokenKind",{enumerable:!0,get:function(){return o.TokenKind}});var a=n(118);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(t,"parseValue",{enumerable:!0,get:function(){return a.parseValue}}),Object.defineProperty(t,"parseType",{enumerable:!0,get:function(){return a.parseType}});var s=n(35);Object.defineProperty(t,"print",{enumerable:!0,get:function(){return s.print}});var u=n(174);Object.defineProperty(t,"Source",{enumerable:!0,get:function(){return u.Source}});var l=n(96);Object.defineProperty(t,"visit",{enumerable:!0,get:function(){return l.visit}}),Object.defineProperty(t,"visitInParallel",{enumerable:!0,get:function(){return l.visitInParallel}}),Object.defineProperty(t,"visitWithTypeInfo",{enumerable:!0,get:function(){return l.visitWithTypeInfo}}),Object.defineProperty(t,"BREAK",{enumerable:!0,get:function(){return l.BREAK}});var c=n(17),d=i(c);t.Kind=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(53);Object.defineProperty(t,"GraphQLSchema",{enumerable:!0,get:function(){return i.GraphQLSchema}});var r=n(13);Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return r.isType}}),Object.defineProperty(t,"isInputType",{enumerable:!0,get:function(){return r.isInputType}}),Object.defineProperty(t,"isOutputType",{enumerable:!0,get:function(){return r.isOutputType}}),Object.defineProperty(t,"isLeafType",{enumerable:!0,get:function(){return r.isLeafType}}),Object.defineProperty(t,"isCompositeType",{enumerable:!0,get:function(){return r.isCompositeType}}),Object.defineProperty(t,"isAbstractType",{enumerable:!0,get:function(){return r.isAbstractType}}),Object.defineProperty(t,"isNamedType",{enumerable:!0,get:function(){return r.isNamedType}}),Object.defineProperty(t,"assertType",{enumerable:!0,get:function(){return r.assertType}}),Object.defineProperty(t,"assertInputType",{enumerable:!0,get:function(){return r.assertInputType}}),Object.defineProperty(t,"assertOutputType",{enumerable:!0,get:function(){return r.assertOutputType}}),Object.defineProperty(t,"assertLeafType",{enumerable:!0,get:function(){return r.assertLeafType}}),Object.defineProperty(t,"assertCompositeType",{enumerable:!0,get:function(){return r.assertCompositeType}}),Object.defineProperty(t,"assertAbstractType",{enumerable:!0,get:function(){return r.assertAbstractType}}),Object.defineProperty(t,"assertNamedType",{enumerable:!0,get:function(){return r.assertNamedType}}),Object.defineProperty(t,"getNullableType",{enumerable:!0,get:function(){return r.getNullableType}}),Object.defineProperty(t,"getNamedType",{enumerable:!0,get:function(){return r.getNamedType}}),Object.defineProperty(t,"GraphQLScalarType",{enumerable:!0,get:function(){return r.GraphQLScalarType}}),Object.defineProperty(t,"GraphQLObjectType",{enumerable:!0,get:function(){return r.GraphQLObjectType}}),Object.defineProperty(t,"GraphQLInterfaceType",{enumerable:!0,get:function(){return r.GraphQLInterfaceType}}),Object.defineProperty(t,"GraphQLUnionType",{enumerable:!0,get:function(){return r.GraphQLUnionType}}),Object.defineProperty(t,"GraphQLEnumType",{enumerable:!0,get:function(){return r.GraphQLEnumType}}),Object.defineProperty(t,"GraphQLInputObjectType",{enumerable:!0,get:function(){return r.GraphQLInputObjectType}}),Object.defineProperty(t,"GraphQLList",{enumerable:!0,get:function(){return r.GraphQLList}}),Object.defineProperty(t,"GraphQLNonNull",{enumerable:!0,get:function(){return r.GraphQLNonNull}});var o=n(41);Object.defineProperty(t,"DirectiveLocation",{enumerable:!0,get:function(){return o.DirectiveLocation}}),Object.defineProperty(t,"GraphQLDirective",{enumerable:!0,get:function(){return o.GraphQLDirective}}),Object.defineProperty(t,"specifiedDirectives",{enumerable:!0,get:function(){return o.specifiedDirectives}}),Object.defineProperty(t,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return o.GraphQLIncludeDirective}}),Object.defineProperty(t,"GraphQLSkipDirective",{enumerable:!0,get:function(){return o.GraphQLSkipDirective}}),Object.defineProperty(t,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return o.GraphQLDeprecatedDirective}}),Object.defineProperty(t,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return o.DEFAULT_DEPRECATION_REASON}});var a=n(52);Object.defineProperty(t,"GraphQLInt",{enumerable:!0,get:function(){return a.GraphQLInt}}),Object.defineProperty(t,"GraphQLFloat",{enumerable:!0,get:function(){return a.GraphQLFloat}}),Object.defineProperty(t,"GraphQLString",{enumerable:!0,get:function(){return a.GraphQLString}}),Object.defineProperty(t,"GraphQLBoolean",{enumerable:!0,get:function(){return a.GraphQLBoolean}}),Object.defineProperty(t,"GraphQLID",{enumerable:!0,get:function(){return a.GraphQLID}});var s=n(42);Object.defineProperty(t,"TypeKind",{enumerable:!0,get:function(){return s.TypeKind}}),Object.defineProperty(t,"__Schema",{enumerable:!0,get:function(){return s.__Schema}}),Object.defineProperty(t,"__Directive",{enumerable:!0,get:function(){return s.__Directive}}),Object.defineProperty(t,"__DirectiveLocation",{enumerable:!0,get:function(){return s.__DirectiveLocation}}),Object.defineProperty(t,"__Type",{enumerable:!0,get:function(){return s.__Type}}),Object.defineProperty(t,"__Field",{enumerable:!0,get:function(){return s.__Field}}),Object.defineProperty(t,"__InputValue",{enumerable:!0,get:function(){return s.__InputValue}}),Object.defineProperty(t,"__EnumValue",{ +enumerable:!0,get:function(){return s.__EnumValue}}),Object.defineProperty(t,"__TypeKind",{enumerable:!0,get:function(){return s.__TypeKind}}),Object.defineProperty(t,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return s.SchemaMetaFieldDef}}),Object.defineProperty(t,"TypeMetaFieldDef",{enumerable:!0,get:function(){return s.TypeMetaFieldDef}}),Object.defineProperty(t,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return s.TypeNameMetaFieldDef}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){function t(e){if(e.kind===m.TypeKind.LIST){var i=e.ofType;if(!i)throw new Error("Decorated type deeper than introspection query.");return new v.GraphQLList(t(i))}if(e.kind===m.TypeKind.NON_NULL){var r=e.ofType;if(!r)throw new Error("Decorated type deeper than introspection query.");var o=t(r);return(0,s.default)(!(o instanceof v.GraphQLNonNull),"No nesting nonnull."),new v.GraphQLNonNull(o)}return n(e.name)}function n(e){if(N[e])return N[e];var t=M[e];if(!t)throw new Error("Invalid or incomplete schema, unknown type: "+e+". Ensure that a full introspection query is used in order to build a client schema.");var n=c(t);return N[e]=n,n}function i(e){var n=t(e);return(0,s.default)((0,v.isInputType)(n),"Introspection must provide input type for arguments."),n}function r(e){var n=t(e);return(0,s.default)((0,v.isOutputType)(n),"Introspection must provide output type for fields."),n}function a(e){var n=t(e);return(0,s.default)(n instanceof v.GraphQLObjectType,"Introspection must provide object type for possibleTypes."),n}function u(e){var n=t(e);return(0,s.default)(n instanceof v.GraphQLInterfaceType,"Introspection must provide interface type for interfaces."),n}function c(e){switch(e.kind){case m.TypeKind.SCALAR:return b(e);case m.TypeKind.OBJECT:return _(e);case m.TypeKind.INTERFACE:return w(e);case m.TypeKind.UNION:return x(e);case m.TypeKind.ENUM:return T(e);case m.TypeKind.INPUT_OBJECT:return E(e);default:throw new Error("Invalid or incomplete schema, unknown kind: "+e.kind+". Ensure that a full introspection query is used in order to build a client schema.")}}function b(e){return new v.GraphQLScalarType({name:e.name,description:e.description,serialize:function(e){return e},parseValue:function(){return!1},parseLiteral:function(){return!1}})}function _(e){return new v.GraphQLObjectType({name:e.name,description:e.description,interfaces:e.interfaces.map(u),fields:function(){return C(e)}})}function w(e){return new v.GraphQLInterfaceType({name:e.name,description:e.description,fields:function(){return C(e)},resolveType:o})}function x(e){return new v.GraphQLUnionType({name:e.name,description:e.description,types:e.possibleTypes.map(a),resolveType:o})}function T(e){return new v.GraphQLEnumType({name:e.name,description:e.description,values:(0,d.default)(e.enumValues,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason}})})}function E(e){return new v.GraphQLInputObjectType({name:e.name,description:e.description,fields:function(){return O(e.inputFields)}})}function C(e){return(0,d.default)(e.fields,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason,type:r(e.type),args:O(e.args)}})}function O(e){return(0,d.default)(e,function(e){return e.name},S)}function S(e){var t=i(e.type),n=e.defaultValue?(0,h.valueFromAST)((0,f.parseValue)(e.defaultValue),t):void 0;return{name:e.name,description:e.description,type:t,defaultValue:n}}function k(e){var t=e.locations?e.locations.slice():[].concat(e.onField?[g.DirectiveLocation.FIELD]:[],e.onOperation?[g.DirectiveLocation.QUERY,g.DirectiveLocation.MUTATION,g.DirectiveLocation.SUBSCRIPTION]:[],e.onFragment?[g.DirectiveLocation.FRAGMENT_DEFINITION,g.DirectiveLocation.FRAGMENT_SPREAD,g.DirectiveLocation.INLINE_FRAGMENT]:[]);return new g.GraphQLDirective({name:e.name,description:e.description,locations:t,args:O(e.args)})}var P=e.__schema,M=(0,l.default)(P.types,function(e){return e.name}),N={String:y.GraphQLString,Int:y.GraphQLInt,Float:y.GraphQLFloat,Boolean:y.GraphQLBoolean,ID:y.GraphQLID,__Schema:m.__Schema,__Directive:m.__Directive,__DirectiveLocation:m.__DirectiveLocation,__Type:m.__Type,__Field:m.__Field,__InputValue:m.__InputValue,__EnumValue:m.__EnumValue,__TypeKind:m.__TypeKind},D=P.types.map(function(e){return n(e.name)}),I=a(P.queryType),L=P.mutationType?a(P.mutationType):null,A=P.subscriptionType?a(P.subscriptionType):null,R=P.directives?P.directives.map(k):[];return new p.GraphQLSchema({query:I,mutation:L,subscription:A,types:D,directives:R})}function o(){throw new Error("Client Schema cannot use Interface or Union types for execution.")}Object.defineProperty(t,"__esModule",{value:!0}),t.buildClientSchema=r;var a=n(20),s=i(a),u=n(72),l=i(u),c=n(169),d=i(c),h=n(97),f=n(118),p=n(53),v=n(13),m=n(42),y=n(52),g=n(41)},function(e,t){"use strict";function n(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:"";return 0===e.length?"":e.every(function(e){return!e.description})?"("+e.map(T).join(", ")+")":"(\n"+e.map(function(e,n){return O(e," "+t,!n)+" "+t+T(e)}).join("\n")+"\n"+t+")"}function T(e){var t=e.name+": "+String(e.type);return(0,I.default)(e.defaultValue)||(t+=" = "+(0,A.print)((0,L.astFromValue)(e.defaultValue,e.type))),t}function E(e){return O(e)+"directive @"+e.name+x(e.args)+" on "+e.locations.join(" | ")}function C(e){var t=e.deprecationReason;return(0,N.default)(t)?"":""===t||t===F.DEFAULT_DEPRECATION_REASON?" @deprecated":" @deprecated(reason: "+(0,A.print)((0,L.astFromValue)(t,j.GraphQLString))+")"}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e.description)return"";for(var i=e.description.split("\n"),r=t&&!n?"\n":"",o=0;o0&&e.reportError(new o.GraphQLError(i(t.name.value,n.type,(0,a.print)(t.value),r),[t.value]))}return!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.badValueMessage=i,t.ArgumentsOfCorrectType=r;var o=n(11),a=n(35),s=n(119)},function(e,t,n){"use strict";function i(e,t,n){return'Variable "$'+e+'" of type "'+String(t)+'" is required and will not use the default value. '+('Perhaps you meant to use type "'+String(n)+'".')}function r(e,t,n,i){var r=i?"\n"+i.join("\n"):"";return'Variable "$'+e+'" of type "'+String(t)+'" has invalid '+("default value "+n+"."+r)}function o(e){return{VariableDefinition:function(t){var n=t.variable.name.value,o=t.defaultValue,c=e.getInputType();if(c instanceof u.GraphQLNonNull&&o&&e.reportError(new a.GraphQLError(i(n,c,c.ofType),[o])),c&&o){var d=(0,l.isValidLiteralValue)(c,o);d&&d.length>0&&e.reportError(new a.GraphQLError(r(n,c,(0,s.print)(o),d),[o]))}return!1},SelectionSet:function(){return!1},FragmentDefinition:function(){return!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.defaultForNonNullArgMessage=i,t.badValueForDefaultArgMessage=r,t.DefaultValuesOfCorrectType=o;var a=n(11),s=n(35),u=n(13),l=n(119)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){var r='Cannot query field "'+e+'" on type "'+t+'".';if(0!==n.length){var o=(0,h.default)(n);r+=" Did you mean to use an inline fragment on "+o+"?"}else 0!==i.length&&(r+=" Did you mean "+(0,h.default)(i)+"?");return r}function o(e){return{Field:function(t){var n=e.getParentType();if(n){var i=e.getFieldDef();if(!i){var o=e.getSchema(),l=t.name.value,c=a(o,n,l),d=0!==c.length?[]:s(o,n,l);e.reportError(new u.GraphQLError(r(l,n.name,c,d),[t]))}}}}}function a(e,t,n){if(t instanceof f.GraphQLInterfaceType||t instanceof f.GraphQLUnionType){var i=function(){var i=[],r=Object.create(null);e.getPossibleTypes(t).forEach(function(e){e.getFields()[n]&&(i.push(e.name),e.getInterfaces().forEach(function(e){e.getFields()[n]&&(r[e.name]=(r[e.name]||0)+1)}))});var o=Object.keys(r).sort(function(e,t){return r[t]-r[e]});return{v:o.concat(i)}}();if("object"==typeof i)return i.v}return[]}function s(e,t,n){if(t instanceof f.GraphQLObjectType||t instanceof f.GraphQLInterfaceType){var i=Object.keys(t.getFields());return(0,c.default)(n,i)}return[]}Object.defineProperty(t,"__esModule",{value:!0}),t.undefinedFieldMessage=r,t.FieldsOnCorrectType=o;var u=n(11),l=n(171),c=i(l),d=n(170),h=i(d),f=n(13)},function(e,t,n){"use strict";function i(e){return'Fragment cannot condition on non composite type "'+String(e)+'".'}function r(e,t){return'Fragment "'+e+'" cannot condition on non composite '+('type "'+String(t)+'".')}function o(e){return{InlineFragment:function(t){if(t.typeCondition){var n=(0,l.typeFromAST)(e.getSchema(),t.typeCondition);n&&!(0,u.isCompositeType)(n)&&e.reportError(new a.GraphQLError(i((0,s.print)(t.typeCondition)),[t.typeCondition]))}},FragmentDefinition:function(t){var n=(0,l.typeFromAST)(e.getSchema(),t.typeCondition);n&&!(0,u.isCompositeType)(n)&&e.reportError(new a.GraphQLError(r(t.name.value,(0,s.print)(t.typeCondition)),[t.typeCondition]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.inlineFragmentOnNonCompositeErrorMessage=i,t.fragmentOnNonCompositeErrorMessage=r,t.FragmentsOnCompositeTypes=o;var a=n(11),s=n(35),u=n(13),l=n(43)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){var r='Unknown argument "'+e+'" on field "'+t+'" of '+('type "'+String(n)+'".');return i.length&&(r+=" Did you mean "+(0,v.default)(i)+"?"),r}function o(e,t,n){var i='Unknown argument "'+e+'" on directive "@'+t+'".';return n.length&&(i+=" Did you mean "+(0,v.default)(n)+"?"),i}function a(e){return{Argument:function(t,n,i,a,u){var c=u[u.length-1];if(c.kind===m.FIELD){var h=e.getFieldDef();if(h){var p=(0,l.default)(h.args,function(e){return e.name===t.name.value});if(!p){var v=e.getParentType();(0,d.default)(v),e.reportError(new s.GraphQLError(r(t.name.value,h.name,v.name,(0,f.default)(t.name.value,h.args.map(function(e){return e.name}))),[t]))}}}else if(c.kind===m.DIRECTIVE){var y=e.getDirective();if(y){var g=(0,l.default)(y.args,function(e){return e.name===t.name.value});g||e.reportError(new s.GraphQLError(o(t.name.value,y.name,(0,f.default)(t.name.value,y.args.map(function(e){return e.name}))),[t]))}}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownArgMessage=r,t.unknownDirectiveArgMessage=o,t.KnownArgumentNames=a;var s=n(11),u=n(61),l=i(u),c=n(20),d=i(c),h=n(171),f=i(h),p=n(170),v=i(p),m=n(17)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return'Unknown directive "'+e+'".'}function o(e,t){return'Directive "'+e+'" may not be used on '+t+"."}function a(e){return{Directive:function(t,n,i,a,l){var d=(0,c.default)(e.getSchema().getDirectives(),function(e){return e.name===t.name.value});if(!d)return void e.reportError(new u.GraphQLError(r(t.name.value),[t])); +var h=s(l);h?d.locations.indexOf(h)===-1&&e.reportError(new u.GraphQLError(o(t.name.value,h),[t])):e.reportError(new u.GraphQLError(o(t.name.value,t.type),[t]))}}}function s(e){var t=e[e.length-1];switch(t.kind){case d.OPERATION_DEFINITION:switch(t.operation){case"query":return h.DirectiveLocation.QUERY;case"mutation":return h.DirectiveLocation.MUTATION;case"subscription":return h.DirectiveLocation.SUBSCRIPTION}break;case d.FIELD:return h.DirectiveLocation.FIELD;case d.FRAGMENT_SPREAD:return h.DirectiveLocation.FRAGMENT_SPREAD;case d.INLINE_FRAGMENT:return h.DirectiveLocation.INLINE_FRAGMENT;case d.FRAGMENT_DEFINITION:return h.DirectiveLocation.FRAGMENT_DEFINITION;case d.SCHEMA_DEFINITION:return h.DirectiveLocation.SCHEMA;case d.SCALAR_TYPE_DEFINITION:return h.DirectiveLocation.SCALAR;case d.OBJECT_TYPE_DEFINITION:return h.DirectiveLocation.OBJECT;case d.FIELD_DEFINITION:return h.DirectiveLocation.FIELD_DEFINITION;case d.INTERFACE_TYPE_DEFINITION:return h.DirectiveLocation.INTERFACE;case d.UNION_TYPE_DEFINITION:return h.DirectiveLocation.UNION;case d.ENUM_TYPE_DEFINITION:return h.DirectiveLocation.ENUM;case d.ENUM_VALUE_DEFINITION:return h.DirectiveLocation.ENUM_VALUE;case d.INPUT_OBJECT_TYPE_DEFINITION:return h.DirectiveLocation.INPUT_OBJECT;case d.INPUT_VALUE_DEFINITION:var n=e[e.length-3];return n.kind===d.INPUT_OBJECT_TYPE_DEFINITION?h.DirectiveLocation.INPUT_FIELD_DEFINITION:h.DirectiveLocation.ARGUMENT_DEFINITION}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownDirectiveMessage=r,t.misplacedDirectiveMessage=o,t.KnownDirectives=a;var u=n(11),l=n(61),c=i(l),d=n(17),h=n(41)},function(e,t,n){"use strict";function i(e){return'Unknown fragment "'+e+'".'}function r(e){return{FragmentSpread:function(t){var n=t.name.value,r=e.getFragment(n);r||e.reportError(new o.GraphQLError(i(n),[t.name]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownFragmentMessage=i,t.KnownFragmentNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n='Unknown type "'+String(e)+'".';return t.length&&(n+=" Did you mean "+(0,c.default)(t)+"?"),n}function o(e){return{ObjectTypeDefinition:function(){return!1},InterfaceTypeDefinition:function(){return!1},UnionTypeDefinition:function(){return!1},InputObjectTypeDefinition:function(){return!1},NamedType:function(t){var n=e.getSchema(),i=t.name.value,o=n.getType(i);o||e.reportError(new a.GraphQLError(r(i,(0,u.default)(i,Object.keys(n.getTypeMap()))),[t]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.unknownTypeMessage=r,t.KnownTypeNames=o;var a=n(11),s=n(171),u=i(s),l=n(170),c=i(l)},function(e,t,n){"use strict";function i(){return"This anonymous operation must be the only defined operation."}function r(e){var t=0;return{Document:function(e){t=e.definitions.filter(function(e){return e.kind===a.OPERATION_DEFINITION}).length},OperationDefinition:function(n){!n.name&&t>1&&e.reportError(new o.GraphQLError(i(),[n]))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.anonOperationNotAloneMessage=i,t.LoneAnonymousOperation=r;var o=n(11),a=n(17)},function(e,t,n){"use strict";function i(e,t){var n=t.length?" via "+t.join(", "):"";return'Cannot spread fragment "'+e+'" within itself'+n+"."}function r(e){function t(s){var u=s.name.value;n[u]=!0;var l=e.getFragmentSpreads(s.selectionSet);if(0!==l.length){a[u]=r.length;for(var c=0;c1)for(var s=0;s0)return[[t,e.map(function(e){var t=e[0];return t})],e.reduce(function(e,t){var n=t[1];return e.concat(n)},[n]),e.reduce(function(e,t){var n=t[2];return e.concat(n)},[i])]}function x(e,t,n,i){var r=e[t];r||(r=Object.create(null),e[t]=r),r[n]=i}Object.defineProperty(t,"__esModule",{value:!0}),t.fieldsConflictMessage=o,t.OverlappingFieldsCanBeMerged=s;var T=n(11),E=n(61),C=i(E),O=n(17),S=n(35),k=n(13),P=n(43),M=function(){function e(){r(this,e),this._data=Object.create(null)}return e.prototype.has=function(e,t,n){var i=this._data[e],r=i&&i[t];return void 0!==r&&(n!==!1||r===!1)},e.prototype.add=function(e,t,n){x(this._data,e,t,n),x(this._data,t,e,n)},e}()},function(e,t,n){"use strict";function i(e,t,n){return'Fragment "'+e+'" cannot be spread here as objects of '+('type "'+String(t)+'" can never be of type "'+String(n)+'".')}function r(e,t){return"Fragment cannot be spread here as objects of "+('type "'+String(e)+'" can never be of type "'+String(t)+'".')}function o(e){return{InlineFragment:function(t){var n=e.getType(),i=e.getParentType();n&&i&&!(0,u.doTypesOverlap)(e.getSchema(),n,i)&&e.reportError(new s.GraphQLError(r(i,n),[t]))},FragmentSpread:function(t){var n=t.name.value,r=a(e,n),o=e.getParentType();r&&o&&!(0,u.doTypesOverlap)(e.getSchema(),r,o)&&e.reportError(new s.GraphQLError(i(n,o,r),[t]))}}}function a(e,t){var n=e.getFragment(t);return n&&(0,l.typeFromAST)(e.getSchema(),n.typeCondition)}Object.defineProperty(t,"__esModule",{value:!0}),t.typeIncompatibleSpreadMessage=i,t.typeIncompatibleAnonSpreadMessage=r,t.PossibleFragmentSpreads=o;var s=n(11),u=n(120),l=n(43)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return'Field "'+e+'" argument "'+t+'" of type '+('"'+String(n)+'" is required but not provided.')}function o(e,t,n){return'Directive "@'+e+'" argument "'+t+'" of type '+('"'+String(n)+'" is required but not provided.')}function a(e){return{Field:{leave:function(t){var n=e.getFieldDef();if(!n)return!1;var i=t.arguments||[],o=(0,l.default)(i,function(e){return e.name.value});n.args.forEach(function(n){var i=o[n.name];!i&&n.type instanceof c.GraphQLNonNull&&e.reportError(new s.GraphQLError(r(t.name.value,n.name,n.type),[t]))})}},Directive:{leave:function(t){var n=e.getDirective();if(!n)return!1;var i=t.arguments||[],r=(0,l.default)(i,function(e){return e.name.value});n.args.forEach(function(n){var i=r[n.name];!i&&n.type instanceof c.GraphQLNonNull&&e.reportError(new s.GraphQLError(o(t.name.value,n.name,n.type),[t]))})}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.missingFieldArgMessage=r,t.missingDirectiveArgMessage=o,t.ProvidedNonNullArguments=a;var s=n(11),u=n(72),l=i(u),c=n(13)},function(e,t,n){"use strict";function i(e,t){return'Field "'+e+'" must not have a selection since '+('type "'+String(t)+'" has no subfields.')}function r(e,t){return'Field "'+e+'" of type "'+String(t)+'" must have a '+('selection of subfields. Did you mean "'+e+' { ... }"?')}function o(e){return{Field:function(t){var n=e.getType();n&&((0,s.isLeafType)((0,s.getNamedType)(n))?t.selectionSet&&e.reportError(new a.GraphQLError(i(t.name.value,n),[t.selectionSet])):t.selectionSet||e.reportError(new a.GraphQLError(r(t.name.value,n),[t])))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.noSubselectionAllowedMessage=i,t.requiredSubselectionMessage=r,t.ScalarLeafs=o;var a=n(11),s=n(13)},function(e,t,n){"use strict";function i(e){return'There can be only one argument named "'+e+'".'}function r(e){var t=Object.create(null);return{Field:function(){t=Object.create(null)},Directive:function(){t=Object.create(null)},Argument:function(n){var r=n.name.value;return t[r]?e.reportError(new o.GraphQLError(i(r),[t[r],n.name])):t[r]=n.name,!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateArgMessage=i,t.UniqueArgumentNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return'The directive "'+e+'" can only be used once at this location.'}function r(e){return{enter:function(t){t.directives&&!function(){var n=Object.create(null);t.directives.forEach(function(t){var r=t.name.value;n[r]?e.reportError(new o.GraphQLError(i(r),[n[r],t])):n[r]=t})}()}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateDirectiveMessage=i,t.UniqueDirectivesPerLocation=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return'There can be only one fragment named "'+e+'".'}function r(e){var t=Object.create(null);return{OperationDefinition:function(){return!1},FragmentDefinition:function(n){var r=n.name.value;return t[r]?e.reportError(new o.GraphQLError(i(r),[t[r],n.name])):t[r]=n.name,!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateFragmentNameMessage=i,t.UniqueFragmentNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return'There can be only one input field named "'+e+'".'}function r(e){var t=[],n=Object.create(null);return{ObjectValue:{enter:function(){t.push(n),n=Object.create(null)},leave:function(){n=t.pop()}},ObjectField:function(t){var r=t.name.value;return n[r]?e.reportError(new o.GraphQLError(i(r),[n[r],t.name])):n[r]=t.name,!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateInputFieldMessage=i,t.UniqueInputFieldNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return'There can be only one operation named "'+e+'".'}function r(e){var t=Object.create(null);return{OperationDefinition:function(n){var r=n.name;return r&&(t[r.value]?e.reportError(new o.GraphQLError(i(r.value),[t[r.value],r])):t[r.value]=r),!1},FragmentDefinition:function(){return!1}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateOperationNameMessage=i,t.UniqueOperationNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e){return'There can be only one variable named "'+e+'".'}function r(e){var t=Object.create(null);return{OperationDefinition:function(){t=Object.create(null)},VariableDefinition:function(n){var r=n.variable.name.value;t[r]?e.reportError(new o.GraphQLError(i(r),[t[r],n.variable.name])):t[r]=n.variable.name}}}Object.defineProperty(t,"__esModule",{value:!0}),t.duplicateVariableMessage=i,t.UniqueVariableNames=r;var o=n(11)},function(e,t,n){"use strict";function i(e,t){return'Variable "$'+e+'" cannot be non-input type "'+t+'".'}function r(e){return{VariableDefinition:function(t){var n=(0,u.typeFromAST)(e.getSchema(),t.type);if(n&&!(0,s.isInputType)(n)){var r=t.variable.name.value;e.reportError(new o.GraphQLError(i(r,(0,a.print)(t.type)),[t.type]))}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.nonInputTypeOnVarMessage=i,t.VariablesAreInputTypes=r;var o=n(11),a=n(35),s=n(13),u=n(43)},function(e,t,n){"use strict";function i(e,t,n){return'Variable "$'+e+'" of type "'+String(t)+'" used in '+('position expecting type "'+String(n)+'".')}function r(e){var t=Object.create(null);return{OperationDefinition:{enter:function(){t=Object.create(null)},leave:function(n){var r=e.getRecursiveVariableUsages(n);r.forEach(function(n){var r=n.node,s=n.type,c=r.name.value,d=t[c];if(d&&s){var h=e.getSchema(),f=(0,l.typeFromAST)(h,d.type);f&&!(0,u.isTypeSubTypeOf)(h,o(f,d),s)&&e.reportError(new a.GraphQLError(i(c,f,s),[d,r]))}})}},VariableDefinition:function(e){t[e.variable.name.value]=e}}}function o(e,t){return!t.defaultValue||e instanceof s.GraphQLNonNull?e:new s.GraphQLNonNull(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.badVarPosMessage=i,t.VariablesInAllowedPosition=r;var a=n(11),s=n(13),u=n(120),l=n(43)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(p.canUseDOM,"Browser history needs a DOM");var t=window.history,n=(0,p.supportsHistory)(),i=!(0,p.supportsPopStateOnHashChange)(),a=e.forceRefresh,u=void 0!==a&&a,h=e.getUserConfirmation,g=void 0===h?p.getConfirmation:h,b=e.keyLength,_=void 0===b?6:b,w=e.basename?(0,d.stripTrailingSlash)((0,d.addLeadingSlash)(e.basename)):"",x=function(e){var t=e||{},n=t.key,i=t.state,r=window.location,a=r.pathname,s=r.search,u=r.hash,l=a+s+u;return w&&(l=(0,d.stripPrefix)(l,w)),o({},(0,d.parsePath)(l),{state:i,key:n})},T=function(){return Math.random().toString(36).substr(2,_)},E=(0,f.default)(),C=function(e){o(W,e),W.length=t.length,E.notifyListeners(W.location,W.action)},O=function(e){(0,p.isExtraneousPopstateEvent)(e)||P(x(e.state))},S=function(){P(x(y()))},k=!1,P=function(e){if(k)k=!1,C();else{var t="POP";E.confirmTransitionTo(e,t,g,function(n){n?C({action:t,location:e}):M(e)})}},M=function(e){var t=W.location,n=D.indexOf(t.key);n===-1&&(n=0);var i=D.indexOf(e.key);i===-1&&(i=0);var r=n-i;r&&(k=!0,R(r))},N=x(y()),D=[N.key],I=function(e){return w+(0,d.createPath)(e)},L=function(e,i){(0,s.default)(!("object"===("undefined"==typeof e?"undefined":r(e))&&void 0!==e.state&&void 0!==i),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o="PUSH",a=(0,c.createLocation)(e,i,T(),W.location);E.confirmTransitionTo(a,o,g,function(e){if(e){var i=I(a),r=a.key,l=a.state;if(n)if(t.pushState({key:r,state:l},null,i),u)window.location.href=i;else{var c=D.indexOf(W.location.key),d=D.slice(0,c===-1?0:c+1);d.push(a.key),D=d,C({action:o,location:a})}else(0,s.default)(void 0===l,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=i}})},A=function(e,i){(0,s.default)(!("object"===("undefined"==typeof e?"undefined":r(e))&&void 0!==e.state&&void 0!==i),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o="REPLACE",a=(0,c.createLocation)(e,i,T(),W.location);E.confirmTransitionTo(a,o,g,function(e){if(e){var i=I(a),r=a.key,l=a.state;if(n)if(t.replaceState({key:r,state:l},null,i),u)window.location.replace(i);else{var c=D.indexOf(W.location.key);c!==-1&&(D[c]=a.key),C({action:o,location:a})}else(0,s.default)(void 0===l,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(i)}})},R=function(e){t.go(e)},j=function(){return R(-1)},F=function(){return R(1)},B=0,z=function(e){B+=e,1===B?((0,p.addEventListener)(window,v,O),i&&(0,p.addEventListener)(window,m,S)):0===B&&((0,p.removeEventListener)(window,v,O),i&&(0,p.removeEventListener)(window,m,S))},H=!1,G=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=E.setPrompt(e);return H||(z(1),H=!0),function(){return H&&(H=!1,z(-1)),t()}},U=function(e){var t=E.appendListener(e);return z(1),function(){z(-1),t()}},W={length:t.length,action:"POP",location:N,createHref:I,push:L,replace:A,go:R,goBack:j,goForward:F,block:G,listen:U};return W};t.default=g},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,u.default)(f.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,f.supportsGoWithoutReloadUsingHash)(),i=e.getUserConfirmation,o=void 0===i?f.getConfirmation:i,s=e.hashType,d=void 0===s?"slash":s,b=e.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(e.basename)):"",_=v[d],w=_.encodePath,x=_.decodePath,T=function(){var e=x(m());return b&&(e=(0,c.stripPrefix)(e,b)),(0,c.parsePath)(e)},E=(0,h.default)(),C=function(e){r(Y,e),Y.length=t.length,E.notifyListeners(Y.location,Y.action)},O=!1,S=null,k=function(){var e=m(),t=w(e);if(e!==t)g(t);else{var n=T(),i=Y.location;if(!O&&(0,l.locationsAreEqual)(i,n))return;if(S===(0,c.createPath)(n))return;S=null,P(n)}},P=function(e){if(O)O=!1,C();else{var t="POP";E.confirmTransitionTo(e,t,o,function(n){n?C({action:t,location:e}):M(e)})}},M=function(e){var t=Y.location,n=L.lastIndexOf((0,c.createPath)(t));n===-1&&(n=0);var i=L.lastIndexOf((0,c.createPath)(e));i===-1&&(i=0);var r=n-i;r&&(O=!0,F(r))},N=m(),D=w(N);N!==D&&g(D);var I=T(),L=[(0,c.createPath)(I)],A=function(e){return"#"+w(b+(0,c.createPath)(e))},R=function(e,t){(0,a.default)(void 0===t,"Hash history cannot push state; it is ignored");var n="PUSH",i=(0,l.createLocation)(e,void 0,void 0,Y.location);E.confirmTransitionTo(i,n,o,function(e){if(e){var t=(0,c.createPath)(i),r=w(b+t),o=m()!==r;if(o){S=t,y(r);var s=L.lastIndexOf((0,c.createPath)(Y.location)),u=L.slice(0,s===-1?0:s+1);u.push(t),L=u,C({action:n,location:i})}else(0,a.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),C()}})},j=function(e,t){(0,a.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n="REPLACE",i=(0,l.createLocation)(e,void 0,void 0,Y.location);E.confirmTransitionTo(i,n,o,function(e){if(e){var t=(0,c.createPath)(i),r=w(b+t),o=m()!==r;o&&(S=t,g(r));var a=L.indexOf((0,c.createPath)(Y.location));a!==-1&&(L[a]=t),C({action:n,location:i})}})},F=function(e){(0,a.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},B=function(){return F(-1)},z=function(){return F(1)},H=0,G=function(e){H+=e,1===H?(0,f.addEventListener)(window,p,k):0===H&&(0,f.removeEventListener)(window,p,k)},U=!1,W=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=E.setPrompt(e);return U||(G(1),U=!0),function(){return U&&(U=!1,G(-1)),t()}},V=function(e){var t=E.appendListener(e);return G(1),function(){G(-1),t()}},Y={length:t.length,action:"POP",location:I,createHref:A,push:R,replace:j,go:F,goBack:B,goForward:z,block:W,listen:V};return Y};t.default=b},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,i=void 0===n?["/"]:n,a=e.initialIndex,c=void 0===a?0:a,f=e.keyLength,p=void 0===f?6:f,v=(0,d.default)(),m=function(e){o(P,e),P.length=P.entries.length,v.notifyListeners(P.location,P.action)},y=function(){return Math.random().toString(36).substr(2,p)},g=h(c,0,i.length-1),b=i.map(function(e){return"string"==typeof e?(0,l.createLocation)(e,void 0,y()):(0,l.createLocation)(e,void 0,e.key||y())}),_=u.createPath,w=function(e,n){(0,s.default)(!("object"===("undefined"==typeof e?"undefined":r(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i="PUSH",o=(0,l.createLocation)(e,n,y(),P.location);v.confirmTransitionTo(o,i,t,function(e){if(e){var t=P.index,n=t+1,r=P.entries.slice(0);r.length>n?r.splice(n,r.length-n,o):r.push(o),m({action:i,location:o,index:n,entries:r})}})},x=function(e,n){(0,s.default)(!("object"===("undefined"==typeof e?"undefined":r(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i="REPLACE",o=(0,l.createLocation)(e,n,y(),P.location);v.confirmTransitionTo(o,i,t,function(e){e&&(P.entries[P.index]=o,m({action:i,location:o}))})},T=function(e){var n=h(P.index+e,0,P.entries.length-1),i="POP",r=P.entries[n];v.confirmTransitionTo(r,i,t,function(e){e?m({action:i,location:r,index:n}):m()})},E=function(){return T(-1)},C=function(){return T(1)},O=function(e){var t=P.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return v.setPrompt(e)},k=function(e){return v.appendListener(e)},P={length:b.length,action:"POP",location:b[g],index:g,entries:b,createHref:_,push:w,replace:x,go:T,goBack:E,goForward:C,canGo:O,block:S,listen:k};return P};t.default=f},function(e,t){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"==typeof Object.getOwnPropertySymbols;e.exports=function(e,t,o){if("string"!=typeof t){var a=Object.getOwnPropertyNames(t);r&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?i.splice(a,1/0,r):i.push(r),~n.indexOf(o)&&(o=t.call(this,r,o))}else n.push(o);return null==e?o:e.call(this,r,o)}}t=e.exports=n,t.getSerialize=i},function(e,t,n){var i=n(62),r=n(37),o=i(r,"DataView");e.exports=o},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t0&&n(c)?t>1?i(c,t-1,n,a,s):r(s,c):a||(s[s.length]=c)}return s}var r=n(183),o=n(624);e.exports=i},function(e,t){function n(e,t){return null!=e&&r.call(e,t)}var i=Object.prototype,r=i.hasOwnProperty;e.exports=n},function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},function(e,t,n){function i(e,t,n,i){return r(e,function(e,r,o){t(i,n(e),r,o)}),i}var r=n(74);e.exports=i},function(e,t,n){function i(e,t,n){t=o(t,e),e=s(e,t);var i=null==e?e:e[u(a(t))];return null==i?void 0:r(i,e,n)}var r=n(124),o=n(56),a=n(306),s=n(300),u=n(57);e.exports=i},function(e,t,n){function i(e){return o(e)&&r(e)==a}var r=n(75),o=n(63),a="[object Arguments]";e.exports=i},function(e,t,n){function i(e,t,n,i,m,g){var b=l(e),_=l(t),w=b?p:u(e),x=_?p:u(t);w=w==f?v:w,x=x==f?v:x;var T=w==v,E=x==v,C=w==x;if(C&&c(e)){if(!c(t))return!1;b=!0,T=!1}if(C&&!T)return g||(g=new r),b||d(e)?o(e,t,n,i,m,g):a(e,t,w,n,i,m,g);if(!(n&h)){var O=T&&y.call(e,"__wrapped__"),S=E&&y.call(t,"__wrapped__");if(O||S){var k=O?e.value():e,P=S?t.value():t;return g||(g=new r),m(k,P,n,i,g)}}return!!C&&(g||(g=new r),s(e,t,n,i,m,g))}var r=n(123),o=n(290),a=n(612),s=n(613),u=n(191),l=n(26),c=n(104),d=n(135),h=1,f="[object Arguments]",p="[object Array]",v="[object Object]",m=Object.prototype,y=m.hasOwnProperty; +e.exports=i},function(e,t,n){function i(e,t,n,i){var u=n.length,l=u,c=!i;if(null==e)return!l;for(e=Object(e);u--;){var d=n[u];if(c&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++ur?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i-1}var r=n(126);e.exports=i},function(e,t,n){function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var r=n(126);e.exports=i},function(e,t,n){function i(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}var r=n(565),o=n(122),a=n(181);e.exports=i},function(e,t,n){function i(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}var r=n(129);e.exports=i},function(e,t,n){function i(e){return r(this,e).get(e)}var r=n(129);e.exports=i},function(e,t,n){function i(e){return r(this,e).has(e)}var r=n(129);e.exports=i},function(e,t,n){function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var r=n(129);e.exports=i},function(e,t,n){function i(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}var r=n(680),o=500;e.exports=i},function(e,t,n){var i=n(298),r=i(Object.keys,Object);e.exports=r},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t,n){(function(e){var i=n(291),r="object"==typeof t&&t&&!t.nodeType&&t,o=r&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===r,s=a&&i.process,u=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(t,n(112)(e))},function(e,t){function n(e){return r.call(e)}var i=Object.prototype,r=i.toString;e.exports=n},function(e,t){function n(e){return this.__data__.set(e,i),this}var i="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}e.exports=n},function(e,t){function n(e){var t=0,n=0;return function(){var a=o(),s=r-(a-n);if(n=a,s>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i=800,r=16,o=Date.now;e.exports=n},function(e,t,n){function i(){this.__data__=new r,this.size=0}var r=n(122);e.exports=i},function(e,t){function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}e.exports=n},function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function i(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length-1}function p(e,t,n){for(var i=-1,r=null==e?0:e.length;++i-1;);return n}function B(e,t){for(var n=e.length;n--&&E(t,e[n],0)>-1;);return n}function z(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}function H(e){return"\\"+ni[e]}function G(e,t){return null==e?re:e[t]}function U(e){return Qn.test(e)}function W(e){return qn.test(e)}function V(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Y(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function Q(e,t){return function(n){return e(t(n))}}function q(e,t){for(var n=-1,i=e.length,r=0,o=[];++n>>1,He=[["ary",Ee],["bind",ye],["bindKey",ge],["curry",_e],["curryRight",we],["flip",Oe],["partial",xe],["partialRight",Te],["rearg",Ce]],Ge="[object Arguments]",Ue="[object Array]",We="[object AsyncFunction]",Ve="[object Boolean]",Ye="[object Date]",Qe="[object DOMException]",qe="[object Error]",Ke="[object Function]",Xe="[object GeneratorFunction]",$e="[object Map]",Ze="[object Number]",Je="[object Null]",et="[object Object]",tt="[object Promise]",nt="[object Proxy]",it="[object RegExp]",rt="[object Set]",ot="[object String]",at="[object Symbol]",st="[object Undefined]",ut="[object WeakMap]",lt="[object WeakSet]",ct="[object ArrayBuffer]",dt="[object DataView]",ht="[object Float32Array]",ft="[object Float64Array]",pt="[object Int8Array]",vt="[object Int16Array]",mt="[object Int32Array]",yt="[object Uint8Array]",gt="[object Uint8ClampedArray]",bt="[object Uint16Array]",_t="[object Uint32Array]",wt=/\b__p \+= '';/g,xt=/\b(__p \+=) '' \+/g,Tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Et=/&(?:amp|lt|gt|quot|#39);/g,Ct=/[&<>"']/g,Ot=RegExp(Et.source),St=RegExp(Ct.source),kt=/<%-([\s\S]+?)%>/g,Pt=/<%([\s\S]+?)%>/g,Mt=/<%=([\s\S]+?)%>/g,Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dt=/^\w*$/,It=/^\./,Lt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,At=/[\\^$.*+?()[\]{}|]/g,Rt=RegExp(At.source),jt=/^\s+|\s+$/g,Ft=/^\s+/,Bt=/\s+$/,zt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ht=/\{\n\/\* \[wrapped with (.+)\] \*/,Gt=/,? & /,Ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wt=/\\(\\)?/g,Vt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yt=/\w*$/,Qt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,Kt=/^\[object .+?Constructor\]$/,Xt=/^0o[0-7]+$/i,$t=/^(?:0|[1-9]\d*)$/,Zt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jt=/($^)/,en=/['\n\r\u2028\u2029\\]/g,tn="\\ud800-\\udfff",nn="\\u0300-\\u036f",rn="\\ufe20-\\ufe2f",on="\\u20d0-\\u20ff",an=nn+rn+on,sn="\\u2700-\\u27bf",un="a-z\\xdf-\\xf6\\xf8-\\xff",ln="\\xac\\xb1\\xd7\\xf7",cn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dn="\\u2000-\\u206f",hn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fn="A-Z\\xc0-\\xd6\\xd8-\\xde",pn="\\ufe0e\\ufe0f",vn=ln+cn+dn+hn,mn="['’]",yn="["+tn+"]",gn="["+vn+"]",bn="["+an+"]",_n="\\d+",wn="["+sn+"]",xn="["+un+"]",Tn="[^"+tn+vn+_n+sn+un+fn+"]",En="\\ud83c[\\udffb-\\udfff]",Cn="(?:"+bn+"|"+En+")",On="[^"+tn+"]",Sn="(?:\\ud83c[\\udde6-\\uddff]){2}",kn="[\\ud800-\\udbff][\\udc00-\\udfff]",Pn="["+fn+"]",Mn="\\u200d",Nn="(?:"+xn+"|"+Tn+")",Dn="(?:"+Pn+"|"+Tn+")",In="(?:"+mn+"(?:d|ll|m|re|s|t|ve))?",Ln="(?:"+mn+"(?:D|LL|M|RE|S|T|VE))?",An=Cn+"?",Rn="["+pn+"]?",jn="(?:"+Mn+"(?:"+[On,Sn,kn].join("|")+")"+Rn+An+")*",Fn="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",Bn="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",zn=Rn+An+jn,Hn="(?:"+[wn,Sn,kn].join("|")+")"+zn,Gn="(?:"+[On+bn+"?",bn,Sn,kn,yn].join("|")+")",Un=RegExp(mn,"g"),Wn=RegExp(bn,"g"),Vn=RegExp(En+"(?="+En+")|"+Gn+zn,"g"),Yn=RegExp([Pn+"?"+xn+"+"+In+"(?="+[gn,Pn,"$"].join("|")+")",Dn+"+"+Ln+"(?="+[gn,Pn+Nn,"$"].join("|")+")",Pn+"?"+Nn+"+"+In,Pn+"+"+Ln,Bn,Fn,_n,Hn].join("|"),"g"),Qn=RegExp("["+Mn+tn+an+pn+"]"),qn=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xn=-1,$n={};$n[ht]=$n[ft]=$n[pt]=$n[vt]=$n[mt]=$n[yt]=$n[gt]=$n[bt]=$n[_t]=!0,$n[Ge]=$n[Ue]=$n[ct]=$n[Ve]=$n[dt]=$n[Ye]=$n[qe]=$n[Ke]=$n[$e]=$n[Ze]=$n[et]=$n[it]=$n[rt]=$n[ot]=$n[ut]=!1;var Zn={};Zn[Ge]=Zn[Ue]=Zn[ct]=Zn[dt]=Zn[Ve]=Zn[Ye]=Zn[ht]=Zn[ft]=Zn[pt]=Zn[vt]=Zn[mt]=Zn[$e]=Zn[Ze]=Zn[et]=Zn[it]=Zn[rt]=Zn[ot]=Zn[at]=Zn[yt]=Zn[gt]=Zn[bt]=Zn[_t]=!0,Zn[qe]=Zn[Ke]=Zn[ut]=!1;var Jn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},ei={"&":"&","<":"<",">":">",'"':""","'":"'"},ti={"&":"&","<":"<",">":">",""":'"',"'":"'"},ni={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ii=parseFloat,ri=parseInt,oi="object"==typeof e&&e&&e.Object===Object&&e,ai="object"==typeof self&&self&&self.Object===Object&&self,si=oi||ai||Function("return this")(),ui="object"==typeof t&&t&&!t.nodeType&&t,li=ui&&"object"==typeof r&&r&&!r.nodeType&&r,ci=li&&li.exports===ui,di=ci&&oi.process,hi=function(){try{return di&&di.binding&&di.binding("util")}catch(e){}}(),fi=hi&&hi.isArrayBuffer,pi=hi&&hi.isDate,vi=hi&&hi.isMap,mi=hi&&hi.isRegExp,yi=hi&&hi.isSet,gi=hi&&hi.isTypedArray,bi=k("length"),_i=P(Jn),wi=P(ei),xi=P(ti),Ti=function e(t){function n(e){if(lu(e)&&!_h(e)&&!(e instanceof _)){if(e instanceof r)return e;if(_c.call(e,"__wrapped__"))return aa(e)}return new r(e)}function i(){}function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=re}function _(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Fe,this.__views__=[]}function P(){var e=new _(this.__wrapped__);return e.__actions__=zr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=zr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=zr(this.__views__),e}function $(){if(this.__filtered__){var e=new _(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function te(){var e=this.__wrapped__.value(),t=this.__dir__,n=_h(e),i=t<0,r=n?e.length:0,o=Mo(0,r,this.__views__),a=o.start,s=o.end,u=s-a,l=i?s:a-1,c=this.__iteratees__,d=c.length,h=0,f=Xc(u,this.__takeCount__);if(!n||!i&&r==u&&f==u)return wr(e,this.__actions__);var p=[];e:for(;u--&&h-1}function dn(e,t){var n=this.__data__,i=In(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function zn(e,t,n,i,r,o){var a,s=t&he,u=t&fe,c=t&pe;if(n&&(a=r?n(e,i,r,o):n(e)),a!==re)return a;if(!uu(e))return e;var d=_h(e);if(d){if(a=Io(e),!s)return zr(e,a)}else{var h=Md(e),f=h==Ke||h==Xe;if(xh(e))return kr(e,s);if(h==et||h==Ge||f&&!r){if(a=u||f?{}:Lo(e),!s)return u?Ur(e,Rn(a,e)):Gr(e,An(a,e))}else{if(!Zn[h])return r?e:{};a=Ao(e,h,zn,s)}}o||(o=new wn);var p=o.get(e);if(p)return p;o.set(e,a);var v=c?u?xo:wo:u?Vu:Wu,m=d?re:v(e);return l(m||e,function(i,r){m&&(r=i,i=e[r]),Dn(a,r,zn(i,t,n,r,e,o))}),a}function Hn(e){var t=Wu(e);return function(n){return Gn(n,e,t)}}function Gn(e,t,n){var i=n.length;if(null==e)return!i;for(e=dc(e);i--;){var r=n[i],o=t[r],a=e[r];if(a===re&&!(r in e)||!o(a))return!1}return!0}function Vn(e,t,n){if("function"!=typeof e)throw new pc(ue);return Id(function(){e.apply(re,n)},t)}function Yn(e,t,n,i){var r=-1,o=f,a=!0,s=e.length,u=[],l=t.length;if(!s)return u;n&&(t=v(t,A(n))),i?(o=p,a=!1):t.length>=ae&&(o=j,a=!1,t=new gn(t));e:for(;++rr?0:r+n),i=i===re||i>r?r:Ou(i),i<0&&(i+=r),i=n>i?0:Su(i);n0&&n(s)?t>1?ti(s,t-1,n,i,r):m(r,s):i||(r[r.length]=s)}return r}function ni(e,t){return e&&_d(e,t,Wu)}function oi(e,t){return e&&wd(e,t,Wu)}function ai(e,t){return h(t,function(t){return ou(e[t])})}function ui(e,t){t=Or(t,e);for(var n=0,i=t.length;null!=e&&nt}function bi(e,t){return null!=e&&_c.call(e,t); +}function Ti(e,t){return null!=e&&t in dc(e)}function Ci(e,t,n){return e>=Xc(t,n)&&e=120&&c.length>=120)?new gn(a&&c):re}c=e[0];var d=-1,h=s[0];e:for(;++d-1;)s!==e&&Lc.call(s,u,1),Lc.call(e,u,1);return e}function tr(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;Fo(r)?Lc.call(e,r,1):gr(e,r)}}return e}function nr(e,t){return e+Uc(Jc()*(t-e+1))}function ir(e,t,n,i){for(var r=-1,o=Kc(Gc((t-e)/(n||1)),0),a=ac(o);o--;)a[i?o:++r]=e,e+=n;return a}function rr(e,t){var n="";if(!e||t<1||t>Ae)return n;do t%2&&(n+=e),t=Uc(t/2),t&&(e+=e);while(t);return n}function or(e,t){return Ld($o(e,t,Ll),e+"")}function ar(e){return kn(il(e))}function sr(e,t){var n=il(e);return na(n,Bn(t,0,n.length))}function ur(e,t,n,i){if(!uu(e))return e;t=Or(t,e);for(var r=-1,o=t.length,a=o-1,s=e;null!=s&&++rr?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=ac(r);++i>>1,a=e[o];null!==a&&!_u(a)&&(n?a<=t:a=ae){var l=t?null:Od(e);if(l)return K(l);a=!1,r=j,u=new gn}else u=t?[]:s;e:for(;++i=i?e:cr(e,t,n)}function kr(e,t){if(t)return e.slice();var n=e.length,i=Mc?Mc(n):new e.constructor(n);return e.copy(i),i}function Pr(e){var t=new e.constructor(e.byteLength);return new Pc(t).set(new Pc(e)),t}function Mr(e,t){var n=t?Pr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Nr(e,t,n){var i=t?n(Y(e),he):Y(e);return y(i,o,new e.constructor)}function Dr(e){var t=new e.constructor(e.source,Yt.exec(e));return t.lastIndex=e.lastIndex,t}function Ir(e,t,n){var i=t?n(K(e),he):K(e);return y(i,a,new e.constructor)}function Lr(e){return vd?dc(vd.call(e)):{}}function Ar(e,t){var n=t?Pr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Rr(e,t){if(e!==t){var n=e!==re,i=null===e,r=e===e,o=_u(e),a=t!==re,s=null===t,u=t===t,l=_u(t);if(!s&&!l&&!o&&e>t||o&&a&&u&&!s&&!l||i&&a&&u||!n&&u||!r)return 1;if(!i&&!o&&!l&&e=s)return u;var l=n[i];return u*("desc"==l?-1:1)}}return e.index-t.index}function Fr(e,t,n,i){for(var r=-1,o=e.length,a=n.length,s=-1,u=t.length,l=Kc(o-a,0),c=ac(u+l),d=!i;++s1?n[r-1]:re,a=r>2?n[2]:re;for(o=e.length>3&&"function"==typeof o?(r--,o):re,a&&Bo(n[0],n[1],a)&&(o=r<3?re:o,r=1),t=dc(t);++i-1?r[o?t[a]:a]:re}}function eo(e){return _o(function(t){var n=t.length,i=n,o=r.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new pc(ue);if(o&&!s&&"wrapper"==To(a))var s=new r([],!0)}for(i=s?i:n;++i1&&g.reverse(),d&&us))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,d=!0,h=n&me?new gn:re;for(o.set(e,t),o.set(t,e);++c1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(zt,"{\n/* [wrapped with "+t+"] */\n")}function jo(e){return _h(e)||bh(e)||!!(Ac&&e&&e[Ac])}function Fo(e,t){return t=null==t?Ae:t,!!t&&("number"==typeof e||$t.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Pe)return arguments[0]}else t=0;return e.apply(re,arguments)}}function na(e,t){var n=-1,i=e.length,r=i-1;for(t=t===re?i:t;++n=this.__values__.length,t=e?re:this.__values__[this.__index__++];return{done:e,value:t}}function as(){return this}function ss(e){for(var t,n=this;n instanceof i;){var r=aa(n);r.__index__=0,r.__values__=re,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t}function us(){var e=this.__wrapped__;if(e instanceof _){var t=e;return this.__actions__.length&&(t=new _(this)),t=t.reverse(),t.__actions__.push({func:ns,args:[Da],thisArg:re}),new r(t,this.__chain__)}return this.thru(Da)}function ls(){return wr(this.__wrapped__,this.__actions__)}function cs(e,t,n){var i=_h(e)?d:Qn;return n&&Bo(e,t,n)&&(t=re),i(e,Co(t,3))}function ds(e,t){var n=_h(e)?h:ei;return n(e,Co(t,3))}function hs(e,t){return ti(gs(e,t),1)}function fs(e,t){return ti(gs(e,t),Le)}function ps(e,t,n){return n=n===re?1:Ou(n),ti(gs(e,t),n)}function vs(e,t){var n=_h(e)?l:gd;return n(e,Co(t,3))}function ms(e,t){var n=_h(e)?c:bd;return n(e,Co(t,3))}function ys(e,t,n,i){e=Xs(e)?e:il(e),n=n&&!i?Ou(n):0;var r=e.length;return n<0&&(n=Kc(r+n,0)),bu(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&E(e,t,n)>-1}function gs(e,t){var n=_h(e)?v:Wi;return n(e,Co(t,3))}function bs(e,t,n,i){return null==e?[]:(_h(t)||(t=null==t?[]:[t]),n=i?re:n,_h(n)||(n=null==n?[]:[n]),Xi(e,t,n))}function _s(e,t,n){var i=_h(e)?y:M,r=arguments.length<3;return i(e,Co(t,4),n,r,gd)}function ws(e,t,n){var i=_h(e)?g:M,r=arguments.length<3;return i(e,Co(t,4),n,r,bd)}function xs(e,t){var n=_h(e)?h:ei;return n(e,Rs(Co(t,3)))}function Ts(e){var t=_h(e)?kn:ar;return t(e)}function Es(e,t,n){t=(n?Bo(e,t,n):t===re)?1:Ou(t);var i=_h(e)?Pn:sr;return i(e,t)}function Cs(e){var t=_h(e)?Mn:lr;return t(e)}function Os(e){if(null==e)return 0;if(Xs(e))return bu(e)?J(e):e.length;var t=Md(e);return t==$e||t==rt?e.size:Hi(e).length}function Ss(e,t,n){var i=_h(e)?b:dr;return n&&Bo(e,t,n)&&(t=re),i(e,Co(t,3))}function ks(e,t){if("function"!=typeof t)throw new pc(ue);return e=Ou(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ps(e,t,n){return t=n?re:t,t=e&&null==t?e.length:t,fo(e,Ee,re,re,re,re,t)}function Ms(e,t){var n;if("function"!=typeof t)throw new pc(ue);return e=Ou(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=re),n}}function Ns(e,t,n){t=n?re:t;var i=fo(e,_e,re,re,re,re,re,t);return i.placeholder=Ns.placeholder,i}function Ds(e,t,n){t=n?re:t;var i=fo(e,we,re,re,re,re,re,t);return i.placeholder=Ds.placeholder,i}function Is(e,t,n){function i(t){var n=h,i=f;return h=f=re,g=t,v=e.apply(i,n)}function r(e){return g=e,m=Id(s,t),b?i(e):v}function o(e){var n=e-y,i=e-g,r=t-n;return _?Xc(r,p-i):r}function a(e){var n=e-y,i=e-g;return y===re||n>=t||n<0||_&&i>=p}function s(){var e=uh();return a(e)?u(e):void(m=Id(s,o(e)))}function u(e){return m=re,w&&h?i(e):(h=f=re,v)}function l(){m!==re&&Cd(m),g=0,h=y=f=m=re}function c(){return m===re?v:u(uh())}function d(){var e=uh(),n=a(e);if(h=arguments,f=this,y=e,n){if(m===re)return r(y);if(_)return m=Id(s,t),i(y)}return m===re&&(m=Id(s,t)),v}var h,f,p,v,m,y,g=0,b=!1,_=!1,w=!0;if("function"!=typeof e)throw new pc(ue);return t=ku(t)||0,uu(n)&&(b=!!n.leading,_="maxWait"in n,p=_?Kc(ku(n.maxWait)||0,t):p,w="trailing"in n?!!n.trailing:w),d.cancel=l,d.flush=c,d}function Ls(e){return fo(e,Oe)}function As(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new pc(ue);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(As.Cache||hn),n}function Rs(e){if("function"!=typeof e)throw new pc(ue);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function js(e){return Ms(2,e)}function Fs(e,t){if("function"!=typeof e)throw new pc(ue);return t=t===re?t:Ou(t),or(e,t)}function Bs(e,t){if("function"!=typeof e)throw new pc(ue);return t=null==t?0:Kc(Ou(t),0),or(function(n){var i=n[t],r=Sr(n,0,t);return i&&m(r,i),s(e,this,r)})}function zs(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new pc(ue);return uu(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Is(e,t,{leading:i,maxWait:t,trailing:r})}function Hs(e){return Ps(e,1)}function Gs(e,t){return ph(Cr(t),e)}function Us(){if(!arguments.length)return[];var e=arguments[0];return _h(e)?e:[e]}function Ws(e){return zn(e,pe)}function Vs(e,t){return t="function"==typeof t?t:re,zn(e,pe,t)}function Ys(e){return zn(e,he|pe)}function Qs(e,t){return t="function"==typeof t?t:re,zn(e,he|pe,t)}function qs(e,t){return null==t||Gn(e,t,Wu(t))}function Ks(e,t){return e===t||e!==e&&t!==t}function Xs(e){return null!=e&&su(e.length)&&!ou(e)}function $s(e){return lu(e)&&Xs(e)}function Zs(e){return e===!0||e===!1||lu(e)&&di(e)==Ve}function Js(e){return lu(e)&&1===e.nodeType&&!yu(e)}function eu(e){if(null==e)return!0;if(Xs(e)&&(_h(e)||"string"==typeof e||"function"==typeof e.splice||xh(e)||Sh(e)||bh(e)))return!e.length;var t=Md(e);if(t==$e||t==rt)return!e.size;if(Wo(e))return!Hi(e).length;for(var n in e)if(_c.call(e,n))return!1;return!0}function tu(e,t){return Di(e,t)}function nu(e,t,n){n="function"==typeof n?n:re;var i=n?n(e,t):re;return i===re?Di(e,t,re,n):!!i}function iu(e){if(!lu(e))return!1;var t=di(e);return t==qe||t==Qe||"string"==typeof e.message&&"string"==typeof e.name&&!yu(e)}function ru(e){return"number"==typeof e&&Yc(e)}function ou(e){if(!uu(e))return!1;var t=di(e);return t==Ke||t==Xe||t==We||t==nt}function au(e){return"number"==typeof e&&e==Ou(e)}function su(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ae}function uu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function lu(e){return null!=e&&"object"==typeof e}function cu(e,t){return e===t||Ai(e,t,So(t))}function du(e,t,n){return n="function"==typeof n?n:re,Ai(e,t,So(t),n)}function hu(e){return mu(e)&&e!=+e}function fu(e){if(Nd(e))throw new uc(se);return Ri(e)}function pu(e){return null===e}function vu(e){return null==e}function mu(e){return"number"==typeof e||lu(e)&&di(e)==Ze}function yu(e){if(!lu(e)||di(e)!=et)return!1;var t=Nc(e);if(null===t)return!0;var n=_c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&bc.call(n)==Ec}function gu(e){return au(e)&&e>=-Ae&&e<=Ae}function bu(e){return"string"==typeof e||!_h(e)&&lu(e)&&di(e)==ot}function _u(e){return"symbol"==typeof e||lu(e)&&di(e)==at}function wu(e){return e===re}function xu(e){return lu(e)&&Md(e)==ut}function Tu(e){return lu(e)&&di(e)==lt}function Eu(e){if(!e)return[];if(Xs(e))return bu(e)?ee(e):zr(e);if(Rc&&e[Rc])return V(e[Rc]());var t=Md(e),n=t==$e?Y:t==rt?K:il;return n(e)}function Cu(e){if(!e)return 0===e?e:0;if(e=ku(e),e===Le||e===-Le){var t=e<0?-1:1;return t*Re}return e===e?e:0}function Ou(e){var t=Cu(e),n=t%1;return t===t?n?t-n:t:0}function Su(e){return e?Bn(Ou(e),0,Fe):0}function ku(e){if("number"==typeof e)return e;if(_u(e))return je;if(uu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=uu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(jt,"");var n=qt.test(e);return n||Xt.test(e)?ri(e.slice(2),n?2:8):Qt.test(e)?je:+e}function Pu(e){return Hr(e,Vu(e))}function Mu(e){return e?Bn(Ou(e),-Ae,Ae):0===e?e:0}function Nu(e){return null==e?"":mr(e)}function Du(e,t){var n=yd(e);return null==t?n:An(n,t)}function Iu(e,t){return x(e,Co(t,3),ni)}function Lu(e,t){return x(e,Co(t,3),oi)}function Au(e,t){return null==e?e:_d(e,Co(t,3),Vu)}function Ru(e,t){return null==e?e:wd(e,Co(t,3),Vu)}function ju(e,t){return e&&ni(e,Co(t,3))}function Fu(e,t){return e&&oi(e,Co(t,3))}function Bu(e){return null==e?[]:ai(e,Wu(e))}function zu(e){return null==e?[]:ai(e,Vu(e))}function Hu(e,t,n){var i=null==e?re:ui(e,t);return i===re?n:i}function Gu(e,t){return null!=e&&Do(e,t,bi)}function Uu(e,t){return null!=e&&Do(e,t,Ti)}function Wu(e){return Xs(e)?Sn(e):Hi(e)}function Vu(e){return Xs(e)?Sn(e,!0):Gi(e); +}function Yu(e,t){var n={};return t=Co(t,3),ni(e,function(e,i,r){jn(n,t(e,i,r),e)}),n}function Qu(e,t){var n={};return t=Co(t,3),ni(e,function(e,i,r){jn(n,i,t(e,i,r))}),n}function qu(e,t){return Ku(e,Rs(Co(t)))}function Ku(e,t){if(null==e)return{};var n=v(xo(e),function(e){return[e]});return t=Co(t),Zi(e,n,function(e,n){return t(e,n[0])})}function Xu(e,t,n){t=Or(t,e);var i=-1,r=t.length;for(r||(r=1,e=re);++it){var i=e;e=t,t=i}if(n||e%1||t%1){var r=Jc();return Xc(e+r*(t-e+ii("1e-"+((r+"").length-1))),t)}return nr(e,t)}function ul(e){return Jh(Nu(e).toLowerCase())}function ll(e){return e=Nu(e),e&&e.replace(Zt,_i).replace(Wn,"")}function cl(e,t,n){e=Nu(e),t=mr(t);var i=e.length;n=n===re?i:Bn(Ou(n),0,i);var r=n;return n-=t.length,n>=0&&e.slice(n,r)==t}function dl(e){return e=Nu(e),e&&St.test(e)?e.replace(Ct,wi):e}function hl(e){return e=Nu(e),e&&Rt.test(e)?e.replace(At,"\\$&"):e}function fl(e,t,n){e=Nu(e),t=Ou(t);var i=t?J(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return oo(Uc(r),n)+e+oo(Gc(r),n)}function pl(e,t,n){e=Nu(e),t=Ou(t);var i=t?J(e):0;return t&&i>>0)?(e=Nu(e),e&&("string"==typeof t||null!=t&&!Ch(t))&&(t=mr(t),!t&&U(e))?Sr(ee(e),0,n):e.split(t,n)):[]}function _l(e,t,n){return e=Nu(e),n=null==n?0:Bn(Ou(n),0,e.length),t=mr(t),e.slice(n,n+t.length)==t}function wl(e,t,i){var r=n.templateSettings;i&&Bo(e,t,i)&&(t=re),e=Nu(e),t=Dh({},t,r,po);var o,a,s=Dh({},t.imports,r.imports,po),u=Wu(s),l=R(s,u),c=0,d=t.interpolate||Jt,h="__p += '",f=hc((t.escape||Jt).source+"|"+d.source+"|"+(d===Mt?Vt:Jt).source+"|"+(t.evaluate||Jt).source+"|$","g"),p="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Xn+"]")+"\n";e.replace(f,function(t,n,i,r,s,u){return i||(i=r),h+=e.slice(c,u).replace(en,H),n&&(o=!0,h+="' +\n__e("+n+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),c=u+t.length,t}),h+="';\n";var v=t.variable;v||(h="with (obj) {\n"+h+"\n}\n"),h=(a?h.replace(wt,""):h).replace(xt,"$1").replace(Tt,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=ef(function(){return lc(u,p+"return "+h).apply(re,l)});if(m.source=h,iu(m))throw m;return m}function xl(e){return Nu(e).toLowerCase()}function Tl(e){return Nu(e).toUpperCase()}function El(e,t,n){if(e=Nu(e),e&&(n||t===re))return e.replace(jt,"");if(!e||!(t=mr(t)))return e;var i=ee(e),r=ee(t),o=F(i,r),a=B(i,r)+1;return Sr(i,o,a).join("")}function Cl(e,t,n){if(e=Nu(e),e&&(n||t===re))return e.replace(Bt,"");if(!e||!(t=mr(t)))return e;var i=ee(e),r=B(i,ee(t))+1;return Sr(i,0,r).join("")}function Ol(e,t,n){if(e=Nu(e),e&&(n||t===re))return e.replace(Ft,"");if(!e||!(t=mr(t)))return e;var i=ee(e),r=F(i,ee(t));return Sr(i,r).join("")}function Sl(e,t){var n=Se,i=ke;if(uu(t)){var r="separator"in t?t.separator:r;n="length"in t?Ou(t.length):n,i="omission"in t?mr(t.omission):i}e=Nu(e);var o=e.length;if(U(e)){var a=ee(e);o=a.length}if(n>=o)return e;var s=n-J(i);if(s<1)return i;var u=a?Sr(a,0,s).join(""):e.slice(0,s);if(r===re)return u+i;if(a&&(s+=u.length-s),Ch(r)){if(e.slice(s).search(r)){var l,c=u;for(r.global||(r=hc(r.source,Nu(Yt.exec(r))+"g")),r.lastIndex=0;l=r.exec(c);)var d=l.index;u=u.slice(0,d===re?s:d)}}else if(e.indexOf(mr(r),s)!=s){var h=u.lastIndexOf(r);h>-1&&(u=u.slice(0,h))}return u+i}function kl(e){return e=Nu(e),e&&Ot.test(e)?e.replace(Et,xi):e}function Pl(e,t,n){return e=Nu(e),t=n?re:t,t===re?W(e)?ie(e):w(e):e.match(t)||[]}function Ml(e){var t=null==e?0:e.length,n=Co();return e=t?v(e,function(e){if("function"!=typeof e[1])throw new pc(ue);return[n(e[0]),e[1]]}):[],or(function(n){for(var i=-1;++iAe)return[];var n=Fe,i=Xc(e,Fe);t=Co(t),e-=Fe;for(var r=I(i,t);++n1?e[t-1]:re;return n="function"==typeof n?(e.pop(),n):re,$a(e,n)}),Jd=_o(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return Fn(t,e)};return!(t>1||this.__actions__.length)&&i instanceof _&&Fo(n)?(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:ns,args:[o],thisArg:re}),new r(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(re),e})):this.thru(o)}),eh=Wr(function(e,t,n){_c.call(e,n)?++e[n]:jn(e,n,1)}),th=Jr(va),nh=Jr(ma),ih=Wr(function(e,t,n){_c.call(e,n)?e[n].push(t):jn(e,n,[t])}),rh=or(function(e,t,n){var i=-1,r="function"==typeof t,o=Xs(e)?ac(e.length):[];return gd(e,function(e){o[++i]=r?s(t,e,n):ki(e,t,n)}),o}),oh=Wr(function(e,t,n){jn(e,n,t)}),ah=Wr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),sh=or(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Bo(e,t[0],t[1])?t=[]:n>2&&Bo(t[0],t[1],t[2])&&(t=[t[0]]),Xi(e,ti(t,1),[])}),uh=zc||function(){return si.Date.now()},lh=or(function(e,t,n){var i=ye;if(n.length){var r=q(n,Eo(lh));i|=xe}return fo(e,i,t,n,r)}),ch=or(function(e,t,n){var i=ye|ge;if(n.length){var r=q(n,Eo(ch));i|=xe}return fo(t,i,e,n,r)}),dh=or(function(e,t){return Vn(e,1,t)}),hh=or(function(e,t,n){return Vn(e,ku(t)||0,n)});As.Cache=hn;var fh=Ed(function(e,t){t=1==t.length&&_h(t[0])?v(t[0],A(Co())):v(ti(t,1),A(Co()));var n=t.length;return or(function(i){for(var r=-1,o=Xc(i.length,n);++r=t}),bh=Pi(function(){return arguments}())?Pi:function(e){return lu(e)&&_c.call(e,"callee")&&!Ic.call(e,"callee")},_h=ac.isArray,wh=fi?A(fi):Mi,xh=Vc||Vl,Th=pi?A(pi):Ni,Eh=vi?A(vi):Li,Ch=mi?A(mi):ji,Oh=yi?A(yi):Fi,Sh=gi?A(gi):Bi,kh=uo(Ui),Ph=uo(function(e,t){return e<=t}),Mh=Vr(function(e,t){if(Wo(t)||Xs(t))return void Hr(t,Wu(t),e);for(var n in t)_c.call(t,n)&&Dn(e,n,t[n])}),Nh=Vr(function(e,t){Hr(t,Vu(t),e)}),Dh=Vr(function(e,t,n,i){Hr(t,Vu(t),e,i)}),Ih=Vr(function(e,t,n,i){Hr(t,Wu(t),e,i)}),Lh=_o(Fn),Ah=or(function(e){return e.push(re,po),s(Dh,re,e)}),Rh=or(function(e){return e.push(re,vo),s(Hh,re,e)}),jh=no(function(e,t,n){e[t]=n},Dl(Ll)),Fh=no(function(e,t,n){_c.call(e,t)?e[t].push(n):e[t]=[n]},Co),Bh=or(ki),zh=Vr(function(e,t,n){Qi(e,t,n)}),Hh=Vr(function(e,t,n,i){Qi(e,t,n,i)}),Gh=_o(function(e,t){var n={};if(null==e)return n;var i=!1;t=v(t,function(t){return t=Or(t,e),i||(i=t.length>1),t}),Hr(e,xo(e),n),i&&(n=zn(n,he|fe|pe,mo));for(var r=t.length;r--;)gr(n,t[r]);return n}),Uh=_o(function(e,t){return null==e?{}:$i(e,t)}),Wh=ho(Wu),Vh=ho(Vu),Yh=Xr(function(e,t,n){return t=t.toLowerCase(),e+(n?ul(t):t)}),Qh=Xr(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),qh=Xr(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Kh=Kr("toLowerCase"),Xh=Xr(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),$h=Xr(function(e,t,n){return e+(n?" ":"")+Jh(t)}),Zh=Xr(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Jh=Kr("toUpperCase"),ef=or(function(e,t){try{return s(e,re,t)}catch(e){return iu(e)?e:new uc(e)}}),tf=_o(function(e,t){return l(t,function(t){t=ia(t),jn(e,t,lh(e[t],e))}),e}),nf=eo(),rf=eo(!0),of=or(function(e,t){return function(n){return ki(n,e,t)}}),af=or(function(e,t){return function(n){return ki(e,n,t)}}),sf=ro(v),uf=ro(d),lf=ro(b),cf=so(),df=so(!0),hf=io(function(e,t){return e+t},0),ff=co("ceil"),pf=io(function(e,t){return e/t},1),vf=co("floor"),mf=io(function(e,t){return e*t},1),yf=co("round"),gf=io(function(e,t){return e-t},0);return n.after=ks,n.ary=Ps,n.assign=Mh,n.assignIn=Nh,n.assignInWith=Dh,n.assignWith=Ih,n.at=Lh,n.before=Ms,n.bind=lh,n.bindAll=tf,n.bindKey=ch,n.castArray=Us,n.chain=es,n.chunk=sa,n.compact=ua,n.concat=la,n.cond=Ml,n.conforms=Nl,n.constant=Dl,n.countBy=eh,n.create=Du,n.curry=Ns,n.curryRight=Ds,n.debounce=Is,n.defaults=Ah,n.defaultsDeep=Rh,n.defer=dh,n.delay=hh,n.difference=Rd,n.differenceBy=jd,n.differenceWith=Fd,n.drop=ca,n.dropRight=da,n.dropRightWhile=ha,n.dropWhile=fa,n.fill=pa,n.filter=ds,n.flatMap=hs,n.flatMapDeep=fs,n.flatMapDepth=ps,n.flatten=ya,n.flattenDeep=ga,n.flattenDepth=ba,n.flip=Ls,n.flow=nf,n.flowRight=rf,n.fromPairs=_a,n.functions=Bu,n.functionsIn=zu,n.groupBy=ih,n.initial=Ta,n.intersection=Bd,n.intersectionBy=zd,n.intersectionWith=Hd,n.invert=jh,n.invertBy=Fh,n.invokeMap=rh,n.iteratee=Al,n.keyBy=oh,n.keys=Wu,n.keysIn=Vu,n.map=gs,n.mapKeys=Yu,n.mapValues=Qu,n.matches=Rl,n.matchesProperty=jl,n.memoize=As,n.merge=zh,n.mergeWith=Hh,n.method=of,n.methodOf=af,n.mixin=Fl,n.negate=Rs,n.nthArg=Hl,n.omit=Gh,n.omitBy=qu,n.once=js,n.orderBy=bs,n.over=sf,n.overArgs=fh,n.overEvery=uf,n.overSome=lf,n.partial=ph,n.partialRight=vh,n.partition=ah,n.pick=Uh,n.pickBy=Ku,n.property=Gl,n.propertyOf=Ul,n.pull=Gd,n.pullAll=ka,n.pullAllBy=Pa,n.pullAllWith=Ma,n.pullAt=Ud,n.range=cf,n.rangeRight=df,n.rearg=mh,n.reject=xs,n.remove=Na,n.rest=Fs,n.reverse=Da,n.sampleSize=Es,n.set=$u,n.setWith=Zu,n.shuffle=Cs,n.slice=Ia,n.sortBy=sh,n.sortedUniq=za,n.sortedUniqBy=Ha,n.split=bl,n.spread=Bs,n.tail=Ga,n.take=Ua,n.takeRight=Wa,n.takeRightWhile=Va,n.takeWhile=Ya,n.tap=ts,n.throttle=zs,n.thru=ns,n.toArray=Eu,n.toPairs=Wh,n.toPairsIn=Vh,n.toPath=Xl,n.toPlainObject=Pu,n.transform=Ju,n.unary=Hs,n.union=Wd,n.unionBy=Vd,n.unionWith=Yd,n.uniq=Qa,n.uniqBy=qa,n.uniqWith=Ka,n.unset=el,n.unzip=Xa,n.unzipWith=$a,n.update=tl,n.updateWith=nl,n.values=il,n.valuesIn=rl,n.without=Qd,n.words=Pl,n.wrap=Gs,n.xor=qd,n.xorBy=Kd,n.xorWith=Xd,n.zip=$d,n.zipObject=Za,n.zipObjectDeep=Ja,n.zipWith=Zd,n.entries=Wh,n.entriesIn=Vh,n.extend=Nh,n.extendWith=Dh,Fl(n,n),n.add=hf,n.attempt=ef,n.camelCase=Yh,n.capitalize=ul,n.ceil=ff,n.clamp=ol,n.clone=Ws,n.cloneDeep=Ys,n.cloneDeepWith=Qs,n.cloneWith=Vs,n.conformsTo=qs,n.deburr=ll,n.defaultTo=Il,n.divide=pf,n.endsWith=cl,n.eq=Ks,n.escape=dl,n.escapeRegExp=hl,n.every=cs,n.find=th,n.findIndex=va,n.findKey=Iu,n.findLast=nh,n.findLastIndex=ma,n.findLastKey=Lu,n.floor=vf,n.forEach=vs,n.forEachRight=ms,n.forIn=Au,n.forInRight=Ru,n.forOwn=ju,n.forOwnRight=Fu,n.get=Hu,n.gt=yh,n.gte=gh,n.has=Gu,n.hasIn=Uu,n.head=wa,n.identity=Ll,n.includes=ys,n.indexOf=xa,n.inRange=al,n.invoke=Bh,n.isArguments=bh,n.isArray=_h,n.isArrayBuffer=wh,n.isArrayLike=Xs,n.isArrayLikeObject=$s,n.isBoolean=Zs,n.isBuffer=xh,n.isDate=Th,n.isElement=Js,n.isEmpty=eu,n.isEqual=tu,n.isEqualWith=nu,n.isError=iu,n.isFinite=ru,n.isFunction=ou,n.isInteger=au,n.isLength=su,n.isMap=Eh,n.isMatch=cu,n.isMatchWith=du,n.isNaN=hu,n.isNative=fu,n.isNil=vu,n.isNull=pu,n.isNumber=mu,n.isObject=uu,n.isObjectLike=lu,n.isPlainObject=yu,n.isRegExp=Ch,n.isSafeInteger=gu,n.isSet=Oh,n.isString=bu,n.isSymbol=_u,n.isTypedArray=Sh,n.isUndefined=wu,n.isWeakMap=xu,n.isWeakSet=Tu,n.join=Ea,n.kebabCase=Qh,n.last=Ca,n.lastIndexOf=Oa,n.lowerCase=qh,n.lowerFirst=Kh,n.lt=kh,n.lte=Ph,n.max=Zl,n.maxBy=Jl,n.mean=ec,n.meanBy=tc,n.min=nc,n.minBy=ic,n.stubArray=Wl,n.stubFalse=Vl,n.stubObject=Yl,n.stubString=Ql,n.stubTrue=ql,n.multiply=mf,n.nth=Sa,n.noConflict=Bl,n.noop=zl,n.now=uh,n.pad=fl,n.padEnd=pl,n.padStart=vl,n.parseInt=ml,n.random=sl,n.reduce=_s,n.reduceRight=ws,n.repeat=yl,n.replace=gl,n.result=Xu,n.round=yf,n.runInContext=e,n.sample=Ts,n.size=Os,n.snakeCase=Xh,n.some=Ss,n.sortedIndex=La,n.sortedIndexBy=Aa,n.sortedIndexOf=Ra,n.sortedLastIndex=ja,n.sortedLastIndexBy=Fa,n.sortedLastIndexOf=Ba,n.startCase=$h,n.startsWith=_l,n.subtract=gf,n.sum=rc,n.sumBy=oc,n.template=wl,n.times=Kl,n.toFinite=Cu,n.toInteger=Ou,n.toLength=Su,n.toLower=xl,n.toNumber=ku,n.toSafeInteger=Mu,n.toString=Nu,n.toUpper=Tl,n.trim=El,n.trimEnd=Cl,n.trimStart=Ol,n.truncate=Sl,n.unescape=kl,n.uniqueId=$l,n.upperCase=Zh,n.upperFirst=Jh,n.each=vs,n.eachRight=ms,n.first=wa,Fl(n,function(){var e={};return ni(n,function(t,i){_c.call(n.prototype,i)||(e[i]=t)}),e}(),{chain:!1}),n.VERSION=oe,l(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){n[e].placeholder=n}),l(["drop","take"],function(e,t){_.prototype[e]=function(n){n=n===re?1:Kc(Ou(n),0);var i=this.__filtered__&&!t?new _(this):this.clone();return i.__filtered__?i.__takeCount__=Xc(n,i.__takeCount__):i.__views__.push({size:Xc(n,Fe),type:e+(i.__dir__<0?"Right":"")}),i},_.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),l(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==Ne||n==Ie;_.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Co(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),l(["head","last"],function(e,t){var n="take"+(t?"Right":"");_.prototype[e]=function(){return this[n](1).value()[0]}}),l(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");_.prototype[e]=function(){return this.__filtered__?new _(this):this[n](1)}}),_.prototype.compact=function(){return this.filter(Ll)},_.prototype.find=function(e){return this.filter(e).head()},_.prototype.findLast=function(e){return this.reverse().find(e)},_.prototype.invokeMap=or(function(e,t){return"function"==typeof e?new _(this):this.map(function(n){return ki(n,e,t)})}),_.prototype.reject=function(e){return this.filter(Rs(Co(e)))},_.prototype.slice=function(e,t){e=Ou(e);var n=this;return n.__filtered__&&(e>0||t<0)?new _(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==re&&(t=Ou(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},_.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},_.prototype.toArray=function(){return this.take(Fe)},ni(_.prototype,function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=n[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);a&&(n.prototype[t]=function(){var t=this.__wrapped__,u=o?[1]:arguments,l=t instanceof _,c=u[0],d=l||_h(t),h=function(e){var t=a.apply(n,m([e],u));return o&&f?t[0]:t};d&&i&&"function"==typeof c&&1!=c.length&&(l=d=!1);var f=this.__chain__,p=!!this.__actions__.length,v=s&&!f,y=l&&!p;if(!s&&d){t=y?t:new _(this);var g=e.apply(t,u);return g.__actions__.push({func:ns,args:[h],thisArg:re}),new r(g,f)}return v&&y?e.apply(this,u):(g=this.thru(h),v?o?g.value()[0]:g.value():g)})}),l(["pop","push","shift","sort","splice","unshift"],function(e){var t=vc[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var n=this.value();return t.apply(_h(n)?n:[],e)}return this[i](function(n){return t.apply(_h(n)?n:[],e)})}}),ni(_.prototype,function(e,t){var i=n[t];if(i){var r=i.name+"",o=ud[r]||(ud[r]=[]);o.push({name:t,func:i})}}),ud[to(re,ge).name]=[{name:"wrapper",func:re}],_.prototype.clone=P,_.prototype.reverse=$,_.prototype.value=te,n.prototype.at=Jd,n.prototype.chain=is,n.prototype.commit=rs,n.prototype.next=os,n.prototype.plant=ss,n.prototype.reverse=us,n.prototype.toJSON=n.prototype.valueOf=n.prototype.value=ls,n.prototype.first=n.prototype.head,Rc&&(n.prototype[Rc]=as),n},Ei=Ti();si._=Ei,i=function(){return Ei}.call(t,n,t,r),!(i!==re&&(r.exports=i))}).call(this)}).call(t,function(){return this}(),n(112)(e))},function(e,t,n){function i(e,t){var n={};return t=a(t,3),o(e,function(e,i,o){r(n,t(e,i,o),e)}),n}var r=n(100),o=n(74),a=n(55);e.exports=i},function(e,t,n){function i(e,t){var n={};return t=a(t,3),o(e,function(e,i,o){r(n,i,t(e,i,o))}),n}var r=n(100),o=n(74),a=n(55);e.exports=i},function(e,t,n){function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(i.Cache||r),n}var r=n(182),o="Expected a function";i.Cache=r,e.exports=i},function(e,t,n){var i=n(186),r=n(77),o=r(function(e,t,n){i(e,t,n)});e.exports=o},function(e,t){function n(e){if("function"!=typeof e)throw new TypeError(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var i="Expected a function";e.exports=n},function(e,t,n){var i=n(99),r=n(575),o=n(280),a=n(56),s=n(36),u=n(611),l=n(188),c=n(189),d=1,h=2,f=4,p=l(function(e,t){var n={};if(null==e)return n;var l=!1;t=i(t,function(t){return t=a(t,e),l||(l=t.length>1),t}),s(e,c(e),n),l&&(n=r(n,d|h|f,u));for(var p=t.length;p--;)o(n,t[p]);return n});e.exports=p},function(e,t,n){function i(e,t){return a(e,o(r(t)))}var r=n(55),o=n(682),a=n(309);e.exports=i},function(e,t,n){var i=n(591),r=n(188),o=r(function(e,t){return null==e?{}:i(e,t)});e.exports=o},function(e,t,n){function i(e){return a(e)?r(s(e)):o(e)}var r=n(592),o=n(593),a=n(192),s=n(57);e.exports=i},function(e,t,n){function i(e,t,n){t=r(t,e);var i=-1,s=t.length;for(s||(s=1,e=void 0);++i=r&&t<=a){var l=(u-o)/(a-r),c=o-l*r;return l*t+c}}return 0}function o(e){if("number"==typeof parseInt(e)){var t=parseInt(e);if(t<360&&t>0)return[t,t]}if("string"==typeof e&&m[e]){var n=m[e];if(n.hueRange)return n.hueRange}return[0,360]}function a(e){return s(e).saturationRange}function s(e){e>=334&&e<=360&&(e-=360);for(var t in m){var n=m[t];if(n.hueRange&&e>=n.hueRange[0]&&e<=n.hueRange[1])return m[t]}return"Color not found"}function u(e){if(null===v)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var t=e[1]||1,n=e[0]||0;v=(9301*v+49297)%233280;var i=v/233280;return Math.floor(n+i*(t-n))}function l(e){function t(e){var t=e.toString(16);return 1==t.length?"0"+t:t}var n=h(e),i="#"+t(n[0])+t(n[1])+t(n[2]);return i}function c(e,t,n){var i=n[0][0],r=n[n.length-1][0],o=n[n.length-1][1],a=n[0][1];m[e]={hueRange:t,lowerBounds:n,saturationRange:[i,r],brightnessRange:[o,a]}}function d(){c("monochrome",null,[[0,0],[100,0]]),c("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),c("orange",[19,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),c("yellow",[47,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),c("green",[63,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),c("blue",[179,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),c("purple",[258,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),c("pink",[283,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function h(e){var t=e[0];0===t&&(t=1),360===t&&(t=359),t/=360;var n=e[1]/100,i=e[2]/100,r=Math.floor(6*t),o=6*t-r,a=i*(1-n),s=i*(1-o*n),u=i*(1-(1-o)*n),l=256,c=256,d=256;switch(r){case 0:l=i,c=u,d=a;break;case 1:l=s,c=i,d=a;break;case 2:l=a,c=i,d=u;break;case 3:l=a,c=s,d=i;break;case 4:l=u,c=a,d=i;break;case 5:l=i,c=a,d=s}var h=[Math.floor(255*l),Math.floor(255*c),Math.floor(255*d)];return h}function f(e){var t=e[0],n=e[1]/100,i=e[2]/100,r=(2-n)*i;return[t,Math.round(n*i/(r<1?r:2-r)*1e4)/100,r/2*100]}function p(e){for(var t=0,n=0;n!==e.length&&!(t>=Number.MAX_SAFE_INTEGER);n++)t+=e.charCodeAt(n);return t}var v=null,m={};d();var y=function(r){if(r=r||{},r.seed&&r.seed===parseInt(r.seed,10))v=r.seed;else if("string"==typeof r.seed)v=p(r.seed);else{if(void 0!==r.seed&&null!==r.seed)throw new TypeError("The seed value must be an integer or string");v=null}var o,a,s;if(null!==r.count&&void 0!==r.count){var u=r.count,l=[];for(r.count=null;u>l.length;)v&&r.seed&&(r.seed+=1),l.push(y(r));return r.count=u,l}return o=e(r),a=t(o,r),s=n(o,a,r),i([o,a,s],r)};return y})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(1),f=i(h),p=n(331),v=i(p),m=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments)); +}return(0,d.default)(t,e),t.prototype.render=function(){return f.default.createElement(v.default,(0,o.default)({},this.props,{accordion:!0}),this.props.children)},t}(f.default.Component);t.default=m,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(65),o=i(r),a=n(5),s=i(a),u=n(6),l=i(u),c=n(2),d=i(c),h=n(4),f=i(h),p=n(3),v=i(p),m=n(7),y=i(m),g=n(1),b=i(g),_=n(8),w=n(22),x={onDismiss:b.default.PropTypes.func,closeLabel:b.default.PropTypes.string},T={closeLabel:"Close alert"},E=function(e){function t(){return(0,d.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,v.default)(t,e),t.prototype.renderDismissButton=function(e){return b.default.createElement("button",{type:"button",className:"close",onClick:e,"aria-hidden":"true",tabIndex:"-1"},b.default.createElement("span",null,"×"))},t.prototype.renderSrOnlyDismissButton=function(e,t){return b.default.createElement("button",{type:"button",className:"close sr-only",onClick:e},t)},t.prototype.render=function(){var e,t=this.props,n=t.onDismiss,i=t.closeLabel,r=t.className,o=t.children,a=(0,l.default)(t,["onDismiss","closeLabel","className","children"]),u=(0,_.splitBsProps)(a),c=u[0],d=u[1],h=!!n,f=(0,s.default)({},(0,_.getClassSet)(c),(e={},e[(0,_.prefix)(c,"dismissable")]=h,e));return b.default.createElement("div",(0,s.default)({},d,{role:"alert",className:(0,y.default)(r,f)}),h&&this.renderDismissButton(n),o,h&&this.renderSrOnlyDismissButton(n,i))},t}(b.default.Component);E.propTypes=x,E.defaultProps=T,t.default=(0,_.bsStyles)((0,o.default)(w.State),w.State.INFO,(0,_.bsClass)("alert",E)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b={pullRight:y.default.PropTypes.bool},_={pullRight:!1},w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.hasContent=function(e){var t=!1;return y.default.Children.forEach(e,function(e){t||(e||0===e)&&(t=!0)}),t},t.prototype.render=function(){var e=this.props,t=e.pullRight,n=e.className,i=e.children,r=(0,s.default)(e,["pullRight","className","children"]),a=(0,g.splitBsProps)(r),u=a[0],l=a[1],c=(0,o.default)({},(0,g.getClassSet)(u),{"pull-right":t,hidden:!this.hasContent(i)});return y.default.createElement("span",(0,o.default)({},l,{className:(0,v.default)(n,c)}),i)},t}(y.default.Component);w.propTypes=b,w.defaultProps=_,t.default=(0,g.bsClass)("badge",w),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(316),b=i(g),_=n(8),w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,_.splitBsProps)(n),r=i[0],a=i[1],u=(0,_.getClassSet)(r);return y.default.createElement("ol",(0,o.default)({},a,{role:"navigation","aria-label":"breadcrumbs",className:(0,v.default)(t,u)}))},t}(y.default.Component);w.Item=b.default,t.default=(0,_.bsClass)("breadcrumb",w),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(105),b=i(g),_=n(8),w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,_.splitBsProps)(n),r=i[0],a=i[1],u=(0,_.getClassSet)(r);return y.default.createElement("div",(0,o.default)({},a,{role:"toolbar",className:(0,v.default)(t,u)}))},t}(y.default.Component);t.default=(0,_.bsClass)("btn-toolbar",(0,_.bsSizes)(b.default.SIZES,w)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(709),b=i(g),_=n(318),w=i(_),x=n(202),T=i(x),E=n(38),C=i(E),O=n(8),S=n(24),k=i(S),P={slide:y.default.PropTypes.bool,indicators:y.default.PropTypes.bool,interval:y.default.PropTypes.number,controls:y.default.PropTypes.bool,pauseOnHover:y.default.PropTypes.bool,wrap:y.default.PropTypes.bool,onSelect:y.default.PropTypes.func,onSlideEnd:y.default.PropTypes.func,activeIndex:y.default.PropTypes.number,defaultActiveIndex:y.default.PropTypes.number,direction:y.default.PropTypes.oneOf(["prev","next"]),prevIcon:y.default.PropTypes.node,prevLabel:y.default.PropTypes.string,nextIcon:y.default.PropTypes.node,nextLabel:y.default.PropTypes.string},M={slide:!0,interval:5e3,pauseOnHover:!0,wrap:!0,indicators:!0,controls:!0,prevIcon:y.default.createElement(T.default,{glyph:"chevron-left"}),prevLabel:"Previous",nextIcon:y.default.createElement(T.default,{glyph:"chevron-right"}),nextLabel:"Next"},N=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));r.handleMouseOver=r.handleMouseOver.bind(r),r.handleMouseOut=r.handleMouseOut.bind(r),r.handlePrev=r.handlePrev.bind(r),r.handleNext=r.handleNext.bind(r),r.handleItemAnimateOutEnd=r.handleItemAnimateOutEnd.bind(r);var o=n.defaultActiveIndex;return r.state={activeIndex:null!=o?o:0,previousActiveIndex:null,direction:null},r.isUnmounted=!1,r}return(0,f.default)(t,e),t.prototype.componentWillReceiveProps=function(e){var t=this.getActiveIndex();null!=e.activeIndex&&e.activeIndex!==t&&(clearTimeout(this.timeout),this.setState({previousActiveIndex:t,direction:null!=e.direction?e.direction:this.getDirection(t,e.activeIndex)}))},t.prototype.componentDidMount=function(){this.waitForNext()},t.prototype.componentWillUnmount=function(){clearTimeout(this.timeout),this.isUnmounted=!0},t.prototype.handleMouseOver=function(){this.props.pauseOnHover&&this.pause()},t.prototype.handleMouseOut=function(){this.isPaused&&this.play()},t.prototype.handlePrev=function(e){var t=this.getActiveIndex()-1;if(t<0){if(!this.props.wrap)return;t=k.default.count(this.props.children)-1}this.select(t,e,"prev")},t.prototype.handleNext=function(e){var t=this.getActiveIndex()+1,n=k.default.count(this.props.children);if(t>n-1){if(!this.props.wrap)return;t=0}this.select(t,e,"next")},t.prototype.handleItemAnimateOutEnd=function(){var e=this;this.setState({previousActiveIndex:null,direction:null},function(){e.waitForNext(),e.props.onSlideEnd&&e.props.onSlideEnd()})},t.prototype.getActiveIndex=function(){var e=this.props.activeIndex;return null!=e?e:this.state.activeIndex},t.prototype.getDirection=function(e,t){return e===t?null:e>t?"prev":"next"},t.prototype.select=function(e,t,n){if(clearTimeout(this.timeout),!this.isUnmounted){var i=this.props.slide?this.getActiveIndex():null;n=n||this.getDirection(i,e);var r=this.props.onSelect;if(r&&(r.length>1?(t?(t.persist(),t.direction=n):t={direction:n},r(e,t)):r(e)),null==this.props.activeIndex&&e!==i){if(null!=this.state.previousActiveIndex)return;this.setState({activeIndex:e,previousActiveIndex:i,direction:n})}}},t.prototype.waitForNext=function(){var e=this.props,t=e.slide,n=e.interval,i=e.activeIndex;!this.isPaused&&t&&n&&null==i&&(this.timeout=setTimeout(this.handleNext,n))},t.prototype.pause=function(){this.isPaused=!0,clearTimeout(this.timeout)},t.prototype.play=function(){this.isPaused=!1,this.waitForNext()},t.prototype.renderIndicators=function(e,t,n){var i=this,r=[];return k.default.forEach(e,function(e,n){r.push(y.default.createElement("li",{key:n,className:n===t?"active":null,onClick:function(e){return i.select(n,e)}})," ")}),y.default.createElement("ol",{className:(0,O.prefix)(n,"indicators")},r)},t.prototype.renderControls=function(e){var t=e.wrap,n=e.children,i=e.activeIndex,r=e.prevIcon,o=e.nextIcon,a=e.bsProps,s=e.prevLabel,u=e.nextLabel,l=(0,O.prefix)(a,"control"),c=k.default.count(n);return[(t||0!==i)&&y.default.createElement(C.default,{key:"prev",className:(0,v.default)(l,"left"),onClick:this.handlePrev},r,s&&y.default.createElement("span",{className:"sr-only"},s)),(t||i!==c-1)&&y.default.createElement(C.default,{key:"next",className:(0,v.default)(l,"right"),onClick:this.handleNext},o,u&&y.default.createElement("span",{className:"sr-only"},u))]},t.prototype.render=function(){var e=this,t=this.props,n=t.slide,i=t.indicators,r=t.controls,a=t.wrap,u=t.prevIcon,l=t.prevLabel,c=t.nextIcon,d=t.nextLabel,h=t.className,f=t.children,p=(0,s.default)(t,["slide","indicators","controls","wrap","prevIcon","prevLabel","nextIcon","nextLabel","className","children"]),g=this.state,b=g.previousActiveIndex,_=g.direction,w=(0,O.splitBsPropsAndOmit)(p,["interval","pauseOnHover","onSelect","onSlideEnd","activeIndex","defaultActiveIndex","direction"]),x=w[0],T=w[1],E=this.getActiveIndex(),C=(0,o.default)({},(0,O.getClassSet)(x),{slide:n});return y.default.createElement("div",(0,o.default)({},T,{className:(0,v.default)(h,C),onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut}),i&&this.renderIndicators(f,E,x),y.default.createElement("div",{className:(0,O.prefix)(x,"inner")},k.default.map(f,function(t,i){var r=i===E,o=n&&i===b;return(0,m.cloneElement)(t,{active:r,index:i,animateOut:o,animateIn:r&&null!=b&&n,direction:_,onAnimateOutEnd:o?e.handleItemAnimateOutEnd:null})})),r&&this.renderControls({wrap:a,children:f,activeIndex:E,prevIcon:u,prevLabel:l,nextIcon:c,nextLabel:d,bsProps:x}))},t}(y.default.Component);N.propTypes=P,N.defaultProps=M,N.Caption=b.default,N.Item=w.default,t.default=(0,O.bsClass)("carousel",N),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(8),w={componentClass:b.default},x={componentClass:"div"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return y.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(y.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("carousel-caption",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(19),b=(i(g),n(8)),_={inline:y.default.PropTypes.bool,disabled:y.default.PropTypes.bool,validationState:y.default.PropTypes.oneOf(["success","warning","error",null]),inputRef:y.default.PropTypes.func},w={inline:!1,disabled:!1},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.inline,n=e.disabled,i=e.validationState,r=e.inputRef,a=e.className,u=e.style,l=e.children,c=(0,s.default)(e,["inline","disabled","validationState","inputRef","className","style","children"]),d=(0,b.splitBsProps)(c),h=d[0],f=d[1],p=y.default.createElement("input",(0,o.default)({},f,{ref:r,type:"checkbox",disabled:n}));if(t){var m,g=(m={},m[(0,b.prefix)(h,"inline")]=!0,m.disabled=n,m);return y.default.createElement("label",{className:(0,v.default)(a,g),style:u},p,l)}var _=(0,o.default)({},(0,b.getClassSet)(h),{disabled:n});return i&&(_["has-"+i]=!0),y.default.createElement("div",{className:(0,v.default)(a,_),style:u},y.default.createElement("label",null,p,l))},t}(y.default.Component);x.propTypes=_,x.defaultProps=w,t.default=(0,b.bsClass)("checkbox",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(8),w=n(333),x=i(w),T=n(22),E={componentClass:b.default,visibleXsBlock:y.default.PropTypes.bool,visibleSmBlock:y.default.PropTypes.bool,visibleMdBlock:y.default.PropTypes.bool,visibleLgBlock:y.default.PropTypes.bool},C={componentClass:"div"},O=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return T.DEVICE_SIZES.forEach(function(e){var t="visible"+(0,x.default)(e)+"Block";u[t]&&(l["visible-"+e+"-block"]=!0),delete u[t]}),y.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(y.default.Component);O.propTypes=E,O.defaultProps=C,t.default=(0,_.bsClass)("clearfix",O),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(8),w=n(22),x={componentClass:b.default,xs:y.default.PropTypes.number,sm:y.default.PropTypes.number,md:y.default.PropTypes.number,lg:y.default.PropTypes.number,xsHidden:y.default.PropTypes.bool,smHidden:y.default.PropTypes.bool,mdHidden:y.default.PropTypes.bool,lgHidden:y.default.PropTypes.bool,xsOffset:y.default.PropTypes.number,smOffset:y.default.PropTypes.number,mdOffset:y.default.PropTypes.number,lgOffset:y.default.PropTypes.number,xsPush:y.default.PropTypes.number,smPush:y.default.PropTypes.number,mdPush:y.default.PropTypes.number,lgPush:y.default.PropTypes.number,xsPull:y.default.PropTypes.number,smPull:y.default.PropTypes.number,mdPull:y.default.PropTypes.number,lgPull:y.default.PropTypes.number},T={componentClass:"div"},E=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=[];return w.DEVICE_SIZES.forEach(function(e){function t(t,n){var i=""+e+t,r=u[i];null!=r&&l.push((0,_.prefix)(a,""+e+n+"-"+r)),delete u[i]}t("",""),t("Offset","-offset"),t("Push","-push"),t("Pull","-pull");var n=e+"Hidden";u[n]&&l.push("hidden-"+e),delete u[n]}),y.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(y.default.Component);E.propTypes=x,E.defaultProps=T,t.default=(0,_.bsClass)("col",E),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(19),b=(i(g),n(8)),_={htmlFor:y.default.PropTypes.string,srOnly:y.default.PropTypes.bool},w={srOnly:!1},x={$bs_formGroup:y.default.PropTypes.object},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.context.$bs_formGroup,t=e&&e.controlId,n=this.props,i=n.htmlFor,r=void 0===i?t:i,a=n.srOnly,u=n.className,l=(0,s.default)(n,["htmlFor","srOnly","className"]),c=(0,b.splitBsProps)(l),d=c[0],h=c[1],f=(0,o.default)({},(0,b.getClassSet)(d),{"sr-only":a});return y.default.createElement("label",(0,o.default)({},h,{htmlFor:r,className:(0,v.default)(u,f)}))},t}(y.default.Component);T.propTypes=_,T.defaultProps=w,T.contextTypes=x,t.default=(0,b.bsClass)("control-label",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(5),f=i(h),p=n(1),v=i(p),m=n(136),y=i(m),g=n(138),b=i(g),_=(0,f.default)({},y.default.propTypes,{bsStyle:v.default.PropTypes.string,bsSize:v.default.PropTypes.string,title:v.default.PropTypes.node.isRequired,noCaret:v.default.PropTypes.bool,children:v.default.PropTypes.node}),w=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.bsSize,n=e.bsStyle,i=e.title,r=e.children,a=(0,o.default)(e,["bsSize","bsStyle","title","children"]),s=(0,b.default)(a,y.default.ControlledComponent),u=s[0],l=s[1];return v.default.createElement(y.default,(0,f.default)({},u,{bsSize:t,bsStyle:n}),v.default.createElement(y.default.Toggle,(0,f.default)({},l,{bsSize:t,bsStyle:n}),i),v.default.createElement(y.default.Menu,null,r))},t}(v.default.Component);w.propTypes=_,t.default=w,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(407),l=i(u),c=n(2),d=i(c),h=n(4),f=i(h),p=n(3),v=i(p),m=n(7),y=i(m),g=n(180),b=i(g),_=n(1),w=i(_),x=n(25),T=i(x),E=n(355),C=i(E),O=n(8),S=n(21),k=i(S),P=n(24),M=i(P),N={open:w.default.PropTypes.bool,pullRight:w.default.PropTypes.bool,onClose:w.default.PropTypes.func,labelledBy:w.default.PropTypes.oneOfType([w.default.PropTypes.string,w.default.PropTypes.number]),onSelect:w.default.PropTypes.func,rootCloseEvent:w.default.PropTypes.oneOf(["click","mousedown"])},D={bsRole:"menu",pullRight:!1},I=function(e){function t(n){(0,d.default)(this,t);var i=(0,f.default)(this,e.call(this,n));return i.handleRootClose=i.handleRootClose.bind(i),i.handleKeyDown=i.handleKeyDown.bind(i),i}return(0,v.default)(t,e),t.prototype.handleRootClose=function(e){this.props.onClose(e,{source:"rootClose"})},t.prototype.handleKeyDown=function(e){switch(e.keyCode){case b.default.codes.down:this.focusNext(),e.preventDefault();break;case b.default.codes.up:this.focusPrevious(),e.preventDefault();break;case b.default.codes.esc:case b.default.codes.tab:this.props.onClose(e,{source:"keydown"})}},t.prototype.getItemsAndActiveIndex=function(){var e=this.getFocusableMenuItems(),t=e.indexOf(document.activeElement);return{items:e,activeIndex:t}},t.prototype.getFocusableMenuItems=function(){var e=T.default.findDOMNode(this);return e?(0,l.default)(e.querySelectorAll('[tabIndex="-1"]')):[]},t.prototype.focusNext=function(){var e=this.getItemsAndActiveIndex(),t=e.items,n=e.activeIndex;if(0!==t.length){var i=n===t.length-1?0:n+1;t[i].focus()}},t.prototype.focusPrevious=function(){var e=this.getItemsAndActiveIndex(),t=e.items,n=e.activeIndex;if(0!==t.length){var i=0===n?t.length-1:n-1;t[i].focus()}},t.prototype.render=function(){var e,t=this,n=this.props,i=n.open,r=n.pullRight,a=n.labelledBy,u=n.onSelect,l=n.className,c=n.rootCloseEvent,d=n.children,h=(0,s.default)(n,["open","pullRight","labelledBy","onSelect","className","rootCloseEvent","children"]),f=(0,O.splitBsPropsAndOmit)(h,["onClose"]),p=f[0],v=f[1],m=(0,o.default)({},(0,O.getClassSet)(p),(e={},e[(0,O.prefix)(p,"right")]=r,e));return w.default.createElement(C.default,{disabled:!i,onRootClose:this.handleRootClose,event:c},w.default.createElement("ul",(0,o.default)({},v,{role:"menu",className:(0,y.default)(l,m),"aria-labelledby":a}),M.default.map(d,function(e){return w.default.cloneElement(e,{onKeyDown:(0,k.default)(e.props.onKeyDown,t.handleKeyDown),onSelect:(0,k.default)(e.props.onSelect,u)})})))},t}(w.default.Component);I.propTypes=N,I.defaultProps=D,t.default=(0,O.bsClass)("dropdown-menu",I),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(8),w={horizontal:y.default.PropTypes.bool,inline:y.default.PropTypes.bool,componentClass:b.default},x={horizontal:!1,inline:!1,componentClass:"form"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.horizontal,n=e.inline,i=e.componentClass,r=e.className,a=(0,s.default)(e,["horizontal","inline","componentClass","className"]),u=(0,_.splitBsProps)(a),l=u[0],c=u[1],d=[];return t&&d.push((0,_.prefix)(l,"horizontal")),n&&d.push((0,_.prefix)(l,"inline")),y.default.createElement(i,(0,o.default)({},c,{className:(0,v.default)(r,d)}))},t}(y.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("form",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(19),w=(i(_),n(718)),x=i(w),T=n(719),E=i(T),C=n(8),O=n(22),S={componentClass:b.default,type:y.default.PropTypes.string,id:y.default.PropTypes.string,inputRef:y.default.PropTypes.func},k={componentClass:"input"},P={$bs_formGroup:y.default.PropTypes.object},M=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.context.$bs_formGroup,t=e&&e.controlId,n=this.props,i=n.componentClass,r=n.type,a=n.id,u=void 0===a?t:a,l=n.inputRef,c=n.className,d=n.bsSize,h=(0,s.default)(n,["componentClass","type","id","inputRef","className","bsSize"]),f=(0,C.splitBsProps)(h),p=f[0],m=f[1],g=void 0;if("file"!==r&&(g=(0,C.getClassSet)(p)),d){var b=O.SIZE_MAP[d]||d;g[(0,C.prefix)({bsClass:"input"},b)]=!0}return y.default.createElement(i,(0,o.default)({},m,{type:r,id:u,ref:l,className:(0,v.default)(c,g)}))},t}(y.default.Component);M.propTypes=S,M.defaultProps=k,M.contextTypes=P,M.Feedback=x.default,M.Static=E.default,t.default=(0,C.bsClass)("form-control",(0,C.bsSizes)([O.Size.SMALL,O.Size.LARGE],M)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(5),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(202),b=i(g),_=n(8),w={bsRole:"feedback"},x={$bs_formGroup:y.default.PropTypes.object},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.getGlyph=function(e){switch(e){case"success":return"ok";case"warning":return"warning-sign";case"error":return"remove";default:return null}},t.prototype.renderDefaultFeedback=function(e,t,n,i){var r=this.getGlyph(e&&e.validationState);return r?y.default.createElement(b.default,(0,s.default)({},i,{glyph:r,className:(0,v.default)(t,n)})):null},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=(0,o.default)(e,["className","children"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);if(!n)return this.renderDefaultFeedback(this.context.$bs_formGroup,t,l,u);var c=y.default.Children.only(n);return y.default.cloneElement(c,(0,s.default)({},u,{className:(0,v.default)(c.props.className,t,l)}))},t}(y.default.Component);T.defaultProps=w,T.contextTypes=x,t.default=(0,_.bsClass)("form-control-feedback",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(8),w={componentClass:b.default},x={componentClass:"p"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return y.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(y.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("form-control-static",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b=n(22),_=n(24),w=i(_),x={controlId:y.default.PropTypes.string,validationState:y.default.PropTypes.oneOf(["success","warning","error",null])},T={$bs_formGroup:y.default.PropTypes.object.isRequired},E=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.controlId,n=e.validationState;return{$bs_formGroup:{controlId:t,validationState:n}}},t.prototype.hasFeedback=function(e){var t=this;return w.default.some(e,function(e){return"feedback"===e.props.bsRole||e.props.children&&t.hasFeedback(e.props.children)})},t.prototype.render=function(){var e=this.props,t=e.validationState,n=e.className,i=e.children,r=(0,s.default)(e,["validationState","className","children"]),a=(0,g.splitBsPropsAndOmit)(r,["controlId"]),u=a[0],l=a[1],c=(0,o.default)({},(0,g.getClassSet)(u),{"has-feedback":this.hasFeedback(i)});return t&&(c["has-"+t]=!0),y.default.createElement("div",(0,o.default)({},l,{className:(0,v.default)(n,c)}),i)},t}(y.default.Component);E.propTypes=x,E.childContextTypes=T,t.default=(0,g.bsClass)("form-group",(0,g.bsSizes)([b.Size.LARGE,b.Size.SMALL],E)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,g.splitBsProps)(n),r=i[0],a=i[1],u=(0,g.getClassSet)(r);return y.default.createElement("span",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(y.default.Component);t.default=(0,g.bsClass)("help-block",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b={responsive:y.default.PropTypes.bool,rounded:y.default.PropTypes.bool,circle:y.default.PropTypes.bool,thumbnail:y.default.PropTypes.bool},_={responsive:!1,rounded:!1,circle:!1,thumbnail:!1},w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.responsive,i=t.rounded,r=t.circle,a=t.thumbnail,u=t.className,l=(0,s.default)(t,["responsive","rounded","circle","thumbnail","className"]),c=(0,g.splitBsProps)(l),d=c[0],h=c[1],f=(e={},e[(0,g.prefix)(d,"responsive")]=n,e[(0,g.prefix)(d,"rounded")]=i,e[(0,g.prefix)(d,"circle")]=r,e[(0,g.prefix)(d,"thumbnail")]=a,e);return y.default.createElement("img",(0,o.default)({},h,{className:(0,v.default)(u,f)}))},t}(y.default.Component);w.propTypes=b,w.defaultProps=_,t.default=(0,g.bsClass)("img",w),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(724),b=i(g),_=n(725),w=i(_),x=n(8),T=n(22),E=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,x.splitBsProps)(n),r=i[0],a=i[1],u=(0,x.getClassSet)(r);return y.default.createElement("span",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(y.default.Component);E.Addon=b.default,E.Button=w.default,t.default=(0,x.bsClass)("input-group",(0,x.bsSizes)([T.Size.LARGE,T.Size.SMALL],E)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,g.splitBsProps)(n),r=i[0],a=i[1],u=(0,g.getClassSet)(r);return y.default.createElement("span",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(y.default.Component);t.default=(0,g.bsClass)("input-group-addon",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,g.splitBsProps)(n),r=i[0],a=i[1],u=(0,g.getClassSet)(r);return y.default.createElement("span",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(y.default.Component);t.default=(0,g.bsClass)("input-group-btn",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(1),v=i(p),m=n(7),y=i(m),g=n(14),b=i(g),_=n(8),w={componentClass:b.default},x={componentClass:"div"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return v.default.createElement(t,(0,o.default)({},u,{className:(0,y.default)(n,l)}))},t}(v.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("jumbotron",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(65),o=i(r),a=n(5),s=i(a),u=n(6),l=i(u),c=n(2),d=i(c),h=n(4),f=i(h),p=n(3),v=i(p),m=n(7),y=i(m),g=n(1),b=i(g),_=n(8),w=n(22),x=function(e){function t(){return(0,d.default)(this,t),(0,f.default)(this,e.apply(this,arguments))}return(0,v.default)(t,e),t.prototype.hasContent=function(e){var t=!1;return b.default.Children.forEach(e,function(e){t||(e||0===e)&&(t=!0)}),t},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=(0,l.default)(e,["className","children"]),r=(0,_.splitBsProps)(i),o=r[0],a=r[1],u=(0,s.default)({},(0,_.getClassSet)(o),{hidden:!this.hasContent(n)});return b.default.createElement("span",(0,s.default)({},a,{className:(0,y.default)(t,u)}),n)},t}(b.default.Component);t.default=(0,_.bsClass)("label",(0,_.bsStyles)([].concat((0,o.default)(w.State),[w.Style.DEFAULT,w.Style.PRIMARY]),w.Style.DEFAULT,x)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return e?C.default.some(e,function(e){return e.type!==x.default||e.props.href||e.props.onClick})?"div":"ul":"div"}t.__esModule=!0;var o=n(5),a=i(o),s=n(6),u=i(s),l=n(2),c=i(l),d=n(4),h=i(d),f=n(3),p=i(f),v=n(7),m=i(v),y=n(1),g=i(y),b=n(14),_=i(b),w=n(321),x=i(w),T=n(8),E=n(24),C=i(E),O={componentClass:_.default},S=function(e){function t(){return(0,c.default)(this,t),(0,h.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.componentClass,i=void 0===n?r(t):n,o=e.className,s=(0,u.default)(e,["children","componentClass","className"]),l=(0,T.splitBsProps)(s),c=l[0],d=l[1],h=(0,T.getClassSet)(c),f="ul"===i&&C.default.every(t,function(e){return e.type===x.default});return g.default.createElement(i,(0,a.default)({},d,{className:(0,m.default)(o,h)}),f?C.default.map(t,function(e){return(0,y.cloneElement)(e,{listItem:!0})}):t)},t}(g.default.Component); +S.propTypes=O,t.default=(0,T.bsClass)("list-group",S),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(8),w={componentClass:b.default},x={componentClass:"div"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return y.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(y.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("media-body",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(8),w={componentClass:b.default},x={componentClass:"h4"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return y.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(y.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("media-heading",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(203),b=i(g),_=n(8),w={align:y.default.PropTypes.oneOf(["top","middle","bottom"])},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.align,n=e.className,i=(0,s.default)(e,["align","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return t&&(l[(0,_.prefix)(b.default.defaultProps,t)]=!0),y.default.createElement("div",(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(y.default.Component);x.propTypes=w,t.default=(0,_.bsClass)("media-left",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,g.splitBsProps)(n),r=i[0],a=i[1],u=(0,g.getClassSet)(r);return y.default.createElement("ul",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(y.default.Component);t.default=(0,g.bsClass)("media-list",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,g.splitBsProps)(n),r=i[0],a=i[1],u=(0,g.getClassSet)(r);return y.default.createElement("li",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(y.default.Component);t.default=(0,g.bsClass)("media",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(203),b=i(g),_=n(8),w={align:y.default.PropTypes.oneOf(["top","middle","bottom"])},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.align,n=e.className,i=(0,s.default)(e,["align","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return t&&(l[(0,_.prefix)(b.default.defaultProps,t)]=!0),y.default.createElement("div",(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(y.default.Component);x.propTypes=w,t.default=(0,_.bsClass)("media-right",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(144),b=i(g),_=n(38),w=i(_),x=n(8),T=n(21),E=i(T),C={active:y.default.PropTypes.bool,disabled:y.default.PropTypes.bool,divider:(0,b.default)(y.default.PropTypes.bool,function(e){var t=e.divider,n=e.children;return t&&n?new Error("Children will not be rendered for dividers"):null}),eventKey:y.default.PropTypes.any,header:y.default.PropTypes.bool,href:y.default.PropTypes.string,onClick:y.default.PropTypes.func,onSelect:y.default.PropTypes.func},O={divider:!1,disabled:!1,header:!1},S=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));return r.handleClick=r.handleClick.bind(r),r}return(0,f.default)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.href,i=t.disabled,r=t.onSelect,o=t.eventKey;n&&!i||e.preventDefault(),i||r&&r(o,e)},t.prototype.render=function(){var e=this.props,t=e.active,n=e.disabled,i=e.divider,r=e.header,a=e.onClick,u=e.className,l=e.style,c=(0,s.default)(e,["active","disabled","divider","header","onClick","className","style"]),d=(0,x.splitBsPropsAndOmit)(c,["eventKey","onSelect"]),h=d[0],f=d[1];return i?(f.children=void 0,y.default.createElement("li",(0,o.default)({},f,{role:"separator",className:(0,v.default)(u,"divider"),style:l}))):r?y.default.createElement("li",(0,o.default)({},f,{role:"heading",className:(0,v.default)(u,(0,x.prefix)(h,"header")),style:l})):y.default.createElement("li",{role:"presentation",className:(0,v.default)(u,{active:t,disabled:n}),style:l},y.default.createElement(w.default,(0,o.default)({},f,{role:"menuitem",tabIndex:"-1",onClick:(0,E.default)(a,this.handleClick)})))},t}(y.default.Component);S.propTypes=C,S.defaultProps=O,t.default=(0,x.bsClass)("dropdown",S),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(5),f=i(h),p=n(7),v=i(p),m=n(481),y=i(m),g=n(70),b=i(g),_=n(50),w=i(_),x=n(255),T=i(x),E=n(1),C=i(E),O=n(25),S=i(O),k=n(832),P=i(k),M=n(358),N=i(M),D=n(14),I=i(D),L=n(137),A=i(L),R=n(322),j=i(R),F=n(737),B=i(F),z=n(323),H=i(z),G=n(324),U=i(G),W=n(325),V=i(W),Y=n(8),Q=n(21),q=i(Q),K=n(138),X=i(K),$=n(22),Z=(0,f.default)({},P.default.propTypes,B.default.propTypes,{backdrop:C.default.PropTypes.oneOf(["static",!0,!1]),keyboard:C.default.PropTypes.bool,animation:C.default.PropTypes.bool,dialogComponentClass:I.default,autoFocus:C.default.PropTypes.bool,enforceFocus:C.default.PropTypes.bool,restoreFocus:C.default.PropTypes.bool,show:C.default.PropTypes.bool,onHide:C.default.PropTypes.func,onEnter:C.default.PropTypes.func,onEntering:C.default.PropTypes.func,onEntered:C.default.PropTypes.func,onExit:C.default.PropTypes.func,onExiting:C.default.PropTypes.func,onExited:C.default.PropTypes.func,container:P.default.propTypes.container}),J=(0,f.default)({},P.default.defaultProps,{animation:!0,dialogComponentClass:B.default}),ee={$bs_modal:C.default.PropTypes.shape({onHide:C.default.PropTypes.func})},te=function(e){function t(n,i){(0,s.default)(this,t);var r=(0,l.default)(this,e.call(this,n,i));return r.handleEntering=r.handleEntering.bind(r),r.handleExited=r.handleExited.bind(r),r.handleWindowResize=r.handleWindowResize.bind(r),r.handleDialogClick=r.handleDialogClick.bind(r),r.state={style:{}},r}return(0,d.default)(t,e),t.prototype.getChildContext=function(){return{$bs_modal:{onHide:this.props.onHide}}},t.prototype.componentWillUnmount=function(){this.handleExited()},t.prototype.handleEntering=function(){y.default.on(window,"resize",this.handleWindowResize),this.updateStyle()},t.prototype.handleExited=function(){y.default.off(window,"resize",this.handleWindowResize)},t.prototype.handleWindowResize=function(){this.updateStyle()},t.prototype.handleDialogClick=function(e){e.target===e.currentTarget&&this.props.onHide()},t.prototype.updateStyle=function(){if(w.default){var e=this._modal.getDialogElement(),t=e.scrollHeight,n=(0,b.default)(e),i=(0,N.default)(S.default.findDOMNode(this.props.container||n.body)),r=t>n.documentElement.clientHeight;this.setState({style:{paddingRight:i&&!r?(0,T.default)():void 0,paddingLeft:!i&&r?(0,T.default)():void 0}})}},t.prototype.render=function(){var e=this,n=this.props,i=n.backdrop,r=n.animation,a=n.show,s=n.dialogComponentClass,u=n.className,l=n.style,c=n.children,d=n.onEntering,h=n.onExited,p=(0,o.default)(n,["backdrop","animation","show","dialogComponentClass","className","style","children","onEntering","onExited"]),m=(0,X.default)(p,P.default),y=m[0],g=m[1],b=a&&!r&&"in";return C.default.createElement(P.default,(0,f.default)({},y,{ref:function(t){e._modal=t},show:a,onEntering:(0,q.default)(d,this.handleEntering),onExited:(0,q.default)(h,this.handleExited),backdrop:i,backdropClassName:(0,v.default)((0,Y.prefix)(p,"backdrop"),b),containerClassName:(0,Y.prefix)(p,"open"),transition:r?A.default:void 0,dialogTransitionTimeout:t.TRANSITION_DURATION,backdropTransitionTimeout:t.BACKDROP_TRANSITION_DURATION}),C.default.createElement(s,(0,f.default)({},g,{style:(0,f.default)({},this.state.style,l),className:(0,v.default)(u,b),onClick:i===!0?this.handleDialogClick:null}),c))},t}(C.default.Component);te.propTypes=Z,te.defaultProps=J,te.childContextTypes=ee,te.Body=j.default,te.Header=U.default,te.Title=V.default,te.Footer=H.default,te.Dialog=B.default,te.TRANSITION_DURATION=300,te.BACKDROP_TRANSITION_DURATION=150,t.default=(0,Y.bsClass)("modal",(0,Y.bsSizes)([$.Size.LARGE,$.Size.SMALL],te)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b=n(22),_={dialogClassName:y.default.PropTypes.string},w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.dialogClassName,i=t.className,r=t.style,a=t.children,u=(0,s.default)(t,["dialogClassName","className","style","children"]),l=(0,g.splitBsProps)(u),c=l[0],d=l[1],h=(0,g.prefix)(c),f=(0,o.default)({display:"block"},r),p=(0,o.default)({},(0,g.getClassSet)(c),(e={},e[h]=!1,e[(0,g.prefix)(c,"dialog")]=!0,e));return y.default.createElement("div",(0,o.default)({},d,{tabIndex:"-1",role:"dialog",style:f,className:(0,v.default)(i,h)}),y.default.createElement("div",{className:(0,v.default)(n,p)},y.default.createElement("div",{className:(0,g.prefix)(c,"content"),role:"document"},a)))},t}(y.default.Component);w.propTypes=_,t.default=(0,g.bsClass)("modal",(0,g.bsSizes)([b.Size.LARGE,b.Size.SMALL],w)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(5),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(136),b=i(g),_=n(138),w=i(_),x=n(24),T=i(x),E=(0,f.default)({},b.default.propTypes,{title:y.default.PropTypes.node.isRequired,noCaret:y.default.PropTypes.bool,active:y.default.PropTypes.bool,children:y.default.PropTypes.node}),C=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.isActive=function(e,t,n){var i=e.props,r=this;return!!(i.active||null!=t&&i.eventKey===t||n&&i.href===n)||(!!T.default.some(i.children,function(e){return r.isActive(e,t,n)})||i.active)},t.prototype.render=function(){var e=this,t=this.props,n=t.title,i=t.activeKey,r=t.activeHref,a=t.className,s=t.style,u=t.children,l=(0,o.default)(t,["title","activeKey","activeHref","className","style","children"]),c=this.isActive(this,i,r);delete l.active,delete l.eventKey;var d=(0,w.default)(l,b.default.ControlledComponent),h=d[0],p=d[1];return y.default.createElement(b.default,(0,f.default)({},h,{componentClass:"li",className:(0,v.default)(a,{active:c}),style:s}),y.default.createElement(b.default.Toggle,(0,f.default)({},p,{useAnchor:!0}),n),y.default.createElement(b.default.Menu,null,T.default.map(u,function(t){return y.default.cloneElement(t,{active:e.isActive(t,i,r)})})))},t}(y.default.Component);C.propTypes=E,t.default=C,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i=function(e,n){var i=n.$bs_navbar,r=void 0===i?{bsClass:"navbar"}:i,o=e.componentClass,s=e.className,l=e.pullRight,c=e.pullLeft,d=(0,u.default)(e,["componentClass","className","pullRight","pullLeft"]);return g.default.createElement(o,(0,a.default)({},d,{className:(0,m.default)(s,(0,I.prefix)(r,t),l&&(0,I.prefix)(r,"right"),c&&(0,I.prefix)(r,"left"))}))};return i.displayName=n,i.propTypes={componentClass:_.default,pullRight:g.default.PropTypes.bool,pullLeft:g.default.PropTypes.bool},i.defaultProps={componentClass:e,pullRight:!1,pullLeft:!1},i.contextTypes={$bs_navbar:y.PropTypes.shape({bsClass:y.PropTypes.string})},i}t.__esModule=!0;var o=n(5),a=i(o),s=n(6),u=i(s),l=n(2),c=i(l),d=n(4),h=i(d),f=n(3),p=i(f),v=n(7),m=i(v),y=n(1),g=i(y),b=n(14),_=i(b),w=n(147),x=i(w),T=n(320),E=i(T),C=n(328),O=i(C),S=n(740),k=i(S),P=n(741),M=i(P),N=n(742),D=i(N),I=n(8),L=n(22),A=n(21),R=i(A),j={fixedTop:g.default.PropTypes.bool,fixedBottom:g.default.PropTypes.bool,staticTop:g.default.PropTypes.bool,inverse:g.default.PropTypes.bool,fluid:g.default.PropTypes.bool,componentClass:_.default,onToggle:g.default.PropTypes.func,onSelect:g.default.PropTypes.func,collapseOnSelect:g.default.PropTypes.bool,expanded:g.default.PropTypes.bool,role:g.default.PropTypes.string},F={componentClass:"nav",fixedTop:!1,fixedBottom:!1,staticTop:!1,inverse:!1,fluid:!1,collapseOnSelect:!1},B={$bs_navbar:y.PropTypes.shape({bsClass:y.PropTypes.string,expanded:y.PropTypes.bool,onToggle:y.PropTypes.func.isRequired,onSelect:y.PropTypes.func})},z=function(e){function t(n,i){(0,c.default)(this,t);var r=(0,h.default)(this,e.call(this,n,i));return r.handleToggle=r.handleToggle.bind(r),r.handleCollapse=r.handleCollapse.bind(r),r}return(0,p.default)(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.bsClass,n=e.expanded,i=e.onSelect,r=e.collapseOnSelect;return{$bs_navbar:{bsClass:t,expanded:n,onToggle:this.handleToggle,onSelect:(0,R.default)(i,r?this.handleCollapse:null)}}},t.prototype.handleCollapse=function(){var e=this.props,t=e.onToggle,n=e.expanded;n&&t(!1)},t.prototype.handleToggle=function(){var e=this.props,t=e.onToggle,n=e.expanded;t(!n)},t.prototype.render=function(){var e,t=this.props,n=t.componentClass,i=t.fixedTop,r=t.fixedBottom,o=t.staticTop,s=t.inverse,l=t.fluid,c=t.className,d=t.children,h=(0,u.default)(t,["componentClass","fixedTop","fixedBottom","staticTop","inverse","fluid","className","children"]),f=(0,I.splitBsPropsAndOmit)(h,["expanded","onToggle","onSelect","collapseOnSelect"]),p=f[0],v=f[1];void 0===v.role&&"nav"!==n&&(v.role="navigation"),s&&(p.bsStyle=L.Style.INVERSE);var y=(0,a.default)({},(0,I.getClassSet)(p),(e={},e[(0,I.prefix)(p,"fixed-top")]=i,e[(0,I.prefix)(p,"fixed-bottom")]=r,e[(0,I.prefix)(p,"static-top")]=o,e));return g.default.createElement(n,(0,a.default)({},v,{className:(0,m.default)(c,y)}),g.default.createElement(E.default,{fluid:l},d))},t}(g.default.Component);z.propTypes=j,z.defaultProps=F,z.childContextTypes=B,(0,I.bsClass)("navbar",z);var H=(0,x.default)(z,{expanded:"onToggle"});H.Brand=O.default,H.Header=M.default,H.Toggle=D.default,H.Collapse=k.default,H.Form=r("div","form","NavbarForm"),H.Text=r("p","text","NavbarText"),H.Link=r("a","link","NavbarLink"),t.default=(0,I.bsStyles)([L.Style.DEFAULT,L.Style.INVERSE],L.Style.DEFAULT,H),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(1),v=i(p),m=n(201),y=i(m),g=n(8),b={$bs_navbar:p.PropTypes.shape({bsClass:p.PropTypes.string,expanded:p.PropTypes.bool})},_=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=(0,s.default)(e,["children"]),i=this.context.$bs_navbar||{bsClass:"navbar"},r=(0,g.prefix)(i,"collapse");return v.default.createElement(y.default,(0,o.default)({in:i.expanded},n),v.default.createElement("div",{className:r},t))},t}(v.default.Component);_.contextTypes=b,t.default=_,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b={$bs_navbar:y.default.PropTypes.shape({bsClass:y.default.PropTypes.string})},_=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=this.context.$bs_navbar||{bsClass:"navbar"},r=(0,g.prefix)(i,"header");return y.default.createElement("div",(0,o.default)({},n,{className:(0,v.default)(t,r)}))},t}(y.default.Component);_.contextTypes=b,t.default=_,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b=n(21),_=i(b),w={onClick:m.PropTypes.func,children:m.PropTypes.node},x={$bs_navbar:m.PropTypes.shape({bsClass:m.PropTypes.string,expanded:m.PropTypes.bool,onToggle:m.PropTypes.func.isRequired})},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.onClick,n=e.className,i=e.children,r=(0,s.default)(e,["onClick","className","children"]),a=this.context.$bs_navbar||{bsClass:"navbar"},u=(0,o.default)({type:"button"},r,{onClick:(0,_.default)(t,a.onToggle),className:(0,v.default)(n,(0,g.prefix)(a,"toggle"),!a.expanded&&"collapsed")});return i?y.default.createElement("button",u,i):y.default.createElement("button",u,y.default.createElement("span",{className:"sr-only"},"Toggle navigation"),y.default.createElement("span",{className:"icon-bar"}),y.default.createElement("span",{className:"icon-bar"}),y.default.createElement("span",{className:"icon-bar"}))},t}(y.default.Component);T.propTypes=w,T.contextTypes=x,t.default=T,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return Array.isArray(t)?t.indexOf(e)>=0:e===t}t.__esModule=!0;var o=n(6),a=i(o),s=n(2),u=i(s),l=n(4),c=i(l),d=n(3),h=i(d),f=n(5),p=i(f),v=n(71),m=i(v),y=n(1),g=i(y),b=n(25),_=i(b),w=n(19),x=(i(w),n(329)),T=i(x),E=n(21),C=i(E),O=g.default.PropTypes.oneOf(["click","hover","focus"]),S=(0,p.default)({},T.default.propTypes,{trigger:g.default.PropTypes.oneOfType([O,g.default.PropTypes.arrayOf(O)]),delay:g.default.PropTypes.number,delayShow:g.default.PropTypes.number,delayHide:g.default.PropTypes.number,defaultOverlayShown:g.default.PropTypes.bool,overlay:g.default.PropTypes.node.isRequired,onBlur:g.default.PropTypes.func,onClick:g.default.PropTypes.func,onFocus:g.default.PropTypes.func,onMouseOut:g.default.PropTypes.func,onMouseOver:g.default.PropTypes.func,target:g.default.PropTypes.oneOf([null]),onHide:g.default.PropTypes.oneOf([null]),show:g.default.PropTypes.oneOf([null])}),k={defaultOverlayShown:!1,trigger:["hover","focus"]},P=function(e){function t(n,i){(0,u.default)(this,t);var r=(0,c.default)(this,e.call(this,n,i));return r.handleToggle=r.handleToggle.bind(r),r.handleDelayedShow=r.handleDelayedShow.bind(r),r.handleDelayedHide=r.handleDelayedHide.bind(r),r.handleHide=r.handleHide.bind(r),r.handleMouseOver=function(e){return r.handleMouseOverOut(r.handleDelayedShow,e)},r.handleMouseOut=function(e){return r.handleMouseOverOut(r.handleDelayedHide,e)},r._mountNode=null,r.state={show:n.defaultOverlayShown},r}return(0,h.default)(t,e),t.prototype.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},t.prototype.componentDidUpdate=function(){this.renderOverlay()},t.prototype.componentWillUnmount=function(){_.default.unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},t.prototype.handleToggle=function(){this.state.show?this.hide():this.show()},t.prototype.handleDelayedShow=function(){var e=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var t=null!=this.props.delayShow?this.props.delayShow:this.props.delay;return t?void(this._hoverShowDelay=setTimeout(function(){e._hoverShowDelay=null,e.show()},t)):void this.show()}},t.prototype.handleDelayedHide=function(){var e=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var t=null!=this.props.delayHide?this.props.delayHide:this.props.delay;return t?void(this._hoverHideDelay=setTimeout(function(){e._hoverHideDelay=null,e.hide()},t)):void this.hide()}},t.prototype.handleMouseOverOut=function(e,t){var n=t.currentTarget,i=t.relatedTarget||t.nativeEvent.toElement;i&&(i===n||(0,m.default)(n,i))||e(t)},t.prototype.handleHide=function(){this.hide()},t.prototype.show=function(){this.setState({show:!0})},t.prototype.hide=function(){this.setState({show:!1})},t.prototype.makeOverlay=function(e,t){return g.default.createElement(T.default,(0,p.default)({},t,{show:this.state.show,onHide:this.handleHide,target:this}),e)},t.prototype.renderOverlay=function(){_.default.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},t.prototype.render=function(){var e=this.props,t=e.trigger,n=e.overlay,i=e.children,o=e.onBlur,s=e.onClick,u=e.onFocus,l=e.onMouseOut,c=e.onMouseOver,d=(0,a.default)(e,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete d.delay,delete d.delayShow,delete d.delayHide,delete d.defaultOverlayShown;var h=g.default.Children.only(i),f=h.props,p={};return this.state.show&&(p["aria-describedby"]=n.props.id),p.onClick=(0,C.default)(f.onClick,s),r("click",t)&&(p.onClick=(0,C.default)(p.onClick,this.handleToggle)),r("hover",t)&&(p.onMouseOver=(0,C.default)(f.onMouseOver,c,this.handleMouseOver),p.onMouseOut=(0,C.default)(f.onMouseOut,l,this.handleMouseOut)),r("focus",t)&&(p.onFocus=(0,C.default)(f.onFocus,u,this.handleDelayedShow),p.onBlur=(0,C.default)(f.onBlur,o,this.handleDelayedHide)),this._overlay=this.makeOverlay(n,d),(0,y.cloneElement)(h,p)},t}(g.default.Component);P.propTypes=S,P.defaultProps=k,t.default=P,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,i=(0,s.default)(e,["className","children"]),r=(0,g.splitBsProps)(i),a=r[0],u=r[1],l=(0,g.getClassSet)(a);return y.default.createElement("div",(0,o.default)({},u,{className:(0,v.default)(t,l)}),y.default.createElement("h1",null,n))},t}(y.default.Component);t.default=(0,g.bsClass)("page-header",b),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(330),o=i(r),a=n(765),s=i(a);t.default=s.default.wrapper(o.default,"``","``"),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(330),b=i(g),_=n(8),w=n(21),x=i(w),T=n(24),E=i(T),C={onSelect:y.default.PropTypes.func},O=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.onSelect,n=e.className,i=e.children,r=(0,s.default)(e,["onSelect","className","children"]),a=(0,_.splitBsProps)(r),u=a[0],l=a[1],c=(0,_.getClassSet)(u);return y.default.createElement("ul",(0,o.default)({},l,{className:(0,v.default)(n,c)}),E.default.map(i,function(e){return(0,m.cloneElement)(e,{onSelect:(0,x.default)(e.props.onSelect,t)})}))},t}(y.default.Component);O.propTypes=C,O.Item=b.default,t.default=(0,_.bsClass)("pager",O),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(5),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(748),w=i(_),x=n(8),T={activePage:y.default.PropTypes.number,items:y.default.PropTypes.number,maxButtons:y.default.PropTypes.number,boundaryLinks:y.default.PropTypes.bool,ellipsis:y.default.PropTypes.oneOfType([y.default.PropTypes.bool,y.default.PropTypes.node]),first:y.default.PropTypes.oneOfType([y.default.PropTypes.bool,y.default.PropTypes.node]),last:y.default.PropTypes.oneOfType([y.default.PropTypes.bool,y.default.PropTypes.node]),prev:y.default.PropTypes.oneOfType([y.default.PropTypes.bool,y.default.PropTypes.node]),next:y.default.PropTypes.oneOfType([y.default.PropTypes.bool,y.default.PropTypes.node]),onSelect:y.default.PropTypes.func,buttonComponentClass:b.default},E={activePage:1,items:1,maxButtons:0,first:!1,last:!1,prev:!1,next:!1,ellipsis:!0,boundaryLinks:!1},C=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.renderPageButtons=function(e,t,n,i,r,o){var a=[],u=void 0,l=void 0;n&&n1&&(u>2&&a.unshift(y.default.createElement(w.default,{key:"ellipsisFirst",disabled:!0,componentClass:o.componentClass},y.default.createElement("span",{"aria-label":"More"},r===!0?"…":r))),a.unshift(y.default.createElement(w.default,(0,s.default)({},o,{key:1,eventKey:1,active:!1}),"1"))),r&&l=n}),y.default.createElement("span",{"aria-label":"Next"},d===!0?"›":d)),l&&y.default.createElement(w.default,(0,s.default)({},E,{eventKey:n,disabled:t>=n}),y.default.createElement("span",{"aria-label":"Last"},l===!0?"»":l)))},t}(y.default.Component);C.propTypes=T,C.defaultProps=E,t.default=(0,x.bsClass)("pagination",C),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(38),w=i(_),x=n(21),T=i(x),E={componentClass:b.default,className:y.default.PropTypes.string,eventKey:y.default.PropTypes.any,onSelect:y.default.PropTypes.func,disabled:y.default.PropTypes.bool,active:y.default.PropTypes.bool,onClick:y.default.PropTypes.func},C={componentClass:w.default,active:!1,disabled:!1},O=function(e){function t(n,i){(0,l.default)(this,t);var r=(0,d.default)(this,e.call(this,n,i));return r.handleClick=r.handleClick.bind(r),r}return(0,f.default)(t,e),t.prototype.handleClick=function(e){var t=this.props,n=t.disabled,i=t.onSelect,r=t.eventKey;n||i&&i(r,e)},t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.active,i=e.disabled,r=e.onClick,a=e.className,u=e.style,l=(0,s.default)(e,["componentClass","active","disabled","onClick","className","style"]);return t===w.default&&delete l.eventKey,delete l.onSelect,y.default.createElement("li",{className:(0,v.default)(a,{active:n,disabled:i}),style:u},y.default.createElement(t,(0,o.default)({},l,{disabled:i,onClick:(0,T.default)(r,this.handleClick)})))},t}(y.default.Component);O.propTypes=E,O.defaultProps=C,t.default=O,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(65),o=i(r),a=n(6),s=i(a),u=n(5),l=i(u),c=n(2),d=i(c),h=n(4),f=i(h),p=n(3),v=i(p),m=n(7),y=i(m),g=n(1),b=i(g),_=n(201),w=i(_),x=n(8),T=n(22),E={collapsible:b.default.PropTypes.bool,onSelect:b.default.PropTypes.func,header:b.default.PropTypes.node,id:b.default.PropTypes.oneOfType([b.default.PropTypes.string,b.default.PropTypes.number]),footer:b.default.PropTypes.node,defaultExpanded:b.default.PropTypes.bool,expanded:b.default.PropTypes.bool,eventKey:b.default.PropTypes.any,headerRole:b.default.PropTypes.string,panelRole:b.default.PropTypes.string,onEnter:b.default.PropTypes.func,onEntering:b.default.PropTypes.func,onEntered:b.default.PropTypes.func,onExit:b.default.PropTypes.func,onExiting:b.default.PropTypes.func,onExited:b.default.PropTypes.func},C={defaultExpanded:!1},O=function(e){function t(n,i){(0,d.default)(this,t);var r=(0,f.default)(this,e.call(this,n,i));return r.handleClickTitle=r.handleClickTitle.bind(r),r.state={expanded:r.props.defaultExpanded},r}return(0,v.default)(t,e),t.prototype.handleClickTitle=function(e){e.persist(),e.selected=!0,this.props.onSelect?this.props.onSelect(this.props.eventKey,e):e.preventDefault(),e.selected&&this.setState({expanded:!this.state.expanded})},t.prototype.renderHeader=function(e,t,n,i,r,o){var a=(0,x.prefix)(o,"title");return e?b.default.isValidElement(t)?(0,g.cloneElement)(t,{className:(0,y.default)(t.props.className,a),children:this.renderAnchor(t.props.children,n,i,r)}):b.default.createElement("h4",{role:"presentation",className:a},this.renderAnchor(t,n,i,r)):b.default.isValidElement(t)?(0,g.cloneElement)(t,{className:(0,y.default)(t.props.className,a)}):t},t.prototype.renderAnchor=function(e,t,n,i){return b.default.createElement("a",{role:n,href:t&&"#"+t,onClick:this.handleClickTitle,"aria-controls":t,"aria-expanded":i,"aria-selected":i,className:i?null:"collapsed"},e)},t.prototype.renderCollapsibleBody=function(e,t,n,i,r,o){return b.default.createElement(w.default,(0, +l.default)({in:t},o),b.default.createElement("div",{id:e,role:n,className:(0,x.prefix)(r,"collapse"),"aria-hidden":!t},this.renderBody(i,r)))},t.prototype.renderBody=function(e,t){function n(){r.length&&(i.push(b.default.createElement("div",{key:i.length,className:o},r)),r=[])}var i=[],r=[],o=(0,x.prefix)(t,"body");return b.default.Children.toArray(e).forEach(function(e){return b.default.isValidElement(e)&&e.props.fill?(n(),void i.push((0,g.cloneElement)(e,{fill:void 0}))):void r.push(e)}),n(),i},t.prototype.render=function(){var e=this.props,t=e.collapsible,n=e.header,i=e.id,r=e.footer,o=e.expanded,a=e.headerRole,u=e.panelRole,c=e.className,d=e.children,h=e.onEnter,f=e.onEntering,p=e.onEntered,v=e.onExit,m=e.onExiting,g=e.onExited,_=(0,s.default)(e,["collapsible","header","id","footer","expanded","headerRole","panelRole","className","children","onEnter","onEntering","onEntered","onExit","onExiting","onExited"]),w=(0,x.splitBsPropsAndOmit)(_,["defaultExpanded","eventKey","onSelect"]),T=w[0],E=w[1],C=null!=o?o:this.state.expanded,O=(0,x.getClassSet)(T);return b.default.createElement("div",(0,l.default)({},E,{className:(0,y.default)(c,O),id:t?null:i}),n&&b.default.createElement("div",{className:(0,x.prefix)(T,"heading")},this.renderHeader(t,n,i,a,C,T)),t?this.renderCollapsibleBody(i,C,u,d,T,{onEnter:h,onEntering:f,onEntered:p,onExit:v,onExiting:m,onExited:g}):this.renderBody(d,T),r&&b.default.createElement("div",{className:(0,x.prefix)(T,"footer")},r))},t}(b.default.Component);O.propTypes=E,O.defaultProps=C,t.default=(0,x.bsClass)("panel",(0,x.bsStyles)([].concat((0,o.default)(T.State),[T.Style.DEFAULT,T.Style.PRIMARY]),T.Style.DEFAULT,O)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(145),b=i(g),_=n(8),w={id:(0,b.default)(y.default.PropTypes.oneOfType([y.default.PropTypes.string,y.default.PropTypes.number])),placement:y.default.PropTypes.oneOf(["top","right","bottom","left"]),positionTop:y.default.PropTypes.oneOfType([y.default.PropTypes.number,y.default.PropTypes.string]),positionLeft:y.default.PropTypes.oneOfType([y.default.PropTypes.number,y.default.PropTypes.string]),arrowOffsetTop:y.default.PropTypes.oneOfType([y.default.PropTypes.number,y.default.PropTypes.string]),arrowOffsetLeft:y.default.PropTypes.oneOfType([y.default.PropTypes.number,y.default.PropTypes.string]),title:y.default.PropTypes.node},x={placement:"right"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.placement,i=t.positionTop,r=t.positionLeft,a=t.arrowOffsetTop,u=t.arrowOffsetLeft,l=t.title,c=t.className,d=t.style,h=t.children,f=(0,s.default)(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","title","className","style","children"]),p=(0,_.splitBsProps)(f),m=p[0],g=p[1],b=(0,o.default)({},(0,_.getClassSet)(m),(e={},e[n]=!0,e)),w=(0,o.default)({display:"block",top:i,left:r},d),x={top:a,left:u};return y.default.createElement("div",(0,o.default)({},g,{role:"tooltip",className:(0,v.default)(c,b),style:w}),y.default.createElement("div",{className:"arrow",style:x}),l&&y.default.createElement("h3",{className:(0,_.prefix)(m,"title")},l),y.default.createElement("div",{className:(0,_.prefix)(m,"content")},h))},t}(y.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("popover",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i=e[t];if(!i)return null;var r=null;return w.default.Children.forEach(i,function(e){if(!r&&e.type!==P){var t=w.default.isValidElement(e)?e.type.displayName||e.type.name||e.type:e;r=new Error("Children of "+n+" can contain only ProgressBar "+("components. Found "+t+"."))}}),r}function o(e,t,n){var i=(e-t)/(n-t)*100;return Math.round(i*O)/O}t.__esModule=!0;var a=n(65),s=i(a),u=n(5),l=i(u),c=n(6),d=i(c),h=n(2),f=i(h),p=n(4),v=i(p),m=n(3),y=i(m),g=n(7),b=i(g),_=n(1),w=i(_),x=n(8),T=n(22),E=n(24),C=i(E),O=1e3,S={min:_.PropTypes.number,now:_.PropTypes.number,max:_.PropTypes.number,label:_.PropTypes.node,srOnly:_.PropTypes.bool,striped:_.PropTypes.bool,active:_.PropTypes.bool,children:r,isChild:_.PropTypes.bool},k={min:0,max:100,active:!1,isChild:!1,srOnly:!1,striped:!1},P=function(e){function t(){return(0,f.default)(this,t),(0,v.default)(this,e.apply(this,arguments))}return(0,y.default)(t,e),t.prototype.renderProgressBar=function(e){var t,n=e.min,i=e.now,r=e.max,a=e.label,s=e.srOnly,u=e.striped,c=e.active,h=e.className,f=e.style,p=(0,d.default)(e,["min","now","max","label","srOnly","striped","active","className","style"]),v=(0,x.splitBsProps)(p),m=v[0],y=v[1],g=(0,l.default)({},(0,x.getClassSet)(m),(t={active:c},t[(0,x.prefix)(m,"striped")]=c||u,t));return w.default.createElement("div",(0,l.default)({},y,{role:"progressbar",className:(0,b.default)(h,g),style:(0,l.default)({width:o(i,n,r)+"%"},f),"aria-valuenow":i,"aria-valuemin":n,"aria-valuemax":r}),s?w.default.createElement("span",{className:"sr-only"},a):a)},t.prototype.render=function(){var e=this.props,t=e.isChild,n=(0,d.default)(e,["isChild"]);if(t)return this.renderProgressBar(n);var i=n.min,r=n.now,o=n.max,a=n.label,s=n.srOnly,u=n.striped,c=n.active,h=n.bsClass,f=n.bsStyle,p=n.className,v=n.children,m=(0,d.default)(n,["min","now","max","label","srOnly","striped","active","bsClass","bsStyle","className","children"]);return w.default.createElement("div",(0,l.default)({},m,{className:(0,b.default)(p,"progress")}),v?C.default.map(v,function(e){return(0,_.cloneElement)(e,{isChild:!0})}):this.renderProgressBar({min:i,now:r,max:o,label:a,srOnly:s,striped:u,active:c,bsClass:h,bsStyle:f}))},t}(w.default.Component);P.propTypes=S,P.defaultProps=k,t.default=(0,x.bsClass)("progress-bar",(0,x.bsStyles)((0,s.default)(T.State),P)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(19),b=(i(g),n(8)),_={inline:y.default.PropTypes.bool,disabled:y.default.PropTypes.bool,validationState:y.default.PropTypes.oneOf(["success","warning","error",null]),inputRef:y.default.PropTypes.func},w={inline:!1,disabled:!1},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.inline,n=e.disabled,i=e.validationState,r=e.inputRef,a=e.className,u=e.style,l=e.children,c=(0,s.default)(e,["inline","disabled","validationState","inputRef","className","style","children"]),d=(0,b.splitBsProps)(c),h=d[0],f=d[1],p=y.default.createElement("input",(0,o.default)({},f,{ref:r,type:"radio",disabled:n}));if(t){var m,g=(m={},m[(0,b.prefix)(h,"inline")]=!0,m.disabled=n,m);return y.default.createElement("label",{className:(0,v.default)(a,g),style:u},p,l)}var _=(0,o.default)({},(0,b.getClassSet)(h),{disabled:n});return i&&(_["has-"+i]=!0),y.default.createElement("div",{className:(0,v.default)(a,_),style:u},y.default.createElement("label",null,p,l))},t}(y.default.Component);x.propTypes=_,x.defaultProps=w,t.default=(0,b.bsClass)("radio",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(19),b=(i(g),n(8)),_={children:m.PropTypes.element.isRequired,a16by9:m.PropTypes.bool,a4by3:m.PropTypes.bool},w={a16by9:!1,a4by3:!1},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.a16by9,i=t.a4by3,r=t.className,a=t.children,u=(0,s.default)(t,["a16by9","a4by3","className","children"]),l=(0,b.splitBsProps)(u),c=l[0],d=l[1],h=(0,o.default)({},(0,b.getClassSet)(c),(e={},e[(0,b.prefix)(c,"16by9")]=n,e[(0,b.prefix)(c,"4by3")]=i,e));return y.default.createElement("div",{className:(0,v.default)(h)},(0,m.cloneElement)(a,(0,o.default)({},d,{className:(0,v.default)(r,(0,b.prefix)(c,"item"))})))},t}(y.default.Component);x.propTypes=_,x.defaultProps=w,t.default=(0,b.bsClass)("embed-responsive",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(14),b=i(g),_=n(8),w={componentClass:b.default},x={componentClass:"div"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.componentClass,n=e.className,i=(0,s.default)(e,["componentClass","className"]),r=(0,_.splitBsProps)(i),a=r[0],u=r[1],l=(0,_.getClassSet)(a);return y.default.createElement(t,(0,o.default)({},u,{className:(0,v.default)(n,l)}))},t}(y.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("row",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(6),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(5),f=i(h),p=n(1),v=i(p),m=n(105),y=i(m),g=n(136),b=i(g),_=n(756),w=i(_),x=n(138),T=i(x),E=(0,f.default)({},b.default.propTypes,{bsStyle:v.default.PropTypes.string,bsSize:v.default.PropTypes.string,href:v.default.PropTypes.string,onClick:v.default.PropTypes.func,title:v.default.PropTypes.node.isRequired,toggleLabel:v.default.PropTypes.string,children:v.default.PropTypes.node}),C=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.bsSize,n=e.bsStyle,i=e.title,r=e.toggleLabel,a=e.children,s=(0,o.default)(e,["bsSize","bsStyle","title","toggleLabel","children"]),u=(0,T.default)(s,b.default.ControlledComponent),l=u[0],c=u[1];return v.default.createElement(b.default,(0,f.default)({},l,{bsSize:t,bsStyle:n}),v.default.createElement(y.default,(0,f.default)({},c,{disabled:s.disabled,bsSize:t,bsStyle:n}),i),v.default.createElement(w.default,{"aria-label":r||i,bsSize:t,bsStyle:n}),v.default.createElement(b.default.Menu,null,a))},t}(v.default.Component);C.propTypes=E,C.Toggle=w.default,t.default=C,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(1),f=i(h),p=n(319),v=i(p),m=function(e){function t(){return(0,s.default)(this,t),(0,l.default)(this,e.apply(this,arguments))}return(0,d.default)(t,e),t.prototype.render=function(){return f.default.createElement(v.default,(0,o.default)({},this.props,{useAnchor:!1,noCaret:!1}))},t}(f.default.Component);m.defaultProps=v.default.defaultProps,t.default=m,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(2),o=i(r),a=n(4),s=i(a),u=n(3),l=i(u),c=n(5),d=i(c),h=n(1),f=i(h),p=n(204),v=i(p),m=n(205),y=i(m),g=n(332),b=i(g),_=(0,d.default)({},b.default.propTypes,{disabled:f.default.PropTypes.bool,title:f.default.PropTypes.node,tabClassName:f.default.PropTypes.string}),w=function(e){function t(){return(0,o.default)(this,t),(0,s.default)(this,e.apply(this,arguments))}return(0,l.default)(t,e),t.prototype.render=function(){var e=(0,d.default)({},this.props);return delete e.title,delete e.disabled,delete e.tabClassName,f.default.createElement(b.default,e)},t}(f.default.Component);w.propTypes=_,w.Container=v.default,w.Content=y.default,w.Pane=b.default,t.default=w,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b={striped:y.default.PropTypes.bool,bordered:y.default.PropTypes.bool,condensed:y.default.PropTypes.bool,hover:y.default.PropTypes.bool,responsive:y.default.PropTypes.bool},_={bordered:!1,condensed:!1,hover:!1,responsive:!1,striped:!1},w=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.striped,i=t.bordered,r=t.condensed,a=t.hover,u=t.responsive,l=t.className,c=(0,s.default)(t,["striped","bordered","condensed","hover","responsive","className"]),d=(0,g.splitBsProps)(c),h=d[0],f=d[1],p=(0,o.default)({},(0,g.getClassSet)(h),(e={},e[(0,g.prefix)(h,"striped")]=n,e[(0,g.prefix)(h,"bordered")]=i,e[(0,g.prefix)(h,"condensed")]=r,e[(0,g.prefix)(h,"hover")]=a,e)),m=y.default.createElement("table",(0,o.default)({},f,{className:(0,v.default)(l,p)}));return u?y.default.createElement("div",{className:(0,g.prefix)(h,"responsive")},m):m},t}(y.default.Component);w.propTypes=b,w.defaultProps=_,t.default=(0,g.bsClass)("table",w),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=void 0;return N.default.forEach(e,function(e){null==t&&(t=e.props.eventKey)}),t}t.__esModule=!0;var o=n(5),a=i(o),s=n(6),u=i(s),l=n(2),c=i(l),d=n(4),h=i(d),f=n(3),p=i(f),v=n(1),m=i(v),y=n(145),g=i(y),b=n(147),_=i(b),w=n(326),x=i(w),T=n(327),E=i(T),C=n(204),O=i(C),S=n(205),k=i(S),P=n(8),M=n(24),N=i(M),D=O.default.ControlledComponent,I={activeKey:m.default.PropTypes.any,bsStyle:m.default.PropTypes.oneOf(["tabs","pills"]),animation:m.default.PropTypes.bool,id:(0,g.default)(m.default.PropTypes.oneOfType([m.default.PropTypes.string,m.default.PropTypes.number])),onSelect:m.default.PropTypes.func,mountOnEnter:m.default.PropTypes.bool,unmountOnExit:m.default.PropTypes.bool},L={bsStyle:"tabs",animation:!0,mountOnEnter:!1,unmountOnExit:!1},A=function(e){function t(){return(0,c.default)(this,t),(0,h.default)(this,e.apply(this,arguments))}return(0,p.default)(t,e),t.prototype.renderTab=function(e){var t=e.props,n=t.title,i=t.eventKey,r=t.disabled,o=t.tabClassName;return null==n?null:m.default.createElement(E.default,{eventKey:i,disabled:r,className:o},n)},t.prototype.render=function(){var e=this.props,t=e.id,n=e.onSelect,i=e.animation,o=e.mountOnEnter,s=e.unmountOnExit,l=e.bsClass,c=e.className,d=e.style,h=e.children,f=e.activeKey,p=void 0===f?r(h):f,v=(0,u.default)(e,["id","onSelect","animation","mountOnEnter","unmountOnExit","bsClass","className","style","children","activeKey"]);return m.default.createElement(D,{id:t,activeKey:p,onSelect:n,className:c,style:d},m.default.createElement("div",null,m.default.createElement(x.default,(0,a.default)({},v,{role:"tablist"}),N.default.map(h,this.renderTab)),m.default.createElement(k.default,{bsClass:l,animation:i,mountOnEnter:o,unmountOnExit:s},h)))},t}(m.default.Component);A.propTypes=I,A.defaultProps=L,(0,P.bsClass)("tab",A),t.default=(0,_.default)(A,{activeKey:"onSelect"}),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(38),b=i(g),_=n(8),w={src:y.default.PropTypes.string,alt:y.default.PropTypes.string,href:y.default.PropTypes.string},x=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.src,n=e.alt,i=e.className,r=e.children,a=(0,s.default)(e,["src","alt","className","children"]),u=(0,_.splitBsProps)(a),l=u[0],c=u[1],d=c.href?b.default:"div",h=(0,_.getClassSet)(l);return y.default.createElement(d,(0,o.default)({},c,{className:(0,v.default)(i,h)}),y.default.createElement("img",{src:t,alt:n}),r&&y.default.createElement("div",{className:"caption"},r))},t}(y.default.Component);x.propTypes=w,t.default=(0,_.bsClass)("thumbnail",x),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(145),b=i(g),_=n(8),w={id:(0,b.default)(y.default.PropTypes.oneOfType([y.default.PropTypes.string,y.default.PropTypes.number])),placement:y.default.PropTypes.oneOf(["top","right","bottom","left"]),positionTop:y.default.PropTypes.oneOfType([y.default.PropTypes.number,y.default.PropTypes.string]),positionLeft:y.default.PropTypes.oneOfType([y.default.PropTypes.number,y.default.PropTypes.string]),arrowOffsetTop:y.default.PropTypes.oneOfType([y.default.PropTypes.number,y.default.PropTypes.string]),arrowOffsetLeft:y.default.PropTypes.oneOfType([y.default.PropTypes.number,y.default.PropTypes.string])},x={placement:"right"},T=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.placement,i=t.positionTop,r=t.positionLeft,a=t.arrowOffsetTop,u=t.arrowOffsetLeft,l=t.className,c=t.style,d=t.children,h=(0,s.default)(t,["placement","positionTop","positionLeft","arrowOffsetTop","arrowOffsetLeft","className","style","children"]),f=(0,_.splitBsProps)(h),p=f[0],m=f[1],g=(0,o.default)({},(0,_.getClassSet)(p),(e={},e[n]=!0,e)),b=(0,o.default)({top:i,left:r},c),w={top:a,left:u};return y.default.createElement("div",(0,o.default)({},m,{role:"tooltip",className:(0,v.default)(l,g),style:b}),y.default.createElement("div",{className:(0,_.prefix)(p,"arrow"),style:w}),y.default.createElement("div",{className:(0,_.prefix)(p,"inner")},d))},t}(y.default.Component);T.propTypes=w,T.defaultProps=x,t.default=(0,_.bsClass)("tooltip",T),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(5),o=i(r),a=n(6),s=i(a),u=n(2),l=i(u),c=n(4),d=i(c),h=n(3),f=i(h),p=n(7),v=i(p),m=n(1),y=i(m),g=n(8),b=n(22),_=function(e){function t(){return(0,l.default)(this,t),(0,d.default)(this,e.apply(this,arguments))}return(0,f.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=(0,s.default)(e,["className"]),i=(0,g.splitBsProps)(n),r=i[0],a=i[1],u=(0,g.getClassSet)(r);return y.default.createElement("div",(0,o.default)({},a,{className:(0,v.default)(t,u)}))},t}(y.default.Component);t.default=(0,g.bsClass)("well",(0,g.bsSizes)([b.Size.LARGE,b.Size.SMALL],_)),e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(){for(var e=arguments.length,t=Array(e),n=0;n1)||(r=t,!1)}),r?new Error("(children) "+i+" - Duplicate children detected of bsRole: "+(r+". Only one child each allowed with the following ")+("bsRoles: "+t.join(", "))):null})}t.__esModule=!0,t.requiredRoles=r,t.exclusiveRoles=o;var a=n(146),s=i(a),u=n(24),l=i(u)},function(e,t){"use strict";function n(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete a.animationend.animation,"TransitionEvent"in window||delete a.transitionend.transition;for(var n in a){var i=a[n];for(var r in i)if(r in t){s.push(i[r]);break}}}function i(e,t,n){e.addEventListener(t,n,!1)}function r(e,t,n){e.removeEventListener(t,n,!1)}t.__esModule=!0;var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},s=[];o&&n();var u={addEndEventListener:function(e,t){return 0===s.length?void window.setTimeout(t,0):void s.forEach(function(n){i(e,n,t)})},removeEndEventListener:function(e,t){0!==s.length&&s.forEach(function(n){r(e,n,t)})}};t.default=u,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var i=void 0;"object"===("undefined"==typeof e?"undefined":(0,f.default)(e))?i=e.message:(i=e+" is deprecated. Use "+t+" instead.",n&&(i+="\nYou can read more about it at "+n)),v[i]||(v[i]=!0)}function o(){v={}}t.__esModule=!0;var a=n(2),s=i(a),u=n(4),l=i(u),c=n(3),d=i(c),h=n(148),f=i(h);t._resetWarned=o;var p=n(19),v=(i(p),{});r.wrapper=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=Object.assign||function(e){for(var t=1;t8&&w<=11),E=32,C=String.fromCharCode(E),O={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"]}},S=!1,k=null,P={eventTypes:O,extractEvents:function(e,t,n,i){return[l(e,t,n,i),h(e,t,n,i)]}};e.exports=P},function(e,t,n){"use strict";var i=n(334),r=n(23),o=(n(32),n(504),n(823)),a=n(511),s=n(514),u=(n(10),s(function(e){return a(e)})),l=!1,c="cssFloat";if(r.canUseDOM){var d=document.createElement("div").style;try{d.font=""}catch(e){l=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var h={createMarkupForStyles:function(e,t){var n="";for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];null!=r&&(n+=u(i)+":",n+=o(i,r,t)+";")}return n||null},setValueForStyles:function(e,t,n){var r=e.style;for(var a in t)if(t.hasOwnProperty(a)){var s=o(a,t[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),s)r[a]=s;else{var u=l&&i.shorthandPropertyExpansions[a];if(u)for(var d in u)r[d]="";else r[a]=""}}}};e.exports=h},function(e,t,n){"use strict";function i(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function r(e){var t=E.getPooled(k.change,M,e,C(e));_.accumulateTwoPhaseDispatches(t),T.batchedUpdates(o,t)}function o(e){b.enqueueEvents(e),b.processEventQueue(!1)}function a(e,t){P=e,M=t,P.attachEvent("onchange",r)}function s(){P&&(P.detachEvent("onchange",r),P=null,M=null)}function u(e,t){if("topChange"===e)return t}function l(e,t,n){"topFocus"===e?(s(),a(t,n)):"topBlur"===e&&s()}function c(e,t){P=e,M=t,N=e.value,D=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(P,"value",A),P.attachEvent?P.attachEvent("onpropertychange",h):P.addEventListener("propertychange",h,!1)}function d(){P&&(delete P.value,P.detachEvent?P.detachEvent("onpropertychange",h):P.removeEventListener("propertychange",h,!1),P=null,M=null,N=null,D=null)}function h(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==N&&(N=t,r(e))}}function f(e,t){if("topInput"===e)return t}function p(e,t,n){"topFocus"===e?(d(),c(t,n)):"topBlur"===e&&d()}function v(e,t){if(("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)&&P&&P.value!==N)return N=P.value,M}function m(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function y(e,t){if("topClick"===e)return t}function g(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var i=""+t.value;t.getAttribute("value")!==i&&t.setAttribute("value",i)}}}var b=n(106),_=n(107),w=n(23),x=n(16),T=n(39),E=n(45),C=n(218),O=n(219),S=n(351),k={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},P=null,M=null,N=null,D=null,I=!1;w.canUseDOM&&(I=O("change")&&(!document.documentMode||document.documentMode>8));var L=!1;w.canUseDOM&&(L=O("input")&&(!document.documentMode||document.documentMode>11));var A={get:function(){return D.get.call(this)},set:function(e){N=""+e,D.set.call(this,e)}},R={eventTypes:k,extractEvents:function(e,t,n,r){var o,a,s=t?x.getNodeFromInstance(t):window;if(i(s)?I?o=u:a=l:S(s)?L?o=f:(o=v,a=p):m(s)&&(o=y),o){var c=o(e,t);if(c){var d=E.getPooled(k.change,c,n,r);return d.type="change",_.accumulateTwoPhaseDispatches(d),d}}a&&a(e,s,t),"topBlur"===e&&g(t,s)}};e.exports=R},function(e,t,n){"use strict";var i=n(12),r=n(81),o=n(23),a=n(507),s=n(31),u=(n(9),{dangerouslyReplaceNodeWithMarkup:function(e,t){if(o.canUseDOM?void 0:i("56"),t?void 0:i("57"),"HTML"===e.nodeName?i("58"):void 0,"string"==typeof t){var n=a(t,s)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}});e.exports=u},function(e,t){"use strict";var n=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=n},function(e,t,n){"use strict";var i=n(107),r=n(16),o=n(140),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var u;if(s.window===s)u=s;else{var l=s.ownerDocument;u=l?l.defaultView||l.parentWindow:window}var c,d;if("topMouseOut"===e){c=t;var h=n.relatedTarget||n.toElement;d=h?r.getClosestInstanceFromNode(h):null}else c=null,d=t;if(c===d)return null;var f=null==c?u:r.getNodeFromInstance(c),p=null==d?u:r.getNodeFromInstance(d),v=o.getPooled(a.mouseLeave,c,n,s);v.type="mouseleave",v.target=f,v.relatedTarget=p;var m=o.getPooled(a.mouseEnter,d,n,s);return m.type="mouseenter",m.target=p,m.relatedTarget=f,i.accumulateEnterLeaveDispatches(v,m,c,d),[v,m]}};e.exports=s},function(e,t,n){"use strict";function i(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var r=n(15),o=n(64),a=n(349); +r(i.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,i=n.length,r=this.getText(),o=r.length;for(e=0;e1?1-t:void 0;return this._fallbackText=r.slice(e,s),this._fallbackText}}),o.addPoolingTo(i),e.exports=i},function(e,t,n){"use strict";var i=n(82),r=i.injection.MUST_USE_PROPERTY,o=i.injection.HAS_BOOLEAN_VALUE,a=i.injection.HAS_NUMERIC_VALUE,s=i.injection.HAS_POSITIVE_NUMERIC_VALUE,u=i.injection.HAS_OVERLOADED_BOOLEAN_VALUE,l={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+i.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:o,allowTransparency:0,alt:0,as:0,async:o,autoComplete:0,autoPlay:o,capture:o,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:r|o,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:o,coords:0,crossOrigin:0,data:0,dateTime:0,default:o,defer:o,dir:0,disabled:o,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:o,formTarget:0,frameBorder:0,headers:0,height:0,hidden:o,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:o,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:r|o,muted:r|o,name:0,nonce:0,noValidate:o,open:o,optimum:0,pattern:0,placeholder:0,playsInline:o,poster:0,preload:0,profile:0,radioGroup:0,readOnly:o,referrerPolicy:0,rel:0,required:o,reversed:o,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:o,scrolling:0,seamless:o,selected:r|o,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:o,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){return null==t?e.removeAttribute("value"):void("number"!==e.type||e.hasAttribute("value")===!1?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t))}}};e.exports=l},function(e,t,n){(function(t){"use strict";function i(e,t,n,i){var r=void 0===e[n];null!=t&&r&&(e[n]=o(t,!0))}var r=n(83),o=n(350),a=(n(210),n(220)),s=n(353),u=(n(10),{instantiateChildren:function(e,t,n,r){if(null==e)return null;var o={};return s(e,i,o),o},updateChildren:function(e,t,n,i,s,u,l,c,d){if(t||e){var h,f;for(h in t)if(t.hasOwnProperty(h)){f=e&&e[h];var p=f&&f._currentElement,v=t[h];if(null!=f&&a(p,v))r.receiveComponent(f,v,s,c),t[h]=f;else{f&&(i[h]=r.getHostNode(f),r.unmountComponent(f,!1));var m=o(v,!0);t[h]=m;var y=r.mountComponent(m,s,u,l,c,d);n.push(y)}}for(h in e)!e.hasOwnProperty(h)||t&&t.hasOwnProperty(h)||(f=e[h],i[h]=r.getHostNode(f),r.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];r.unmountComponent(i,t)}}});e.exports=u}).call(t,n(199))},function(e,t,n){"use strict";var i=n(206),r=n(787),o={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:i.dangerouslyReplaceNodeWithMarkup};e.exports=o},function(e,t,n){"use strict";function i(e){}function r(e,t){}function o(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}var s=n(12),u=n(15),l=n(84),c=n(212),d=n(46),h=n(213),f=n(108),p=(n(32),n(344)),v=n(83),m=n(92),y=(n(9),n(168)),g=n(220),b=(n(10),{ImpureClass:0,PureClass:1,StatelessFunctional:2});i.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return r(e,t),t};var _=1,w={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(e,t,n,u){this._context=u,this._mountOrder=_++,this._hostParent=t,this._hostContainerInfo=n;var c,d=this._currentElement.props,h=this._processContext(u),p=this._currentElement.type,v=e.getUpdateQueue(),y=o(p),g=this._constructComponent(y,d,h,v);y||null!=g&&null!=g.render?a(p)?this._compositeType=b.PureClass:this._compositeType=b.ImpureClass:(c=g,r(p,c),null===g||g===!1||l.isValidElement(g)?void 0:s("105",p.displayName||p.name||"Component"),g=new i(p),this._compositeType=b.StatelessFunctional);g.props=d,g.context=h,g.refs=m,g.updater=v,this._instance=g,f.set(g,this);var w=g.state;void 0===w&&(g.state=w=null),"object"!=typeof w||Array.isArray(w)?s("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var x;return x=g.unstable_handleError?this.performInitialMountWithErrorHandling(c,t,n,e,u):this.performInitialMount(c,t,n,e,u),g.componentDidMount&&e.getReactMountReady().enqueue(g.componentDidMount,g),x},_constructComponent:function(e,t,n,i){return this._constructComponentWithoutOwner(e,t,n,i)},_constructComponentWithoutOwner:function(e,t,n,i){var r=this._currentElement.type;return e?new r(t,n,i):r(t,n,i)},performInitialMountWithErrorHandling:function(e,t,n,i,r){var o,a=i.checkpoint();try{o=this.performInitialMount(e,t,n,i,r)}catch(s){i.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=i.checkpoint(),this._renderedComponent.unmountComponent(!0),i.rollback(a),o=this.performInitialMount(e,t,n,i,r)}return o},performInitialMount:function(e,t,n,i,r){var o=this._instance,a=0;o.componentWillMount&&(o.componentWillMount(),this._pendingStateQueue&&(o.state=this._processPendingState(o.props,o.context))),void 0===e&&(e=this._renderValidatedComponent());var s=p.getType(e);this._renderedNodeType=s;var u=this._instantiateReactComponent(e,s!==p.EMPTY);this._renderedComponent=u;var l=v.mountComponent(u,i,t,n,this._processChildContext(r),a);return l},getHostNode:function(){return v.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";h.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else t.componentWillUnmount();this._renderedComponent&&(v.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return m;var i={};for(var r in n)i[r]=e[r];return i},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t,n=this._currentElement.type,i=this._instance;if(i.getChildContext&&(t=i.getChildContext()),t){"object"!=typeof n.childContextTypes?s("107",this.getName()||"ReactCompositeComponent"):void 0;for(var r in t)r in n.childContextTypes?void 0:s("108",this.getName()||"ReactCompositeComponent",r);return u({},e,t)}return e},_checkContextTypes:function(e,t,n){},receiveComponent:function(e,t,n){var i=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(t,i,e,r,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?v.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,i,r){var o=this._instance;null==o?s("136",this.getName()||"ReactCompositeComponent"):void 0;var a,u=!1;this._context===r?a=o.context:(a=this._processContext(r),u=!0);var l=t.props,c=n.props;t!==n&&(u=!0),u&&o.componentWillReceiveProps&&o.componentWillReceiveProps(c,a);var d=this._processPendingState(c,a),h=!0;this._pendingForceUpdate||(o.shouldComponentUpdate?h=o.shouldComponentUpdate(c,d,a):this._compositeType===b.PureClass&&(h=!y(l,c)||!y(o.state,d))),this._updateBatchNumber=null,h?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,d,a,e,r)):(this._currentElement=n,this._context=r,o.props=c,o.state=d,o.context=a)},_processPendingState:function(e,t){var n=this._instance,i=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!i)return n.state;if(r&&1===i.length)return i[0];for(var o=u({},r?i[0]:n.state),a=r?1:0;a=0||null!=t.is}function p(e){var t=e.type;h(t),this._currentElement=e,this._tag=t.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 v=n(12),m=n(15),y=n(770),g=n(772),b=n(81),_=n(207),w=n(82),x=n(336),T=n(106),E=n(208),C=n(139),O=n(337),S=n(16),k=n(788),P=n(789),M=n(338),N=n(792),D=(n(32),n(801)),I=n(806),L=(n(31),n(142)),A=(n(9),n(219),n(168),n(221),n(10),O),R=T.deleteListener,j=S.getNodeFromInstance,F=C.listenTo,B=E.registrationNameModules,z={string:!0,number:!0},H="style",G="__html",U={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},W=11,V={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"},Y={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},Q={listing:!0,pre:!0,textarea:!0},q=m({menuitem:!0},Y),K=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,X={},$={}.hasOwnProperty,Z=1;p.displayName="ReactDOMComponent",p.Mixin={mountComponent:function(e,t,n,i){this._rootNodeID=Z++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var o=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},e.getReactMountReady().enqueue(c,this);break;case"input":k.mountWrapper(this,o,t),o=k.getHostProps(this,o),e.getReactMountReady().enqueue(c,this);break;case"option":P.mountWrapper(this,o,t),o=P.getHostProps(this,o);break;case"select":M.mountWrapper(this,o,t),o=M.getHostProps(this,o),e.getReactMountReady().enqueue(c,this);break;case"textarea":N.mountWrapper(this,o,t),o=N.getHostProps(this,o),e.getReactMountReady().enqueue(c,this)}r(this,o);var a,d;null!=t?(a=t._namespaceURI,d=t._tag):n._tag&&(a=n._namespaceURI,d=n._tag),(null==a||a===_.svg&&"foreignobject"===d)&&(a=_.html),a===_.html&&("svg"===this._tag?a=_.svg:"math"===this._tag&&(a=_.mathml)),this._namespaceURI=a;var h;if(e.useCreateElement){var f,p=n._ownerDocument;if(a===_.html)if("script"===this._tag){var v=p.createElement("div"),m=this._currentElement.type;v.innerHTML="<"+m+">",f=v.removeChild(v.firstChild)}else f=o.is?p.createElement(this._currentElement.type,o.is):p.createElement(this._currentElement.type);else f=p.createElementNS(a,this._currentElement.type);S.precacheNode(this,f),this._flags|=A.hasCachedChildNodes,this._hostParent||x.setAttributeForRoot(f),this._updateDOMProperties(null,o,e);var g=b(f);this._createInitialChildren(e,o,i,g),h=g}else{var w=this._createOpenTagMarkupAndPutListeners(e,o),T=this._createContentMarkup(e,o,i);h=!T&&Y[this._tag]?w+"/>":w+">"+T+""}switch(this._tag){case"input":e.getReactMountReady().enqueue(s,this),o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(u,this),o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"select":o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"button":o.autoFocus&&e.getReactMountReady().enqueue(y.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(l,this)}return h},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(null!=r)if(B.hasOwnProperty(i))r&&o(this,i,r,e);else{i===H&&(r&&(r=this._previousStyleCopy=m({},t.style)),r=g.createMarkupForStyles(r,this));var a=null;null!=this._tag&&f(this._tag,t)?U.hasOwnProperty(i)||(a=x.createMarkupForCustomAttribute(i,r)):a=x.createMarkupForProperty(i,r),a&&(n+=" "+a)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+x.createMarkupForRoot()),n+=" "+x.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var i="",r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&(i=r.__html);else{var o=z[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)i=L(o);else if(null!=a){var s=this.mountChildren(a,e,n);i=s.join("")}}return Q[this._tag]&&"\n"===i.charAt(0)?"\n"+i:i},_createInitialChildren:function(e,t,n,i){var r=t.dangerouslySetInnerHTML;if(null!=r)null!=r.__html&&b.queueHTML(i,r.__html);else{var o=z[typeof t.children]?t.children:null,a=null!=o?null:t.children;if(null!=o)""!==o&&b.queueText(i,o);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;u"},receiveComponent:function(){},getHostNode:function(){return o.getNodeFromInstance(this)},unmountComponent:function(){o.uncacheNode(this)}}),e.exports=a},function(e,t){"use strict";var n={useCreateElement:!0,useFiber:!1};e.exports=n},function(e,t,n){"use strict";var i=n(206),r=n(16),o={dangerouslyProcessChildrenUpdates:function(e,t){var n=r.getNodeFromInstance(e);i.processUpdates(n,t)}};e.exports=o},function(e,t,n){"use strict";function i(){this._rootNodeID&&h.updateWrapper(this)}function r(e){var t="checkbox"===e.type||"radio"===e.type;return t?null!=e.checked:null!=e.value}function o(e){var t=this._currentElement.props,n=l.executeOnChange(t,e);d.asap(i,this);var r=t.name;if("radio"===t.type&&null!=r){for(var o=c.getNodeFromInstance(this),s=o;s.parentNode;)s=s.parentNode;for(var u=s.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),h=0;ht.end?(n=t.end,i=t.start):(n=t.start,i=t.end),r.moveToElementText(e),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",i-n),r.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),i=e[c()].length,r=Math.min(t.start,i),o=void 0===t.end?r:Math.min(t.end,i);if(!n.extend&&r>o){var a=o;o=r,r=a}var s=l(e,r),u=l(e,o);if(s&&u){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),r>o?(n.addRange(d),n.extend(u.node,u.offset)):(d.setEnd(u.node,u.offset),n.addRange(d))}}}var u=n(23),l=n(828),c=n(349),d=u.canUseDOM&&"selection"in document&&!("getSelection"in window),h={getOffsets:d?r:o,setOffsets:d?a:s};e.exports=h},function(e,t,n){"use strict";var i=n(12),r=n(15),o=n(206),a=n(81),s=n(16),u=n(142),l=(n(9),n(221),function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});r(l.prototype,{mountComponent:function(e,t,n,i){var r=n._idCounter++,o=" react-text: "+r+" ",l=" /react-text ";if(this._domID=r,this._hostParent=t,e.useCreateElement){var c=n._ownerDocument,d=c.createComment(o),h=c.createComment(l),f=a(c.createDocumentFragment());return a.queueChild(f,a(d)),this._stringText&&a.queueChild(f,a(c.createTextNode(this._stringText))),a.queueChild(f,a(h)),s.precacheNode(this,d),this._closingComment=h,f}var p=u(this._stringText);return e.renderToStaticMarkup?p:""+p+""},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var i=this.getHostNode();o.replaceDelimitedText(i[0],i[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=s.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n?i("67",this._domID):void 0,8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),e.exports=l},function(e,t,n){"use strict";function i(){this._rootNodeID&&c.updateWrapper(this)}function r(e){var t=this._currentElement.props,n=s.executeOnChange(t,e);return l.asap(i,this),n}var o=n(12),a=n(15),s=n(211),u=n(16),l=n(39),c=(n(9),n(10),{getHostProps:function(e,t){null!=t.dangerouslySetInnerHTML?o("91"):void 0;var n=a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return n},mountWrapper:function(e,t){var n=s.getValue(t),i=n;if(null==n){var a=t.defaultValue,u=t.children;null!=u&&(null!=a?o("92"):void 0,Array.isArray(u)&&(u.length<=1?void 0:o("93"),u=u[0]),a=""+u),null==a&&(a=""),i=a}e._wrapperState={initialValue:""+i,listeners:null,onChange:r.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=u.getNodeFromInstance(e),i=s.getValue(t);if(null!=i){var r=""+i;r!==n.value&&(n.value=r),null==t.defaultValue&&(n.defaultValue=r)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=u.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}});e.exports=c},function(e,t,n){"use strict";function i(e,t){"_hostNode"in e?void 0:u("33"),"_hostNode"in t?void 0:u("33");for(var n=0,i=e;i;i=i._hostParent)n++;for(var r=0,o=t;o;o=o._hostParent)r++;for(;n-r>0;)e=e._hostParent,n--;for(;r-n>0;)t=t._hostParent,r--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function r(e,t){"_hostNode"in e?void 0:u("35"),"_hostNode"in t?void 0:u("35");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function o(e){return"_hostNode"in e?void 0:u("36"),e._hostParent}function a(e,t,n){for(var i=[];e;)i.push(e),e=e._hostParent;var r;for(r=i.length;r-- >0;)t(i[r],"captured",n);for(r=0;r0;)n(u[l],"captured",o)}var u=n(12);n(9);e.exports={isAncestor:r,getLowestCommonAncestor:i,getParentInstance:o,traverseTwoPhase:a,traverseEnterLeave:s}},function(e,t,n){"use strict";function i(){this.reinitializeTransaction()}var r=n(15),o=n(39),a=n(141),s=n(31),u={initialize:s,close:function(){h.isBatchingUpdates=!1}},l={initialize:s,close:o.flushBatchedUpdates.bind(o)},c=[l,u];r(i.prototype,a,{getTransactionWrappers:function(){return c}});var d=new i,h={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,i,r,o){ +var a=h.isBatchingUpdates;return h.isBatchingUpdates=!0,a?e(t,n,i,r,o):d.perform(e,null,t,n,i,r,o)}};e.exports=h},function(e,t,n){"use strict";function i(){T||(T=!0,g.EventEmitter.injectReactEventListener(y),g.EventPluginHub.injectEventPluginOrder(s),g.EventPluginUtils.injectComponentTree(h),g.EventPluginUtils.injectTreeTraversal(p),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:x,EnterLeaveEventPlugin:u,ChangeEventPlugin:a,SelectEventPlugin:w,BeforeInputEventPlugin:o}),g.HostComponent.injectGenericComponentClass(d),g.HostComponent.injectTextComponentClass(v),g.DOMProperty.injectDOMPropertyConfig(r),g.DOMProperty.injectDOMPropertyConfig(l),g.DOMProperty.injectDOMPropertyConfig(_),g.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),g.Updates.injectReconcileTransaction(b),g.Updates.injectBatchingStrategy(m),g.Component.injectEnvironment(c))}var r=n(769),o=n(771),a=n(773),s=n(775),u=n(776),l=n(778),c=n(780),d=n(783),h=n(16),f=n(785),p=n(793),v=n(791),m=n(794),y=n(798),g=n(799),b=n(804),_=n(809),w=n(810),x=n(811),T=!1;e.exports={inject:i}},366,function(e,t,n){"use strict";function i(e){r.enqueueEvents(e),r.processEventQueue(!1)}var r=n(106),o={handleTopLevel:function(e,t,n,o){var a=r.extractEvents(e,t,n,o);i(a)}};e.exports=o},function(e,t,n){"use strict";function i(e){for(;e._hostParent;)e=e._hostParent;var t=d.getNodeFromInstance(e),n=t.parentNode;return d.getClosestInstanceFromNode(n)}function r(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function o(e){var t=f(e.nativeEvent),n=d.getClosestInstanceFromNode(t),r=n;do e.ancestors.push(r),r=r&&i(r);while(r);for(var o=0;o/,o=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=i(e);return o.test(e)?e:e.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var r=i(e);return r===n}};e.exports=a},function(e,t,n){"use strict";function i(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function r(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:h.getHostNode(e),toIndex:n,afterNode:t}}function o(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(e,t){return t&&(e=e||[],e.push(t)),e}function l(e,t){d.processChildrenUpdates(e,t)}var c=n(12),d=n(212),h=(n(108),n(32),n(46),n(83)),f=n(779),p=(n(31),n(825)),v=(n(9),{Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return f.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,i,r,o){var a,s=0;return a=p(t,s),f.updateChildren(e,a,n,i,r,this,this._hostContainerInfo,o,s),a},mountChildren:function(e,t,n){var i=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=i;var r=[],o=0;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a],u=0,l=h.mountComponent(s,t,this,this._hostContainerInfo,n,u);s._mountIndex=o++,r.push(l)}return r},updateTextContent:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var i=[s(e)];l(this,i)},updateMarkup:function(e){var t=this._renderedChildren;f.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&c("118");var i=[a(e)];l(this,i)},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var i=this._renderedChildren,r={},o=[],a=this._reconcilerUpdateChildren(i,e,o,r,t,n);if(a||i){var s,c=null,d=0,f=0,p=0,v=null;for(s in a)if(a.hasOwnProperty(s)){var m=i&&i[s],y=a[s];m===y?(c=u(c,this.moveChild(m,v,d,f)),f=Math.max(m._mountIndex,f),m._mountIndex=d):(m&&(f=Math.max(m._mountIndex,f)),c=u(c,this._mountChildAtIndex(y,o[p],v,d,t,n)),p++),d++,v=h.getHostNode(y)}for(s in r)r.hasOwnProperty(s)&&(c=u(c,this._unmountChild(i[s],r[s])));c&&l(this,c),this._renderedChildren=a}},unmountChildren:function(e){var t=this._renderedChildren;f.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,i){if(e._mountIndex=t)return{node:r,offset:t-o};o=a}r=n(i(r))}}e.exports=r},function(e,t,n){"use strict";function i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function r(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var o=n(23),a={animationend:i("Animation","AnimationEnd"),animationiteration:i("Animation","AnimationIteration"),animationstart:i("Animation","AnimationStart"),transitionend:i("Transition","TransitionEnd")},s={},u={};o.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=r},function(e,t,n){"use strict";function i(e){return'"'+r(e)+'"'}var r=n(142);e.exports=i},function(e,t,n){"use strict";var i=n(343);e.exports=i.renderSubtreeIntoContainer},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=t.hideSiblingNodes,i=void 0===n||n,o=t.handleContainerOverflow,a=void 0===o||o;r(this,e),this.hideSiblingNodes=i,this.handleContainerOverflow=a, +this.modals=[],this.containers=[],this.data=[]}return l(e,[{key:"add",value:function(e,t,n){var i=this.modals.indexOf(e),r=this.containers.indexOf(t);if(i!==-1)return i;if(i=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&(0,g.hideSiblings)(t,e.mountNode),r!==-1)return this.data[r].modals.push(e),i;var o={modals:[e],classes:n?n.split(/\s+/):[],overflowing:(0,y.default)(t)};return this.handleContainerOverflow&&s(o,t),o.classes.forEach(f.default.addClass.bind(null,t)),this.containers.push(t),this.data.push(o),i}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(t!==-1){var n=a(this.data,e),i=this.data[n],r=this.containers[n];i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(t,1),0===i.modals.length?(i.classes.forEach(f.default.removeClass.bind(null,r)),this.handleContainerOverflow&&u(i,r),this.hideSiblingNodes&&(0,g.showSiblings)(r,e.mountNode),this.containers.splice(n,1),this.data.splice(n,1)):this.hideSiblingNodes&&(0,g.ariaHidden)(!1,i.modals[i.modals.length-1].mountNode)}}},{key:"isTopModal",value:function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}]),e}();t.default=b,e.exports=t.default},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t1?n-1:0),r=1;r=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;ts?s-l:0}function a(e,t,n,i){var o=r(n),a=o.width,s=e-i,u=e+i+t;return s<0?-s:u>a?a-u:0}function s(e,t,n,i,r){var s="BODY"===i.tagName?(0,l.default)(n):(0,d.default)(n,i),u=(0,l.default)(t),c=u.height,h=u.width,f=void 0,p=void 0,v=void 0,m=void 0;if("left"===e||"right"===e){p=s.top+(s.height-c)/2,f="left"===e?s.left-h:s.left+s.width;var y=o(p,c,i,r);p+=y,m=50*(1-2*y/c)+"%",v=void 0}else{if("top"!==e&&"bottom"!==e)throw new Error('calcOverlayPosition(): No such placement of "'+e+'" found.');f=s.left+(s.width-h)/2,p="top"===e?s.top-c:s.top+s.height;var g=a(f,h,i,r);f+=g,v=50*(1-2*g/h)+"%",m=void 0}return{positionLeft:f,positionTop:p,arrowOffsetLeft:v,arrowOffsetTop:m}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var u=n(251),l=i(u),c=n(484),d=i(c),h=n(252),f=i(h),p=n(110),v=i(p);e.exports=t.default},function(e,t){"use strict";function n(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}function i(e,t){s(e,t,function(e){return n(!0,e)})}function r(e,t){s(e,t,function(e){return n(!1,e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.ariaHidden=n,t.hideSiblings=i,t.showSiblings=r;var o=["template","script","style"],a=function(e){var t=e.nodeType,n=e.tagName;return 1===t&&o.indexOf(n.toLowerCase())===-1},s=function(e,t,n){t=[].concat(t),[].forEach.call(e.children,function(e){t.indexOf(e)===-1&&a(e)&&n(e)})}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0,t.default=void 0;var s=n(1),u=n(314),l=i(u),c=n(361),d=n(224),h=(i(d),function(e){function t(n,i){r(this,t);var a=o(this,e.call(this,n,i));return a.store=n.store,a}return a(t,e),t.prototype.getChildContext=function(){return{store:this.store,storeSubscription:null}},t.prototype.render=function(){return s.Children.only(this.props.children)},t}(s.Component));t.default=h,h.propTypes={store:c.storeShape.isRequired,children:l.default.element.isRequired},h.childContextTypes={store:c.storeShape.isRequired,storeSubscription:c.subscriptionShape},h.displayName="Provider"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t,n){for(var i=t.length-1;i>=0;i--){var r=t[i](e);if(r)return r}return function(t,i){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+i.wrappedComponentName+".")}}function a(e,t){return e===t}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?c.default:t,i=e.mapStateToPropsFactories,s=void 0===i?m.default:i,l=e.mapDispatchToPropsFactories,d=void 0===l?p.default:l,f=e.mergePropsFactories,v=void 0===f?g.default:f,y=e.selectorFactory,b=void 0===y?_.default:y;return function(e,t,i){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=l.pure,f=void 0===c||c,p=l.areStatesEqual,m=void 0===p?a:p,y=l.areOwnPropsEqual,g=void 0===y?h.default:y,_=l.areStatePropsEqual,w=void 0===_?h.default:_,x=l.areMergedPropsEqual,T=void 0===x?h.default:x,E=r(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),C=o(e,s,"mapStateToProps"),O=o(t,d,"mapDispatchToProps"),S=o(i,v,"mergeProps");return n(b,u({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:C,initMapDispatchToProps:O,initMergeProps:S,pure:f,areStatesEqual:m,areOwnPropsEqual:g,areStatePropsEqual:w,areMergedPropsEqual:T},E))}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t,n,i){return function(r,o){return n(e(r,o),t(i,o),o)}}function a(e,t,n,i,r){function o(r,o){return p=r,v=o,m=e(p,v),y=t(i,v),g=n(m,y,v),f=!0,g}function a(){return m=e(p,v),t.dependsOnOwnProps&&(y=t(i,v)),g=n(m,y,v)}function s(){return e.dependsOnOwnProps&&(m=e(p,v)),t.dependsOnOwnProps&&(y=t(i,v)),g=n(m,y,v)}function u(){var t=e(p,v),i=!h(t,m);return m=t,i&&(g=n(m,y,v)),g}function l(e,t){var n=!d(t,v),i=!c(e,p);return p=e,v=t,n&&i?a():n?s():i?u():g}var c=r.areStatesEqual,d=r.areOwnPropsEqual,h=r.areStatePropsEqual,f=!1,p=void 0,v=void 0,m=void 0,y=void 0,g=void 0;return function(e,t){return f?l(e,t):o(e,t)}}function s(e,t){var n=t.initMapStateToProps,i=t.initMapDispatchToProps,s=t.initMergeProps,u=r(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),l=n(e,u),c=i(e,u),d=s(e,u),h=u.pure?a:o;return h(l,c,d,e,u)}t.__esModule=!0,t.impureFinalPropsSelectorFactory=o,t.pureFinalPropsSelectorFactory=a,t.default=s;var u=n(845);i(u)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){if(!e)throw new Error("Unexpected value for "+t+" in "+n+".");"mapStateToProps"!==t&&"mapDispatchToProps"!==t||e.hasOwnProperty("dependsOnOwnProps")||(0,s.default)("The selector for "+t+" of "+n+" did not specify a value for dependsOnOwnProps.")}function o(e,t,n,i){r(e,"mapStateToProps",i),r(t,"mapDispatchToProps",i),r(n,"mergeProps",i)}t.__esModule=!0,t.default=o;var a=n(224),s=i(a)},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){var e=[],t=[];return{clear:function(){t=r,e=r},notify:function(){for(var n=e=t,i=0;i=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t",e)}},x=function(){},T=function(e){function t(){var n,i,r;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),(0,c.default)(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,i=void 0,r=void 0;return u.default.Children.forEach(t,function(t){var o=t.props,a=o.path,s=o.exact,u=o.strict,l=o.from,c=a||l;null==i&&(r=t,i=c?(0,h.default)(n.pathname,{path:c,exact:s,strict:u}):e.match)}),i?u.default.cloneElement(r,{location:n,computedMatch:i}):null},t}(u.default.Component);f.contextTypes={router:s.PropTypes.shape({route:s.PropTypes.object.isRequired}).isRequired},f.propTypes={children:s.PropTypes.node,location:s.PropTypes.object},t.default=f},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){function i(e,t){for(var n,i=[],r=0,o=0,a="",s=t&&t.delimiter||"/";null!=(n=g.exec(e));){var c=n[0],d=n[1],h=n.index;if(a+=e.slice(o,h),o=h+c.length,d)a+=d[1];else{var f=e[o],p=n[2],v=n[3],m=n[4],y=n[5],b=n[6],_=n[7];a&&(i.push(a),a="");var w=null!=p&&null!=f&&f!==p,x="+"===b||"*"===b,T="?"===b||"*"===b,E=n[2]||s,C=m||y;i.push({name:v||r++,prefix:p||"",delimiter:E,optional:T,repeat:x,partial:w,asterisk:!!_,pattern:C?l(C):_?".*":"[^"+u(E)+"]+?"})}}return o-1?t:e}function f(e,t){t=t||{};var n=t.body;if(e instanceof f){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new r(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new r(t.headers)),this.method=h(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function p(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}function v(e){var t=new r;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}}),t}function m(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new r(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var y={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(y.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},_=ArrayBuffer.isView||function(e){return e&&g.indexOf(Object.prototype.toString.call(e))>-1};r.prototype.append=function(e,i){e=t(e),i=n(i);var r=this.map[e];this.map[e]=r?r+","+i:i},r.prototype.delete=function(e){delete this.map[t(e)]},r.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},r.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},r.prototype.set=function(e,i){this.map[t(e)]=n(i)},r.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},r.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),i(e)},r.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),i(e)},r.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),i(e)},y.iterable&&(r.prototype[Symbol.iterator]=r.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this,{body:this._bodyInit})},d.call(f.prototype),d.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new r(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];m.redirect=function(e,t){if(x.indexOf(t)===-1)throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.Headers=r,e.Request=f,e.Response=m,e.fetch=function(e,t){return new Promise(function(n,i){var r=new f(e,t),o=new XMLHttpRequest;o.onload=function(){var e={status:o.status,statusText:o.statusText,headers:v(o.getAllResponseHeaders()||"")};e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL");var t="response"in o?o.response:o.responseText;n(new m(t,e))},o.onerror=function(){i(new TypeError("Network request failed"))},o.ontimeout=function(){i(new TypeError("Network request failed"))},o.open(r.method,r.url,!0),"include"===r.credentials&&(o.withCredentials=!0),"responseType"in o&&y.blob&&(o.responseType="blob"),r.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send("undefined"==typeof r._bodyInit?null:r._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},210,[907,86],function(e,t,n){"use strict";function i(e){return(""+e).replace(_,"$&/")}function r(e,t){this.func=e,this.context=t,this.count=0}function o(e,t,n){var i=e.func,r=e.context;i.call(r,t,e.count++)}function a(e,t,n){if(null==e)return e;var i=r.getPooled(t,n);y(e,o,i),r.release(i)}function s(e,t,n,i){this.result=e,this.keyPrefix=t,this.func=n,this.context=i,this.count=0}function u(e,t,n){var r=e.result,o=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?l(u,r,n,m.thatReturnsArgument):null!=u&&(v.isValidElement(u)&&(u=v.cloneAndReplaceKey(u,o+(!u.key||t&&t.key===u.key?"":i(u.key)+"/")+n)),r.push(u))}function l(e,t,n,r,o){var a="";null!=n&&(a=i(n)+"/");var l=s.getPooled(t,a,r,o);y(e,u,l),s.release(l)}function c(e,t,n){if(null==e)return e;var i=[];return l(e,i,null,t,n),i}function d(e,t,n){return null}function h(e,t){return y(e,d,null)}function f(e){var t=[];return l(e,t,null,m.thatReturnsArgument),t}var p=n(872),v=n(85),m=n(31),y=n(883),g=p.twoArgumentPooler,b=p.fourArgumentPooler,_=/\/+/g;r.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},p.addPoolingTo(r,g),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},p.addPoolingTo(s,b);var w={forEach:a,map:c,mapIntoWithKeyPrefixInternal:l,count:h,toArray:f};e.exports=w},function(e,t,n){"use strict";function i(e){return e}function r(e,t){var n=_.hasOwnProperty(t)?_[t]:null;x.hasOwnProperty(t)&&("OVERRIDE_BASE"!==n?h("73",t):void 0),e&&("DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n?h("74",t):void 0)}function o(e,t){if(t){"function"==typeof t?h("75"):void 0,v.isValidElement(t)?h("76"):void 0;var n=e.prototype,i=n.__reactAutoBindPairs;t.hasOwnProperty(g)&&w.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==g){var a=t[o],s=n.hasOwnProperty(o);if(r(s,o),w.hasOwnProperty(o))w[o](e,a);else{var c=_.hasOwnProperty(o),d="function"==typeof a,f=d&&!c&&!s&&t.autobind!==!1;if(f)i.push(o,a),n[o]=a;else if(s){var p=_[o];!c||"DEFINE_MANY_MERGED"!==p&&"DEFINE_MANY"!==p?h("77",p,o):void 0,"DEFINE_MANY_MERGED"===p?n[o]=u(n[o],a):"DEFINE_MANY"===p&&(n[o]=l(n[o],a))}else n[o]=a}}}else;}function a(e,t){if(t)for(var n in t){var i=t[n];if(t.hasOwnProperty(n)){var r=n in w;r?h("78",n):void 0;var o=n in e;o?h("79",n):void 0,e[n]=i}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:h("80");for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?h("81",n):void 0,e[n]=t[n]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),i=t.apply(this,arguments);if(null==n)return i;if(null==i)return n;var r={};return s(r,n),s(r,i),r}}function l(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function c(e,t){var n=t.bind(e);return n}function d(e){for(var t=e.__reactAutoBindPairs,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.stateReconciler||a;return function(t){return function(n,i,r){var o=t(e(n),i,r);return u({},o,{replaceReducer:function(t){return o.replaceReducer(e(t))}})}}}function o(e){var t=e.slice(1);t.length>0&&console.log("\n redux-persist/autoRehydrate: %d actions were fired before rehydration completed. This can be a symptom of a race\n condition where the rehydrate action may overwrite the previously affected state. Consider running these actions\n after rehydration:\n ",t.length,t)}function a(e,t,n,i){var r=u({},n);return Object.keys(t).forEach(function(o){if(e.hasOwnProperty(o)){if("object"===s(e[o])&&!t[o])return void(i&&console.log("redux-persist/autoRehydrate: sub state for key `%s` is falsy but initial state is an object, skipping autoRehydrate.",o));if(e[o]!==n[o])return i&&console.log("redux-persist/autoRehydrate: sub state for key `%s` modified, skipping autoRehydrate.",o),void(r[o]=n[o]);(0,d.default)(t[o])&&(0,d.default)(e[o])?r[o]=u({},e[o],t[o]):r[o]=t[o],i&&console.log("redux-persist/autoRehydrate: key `%s`, rehydrated to ",o,r[o])}}),r}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=i.whitelist||null,o=i.blacklist||null;return{in:function(t,i){return!n(i)&&e?e(t,i):t},out:function(e,i){return!n(i)&&t?t(e,i):e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.storages=t.purgeStoredState=t.persistStore=t.getStoredState=t.createTransform=t.createPersistor=t.autoRehydrate=void 0;var r=n(884),o=i(r),a=n(368),s=i(a),u=n(885),l=i(u),c=n(370),d=i(c),h=n(887),f=i(h),p=n(371),v=i(p),m=function(e,t,n){console.error('redux-persist: this method of importing storages has been removed. instead use `import { asyncLocalStorage } from "redux-persist/storages"`'),"function"==typeof e&&e(),"function"==typeof t&&t(),"function"==typeof n&&n()},y={getAllKeys:m,getItem:m,setItem:m,removeItem:m},g={asyncLocalStorage:y,asyncSessionStorage:y};t.autoRehydrate=o.default,t.createPersistor=s.default,t.createTransform=l.default,t.getStoredState=d.default,t.persistStore=f.default,t.purgeStoredState=v.default,t.storages=g},function(e,t,n){(function(e,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){function t(e,t){u.resume(),i&&i(e,t)}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],r=!n.skipRestore,o=null,u=(0,h.default)(e,n);return u.pause(),f(r?function(){(0,c.default)(n,function(n,i){o&&("*"===o?i={}:o.forEach(function(e){return delete i[e]})),e.dispatch(a(i,n)),t(n,i)})}:t),s({},u,{purge:function(e){return o=e||"*",u.purge(e)}})}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:u.REHYDRATE,payload:e,error:t}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t=0;h--){var f=o[h];"."===f?i(o,h):".."===f?(i(o,h),d++):d&&(i(o,h),d--)}if(!u)for(;d--;d)o.unshift("..");!u||""===o[0]||o[0]&&n(o[0])||o.unshift("");var p=o.join("/");return l&&"/"!==p.substr(-1)&&(p+="/"),p};e.exports=r},function(e,t){!function(){"use strict";var t="undefined"!=typeof e&&e.exports,n="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,i=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,i=t.length,r={};n2?a-2:0),l=2;l=15||0===g[0]&&g[1]>=13?e:e.type}function a(e,t){var n=u(t);return n&&!s(e,t)&&s(e,n)?e[n].value:e[t]}function s(e,t){return void 0!==e[t]}function u(e){return"value"===e?"valueLink":"checked"===e?"checkedLink":null}function l(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function c(e,t,n){return function(){for(var i=arguments.length,r=Array(i),o=0;ol)&&void 0===e.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=d,c=h,u=a,d+=122192928e5;var p=(1e4*(268435455&d)+h)%4294967296;r[i++]=p>>>24&255,r[i++]=p>>>16&255,r[i++]=p>>>8&255,r[i++]=255&p;var v=d/4294967296*1e4&268435455;r[i++]=v>>>8&255,r[i++]=255&v,r[i++]=v>>>24&15|16,r[i++]=v>>>16&255,r[i++]=a>>>8|128,r[i++]=255&a;for(var m=e.node||s,y=0;y<6;++y)r[i+y]=m[y];return t?t:o(r)}var r=n(377),o=n(376),a=r(),s=[1|a[0],a[1],a[2],a[3],a[4],a[5]],u=16383&(a[6]<<8|a[7]),l=0,c=0;e.exports=i},function(e,t,n){function i(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null),e=e||{};var a=e.random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[i+s]=a[s];return t||o(a)}var r=n(377),o=n(376);e.exports=i},function(e,t){"use strict";t.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function e(t,i){if(t===i)return!0;if(null==t||null==i)return!1;if(Array.isArray(t))return!(!Array.isArray(i)||t.length!==i.length)&&t.every(function(t,n){return e(t,i[n])});var r="undefined"==typeof t?"undefined":n(t),o="undefined"==typeof i?"undefined":n(i);if(r!==o)return!1;if("object"===r){var a=t.valueOf(),s=i.valueOf();if(a!==t||s!==i)return e(a,s);var u=Object.keys(t),l=Object.keys(i);return u.length===l.length&&u.every(function(n){return e(t[n],i[n])})}return!1};t.default=i},function(e,t,n){"use strict";!function(t,n){e.exports=n()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var i=n(1);i.extend(t,n(87)),i.extend(t,n(116)),i.extend(t,n(158))},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}var r=n(2),o=i(r),a=n(55),s=i(a),u=n(58),l=i(u),c=n(62),d=i(c),h=n(82),f=n(86);t.isNumber=function(e){return e instanceof Number||"number"==typeof e},t.recursiveDOMDelete=function(e){if(e)for(;e.hasChildNodes()===!0;)t.recursiveDOMDelete(e.firstChild),e.removeChild(e.firstChild)},t.giveRange=function(e,t,n,i){if(t==e)return.5;var r=1/(t-e);return Math.max(0,(i-e)*r)},t.isString=function(e){return e instanceof String||"string"==typeof e},t.isDate=function(e){if(e instanceof Date)return!0;if(t.isString(e)){var n=p.exec(e);if(n)return!0;if(!isNaN(Date.parse(e)))return!0}return!1},t.randomUUID=function(){return f.v4()},t.assignAllKeys=function(e,t){for(var n in e)e.hasOwnProperty(n)&&"object"!==(0,d.default)(e[n])&&(e[n]=t)},t.fillIfDefined=function(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var r in e)void 0!==n[r]&&("object"!==(0,d.default)(n[r])?void 0!==n[r]&&null!==n[r]||void 0===e[r]||i!==!0?e[r]=n[r]:delete e[r]:"object"===(0,d.default)(e[r])&&t.fillIfDefined(e[r],n[r],i))},t.protoExtend=function(e,t){for(var n=1;n3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o=2;o3&&void 0!==arguments[3]&&arguments[3];if(Array.isArray(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o in i)if(i.hasOwnProperty(o)&&e.indexOf(o)==-1)if(i[o]&&i[o].constructor===Object)void 0===n[o]&&(n[o]={}),n[o].constructor===Object?t.deepExtend(n[o],i[o]):null===i[o]&&void 0!==n[o]&&r===!0?delete n[o]:n[o]=i[o];else if(Array.isArray(i[o])){n[o]=[];for(var a=0;a=0&&(t="DOMMouseScroll"),e.addEventListener(t,n,i)):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n,i){e.removeEventListener?(void 0===i&&(i=!1),"mousewheel"===t&&navigator.userAgent.indexOf("Firefox")>=0&&(t="DOMMouseScroll"),e.removeEventListener(t,n,i)):e.detachEvent("on"+t,n)},t.preventDefault=function(e){e||(e=window.event),e.preventDefault?e.preventDefault():e.returnValue=!1},t.getTarget=function(e){e||(e=window.event);var t;return e.target?t=e.target:e.srcElement&&(t=e.srcElement),void 0!=t.nodeType&&3==t.nodeType&&(t=t.parentNode),t},t.hasParent=function(e,t){for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1},t.option={},t.option.asBoolean=function(e,t){return"function"==typeof e&&(e=e()),null!=e?0!=e:t||null},t.option.asNumber=function(e,t){return"function"==typeof e&&(e=e()),null!=e?Number(e)||t||null:t||null},t.option.asString=function(e,t){return"function"==typeof e&&(e=e()),null!=e?String(e):t||null},t.option.asSize=function(e,n){return"function"==typeof e&&(e=e()),t.isString(e)?e:t.isNumber(e)?e+"px":n||null},t.option.asElement=function(e,t){return"function"==typeof e&&(e=e()),e||t||null},t.hexToRGB=function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,n,i){return t+t+n+n+i+i});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null},t.overrideOpacity=function(e,n){if(e.indexOf("rgba")!=-1)return e;if(e.indexOf("rgb")!=-1){var i=e.substr(e.indexOf("(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+n+")"}var i=t.hexToRGB(e);return null==i?e:"rgba("+i.r+","+i.g+","+i.b+","+n+")"},t.RGBToHex=function(e,t,n){return"#"+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)},t.parseColor=function(e){var n;if(t.isString(e)===!0){if(t.isValidRGB(e)===!0){var i=e.substr(4).substr(0,e.length-5).split(",").map(function(e){return parseInt(e)});e=t.RGBToHex(i[0],i[1],i[2])}if(t.isValidHex(e)===!0){var r=t.hexToHSV(e),o={h:r.h,s:.8*r.s,v:Math.min(1,1.02*r.v)},a={h:r.h,s:Math.min(1,1.25*r.s),v:.8*r.v},s=t.HSVToHex(a.h,a.s,a.v),u=t.HSVToHex(o.h,o.s,o.v);n={background:e,border:s,highlight:{background:u,border:s},hover:{background:u,border:s}}}else n={background:e,border:e,highlight:{background:e,border:e},hover:{background:e,border:e}}}else n={},n.background=e.background||void 0,n.border=e.border||void 0,t.isString(e.highlight)?n.highlight={border:e.highlight,background:e.highlight}:(n.highlight={},n.highlight.background=e.highlight&&e.highlight.background||void 0,n.highlight.border=e.highlight&&e.highlight.border||void 0),t.isString(e.hover)?n.hover={border:e.hover,background:e.hover}:(n.hover={},n.hover.background=e.hover&&e.hover.background||void 0,n.hover.border=e.hover&&e.hover.border||void 0);return n},t.RGBToHSV=function(e,t,n){e/=255,t/=255,n/=255;var i=Math.min(e,Math.min(t,n)),r=Math.max(e,Math.max(t,n));if(i==r)return{h:0,s:0,v:i};var o=e==i?t-n:n==i?e-t:n-e,a=e==i?3:n==i?1:5,s=60*(a-o/(r-i))/360,u=(r-i)/r,l=r;return{h:s,s:u,v:l}};var v={split:function(e){var t={};return e.split(";").forEach(function(e){if(""!=e.trim()){var n=e.split(":"),i=n[0].trim(),r=n[1].trim();t[i]=r}}),t},join:function(e){return(0,l.default)(e).map(function(t){return t+": "+e[t]}).join("; ")}};t.addCssText=function(e,n){var i=v.split(e.style.cssText),r=v.split(n),o=t.extend(i,r);e.style.cssText=v.join(o)},t.removeCssText=function(e,t){var n=v.split(e.style.cssText),i=v.split(t);for(var r in i)i.hasOwnProperty(r)&&delete n[r];e.style.cssText=v.join(n)},t.HSVToRGB=function(e,t,n){var i,r,o,a=Math.floor(6*e),s=6*e-a,u=n*(1-t),l=n*(1-s*t),c=n*(1-(1-s)*t);switch(a%6){case 0:i=n,r=c,o=u;break;case 1:i=l,r=n,o=u;break;case 2:i=u,r=n,o=c;break;case 3:i=u,r=l,o=n;break;case 4:i=c,r=u,o=n;break;case 5:i=n,r=u,o=l}return{r:Math.floor(255*i),g:Math.floor(255*r),b:Math.floor(255*o)}},t.HSVToHex=function(e,n,i){var r=t.HSVToRGB(e,n,i);return t.RGBToHex(r.r,r.g,r.b)},t.hexToHSV=function(e){var n=t.hexToRGB(e);return t.RGBToHSV(n.r,n.g,n.b)},t.isValidHex=function(e){var t=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e);return t},t.isValidRGB=function(e){e=e.replace(" ","");var t=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/i.test(e);return t},t.isValidRGBA=function(e){e=e.replace(" ","");var t=/rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(.{1,3})\)/i.test(e);return t},t.selectiveBridgeObject=function(e,n){if("object"==("undefined"==typeof n?"undefined":(0,d.default)(n))){for(var i=(0,s.default)(n),r=0;r0&&t(i,e[r-1])<0;r--)e[r]=e[r-1];e[r]=i}return e},t.mergeOptions=function(e,t,n){var i=(arguments.length>3&&void 0!==arguments[3]&&arguments[3],arguments.length>4&&void 0!==arguments[4]?arguments[4]:{});if(null===t[n])e[n]=(0,s.default)(i[n]);else if(void 0!==t[n])if("boolean"==typeof t[n])e[n].enabled=t[n];else{void 0===t[n].enabled&&(e[n].enabled=!0);for(var r in t[n])t[n].hasOwnProperty(r)&&(e[n][r]=t[n][r])}},t.binarySearchCustom=function(e,t,n,i){for(var r=1e4,o=0,a=0,s=e.length-1;a<=s&&o0)return"before"==i?Math.max(0,u-1):u;if(r(a,t)<0&&r(s,t)>0)return"before"==i?u:Math.min(e.length-1,u+1);r(a,t)<0?d=u+1:h=u-1,c++}return-1},t.easingFunctions={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},t.getScrollBarWidth=function(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var i=e.offsetWidth;return n==i&&(i=t.clientWidth),document.body.removeChild(t),n-i},t.topMost=function(e,t){var n=void 0;Array.isArray(t)||(t=[t]);var i=!0,r=!1,a=void 0;try{for(var s,u=(0,o.default)(e);!(i=(s=u.next()).done);i=!0){var l=s.value;if(l){n=l[t[0]];for(var c=1;c=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports={}},function(e,t,n){var i=n(10),r=n(12);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(11);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(14),r=n(15),o=n(30),a=n(20),s=n(31),u=n(8),l=n(32),c=n(46),d=n(48),h=n(47)("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",m="values",y=function(){return this};e.exports=function(e,t,n,g,b,_,w){l(n,t,g);var x,T,E,C=function(e){if(!f&&e in P)return P[e];switch(e){case v:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",S=b==m,k=!1,P=e.prototype,M=P[h]||P[p]||b&&P[b],N=M||C(b),D=b?S?C("entries"):N:void 0,I="Array"==t?P.entries||M:M;if(I&&(E=d(I.call(new e)),E!==Object.prototype&&(c(E,O,!0),i||s(E,h)||a(E,h,y))),S&&M&&M.name!==m&&(k=!0,N=function(){return M.call(this)}),i&&!w||!f&&!k&&P[h]||a(P,h,N),u[t]=N,u[O]=y,b)if(x={values:S?N:C(m),keys:_?N:C(v),entries:D},w)for(T in x)T in P||o(P,T,x[T]);else r(r.P+r.F*(f||k),t,x);return x}},function(e,t){e.exports=!0},function(e,t,n){var i=n(16),r=n(17),o=n(18),a=n(20),s="prototype",u=function(e,t,n){var l,c,d,h=e&u.F,f=e&u.G,p=e&u.S,v=e&u.P,m=e&u.B,y=e&u.W,g=f?r:r[t]||(r[t]={}),b=g[s],_=f?i:p?i[t]:(i[t]||{})[s];f&&(n=t);for(l in n)c=!h&&_&&void 0!==_[l],c&&l in g||(d=c?_[l]:n[l],g[l]=f&&"function"!=typeof _[l]?n[l]:m&&c?o(d,i):y&&_[l]==d?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[s]=e[s],t}(d):v&&"function"==typeof d?o(Function.call,d):d,v&&((g.virtual||(g.virtual={}))[l]=d,e&u.R&&b&&!b[l]&&a(b,l,d)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(19);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(21),r=n(29);e.exports=n(25)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(22),r=n(24),o=n(28),a=Object.defineProperty;t.f=n(25)?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(23);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(25)&&!n(26)(function(){return 7!=Object.defineProperty(n(27)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(26)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(23),r=n(16).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},function(e,t,n){var i=n(23);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){e.exports=n(20)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(33),r=n(29),o=n(46),a={};n(20)(a,n(47)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var i=n(22),r=n(34),o=n(44),a=n(41)("IE_PROTO"),s=function(){},u="prototype",l=function(){var e,t=n(27)("iframe"),i=o.length,r="<",a=">";for(t.style.display="none",n(45).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),l=e.F;i--;)delete l[u][o[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=i(e),n=new s,s[u]=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(21),r=n(22),o=n(35);e.exports=n(25)?Object.defineProperties:function(e,t){r(e);for(var n,a=o(t),s=a.length,u=0;s>u;)i.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var i=n(36),r=n(44);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(31),r=n(9),o=n(37)(!1),a=n(41)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),u=0,l=[];for(n in s)n!=a&&i(s,n)&&l.push(n);for(;t.length>u;)i(s,n=t[u++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var i=n(9),r=n(38),o=n(40);e.exports=function(e){return function(t,n,a){var s,u=i(t),l=r(u.length),c=o(a,l);if(e&&n!=n){for(;l>c;)if(s=u[c++],s!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(39),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(39),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},function(e,t,n){var i=n(42)("keys"),r=n(43);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t,n){var i=n(16),r="__core-js_shared__",o=i[r]||(i[r]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){e.exports=n(16).document&&document.documentElement},function(e,t,n){var i=n(21).f,r=n(31),o=n(47)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},function(e,t,n){var i=n(42)("wks"),r=n(43),o=n(16).Symbol,a="function"==typeof o,s=e.exports=function(e){return i[e]||(i[e]=a&&o[e]||(a?o:r)("Symbol."+e))};s.store=i},function(e,t,n){var i=n(31),r=n(49),o=n(41)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var i=n(12);e.exports=function(e){return Object(i(e))}},function(e,t,n){var i=n(51)(!0);n(13)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var i=n(39),r=n(12);e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),u=i(n),l=s.length;return u<0||u>=l?e?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):(o-55296<<10)+(a-56320)+65536)}}},function(e,t,n){var i=n(22),r=n(53);e.exports=n(17).getIterator=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},function(e,t,n){var i=n(54),r=n(47)("iterator"),o=n(8);e.exports=n(17).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||o[i(e)]}},function(e,t,n){var i=n(11),r=n(47)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),r))?n:o?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t,n){e.exports={default:n(56),__esModule:!0}},function(e,t,n){n(57);var i=n(17).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,n){var i=n(15);i(i.S,"Object",{create:n(33)})},function(e,t,n){e.exports={default:n(59),__esModule:!0}},function(e,t,n){n(60),e.exports=n(17).Object.keys},function(e,t,n){var i=n(49),r=n(35);n(61)("keys",function(){return function(e){return r(i(e))}})},function(e,t,n){var i=n(15),r=n(17),o=n(26);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(63),o=i(r),a=n(66),s=i(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(o.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t,n){e.exports={default:n(64),__esModule:!0}},function(e,t,n){n(50),n(4),e.exports=n(65).f("iterator"); +},function(e,t,n){t.f=n(47)},function(e,t,n){e.exports={default:n(67),__esModule:!0}},function(e,t,n){n(68),n(79),n(80),n(81),e.exports=n(17).Symbol},function(e,t,n){var i=n(16),r=n(31),o=n(25),a=n(15),s=n(30),u=n(69).KEY,l=n(26),c=n(42),d=n(46),h=n(43),f=n(47),p=n(65),v=n(70),m=n(71),y=n(72),g=n(75),b=n(22),_=n(9),w=n(28),x=n(29),T=n(33),E=n(76),C=n(78),O=n(21),S=n(35),k=C.f,P=O.f,M=E.f,N=i.Symbol,D=i.JSON,I=D&&D.stringify,L="prototype",A=f("_hidden"),R=f("toPrimitive"),j={}.propertyIsEnumerable,F=c("symbol-registry"),B=c("symbols"),z=c("op-symbols"),H=Object[L],G="function"==typeof N,U=i.QObject,W=!U||!U[L]||!U[L].findChild,V=o&&l(function(){return 7!=T(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=k(H,t);i&&delete H[t],P(e,t,n),i&&e!==H&&P(H,t,i)}:P,Y=function(e){var t=B[e]=T(N[L]);return t._k=e,t},Q=G&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},q=function(e,t,n){return e===H&&q(z,t,n),b(e),t=w(t,!0),b(n),r(B,t)?(n.enumerable?(r(e,A)&&e[A][t]&&(e[A][t]=!1),n=T(n,{enumerable:x(0,!1)})):(r(e,A)||P(e,A,x(1,{})),e[A][t]=!0),V(e,t,n)):P(e,t,n)},K=function(e,t){b(e);for(var n,i=y(t=_(t)),r=0,o=i.length;o>r;)q(e,n=i[r++],t[n]);return e},X=function(e,t){return void 0===t?T(e):K(T(e),t)},$=function(e){var t=j.call(this,e=w(e,!0));return!(this===H&&r(B,e)&&!r(z,e))&&(!(t||!r(this,e)||!r(B,e)||r(this,A)&&this[A][e])||t)},Z=function(e,t){if(e=_(e),t=w(t,!0),e!==H||!r(B,t)||r(z,t)){var n=k(e,t);return!n||!r(B,t)||r(e,A)&&e[A][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=M(_(e)),i=[],o=0;n.length>o;)r(B,t=n[o++])||t==A||t==u||i.push(t);return i},ee=function(e){for(var t,n=e===H,i=M(n?z:_(e)),o=[],a=0;i.length>a;)!r(B,t=i[a++])||n&&!r(H,t)||o.push(B[t]);return o};G||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(z,n),r(this,A)&&r(this[A],e)&&(this[A][e]=!1),V(this,e,x(1,n))};return o&&W&&V(H,e,{configurable:!0,set:t}),Y(e)},s(N[L],"toString",function(){return this._k}),C.f=Z,O.f=q,n(77).f=E.f=J,n(74).f=$,n(73).f=ee,o&&!n(14)&&s(H,"propertyIsEnumerable",$,!0),p.f=function(e){return Y(f(e))}),a(a.G+a.W+a.F*!G,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var te=S(f.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!G,"Symbol",{for:function(e){return r(F,e+="")?F[e]:F[e]=N(e)},keyFor:function(e){if(Q(e))return m(F,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!G,"Object",{create:X,defineProperty:q,defineProperties:K,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),D&&a(a.S+a.F*(!G||l(function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!Q(e)){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);return t=i[1],"function"==typeof t&&(n=t),!n&&g(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!Q(t))return t}),i[1]=t,I.apply(D,i)}}}),N[L][R]||n(20)(N[L],R,N[L].valueOf),d(N,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){var i=n(43)("meta"),r=n(23),o=n(31),a=n(21).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(26)(function(){return u(Object.preventExtensions({}))}),c=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[i].i},h=function(e,t){if(!o(e,i)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[i].w},f=function(e){return l&&p.NEED&&u(e)&&!o(e,i)&&c(e),e},p=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},function(e,t,n){var i=n(16),r=n(17),o=n(14),a=n(65),s=n(21).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var i=n(35),r=n(9);e.exports=function(e,t){for(var n,o=r(e),a=i(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===t)return n}},function(e,t,n){var i=n(35),r=n(73),o=n(74);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var a,s=n(e),u=o.f,l=0;s.length>l;)u.call(e,a=s[l++])&&t.push(a);return t}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var i=n(11);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(9),r=n(77).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},function(e,t,n){var i=n(36),r=n(44).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){var i=n(74),r=n(29),o=n(9),a=n(28),s=n(31),u=n(24),l=Object.getOwnPropertyDescriptor;t.f=n(25)?l:function(e,t){if(e=o(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(70)("asyncIterator")},function(e,t,n){n(70)("observable")},function(e,t,n){e.exports="undefined"!=typeof window&&window.moment||n(83)},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(this,function(){function t(){return _i.apply(null,arguments)}function n(e){_i=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){var t;for(t in e)return!1;return!0}function a(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,i=[];for(n=0;n0)for(n=0;n0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}function R(e,t){var n=e.toLowerCase();Ai[n]=Ai[n+"s"]=Ai[t]=e}function j(e){return"string"==typeof e?Ai[e]||Ai[e.toLowerCase()]:void 0}function F(e){var t,n,i={};for(n in e)c(e,n)&&(t=j(n),t&&(i[t]=e[n]));return i}function B(e,t){Ri[e]=t}function z(e){var t=[];for(var n in e)t.push({unit:n,priority:Ri[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function H(e,n){return function(i){return null!=i?(U(this,e,i),t.updateOffset(this,n),this):G(this,e)}}function G(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function U(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function W(e){return e=j(e),O(this[e])?this[e]():this}function V(e,t){if("object"==typeof e){e=F(e);for(var n=z(e),i=0;i=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function Q(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(zi[e]=r),t&&(zi[t[0]]=function(){return Y(r.apply(this,arguments),t[1],t[2])}),n&&(zi[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function K(e){var t,n,i=e.match(ji);for(t=0,n=i.length;t=0&&Fi.test(e);)e=e.replace(Fi,n),Fi.lastIndex=0,i-=1;return e}function Z(e,t,n){rr[e]=O(t)?t:function(e,i){return e&&n?n:t}}function J(e,t){return c(rr,e)?rr[e](t._strict,t._locale):new RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),s(t)&&(i=function(e,n){n[t]=w(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function _e(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function we(e,t,n){var i=7+t-n,r=(7+_e(e,0,i).getUTCDay()-t)%7;return-r+i-1}function xe(e,t,n,i,r){var o,a,s=(7+n-i)%7,u=we(e,i,r),l=1+7*(t-1)+s+u;return l<=0?(o=e-1,a=me(o)+l):l>me(e)?(o=e+1,a=l-me(e)):(o=e,a=l),{year:o,dayOfYear:a}}function Te(e,t,n){var i,r,o=we(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(r=e.year()-1,i=a+Ee(r,t,n)):a>Ee(e.year(),t,n)?(i=a-Ee(e.year(),t,n),r=e.year()+1):(r=e.year(),i=a),{week:i,year:r}}function Ee(e,t,n){var i=we(e,t,n),r=we(e+1,t,n);return(me(e)-i+r)/7}function Ce(e){return Te(e,this._week.dow,this._week.doy).week}function Oe(){return this._week.dow}function Se(){return this._week.doy}function ke(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Pe(e){var t=Te(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Me(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ne(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function De(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone}function Ie(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Le(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ae(e,t,n){var i,r,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?(r=vr.call(this._weekdaysParse,a),r!==-1?r:null):"ddd"===t?(r=vr.call(this._shortWeekdaysParse,a),r!==-1?r:null):(r=vr.call(this._minWeekdaysParse,a),r!==-1?r:null):"dddd"===t?(r=vr.call(this._weekdaysParse,a),r!==-1?r:(r=vr.call(this._shortWeekdaysParse,a),r!==-1?r:(r=vr.call(this._minWeekdaysParse,a),r!==-1?r:null))):"ddd"===t?(r=vr.call(this._shortWeekdaysParse,a),r!==-1?r:(r=vr.call(this._weekdaysParse,a),r!==-1?r:(r=vr.call(this._minWeekdaysParse,a),r!==-1?r:null))):(r=vr.call(this._minWeekdaysParse,a),r!==-1?r:(r=vr.call(this._weekdaysParse,a),r!==-1?r:(r=vr.call(this._shortWeekdaysParse,a),r!==-1?r:null)))}function Re(e,t,n){var i,r,o;if(this._weekdaysParseExact)return Ae.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function je(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Me(e,this.localeData()),this.add(e-t,"d")):t}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Be(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ne(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function ze(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Or),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function He(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Sr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ge(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ue(){function e(e,t){return t.length-e.length}var t,n,i,r,o,a=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),u.push(o),l.push(i),l.push(r),l.push(o);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=te(s[t]),u[t]=te(u[t]),l[t]=te(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function We(){return this.hours()%12||12}function Ve(){return this.hours()||24}function Ye(e,t){Q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Qe(e,t){return t._meridiemParse}function qe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ke(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Xe(e){return e?e.toLowerCase().replace("_","-"):e}function $e(e){for(var t,n,i,r,o=0;o0;){if(i=Ze(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&x(r,n,!0)>=t-1)break;t--}o++}return null}function Ze(t){var n=null;if(!Ir[t]&&"undefined"!=typeof e&&e&&e.exports)try{n=Pr._abbr,!function(){var e=new Error('Cannot find module "./locale"');throw e.code="MODULE_NOT_FOUND",e}(),Je(n)}catch(e){}return Ir[t]}function Je(e,t){var n;return e&&(n=a(t)?nt(e):et(e,t),n&&(Pr=n)),Pr._abbr}function et(e,t){if(null!==t){var n=Dr;if(t.abbr=e,null!=Ir[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Ir[e]._config;else if(null!=t.parentLocale){if(null==Ir[t.parentLocale])return Lr[t.parentLocale]||(Lr[t.parentLocale]=[]),Lr[t.parentLocale].push({name:e,config:t}),null;n=Ir[t.parentLocale]._config}return Ir[e]=new P(k(n,t)),Lr[e]&&Lr[e].forEach(function(e){et(e.name,e.config)}),Je(e),Ir[e]}return delete Ir[e],null}function tt(e,t){if(null!=t){var n,i=Dr;null!=Ir[e]&&(i=Ir[e]._config),t=k(i,t),n=new P(t),n.parentLocale=Ir[e],Ir[e]=n,Je(e)}else null!=Ir[e]&&(null!=Ir[e].parentLocale?Ir[e]=Ir[e].parentLocale:null!=Ir[e]&&delete Ir[e]);return Ir[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Pr;if(!i(e)){if(t=Ze(e))return t;e=[e]}return $e(e)}function it(){return ki(Ir)}function rt(e){var t,n=e._a;return n&&p(e).overflow===-2&&(t=n[sr]<0||n[sr]>11?sr:n[ur]<1||n[ur]>oe(n[ar],n[sr])?ur:n[lr]<0||n[lr]>24||24===n[lr]&&(0!==n[cr]||0!==n[dr]||0!==n[hr])?lr:n[cr]<0||n[cr]>59?cr:n[dr]<0||n[dr]>59?dr:n[hr]<0||n[hr]>999?hr:-1,p(e)._overflowDayOfYear&&(tur)&&(t=ur),p(e)._overflowWeeks&&t===-1&&(t=fr),p(e)._overflowWeekday&&t===-1&&(t=pr),p(e).overflow=t),e}function ot(e){var t,n,i,r,o,a,s=e._i,u=Ar.exec(s)||Rr.exec(s);if(u){for(p(e).iso=!0,t=0,n=Fr.length;t10?"YYYY ":"YY "),o="HH:mm"+(n[4]?":ss":""),n[1]){var d=new Date(n[2]),h=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][d.getDay()];if(n[1].substr(0,3)!==h)return p(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===u?s=" +0000":(u=c.indexOf(n[5][1].toUpperCase())-12,s=(u<0?" -":" +")+(""+u).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:s=l[n[5]];break;default:s=l[" GMT"]}n[5]=s,e._i=n.splice(1).join(""),a=" ZZ",e._f=i+r+o+a,ht(e),p(e).rfc2822=!0}else e._isValid=!1}function st(e){var n=zr.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(ot(e),void(e._isValid===!1&&(delete e._isValid,at(e),e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e)))))}function ut(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ct(e){var t,n,i,r,o=[];if(!e._d){for(i=lt(e),e._w&&null==e._a[ur]&&null==e._a[sr]&&dt(e),null!=e._dayOfYear&&(r=ut(e._a[ar],i[ar]),(e._dayOfYear>me(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=_e(r,0,e._dayOfYear),e._a[sr]=n.getUTCMonth(),e._a[ur]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[lr]&&0===e._a[cr]&&0===e._a[dr]&&0===e._a[hr]&&(e._nextDay=!0,e._a[lr]=0),e._d=(e._useUTC?_e:be).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[lr]=24)}}function dt(e){var t,n,i,r,o,a,s,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)o=1,a=4,n=ut(t.GG,e._a[ar],Te(_t(),1,4).year),i=ut(t.W,1),r=ut(t.E,1),(r<1||r>7)&&(u=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var l=Te(_t(),o,a);n=ut(t.gg,e._a[ar],l.year),i=ut(t.w,l.week),null!=t.d?(r=t.d,(r<0||r>6)&&(u=!0)):null!=t.e?(r=t.e+o,(t.e<0||t.e>6)&&(u=!0)):r=o}i<1||i>Ee(n,o,a)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(s=xe(n,i,r,o,a),e._a[ar]=s.year,e._dayOfYear=s.dayOfYear)}function ht(e){if(e._f===t.ISO_8601)return void ot(e);if(e._f===t.RFC_2822)return void at(e);e._a=[],p(e).empty=!0;var n,i,r,o,a,s=""+e._i,u=s.length,l=0;for(r=$(e._f,e._locale).match(ji)||[],n=0;n0&&p(e).unusedInput.push(a),s=s.slice(s.indexOf(i)+i.length),l+=i.length),zi[o]?(i?p(e).empty=!1:p(e).unusedTokens.push(o),re(o,i,e)):e._strict&&!i&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-l,s.length>0&&p(e).unusedInput.push(s),e._a[lr]<=12&&p(e).bigHour===!0&&e._a[lr]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[lr]=ft(e._locale,e._a[lr],e._meridiem),ct(e),rt(e)}function ft(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function pt(e){var t,n,i,r,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ht(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=yt(e),e._a){var t=e._isUTC?h(e._a):_t(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Gt(){return!!this.isValid()&&!this._isUTC}function Ut(){return!!this.isValid()&&this._isUTC}function Wt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Vt(e,t){var n,i,r,o=e,a=null;return kt(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(o={},t?o[t]=e:o.milliseconds=e):(a=Qr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:w(a[ur])*n,h:w(a[lr])*n,m:w(a[cr])*n,s:w(a[dr])*n,ms:w(Pt(1e3*a[hr]))*n}):(a=qr.exec(e))?(n="-"===a[1]?-1:1,o={y:Yt(a[2],n),M:Yt(a[3],n),w:Yt(a[4],n),d:Yt(a[5],n),h:Yt(a[6],n),m:Yt(a[7],n),s:Yt(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=qt(_t(o.from),_t(o.to)),o={},o.ms=r.milliseconds,o.M=r.months), +i=new St(o),kt(e)&&c(e,"_locale")&&(i._locale=e._locale),i}function Yt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Qt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(e,t){var n;return e.isValid()&&t.isValid()?(t=Dt(t,e),e.isBefore(t)?n=Qt(e,t):(n=Qt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Kt(e,t){return function(n,i){var r,o;return null===i||isNaN(+i)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=i,i=o),n="string"==typeof n?+n:n,r=Vt(n,i),Xt(this,r,e),this}}function Xt(e,n,i,r){var o=n._milliseconds,a=Pt(n._days),s=Pt(n._months);e.isValid()&&(r=null==r||r,o&&e._d.setTime(e._d.valueOf()+o*i),a&&U(e,"Date",G(e,"Date")+a*i),s&&ce(e,G(e,"Month")+s*i),r&&t.updateOffset(e,a||s))}function $t(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Zt(e,n){var i=e||_t(),r=Dt(i,this).startOf("day"),o=t.calendarFormat(this,r)||"sameElse",a=n&&(O(n[o])?n[o].call(this,i):n[o]);return this.format(a||this.localeData().calendar(o,this,_t(i)))}function Jt(){return new g(this)}function en(e,t){var n=b(e)?e:_t(e);return!(!this.isValid()||!n.isValid())&&(t=j(a(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()9999?X(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):O(Date.prototype.toISOString)?this.toDate().toISOString():X(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function dn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]';return this.format(n+i+r+o)}function hn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=X(this,e);return this.localeData().postformat(n)}function fn(e,t){return this.isValid()&&(b(e)&&e.isValid()||_t(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pn(e){return this.from(_t(),e)}function vn(e,t){return this.isValid()&&(b(e)&&e.isValid()||_t(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mn(e){return this.to(_t(),e)}function yn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function gn(){return this._locale}function bn(e){switch(e=j(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function _n(e){return e=j(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function wn(){return this._d.valueOf()-6e4*(this._offset||0)}function xn(){return Math.floor(this.valueOf()/1e3)}function Tn(){return new Date(this.valueOf())}function En(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Cn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function On(){return this.isValid()?this.toISOString():null}function Sn(){return v(this)}function kn(){return d({},p(this))}function Pn(){return p(this).overflow}function Mn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Nn(e,t){Q(0,[e,e.length],0,t)}function Dn(e){return Rn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function In(e){return Rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ln(){return Ee(this.year(),1,4)}function An(){var e=this.localeData()._week;return Ee(this.year(),e.dow,e.doy)}function Rn(e,t,n,i,r){var o;return null==e?Te(this,i,r).year:(o=Ee(e,i,r),t>o&&(t=o),jn.call(this,e,t,n,i,r))}function jn(e,t,n,i,r){var o=xe(e,t,n,i,r),a=_e(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Fn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Bn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function zn(e,t){t[hr]=w(1e3*("0."+e))}function Hn(){return this._isUTC?"UTC":""}function Gn(){return this._isUTC?"Coordinated Universal Time":""}function Un(e){return _t(1e3*e)}function Wn(){return _t.apply(null,arguments).parseZone()}function Vn(e){return e}function Yn(e,t,n,i){var r=nt(),o=h().set(i,t);return r[n](o,e)}function Qn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Yn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Yn(e,i,n,"month");return r}function qn(e,t,n,i){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var r=nt(),o=e?r._week.dow:0;if(null!=n)return Yn(t,(n+o)%7,i,"day");var a,u=[];for(a=0;a<7;a++)u[a]=Yn(t,(a+o)%7,i,"day");return u}function Kn(e,t){return Qn(e,t,"months")}function Xn(e,t){return Qn(e,t,"monthsShort")}function $n(e,t,n){return qn(e,t,n,"weekdays")}function Zn(e,t,n){return qn(e,t,n,"weekdaysShort")}function Jn(e,t,n){return qn(e,t,n,"weekdaysMin")}function ei(){var e=this._data;return this._milliseconds=oo(this._milliseconds),this._days=oo(this._days),this._months=oo(this._months),e.milliseconds=oo(e.milliseconds),e.seconds=oo(e.seconds),e.minutes=oo(e.minutes),e.hours=oo(e.hours),e.months=oo(e.months),e.years=oo(e.years),this}function ti(e,t,n,i){var r=Vt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function ni(e,t){return ti(this,e,t,1)}function ii(e,t){return ti(this,e,t,-1)}function ri(e){return e<0?Math.floor(e):Math.ceil(e)}function oi(){var e,t,n,i,r,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*ri(si(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=_(o/1e3),u.seconds=e%60,t=_(e/60),u.minutes=t%60,n=_(t/60),u.hours=n%24,a+=_(n/24),r=_(ai(a)),s+=r,a-=ri(si(r)),i=_(s/12),s%=12,u.days=a,u.months=s,u.years=i,this}function ai(e){return 4800*e/146097}function si(e){return 146097*e/4800}function ui(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if(e=j(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+ai(t),"month"===e?n:n/12;switch(t=this._days+Math.round(si(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function li(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN}function ci(e){return function(){return this.as(e)}}function di(e){return e=j(e),this.isValid()?this[e+"s"]():NaN}function hi(e){return function(){return this.isValid()?this._data[e]:NaN}}function fi(){return _(this.days()/7)}function pi(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function vi(e,t,n){var i=Vt(e).abs(),r=xo(i.as("s")),o=xo(i.as("m")),a=xo(i.as("h")),s=xo(i.as("d")),u=xo(i.as("M")),l=xo(i.as("y")),c=r<=To.ss&&["s",r]||r0,c[4]=n,pi.apply(null,c)}function mi(e){return void 0===e?xo:"function"==typeof e&&(xo=e,!0)}function yi(e,t){return void 0!==To[e]&&(void 0===t?To[e]:(To[e]=t,"s"===e&&(To.ss=t-1),!0))}function gi(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=vi(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function bi(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i=Eo(this._milliseconds)/1e3,r=Eo(this._days),o=Eo(this._months);e=_(i/60),t=_(e/60),i%=60,e%=60,n=_(o/12),o%=12;var a=n,s=o,u=r,l=t,c=e,d=i,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(a?a+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||d?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(d?d+"S":""):"P0D"}var _i,wi;wi=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i68?1900:2e3)};var wr=H("FullYear",!0);Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),B("week",5),B("isoWeek",5),Z("w",Yi),Z("ww",Yi,Gi),Z("W",Yi),Z("WW",Yi,Gi),ie(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=w(e)});var xr={dow:0,doy:6};Q("d",0,"do","day"),Q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),Z("d",Yi),Z("e",Yi),Z("E",Yi),Z("dd",function(e,t){return t.weekdaysMinRegex(e)}),Z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Z("dddd",function(e,t){return t.weekdaysRegex(e)}),ie(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:p(n).invalidWeekday=e}),ie(["d","e","E"],function(e,t,n,i){t[i]=w(e)});var Tr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Er="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Cr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Or=ir,Sr=ir,kr=ir;Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,We),Q("k",["kk",2],0,Ve),Q("hmm",0,0,function(){return""+We.apply(this)+Y(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+We.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),Ye("a",!0),Ye("A",!1),R("hour","h"),B("hour",13),Z("a",Qe),Z("A",Qe),Z("H",Yi),Z("h",Yi),Z("k",Yi),Z("HH",Yi,Gi),Z("hh",Yi,Gi),Z("kk",Yi,Gi),Z("hmm",Qi),Z("hmmss",qi),Z("Hmm",Qi),Z("Hmmss",qi),ne(["H","HH"],lr),ne(["k","kk"],function(e,t,n){var i=w(e);t[lr]=24===i?0:i}),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[lr]=w(e),p(n).bigHour=!0}),ne("hmm",function(e,t,n){var i=e.length-2;t[lr]=w(e.substr(0,i)),t[cr]=w(e.substr(i)),p(n).bigHour=!0}),ne("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[lr]=w(e.substr(0,i)),t[cr]=w(e.substr(i,2)),t[dr]=w(e.substr(r)),p(n).bigHour=!0}),ne("Hmm",function(e,t,n){var i=e.length-2;t[lr]=w(e.substr(0,i)),t[cr]=w(e.substr(i))}),ne("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[lr]=w(e.substr(0,i)),t[cr]=w(e.substr(i,2)),t[dr]=w(e.substr(r))});var Pr,Mr=/[ap]\.?m?\.?/i,Nr=H("Hours",!0),Dr={calendar:Pi,longDateFormat:Mi,invalidDate:Ni,ordinal:Di,dayOfMonthOrdinalParse:Ii,relativeTime:Li,months:yr,monthsShort:gr,week:xr,weekdays:Tr,weekdaysMin:Cr,weekdaysShort:Er,meridiemParse:Mr},Ir={},Lr={},Ar=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Rr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jr=/Z|[+-]\d\d(?::?\d\d)?/,Fr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Br=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],zr=/^\/?Date\((\-?\d+)/i,Hr=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;t.createFromInputFallback=E("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var Gr=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=_t.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:m()}),Wr=function(){return Date.now?Date.now():+new Date},Vr=["year","quarter","month","week","day","hour","minute","second","millisecond"];Mt("Z",":"),Mt("ZZ",""),Z("Z",tr),Z("ZZ",tr),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(tr,e)});var Yr=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Qr=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Vt.fn=St.prototype,Vt.invalid=Ot;var Kr=Kt(1,"add"),Xr=Kt(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var $r=E("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});Q(0,["gg",2],0,function(){return this.weekYear()%100}),Q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Nn("gggg","weekYear"),Nn("ggggg","weekYear"),Nn("GGGG","isoWeekYear"),Nn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),Z("G",Ji),Z("g",Ji),Z("GG",Yi,Gi),Z("gg",Yi,Gi),Z("GGGG",Xi,Wi),Z("gggg",Xi,Wi),Z("GGGGG",$i,Vi),Z("ggggg",$i,Vi),ie(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=w(e)}),ie(["gg","GG"],function(e,n,i,r){n[r]=t.parseTwoDigitYear(e)}),Q("Q",0,"Qo","quarter"),R("quarter","Q"),B("quarter",7),Z("Q",Hi),ne("Q",function(e,t){t[sr]=3*(w(e)-1)}),Q("D",["DD",2],"Do","date"),R("date","D"),B("date",9),Z("D",Yi),Z("DD",Yi,Gi),Z("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ne(["D","DD"],ur),ne("Do",function(e,t){t[ur]=w(e.match(Yi)[0],10)});var Zr=H("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),B("dayOfYear",4),Z("DDD",Ki),Z("DDDD",Ui),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),Q("m",["mm",2],0,"minute"),R("minute","m"),B("minute",14),Z("m",Yi),Z("mm",Yi,Gi),ne(["m","mm"],cr);var Jr=H("Minutes",!1);Q("s",["ss",2],0,"second"),R("second","s"),B("second",15),Z("s",Yi),Z("ss",Yi,Gi),ne(["s","ss"],dr);var eo=H("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)}),Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Q(0,["SSS",3],0,"millisecond"),Q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),B("millisecond",16),Z("S",Ki,Hi),Z("SS",Ki,Gi),Z("SSS",Ki,Ui);var to;for(to="SSSS";to.length<=9;to+="S")Z(to,Zi);for(to="S";to.length<=9;to+="S")ne(to,zn);var no=H("Milliseconds",!1);Q("z",0,0,"zoneAbbr"),Q("zz",0,0,"zoneName");var io=g.prototype;io.add=Kr,io.calendar=Zt,io.clone=Jt,io.diff=sn,io.endOf=_n,io.format=hn,io.from=fn,io.fromNow=pn,io.to=vn,io.toNow=mn,io.get=W,io.invalidAt=Pn,io.isAfter=en,io.isBefore=tn,io.isBetween=nn,io.isSame=rn,io.isSameOrAfter=on,io.isSameOrBefore=an,io.isValid=Sn,io.lang=$r,io.locale=yn,io.localeData=gn,io.max=Ur,io.min=Gr,io.parsingFlags=kn,io.set=V,io.startOf=bn,io.subtract=Xr,io.toArray=En,io.toObject=Cn,io.toDate=Tn,io.toISOString=cn,io.inspect=dn,io.toJSON=On,io.toString=ln,io.unix=xn,io.valueOf=wn,io.creationData=Mn,io.year=wr,io.isLeapYear=ge,io.weekYear=Dn,io.isoWeekYear=In,io.quarter=io.quarters=Fn,io.month=de,io.daysInMonth=he,io.week=io.weeks=ke,io.isoWeek=io.isoWeeks=Pe,io.weeksInYear=An,io.isoWeeksInYear=Ln,io.date=Zr,io.day=io.days=je,io.weekday=Fe,io.isoWeekday=Be,io.dayOfYear=Bn,io.hour=io.hours=Nr,io.minute=io.minutes=Jr,io.second=io.seconds=eo,io.millisecond=io.milliseconds=no,io.utcOffset=Lt,io.utc=Rt,io.local=jt,io.parseZone=Ft,io.hasAlignedHourOffset=Bt,io.isDST=zt,io.isLocal=Gt,io.isUtcOffset=Ut,io.isUtc=Wt,io.isUTC=Wt,io.zoneAbbr=Hn,io.zoneName=Gn,io.dates=E("dates accessor is deprecated. Use date instead.",Zr),io.months=E("months accessor is deprecated. Use month instead",de),io.years=E("years accessor is deprecated. Use year instead",wr),io.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",At),io.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ht);var ro=P.prototype;ro.calendar=M,ro.longDateFormat=N,ro.invalidDate=D,ro.ordinal=I,ro.preparse=Vn,ro.postformat=Vn,ro.relativeTime=L,ro.pastFuture=A,ro.set=S,ro.months=ae,ro.monthsShort=se,ro.monthsParse=le,ro.monthsRegex=pe,ro.monthsShortRegex=fe,ro.week=Ce,ro.firstDayOfYear=Se,ro.firstDayOfWeek=Oe,ro.weekdays=De,ro.weekdaysMin=Le,ro.weekdaysShort=Ie,ro.weekdaysParse=Re,ro.weekdaysRegex=ze,ro.weekdaysShortRegex=He,ro.weekdaysMinRegex=Ge,ro.isPM=qe,ro.meridiem=Ke,Je("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=E("moment.lang is deprecated. Use moment.locale instead.",Je),t.langData=E("moment.langData is deprecated. Use moment.localeData instead.",nt);var oo=Math.abs,ao=ci("ms"),so=ci("s"),uo=ci("m"),lo=ci("h"),co=ci("d"),ho=ci("w"),fo=ci("M"),po=ci("y"),vo=hi("milliseconds"),mo=hi("seconds"),yo=hi("minutes"),go=hi("hours"),bo=hi("days"),_o=hi("months"),wo=hi("years"),xo=Math.round,To={ss:44,s:45,m:45,h:22,d:26,M:11},Eo=Math.abs,Co=St.prototype;return Co.isValid=Ct,Co.abs=ei,Co.add=ni,Co.subtract=ii,Co.as=ui,Co.asMilliseconds=ao,Co.asSeconds=so,Co.asMinutes=uo,Co.asHours=lo,Co.asDays=co,Co.asWeeks=ho,Co.asMonths=fo,Co.asYears=po,Co.valueOf=li,Co._bubble=oi,Co.get=di,Co.milliseconds=vo,Co.seconds=mo,Co.minutes=yo,Co.hours=go,Co.days=bo,Co.weeks=fi,Co.months=_o,Co.years=wo,Co.humanize=gi,Co.toISOString=bi,Co.toString=bi,Co.toJSON=bi,Co.locale=yn,Co.localeData=gn,Co.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bi),Co.lang=$r,Q("X",0,0,"unix"),Q("x",0,0,"valueOf"),Z("x",Ji),Z("X",nr),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,t,n){n._d=new Date(w(e))}),t.version="2.18.0",n(_t),t.fn=io,t.min=xt,t.max=Tt,t.now=Wr,t.utc=h,t.unix=Un,t.months=Kn,t.isDate=u,t.locale=Je,t.invalid=m,t.duration=Vt,t.isMoment=b,t.weekdays=$n,t.parseZone=Wn,t.localeData=nt,t.isDuration=kt,t.monthsShort=Xn,t.weekdaysMin=Jn,t.defineLocale=et,t.updateLocale=tt,t.locales=it,t.weekdaysShort=Zn,t.normalizeUnits=j,t.relativeTimeRounding=mi,t.relativeTimeThreshold=yi,t.calendarFormat=$t,t.prototype=io,t})}).call(t,n(84)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){function n(e){throw new Error("Cannot find module '"+e+"'.")}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=85},function(e,t){(function(t){function n(e,t,n){var i=t&&n||0,r=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,function(e){r<16&&(t[i+r++]=d[e])});r<16;)t[i+r++]=0;return t}function i(e,t){var n=t||0,i=c;return i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+"-"+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]+i[e[n++]]}function r(e,t,n){var r=t&&n||0,o=t||[];e=e||{};var a=void 0!==e.clockseq?e.clockseq:v,s=void 0!==e.msecs?e.msecs:(new Date).getTime(),u=void 0!==e.nsecs?e.nsecs:y+1,l=s-m+(u-y)/1e4;if(l<0&&void 0===e.clockseq&&(a=a+1&16383),(l<0||s>m)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");m=s,y=u,v=a,s+=122192928e5;var c=(1e4*(268435455&s)+u)%4294967296;o[r++]=c>>>24&255,o[r++]=c>>>16&255,o[r++]=c>>>8&255,o[r++]=255&c;var d=s/4294967296*1e4&268435455;o[r++]=d>>>8&255,o[r++]=255&d,o[r++]=d>>>24&15|16,o[r++]=d>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var h=e.node||p,f=0;f<6;f++)o[r+f]=h[f];return t?t:i(o)}function o(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var s=0;s<16;s++)t[r+s]=o[s];return t||i(o)}var a,s="undefined"!=typeof window?window:"undefined"!=typeof t?t:null;if(s&&s.crypto&&crypto.getRandomValues){var u=new Uint8Array(16);a=function(){return crypto.getRandomValues(u),u}}if(!a){var l=new Array(16);a=function(){for(var e,t=0;t<16;t++)0===(3&t)&&(e=4294967296*Math.random()),l[t]=e>>>((3&t)<<3)&255;return l}}for(var c=[],d={},h=0;h<256;h++)c[h]=(h+256).toString(16).substr(1),d[c[h]]=h;var f=a(),p=[1|f[0],f[1],f[2],f[3],f[4],f[5]],v=16383&(f[6]<<8|f[7]),m=0,y=0,g=o;g.v1=r,g.v4=o,g.parse=n,g.unparse=i,e.exports=g}).call(t,function(){return this}())},function(e,t,n){t.util=n(1),t.DOMutil=n(88),t.DataSet=n(89),t.DataView=n(93),t.Queue=n(92),t.Graph3d=n(94),t.graph3d={Camera:n(102),Filter:n(107),Point2d:n(101),Point3d:n(100),Slider:n(108),StepNumber:n(109)},t.moment=n(82),t.Hammer=n(112),t.keycharm=n(115)},function(e,t){t.prepareElements=function(e){for(var t in e)e.hasOwnProperty(t)&&(e[t].redundant=e[t].used,e[t].used=[])},t.cleanupElements=function(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t].redundant){for(var n=0;n0?(i=t[e].redundant[0],t[e].redundant.shift()):(i=document.createElementNS("http://www.w3.org/2000/svg",e),n.appendChild(i)):(i=document.createElementNS("http://www.w3.org/2000/svg",e),t[e]={used:[],redundant:[]},n.appendChild(i)),t[e].used.push(i),i},t.getDOMElement=function(e,t,n,i){var r;return t.hasOwnProperty(e)?t[e].redundant.length>0?(r=t[e].redundant[0],t[e].redundant.shift()):(r=document.createElement(e),void 0!==i?n.insertBefore(r,i):n.appendChild(r)):(r=document.createElement(e),t[e]={used:[],redundant:[]},void 0!==i?n.insertBefore(r,i):n.appendChild(r)),t[e].used.push(r),r},t.drawPoint=function(e,n,i,r,o,a){var s;if("circle"==i.style?(s=t.getSVGElement("circle",r,o),s.setAttributeNS(null,"cx",e),s.setAttributeNS(null,"cy",n),s.setAttributeNS(null,"r",.5*i.size)):(s=t.getSVGElement("rect",r,o),s.setAttributeNS(null,"x",e-.5*i.size),s.setAttributeNS(null,"y",n-.5*i.size),s.setAttributeNS(null,"width",i.size),s.setAttributeNS(null,"height",i.size)),void 0!==i.styles&&s.setAttributeNS(null,"style",i.styles),s.setAttributeNS(null,"class",i.className+" vis-point"),a){var u=t.getSVGElement("text",r,o);a.xOffset&&(e+=a.xOffset),a.yOffset&&(n+=a.yOffset),a.content&&(u.textContent=a.content),a.className&&u.setAttributeNS(null,"class",a.className+" vis-label"),u.setAttributeNS(null,"x",e),u.setAttributeNS(null,"y",n)}return s},t.drawBar=function(e,n,i,r,o,a,s,u){if(0!=r){r<0&&(r*=-1,n-=r);var l=t.getSVGElement("rect",a,s);l.setAttributeNS(null,"x",e-.5*i),l.setAttributeNS(null,"y",n),l.setAttributeNS(null,"width",i),l.setAttributeNS(null,"height",r),l.setAttributeNS(null,"class",o),u&&l.setAttributeNS(null,"style",u)}}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(e&&!Array.isArray(e)&&(t=e,e=null),this._options=t||{},this._data={},this.length=0,this._fieldId=this._options.fieldId||"id",this._type={},this._options.type)for(var n=(0,c.default)(this._options.type),i=0,r=n.length;ir?1:ia)&&(o=u,a=l)}return o},r.prototype.min=function(e){var t,n,i=this._data,r=(0,c.default)(i),o=null,a=null;for(t=0,n=r.length;tthis.max&&this.flush(),clearTimeout(this._timeout),this.queue.length>0&&"number"==typeof this.delay){var e=this;this._timeout=setTimeout(function(){e.flush()},this.delay)}},n.prototype.flush=function(){for(;this._queue.length>0;){var e=this._queue.shift();e.fn.apply(e.context||e.fn,e.args||[])}},e.exports=n},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){this._data=null,this._ids={},this.length=0,this._options=t||{},this._fieldId="id",this._subscribers={};var n=this;this.listener=function(){n._onEvent.apply(n,arguments)},this.setData(e)}var o=n(58),a=i(o),s=n(1),u=n(89);r.prototype.setData=function(e){var t,n,i,r,o;if(this._data){for(this._data.off&&this._data.off("*",this.listener),t=this._data.getIds({filter:this._options&&this._options.filter}),o=[],i=0,r=t.length;io)&&(i=o)}return i},r.prototype.getColumnRange=function(e,t){for(var n=new g,i=0;i0&&(u[i-1].pointNext=a),u.push(a);return u},r.prototype.create=function(){for(;this.containerElement.hasChildNodes();)this.containerElement.removeChild(this.containerElement.firstChild);this.frame=document.createElement("div"),this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas);var e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e),this.frame.filter=document.createElement("div"),this.frame.filter.style.position="absolute",this.frame.filter.style.bottom="0px",this.frame.filter.style.left="0px",this.frame.filter.style.width="100%",this.frame.appendChild(this.frame.filter);var t=this,n=function(e){t._onMouseDown(e)},i=function(e){t._onTouchStart(e)},r=function(e){t._onWheel(e)},o=function(e){t._onTooltip(e)},a=function(e){t._onClick(e)};h.addEventListener(this.frame.canvas,"mousedown",n),h.addEventListener(this.frame.canvas,"touchstart",i),h.addEventListener(this.frame.canvas,"mousewheel",r),h.addEventListener(this.frame.canvas,"mousemove",o),h.addEventListener(this.frame.canvas,"click",a),this.containerElement.appendChild(this.frame)},r.prototype._setSize=function(e,t){this.frame.style.width=e,this.frame.style.height=t,this._resizeCanvas()},r.prototype._resizeCanvas=function(){this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=this.frame.canvas.clientWidth,this.frame.canvas.height=this.frame.canvas.clientHeight,this.frame.filter.style.width=this.frame.canvas.clientWidth-20+"px"},r.prototype.animationStart=function(){if(!this.frame.filter||!this.frame.filter.slider)throw new Error("No animation available");this.frame.filter.slider.play()},r.prototype.animationStop=function(){this.frame.filter&&this.frame.filter.slider&&this.frame.filter.slider.stop()},r.prototype._resizeCenter=function(){"%"===this.xCenter.charAt(this.xCenter.length-1)?this.currentXCenter=parseFloat(this.xCenter)/100*this.frame.canvas.clientWidth:this.currentXCenter=parseFloat(this.xCenter),"%"===this.yCenter.charAt(this.yCenter.length-1)?this.currentYCenter=parseFloat(this.yCenter)/100*(this.frame.canvas.clientHeight-this.frame.filter.clientHeight):this.currentYCenter=parseFloat(this.yCenter)},r.prototype.getCameraPosition=function(){var e=this.camera.getArmRotation();return e.distance=this.camera.getArmLength(),e},r.prototype._readData=function(e){this._dataInitialize(e,this.style),this.dataFilter?this.dataPoints=this.dataFilter._getDataPoints():this.dataPoints=this._getDataPoints(this.dataTable),this._redrawFilter()},r.prototype.setData=function(e){this._readData(e),this.redraw(),this.animationAutoStart&&this.dataFilter&&this.animationStart()},r.prototype.setOptions=function(e){this.animationStop(),b.setOptions(e,this),this.setPointDrawingMethod(),this._setSize(this.width,this.height),this.dataTable&&this.setData(this.dataTable),this.animationAutoStart&&this.dataFilter&&this.animationStart()},r.prototype.setPointDrawingMethod=function(){var e=void 0;switch(this.style){case r.STYLE.BAR:e=r.prototype._redrawBarGraphPoint;break;case r.STYLE.BARCOLOR:e=r.prototype._redrawBarColorGraphPoint;break;case r.STYLE.BARSIZE:e=r.prototype._redrawBarSizeGraphPoint;break;case r.STYLE.DOT:e=r.prototype._redrawDotGraphPoint;break;case r.STYLE.DOTLINE:e=r.prototype._redrawDotLineGraphPoint;break;case r.STYLE.DOTCOLOR:e=r.prototype._redrawDotColorGraphPoint;break;case r.STYLE.DOTSIZE:e=r.prototype._redrawDotSizeGraphPoint;break;case r.STYLE.SURFACE:e=r.prototype._redrawSurfaceGraphPoint;break;case r.STYLE.GRID:e=r.prototype._redrawGridGraphPoint;break;case r.STYLE.LINE:e=r.prototype._redrawLineGraphPoint;break;default:throw new Error("Can not determine point drawing method for graph style '"+this.style+"'")}this._pointDrawingMethod=e},r.prototype.redraw=function(){if(void 0===this.dataPoints)throw new Error("Graph data not initialized");this._resizeCanvas(),this._resizeCenter(),this._redrawSlider(),this._redrawClear(),this._redrawAxis(),this._redrawDataGraph(),this._redrawInfo(),this._redrawLegend()},r.prototype._getContext=function(){var e=this.frame.canvas,t=e.getContext("2d");return t.lineJoin="round",t.lineCap="round",t},r.prototype._redrawClear=function(){var e=this.frame.canvas,t=e.getContext("2d");t.clearRect(0,0,e.width,e.height)},r.prototype._dotSize=function(){return this.frame.clientWidth*this.dotSizeRatio},r.prototype._getLegendWidth=function(){var e;if(this.style===r.STYLE.DOTSIZE){var t=this._dotSize();e=t/2+2*t}else e=this.style===r.STYLE.BARSIZE?this.xBarWidth:20;return e},r.prototype._redrawLegend=function(){if(this.showLegend===!0&&this.style!==r.STYLE.LINE&&this.style!==r.STYLE.BARSIZE){var e=this.style===r.STYLE.BARSIZE||this.style===r.STYLE.DOTSIZE,t=this.style===r.STYLE.DOTSIZE||this.style===r.STYLE.DOTCOLOR||this.style===r.STYLE.BARCOLOR,n=Math.max(.25*this.frame.clientHeight,100),i=this.margin,o=this._getLegendWidth(),a=this.frame.clientWidth-this.margin,s=a-o,u=i+n,l=this._getContext();if(l.lineWidth=1,l.font="14px arial",e===!1){var c,d=0,h=n;for(c=d;c0?(e.textAlign="center",e.textBaseline="top",o.y+=r):Math.sin(2*i)<0?(e.textAlign="right",e.textBaseline="middle"):(e.textAlign="left",e.textBaseline="middle"),e.fillStyle=this.axisColor,e.fillText(n,o.x,o.y)},r.prototype.drawAxisLabelY=function(e,t,n,i,r){void 0===r&&(r=0);var o=this._convert3Dto2D(t);Math.cos(2*i)<0?(e.textAlign="center",e.textBaseline="top",o.y+=r):Math.sin(2*i)>0?(e.textAlign="right",e.textBaseline="middle"):(e.textAlign="left",e.textBaseline="middle"),e.fillStyle=this.axisColor,e.fillText(n,o.x,o.y)},r.prototype.drawAxisLabelZ=function(e,t,n,i){void 0===i&&(i=0);var r=this._convert3Dto2D(t);e.textAlign="right",e.textBaseline="middle",e.fillStyle=this.axisColor,e.fillText(n,r.x-i,r.y)},r.prototype._line3d=function(e,t,n,i){var r=this._convert3Dto2D(t),o=this._convert3Dto2D(n);this._line(e,r,o,i)},r.prototype._redrawAxis=function(){var e,t,n,i,r,o,a,s,u,l,c,d=this._getContext();d.font=24/this.camera.getArmLength()+"px arial";var h=.025/this.scale.x,v=.025/this.scale.y,m=5/this.camera.getArmLength(),g=this.camera.getArmRotation().horizontal,b=new p(Math.cos(g),Math.sin(g)),_=this.xRange,w=this.yRange,x=this.zRange;for(d.lineWidth=1,i=void 0===this.defaultXStep,n=new y(_.min,_.max,this.xStep,i),n.start(!0);!n.end();){var T=n.getCurrent();if(this.showGrid?(e=new f(T,w.min,x.min),t=new f(T,w.max,x.min),this._line3d(d,e,t,this.gridColor)):this.showXAxis&&(e=new f(T,w.min,x.min),t=new f(T,w.min+h,x.min),this._line3d(d,e,t,this.axisColor),e=new f(T,w.max,x.min),t=new f(T,w.max-h,x.min),this._line3d(d,e,t,this.axisColor)),this.showXAxis){a=b.x>0?w.min:w.max;var E=new f(T,a,x.min),C=" "+this.xValueLabel(T)+" ";this.drawAxisLabelX(d,E,C,g,m)}n.next()}for(d.lineWidth=1,i=void 0===this.defaultYStep,n=new y(w.min,w.max,this.yStep,i),n.start(!0);!n.end();){var O=n.getCurrent();if(this.showGrid?(e=new f(_.min,O,x.min),t=new f(_.max,O,x.min),this._line3d(d,e,t,this.gridColor)):this.showYAxis&&(e=new f(_.min,O,x.min),t=new f(_.min+v,O,x.min),this._line3d(d,e,t,this.axisColor),e=new f(_.max,O,x.min),t=new f(_.max-v,O,x.min),this._line3d(d,e,t,this.axisColor)),this.showYAxis){o=b.y>0?_.min:_.max,E=new f(o,O,x.min);var C=" "+this.yValueLabel(O)+" ";this.drawAxisLabelY(d,E,C,g,m)}n.next()}if(this.showZAxis){for(d.lineWidth=1,i=void 0===this.defaultZStep,n=new y(x.min,x.max,this.zStep,i),n.start(!0),o=b.x>0?_.min:_.max,a=b.y<0?w.min:w.max;!n.end();){var S=n.getCurrent(),k=new f(o,a,S),P=this._convert3Dto2D(k);t=new p(P.x-m,P.y),this._line(d,P,t,this.axisColor);var C=this.zValueLabel(S)+" ";this.drawAxisLabelZ(d,k,C,5),n.next()}d.lineWidth=1,e=new f(o,a,x.min),t=new f(o,a,x.max),this._line3d(d,e,t,this.axisColor)}if(this.showXAxis){var M,N;d.lineWidth=1,M=new f(_.min,w.min,x.min),N=new f(_.max,w.min,x.min),this._line3d(d,M,N,this.axisColor),M=new f(_.min,w.max,x.min),N=new f(_.max,w.max,x.min),this._line3d(d,M,N,this.axisColor)}this.showYAxis&&(d.lineWidth=1,e=new f(_.min,w.min,x.min),t=new f(_.min,w.max,x.min),this._line3d(d,e,t,this.axisColor),e=new f(_.max,w.min,x.min),t=new f(_.max,w.max,x.min),this._line3d(d,e,t,this.axisColor));var D=this.xLabel;D.length>0&&this.showXAxis&&(c=.1/this.scale.y,o=(_.max+3*_.min)/4,a=b.x>0?w.min-c:w.max+c,r=new f(o,a,x.min),this.drawAxisLabelX(d,r,D,g));var I=this.yLabel;I.length>0&&this.showYAxis&&(l=.1/this.scale.x,o=b.y>0?_.min-l:_.max+l,a=(w.max+3*w.min)/4,r=new f(o,a,x.min),this.drawAxisLabelY(d,r,I,g));var L=this.zLabel;L.length>0&&this.showZAxis&&(u=30,o=b.x>0?_.min:_.max,a=b.y<0?w.min:w.max,s=(x.max+3*x.min)/4,r=new f(o,a,s),this.drawAxisLabelZ(d,r,L,u))},r.prototype._hsv2rgb=function(e,t,n){var i,r,o,a,s,u;switch(a=n*t,s=Math.floor(e/60),u=a*(1-Math.abs(e/60%2-1)),s){case 0:i=a,r=u,o=0;break;case 1:i=u,r=a,o=0;break;case 2:i=0,r=a,o=u;break;case 3:i=0,r=u,o=a;break;case 4:i=u,r=0,o=a;break;case 5:i=a,r=0,o=u;break;default:i=0,r=0,o=0}return"RGB("+parseInt(255*i)+","+parseInt(255*r)+","+parseInt(255*o)+")"},r.prototype._getStrokeWidth=function(e){return void 0!==e?this.showPerspective?1/-e.trans.z*this.dataColor.strokeWidth:-(this.eye.z/this.camera.getArmLength())*this.dataColor.strokeWidth:this.dataColor.strokeWidth},r.prototype._redrawBar=function(e,t,n,i,r,o){var a,s,u=this,l=t.point,c=this.zRange.min,d=[{point:new f(l.x-n,l.y-i,l.z)},{point:new f(l.x+n,l.y-i,l.z)},{point:new f(l.x+n,l.y+i,l.z)},{point:new f(l.x-n,l.y+i,l.z)}],h=[{point:new f(l.x-n,l.y-i,c)},{point:new f(l.x+n,l.y-i,c)},{point:new f(l.x+n,l.y+i,c)},{point:new f(l.x-n,l.y+i,c)}];d.forEach(function(e){e.screen=u._convert3Dto2D(e.point)}),h.forEach(function(e){e.screen=u._convert3Dto2D(e.point)});var p=[{corners:d,center:f.avg(h[0].point,h[2].point)},{corners:[d[0],d[1],h[1],h[0]],center:f.avg(h[1].point,h[0].point)},{corners:[d[1],d[2],h[2],h[1]],center:f.avg(h[2].point,h[1].point)},{corners:[d[2],d[3],h[3],h[2]],center:f.avg(h[3].point,h[2].point)},{corners:[d[3],d[0],h[0],h[3]],center:f.avg(h[0].point,h[3].point)}];for(t.surfaces=p,a=0;a0}if(s){var h,p=(t.point.z+n.point.z+i.point.z+r.point.z)/4,v=240*(1-(p-this.zRange.min)*this.scale.z/this.verticalRatio),m=1;this.showShadow?(h=Math.min(1+c.x/d/2,1),o=this._hsv2rgb(v,m,h),a=o):(h=1,o=this._hsv2rgb(v,m,h),a=this.axisColor)}else o="gray",a=this.axisColor;e.lineWidth=this._getStrokeWidth(t);var y=[t,n,r,i];this._polygon(e,y,o,a)}},r.prototype._drawGridLine=function(e,t,n){if(void 0!==t&&void 0!==n){var i=(t.point.z+n.point.z)/2,r=240*(1-(i-this.zRange.min)*this.scale.z/this.verticalRatio);e.lineWidth=2*this._getStrokeWidth(t),e.strokeStyle=this._hsv2rgb(r,1,1),this._line(e,t.screen,n.screen)}},r.prototype._redrawGridGraphPoint=function(e,t){this._drawGridLine(e,t,t.pointRight),this._drawGridLine(e,t,t.pointTop)},r.prototype._redrawLineGraphPoint=function(e,t){void 0!==t.pointNext&&(e.lineWidth=this._getStrokeWidth(t),e.strokeStyle=this.dataColor.stroke,this._line(e,t.screen,t.pointNext.screen))},r.prototype._redrawDataGraph=function(){var e,t=this._getContext();if(!(void 0===this.dataPoints||this.dataPoints.length<=0))for(this._calcTranslations(this.dataPoints),e=0;e0?1:e<0?-1:0}var i=t[0],r=t[1],o=t[2],a=n((r.x-i.x)*(e.y-i.y)-(r.y-i.y)*(e.x-i.x)),s=n((o.x-r.x)*(e.y-r.y)-(o.y-r.y)*(e.x-r.x)),u=n((i.x-o.x)*(e.y-o.y)-(i.y-o.y)*(e.x-o.x));return!(0!=a&&0!=s&&a!=s||0!=s&&0!=u&&s!=u||0!=a&&0!=u&&a!=u)},r.prototype._dataPointFromXY=function(e,t){var n,i=100,o=null,a=null,s=null,u=new p(e,t);if(this.style===r.STYLE.BAR||this.style===r.STYLE.BARCOLOR||this.style===r.STYLE.BARSIZE)for(n=this.dataPoints.length-1;n>=0;n--){o=this.dataPoints[n];var l=o.surfaces;if(l)for(var c=l.length-1;c>=0;c--){var d=l[c],h=d.corners,f=[h[0].screen,h[1].screen,h[2].screen],v=[h[2].screen,h[3].screen,h[0].screen];if(this._insideTriangle(u,f)||this._insideTriangle(u,v))return o}}else for(n=0;n"+this.xLabel+":"+e.point.x+""+this.yLabel+":"+e.point.y+""+this.zLabel+":"+e.point.z+"",t.style.left="0",t.style.top="0",this.frame.appendChild(t),this.frame.appendChild(n),this.frame.appendChild(i);var r=t.offsetWidth,o=t.offsetHeight,a=n.offsetHeight,s=i.offsetWidth,l=i.offsetHeight,c=e.screen.x-r/2;c=Math.min(Math.max(c,10),this.frame.clientWidth-10-r),n.style.left=e.screen.x+"px",n.style.top=e.screen.y-a+"px",t.style.left=c+"px",t.style.top=e.screen.y-a-o+"px",i.style.left=e.screen.x-s/2+"px",i.style.top=e.screen.y-l/2+"px"},r.prototype._hideTooltip=function(){if(this.tooltip){this.tooltip.dataPoint=null;for(var e in this.tooltip.dom)if(this.tooltip.dom.hasOwnProperty(e)){var t=this.tooltip.dom[e];t&&t.parentNode&&t.parentNode.removeChild(t)}}},r.prototype.setCameraPosition=function(e){b.setCameraPosition(e,this),this.redraw()},r.prototype.setSize=function(e,t){this._setSize(e,t),this.redraw()},e.exports=r},function(e,t,n){e.exports={default:n(96),__esModule:!0}},function(e,t,n){n(97),e.exports=n(17).Object.assign},function(e,t,n){var i=n(15);i(i.S+i.F,"Object",{assign:n(98)})},function(e,t,n){var i=n(35),r=n(73),o=n(74),a=n(49),s=n(10),u=Object.assign;e.exports=!u||n(26)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=i})?function(e,t){for(var n=a(e),u=arguments.length,l=1,c=r.f,d=o.f;u>l;)for(var h,f=s(arguments[l++]),p=c?i(f).concat(c(f)):i(f),v=p.length,m=0;v>m;)d.call(f,h=p[m++])&&(n[h]=f[h]);return n}:u},function(e,t){function n(e){if(e)return i(e)}function i(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},n.prototype.once=function(e,t){function n(){i.off(e,n),t.apply(this,arguments)}var i=this;return this._callbacks=this._callbacks||{},n.fn=t,this.on(e,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1==arguments.length)return delete this._callbacks[e],this;for(var i,r=0;ro&&(e=i(e)*o),n(t)>o&&(t=i(t)*o),this.cameraOffset.x=e,this.cameraOffset.y=t,this.calculateCameraOrientation()},r.prototype.getOffset=function(e,t){return this.cameraOffset},r.prototype.setArmLocation=function(e,t,n){this.armLocation.x=e,this.armLocation.y=t,this.armLocation.z=n,this.calculateCameraOrientation()},r.prototype.setArmRotation=function(e,t){void 0!==e&&(this.armRotation.horizontal=e),void 0!==t&&(this.armRotation.vertical=t,this.armRotation.vertical<0&&(this.armRotation.vertical=0),this.armRotation.vertical>.5*Math.PI&&(this.armRotation.vertical=.5*Math.PI)),void 0===e&&void 0===t||this.calculateCameraOrientation()},r.prototype.getArmRotation=function(){var e={};return e.horizontal=this.armRotation.horizontal,e.vertical=this.armRotation.vertical,e},r.prototype.setArmLength=function(e){void 0!==e&&(this.armLength=e,this.armLength<.71&&(this.armLength=.71),this.armLength>5&&(this.armLength=5),this.setOffset(this.cameraOffset.x,this.cameraOffset.y),this.calculateCameraOrientation())},r.prototype.getArmLength=function(){return this.armLength},r.prototype.getCameraLocation=function(){return this.cameraLocation},r.prototype.getCameraRotation=function(){return this.cameraRotation},r.prototype.calculateCameraOrientation=function(){this.cameraLocation.x=this.armLocation.x-this.armLength*Math.sin(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.y=this.armLocation.y-this.armLength*Math.cos(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.z=this.armLocation.z+this.armLength*Math.sin(this.armRotation.vertical),this.cameraRotation.x=Math.PI/2-this.armRotation.vertical,this.cameraRotation.y=0,this.cameraRotation.z=-this.armRotation.horizontal;var e=this.cameraRotation.x,t=(this.cameraRotation.y,this.cameraRotation.z),n=this.cameraOffset.x,i=this.cameraOffset.y,r=Math.sin,o=Math.cos;this.cameraLocation.x=this.cameraLocation.x+n*o(t)+i*-r(t)*o(e),this.cameraLocation.y=this.cameraLocation.y+n*r(t)+i*o(t)*o(e),this.cameraLocation.z=this.cameraLocation.z+i*r(e)},e.exports=r},function(e,t,n){e.exports={default:n(104),__esModule:!0}},function(e,t,n){n(105),e.exports=n(17).Math.sign},function(e,t,n){var i=n(15);i(i.S,"Math",{sign:n(106)})},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){function i(e,t,n){this.data=e,this.column=t,this.graph=n,this.index=void 0,this.value=void 0,this.values=n.getDistinctValues(e.get(),this.column),this.values.sort(function(e,t){return e>t?1:e0&&this.selectValue(0),this.dataPoints=[],this.loaded=!1,this.onLoadCallback=void 0,n.animationPreload?(this.loaded=!1,this.loadInBackground()):this.loaded=!0}var r=n(93);i.prototype.isLoaded=function(){return this.loaded},i.prototype.getLoadedProgress=function(){for(var e=this.values.length,t=0;this.dataPoints[t];)t++;return Math.round(t/e*100)},i.prototype.getLabel=function(){return this.graph.filterLabel},i.prototype.getColumn=function(){return this.column},i.prototype.getSelectedValue=function(){if(void 0!==this.index)return this.values[this.index]},i.prototype.getValues=function(){return this.values},i.prototype.getValue=function(e){if(e>=this.values.length)throw new Error("Index out of range");return this.values[e]},i.prototype._getDataPoints=function(e){if(void 0===e&&(e=this.index),void 0===e)return[];var t;if(this.dataPoints[e])t=this.dataPoints[e];else{var n={};n.column=this.column,n.value=this.values[e];var i=new r(this.data,{filter:function(e){return e[n.column]==n.value}}).get();t=this.graph._getDataPoints(i),this.dataPoints[e]=t}return t},i.prototype.setOnLoadCallback=function(e){this.onLoadCallback=e},i.prototype.selectValue=function(e){if(e>=this.values.length)throw new Error("Index out of range");this.index=e,this.value=this.values[e]},i.prototype.loadInBackground=function(e){void 0===e&&(e=0);var t=this.graph.frame;if(e0&&(e--,this.setIndex(e))},i.prototype.next=function(){var e=this.getIndex();e0?this.setIndex(0):this.index=void 0},i.prototype.setIndex=function(e){if(!(ethis.values.length-1&&(i=this.values.length-1),i},i.prototype.indexToLeft=function(e){var t=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10,n=e/(this.values.length-1)*t,i=n+3;return i},i.prototype._onMouseMove=function(e){var t=e.clientX-this.startClientX,n=this.startSlideX+t,i=this.leftToIndex(n);this.setIndex(i),r.preventDefault()},i.prototype._onMouseUp=function(e){this.frame.style.cursor="auto",r.removeEventListener(document,"mousemove",this.onmousemove),r.removeEventListener(document,"mouseup",this.onmouseup),r.preventDefault()},e.exports=i},function(e,t){function n(e,t,n,i){this._start=0,this._end=0,this._step=1,this.prettyStep=!0,this.precision=5,this._current=0,this.setRange(e,t,n,i)}n.prototype.isNumeric=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},n.prototype.setRange=function(e,t,n,i){if(!this.isNumeric(e))throw new Error("Parameter 'start' is not numeric; value: "+e);if(!this.isNumeric(t))throw new Error("Parameter 'end' is not numeric; value: "+e);if(!this.isNumeric(n))throw new Error("Parameter 'step' is not numeric; value: "+e);this._start=e?e:0,this._end=t?t:0,this.setStep(n,i)},n.prototype.setStep=function(e,t){void 0===e||e<=0||(void 0!==t&&(this.prettyStep=t),this.prettyStep===!0?this._step=n.calculatePrettyStep(e):this._step=e)},n.calculatePrettyStep=function(e){var t=function(e){return Math.log(e)/Math.LN10},n=Math.pow(10,Math.round(t(e))),i=2*Math.pow(10,Math.round(t(e/2))),r=5*Math.pow(10,Math.round(t(e/5))),o=n;return Math.abs(i-e)<=Math.abs(o-e)&&(o=i),Math.abs(r-e)<=Math.abs(o-e)&&(o=r),o<=0&&(o=1),o},n.prototype.getCurrent=function(){return parseFloat(this._current.toPrecision(this.precision))},n.prototype.getStep=function(){return this._step},n.prototype.start=function(e){void 0===e&&(e=!1),this._current=this._start-this._start%this._step,e&&this.getCurrent()this._end},e.exports=n},function(e,t){function n(){this.min=void 0,this.max=void 0}n.prototype.adjust=function(e){void 0!==e&&((void 0===this.min||this.min>e)&&(this.min=e),(void 0===this.max||this.maxn)throw new Error("Passed expansion value makes range invalid");this.min=t,this.max=n}},n.prototype.range=function(){return this.max-this.min},n.prototype.center=function(){return(this.min+this.max)/2},e.exports=n},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function o(e){return void 0===e||""===e||"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function a(e,t){return void 0===e||""===e?t:e+o(t)}function s(e,t,n,i){var r,o;for(var s in n)r=n[s],o=a(i,r),t[o]=e[r]}function u(e,t,n,i){var r,o;for(var s in n)r=n[s],void 0!==e[r]&&(o=a(i,r),t[o]=e[r])}function l(e,t){if(void 0===e||r(e))throw new Error("No DEFAULTS passed");if(void 0===t)throw new Error("No dst passed");k=e,s(e,t,O),s(e,t,S,"default"),d(e,t),t.margin=10,t.showGrayBottom=!1,t.showTooltip=!1,t.onclick_callback=null,t.eye=new T(0,0,-1)}function c(e,t){if(void 0!==e){if(void 0===t)throw new Error("No dst passed");if(void 0===k||r(k))throw new Error("DEFAULTS not set for module Settings");u(e,t,O),u(e,t,S,"default"),d(e,t)}}function d(e,t){void 0!==e.backgroundColor&&m(e.backgroundColor,t),y(e.dataColor,t),v(e.style,t),h(e.showLegend,t),g(e.cameraPosition,t),void 0!==e.tooltip&&(t.showTooltip=e.tooltip),void 0!=e.onclick&&(t.onclick_callback=e.onclick),void 0!==e.tooltipStyle&&w.selectiveDeepExtend(["tooltipStyle"],t,e)}function h(e,t){if(void 0===e){var n=void 0===k.showLegend;if(n){var i=t.style===E.DOTCOLOR||t.style===E.DOTSIZE;t.showLegend=i}}else t.showLegend=e}function f(e){var t=C[e];return void 0===t?-1:t}function p(e){var t=!1;for(var n in E)if(E[n]===e){t=!0;break}return t}function v(e,t){if(void 0!==e){var n;if("string"==typeof e){if(n=f(e),n===-1)throw new Error("Style '"+e+"' is invalid")}else{if(!p(e))throw new Error("Style '"+e+"' is invalid");n=e}t.style=n}}function m(e,t){var n="white",i="gray",r=1;if("string"==typeof e)n=e,i="none",r=0;else{if("object"!==("undefined"==typeof e?"undefined":(0,_.default)(e)))throw new Error("Unsupported type of backgroundColor");void 0!==e.fill&&(n=e.fill),void 0!==e.stroke&&(i=e.stroke),void 0!==e.strokeWidth&&(r=e.strokeWidth)}t.frame.style.backgroundColor=n,t.frame.style.borderColor=i,t.frame.style.borderWidth=r+"px",t.frame.style.borderStyle="solid"}function y(e,t){void 0!==e&&(void 0===t.dataColor&&(t.dataColor={}),"string"==typeof e?(t.dataColor.fill=e,t.dataColor.stroke=e):(e.fill&&(t.dataColor.fill=e.fill),e.stroke&&(t.dataColor.stroke=e.stroke),void 0!==e.strokeWidth&&(t.dataColor.strokeWidth=e.strokeWidth)))}function g(e,t){var n=e;void 0!==n&&(void 0===t.camera&&(t.camera=new x),t.camera.setArmRotation(n.horizontal,n.vertical),t.camera.setArmLength(n.distance))}var b=n(62),_=i(b),w=n(1),x=n(102),T=n(100),E={BAR:0,BARCOLOR:1,BARSIZE:2,DOT:3,DOTLINE:4,DOTCOLOR:5,DOTSIZE:6,GRID:7,LINE:8,SURFACE:9},C={dot:E.DOT,"dot-line":E.DOTLINE,"dot-color":E.DOTCOLOR,"dot-size":E.DOTSIZE,line:E.LINE,grid:E.GRID,surface:E.SURFACE,bar:E.BAR,"bar-color":E.BARCOLOR,"bar-size":E.BARSIZE},O=["width","height","filterLabel","legendLabel","xLabel","yLabel","zLabel","xValueLabel","yValueLabel","zValueLabel","showXAxis","showYAxis","showZAxis","showGrid","showPerspective","showShadow","keepAspectRatio","verticalRatio","dotSizeRatio","showAnimationControls","animationInterval","animationPreload","animationAutoStart","axisColor","gridColor","xCenter","yCenter"],S=["xBarWidth","yBarWidth","valueMin","valueMax","xMin","xMax","xStep","yMin","yMax","yStep","zMin","zMax","zStep"],k=void 0;e.exports.STYLE=E,e.exports.setDefaults=l,e.exports.setOptions=c,e.exports.setCameraPosition=g},function(e,t,n){if("undefined"!=typeof window){var i=n(113),r=window.Hammer||n(114);e.exports=i(r,{preventDefault:"mouse"})}else e.exports=function(){throw Error("hammer.js is only available in a browser, not in node.js.")}},function(e,t,n){var i,r,o;!function(n){r=[],i=n,o="function"==typeof i?i.apply(t,r):i,!(void 0!==o&&(e.exports=o))}(function(){var e=null;return function t(n,i){function r(e){return e.match(/[^ ]+/g)}function o(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var n=!1;t.stopPropagation=function(){n=!0};var i=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof i&&(t.srcEvent.stopPropagation=function(){i(),t.stopPropagation()}),t.firstTarget=e;for(var r=e;r&&!n;){var o=r.hammer;if(o)for(var a,s=0;s0?l._handlers[e]=i:(n.off(e,o),delete l._handlers[e]))}),l},l.emit=function(t,i){e=i.target,n.emit(t,i)},l.destroy=function(){var e=n.element.hammer,t=e.indexOf(l);t!==-1&&e.splice(t,1),e.length||delete n.element.hammer,l._handlers={},n.destroy()},l}})},function(e,t,n){var i;!function(r,o,a,s){function u(e,t,n){return setTimeout(f(e,n),t)}function l(e,t,n){return!!Array.isArray(e)&&(c(e,n[t],n),!0)}function c(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),e.apply(this,arguments)}}function h(e,t,n){var i,r=t.prototype;i=e.prototype=Object.create(r),i.constructor=e,i._super=r,n&&ve(i,n)}function f(e,t){return function(){return e.apply(t,arguments)}}function p(e,t){return typeof e==ge?e.apply(t?t[0]||s:s,t):e}function v(e,t){return e===s?t:e}function m(e,t,n){c(_(t),function(t){e.addEventListener(t,n,!1)})}function y(e,t,n){c(_(t),function(t){e.removeEventListener(t,n,!1)})}function g(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function b(e,t){return e.indexOf(t)>-1}function _(e){return e.trim().split(/\s+/g)}function w(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;in[t]}):i.sort()),i}function E(e,t){for(var n,i,r=t[0].toUpperCase()+t.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=I(t):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=t.center=L(i);t.timeStamp=we(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=F(s,u),t.distance=j(s,u),N(n,t),t.offsetDirection=R(t.deltaX,t.deltaY);var l=A(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=l.x,t.overallVelocityY=l.y,t.overallVelocity=_e(l.x)>_e(l.y)?l.x:l.y,t.scale=a?z(a.pointers,i):1,t.rotation=a?B(a.pointers,i):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,D(n,t);var c=e.element;g(t.srcEvent.target,c)&&(c=t.srcEvent.target),t.target=c}function N(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};t.eventType!==Le&&o.eventType!==Re||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}function D(e,t){var n,i,r,o,a=e.lastInterval||t,u=t.timeStamp-a.timeStamp;if(t.eventType!=je&&(u>Ie||a.velocity===s)){var l=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,d=A(u,l,c);i=d.x,r=d.y,n=_e(d.x)>_e(d.y)?d.x:d.y,o=R(l,c),e.lastInterval=t}else n=a.velocity,i=a.velocityX,r=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=i,t.velocityY=r,t.direction=o}function I(e){for(var t=[],n=0;n=_e(t)?e<0?Be:ze:t<0?He:Ge}function j(e,t,n){n||(n=Ye);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r); +}function F(e,t,n){n||(n=Ye);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}function B(e,t){return F(t[1],t[0],Qe)+F(e[1],e[0],Qe)}function z(e,t){return j(t[0],t[1],Qe)/j(e[0],e[1],Qe)}function H(){this.evEl=Ke,this.evWin=Xe,this.pressed=!1,S.apply(this,arguments)}function G(){this.evEl=Je,this.evWin=et,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function U(){this.evTarget=nt,this.evWin=it,this.started=!1,S.apply(this,arguments)}function W(e,t){var n=x(e.touches),i=x(e.changedTouches);return t&(Re|je)&&(n=T(n.concat(i),"identifier",!0)),[n,i]}function V(){this.evTarget=ot,this.targetIds={},S.apply(this,arguments)}function Y(e,t){var n=x(e.touches),i=this.targetIds;if(t&(Le|Ae)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=x(e.changedTouches),s=[],u=this.target;if(o=n.filter(function(e){return g(e.target,u)}),t===Le)for(r=0;r-1&&i.splice(e,1)};setTimeout(r,at)}}function X(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,i=this.state;i<_t&&t(n.options.event+te(i)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),i>=_t&&t(n.options.event+te(i))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=Tt)},canEmit:function(){for(var e=0;et.threshold&&r&t.direction},attrTest:function(e){return re.prototype.attrTest.call(this,e)&&(this.state>||!(this.state>)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ne(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),h(ae,re,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ft]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state>)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),h(se,ee,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[dt]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distancet.time;if(this._input=e,!i||!n||e.eventType&(Re|je)&&!r)this.reset();else if(e.eventType&Le)this.reset(),this._timer=u(function(){this.state=wt,this.tryEmit()},t.time,this);else if(e.eventType&Re)return wt;return Tt},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===wt&&(e&&e.eventType&Re?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=we(),this.manager.emit(this.options.event,this._input)))}}),h(ue,re,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ft]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state>)}}),h(le,re,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Ue|We,pointers:1},getTouchAction:function(){return oe.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Ue|We)?t=e.overallVelocity:n&Ue?t=e.overallVelocityX:n&We&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&_e(t)>this.options.velocity&&e.eventType&Re},emit:function(e){var t=ne(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),h(ce,ee,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ht]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distanceo)&&(o=n)}),null!==r&&null!==o){var a=(r+o)/2,s=Math.max(this.range.end-this.range.start,1.1*(o-r)),u=!t||void 0===t.animation||t.animation;this.range.setRange(a-s/2,a+s/2,u)}}},r.prototype.fit=function(e){var t,n=!e||void 0===e.animation||e.animation,i=this.itemsData&&this.itemsData.getDataSet();1===i.length&&void 0===i.get()[0].end?(t=this.getDataRange(),this.moveTo(t.min.valueOf(),{animation:n})):(t=this.getItemRange(),this.range.setRange(t.min,t.max,n))},r.prototype.getItemRange=function(){var e=this.getDataRange(),t=null!==e.min?e.min.valueOf():null,n=null!==e.max?e.max.valueOf():null,i=null,r=null;if(null!=t&&null!=n){var o=function(e){return c.convert(e.data.start,"Date").valueOf()},a=function(e){var t=void 0!=e.data.end?e.data.end:e.data.start;return c.convert(t,"Date").valueOf()},s=n-t;s<=0&&(s=10);var u=s/this.props.center.width;if(c.forEach(this.itemSet.items,function(e){e.groupShowing&&(e.show(),e.repositionX());var s=o(e),l=a(e);if(this.options.rtl)var c=s-(e.getWidthRight()+10)*u,d=l+(e.getWidthLeft()+10)*u;else var c=s-(e.getWidthLeft()+10)*u,d=l+(e.getWidthRight()+10)*u;cn&&(n=d,r=e)}.bind(this)),i&&r){var l=i.getWidthLeft()+10,d=r.getWidthRight()+10,h=this.props.center.width-l-d;h>0&&(this.options.rtl?(t=o(i)-d*s/h,n=a(r)+l*s/h):(t=o(i)-l*s/h,n=a(r)+d*s/h))}}return{min:null!=t?new Date(t):null,max:null!=n?new Date(n):null}},r.prototype.getDataRange=function(){var e=null,t=null,n=this.itemsData&&this.itemsData.getDataSet();return n&&n.forEach(function(n){var i=c.convert(n.start,"Date").valueOf(),r=c.convert(void 0!=n.end?n.end:n.start,"Date").valueOf();(null===e||it)&&(t=r)}),{min:null!=e?new Date(e):null,max:null!=t?new Date(t):null}},r.prototype.getEventProperties=function(e){var t=e.center?e.center.x:e.clientX,n=e.center?e.center.y:e.clientY;if(this.options.rtl)var i=c.getAbsoluteRight(this.dom.centerContainer)-t;else var i=t-c.getAbsoluteLeft(this.dom.centerContainer);var r=n-c.getAbsoluteTop(this.dom.centerContainer),o=this.itemSet.itemFromTarget(e),a=this.itemSet.groupFromTarget(e),s=y.customTimeFromTarget(e),u=this.itemSet.options.snap||null,l=this.body.util.getScale(),d=this.body.util.getStep(),h=this._toTime(i),f=u?u(h,l,d):h,p=c.getTarget(e),v=null;return null!=o?v="item":null!=s?v="custom-time":c.hasParent(p,this.timeAxis.dom.foreground)?v="axis":this.timeAxis2&&c.hasParent(p,this.timeAxis2.dom.foreground)?v="axis":c.hasParent(p,this.itemSet.dom.labelSet)?v="group-label":c.hasParent(p,this.currentTime.bar)?v="current-time":c.hasParent(p,this.dom.center)&&(v="background"),{event:e,item:o?o.id:null,group:a?a.groupId:null,what:v,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:i,y:r,time:h,snappedTime:f}},r.prototype.toggleRollingMode=function(){this.range.rolling?this.range.stopRolling():(void 0==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())},e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(90),o=i(r),a=n(62),s=i(a),u=n(119),l=i(u),c=n(120),d=i(c),h=n(124),f=i(h),p=n(1),v=function(){function e(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;(0,l.default)(this,e),this.parent=t,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},p.extend(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new f.default(r),this.wrapper=void 0}return(0,d.default)(e,[{key:"setOptions",value:function(e){if(void 0!==e){this.popupHistory={},this._removePopup();var t=!0;"string"==typeof e?this.options.filter=e:e instanceof Array?this.options.filter=e.join():"object"===("undefined"==typeof e?"undefined":(0,s.default)(e))?(void 0!==e.container&&(this.options.container=e.container),void 0!==e.filter&&(this.options.filter=e.filter),void 0!==e.showButton&&(this.options.showButton=e.showButton),void 0!==e.enabled&&(t=e.enabled)):"boolean"==typeof e?(this.options.filter=!0,t=e):"function"==typeof e&&(this.options.filter=e,t=!0),this.options.filter===!1&&(t=!1),this.options.enabled=t}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){var e=this;this._clean(),this.changedOptions=[];var t=this.options.filter,n=0,i=!1;for(var r in this.configureOptions)this.configureOptions.hasOwnProperty(r)&&(this.allowCreation=!1,i=!1,"function"==typeof t?(i=t(r,[]),i=i||this._handleObject(this.configureOptions[r],[r],!0)):t!==!0&&t.indexOf(r)===-1||(i=!0),i!==!1&&(this.allowCreation=!0,n>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),n++);if(this.options.showButton===!0){var o=document.createElement("div");o.className="vis-configuration vis-config-button",o.innerHTML="generate options",o.onclick=function(){e._printOptions()},o.onmouseover=function(){o.className="vis-configuration vis-config-button hover"},o.onmouseout=function(){o.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(o)}this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e1?n-1:0),r=1;r2&&void 0!==arguments[2]&&arguments[2],i=document.createElement("div");return i.className="vis-configuration vis-config-label vis-config-s"+t.length,n===!0?i.innerHTML=""+e+":":i.innerHTML=e+":",i}},{key:"_makeDropdown",value:function(e,t,n){var i=document.createElement("select");i.className="vis-configuration vis-config-select";var r=0;void 0!==t&&e.indexOf(t)!==-1&&(r=e.indexOf(t));for(var o=0;oo&&1!==o&&(s.max=Math.ceil(t*c),l=s.max,u="range increased"),s.value=t}else s.value=i;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=s.value;var h=this;s.onchange=function(){d.value=this.value,h._update(Number(this.value),n)},s.oninput=function(){d.value=this.value};var f=this._makeLabel(n[n.length-1],n),p=this._makeItem(n,f,s,d); +""!==u&&this.popupHistory[p]!==l&&(this.popupHistory[p]=l,this._setupPopup(u,p))}},{key:"_setupPopup",value:function(e,t){var n=this;if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!1,r=this.options.filter,o=!1;for(var a in e)if(e.hasOwnProperty(a)){i=!0;var s=e[a],u=p.copyAndExtendArray(t,a);if("function"==typeof r&&(i=r(a,t),i===!1&&!(s instanceof Array)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,i=this._handleObject(s,u,!0),this.allowCreation=n===!1)),i!==!1){o=!0;var l=this._getValue(u);if(s instanceof Array)this._handleArray(s,l,u);else if("string"==typeof s)this._makeTextInput(s,l,u);else if("boolean"==typeof s)this._makeCheckbox(s,l,u);else if(s instanceof Object){var c=!0;if(t.indexOf("physics")!==-1&&this.moduleOptions.physics.solver!==a&&(c=!1),c===!0)if(void 0!==s.enabled){var d=p.copyAndExtendArray(u,"enabled"),h=this._getValue(d);if(h===!0){var f=this._makeLabel(a,u,!0);this._makeItem(u,f),o=this._handleObject(s,u)||o}else this._makeCheckbox(s,h,u)}else{var v=this._makeLabel(a,u,!0);this._makeItem(u,v),o=this._handleObject(s,u)||o}}else console.error("dont know how to handle",s,a,u)}}return o}},{key:"_handleArray",value:function(e,t,n){"string"==typeof e[0]&&"color"===e[0]?(this._makeColorField(e,t,n),e[1]!==t&&this.changedOptions.push({path:n,value:t})):"string"==typeof e[0]?(this._makeDropdown(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:t})):"number"==typeof e[0]&&(this._makeRange(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:Number(t)}))}},{key:"_update",value:function(e,t){var n=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n;e="true"===e||e,e="false"!==e&&e;for(var r=0;rvar options = "+(0,o.default)(e,null,2)+""}},{key:"getOptions",value:function(){for(var e={},t=0;t0&&void 0!==arguments[0]?arguments[0]:1;(0,s.default)(this,e),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return(0,l.default)(e,[{key:"insertTo",value:function(e){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if("function"!=typeof e)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=e}},{key:"setCloseCallback",value:function(e){if("function"!=typeof e)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=e}},{key:"_isColorString",value:function(e){var t={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"};if("string"==typeof e)return t[e]}},{key:"setColor",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==e){var n=void 0,i=this._isColorString(e);if(void 0!==i&&(e=i),h.isString(e)===!0){if(h.isValidRGB(e)===!0){var r=e.substr(4).substr(0,e.length-5).split(",");n={r:r[0],g:r[1],b:r[2],a:1}}else if(h.isValidRGBA(e)===!0){var a=e.substr(5).substr(0,e.length-6).split(",");n={r:a[0],g:a[1],b:a[2],a:a[3]}}else if(h.isValidHex(e)===!0){var s=h.hexToRGB(e);n={r:s.r,g:s.g,b:s.b,a:1}}}else if(e instanceof Object&&void 0!==e.r&&void 0!==e.g&&void 0!==e.b){var u=void 0!==e.a?e.a:"1.0";n={r:e.r,g:e.g,b:e.b,a:u}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+(0,o.default)(e));this._setColor(n,t)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t===!0&&(this.previousColor=h.extend({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",setTimeout(function(){void 0!==e.closeCallback&&(e.closeCallback(),e.closeCallback=void 0)},0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t===!0&&(this.initialColor=h.extend({},e)),this.color=e;var n=h.RGBToHSV(e.r,e.g,e.b),i=2*Math.PI,r=this.r*n.s,o=this.centerCoordinates.x+r*Math.sin(i*n.h),a=this.centerCoordinates.y+r*Math.cos(i*n.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=a-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var t=h.RGBToHSV(this.color.r,this.color.g,this.color.b);t.v=e/100;var n=h.HSVToRGB(t.h,t.s,t.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,t=h.RGBToHSV(e.r,e.g,e.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var i=this.colorPickerCanvas.clientWidth,r=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,i,r),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-t.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),n.fill(),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var e=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(t)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(e){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(e){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var n=this;this.opacityRange.onchange=function(){n._setOpacity(this.value)},this.opacityRange.oninput=function(){n._setOpacity(this.value)},this.brightnessRange.onchange=function(){n._setBrightness(this.value)},this.brightnessRange.oninput=function(){n._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=this._hide.bind(this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=this._apply.bind(this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=this._save.bind(this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=this._loadLast.bind(this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new c(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),d.onTouch(this.hammer,function(t){e._moveSelector(t)}),this.hammer.on("tap",function(t){e._moveSelector(t)}),this.hammer.on("panstart",function(t){e._moveSelector(t)}),this.hammer.on("panmove",function(t){e._moveSelector(t)}),this.hammer.on("panend",function(t){e._moveSelector(t)})}},{key:"_generateHueCircle",value:function(){if(this.generated===!1){var e=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var t=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,t,n);var i=void 0,r=void 0,o=void 0,a=void 0;this.centerCoordinates={x:.5*t,y:.5*n},this.r=.49*t;var s=2*Math.PI/360,u=1/360,l=1/this.r,c=void 0;for(o=0;o<360;o++)for(a=0;ao.distance?console.log('%cUnknown option detected: "'+t+'" in '+e.printLocation(r.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(o.path,o.closestMatch,""),y):r.distance<=a?console.log('%cUnknown option detected: "'+t+'". Did you mean "'+r.closestMatch+'"?'+e.printLocation(r.path,t),y):console.log('%cUnknown option detected: "'+t+'". Did you mean one of these: '+e.print((0,l.default)(n))+e.printLocation(i,t),y),v=!0}},{key:"findInOptions",value:function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[],u=t.toLowerCase(),l=void 0;for(var c in n){var d=void 0;if(void 0!==n[c].__type__&&r===!0){var h=e.findInOptions(t,n[c],p.copyAndExtendArray(i,c));o>h.distance&&(a=h.closestMatch,s=h.path,o=h.distance,l=h.indexMatch)}else c.toLowerCase().indexOf(u)!==-1&&(l=c),d=e.levenshteinDistance(t,c),o>d&&(a=c,s=p.copyArray(i),o=d)}return{closestMatch:a,path:s,distance:o,indexMatch:l}}},{key:"printLocation",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",i="\n\n"+n+"options = {\n",r=0;r1e3&&(n=1e3),t.body.dom.rollingModeBtn.style.visibility="hidden",t.currentTimeTimer=setTimeout(e,n)}var t=this;e()},r.prototype.stopRolling=function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")},r.prototype.setRange=function(e,t,n,i,r){i!==!0&&(i=!1);var o=void 0!=e?h.convert(e,"Date").valueOf():null,a=void 0!=t?h.convert(t,"Date").valueOf():null;if(this._cancelAnimation(),n){var u=this,c=this.start,f=this.end,p="object"===("undefined"==typeof n?"undefined":(0,d.default)(n))&&"duration"in n?n.duration:500,m="object"===("undefined"==typeof n?"undefined":(0,d.default)(n))&&"easingFunction"in n?n.easingFunction:"easeInOutQuad",y=h.easingFunctions[m];if(!y)throw new Error("Unknown easing function "+(0,l.default)(m)+". Choose from: "+(0,s.default)(h.easingFunctions).join(", "));var g=(new Date).valueOf(),b=!1,_=function e(){if(!u.props.touch.dragging){var t=(new Date).valueOf(),n=t-g,s=y(n/p),l=n>p,d=l||null===o?o:c+(o-c)*s,h=l||null===a?a:f+(a-f)*s;w=u._applyRange(d,h),v.updateHiddenDates(u.options.moment,u.body,u.options.hiddenDates),b=b||w;var m={start:new Date(u.start),end:new Date(u.end),byUser:i,event:r};w&&u.body.emitter.emit("rangechange",m),l?b&&u.body.emitter.emit("rangechanged",m):u.animationTimer=setTimeout(e,20)}};return _()}var w=this._applyRange(o,a);if(v.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),w){var x={start:new Date(this.start),end:new Date(this.end),byUser:i,event:r};this.body.emitter.emit("rangechange",x),this.body.emitter.emit("rangechanged",x)}},r.prototype.getMillisecondsPerPixel=function(){return(this.end-this.start)/this.body.dom.center.clientWidth},r.prototype._cancelAnimation=function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)},r.prototype._applyRange=function(e,t){var n,i=null!=e?h.convert(e,"Date").valueOf():this.start,r=null!=t?h.convert(t,"Date").valueOf():this.end,o=null!=this.options.max?h.convert(this.options.max,"Date").valueOf():null,a=null!=this.options.min?h.convert(this.options.min,"Date").valueOf():null;if(isNaN(i)||null===i)throw new Error('Invalid start "'+e+'"');if(isNaN(r)||null===r)throw new Error('Invalid end "'+t+'"');if(ro&&(r=o)),null!==o&&r>o&&(n=r-o,i-=n,r-=n,null!=a&&i=this.start-u&&r<=this.end?(i=this.start,r=this.end):(n=s-(r-i),i-=n/2,r+=n/2)}}if(null!==this.options.zoomMax){var l=parseFloat(this.options.zoomMax);l<0&&(l=0),r-i>l&&(this.end-this.start===l&&ithis.end?(i=this.start,r=this.end):(n=r-i-l,i+=n/2,r-=n/2))}var c=this.start!=i||this.end!=r;return i>=this.start&&i<=this.end||r>=this.start&&r<=this.end||this.start>=i&&this.start<=r||this.end>=i&&this.end<=r||this.body.emitter.emit("checkRangedItems"),this.start=i,this.end=r,c},r.prototype.getRange=function(){return{start:this.start,end:this.end}},r.prototype.conversion=function(e,t){return r.conversion(this.start,this.end,e,t)},r.conversion=function(e,t,n,i){return void 0===i&&(i=0),0!=n&&t-e!=0?{offset:e,scale:n/(t-e-i)}:{offset:0,scale:1}},r.prototype._onDragStart=function(e){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(e)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))},r.prototype._onDrag=function(e){if(e&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var t=this.options.direction;o(t);var n="horizontal"==t?e.deltaX:e.deltaY;n-=this.deltaDifference;var i=this.props.touch.end-this.props.touch.start,r=v.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end);i-=r;var a="horizontal"==t?this.body.domProps.center.width:this.body.domProps.center.height;if(this.options.rtl)var s=n/a*i;else var s=-n/a*i;var u=this.props.touch.start+s,l=this.props.touch.end+s,c=v.snapAwayFromHidden(this.body.hiddenDates,u,this.previousDelta-n,!0),d=v.snapAwayFromHidden(this.body.hiddenDates,l,this.previousDelta-n,!0);if(c!=u||d!=l)return this.deltaDifference+=n,this.props.touch.start=c,this.props.touch.end=d,void this._onDrag(e);this.previousDelta=n,this._applyRange(u,l);var h=new Date(this.start),f=new Date(this.end);this.body.emitter.emit("rangechange",{start:h,end:f,byUser:!0,event:e}),this.body.emitter.emit("panmove")}},r.prototype._onDragEnd=function(e){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:e}))},r.prototype._onMouseWheel=function(e){var t=0;if(e.wheelDelta?t=e.wheelDelta/120:e.detail&&(t=-e.detail/3),this.options.zoomKey&&!e[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable){if(this.options.horizontalScroll){e.preventDefault();var n=t*(this.end-this.start)/20,i=this.start-n,r=this.end-n;this.setRange(i,r,!1,!0,e)}}else if(this.options.zoomable&&this.options.moveable&&this._isInsideRange(e)&&t){var o;o=t<0?1-t/5:1/(1+t/5);var a;if(this.rolling)a=(this.start+this.end)/2;else{var s=this.getPointer({x:e.clientX,y:e.clientY},this.body.dom.center);a=this._pointerToDate(s)}this.zoom(o,a,t,e),e.preventDefault(); +}},r.prototype._onTouch=function(e){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.scaleOffset=0,this.deltaDifference=0},r.prototype._onPinch=function(e){if(this.options.zoomable&&this.options.moveable){this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(e.center,this.body.dom.center)),this.stopRolling();var t=1/(e.scale+this.scaleOffset),n=this._pointerToDate(this.props.touch.center),i=v.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),r=v.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,n),o=i-r,a=n-r+(this.props.touch.start-(n-r))*t,s=n+o+(this.props.touch.end-(n+o))*t;this.startToFront=1-t<=0,this.endToFront=t-1<=0;var u=v.snapAwayFromHidden(this.body.hiddenDates,a,1-t,!0),l=v.snapAwayFromHidden(this.body.hiddenDates,s,t-1,!0);u==a&&l==s||(this.props.touch.start=u,this.props.touch.end=l,this.scaleOffset=1-e.scale,a=u,s=l),this.setRange(a,s,!1,!0,e),this.startToFront=!1,this.endToFront=!0}},r.prototype._isInsideRange=function(e){var t=e.center?e.center.x:e.clientX;if(this.options.rtl)var n=t-h.getAbsoluteLeft(this.body.dom.centerContainer);else var n=h.getAbsoluteRight(this.body.dom.centerContainer)-t;var i=this.body.util.toTime(n);return i>=this.start&&i<=this.end},r.prototype._pointerToDate=function(e){var t,n=this.options.direction;if(o(n),"horizontal"==n)return this.body.util.toTime(e.x).valueOf();var i=this.body.domProps.center.height;return t=this.conversion(i),e.y/t.scale+t.offset},r.prototype.getPointer=function(e,t){return this.options.rtl?{x:h.getAbsoluteRight(t)-e.x,y:e.y-h.getAbsoluteTop(t)}:{x:e.x-h.getAbsoluteLeft(t),y:e.y-h.getAbsoluteTop(t)}},r.prototype.zoom=function(e,t,n,i){null==t&&(t=(this.start+this.end)/2);var r=v.getHiddenDurationBetween(this.body.hiddenDates,this.start,this.end),o=v.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this,t),a=r-o,s=t-o+(this.start-(t-o))*e,u=t+a+(this.end-(t+a))*e;this.startToFront=!(n>0),this.endToFront=!(-n>0);var l=v.snapAwayFromHidden(this.body.hiddenDates,s,n,!0),c=v.snapAwayFromHidden(this.body.hiddenDates,u,-n,!0);l==s&&c==u||(s=l,u=c),this.setRange(s,u,!1,!0,i),this.startToFront=!1,this.endToFront=!0},r.prototype.move=function(e){var t=this.end-this.start,n=this.start+t*e,i=this.end+t*e;this.start=n,this.end=i},r.prototype.moveTo=function(e){var t=(this.start+this.end)/2,n=t-e,i=this.start-n,r=this.end-n;this.setRange(i,r,!1,!0,null)},e.exports=r},function(e,t,n){function i(e,t){this.options=null,this.props=null}var r=n(1);i.prototype.setOptions=function(e){e&&r.extend(this.options,e)},i.prototype.redraw=function(){return!1},i.prototype.destroy=function(){},i.prototype._isResized=function(){var e=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,e},e.exports=i},function(e,t){t.convertHiddenOptions=function(e,n,i){if(i&&!Array.isArray(i))return t.convertHiddenOptions(e,n,[i]);if(n.hiddenDates=[],i&&1==Array.isArray(i)){for(var r=0;r=4*s){var h=0,f=o.clone();switch(i[u].repeat){case"daily":l.day()!=c.day()&&(h=1),l.dayOfYear(r.dayOfYear()),l.year(r.year()),l.subtract(7,"days"),c.dayOfYear(r.dayOfYear()),c.year(r.year()),c.subtract(7-h,"days"),f.add(1,"weeks");break;case"weekly":var p=c.diff(l,"days"),v=l.day();l.date(r.date()),l.month(r.month()),l.year(r.year()),c=l.clone(),l.day(v),c.day(v),c.add(p,"days"),l.subtract(1,"weeks"),c.subtract(1,"weeks"),f.add(1,"weeks");break;case"monthly":l.month()!=c.month()&&(h=1),l.month(r.month()),l.year(r.year()),l.subtract(1,"months"),c.month(r.month()),c.year(r.year()),c.subtract(1,"months"),c.add(h,"months"),f.add(1,"months");break;case"yearly":l.year()!=c.year()&&(h=1),l.year(r.year()),l.subtract(1,"years"),c.year(r.year()),c.subtract(1,"years"),c.add(h,"years"),f.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",i[u].repeat)}for(;l=t[i].start&&t[r].end<=t[i].end?t[r].remove=!0:t[r].start>=t[i].start&&t[r].start<=t[i].end?(t[i].end=t[r].end,t[r].remove=!0):t[r].end>=t[i].start&&t[r].end<=t[i].end&&(t[i].start=t[r].start,t[r].remove=!0));for(var i=0;i=a&&re.range.end){var u={start:e.range.start,end:n};n=t.correctTimeForHidden(e.options.moment,e.body.hiddenDates,u,n);var r=e.range.conversion(i,a);return(n.valueOf()-r.offset)*r.scale}n=t.correctTimeForHidden(e.options.moment,e.body.hiddenDates,e.range,n);var r=e.range.conversion(i,a);return(n.valueOf()-r.offset)*r.scale},t.toTime=function(e,n,i){if(0==e.body.hiddenDates.length){var r=e.range.conversion(i);return new Date(n/r.scale+r.offset)}var o=t.getHiddenDurationBetween(e.body.hiddenDates,e.range.start,e.range.end),a=e.range.end-e.range.start-o,s=a*n/i,u=t.getAccumulatedHiddenDuration(e.body.hiddenDates,e.range,s),l=new Date(u+s+e.range.start);return l},t.getHiddenDurationBetween=function(e,t,n){for(var i=0,r=0;r=t&&a=t&&a<=n&&(i+=a-o)}return i},t.correctTimeForHidden=function(e,n,i,r){return r=e(r).toDate().valueOf(),r-=t.getHiddenDurationBefore(e,n,i,r)},t.getHiddenDurationBefore=function(e,t,n,i){var r=0;i=e(i).toDate().valueOf();for(var o=0;o=n.start&&s=s&&(r+=s-a)}return r},t.getAccumulatedHiddenDuration=function(e,t,n){for(var i=0,r=0,o=t.start,a=0;a=t.start&&u=n)break;i+=u-s}}return i},t.snapAwayFromHidden=function(e,n,i,r){var o=t.isHidden(n,e);return 1==o.hidden?i<0?1==r?o.startDate-(o.endDate-n)-1:o.startDate-1:1==r?o.endDate+(n-o.startDate)+1:o.endDate+1:n},t.isHidden=function(e,t){for(var n=0;n=i&&e-1||u))return e.dataTransfer.dropEffect="move",u=!0,!1}function r(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation();try{var t=JSON.parse(e.dataTransfer.getData("text"));if(!t.content)return}catch(e){return!1}return u=!1,e.center={x:e.clientX,y:e.clientY},o.itemSet._onAddItem(e),!1}this.dom={},this.dom.container=e,this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",function(){this.initialDrawDone===!0&&this._redraw()}.bind(this)),this.on("touch",this._onTouch.bind(this)),this.on("panmove",this._onDrag.bind(this));var o=this;this._origRedraw=this._redraw.bind(this),this._redraw=h.throttle(this._origRedraw),this.on("_change",function(e){o.itemSet&&o.itemSet.initialItemSetDrawn&&e&&1==e.queue?o._redraw():o._origRedraw()}),this.hammer=new c(this.dom.root);var a=this.hammer.get("pinch").set({enable:!0});d.disablePreventDefaultVertically(a),this.hammer.get("pan").set({threshold:5,direction:c.DIRECTION_HORIZONTAL}),this.listeners={};var s=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];s.forEach(function(e){var t=function(t){o.isActive()&&o.emit(e,t)};o.hammer.on(e,t),o.listeners[e]=t}),d.onTouch(this.hammer,function(e){o.emit("touch",e)}.bind(this)),d.onRelease(this.hammer,function(e){o.emit("release",e)}.bind(this)),this.dom.centerContainer.addEventListener?(this.dom.centerContainer.addEventListener("mousewheel",t.bind(this),!1),this.dom.centerContainer.addEventListener("DOMMouseScroll",t.bind(this),!1)):this.dom.centerContainer.attachEvent("onmousewheel",t.bind(this)),this.dom.left.parentNode.addEventListener("scroll",n.bind(this)),this.dom.right.parentNode.addEventListener("scroll",n.bind(this));var u=!1;if(this.dom.center.addEventListener("dragover",i.bind(this),!1),this.dom.center.addEventListener("drop",r.bind(this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,!e)throw new Error("No container provided");e.appendChild(this.dom.root)},r.prototype.setOptions=function(e){if(e){var t=["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","rtl","zoomKey","horizontalScroll","verticalScroll"];if(h.selectiveExtend(t,this.options,e),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),this.options.orientation={item:void 0,axis:void 0},"orientation"in e&&("string"==typeof e.orientation?this.options.orientation={item:e.orientation,axis:e.orientation}:"object"===(0,u.default)(e.orientation)&&("item"in e.orientation&&(this.options.orientation.item=e.orientation.item),"axis"in e.orientation&&(this.options.orientation.axis=e.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var n=this.timeAxis2=new f(this.body);n.setOptions=function(e){var t=e?h.extend({},e):{};t.orientation="top",f.prototype.setOptions.call(n,t)},this.components.push(n)}}else if(this.timeAxis2){var i=this.components.indexOf(this.timeAxis2);i!==-1&&this.components.splice(i,1),this.timeAxis2.destroy(),this.timeAxis2=null}if("function"==typeof e.drawPoints&&(e.drawPoints={onRender:e.drawPoints}),"hiddenDates"in this.options&&v.convertHiddenOptions(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in e&&(e.clickToUse?this.activator||(this.activator=new p(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),"showCustomTime"in e)throw new Error("Option `showCustomTime` is deprecated. Create a custom time bar via timeline.addCustomTime(time [, id])");this._initAutoResize()}if(this.components.forEach(function(t){return t.setOptions(e)}),"configure"in e){this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(e.configure);var r=h.deepExtend({},this.options);this.components.forEach(function(e){h.deepExtend(r,e.options)}),this.configurator.setModuleOptions({global:r})}this._redraw()},r.prototype.isActive=function(){return!this.activator||this.activator.active},r.prototype.destroy=function(){this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator);for(var e in this.listeners)this.listeners.hasOwnProperty(e)&&delete this.listeners[e];this.listeners=null,this.hammer=null,this.components.forEach(function(e){return e.destroy()}),this.body=null},r.prototype.setCustomTime=function(e,t){var n=this.customTimes.filter(function(e){return t===e.options.id});if(0===n.length)throw new Error("No custom time bar found with id "+(0,a.default)(t));n.length>0&&n[0].setCustomTime(e)},r.prototype.getCustomTime=function(e){var t=this.customTimes.filter(function(t){return t.options.id===e});if(0===t.length)throw new Error("No custom time bar found with id "+(0,a.default)(e));return t[0].getCustomTime()},r.prototype.setCustomTimeTitle=function(e,t){var n=this.customTimes.filter(function(e){return e.options.id===t});if(0===n.length)throw new Error("No custom time bar found with id "+(0,a.default)(t));if(n.length>0)return n[0].setCustomTitle(e)},r.prototype.getEventProperties=function(e){return{event:e}},r.prototype.addCustomTime=function(e,t){var n=void 0!==e?h.convert(e,"Date").valueOf():new Date,i=this.customTimes.some(function(e){return e.options.id===t});if(i)throw new Error("A custom time with id "+(0,a.default)(t)+" already exists");var r=new m(this.body,h.extend({},this.options,{time:n,id:t}));return this.customTimes.push(r),this.components.push(r),this._redraw(),t},r.prototype.removeCustomTime=function(e){var t=this.customTimes.filter(function(t){return t.options.id===e});if(0===t.length)throw new Error("No custom time bar found with id "+(0,a.default)(e));t.forEach(function(e){this.customTimes.splice(this.customTimes.indexOf(e),1),this.components.splice(this.components.indexOf(e),1),e.destroy()}.bind(this))},r.prototype.getVisibleItems=function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]},r.prototype.fit=function(e){var t=this.getDataRange();if(null!==t.min||null!==t.max){var n=t.max-t.min,i=new Date(t.min.valueOf()-.01*n),r=new Date(t.max.valueOf()+.01*n),o=!e||void 0===e.animation||e.animation;this.range.setRange(i,r,o)}},r.prototype.getDataRange=function(){throw new Error("Cannot invoke abstract method getDataRange")},r.prototype.setWindow=function(e,t,n){var i;if(1==arguments.length){var r=arguments[0];i=void 0===r.animation||r.animation,this.range.setRange(r.start,r.end,i)}else i=!n||void 0===n.animation||n.animation,this.range.setRange(e,t,i)},r.prototype.moveTo=function(e,t){var n=this.range.end-this.range.start,i=h.convert(e,"Date").valueOf(),r=i-n/2,o=i+n/2,a=!t||void 0===t.animation||t.animation;this.range.setRange(r,o,a)},r.prototype.getWindow=function(){var e=this.range.getRange();return{start:new Date(e.start),end:new Date(e.end)}},r.prototype.zoomIn=function(e,t){if(!(!e||e<0||e>1)){var n=this.getWindow(),i=n.start.valueOf(),r=n.end.valueOf(),o=r-i,a=o/(1+e),s=(o-a)/2,u=i+s,l=r-s;this.setWindow(u,l,t)}},r.prototype.zoomOut=function(e,t){if(!(!e||e<0||e>1)){var n=this.getWindow(),i=n.start.valueOf(),r=n.end.valueOf(),o=r-i,a=i-o*e/2,s=r+o*e/2;this.setWindow(a,s,t)}},r.prototype.redraw=function(){this._redraw()},r.prototype._redraw=function(){this.redrawCount++;var e=!1,t=this.options,n=this.props,i=this.dom;if(i&&i.container&&0!=i.root.offsetWidth){v.updateHiddenDates(this.options.moment,this.body,this.options.hiddenDates),"top"==t.orientation?(h.addClassName(i.root,"vis-top"),h.removeClassName(i.root,"vis-bottom")):(h.removeClassName(i.root,"vis-top"),h.addClassName(i.root,"vis-bottom")),i.root.style.maxHeight=h.option.asSize(t.maxHeight,""),i.root.style.minHeight=h.option.asSize(t.minHeight,""),i.root.style.width=h.option.asSize(t.width,""),n.border.left=(i.centerContainer.offsetWidth-i.centerContainer.clientWidth)/2,n.border.right=n.border.left,n.border.top=(i.centerContainer.offsetHeight-i.centerContainer.clientHeight)/2,n.border.bottom=n.border.top,n.borderRootHeight=i.root.offsetHeight-i.root.clientHeight,n.borderRootWidth=i.root.offsetWidth-i.root.clientWidth,0===i.centerContainer.clientHeight&&(n.border.left=n.border.top,n.border.right=n.border.left),0===i.root.clientHeight&&(n.borderRootWidth=n.borderRootHeight),n.center.height=i.center.offsetHeight,n.left.height=i.left.offsetHeight,n.right.height=i.right.offsetHeight,n.top.height=i.top.clientHeight||-n.border.top,n.bottom.height=i.bottom.clientHeight||-n.border.bottom;var r=Math.max(n.left.height,n.center.height,n.right.height),o=n.top.height+r+n.bottom.height+n.borderRootHeight+n.border.top+n.border.bottom;i.root.style.height=h.option.asSize(t.height,o+"px"),n.root.height=i.root.offsetHeight,n.background.height=n.root.height-n.borderRootHeight;var a=n.root.height-n.top.height-n.bottom.height-n.borderRootHeight;n.centerContainer.height=a,n.leftContainer.height=a,n.rightContainer.height=n.leftContainer.height,n.root.width=i.root.offsetWidth,n.background.width=n.root.width-n.borderRootWidth,this.initialDrawDone||(n.scrollbarWidth=h.getScrollBarWidth()),t.verticalScroll?t.rtl?(n.left.width=i.leftContainer.clientWidth||-n.border.left,n.right.width=i.rightContainer.clientWidth+n.scrollbarWidth||-n.border.right):(n.left.width=i.leftContainer.clientWidth+n.scrollbarWidth||-n.border.left,n.right.width=i.rightContainer.clientWidth||-n.border.right):(n.left.width=i.leftContainer.clientWidth||-n.border.left,n.right.width=i.rightContainer.clientWidth||-n.border.right),this._setDOM();var s=this._updateScrollTop();"top"!=t.orientation.item&&(s+=Math.max(n.centerContainer.height-n.center.height-n.border.top-n.border.bottom,0)),i.center.style.top=s+"px";var u=0==n.scrollTop?"hidden":"",l=n.scrollTop==n.scrollTopMin?"hidden":"";i.shadowTop.style.visibility=u,i.shadowBottom.style.visibility=l,i.shadowTopLeft.style.visibility=u,i.shadowBottomLeft.style.visibility=l,i.shadowTopRight.style.visibility=u,i.shadowBottomRight.style.visibility=l,t.verticalScroll&&(i.rightContainer.className="vis-panel vis-right vis-vertical-scroll",i.leftContainer.className="vis-panel vis-left vis-vertical-scroll",i.shadowTopRight.style.visibility="hidden",i.shadowBottomRight.style.visibility="hidden",i.shadowTopLeft.style.visibility="hidden",i.shadowBottomLeft.style.visibility="hidden",i.left.style.top="0px",i.right.style.top="0px"),(!t.verticalScroll||n.center.heightn.centerContainer.height;this.hammer.get("pan").set({direction:d?c.DIRECTION_ALL:c.DIRECTION_HORIZONTAL}),this.components.forEach(function(t){e=t.redraw()||e});var f=5;if(e){if(this.redrawCount0&&(this.props.scrollTop=0),this.props.scrollTopt&&i.push(u.id):u.leftn&&i.push(u.id)}return i},r.prototype._deselect=function(e){for(var t=this.selection,n=0,i=t.length;nr)return}}if(n&&n!=this.groupTouchParams.group){var u=t.get(n.groupId),l=t.get(this.groupTouchParams.group.groupId);l&&u&&(this.options.groupOrderSwap(l,u,t),t.update(l),t.update(u));var c=t.getIds({order:this.options.groupOrder});if(!h.equalArray(c,this.groupTouchParams.originalOrder))for(var d=this.groupTouchParams.originalOrder,f=this.groupTouchParams.group.groupId,v=Math.min(d.length,c.length),m=0,y=0,g=0;m=v)break;if(c[m+y]!=f)if(d[m+g]!=f){var b=c.indexOf(d[m+g]),_=t.get(c[m+y]),w=t.get(d[m+g]);this.options.groupOrderSwap(_,w,t),t.update(_),t.update(w);var x=c[m+y];c[m+y]=d[m+g],c[b]=x,m++}else g=1;else y=1}}}},r.prototype._onGroupDragEnd=function(e){if(this.options.groupEditable.order&&this.groupTouchParams.group){e.stopPropagation();var t=this,n=t.groupTouchParams.group.groupId,i=t.groupsData.getDataSet(),r=h.extend({},i.get(n));t.options.onMoveGroup(r,function(e){if(e)e[i._fieldId]=n,i.update(e);else{var r=i.getIds({order:t.options.groupOrder});if(!h.equalArray(r,t.groupTouchParams.originalOrder))for(var o=t.groupTouchParams.originalOrder,a=Math.min(o.length,r.length),s=0;s=a)break;var u=r.indexOf(o[s]),l=i.get(r[s]),c=i.get(o[s]);t.options.groupOrderSwap(l,c,i),i.update(l),i.update(c);var d=r[s];r[s]=o[s],r[u]=d,s++}}}),t.body.emitter.emit("groupDragged",{groupId:n})}},r.prototype._onSelectItem=function(e){if(this.options.selectable){var t=e.srcEvent&&(e.srcEvent.ctrlKey||e.srcEvent.metaKey),n=e.srcEvent&&e.srcEvent.shiftKey;if(t||n)return void this._onMultiSelectItem(e);var i=this.getSelection(),r=this.itemFromTarget(e),o=r?[r.id]:[];this.setSelection(o);var a=this.getSelection();(a.length>0||i.length>0)&&this.body.emitter.emit("select",{items:a,event:e})}},r.prototype._onMouseOver=function(e){var t=this.itemFromTarget(e);if(t){var n=this.itemFromRelatedTarget(e);if(t!==n){var i=t.getTitle();if(i){null==this.popup&&(this.popup=new c.default(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(i);var r=this.body.dom.centerContainer;this.popup.setPosition(e.clientX-h.getAbsoluteLeft(r)+r.offsetLeft,e.clientY-h.getAbsoluteTop(r)+r.offsetTop),this.popup.show()}else null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:t.id,event:e})}}},r.prototype._onMouseOut=function(e){var t=this.itemFromTarget(e);if(t){var n=this.itemFromRelatedTarget(e);t!==n&&(null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:t.id,event:e}))}},r.prototype._onMouseMove=function(e){var t=this.itemFromTarget(e);if(t&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden){var n=this.body.dom.centerContainer;this.popup.setPosition(e.clientX-h.getAbsoluteLeft(n)+n.offsetLeft,e.clientY-h.getAbsoluteTop(n)+n.offsetTop),this.popup.show()}},r.prototype._onMouseWheel=function(e){this.touchParams.itemIsDragging&&this._onDragEnd(e)},r.prototype._onUpdateItem=function(e){if(this.options.selectable&&this.options.editable.add){var t=this;if(e){var n=t.itemsData.get(e.id);this.options.onUpdate(n,function(e){e&&t.itemsData.getDataSet().update(e)})}}},r.prototype._onAddItem=function(e){if(this.options.selectable&&this.options.editable.add){var t=this,n=this.options.snap||null,i=this.itemFromTarget(e);if(!i){if(this.options.rtl)var r=h.getAbsoluteRight(this.dom.frame),o=r-e.center.x;else var r=h.getAbsoluteLeft(this.dom.frame),o=e.center.x-r;var a=this.body.util.toTime(o),s=this.body.util.getScale(),u=this.body.util.getStep(),l={start:n?n(a,s,u):a,content:"new item"};if("drop"==e.type){var c=JSON.parse(e.dataTransfer.getData("text"));if(l.content=c.content,l.type=c.type||"box",l[this.itemsData._fieldId]=c.id||h.randomUUID(),"range"==c.type||c.end&&c.start)if(c.end)l.end=c.end,l.start=c.start;else{var d=this.body.util.toTime(o+this.props.width/5);l.end=n?n(d,s,u):d}}else if(l[this.itemsData._fieldId]=h.randomUUID(),"range"===this.options.type){var d=this.body.util.toTime(o+this.props.width/5);l.end=n?n(d,s,u):d}var f=this.groupFromTarget(e);f&&(l.group=f.groupId),l=this._cloneItemData(l),this.options.onAdd(l,function(n){n&&(t.itemsData.getDataSet().add(n),"drop"==e.type&&t.setSelection([n.id]))})}}},r.prototype._onMultiSelectItem=function(e){if(this.options.selectable){var t=this.itemFromTarget(e);if(t){var n=this.options.multiselect?this.getSelection():[],i=e.srcEvent&&e.srcEvent.shiftKey||!1;if(i&&this.options.multiselect){var o=this.itemsData.get(t.id).group,a=void 0;this.options.multiselectPerGroup&&n.length>0&&(a=this.itemsData.get(n[0]).group),this.options.multiselectPerGroup&&void 0!=a&&a!=o||n.push(t.id);var s=r._getItemRange(this.itemsData.get(n,this.itemOptions));if(!this.options.multiselectPerGroup||a==o){n=[];for(var u in this.items)if(this.items.hasOwnProperty(u)){var l=this.items[u],c=l.data.start,d=void 0!==l.data.end?l.data.end:c;!(c>=s.min&&d<=s.max)||this.options.multiselectPerGroup&&a!=this.itemsData.get(l.id).group||l instanceof x||n.push(l.id)}}}else{var h=n.indexOf(t.id);h==-1?n.push(t.id):n.splice(h,1)}this.setSelection(n),this.body.emitter.emit("select",{items:this.getSelection(),event:e})}}},r._getItemRange=function(e){var t=null,n=null;return e.forEach(function(e){(null==n||e.startt)&&(t=e.end):(null==t||e.start>t)&&(t=e.start)}),{min:n,max:t}},r.prototype.itemFromElement=function(e){for(var t=e;t;){if(t.hasOwnProperty("timeline-item"))return t["timeline-item"];t=t.parentNode}return null},r.prototype.itemFromTarget=function(e){return this.itemFromElement(e.target)},r.prototype.itemFromRelatedTarget=function(e){return this.itemFromElement(e.relatedTarget)},r.prototype.groupFromTarget=function(e){for(var t=e.center?e.center.y:e.clientY,n=0;na&&ta)return r}else if(0===n&&tr-this.padding&&(s=!0),o=s?this.x-n:this.x,a=u?this.y-t:this.y}else a=this.y-t,a+t+this.padding>i&&(a=i-t-this.padding),ar&&(o=r-n-this.padding),o0&&this.current.milliseconds()0&&this.current.seconds()0&&this.current.minutes()0&&this.current.hours()0?e.step:1,this.autoScale=!1)},i.prototype.setAutoScale=function(e){this.autoScale=e},i.prototype.setMinimumStep=function(e){if(void 0!=e){var t=31104e6,n=2592e6,i=864e5,r=36e5,o=6e4,a=1e3,s=1;1e3*t>e&&(this.scale="year",this.step=1e3),500*t>e&&(this.scale="year",this.step=500),100*t>e&&(this.scale="year",this.step=100),50*t>e&&(this.scale="year",this.step=50),10*t>e&&(this.scale="year",this.step=10),5*t>e&&(this.scale="year",this.step=5),t>e&&(this.scale="year",this.step=1),3*n>e&&(this.scale="month",this.step=3),n>e&&(this.scale="month",this.step=1),5*i>e&&(this.scale="day",this.step=5),2*i>e&&(this.scale="day",this.step=2),i>e&&(this.scale="day",this.step=1),i/2>e&&(this.scale="weekday",this.step=1),4*r>e&&(this.scale="hour",this.step=4),r>e&&(this.scale="hour",this.step=1),15*o>e&&(this.scale="minute",this.step=15),10*o>e&&(this.scale="minute",this.step=10),5*o>e&&(this.scale="minute",this.step=5),o>e&&(this.scale="minute",this.step=1),15*a>e&&(this.scale="second",this.step=15),10*a>e&&(this.scale="second",this.step=10),5*a>e&&(this.scale="second",this.step=5),a>e&&(this.scale="second",this.step=1),200*s>e&&(this.scale="millisecond",this.step=200),100*s>e&&(this.scale="millisecond",this.step=100),50*s>e&&(this.scale="millisecond",this.step=50),10*s>e&&(this.scale="millisecond", +this.step=10),5*s>e&&(this.scale="millisecond",this.step=5),s>e&&(this.scale="millisecond",this.step=1)}},i.snap=function(e,t,n){var i=r(e);if("year"==t){var o=i.year()+Math.round(i.month()/12);i.year(Math.round(o/n)*n),i.month(0),i.date(0),i.hours(0),i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("month"==t)i.date()>15?(i.date(1),i.add(1,"month")):i.date(1),i.hours(0),i.minutes(0),i.seconds(0),i.milliseconds(0);else if("day"==t){switch(n){case 5:case 2:i.hours(24*Math.round(i.hours()/24));break;default:i.hours(12*Math.round(i.hours()/12))}i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("weekday"==t){switch(n){case 5:case 2:i.hours(12*Math.round(i.hours()/12));break;default:i.hours(6*Math.round(i.hours()/6))}i.minutes(0),i.seconds(0),i.milliseconds(0)}else if("hour"==t){switch(n){case 4:i.minutes(60*Math.round(i.minutes()/60));break;default:i.minutes(30*Math.round(i.minutes()/30))}i.seconds(0),i.milliseconds(0)}else if("minute"==t){switch(n){case 15:case 10:i.minutes(5*Math.round(i.minutes()/5)),i.seconds(0);break;case 5:i.seconds(60*Math.round(i.seconds()/60));break;default:i.seconds(30*Math.round(i.seconds()/30))}i.milliseconds(0)}else if("second"==t)switch(n){case 15:case 10:i.seconds(5*Math.round(i.seconds()/5)),i.milliseconds(0);break;case 5:i.milliseconds(1e3*Math.round(i.milliseconds()/1e3));break;default:i.milliseconds(500*Math.round(i.milliseconds()/500))}else if("millisecond"==t){var a=n>5?n/2:1;i.milliseconds(Math.round(i.milliseconds()/a)*a)}return i},i.prototype.isMajor=function(){if(1==this.switchedYear)switch(this.scale){case"year":case"month":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var e=this.moment(this.current);switch(this.scale){case"millisecond":return 0==e.milliseconds();case"second":return 0==e.seconds();case"minute":return 0==e.hours()&&0==e.minutes();case"hour":return 0==e.hours();case"weekday":case"day":return 1==e.date();case"month":return 0==e.month();case"year":return!1;default:return!1}},i.prototype.getLabelMinor=function(e){if(void 0==e&&(e=this.current),e instanceof Date&&(e=this.moment(e)),"function"==typeof this.format.minorLabels)return this.format.minorLabels(e,this.scale,this.step);var t=this.format.minorLabels[this.scale];return t&&t.length>0?this.moment(e).format(t):""},i.prototype.getLabelMajor=function(e){if(void 0==e&&(e=this.current),e instanceof Date&&(e=this.moment(e)),"function"==typeof this.format.majorLabels)return this.format.majorLabels(e,this.scale,this.step);var t=this.format.majorLabels[this.scale];return t&&t.length>0?this.moment(e).format(t):""},i.prototype.getClassName=function(){function e(e){return e/u%2==0?" vis-even":" vis-odd"}function t(e){return e.isSame(new Date,"day")?" vis-today":e.isSame(o().add(1,"day"),"day")?" vis-tomorrow":e.isSame(o().add(-1,"day"),"day")?" vis-yesterday":""}function n(e){return e.isSame(new Date,"week")?" vis-current-week":""}function i(e){return e.isSame(new Date,"month")?" vis-current-month":""}function r(e){return e.isSame(new Date,"year")?" vis-current-year":""}var o=this.moment,a=this.moment(this.current),s=a.locale?a.locale("en"):a.lang("en"),u=this.step;switch(this.scale){case"millisecond":return t(s)+e(s.milliseconds()).trim();case"second":return t(s)+e(s.seconds()).trim();case"minute":return t(s)+e(s.minutes()).trim();case"hour":return"vis-h"+s.hours()+(4==this.step?"-h"+(s.hours()+4):"")+t(s)+e(s.hours());case"weekday":return"vis-"+s.format("dddd").toLowerCase()+t(s)+n(s)+e(s.date());case"day":return"vis-day"+s.date()+" vis-"+s.format("MMMM").toLowerCase()+t(s)+i(s)+(this.step<=2?t(s):"")+(this.step<=2?" vis-"+s.format("dddd").toLowerCase():""+e(s.date()-1));case"month":return"vis-"+s.format("MMMM").toLowerCase()+i(s)+e(s.month());case"year":var l=s.year();return"vis-year"+l+r(s)+e(l);default:return""}},e.exports=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){this.groupId=e,this.subgroups={},this.subgroupIndex=0,this.subgroupOrderer=t&&t.subgroupOrder,this.itemSet=n,this.isVisible=null,t&&t.nestedGroups&&(this.nestedGroups=t.nestedGroups,0==t.showNested?this.showNested=!1:this.showNested=!0),this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var i=this;this.itemSet.body.emitter.on("checkRangedItems",function(){i.checkRangedItems=!0}),this._create(),this.setData(t)}var o=n(58),a=i(o),s=n(1),u=n(135);n(136);r.prototype._create=function(){var e=document.createElement("div");this.itemSet.options.groupEditable.order?e.className="vis-label draggable":e.className="vis-label",this.dom.label=e;var t=document.createElement("div");t.className="vis-inner",e.appendChild(t),this.dom.inner=t;var n=document.createElement("div");n.className="vis-group",n["timeline-group"]=this,this.dom.foreground=n,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)},r.prototype.setData=function(e){var t,n;if(this.itemSet.options&&this.itemSet.options.groupTemplate?(n=this.itemSet.options.groupTemplate.bind(this),t=n(e,this.dom.inner)):t=e&&e.content,t instanceof Element){for(this.dom.inner.appendChild(t);this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(t)}else t instanceof Object?n(e,this.dom.inner):void 0!==t&&null!==t?this.dom.inner.innerHTML=t:this.dom.inner.innerHTML=this.groupId||"";if(this.dom.label.title=e&&e.title||"",this.dom.inner.firstChild?s.removeClassName(this.dom.inner,"vis-hidden"):s.addClassName(this.dom.inner,"vis-hidden"),e&&e.nestedGroups){this.nestedGroups&&this.nestedGroups==e.nestedGroups||(this.nestedGroups=e.nestedGroups),void 0===e.showNested&&void 0!==this.showNested||(0==e.showNested?this.showNested=!1:this.showNested=!0),s.addClassName(this.dom.label,"vis-nesting-group");var i=this.itemSet.options.rtl?"collapsed-rtl":"collapsed";this.showNested?(s.removeClassName(this.dom.label,i),s.addClassName(this.dom.label,"expanded")):(s.removeClassName(this.dom.label,"expanded"),s.addClassName(this.dom.label,i))}else if(this.nestedGroups){this.nestedGroups=null;var i=this.itemSet.options.rtl?"collapsed-rtl":"collapsed";s.removeClassName(this.dom.label,i),s.removeClassName(this.dom.label,"expanded"),s.removeClassName(this.dom.label,"vis-nesting-group")}e&&e.nestedInGroup&&(s.addClassName(this.dom.label,"vis-nested-group"),this.itemSet.options&&this.itemSet.options.rtl?this.dom.inner.style.paddingRight="30px":this.dom.inner.style.paddingLeft="30px");var r=e&&e.className||null;r!=this.className&&(this.className&&(s.removeClassName(this.dom.label,this.className),s.removeClassName(this.dom.foreground,this.className),s.removeClassName(this.dom.background,this.className),s.removeClassName(this.dom.axis,this.className)),s.addClassName(this.dom.label,r),s.addClassName(this.dom.foreground,r),s.addClassName(this.dom.background,r),s.addClassName(this.dom.axis,r),this.className=r),this.style&&(s.removeCssText(this.dom.label,this.style),this.style=null),e&&e.style&&(s.addCssText(this.dom.label,e.style),this.style=e.style)},r.prototype.getLabelWidth=function(){return this.props.label.width},r.prototype.redraw=function(e,t,n){var i=!1,r=this.dom.marker.clientHeight;r!=this.lastMarkerHeight&&(this.lastMarkerHeight=r,s.forEach(this.items,function(e){e.dirty=!0,e.displayed&&e.redraw()}),n=!0),this._calculateSubGroupHeights(t);var o=this.dom.foreground;if(this.top=o.offsetTop,this.right=o.offsetLeft,this.width=o.offsetWidth,this.isVisible=this._isGroupVisible(e,t),"function"==typeof this.itemSet.options.order){if(n){var a=this,l=!1;s.forEach(this.items,function(e){e.displayed||(e.redraw(),a.visibleItems.push(e)),e.repositionX(l)});var c=this.orderedItems.byStart.slice().sort(function(e,t){return a.itemSet.options.order(e.data,t.data)});u.stack(c,t,!0)}this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,e)}else this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,e),this.itemSet.options.stack?u.stack(this.visibleItems,t,n):u.nostack(this.visibleItems,t,this.subgroups,this.itemSet.options.stackSubgroups);this._updateSubgroupsSizes();var d=this._calculateHeight(t),o=this.dom.foreground;this.top=o.offsetTop,this.right=o.offsetLeft,this.width=o.offsetWidth,i=s.updateProperty(this,"height",d)||i,i=s.updateProperty(this.props.label,"width",this.dom.inner.clientWidth)||i,i=s.updateProperty(this.props.label,"height",this.dom.inner.clientHeight)||i,this.dom.background.style.height=d+"px",this.dom.foreground.style.height=d+"px",this.dom.label.style.height=d+"px";for(var h=0,f=this.visibleItems.length;h0){var t=this;this.resetSubgroups(),s.forEach(this.visibleItems,function(n){void 0!==n.data.subgroup&&(t.subgroups[n.data.subgroup].height=Math.max(t.subgroups[n.data.subgroup].height,n.height+e.item.vertical),t.subgroups[n.data.subgroup].visible=!0)})}},r.prototype._isGroupVisible=function(e,t){var n=this.top<=e.body.domProps.centerContainer.height-e.body.domProps.scrollTop+t.axis&&this.top+this.height+t.axis>=-e.body.domProps.scrollTop;return n},r.prototype._calculateHeight=function(e){var t,n=this.visibleItems;if(n.length>0){var i=n[0].top,r=n[0].top+n[0].height;if(s.forEach(n,function(e){i=Math.min(i,e.top),r=Math.max(r,e.top+e.height)}),i>e.axis){var o=i-e.axis;r-=o,s.forEach(n,function(e){e.top-=o})}t=r+e.item.vertical/2}else t=0;return t=Math.max(t,this.props.label.height)},r.prototype.show=function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)},r.prototype.hide=function(){var e=this.dom.label;e.parentNode&&e.parentNode.removeChild(e);var t=this.dom.foreground;t.parentNode&&t.parentNode.removeChild(t);var n=this.dom.background;n.parentNode&&n.parentNode.removeChild(n);var i=this.dom.axis;i.parentNode&&i.parentNode.removeChild(i)},r.prototype.add=function(e){if(this.items[e.id]=e,e.setParent(this),void 0!==e.data.subgroup&&(this._addToSubgroup(e),this.orderSubgroups()),this.visibleItems.indexOf(e)==-1){var t=this.itemSet.body.range;this._checkIfVisible(e,this.visibleItems,t)}},r.prototype._addToSubgroup=function(e,t){t=t||e.data.subgroup,void 0!=t&&void 0===this.subgroups[t]&&(this.subgroups[t]={height:0,top:0,start:e.data.start,end:e.data.end,visible:!1,index:this.subgroupIndex,items:[]},this.subgroupIndex++),new Date(e.data.start)new Date(this.subgroups[t].end)&&(this.subgroups[t].end=e.data.end),this.subgroups[t].items.push(e)},r.prototype._updateSubgroupsSizes=function(){var e=this;if(e.subgroups)for(var t in e.subgroups){var n=e.subgroups[t].items[0].data.start,i=e.subgroups[t].items[0].data.end;e.subgroups[t].items.forEach(function(e){new Date(e.data.start)new Date(i)&&(i=e.data.end)}),e.subgroups[t].start=n,e.subgroups[t].end=i}},r.prototype.orderSubgroups=function(){if(void 0!==this.subgroupOrderer){var e=[];if("string"==typeof this.subgroupOrderer){for(var t in this.subgroups)e.push({subgroup:t,sortField:this.subgroups[t].items[0].data[this.subgroupOrderer]});e.sort(function(e,t){return e.sortField-t.sortField})}else if("function"==typeof this.subgroupOrderer){for(var t in this.subgroups)e.push(this.subgroups[t].items[0].data);e.sort(this.subgroupOrderer)}if(e.length>0)for(var n=0;n=0&&(n.items.splice(i,1),n.items.length?this._updateSubgroupsSizes():delete this.subgroups[t])}}},r.prototype.removeFromDataSet=function(e){this.itemSet.removeItem(e.id)},r.prototype.order=function(){for(var e=s.toArray(this.items),t=[],n=[],i=0;i0)for(var c=0;cu}),1==this.checkRangedItems)for(this.checkRangedItems=!1,c=0;cu})}for(var c=0;c=0;o--){var a=t[o];if(r(a))break;void 0===i[a.id]&&(i[a.id]=!0,n.push(a))}for(var o=e+1;oi[a].index&&t.collisionByTimes(i[r],i[a])){o=i[a];break}null!=o&&(i[r].top=o.top+o.height)}while(o)}for(var s=0;st.right&&e.top-i.vertical+nt.top:e.left-i.horizontal+nt.left&&e.top-i.vertical+nt.top},t.collisionByTimes=function(e,t){return e.start<=t.start&&e.end>=t.start&&e.topt.top||t.start<=e.start&&t.end>=e.start&&t.tope.top}},function(e,t,n){function i(e,t,n){if(this.props={content:{width:0}},this.overflow=!1,this.options=n,e){if(void 0==e.start)throw new Error('Property "start" missing in item '+e.id);if(void 0==e.end)throw new Error('Property "end" missing in item '+e.id)}r.call(this,e,t,n)}var r=(n(112),n(137));i.prototype=new r(null,null,null),i.prototype.baseClassName="vis-item vis-range",i.prototype.isVisible=function(e){return this.data.starte.start},i.prototype.redraw=function(){var e=this.dom;if(e||(this.dom={},e=this.dom,e.box=document.createElement("div"),e.frame=document.createElement("div"),e.frame.className="vis-item-overflow",e.box.appendChild(e.frame),e.visibleFrame=document.createElement("div"),e.visibleFrame.className="vis-item-visible-frame",e.box.appendChild(e.visibleFrame),e.content=document.createElement("div"),e.content.className="vis-item-content",e.frame.appendChild(e.content),e.box["timeline-item"]=this,this.dirty=!0),!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!e.box.parentNode){var t=this.parent.dom.foreground;if(!t)throw new Error("Cannot redraw item: parent has no foreground container element");t.appendChild(e.box)}if(this.displayed=!0,this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var n=this.editable.updateTime||this.editable.updateGroup,i=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(n?" vis-editable":" vis-readonly");e.box.className=this.baseClassName+i,this.overflow="hidden"!==window.getComputedStyle(e.frame).overflow,this.dom.content.style.maxWidth="none",this.props.content.width=this.dom.content.offsetWidth,this.height=this.dom.box.offsetHeight,this.dom.content.style.maxWidth="",this.dirty=!1}this._repaintOnItemUpdateTimeTooltip(e.box),this._repaintDeleteButton(e.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()},i.prototype.show=function(){this.displayed||this.redraw()},i.prototype.hide=function(){if(this.displayed){var e=this.dom.box;e.parentNode&&e.parentNode.removeChild(e),this.displayed=!1}},i.prototype.repositionX=function(e){var t,n,i=this.parent.width,r=this.conversion.toScreen(this.data.start),o=this.conversion.toScreen(this.data.end);void 0!==e&&e!==!0||(r<-i&&(r=-i),o>2*i&&(o=2*i));var a=Math.max(o-r+.5,1);switch(this.overflow?(this.options.rtl?this.right=r:this.left=r,this.width=a+this.props.content.width,n=this.props.content.width):(this.options.rtl?this.right=r:this.left=r,this.width=a,n=Math.min(o-r,this.props.content.width)),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=a+"px",this.options.align){case"left":this.options.rtl?this.dom.content.style.right="0":this.dom.content.style.left="0";break;case"right":this.options.rtl?this.dom.content.style.right=Math.max(a-n,0)+"px":this.dom.content.style.left=Math.max(a-n,0)+"px";break;case"center":this.options.rtl?this.dom.content.style.right=Math.max((a-n)/2,0)+"px":this.dom.content.style.left=Math.max((a-n)/2,0)+"px";break;default:t=this.overflow?o>0?Math.max(-r,0):-n:r<0?-r:0,this.options.rtl?this.dom.content.style.right=t+"px":(this.dom.content.style.left=t+"px",this.dom.content.style.width="calc(100% - "+t+"px)")}},i.prototype.repositionY=function(){var e=this.options.orientation.item,t=this.dom.box;"top"==e?t.style.top=this.top+"px":t.style.top=this.parent.height-this.top-this.height+"px"},i.prototype._repaintDragLeft=function(){if(this.selected&&this.options.editable.updateTime&&!this.dom.dragLeft){var e=document.createElement("div");e.className="vis-drag-left",e.dragLeftItem=this,this.dom.box.appendChild(e),this.dom.dragLeft=e}else!this.selected&&this.dom.dragLeft&&(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)},i.prototype._repaintDragRight=function(){if(this.selected&&this.options.editable.updateTime&&!this.dom.dragRight){var e=document.createElement("div");e.className="vis-drag-right",e.dragRightItem=this,this.dom.box.appendChild(e),this.dom.dragRight=e}else!this.selected&&this.dom.dragRight&&(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)},e.exports=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){this.id=null,this.parent=null,this.data=e,this.dom=null,this.conversion=t||{},this.options=n||{},this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.editable=null,this._updateEditStatus()}var o=n(62),a=i(o),s=n(58),u=i(s),l=n(112),c=n(1),d=n(82);r.prototype.stack=!0,r.prototype.select=function(){this.selected=!0,this.dirty=!0,this.displayed&&this.redraw()},r.prototype.unselect=function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()},r.prototype.setData=function(e){var t=void 0!=e.group&&this.data.group!=e.group;t&&this.parent.itemSet._moveToGroup(this,e.group),this.data=e,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()},r.prototype.setParent=function(e){this.displayed?(this.hide(),this.parent=e,this.parent&&this.show()):this.parent=e},r.prototype.isVisible=function(e){return!1},r.prototype.show=function(){return!1},r.prototype.hide=function(){return!1},r.prototype.redraw=function(){},r.prototype.repositionX=function(){},r.prototype.repositionY=function(){},r.prototype._repaintDragCenter=function(){if(this.selected&&this.options.editable.updateTime&&!this.dom.dragCenter){var e=this,t=document.createElement("div");t.className="vis-drag-center",t.dragCenterItem=this,new l(t).on("doubletap",function(t){t.stopPropagation(),e.parent.itemSet._onUpdateItem(e)}),this.dom.box?this.dom.box.appendChild(t):this.dom.point&&this.dom.point.appendChild(t),this.dom.dragCenter=t}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null)},r.prototype._repaintDeleteButton=function(e){var t=(this.options.editable.overrideItems||null==this.editable)&&this.options.editable.remove||!this.options.editable.overrideItems&&null!=this.editable&&this.editable.remove;if(this.selected&&t&&!this.dom.deleteButton){var n=this,i=document.createElement("div");this.options.rtl?i.className="vis-delete-rtl":i.className="vis-delete",i.title="Delete this item",new l(i).on("tap",function(e){e.stopPropagation(),n.parent.removeFromDataSet(n)}),e.appendChild(i),this.dom.deleteButton=i}else!this.selected&&this.dom.deleteButton&&(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null)},r.prototype._repaintOnItemUpdateTimeTooltip=function(e){if(this.options.tooltipOnItemUpdateTime){var t=(this.options.editable.updateTime||this.data.editable===!0)&&this.data.editable!==!1;if(this.selected&&t&&!this.dom.onItemUpdateTimeTooltip){var n=document.createElement("div");n.className="vis-onUpdateTime-tooltip",e.appendChild(n),this.dom.onItemUpdateTimeTooltip=n}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.options.rtl?this.dom.onItemUpdateTimeTooltip.style.right=this.dom.content.style.right:this.dom.onItemUpdateTimeTooltip.style.left=this.dom.content.style.left;var i,r=50,o=this.parent.itemSet.body.domProps.scrollTop;i="top"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height;var a=i+this.parent.top-r<-o;a?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top=this.height+2+"px"):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom=this.height+2+"px");var s,u;this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template?(u=this.options.tooltipOnItemUpdateTime.template.bind(this),s=u(this.data)):(s="start: "+d(this.data.start).format("MM/DD/YYYY hh:mm"),this.data.end&&(s+="
end: "+d(this.data.end).format("MM/DD/YYYY hh:mm"))),this.dom.onItemUpdateTimeTooltip.innerHTML=s}}},r.prototype._updateContents=function(e){var t,n,i,r,o=this.parent.itemSet.itemsData.get(this.id),a=this.dom.box||this.dom.point,s=a.getElementsByClassName("vis-item-visible-frame")[0];if(this.options.visibleFrameTemplate?(r=this.options.visibleFrameTemplate.bind(this),i=r(o,a)):i="",s)if(i instanceof Object&&!(i instanceof Element))r(o,s);else{var u=this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(i);if(u){if(i instanceof Element)s.innerHTML="",s.appendChild(i);else if(void 0!=i)s.innerHTML=i;else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '+this.id);this.itemVisibleFrameContent=i}}if(this.options.template?(n=this.options.template.bind(this),t=n(o,e,this.data)):t=this.data.content,t instanceof Object&&!(t instanceof Element))n(o,e);else{var u=this._contentToString(this.content)!==this._contentToString(t);if(u){if(t instanceof Element)e.innerHTML="",e.appendChild(t);else if(void 0!=t)e.innerHTML=t;else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '+this.id);this.content=t}}},r.prototype._updateDataAttributes=function(e){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var t=[];if(Array.isArray(this.options.dataAttributes))t=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;t=(0,u.default)(this.data)}for(var n=0;ne.start&&this.data.start.getTime()-ie.start&&this.data.start.getTime()e.start&&this.data.start.getTime()-i/2e.start&&this.data.starte.start},i.prototype.redraw=function(){var e=this.dom;if(e||(this.dom={},e=this.dom,e.box=document.createElement("div"),e.frame=document.createElement("div"),e.frame.className="vis-item-overflow",e.box.appendChild(e.frame),e.content=document.createElement("div"),e.content.className="vis-item-content",e.frame.appendChild(e.content),this.dirty=!0),!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!e.box.parentNode){var t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(e.box)}if(this.displayed=!0,this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var n=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");e.box.className=this.baseClassName+n,this.overflow="hidden"!==window.getComputedStyle(e.content).overflow,this.props.content.width=this.dom.content.offsetWidth,this.height=0,this.dirty=!1}},i.prototype.show=a.prototype.show,i.prototype.hide=a.prototype.hide,i.prototype.repositionX=a.prototype.repositionX,i.prototype.repositionY=function(e){var t,n=this.options.orientation.item;if(void 0!==this.data.subgroup){var i=this.data.subgroup,r=this.parent.subgroups;r[i].index;this.dom.box.style.height=this.parent.subgroups[i].height+"px","top"==n?this.dom.box.style.top=this.parent.top+this.parent.subgroups[i].top+"px":this.dom.box.style.top=this.parent.top+this.parent.height-this.parent.subgroups[i].top-this.parent.subgroups[i].height+"px",this.dom.box.style.bottom=""}else this.parent instanceof o?(t=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==n?"0":"",this.dom.box.style.top="top"==n?"0":""):(t=this.parent.height,this.dom.box.style.top=this.parent.top+"px",this.dom.box.style.bottom="");this.dom.box.style.height=t+"px"},e.exports=i},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){this.dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},this.props={range:{start:0,end:0,minimumStep:0},lineTop:0},this.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,maxMinorChars:7,format:l.FORMAT,moment:d,timeAxis:null},this.options=s.extend({},this.defaultOptions),this.body=e,this._create(),this.setOptions(t)}var o=n(62),a=i(o),s=n(1),u=n(128),l=n(133),c=n(129),d=n(82);r.prototype=new u,r.prototype.setOptions=function(e){e&&(s.selectiveExtend(["showMinorLabels","showMajorLabels","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,e),s.selectiveDeepExtend(["format"],this.options,e),"orientation"in e&&("string"==typeof e.orientation?this.options.orientation.axis=e.orientation:"object"===(0,a.default)(e.orientation)&&"axis"in e.orientation&&(this.options.orientation.axis=e.orientation.axis)),"locale"in e&&("function"==typeof d.locale?d.locale(e.locale):d.lang(e.locale)))},r.prototype._create=function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"},r.prototype.destroy=function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null},r.prototype.redraw=function(){var e=this.props,t=this.dom.foreground,n=this.dom.background,i="top"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,r=t.parentNode!==i;this._calculateCharSize();var o=this.options.showMinorLabels&&"none"!==this.options.orientation.axis,a=this.options.showMajorLabels&&"none"!==this.options.orientation.axis;e.minorLabelHeight=o?e.minorCharHeight:0,e.majorLabelHeight=a?e.majorCharHeight:0,e.height=e.minorLabelHeight+e.majorLabelHeight,e.width=t.offsetWidth,e.minorLineHeight=this.body.domProps.root.height-e.majorLabelHeight-("top"==this.options.orientation.axis?this.body.domProps.bottom.height:this.body.domProps.top.height),e.minorLineWidth=1,e.majorLineHeight=e.minorLineHeight+e.majorLabelHeight,e.majorLineWidth=1;var s=t.nextSibling,u=n.nextSibling;return t.parentNode&&t.parentNode.removeChild(t),n.parentNode&&n.parentNode.removeChild(n),t.style.height=this.props.height+"px",this._repaintLabels(),s?i.insertBefore(t,s):i.appendChild(t),u?this.body.dom.backgroundVertical.insertBefore(n,u):this.body.dom.backgroundVertical.appendChild(n),this._isResized()||r},r.prototype._repaintLabels=function(){var e=this.options.orientation.axis,t=s.convert(this.body.range.start,"Number"),n=s.convert(this.body.range.end,"Number"),i=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),r=i-c.getHiddenDurationBefore(this.options.moment,this.body.hiddenDates,this.body.range,i);r-=this.body.util.toTime(0).valueOf();var o=new l(new Date(t),new Date(n),r,this.body.hiddenDates);o.setMoment(this.options.moment),this.options.format&&o.setFormat(this.options.format),this.options.timeAxis&&o.setScale(this.options.timeAxis),this.step=o;var a=this.dom;a.redundant.lines=a.lines,a.redundant.majorTexts=a.majorTexts,a.redundant.minorTexts=a.minorTexts,a.lines=[],a.majorTexts=[],a.minorTexts=[];var u,d,f,p,v,m,y,g,b,_,w=0,x=void 0,T=0,E=1e3;for(o.start(),d=o.getCurrent(),p=this.body.util.toScreen(d);o.hasNext()&&T=.4*y;if(this.options.showMinorLabels&&C){var O=this._repaintMinorText(f,b,e,_);O.style.width=w+"px"}v&&this.options.showMajorLabels?(f>0&&(void 0==x&&(x=f),O=this._repaintMajorText(f,o.getLabelMajor(),e,_)),g=this._repaintMajorLine(f,w,e,_)):C?g=this._repaintMinorLine(f,w,e,_):g&&(g.style.width=parseInt(g.style.width)+w+"px")}if(T!==E||h||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to "+E+" lines."),h=!0),this.options.showMajorLabels){var S=this.body.util.toTime(0),k=o.getLabelMajor(S),P=k.length*(this.props.majorCharWidth||10)+10;(void 0==x||P1e3&&(i=1e3),t.redraw(),t.body.emitter.emit("currentTimeTick"),t.currentTimeTimer=setTimeout(e,i)}var t=this;e()},i.prototype.stop=function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)},i.prototype.setCurrentTime=function(e){var t=r.convert(e,"Date").valueOf(),n=(new Date).valueOf();this.offset=t-n,this.redraw()},i.prototype.getCurrentTime=function(){return new Date((new Date).valueOf()+this.offset)},e.exports=i},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="string",i="boolean",r="number",o="array",a="date",s="object",u="dom",l="moment",c="any",d={configure:{enabled:{boolean:i},filter:{boolean:i,function:"function"},container:{dom:u},__type__:{object:s,boolean:i,function:"function"}},align:{string:n},rtl:{boolean:i,undefined:"undefined"},rollingMode:{boolean:i,undefined:"undefined"},verticalScroll:{boolean:i,undefined:"undefined"},horizontalScroll:{boolean:i,undefined:"undefined"},autoResize:{boolean:i},throttleRedraw:{number:r},clickToUse:{boolean:i},dataAttributes:{string:n,array:o},editable:{add:{boolean:i,undefined:"undefined"},remove:{boolean:i,undefined:"undefined"},updateGroup:{boolean:i,undefined:"undefined"},updateTime:{boolean:i,undefined:"undefined"},overrideItems:{boolean:i,undefined:"undefined"},__type__:{boolean:i,object:s}},end:{number:r,date:a,string:n,moment:l},format:{minorLabels:{millisecond:{string:n,undefined:"undefined"},second:{string:n,undefined:"undefined"},minute:{string:n,undefined:"undefined"},hour:{string:n,undefined:"undefined"},weekday:{string:n,undefined:"undefined"},day:{string:n,undefined:"undefined"},month:{string:n,undefined:"undefined"},year:{string:n,undefined:"undefined"},__type__:{object:s,function:"function"}},majorLabels:{millisecond:{string:n,undefined:"undefined"},second:{string:n,undefined:"undefined"},minute:{string:n,undefined:"undefined"},hour:{string:n,undefined:"undefined"},weekday:{string:n,undefined:"undefined"},day:{string:n,undefined:"undefined"},month:{string:n,undefined:"undefined"},year:{string:n,undefined:"undefined"},__type__:{object:s,function:"function"}},__type__:{object:s}},moment:{function:"function"},groupOrder:{string:n,function:"function"},groupEditable:{add:{boolean:i,undefined:"undefined"},remove:{boolean:i,undefined:"undefined"},order:{boolean:i,undefined:"undefined"},__type__:{boolean:i,object:s}},groupOrderSwap:{function:"function"},height:{string:n,number:r},hiddenDates:{start:{date:a,number:r,string:n,moment:l},end:{date:a,number:r,string:n,moment:l},repeat:{string:n},__type__:{object:s,array:o}},itemsAlwaysDraggable:{boolean:i},locale:{string:n},locales:{__any__:{any:c},__type__:{object:s}},margin:{axis:{number:r},item:{horizontal:{number:r,undefined:"undefined"},vertical:{number:r,undefined:"undefined"},__type__:{object:s,number:r}},__type__:{object:s,number:r}},max:{date:a,number:r,string:n,moment:l},maxHeight:{number:r,string:n},maxMinorChars:{number:r},min:{date:a,number:r,string:n,moment:l},minHeight:{number:r,string:n},moveable:{boolean:i},multiselect:{boolean:i},multiselectPerGroup:{boolean:i},onAdd:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},order:{function:"function"},orientation:{axis:{string:n,undefined:"undefined"},item:{string:n,undefined:"undefined"},__type__:{string:n,object:s}},selectable:{boolean:i},showCurrentTime:{boolean:i},showMajorLabels:{boolean:i},showMinorLabels:{boolean:i},stack:{boolean:i},stackSubgroups:{boolean:i},snap:{function:"function",null:"null"},start:{date:a,number:r,string:n,moment:l},template:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:n,function:"function"},tooltip:{followMouse:{boolean:i},overflowMethod:{string:["cap","flip"]},__type__:{object:s}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:i,object:s}},timeAxis:{scale:{string:n,undefined:"undefined"},step:{number:r,undefined:"undefined"},__type__:{object:s}},type:{string:n},width:{string:n,number:r},zoomable:{boolean:i},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:r},zoomMin:{number:r},__type__:{object:s}},h={global:{align:["center","left","right"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",month:"YYYY",year:""}},groupsDraggable:!1,height:"",locale:"",margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,start:"",tooltip:{followMouse:!1,overflowMethod:"flip"},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1]}};t.allOptions=d,t.configureOptions=h},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,i){if(!(Array.isArray(n)||n instanceof d||n instanceof h)&&n instanceof Object){var r=i;i=n,n=r}i&&i.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var o=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:l,width:null,height:null,maxHeight:null,minHeight:null},this.options=c.deepExtend({},this.defaultOptions),this._create(e),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:this.on.bind(this),off:this.off.bind(this),emit:this.emit.bind(this)},hiddenDates:[],util:{toScreen:o._toScreen.bind(o),toGlobalScreen:o._toGlobalScreen.bind(o),toTime:o._toTime.bind(o),toGlobalTime:o._toGlobalTime.bind(o)}},this.range=new f(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new v(this.body),this.components.push(this.timeAxis),this.currentTime=new m(this.body),this.components.push(this.currentTime),this.linegraph=new g(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",function(e){o.emit("click",o.getEventProperties(e))}),this.on("doubletap",function(e){o.emit("doubleClick",o.getEventProperties(e))}),this.dom.root.oncontextmenu=function(e){o.emit("contextmenu",o.getEventProperties(e))},i&&this.setOptions(i),n&&this.setGroups(n),t&&this.setItems(t),this._redraw()}var o=n(118),a=i(o),s=n(126),u=i(s),l=(n(99),n(112),n(82)),c=n(1),d=n(89),h=n(93),f=n(127),p=n(130),v=n(142),m=n(146),y=n(144),g=n(149),b=n(126).printStyle,_=n(157).allOptions,w=n(157).configureOptions;r.prototype=new p,r.prototype.setOptions=function(e){var t=u.default.validate(e,_);t===!0&&console.log("%cErrors have been found in the supplied options object.",b),p.prototype.setOptions.call(this,e)},r.prototype.setItems=function(e){var t,n=null==this.itemsData;if(t=e?e instanceof d||e instanceof h?e:new d(e,{type:{start:"Date",end:"Date"}}):null,this.itemsData=t,this.linegraph&&this.linegraph.setItems(t),n)if(void 0!=this.options.start||void 0!=this.options.end){var i=void 0!=this.options.start?this.options.start:null,r=void 0!=this.options.end?this.options.end:null;this.setWindow(i,r,{animation:!1})}else this.fit({animation:!1})},r.prototype.setGroups=function(e){var t;t=e?e instanceof d||e instanceof h?e:new d(e):null,this.groupsData=t,this.linegraph.setGroups(t)},r.prototype.getLegend=function(e,t,n){return void 0===t&&(t=15),void 0===n&&(n=15),void 0!==this.linegraph.groups[e]?this.linegraph.groups[e].getLegend(t,n):"cannot find group:'"+e+"'"},r.prototype.isGroupVisible=function(e){return void 0!==this.linegraph.groups[e]&&(this.linegraph.groups[e].visible&&(void 0===this.linegraph.options.groups.visibility[e]||1==this.linegraph.options.groups.visibility[e]))},r.prototype.getDataRange=function(){var e=null,t=null;for(var n in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(n)&&1==this.linegraph.groups[n].visible)for(var i=0;io?o:e,t=null==t?o:t0&&l.push(d.screenToValue(r)),!h.hidden&&this.itemsData.length>0&&l.push(h.screenToValue(r)),{event:e,what:u,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:i,y:r,time:o,value:l}},r.prototype._createConfigurator=function(){return new a.default(this,this.dom.container,w)},e.exports=r},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){this.id=s.randomUUID(),this.body=e,this.defaultOptions={yAxisOrientation:"left",defaultGroup:"default",sort:!0,sampling:!0,stack:!1,graphHeight:"400px",shaded:{enabled:!1,orientation:"bottom"},style:"line",barChart:{width:50,sideBySide:!1,align:"center"},interpolation:{enabled:!0,parametrization:"centripetal",alpha:.5},drawPoints:{enabled:!0,size:6,style:"square"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=s.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var n=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(e,t,i){n._onAdd(t.items)},update:function(e,t,i){n._onUpdate(t.items)},remove:function(e,t,i){n._onRemove(t.items)}},this.groupListeners={add:function(e,t,i){n._onAddGroups(t.items)},update:function(e,t,i){n._onUpdateGroups(t.items)},remove:function(e,t,i){n._onRemoveGroups(t.items); +}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(t),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",function(){n.lastStart=n.body.range.start,n.svg.style.left=s.option.asSize(-n.props.width),n.forceGraphUpdate=!0,n.redraw.call(n)}),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}var o=n(62),a=i(o),s=n(1),u=n(88),l=n(89),c=n(93),d=n(128),h=n(150),f=n(152),p=n(156),v=n(153),m=n(155),y=n(154),g="__ungrouped__";r.prototype=new d,r.prototype._create=function(){var e=document.createElement("div");e.className="vis-line-graph",this.dom.frame=e,this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="relative",this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",this.svg.style.display="block",e.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new h(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new h(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new p(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new p(this.body,this.options.legend,"right",this.options.groups),this.show()},r.prototype.setOptions=function(e){if(e){var t=["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"];void 0===e.graphHeight&&void 0!==e.height?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):void 0!==this.body.domProps.centerContainer.height&&void 0!==e.graphHeight&&parseInt((e.graphHeight+"").replace("px",""))0){var s={};for(this._getRelevantData(a,s,r,o),this._applySampling(a,s),t=0;t0)switch(e.options.style){case"line":c.hasOwnProperty(a[t])||(c[a[t]]=m.calcPath(s[a[t]],e)),m.draw(c[a[t]],e,this.framework);case"point":case"points":"point"!=e.options.style&&"points"!=e.options.style&&1!=e.options.drawPoints.enabled||y.draw(s[a[t]],e,this.framework);break;case"bar":}}}return u.cleanupElements(this.svgElements),!1},r.prototype._stack=function(e,t){var n,i,r,o,a;n=0;for(var s=0;se[s].x){a=t[u],o=0==u?a:t[u-1],n=u;break}}void 0===a&&(o=t[t.length-1],a=t[t.length-1]),i=a.x-o.x,r=a.y-o.y,0==i?e[s].y=e[s].orginalY+a.y:e[s].y=e[s].orginalY+r/i*(e[s].x-o.x)+o.y}},r.prototype._getRelevantData=function(e,t,n,i){var r,o,a,u;if(e.length>0)for(o=0;o0)for(var i=0;i0){var o=1,a=r.length,s=this.body.util.toGlobalScreen(r[r.length-1].x)-this.body.util.toGlobalScreen(r[0].x),u=a/s;o=Math.min(Math.ceil(.2*a),Math.max(1,Math.round(u)));for(var l=new Array(a),c=0;c0){for(o=0;o0&&(r=this.groups[e[o]],a.stack===!0&&"bar"===a.style?"left"===a.yAxisOrientation?s=s.concat(i):u=u.concat(i):n[e[o]]=r.getYRange(i,e[o]));v.getStackedYRange(s,n,e,"__barStackLeft","left"),v.getStackedYRange(u,n,e,"__barStackRight","right")}},r.prototype._updateYAxis=function(e,t){var n,i,r=!1,o=!1,a=!1,s=1e9,u=1e9,l=-1e9,c=-1e9;if(e.length>0){for(var d=0;dn?n:s,l=ln?n:u,c=c=0&&e._redrawLabel(i-2,t.val,n,"vis-y-axis vis-major",e.props.majorCharHeight),e.master===!0&&(r?e._redrawLine(i,n,"vis-grid vis-horizontal vis-major",e.options.majorLinesOffset,e.props.majorLineWidth):e._redrawLine(i,n,"vis-grid vis-horizontal vis-minor",e.options.minorLinesOffset,e.props.minorLineWidth))});var s=0;void 0!==this.options[n].title&&void 0!==this.options[n].title.text&&(s=this.props.titleCharHeight);var l=this.options.icons===!0?Math.max(this.options.iconWidth,s)+this.options.labelOffsetX+15:s+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-l&&this.options.visible===!0?(this.width=this.maxLabelSize+l,this.options.width=this.width+"px",u.cleanupElements(this.DOMelements.lines),u.cleanupElements(this.DOMelements.labels),this.redraw(),t=!0):this.maxLabelSizethis.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+l),this.options.width=this.width+"px",u.cleanupElements(this.DOMelements.lines),u.cleanupElements(this.DOMelements.labels),this.redraw(),t=!0):(u.cleanupElements(this.DOMelements.lines),u.cleanupElements(this.DOMelements.labels),t=!1),t},r.prototype.convertValue=function(e){return this.scale.convertValue(e)},r.prototype.screenToValue=function(e){return this.scale.screenToValue(e)},r.prototype._redrawLabel=function(e,t,n,i,r){var o=u.getDOMElement("div",this.DOMelements.labels,this.dom.frame);o.className=i,o.innerHTML=t,"left"===n?(o.style.left="-"+this.options.labelOffsetX+"px",o.style.textAlign="right"):(o.style.right="-"+this.options.labelOffsetX+"px",o.style.textAlign="left"),o.style.top=e-.5*r+this.options.labelOffsetY+"px",t+="";var a=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=r,this.majorCharHeight=o,this._start=e,this._end=t,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=a,this.autoScaleStart=n,this.autoScaleEnd=i,this.formattingFunction=s,n||i){var u=this,l=function(e){var t=e-e%(u.magnitudefactor*u.minorSteps[u.minorStepIdx]);return e%(u.magnitudefactor*u.minorSteps[u.minorStepIdx])>.5*(u.magnitudefactor*u.minorSteps[u.minorStepIdx])?t+u.magnitudefactor*u.minorSteps[u.minorStepIdx]:t};n&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=l(this._start)),i&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=l(this._end)),this.determineScale()}}n.prototype.setCharHeight=function(e){this.majorCharHeight=e},n.prototype.setHeight=function(e){this.containerHeight=e},n.prototype.determineScale=function(){var e=this._end-this._start;this.scale=this.containerHeight/e;var t=this.majorCharHeight/this.scale,n=e>0?Math.round(Math.log(e)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,n);var i=0;n<0&&(i=n);for(var r=!1,o=i;Math.abs(o)<=Math.abs(n);o++){this.magnitudefactor=Math.pow(10,o);for(var a=0;a=t){r=!0,this.minorStepIdx=a;break}}if(r===!0)break}},n.prototype.is_major=function(e){return e%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])===0},n.prototype.getStep=function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]},n.prototype.getFirstMajor=function(){var e=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(e-this._start%e)%e)},n.prototype.formatValue=function(e){var t=e.toPrecision(5);return"function"==typeof this.formattingFunction&&(t=this.formattingFunction(e)),"number"==typeof t?""+t:"string"==typeof t?t:e.toPrecision(5)},n.prototype.getLines=function(){for(var e=[],t=this.getStep(),n=(t-this._start%t)%t,i=this._start+n;this._end-i>1e-5;i+=t)i!=this._start&&e.push({major:this.is_major(i),y:this.convertValue(i),val:this.formatValue(i)});return e},n.prototype.followScale=function(e){var t=this.minorStepIdx,n=this._start,i=this._end,r=this,o=function(){r.magnitudefactor*=2},a=function(){r.magnitudefactor/=2};e.minorStepIdx<=1&&this.minorStepIdx<=1||e.minorStepIdx>1&&this.minorStepIdx>1||(e.minorStepIdxi+1e-5)a(),l=!1;else{if(!this.autoScaleStart&&this._start=0)){a(),l=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&dt.x?1:-1})):this.itemsData=[]},r.prototype.getItems=function(){return this.itemsData},r.prototype.setZeroPosition=function(e){this.zeroPosition=e},r.prototype.setOptions=function(e){if(void 0!==e){var t=["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"];s.selectiveDeepExtend(t,this.options,e),"function"==typeof e.drawPoints&&(e.drawPoints={onRender:e.drawPoints}),s.mergeOptions(this.options,e,"interpolation"),s.mergeOptions(this.options,e,"drawPoints"),s.mergeOptions(this.options,e,"shaded"),e.interpolation&&"object"==(0,a.default)(e.interpolation)&&e.interpolation.parametrization&&("uniform"==e.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==e.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}},r.prototype.update=function(e){this.group=e,this.content=e.content||"graph",this.className=e.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===e.visible||e.visible,this.style=e.style,this.setOptions(e.options)},r.prototype.getLegend=function(e,t,n,i,r){if(void 0==n||null==n){var o=document.createElementNS("http://www.w3.org/2000/svg","svg");n={svg:o,svgElements:{},options:this.options,groups:[this]}}switch(void 0!=i&&null!=i||(i=0),void 0!=r&&null!=r||(r=.5*t),this.options.style){case"line":l.drawIcon(this,i,r,e,t,n);break;case"points":case"point":c.drawIcon(this,i,r,e,t,n);break;case"bar":u.drawIcon(this,i,r,e,t,n)}return{icon:n.svg,label:this.content,orientation:this.options.yAxisOrientation}},r.prototype.getYRange=function(e){for(var t=e[0].y,n=e[0].y,i=0;ie[i].y?e[i].y:t,n=n0&&(n=Math.min(n,Math.abs(t[i-1].screen_x-t[i].screen_x))),0===n&&(void 0===e[t[i].screen_x]&&(e[t[i].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),e[t[i].screen_x].amount+=1)},i._getSafeDrawData=function(e,t,n){var i,r;return e0?(i=e0){e.sort(function(e,t){return e.screen_x===t.screen_x?e.groupIdt[o].screen_y?t[o].screen_y:i,r=re[a].accumulatedNegative?e[a].accumulatedNegative:i,i=i>e[a].accumulatedPositive?e[a].accumulatedPositive:i,r=r0){var n=[];return n=1==t.options.interpolation.enabled?i._catmullRom(e,t):i._linear(e)}},i.drawIcon=function(e,t,n,i,o,a){var s,u,l=.5*o,c=r.getSVGElement("rect",a.svgElements,a.svg);if(c.setAttributeNS(null,"x",t),c.setAttributeNS(null,"y",n-l),c.setAttributeNS(null,"width",i),c.setAttributeNS(null,"height",2*l),c.setAttributeNS(null,"class","vis-outline"),s=r.getSVGElement("path",a.svgElements,a.svg),s.setAttributeNS(null,"class",e.className),void 0!==e.style&&s.setAttributeNS(null,"style",e.style),s.setAttributeNS(null,"d","M"+t+","+n+" L"+(t+i)+","+n),1==e.options.shaded.enabled&&(u=r.getSVGElement("path",a.svgElements,a.svg),"top"==e.options.shaded.orientation?u.setAttributeNS(null,"d","M"+t+", "+(n-l)+"L"+t+","+n+" L"+(t+i)+","+n+" L"+(t+i)+","+(n-l)):u.setAttributeNS(null,"d","M"+t+","+n+" L"+t+","+(n+l)+" L"+(t+i)+","+(n+l)+"L"+(t+i)+","+n),u.setAttributeNS(null,"class",e.className+" vis-icon-fill"),void 0!==e.options.shaded.style&&""!==e.options.shaded.style&&u.setAttributeNS(null,"style",e.options.shaded.style)),1==e.options.drawPoints.enabled){var d={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size,className:e.className};r.drawPoint(t+.5*i,n,d,a.svgElements,a.svg)}},i.drawShading=function(e,t,n,i){if(1==t.options.shaded.enabled){var o=Number(i.svg.style.height.replace("px","")),a=r.getSVGElement("path",i.svgElements,i.svg),s="L";1==t.options.interpolation.enabled&&(s="C");var u,l=0;l="top"==t.options.shaded.orientation?0:"bottom"==t.options.shaded.orientation?o:Math.min(Math.max(0,t.zeroPosition),o),u="group"==t.options.shaded.orientation&&null!=n&&void 0!=n?"M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,s,!1)+" L"+n[n.length-1][0]+","+n[n.length-1][1]+" "+this.serializePath(n,s,!0)+n[0][0]+","+n[0][1]+" Z":"M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,s,!1)+" V"+l+" H"+e[0][0]+" Z",a.setAttributeNS(null,"class",t.className+" vis-fill"),void 0!==t.options.shaded.style&&a.setAttributeNS(null,"style",t.options.shaded.style),a.setAttributeNS(null,"d",u)}},i.draw=function(e,t,n){if(null!=e&&void 0!=e){var i=r.getSVGElement("path",n.svgElements,n.svg);i.setAttributeNS(null,"class",t.className),void 0!==t.style&&i.setAttributeNS(null,"style",t.style);var o="L";1==t.options.interpolation.enabled&&(o="C"),i.setAttributeNS(null,"d","M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,o,!1))}},i.serializePath=function(e,t,n){if(e.length<2)return"";var i=t;if(n)for(var r=e.length-2;r>0;r--)i+=e[r][0]+","+e[r][1]+" ";else for(var r=1;r0&&(p=1/p),v=3*m*(m+y),v>0&&(v=1/v),s={screen_x:(-b*i.screen_x+h*r.screen_x+_*o.screen_x)*p,screen_y:(-b*i.screen_y+h*r.screen_y+_*o.screen_y)*p},u={screen_x:(g*r.screen_x+f*o.screen_x-b*a.screen_x)*v,screen_y:(g*r.screen_y+f*o.screen_y-b*a.screen_y)*v},0==s.screen_x&&0==s.screen_y&&(s=r),0==u.screen_x&&0==u.screen_y&&(u=o),x.push([s.screen_x,s.screen_y]),x.push([u.screen_x,u.screen_y]),x.push([o.screen_x,o.screen_y]);return x},i._linear=function(e){for(var t=[],n=0;n")}this.dom.textArea.innerHTML=o,this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},r.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=(0,a.default)(this.groups);e.sort(function(e,t){return e0){var n=this.groupIndex%this.groupsArray.length;this.groupIndex++,t={},t.color=this.groups[this.groupsArray[n]],this.groups[e]=t}else{var i=this.defaultIndex%this.defaultGroups.length;this.defaultIndex++,t={},t.color=this.defaultGroups[i],this.groups[e]=t}return t}},{key:"add",value:function(e,t){return this.groups[e]=t,this.groupsArray.push(e),t}}]),e}();t.default=l},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(163),l=i(u),c=n(164),d=i(c),h=n(1),f=n(89),p=n(93),v=function(){function e(t,n,i,r){var a=this;(0,o.default)(this,e),this.body=t,this.images=n,this.groups=i,this.layoutEngine=r,this.body.functions.createNode=this.create.bind(this),this.nodesListeners={add:function(e,t){a.add(t.items)},update:function(e,t){a.update(t.items,t.data)},remove:function(e,t){a.remove(t.items)}},this.options={},this.defaultOptions={borderWidth:1,borderWidthSelected:2,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(e,t,n,i){if(t===e)return.5;var r=1/(t-e);return Math.max(0,(i-e)*r)}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1},size:25,title:void 0,value:void 0,x:void 0,y:void 0},h.extend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,s.default)(e,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("refreshNodes",this.refresh.bind(this)),this.body.emitter.on("refresh",this.refresh.bind(this)),this.body.emitter.on("destroy",function(){h.forEach(e.nodesListeners,function(t,n){e.body.data.nodes&&e.body.data.nodes.off(n,t)}),delete e.body.functions.createNode,delete e.nodesListeners.add,delete e.nodesListeners.update,delete e.nodesListeners.remove,delete e.nodesListeners})}},{key:"setOptions",value:function(e){if(this.nodeOptions=e,void 0!==e){if(l.default.parseOptions(this.options,e),void 0!==e.shape)for(var t in this.body.nodes)this.body.nodes.hasOwnProperty(t)&&this.body.nodes[t].updateShape();if(void 0!==e.font){d.default.parseOptions(this.options.font,e);for(var n in this.body.nodes)this.body.nodes.hasOwnProperty(n)&&(this.body.nodes[n].updateLabelModule(),this.body.nodes[n]._reset())}if(void 0!==e.size)for(var i in this.body.nodes)this.body.nodes.hasOwnProperty(i)&&this.body.nodes[i]._reset();void 0===e.hidden&&void 0===e.physics||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.data.nodes;if(e instanceof f||e instanceof p)this.body.data.nodes=e;else if(Array.isArray(e))this.body.data.nodes=new f,this.body.data.nodes.add(e);else{if(e)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new f}if(n&&h.forEach(this.nodesListeners,function(e,t){n.off(t,e)}),this.body.nodes={},this.body.data.nodes){var i=this;h.forEach(this.nodesListeners,function(e,t){i.body.data.nodes.on(t,e)});var r=this.body.data.nodes.getIds();this.add(r,!0)}t===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=void 0,i=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:l.default;return new t(e,this.body,this.images,this.groups,this.options,this.defaultOptions,this.nodeOptions)}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.body.nodes;for(var n in t){var i=void 0;t.hasOwnProperty(n)&&(i=t[n]);var r=this.body.data.nodes._data[n];void 0!==i&&void 0!==r&&(e===!0&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(r))}}},{key:"getPositions",value:function(e){var t={};if(void 0!==e){if(Array.isArray(e)===!0){for(var n=0;ne.left&&this.shape.tope.top}},{key:"isBoundingBoxOverlappingWith",value:function(e){return this.shape.boundingBox.lefte.left&&this.shape.boundingBox.tope.top}}],[{key:"parseOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=["color","font","fixed","shadow"];if(H.selectiveNotDeepExtend(r,e,t,n),H.mergeOptions(e,t,"shadow",n,i),void 0!==t.color&&null!==t.color){var o=H.parseColor(t.color);H.fillIfDefined(e.color,o)}else n===!0&&null===t.color&&(e.color=H.bridgeObject(i.color));void 0!==t.fixed&&null!==t.fixed&&("boolean"==typeof t.fixed?(e.fixed.x=t.fixed,e.fixed.y=t.fixed):(void 0!==t.fixed.x&&"boolean"==typeof t.fixed.x&&(e.fixed.x=t.fixed.x),void 0!==t.fixed.y&&"boolean"==typeof t.fixed.y&&(e.fixed.y=t.fixed.y))),void 0!==t.font&&null!==t.font?d.default.parseOptions(e.font,t):n===!0&&null===t.font&&(e.font=H.bridgeObject(i.font)),void 0!==t.scaling&&H.mergeOptions(e.scaling,t.scaling,"label",n,i.scaling)}}]),e}();t.default=G},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(165),o=i(r),a=n(2),s=i(a),u=n(62),l=i(u),c=n(119),d=i(c),h=n(120),f=i(h),p=n(1),v=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];(0,d.default)(this,e),this.body=t,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(n),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=i}return(0,f.default)(e,[{key:"setOptions",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.elementOptions=t,this.fontOptions=p.deepExtend({},t.font,!0),void 0!==t.label&&(this.labelDirty=!0),void 0!==t.font&&(e.parseOptions(this.fontOptions,t,n),"string"==typeof t.font?this.baseSize=this.fontOptions.size:"object"===(0,l.default)(t.font)&&void 0!==t.font.size&&(this.baseSize=t.font.size))}},{key:"constrain",value:function(e,t,n){this.fontOptions.constrainWidth=!1,this.fontOptions.maxWdt=-1,this.fontOptions.minWdt=-1;var i=[t,e,n],r=p.topMost(i,"widthConstraint");if("number"==typeof r)this.fontOptions.maxWdt=Number(r),this.fontOptions.minWdt=Number(r);else if("object"===("undefined"==typeof r?"undefined":(0,l.default)(r))){var o=p.topMost(i,["widthConstraint","maximum"]);"number"==typeof o&&(this.fontOptions.maxWdt=Number(o));var a=p.topMost(i,["widthConstraint","minimum"]);"number"==typeof a&&(this.fontOptions.minWdt=Number(a))}this.fontOptions.constrainHeight=!1,this.fontOptions.minHgt=-1,this.fontOptions.valign="middle";var s=p.topMost(i,"heightConstraint");if("number"==typeof s)this.fontOptions.minHgt=Number(s);else if("object"===("undefined"==typeof s?"undefined":(0,l.default)(s))){var u=p.topMost(i,["heightConstraint","minimum"]);"number"==typeof u&&(this.fontOptions.minHgt=Number(u));var c=p.topMost(i,["heightConstraint","valign"]);"string"==typeof c&&("top"!==c&&"bottom"!==c||(this.fontOptions.valign=c))}}},{key:"choosify",value:function(e,t,n){this.fontOptions.chooser=!0;var i=[t,e,n],r=p.topMost(i,"chosen");if("boolean"==typeof r)this.fontOptions.chooser=r;else if("object"===("undefined"==typeof r?"undefined":(0,l.default)(r))){var o=p.topMost(i,["chosen","label"]);"boolean"!=typeof o&&"function"!=typeof o||(this.fontOptions.chooser=o)}}},{key:"adjustSizes",value:function(e){var t=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=t,this.fontOptions.minWdt-=t);var n=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=n)}},{key:"propagateFonts",value:function(e,t,n){if(this.fontOptions.multi){var i=["bold","ital","boldital","mono"],r=!0,o=!1,a=void 0;try{for(var u,l=(0,s.default)(i);!(r=(u=l.next()).done);r=!0){var c=u.value,d=void 0;if(e.font&&(d=e.font[c]),"string"==typeof d){var h=d.split(" ");this.fontOptions[c].size=h[0].replace("px",""),this.fontOptions[c].face=h[1],this.fontOptions[c].color=h[2],this.fontOptions[c].vadjust=this.fontOptions.vadjust,this.fontOptions[c].mod=n.font[c].mod}else{if(d&&d.hasOwnProperty("face")?this.fontOptions[c].face=d.face:t.font&&t.font[c]&&t.font[c].hasOwnProperty("face")?this.fontOptions[c].face=t.font[c].face:"mono"===c?this.fontOptions[c].face=n.font[c].face:t.font&&t.font.hasOwnProperty("face")?this.fontOptions[c].face=t.font.face:this.fontOptions[c].face=this.fontOptions.face,d&&d.hasOwnProperty("color")?this.fontOptions[c].color=d.color:t.font&&t.font[c]&&t.font[c].hasOwnProperty("color")?this.fontOptions[c].color=t.font[c].color:t.font&&t.font.hasOwnProperty("color")?this.fontOptions[c].color=t.font.color:this.fontOptions[c].color=this.fontOptions.color,d&&d.hasOwnProperty("mod")?this.fontOptions[c].mod=d.mod:t.font&&t.font[c]&&t.font[c].hasOwnProperty("mod")?this.fontOptions[c].mod=t.font[c].mod:t.font&&t.font.hasOwnProperty("mod")?this.fontOptions[c].mod=t.font.mod:this.fontOptions[c].mod=n.font[c].mod,d&&d.hasOwnProperty("size"))this.fontOptions[c].size=d.size;else if(t.font&&t.font[c]&&t.font[c].hasOwnProperty("size"))this.fontOptions[c].size=t.font[c].size;else if(this.fontOptions[c].face===n.font[c].face&&this.fontOptions.face===n.font.face){var f=this.fontOptions.size/Number(n.font.size);this.fontOptions[c].size=n.font[c].size*f}else t.font&&t.font.hasOwnProperty("size")?this.fontOptions[c].size=t.font.size:this.fontOptions[c].size=this.fontOptions.size;if(d&&d.hasOwnProperty("vadjust"))this.fontOptions[c].vadjust=d.vadjust;else if(t.font&&t.font[c]&&t.font[c].hasOwnProperty("vadjust"))this.fontOptions[c].vadjust=t.font[c].vadjust;else if(this.fontOptions[c].face===n.font[c].face&&this.fontOptions.face===n.font.face){var p=this.fontOptions.size/Number(n.font.size);this.fontOptions[c].vadjust=n.font[c].vadjust*Math.round(p)}else t.font&&t.font.hasOwnProperty("vadjust")?this.fontOptions[c].vadjust=t.font.vadjust:this.fontOptions[c].vadjust=this.fontOptions.vadjust}this.fontOptions[c].size=Number(this.fontOptions[c].size),this.fontOptions[c].vadjust=Number(this.fontOptions[c].vadjust)}}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}}}},{key:"draw",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var a=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&a5&&void 0!==arguments[5]?arguments[5]:"middle",s=this.fontOptions.size,u=s*this.body.view.scale;u>=this.elementOptions.scaling.label.maxVisible&&(s=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale);var l=this.size.yLine,c=this._setAlignment(e,i,l,a),d=(0,o.default)(c,2);i=d[0],l=d[1],e.textAlign="left",i-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(l-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(l+=(this.size.height-this.size.labelHeight)/2));for(var h=0;h0&&(e.lineWidth=v.strokeWidth,e.strokeStyle=b,e.lineJoin="round"),e.fillStyle=g,v.strokeWidth>0&&e.strokeText(v.text,i+f,l+v.vadjust),e.fillText(v.text,i+f,l+v.vadjust),f+=v.width}l+=this.lines[h].height}}},{key:"_setAlignment",value:function(e,t,n,i){if(this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&this.pointToSelf===!1){t=0,n=0;var r=2;"top"===this.fontOptions.align?(e.textBaseline="alphabetic",n-=2*r):"bottom"===this.fontOptions.align?(e.textBaseline="hanging",n+=2*r):e.textBaseline="middle"}else e.textBaseline=i;return[t,n]}},{key:"_getColor",value:function(e,t,n){var i=e||"#000000",r=n||"#ffffff";if(t<=this.elementOptions.scaling.label.drawThreshold){var o=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-t)));i=p.overrideOpacity(i,o),r=p.overrideOpacity(r,o)}return[i,r]}},{key:"getTextSize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(e,t,n),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"calculateLabelSize",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this.labelDirty===!0&&this._processLabel(e,t,n),this.size.left=i-.5*this.size.width,this.size.top=r-.5*this.size.height,this.size.yLine=r+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===o&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4),this.labelDirty=!1}},{key:"decodeMarkupSystem",value:function(e){var t="none";return"markdown"===e||"md"===e?t="markdown":e!==!0&&"html"!==e||(t="html"),t}},{key:"splitBlocks",value:function(e,t){var n=this.decodeMarkupSystem(t);return"none"===n?[{text:e,mod:"normal"}]:"markdown"===n?this.splitMarkdownBlocks(e):"html"===n?this.splitHtmlBlocks(e):void 0}},{key:"splitMarkdownBlocks",value:function(e){var t=[],n={bold:!1,ital:!1,mono:!1,beginable:!0,spacing:!1,position:0,buffer:"",modStack:[]};for(n.mod=function(){return 0===this.modStack.length?"normal":this.modStack[0]},n.modName=function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":n.bold&&n.ital?"boldital":n.bold?"bold":n.ital?"ital":void 0},n.emitBlock=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(t.push({text:this.buffer,mod:this.modName()}),this.buffer="")},n.add=function(e){" "===e&&(n.spacing=!0),n.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=e&&(this.buffer+=e)};n.position0&&void 0!==arguments[0]&&arguments[0];this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(t.push({text:this.buffer,mod:this.modName()}),this.buffer="")},n.add=function(e){" "===e&&(n.spacing=!0),n.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=e&&(this.buffer+=e)};n.position/.test(e.substr(n.position,3))?n.mono||n.ital||!//.test(e.substr(n.position,3))?!n.mono&&//.test(e.substr(n.position,6))?(n.emitBlock(),n.mono=!0,n.modStack.unshift("mono"),n.position+=5):!n.mono&&"bold"===n.mod()&&/<\/b>/.test(e.substr(n.position,4))?(n.emitBlock(),n.bold=!1,n.modStack.shift(),n.position+=3):!n.mono&&"ital"===n.mod()&&/<\/i>/.test(e.substr(n.position,4))?(n.emitBlock(),n.ital=!1,n.modStack.shift(),n.position+=3):"mono"===n.mod()&&/<\/code>/.test(e.substr(n.position,7))?(n.emitBlock(),n.mono=!1,n.modStack.shift(),n.position+=6):n.add(i):(n.emitBlock(),n.ital=!0,n.modStack.unshift("ital"),n.position+=2):(n.emitBlock(),n.bold=!0,n.modStack.unshift("bold"),n.position+=2):/&/.test(i)?/</.test(e.substr(n.position,4))?(n.add("<"),n.position+=3):/&/.test(e.substr(n.position,5))?(n.add("&"),n.position+=4):n.add("&"):n.add(i),n.position++}return n.emitBlock(),t}},{key:"getFormattingValues",value:function(e,t,n,i){var r={color:"normal"===i?this.fontOptions.color:this.fontOptions[i].color, +size:"normal"===i?this.fontOptions.size:this.fontOptions[i].size,face:"normal"===i?this.fontOptions.face:this.fontOptions[i].face,mod:"normal"===i?"":this.fontOptions[i].mod,vadjust:"normal"===i?this.fontOptions.vadjust:this.fontOptions[i].vadjust,strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};return"normal"===i?(t||n)&&(this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?r.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(e,r,this.elementOptions.id,t,n)):(t||n)&&"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(e,r,this.elementOptions.id,t,n),e.font=(r.mod+" "+r.size+"px "+r.face).replace(/"/g,""),r.font=e.font,r.height=r.size,r}},{key:"differentState",value:function(e,t){return e!==this.fontOptions.selectedState&&t!==this.fontOptions.hoverState}},{key:"_processLabel",value:function(e,t,n){var i=0,r=0,o=[],a=0;if(o.add=function(e,t,n,i,r,o,a,s,u,l){this.length==e&&(this[e]={width:0,height:0,blocks:[]}),this[e].blocks.push({text:t,font:n,color:i,width:r,height:o,vadjust:a,mod:s,strokeWidth:u,strokeColor:l})},o.accumulate=function(e,t,n){this[e].width+=t,this[e].height=n>this[e].height?n:this[e].height},o.addAndAccumulate=function(e,t,n,i,r,o,a,s,u,l){this.add(e,t,n,i,r,o,a,s,u,l),this.accumulate(e,r,o)},void 0!==this.elementOptions.label){var s=String(this.elementOptions.label).split("\n"),u=s.length;if(this.elementOptions.font.multi)for(var l=0;l0)for(var v=this.getFormattingValues(e,t,n,c[p].mod),m=c[p].text.split(" "),y=!0,g="",b={width:0},_=void 0,w=0;wthis.fontOptions.maxWdt&&0!=_.width?(h=v.height>h?v.height:h,o.add(a,g,v.font,v.color,_.width,v.height,v.vadjust,c[p].mod,v.strokeWidth,v.strokeColor),o.accumulate(a,_.width,h),g="",y=!0,d=0,i=o[a].width>i?o[a].width:i,r+=o[a].height,a++):(g=g+x+m[w],w===m.length-1&&(h=v.height>h?v.height:h,d+=b.width,o.add(a,g,v.font,v.color,b.width,v.height,v.vadjust,c[p].mod,v.strokeWidth,v.strokeColor),o.accumulate(a,b.width,h),p===c.length-1&&(i=o[a].width>i?o[a].width:i,r+=o[a].height,a++)),w++,y=!1)}else{var T=this.getFormattingValues(e,t,n,c[p].mod),E=e.measureText(c[p].text);o.addAndAccumulate(a,c[p].text,T.font,T.color,E.width,T.height,T.vadjust,c[p].mod,T.strokeWidth,T.strokeColor),i=o[a].width>i?o[a].width:i,c.length-1===p&&(r+=o[a].height,a++)}}}else for(var C=0;C0)for(var S=s[C].split(" "),k="",P={width:0},M=void 0,N=0;Nthis.fontOptions.maxWdt&&0!=M.width?(o.addAndAccumulate(a,k,O.font,O.color,M.width,O.size,O.vadjust,"normal",O.strokeWidth,O.strokeColor),i=o[a].width>i?o[a].width:i,r+=o[a].height,k="",a++):(k=k+D+S[N],N===S.length-1&&(o.addAndAccumulate(a,k,O.font,O.color,P.width,O.size,O.vadjust,"normal",O.strokeWidth,O.strokeColor),i=o[a].width>i?o[a].width:i,r+=o[a].height,a++),N++)}else{var I=s[C],L=e.measureText(I);o.addAndAccumulate(a,I,O.font,O.color,L.width,O.size,O.vadjust,"normal",O.strokeWidth,O.strokeColor),i=o[a].width>i?o[a].width:i,r+=o[a].height,a++}}}this.fontOptions.minWdt>0&&i0&&r2&&void 0!==arguments[2]&&arguments[2];if("string"==typeof t.font){var i=t.font.split(" ");e.size=i[0].replace("px",""),e.face=i[1],e.color=i[2],e.vadjust=0}else"object"===(0,l.default)(t.font)&&p.fillIfDefined(e,t.font,n);e.size=Number(e.size),e.vadjust=Number(e.vadjust)}}]),e}();t.default=v},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(166),o=i(r),a=n(2),s=i(a);t.default=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var a,u=(0,s.default)(e);!(i=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&u.return&&u.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if((0,o.default)(Object(t)))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(e,t,n){e.exports={default:n(167),__esModule:!0}},function(e,t,n){n(4),n(50),e.exports=n(168)},function(e,t,n){var i=n(54),r=n(47)("iterator"),o=n(8);e.exports=n(17).isIterable=function(e){var t=Object(e);return void 0!==t[r]||"@@iterator"in t||o.hasOwnProperty(i(t))}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r._setMargins(i),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;(void 0===this.width||this.labelModule.differentState(t,n))&&(this.textSize=this.labelModule.getTextSize(e,t,n),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=this.width/2)}},{key:"draw",value:function(e,t,n,i,r,o){this.resize(e,i,r),this.left=t-this.width/2,this.top=n-this.height/2,e.strokeStyle=o.borderColor,e.lineWidth=o.borderWidth,e.lineWidth/=this.body.view.scale,e.lineWidth=Math.min(this.width,e.lineWidth),e.fillStyle=o.color,e.roundRect(this.left,this.top,this.width,this.height,o.borderRadius),this.enableShadow(e,o),e.fill(),this.disableShadow(e,o),e.save(),o.borderWidth>0&&(this.enableBorderDashes(e,o),e.stroke(),this.disableBorderDashes(e,o)),e.restore(),this.updateBoundingBox(t,n,e,i,r),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,r)}},{key:"updateBoundingBox",value:function(e,t,n,i,r){this.resize(n,i,r),this.left=e-this.width/2,this.top=t-this.height/2;var o=this.options.shapeProperties.borderRadius;this.boundingBox.left=this.left-o,this.boundingBox.top=this.top-o,this.boundingBox.bottom=this.top+this.height+o,this.boundingBox.right=this.left+this.width+o}},{key:"distanceToBorder",value:function(e,t){this.resize(e);var n=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(t)),Math.abs(this.height/2/Math.sin(t)))+n}}]),t}(v.default);t.default=m},function(e,t,n){e.exports={default:n(171),__esModule:!0}},function(e,t,n){n(172),e.exports=n(17).Object.getPrototypeOf},function(e,t,n){var i=n(49),r=n(48);n(61)("getPrototypeOf",function(){return function(e){return r(i(e))}})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(62),o=i(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(175),o=i(r),a=n(55),s=i(a),u=n(62),l=i(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,l.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(176),__esModule:!0}},function(e,t,n){n(177),e.exports=n(17).Object.setPrototypeOf},function(e,t,n){var i=n(15);i(i.S,"Object",{setPrototypeOf:n(178).set})},function(e,t,n){var i=n(23),r=n(22),o=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{i=n(18)(Function.call,n(78).f(Object.prototype,"__proto__").set,2),i(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(62),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=function(){function e(t,n,i){(0,s.default)(this,e),this.body=n,this.labelModule=i,this.setOptions(t),this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.radius=void 0,this.margin=void 0,this.boundingBox={top:0,left:0,right:0,bottom:0}}return(0,l.default)(e,[{key:"setOptions",value:function(e){this.options=e}},{key:"_setMargins",value:function(e){this.margin={},this.options.margin&&("object"==(0,o.default)(this.options.margin)?(this.margin.top=this.options.margin.top,this.margin.right=this.options.margin.right,this.margin.bottom=this.options.margin.bottom,this.margin.left=this.options.margin.left):(this.margin.top=this.options.margin,this.margin.right=this.options.margin,this.margin.bottom=this.options.margin,this.margin.left=this.options.margin)),e.adjustSizes(this.margin)}},{key:"_distanceToBorder",value:function(e,t){var n=this.options.borderWidth;return this.resize(e),Math.min(Math.abs(this.width/2/Math.cos(t)),Math.abs(this.height/2/Math.sin(t)))+n}},{key:"enableShadow",value:function(e,t){t.shadow&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}},{key:"disableShadow",value:function(e,t){t.shadow&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},{key:"enableBorderDashes",value:function(e,t){if(t.borderDashes!==!1)if(void 0!==e.setLineDash){var n=t.borderDashes;n===!0&&(n=[5,15]),e.setLineDash(n)}else console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,t.borderDashes=!1}},{key:"disableBorderDashes",value:function(e,t){t.borderDashes!==!1&&(void 0!==e.setLineDash?e.setLineDash([0]):(console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,t.borderDashes=!1))}}]),e}();t.default=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(181),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r._setMargins(i),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(void 0===this.width||this.labelModule.differentState(t,n)){this.textSize=this.labelModule.getTextSize(e,t,n);var i=Math.max(this.textSize.width+this.margin.right+this.margin.left,this.textSize.height+this.margin.top+this.margin.bottom);this.options.size=i/2,this.width=i,this.height=i,this.radius=this.width/2}}},{key:"draw",value:function(e,t,n,i,r,o){this.resize(e,i,r),this.left=t-this.width/2,this.top=n-this.height/2,this._drawRawCircle(e,t,n,i,r,o),this.boundingBox.top=n-o.size,this.boundingBox.left=t-o.size,this.boundingBox.right=t+o.size,this.boundingBox.bottom=n+o.size,this.updateBoundingBox(t,n),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,n,i,r)}},{key:"updateBoundingBox",value:function(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size}},{key:"distanceToBorder",value:function(e,t){return this.resize(e),.5*this.width}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r.labelOffset=0,r.imageLoaded=!1,r.selected=!1,r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"setOptions",value:function(e,t,n){this.options=e,this.setImages(t,n)}},{key:"setImages",value:function(e,t){e&&(this.imageObj=e,t&&(this.imageObjAlt=t))}},{key:"switchImages",value:function(e){if(e&&!this.selected||!e&&this.selected){var t=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=t}this.selected=e}},{key:"_resizeImage",value:function(){var e=!1;if(this.imageObj.width&&this.imageObj.height?this.imageLoaded===!1&&(this.imageLoaded=!0,e=!0):this.imageLoaded=!1,!this.width||!this.height||e===!0){var t,n,i;this.imageObj.width&&this.imageObj.height&&(t=0,n=0),this.options.shapeProperties.useImageSize===!1?this.imageObj.width>this.imageObj.height?(i=this.imageObj.width/this.imageObj.height,t=2*this.options.size*i||this.imageObj.width,n=2*this.options.size||this.imageObj.height):(i=this.imageObj.width&&this.imageObj.height?this.imageObj.height/this.imageObj.width:1,t=2*this.options.size,n=2*this.options.size*i):(t=this.imageObj.width,n=this.imageObj.height),this.width=t,this.height=n,this.radius=.5*this.width}}},{key:"_drawRawCircle",value:function(e,t,n,i,r,o){var a=o.borderWidth/this.body.view.scale;e.lineWidth=Math.min(this.width,a),e.strokeStyle=o.borderColor,e.fillStyle=o.color,e.circle(t,n,o.size),this.enableShadow(e,o),e.fill(),this.disableShadow(e,o),e.save(),a>0&&(this.enableBorderDashes(e,o),e.stroke(),this.disableBorderDashes(e,o)),e.restore()}},{key:"_drawImageAtPosition",value:function(e,t){if(0!=this.imageObj.width){e.globalAlpha=1,this.enableShadow(e,t);var n=this.imageObj.width/this.width/this.body.view.scale;if(n>2&&this.options.shapeProperties.interpolation===!0){var i=this.imageObj.width,r=this.imageObj.height,o=document.createElement("canvas");o.width=i,o.height=i;var a=o.getContext("2d");n*=.5,i*=.5,r*=.5,a.drawImage(this.imageObj,0,0,i,r);for(var s=0,u=1;n>2&&u<4;)a.drawImage(o,s,0,i,r,s+i,0,i/2,r/2),s+=i,n*=.5,i*=.5,r*=.5,u+=1;e.drawImage(o,s,0,i,r,this.left,this.top,this.width,this.height)}else e.drawImage(this.imageObj,this.left,this.top,this.width,this.height);this.disableShadow(e,t)}}},{key:"_drawImageLabel",value:function(e,t,n,i,r){var o,a=0;if(void 0!==this.height){a=.5*this.height;var s=this.labelModule.getTextSize(e,i,r);s.lineCount>=1&&(a+=s.height/2)}o=n+a,this.options.label&&(this.labelOffset=a),this.labelModule.draw(e,t,o,i,r,"hanging")}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(181),v=i(p),m=function(e){function t(e,n,i,r,a){(0,s.default)(this,t);var u=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return u.setImages(r,a),u._swapToImageResizeWhenImageLoaded=!0,u}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height||this.labelModule.differentState(t,n)){var i=2*this.options.size;this.width=i,this.height=i,this._swapToImageResizeWhenImageLoaded=!0,this.radius=.5*this.width}else this._swapToImageResizeWhenImageLoaded&&(this.width=void 0,this.height=void 0,this._swapToImageResizeWhenImageLoaded=!1),this._resizeImage()}},{key:"draw",value:function(e,t,n,i,r,o){this.imageObjAlt&&this.switchImages(i),this.resize(),this.left=t-this.width/2,this.top=n-this.height/2;Math.min(.5*this.height,.5*this.width);this._drawRawCircle(e,t,n,i,r,o),e.save(),e.clip(),this._drawImageAtPosition(e,o),e.restore(),this._drawImageLabel(e,t,n,i,r),this.updateBoundingBox(t,n)}},{key:"updateBoundingBox",value:function(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size,this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(e,t){return this.resize(e),.5*this.width}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r._setMargins(i),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e,t,n){if(void 0===this.width||this.labelModule.differentState(t,n)){this.textSize=this.labelModule.getTextSize(e,t,n);var i=this.textSize.width+this.margin.right+this.margin.left;this.width=i,this.height=i,this.radius=this.width/2}}},{key:"draw",value:function(e,t,n,i,r,o){this.resize(e,i,r),this.left=t-this.width/2,this.top=n-this.height/2;var a=o.borderWidth/this.body.view.scale;e.lineWidth=Math.min(this.width,a),e.strokeStyle=o.borderColor,e.fillStyle=o.color,e.database(t-this.width/2,n-this.height/2,this.width,this.height),this.enableShadow(e,o),e.fill(),this.disableShadow(e,o),e.save(),a>0&&(this.enableBorderDashes(e,o),e.stroke(),this.disableBorderDashes(e,o)),e.restore(),this.updateBoundingBox(t,n,e,i,r),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,r)}},{key:"updateBoundingBox",value:function(e,t,n,i,r){this.resize(n,i,r),this.left=e-.5*this.width,this.top=t-.5*this.height,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,i=arguments[3];this._resizeShape(t,n,i)}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"diamond",4,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"_resizeShape",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selected,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.hover,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{size:this.options.size};if(void 0===this.width||this.labelModule.differentState(e,t)){var i=2*n.size;this.width=i,this.height=i,this.radius=.5*this.width}}},{key:"_drawShape",value:function(e,t,n,i,r,o,a,s){this._resizeShape(o,a,s),this.left=i-this.width/2,this.top=r-this.height/2;var u=s.borderWidth/this.body.view.scale;if(e.lineWidth=Math.min(this.width,u),e.strokeStyle=s.borderColor,e.fillStyle=s.color,e[t](i,r,s.size),this.enableShadow(e,s),e.fill(),this.disableShadow(e,s),e.save(),u>0&&(this.enableBorderDashes(e,s),e.stroke(),this.disableBorderDashes(e,s)),e.restore(),void 0!==this.options.label){var l=r+.5*this.height+3;this.labelModule.draw(e,i,l,o,a,"hanging")}this.updateBoundingBox(i,r)}},{key:"updateBoundingBox",value:function(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+3))}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,i=arguments[3];this._resizeShape(t,n,i)}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"circle",2,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this.resize(e),this.options.size}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(void 0===this.width||this.labelModule.differentState(t,n)){var i=this.labelModule.getTextSize(e,t,n);this.height=2*i.height,this.width=i.width+this.height,this.radius=.5*this.width}}},{key:"draw",value:function(e,t,n,i,r,o){this.resize(e,i,r),this.left=t-.5*this.width,this.top=n-.5*this.height;var a=o.borderWidth/this.body.view.scale;e.lineWidth=Math.min(this.width,a),e.strokeStyle=o.borderColor,e.fillStyle=o.color,e.ellipse(this.left,this.top,this.width,this.height),this.enableShadow(e,o),e.fill(),this.disableShadow(e,o),e.save(),a>0&&(this.enableBorderDashes(e,o),e.stroke(),this.disableBorderDashes(e,o)),e.restore(),this.updateBoundingBox(t,n,e,i,r),this.labelModule.draw(e,t,n,i,r)}},{key:"updateBoundingBox",value:function(e,t,n,i,r){this.resize(n,i,r),this.left=e-.5*this.width,this.top=t-.5*this.height,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"distanceToBorder",value:function(e,t){this.resize(e);var n=.5*this.width,i=.5*this.height,r=Math.sin(t)*n,o=Math.cos(t)*i;return n*i/Math.sqrt(r*r+o*o)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r._setMargins(i),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e,t,n){(void 0===this.width||this.labelModule.differentState(t,n))&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(e,t,n,i,r,o){if(this.resize(e,i,r),this.options.icon.size=this.options.icon.size||50,this.left=t-this.width/2,this.top=n-this.height/2,this._icon(e,t,n,i,r,o),void 0!==this.options.label){var a=5;this.labelModule.draw(e,this.left+this.iconSize.width/2+this.margin.left,n+this.height/2+a,i)}this.updateBoundingBox(t,n)}},{key:"updateBoundingBox",value:function(e,t){if(this.boundingBox.top=t-.5*this.options.icon.size,this.boundingBox.left=e-.5*this.options.icon.size,this.boundingBox.right=e+.5*this.options.icon.size,this.boundingBox.bottom=t+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0){var n=5;this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+n)}}},{key:"_icon",value:function(e,t,n,i,r,o){var a=Number(this.options.icon.size);void 0!==this.options.icon.code?(e.font=(i?"bold ":"")+a+"px "+this.options.icon.face,e.fillStyle=this.options.icon.color||"black",e.textAlign="center",e.textBaseline="middle",this.enableShadow(e,o),e.fillText(this.options.icon.code,t,n),this.disableShadow(e,o)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(181),v=i(p),m=function(e){function t(e,n,i,r,a){(0,s.default)(this,t);var u=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return u.setImages(r,a),u}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(){this._resizeImage()}},{key:"draw",value:function(e,t,n,i,r,o){if(this.imageObjAlt&&this.switchImages(i),this.selected=i,this.resize(),this.left=t-this.width/2,this.top=n-this.height/2,this.options.shapeProperties.useBorderWithImage===!0){var a=this.options.borderWidth,s=this.options.borderWidthSelected||2*this.options.borderWidth,u=(i?s:a)/this.body.view.scale;e.lineWidth=Math.min(this.width,u),e.beginPath(),e.strokeStyle=i?this.options.color.highlight.border:r?this.options.color.hover.border:this.options.color.border,e.fillStyle=i?this.options.color.highlight.background:r?this.options.color.hover.background:this.options.color.background,e.rect(this.left-.5*e.lineWidth,this.top-.5*e.lineWidth,this.width+e.lineWidth,this.height+e.lineWidth),e.fill(),e.save(),u>0&&(this.enableBorderDashes(e,o),e.stroke(),this.disableBorderDashes(e,o)),e.restore(),e.closePath()}this._drawImageAtPosition(e,o),this._drawImageLabel(e,t,n,i,r),this.updateBoundingBox(t,n)}},{key:"updateBoundingBox",value:function(e,t){this.resize(),this.left=e-this.width/2,this.top=t-this.height/2,this.boundingBox.top=this.top,this.boundingBox.left=this.left,this.boundingBox.right=this.left+this.width,this.boundingBox.bottom=this.top+this.height,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(){this._resizeShape()}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"square",2,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e,t,n,i){this._resizeShape(t,n,i)}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"star",4,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(179),v=i(p),m=function(e){function t(e,n,i){(0,s.default)(this,t);var r=(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i));return r._setMargins(i),r}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e,t,n){(void 0===this.width||this.labelModule.differentState(t,n))&&(this.textSize=this.labelModule.getTextSize(e,t,n),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(e,t,n,i,r,o){this.resize(e,i,r),this.left=t-this.width/2,this.top=n-this.height/2,this.enableShadow(e,o),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,i,r),this.disableShadow(e,o),this.updateBoundingBox(t,n,e,i,r)}},{key:"updateBoundingBox",value:function(e,t,n,i,r){this.resize(n,i,r),this.left=e-this.width/2,this.top=t-this.height/2,this.boundingBox.top=this.top,this.boundingBox.left=this.left,this.boundingBox.right=this.left+this.width,this.boundingBox.bottom=this.top+this.height}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){this._resizeShape()}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"triangle",3,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){ +return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(185),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"resize",value:function(e){this._resizeShape()}},{key:"draw",value:function(e,t,n,i,r,o){this._drawShape(e,"triangleDown",3,t,n,i,r,o)}},{key:"distanceToBorder",value:function(e,t){return this._distanceToBorder(e,t)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(196),l=i(u),c=n(164),d=i(c),h=n(1),f=n(89),p=n(93),v=function(){function e(t,n,i){var r=this;(0,o.default)(this,e),this.body=t,this.images=n,this.groups=i,this.body.functions.createEdge=this.create.bind(this),this.edgesListeners={add:function(e,t){r.add(t.items)},update:function(e,t){r.update(t.items)},remove:function(e,t){r.remove(t.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(e,t,n,i){if(t===e)return.5;var r=1/(t-e);return Math.max(0,(i-e)*r)}},selectionWidth:1.5,selfReferenceSize:20,shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},h.extend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,s.default)(e,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("_forceDisableDynamicCurves",function(t){"dynamic"===t&&(t="continuous");var n=!1;for(var i in e.body.edges)if(e.body.edges.hasOwnProperty(i)){var r=e.body.edges[i],o=e.body.data.edges._data[i];if(void 0!==o){var a=o.smooth;void 0!==a&&a.enabled===!0&&"dynamic"===a.type&&(void 0===t?r.setOptions({smooth:!1}):r.setOptions({smooth:{type:t}}),n=!0)}}n===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",function(){e.reconnectEdges()}),this.body.emitter.on("refreshEdges",this.refresh.bind(this)),this.body.emitter.on("refresh",this.refresh.bind(this)),this.body.emitter.on("destroy",function(){h.forEach(e.edgesListeners,function(t,n){e.body.data.edges&&e.body.data.edges.off(n,t)}),delete e.body.functions.createEdge,delete e.edgesListeners.add,delete e.edgesListeners.update,delete e.edgesListeners.remove,delete e.edgesListeners})}},{key:"setOptions",value:function(e){if(this.edgeOptions=e,void 0!==e){l.default.parseOptions(this.options,e);var t=!1;if(void 0!==e.smooth)for(var n in this.body.edges)this.body.edges.hasOwnProperty(n)&&(t=this.body.edges[n].updateEdgeType()||t);if(void 0!==e.font){d.default.parseOptions(this.options.font,e);for(var i in this.body.edges)this.body.edges.hasOwnProperty(i)&&this.body.edges[i].updateLabelModule()}void 0===e.hidden&&void 0===e.physics&&t!==!0||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.data.edges;if(e instanceof f||e instanceof p)this.body.data.edges=e;else if(Array.isArray(e))this.body.data.edges=new f,this.body.data.edges.add(e);else{if(e)throw new TypeError("Array or DataSet expected");this.body.data.edges=new f}if(i&&h.forEach(this.edgesListeners,function(e,t){i.off(t,e)}),this.body.edges={},this.body.data.edges){h.forEach(this.edgesListeners,function(e,n){t.body.data.edges.on(n,e)});var r=this.body.data.edges.getIds();this.add(r,!0)}n===!1&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.edges,i=this.body.data.edges,r=0;rn.shape.height?(a=n.x+.5*n.shape.width,s=n.y-u):(a=n.x+u,s=n.y-.5*n.shape.height),o=this._pointOnCircle(a,s,u,.125),this.labelModule.draw(e,o.x,o.y,r,this.hover)}}}},{key:"isOverlappingWith",value:function(e){if(this.connected){var t=10,n=this.from.x,i=this.from.y,r=this.to.x,o=this.to.y,a=e.left,s=e.top,u=this.edgeType.getDistanceToEdge(n,i,r,o,a,s);return u0&&n<0)&&(i+=Math.PI),e.rotate(i)}},{key:"_pointOnCircle",value:function(e,t,n,i){var r=2*i*Math.PI;return{x:e+n*Math.cos(r),y:t-n*Math.sin(r)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}}],[{key:"parseOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=["arrowStrikethrough","id","from","hidden","hoverWidth","label","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","to","title","value","width"];if(E.selectiveDeepExtend(r,e,t,n),E.mergeOptions(e,t,"smooth",n,i),E.mergeOptions(e,t,"shadow",n,i),void 0!==t.dashes&&null!==t.dashes?e.dashes=t.dashes:n===!0&&null===t.dashes&&(e.dashes=(0,s.default)(i.dashes)),void 0!==t.scaling&&null!==t.scaling?(void 0!==t.scaling.min&&(e.scaling.min=t.scaling.min),void 0!==t.scaling.max&&(e.scaling.max=t.scaling.max),E.mergeOptions(e.scaling,t.scaling,"label",n,i.scaling)):n===!0&&null===t.scaling&&(e.scaling=(0,s.default)(i.scaling)),void 0!==t.arrows&&null!==t.arrows)if("string"==typeof t.arrows){var a=t.arrows.toLowerCase();e.arrows.to.enabled=a.indexOf("to")!=-1,e.arrows.middle.enabled=a.indexOf("middle")!=-1,e.arrows.from.enabled=a.indexOf("from")!=-1}else{if("object"!==(0,l.default)(t.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+(0,o.default)(t.arrows));E.mergeOptions(e.arrows,t.arrows,"to",n,i.arrows),E.mergeOptions(e.arrows,t.arrows,"middle",n,i.arrows),E.mergeOptions(e.arrows,t.arrows,"from",n,i.arrows)}else n===!0&&null===t.arrows&&(e.arrows=(0,s.default)(i.arrows));if(void 0!==t.color&&null!==t.color)if(e.color=E.deepExtend({},e.color,!0),E.isString(t.color))e.color.color=t.color,e.color.highlight=t.color,e.color.hover=t.color,e.color.inherit=!1;else{var u=!1;void 0!==t.color.color&&(e.color.color=t.color.color,u=!0),void 0!==t.color.highlight&&(e.color.highlight=t.color.highlight,u=!0),void 0!==t.color.hover&&(e.color.hover=t.color.hover,u=!0),void 0!==t.color.inherit&&(e.color.inherit=t.color.inherit),void 0!==t.color.opacity&&(e.color.opacity=Math.min(1,Math.max(0,t.color.opacity))),void 0===t.color.inherit&&u===!0&&(e.color.inherit=!1)}else n===!0&&null===t.color&&(e.color=E.bridgeObject(i.color));void 0!==t.font&&null!==t.font?v.default.parseOptions(e.font,t):n===!0&&null===t.font&&(e.font=E.bridgeObject(i.font))}}]),e}();t.default=C},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(165),o=i(r),a=n(170),s=i(a),u=n(119),l=i(u),c=n(120),d=i(c),h=n(173),f=i(h),p=n(174),v=i(p),m=n(198),y=i(m),g=function(e){function t(e,n,i){return(0,l.default)(this,t),(0,f.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e,n,i))}return(0,v.default)(t,e),(0,d.default)(t,[{key:"_line",value:function(e,t,n){var i=n[0],r=n[1];e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),void 0===n||void 0===i.x?e.lineTo(this.toPoint.x,this.toPoint.y):e.bezierCurveTo(i.x,i.y,r.x,r.y,this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}},{key:"_getViaCoordinates",value:function(){var e=this.from.x-this.to.x,t=this.from.y-this.to.y,n=void 0,i=void 0,r=void 0,o=void 0,a=this.options.smooth.roundness;return(Math.abs(e)>Math.abs(t)||this.options.smooth.forceDirection===!0||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(i=this.from.y,o=this.to.y,n=this.from.x-a*e,r=this.to.x+a*e):(i=this.from.y-a*t,o=this.to.y+a*t,n=this.from.x,r=this.to.x),[{x:n,y:i},{x:r,y:o}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(e,t){return this._findBorderPositionBezier(e,t)}},{key:"_getDistanceToEdge",value:function(e,t,n,i,r,a){var s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),u=(0,o.default)(s,2),l=u[0],c=u[1];return this._getDistanceToBezierEdge(e,t,n,i,r,a,l,c)}},{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),n=(0,o.default)(t,2),i=n[0],r=n[1],a=e,s=[];s[0]=Math.pow(1-a,3),s[1]=3*a*Math.pow(1-a,2),s[2]=3*Math.pow(a,2)*(1-a),s[3]=Math.pow(a,3);var u=s[0]*this.fromPoint.x+s[1]*i.x+s[2]*r.x+s[3]*this.toPoint.x,l=s[0]*this.fromPoint.y+s[1]*i.y+s[2]*r.y+s[3]*this.toPoint.y;return{x:u,y:l}}}]),t}(y.default);t.default=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(199),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"_getDistanceToBezierEdge",value:function(e,t,n,i,r,o,a,s){var u=1e9,l=void 0,c=void 0,d=void 0,h=void 0,f=void 0,p=e,v=t,m=[0,0,0,0];for(c=1;c<10;c++)d=.1*c,m[0]=Math.pow(1-d,3),m[1]=3*d*Math.pow(1-d,2),m[2]=3*Math.pow(d,2)*(1-d),m[3]=Math.pow(d,3),h=m[0]*e+m[1]*a.x+m[2]*s.x+m[3]*n,f=m[0]*t+m[1]*a.y+m[2]*s.y+m[3]*i,c>0&&(l=this._getDistanceToLine(p,v,h,f,r,o),u=l2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),u=10,l=0,c=0,d=1,h=.2,f=this.to,p=!1;for(e.id===this.from.id&&(f=this.from,p=!0);c<=d&&l0&&(u=this._getDistanceToLine(f,p,d,h,r,o),s=ui.shape.height?(t=i.x+.5*i.shape.width,n=i.y-r):(t=i.x+r,n=i.y-.5*i.shape.height),[t,n,r]}},{key:"_pointOnCircle",value:function(e,t,n,i){var r=2*i*Math.PI;return{x:e+n*Math.cos(r),y:t-n*Math.sin(r)}}},{key:"_findBorderPositionCircle",value:function(e,t,n){for(var i=n.x,r=n.y,o=n.low,a=n.high,s=n.direction,u=10,l=0,c=this.options.selfReferenceSize,d=void 0,h=void 0,f=void 0,p=void 0,v=void 0,m=.05,y=.5*(o+a);o<=a&&l0?s>0?o=y:a=y:s>0?a=y:o=y,l++;return d.t=y,d}},{key:"getLineWidth",value:function(e,t){return e===!0?Math.max(this.selectionWidth,.3/this.body.view.scale):t===!0?Math.max(this.hoverWidth,.3/this.body.view.scale):Math.max(this.options.width,.3/this.body.view.scale)}},{key:"getColor",value:function(e,t,n,i){if(t.inheritsColor!==!1){if("both"===t.inheritsColor&&this.from.id!==this.to.id){var r=e.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),o=void 0,a=void 0;return o=this.from.options.color.highlight.border,a=this.to.options.color.highlight.border,this.from.selected===!1&&this.to.selected===!1?(o=c.overrideOpacity(this.from.options.color.border,t.opacity),a=c.overrideOpacity(this.to.options.color.border,t.opacity)):this.from.selected===!0&&this.to.selected===!1?a=this.to.options.color.border:this.from.selected===!1&&this.to.selected===!0&&(o=this.from.options.color.border),r.addColorStop(0,o),r.addColorStop(1,a),r}return"to"===t.inheritsColor?c.overrideOpacity(this.to.options.color.border,t.opacity):c.overrideOpacity(this.from.options.color.border,t.opacity)}return c.overrideOpacity(t.color,t.opacity)}},{key:"_circle",value:function(e,t,n,i,r){this.enableShadow(e,t),e.beginPath(),e.arc(n,i,r,0,2*Math.PI,!1),e.stroke(),this.disableShadow(e,t)}},{key:"getDistanceToEdge",value:function(e,t,n,i,r,a,s,u){var l=0;if(this.from!=this.to)l=this._getDistanceToEdge(e,t,n,i,r,a,s);else{var c=this._getCircleData(void 0),d=(0,o.default)(c,3),h=d[0],f=d[1],p=d[2],v=h-r,m=f-a;l=Math.abs(Math.sqrt(v*v+m*m)-p)}return this.labelModule.size.leftr&&this.labelModule.size.topa?0:l}},{key:"_getDistanceToLine",value:function(e,t,n,i,r,o){var a=n-e,s=i-t,u=a*a+s*s,l=((r-e)*a+(o-t)*s)/u;l>1?l=1:l<0&&(l=0);var c=e+l*a,d=t+l*s,h=c-r,f=d-o;return Math.sqrt(h*h+f*f)}},{key:"getArrowData",value:function(e,t,n,i,r,a){var s=void 0,u=void 0,l=void 0,c=void 0,d=void 0,h=void 0,f=void 0,p=a.width;if("from"===t?(l=this.from,c=this.to,d=.1,h=a.fromArrowScale,f=a.fromArrowType):"to"===t?(l=this.to,c=this.from,d=-.1,h=a.toArrowScale,f=a.toArrowType):(l=this.to,c=this.from,h=a.middleArrowScale,f=a.middleArrowType),l!=c)if("middle"!==t)if(this.options.smooth.enabled===!0){u=this.findBorderPosition(l,e,{via:n});var v=this.getPoint(Math.max(0,Math.min(1,u.t+d)),n);s=Math.atan2(u.y-v.y,u.x-v.x)}else s=Math.atan2(l.y-c.y,l.x-c.x),u=this.findBorderPosition(l,e);else s=Math.atan2(l.y-c.y,l.x-c.x),u=this.getPoint(.5,n);else{var m=this._getCircleData(e),y=(0,o.default)(m,3),g=y[0],b=y[1],_=y[2];"from"===t?(u=this.findBorderPosition(this.from,e,{x:g,y:b,low:.25,high:.6,direction:-1}),s=u.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI):"to"===t?(u=this.findBorderPosition(this.from,e,{x:g,y:b,low:.6,high:1,direction:1}),s=u.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI):(u=this._pointOnCircle(g,b,_,.175),s=3.9269908169872414)}var w=15*h+3*p,x=u.x-.9*w*Math.cos(s),T=u.y-.9*w*Math.sin(s),E={x:x,y:T};return{point:u,core:E,angle:s,length:w,type:f}}},{key:"drawArrowHead",value:function(e,t,n,i,r){e.strokeStyle=this.getColor(e,t,n,i),e.fillStyle=e.strokeStyle,e.lineWidth=t.width,r.type&&"circle"===r.type.toLowerCase()?e.circleEndpoint(r.point.x,r.point.y,r.angle,r.length):e.arrowEndpoint(r.point.x,r.point.y,r.angle,r.length),this.enableShadow(e,t),e.fill(),this.disableShadow(e,t)}},{key:"enableShadow",value:function(e,t){t.shadow===!0&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}},{key:"disableShadow",value:function(e,t){t.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}}]),e}();t.default=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(165),o=i(r),a=n(170),s=i(a),u=n(119),l=i(u),c=n(120),d=i(c),h=n(173),f=i(h),p=n(174),v=i(p),m=n(199),y=i(m),g=function(e){function t(e,n,i){(0,l.default)(this,t);var r=(0,f.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e,n,i));return r._boundFunction=function(){r.positionBezierNode()},r.body.emitter.on("_repositionBezierNodes",r._boundFunction),r}return(0,v.default)(t,e),(0,d.default)(t,[{key:"setOptions",value:function(e){var t=!1;this.options.physics!==e.physics&&(t=!0),this.options=e,this.id=this.options.id,this.from=this.body.nodes[this.options.from],this.to=this.body.nodes[this.options.to],this.setupSupportNode(),this.connect(),t===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this.body.nodes[this.options.from],this.to=this.body.nodes[this.options.to],void 0===this.from||void 0===this.to||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this.body.emitter.off("_repositionBezierNodes",this._boundFunction),void 0!==this.via&&(delete this.body.nodes[this.via.id],this.via=void 0,!0)}},{key:"setupSupportNode",value:function(){if(void 0===this.via){var e="edgeId:"+this.id,t=this.body.functions.createNode({id:e,shape:"circle",physics:!0,hidden:!0});this.body.nodes[e]=t,this.via=t,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){void 0!==this.via&&void 0!==this.from&&void 0!==this.to?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):void 0!==this.via&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(e,t,n){e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),void 0===n.x?e.lineTo(this.toPoint.x,this.toPoint.y):e.quadraticCurveTo(n.x,n.y,this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.via,n=e,i=void 0,r=void 0;if(this.from===this.to){var a=this._getCircleData(this.from),s=(0,o.default)(a,3),u=s[0],l=s[1],c=s[2],d=2*Math.PI*(1-n);i=u+c*Math.sin(d),r=l+c-c*(1-Math.cos(d))}else i=Math.pow(1-n,2)*this.fromPoint.x+2*n*(1-n)*t.x+Math.pow(n,2)*this.toPoint.x,r=Math.pow(1-n,2)*this.fromPoint.y+2*n*(1-n)*t.y+Math.pow(n,2)*this.toPoint.y;return{x:i,y:r}}},{key:"_findBorderPosition",value:function(e,t){return this._findBorderPositionBezier(e,t,this.via)}},{key:"_getDistanceToEdge",value:function(e,t,n,i,r,o){return this._getDistanceToBezierEdge(e,t,n,i,r,o,this.via)}}]),t}(y.default);t.default=g},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(199),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"_line",value:function(e,t,n){e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),void 0===n.x?e.lineTo(this.toPoint.x,this.toPoint.y):e.quadraticCurveTo(n.x,n.y,this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var e=void 0,t=void 0,n=this.options.smooth.roundness,i=this.options.smooth.type,r=Math.abs(this.from.x-this.to.x),o=Math.abs(this.from.y-this.to.y);if("discrete"===i||"diagonalCross"===i)Math.abs(this.from.x-this.to.x)<=Math.abs(this.from.y-this.to.y)?(this.from.y>=this.to.y?this.from.x<=this.to.x?(e=this.from.x+n*o,t=this.from.y-n*o):this.from.x>this.to.x&&(e=this.from.x-n*o,t=this.from.y-n*o):this.from.ythis.to.x&&(e=this.from.x-n*o,t=this.from.y+n*o)),"discrete"===i&&(e=rMath.abs(this.from.y-this.to.y)&&(this.from.y>=this.to.y?this.from.x<=this.to.x?(e=this.from.x+n*r, +t=this.from.y-n*r):this.from.x>this.to.x&&(e=this.from.x-n*r,t=this.from.y-n*r):this.from.ythis.to.x&&(e=this.from.x-n*r,t=this.from.y+n*r)),"discrete"===i&&(t=oMath.abs(this.from.y-this.to.y)&&(e=this.from.x=this.to.y?this.from.x<=this.to.x?(e=this.from.x+n*o,t=this.from.y-n*o,e=this.to.xthis.to.x&&(e=this.from.x-n*o,t=this.from.y-n*o,e=this.to.x>e?this.to.x:e):this.from.ythis.to.x&&(e=this.from.x-n*o,t=this.from.y+n*o,e=this.to.x>e?this.to.x:e)):Math.abs(this.from.x-this.to.x)>Math.abs(this.from.y-this.to.y)&&(this.from.y>=this.to.y?this.from.x<=this.to.x?(e=this.from.x+n*r,t=this.from.y-n*r,t=this.to.y>t?this.to.y:t):this.from.x>this.to.x&&(e=this.from.x-n*r,t=this.from.y-n*r,t=this.to.y>t?this.to.y:t):this.from.ythis.to.x&&(e=this.from.x-n*r,t=this.from.y+n*r,t=this.to.y2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(e,t,n.via)}},{key:"_getDistanceToEdge",value:function(e,t,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(e,t,n,i,r,o,a)}},{key:"getPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),n=e,i=Math.pow(1-n,2)*this.fromPoint.x+2*n*(1-n)*t.x+Math.pow(n,2)*this.toPoint.x,r=Math.pow(1-n,2)*this.fromPoint.y+2*n*(1-n)*t.y+Math.pow(n,2)*this.toPoint.y;return{x:i,y:r}}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(170),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(173),d=i(c),h=n(174),f=i(h),p=n(200),v=i(p),m=function(e){function t(e,n,i){return(0,s.default)(this,t),(0,d.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e,n,i))}return(0,f.default)(t,e),(0,l.default)(t,[{key:"_line",value:function(e,t){e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),e.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(e){return{x:(1-e)*this.fromPoint.x+e*this.toPoint.x,y:(1-e)*this.fromPoint.y+e*this.toPoint.y}}},{key:"_findBorderPosition",value:function(e,t){var n=this.to,i=this.from;e.id===this.from.id&&(n=this.from,i=this.to);var r=Math.atan2(n.y-i.y,n.x-i.x),o=n.x-i.x,a=n.y-i.y,s=Math.sqrt(o*o+a*a),u=e.distanceToBorder(t,r),l=(s-u)/s,c={};return c.x=(1-l)*i.x+l*n.x,c.y=(1-l)*i.y+l*n.y,c}},{key:"_getDistanceToEdge",value:function(e,t,n,i,r,o){return this._getDistanceToLine(e,t,n,i,r,o)}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(205),d=i(c),h=n(206),f=i(h),p=n(207),v=i(p),m=n(208),y=i(m),g=n(209),b=i(g),_=n(210),w=i(_),x=n(211),T=i(x),E=n(212),C=i(E),O=n(1),S=function(){function e(t){(0,s.default)(this,e),this.body=t,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0},O.extend(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return(0,l.default)(e,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("initPhysics",function(){e.initPhysics()}),this.body.emitter.on("_layoutFailed",function(){e.layoutFailed=!0}),this.body.emitter.on("resetPhysics",function(){e.stopSimulation(),e.ready=!1}),this.body.emitter.on("disablePhysics",function(){e.physicsEnabled=!1,e.stopSimulation()}),this.body.emitter.on("restorePhysics",function(){e.setOptions(e.options),e.ready===!0&&e.startSimulation()}),this.body.emitter.on("startSimulation",function(){e.ready===!0&&e.startSimulation()}),this.body.emitter.on("stopSimulation",function(){e.stopSimulation()}),this.body.emitter.on("destroy",function(){e.stopSimulation(!1),e.body.emitter.off()}),this.body.emitter.on("_dataChanged",function(){e.updatePhysicsData()})}},{key:"setOptions",value:function(e){void 0!==e&&(e===!1?(this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation()):(this.physicsEnabled=!0,O.selectiveNotDeepExtend(["stabilization"],this.options,e),O.mergeOptions(this.options,e,"stabilization"),void 0===e.enabled&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation()),this.timestep=this.options.timestep)),this.init()}},{key:"init",value:function(){var e;"forceAtlas2Based"===this.options.solver?(e=this.options.forceAtlas2Based,this.nodesSolver=new T.default(this.body,this.physicsBody,e),this.edgesSolver=new y.default(this.body,this.physicsBody,e),this.gravitySolver=new C.default(this.body,this.physicsBody,e)):"repulsion"===this.options.solver?(e=this.options.repulsion,this.nodesSolver=new f.default(this.body,this.physicsBody,e),this.edgesSolver=new y.default(this.body,this.physicsBody,e),this.gravitySolver=new w.default(this.body,this.physicsBody,e)):"hierarchicalRepulsion"===this.options.solver?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new v.default(this.body,this.physicsBody,e),this.edgesSolver=new b.default(this.body,this.physicsBody,e),this.gravitySolver=new w.default(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new d.default(this.body,this.physicsBody,e),this.edgesSolver=new y.default(this.body,this.physicsBody,e),this.gravitySolver=new w.default(this.body,this.physicsBody,e)),this.modelOptions=e}},{key:"initPhysics",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){this.physicsEnabled===!0&&this.options.enabled===!0?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=this.simulationStep.bind(this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,e===!0&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var e=Date.now();this.physicsTick();var t=Date.now()-e;(t<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&setTimeout(function(){e.body.emitter.emit("stabilized",{iterations:t}),e.startedStabilization=!1,e.stabilizationIterations=0},0)}},{key:"physicsTick",value:function(){if(this.startedStabilization===!1&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0),this.stabilized===!1){if(this.adaptiveTimestep===!0&&this.adaptiveTimestepEnabled===!0){var e=1.2;this.adaptiveCounter%this.adaptiveInterval===0?(this.timestep=2*this.timestep,this.calculateForces(),this.moveNodes(),this.revert(),this.timestep=.5*this.timestep,this.calculateForces(),this.moveNodes(),this.calculateForces(),this.moveNodes(),this._evaluateStepQuality()===!0?this.timestep=e*this.timestep:this.timestep/eo))return!1;return!0}},{key:"moveNodes",value:function(){for(var e=this.physicsBody.physicsNodeIndices,t=this.options.maxVelocity?this.options.maxVelocity:1e9,n=0,i=0,r=5,o=0;ot?o[e].x>0?t:-t:o[e].x,n.x+=o[e].x*i}else r[e].x=0,o[e].x=0;if(n.options.fixed.y===!1){var u=this.modelOptions.damping*o[e].y,l=(r[e].y-u)/n.options.mass;o[e].y+=l*i,o[e].y=Math.abs(o[e].y)>t?o[e].y>0?t:-t:o[e].y,n.y+=o[e].y*i}else r[e].y=0,o[e].y=0;var c=Math.sqrt(Math.pow(o[e].x,2)+Math.pow(o[e].y,2));return c}},{key:"calculateForces",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve()}},{key:"_freezeNodes",value:function(){var e=this.body.nodes;for(var t in e)e.hasOwnProperty(t)&&e[t].x&&e[t].y&&(this.freezeCache[t]={x:e[t].options.fixed.x,y:e[t].options.fixed.y},e[t].options.fixed.x=!0,e[t].options.fixed.y=!0)}},{key:"_restoreFrozenNodes",value:function(){var e=this.body.nodes;for(var t in e)e.hasOwnProperty(t)&&void 0!==this.freezeCache[t]&&(e[t].options.fixed.x=this.freezeCache[t].x,e[t].options.fixed.y=this.freezeCache[t].y);this.freezeCache={}}},{key:"stabilize",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;return"number"!=typeof t&&(console.log("The stabilize method needs a numeric amount of iterations. Switching to default: ",this.options.stabilization.iterations),t=this.options.stabilization.iterations),0===this.physicsBody.physicsNodeIndices.length?void(this.ready=!0):(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=t,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,void setTimeout(function(){return e._stabilizationBatch()},0))}},{key:"_stabilizationBatch",value:function(){this.startedStabilization===!1&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0);for(var e=0;this.stabilized===!1&&e0){var e=void 0,t=this.body.nodes,n=this.physicsBody.physicsNodeIndices,i=n.length,r=this._formBarnesHutTree(t,n);this.barnesHutTree=r;for(var o=0;o0&&(this._getForceContribution(r.root.children.NW,e),this._getForceContribution(r.root.children.NE,e),this._getForceContribution(r.root.children.SW,e),this._getForceContribution(r.root.children.SE,e))}}},{key:"_getForceContribution",value:function(e,t){if(e.childrenCount>0){var n=void 0,i=void 0,r=void 0;n=e.centerOfMass.x-t.x,i=e.centerOfMass.y-t.y,r=Math.sqrt(n*n+i*i),r*e.calcSize>this.thetaInversed?this._calculateForces(r,n,i,t,e):4===e.childrenCount?(this._getForceContribution(e.children.NW,t),this._getForceContribution(e.children.NE,t),this._getForceContribution(e.children.SW,t),this._getForceContribution(e.children.SE,t)):e.children.data.id!=t.id&&this._calculateForces(r,n,i,t,e)}}},{key:"_calculateForces",value:function(e,t,n,i,r){0===e&&(e=.1,t=e),this.overlapAvoidanceFactor<1&&i.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*i.shape.radius,e-i.shape.radius));var o=this.options.gravitationalConstant*r.mass*i.options.mass/Math.pow(e,3),a=t*o,s=n*o;this.physicsBody.forces[i.id].x+=a,this.physicsBody.forces[i.id].y+=s}},{key:"_formBarnesHutTree",value:function(e,t){for(var n=void 0,i=t.length,r=e[t[0]].x,o=e[t[0]].y,a=e[t[0]].x,s=e[t[0]].y,u=1;u0&&(la&&(a=l),cs&&(s=c))}var d=Math.abs(a-r)-Math.abs(s-o);d>0?(o-=.5*d,s+=.5*d):(r+=.5*d,a-=.5*d);var h=1e-5,f=Math.max(h,Math.abs(a-r)),p=.5*f,v=.5*(r+a),m=.5*(o+s),y={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:v-p,maxX:v+p,minY:m-p,maxY:m+p},size:f,calcSize:1/f,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(y.root);for(var g=0;g0&&this._placeInTree(y.root,n);return y}},{key:"_updateBranchMass",value:function(e,t){var n=e.mass+t.options.mass,i=1/n;e.centerOfMass.x=e.centerOfMass.x*e.mass+t.x*t.options.mass,e.centerOfMass.x*=i,e.centerOfMass.y=e.centerOfMass.y*e.mass+t.y*t.options.mass,e.centerOfMass.y*=i,e.mass=n;var r=Math.max(Math.max(t.height,t.radius),t.width);e.maxWidth=e.maxWidtht.x?e.children.NW.range.maxY>t.y?this._placeInRegion(e,t,"NW"):this._placeInRegion(e,t,"SW"):e.children.NW.range.maxY>t.y?this._placeInRegion(e,t,"NE"):this._placeInRegion(e,t,"SE")}},{key:"_placeInRegion",value:function(e,t,n){switch(e.children[n].childrenCount){case 0:e.children[n].children.data=t,e.children[n].childrenCount=1,this._updateBranchMass(e.children[n],t);break;case 1:e.children[n].children.data.x===t.x&&e.children[n].children.data.y===t.y?(t.x+=this.seededRandom(),t.y+=this.seededRandom()):(this._splitBranch(e.children[n]),this._placeInTree(e.children[n],t));break;case 4:this._placeInTree(e.children[n],t)}}},{key:"_splitBranch",value:function(e){var t=null;1===e.childrenCount&&(t=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),null!=t&&this._placeInTree(e,t)}},{key:"_insertRegion",value:function(e,t){var n=void 0,i=void 0,r=void 0,o=void 0,a=.5*e.size;switch(t){case"NW":n=e.range.minX,i=e.range.minX+a,r=e.range.minY,o=e.range.minY+a;break;case"NE":n=e.range.minX+a,i=e.range.maxX,r=e.range.minY,o=e.range.minY+a;break;case"SW":n=e.range.minX,i=e.range.minX+a,r=e.range.minY+a,o=e.range.maxY;break;case"SE":n=e.range.minX+a,i=e.range.maxX,r=e.range.minY+a,o=e.range.maxY}e.children[t]={centerOfMass:{x:0,y:0},mass:0,range:{minX:n,maxX:i,minY:r,maxY:o},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}},{key:"_debug",value:function(e,t){void 0!==this.barnesHutTree&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,t))}},{key:"_drawBranch",value:function(e,t,n){void 0===n&&(n="#FF0000"),4===e.childrenCount&&(this._drawBranch(e.children.NW,t),this._drawBranch(e.children.NE,t),this._drawBranch(e.children.SE,t),this._drawBranch(e.children.SW,t)),t.strokeStyle=n,t.beginPath(),t.moveTo(e.range.minX,e.range.minY),t.lineTo(e.range.maxX,e.range.minY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.minY),t.lineTo(e.range.maxX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.maxY),t.lineTo(e.range.minX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.minX,e.range.maxY),t.lineTo(e.range.minX,e.range.minY),t.stroke()}}]),e}();t.default=u},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=function(){function e(t,n,i){(0,o.default)(this,e),this.body=t,this.physicsBody=n,this.setOptions(i)}return(0,s.default)(e,[{key:"setOptions",value:function(e){this.options=e}},{key:"solve",value:function(){for(var e,t,n,i,r,o,a,s,u=this.body.nodes,l=this.physicsBody.physicsNodeIndices,c=this.physicsBody.forces,d=this.options.nodeDistance,h=-2/3/d,f=4/3,p=0;p0){var o=r.edges.length+1,a=this.options.centralGravity*o*r.options.mass;i[r.id].x=t*a,i[r.id].y=n*a}}}]),t}(v.default);t.default=m},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=i(r),a=n(62),s=i(a),u=n(119),l=i(u),c=n(120),d=i(c),h=n(214),f=i(h),p=n(215),v=i(p),m=n(1),y=function(){function e(t){var n=this;(0,l.default)(this,e),this.body=t,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},m.extend(this.options,this.defaultOptions),this.body.emitter.on("_resetData",function(){n.clusteredNodes={},n.clusteredEdges={}})}return(0,d.default)(e,[{key:"clusterByHubsize",value:function(e,t){void 0===e?e=this._getHubSize():"object"===("undefined"==typeof e?"undefined":(0,s.default)(e))&&(t=this._checkOptions(e),e=this._getHubSize());for(var n=[],i=0;i=e&&n.push(r.id)}for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);for(var n={},i={},r=0;r2&&void 0!==arguments[2])||arguments[2];t=this._checkOptions(t);for(var i=[],r={},a=void 0,s=void 0,u=void 0,l=void 0,c=void 0,d=0;d0&&(0,o.default)(p).length>0&&m===!0&&i.push({nodes:h,edges:p})}}}for(var _=0;_1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,e,t)}},{key:"clusterBridges",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,e,t)}},{key:"clusterByConnection",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===e)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[e])throw new Error("The nodeId given to clusterByConnection does not exist!");var i=this.body.nodes[e];t=this._checkOptions(t,i),void 0===t.clusterNodeProperties.x&&(t.clusterNodeProperties.x=i.x),void 0===t.clusterNodeProperties.y&&(t.clusterNodeProperties.y=i.y),void 0===t.clusterNodeProperties.fixed&&(t.clusterNodeProperties.fixed={},t.clusterNodeProperties.fixed.x=i.options.fixed.x,t.clusterNodeProperties.fixed.y=i.options.fixed.y);var r={},a={},s=i.id,u=f.default.cloneOptions(i);r[s]=i;for(var l=0;l-1&&(a[y.id]=y)}this._cluster(r,a,t,n)}},{key:"_createClusterEdges",value:function(e,t,n,i){for(var r=void 0,a=void 0,s=void 0,u=void 0,l=void 0,c=void 0,d=(0,o.default)(e),h=[],p=0;p0&&void 0!==arguments[0]?arguments[0]:{};return void 0===e.clusterEdgeProperties&&(e.clusterEdgeProperties={}),void 0===e.clusterNodeProperties&&(e.clusterNodeProperties={}),e}},{key:"_cluster",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(0!=(0,o.default)(e).length&&(1!=(0,o.default)(e).length||1==n.clusterNodeProperties.allowSingleNodeCluster)){for(var r in e)if(e.hasOwnProperty(r)&&void 0!==this.clusteredNodes[r])return;var a=m.deepExtend({},n.clusterNodeProperties);if(void 0!==n.processProperties){var s=[];for(var u in e)if(e.hasOwnProperty(u)){var l=f.default.cloneOptions(e[u]);s.push(l)}var c=[];for(var d in t)if(t.hasOwnProperty(d)&&"clusterEdge:"!==d.substr(0,12)){var h=f.default.cloneOptions(t[d],"edge");c.push(h)}if(a=n.processProperties(a,s,c),!a)throw new Error("The processProperties function does not return properties!")}void 0===a.id&&(a.id="cluster:"+m.randomUUID());var p=a.id;void 0===a.label&&(a.label="cluster");var y=void 0;void 0===a.x&&(y=this._getClusterPosition(e),a.x=y.x),void 0===a.y&&(void 0===y&&(y=this._getClusterPosition(e)),a.y=y.y),a.id=p;var g=this.body.functions.createNode(a,v.default);g.isCluster=!0,g.containedNodes=e,g.containedEdges=t,g.clusterEdgeProperties=n.clusterEdgeProperties,this.body.nodes[a.id]=g,this._createClusterEdges(e,t,a,n.clusterEdgeProperties);for(var b in t)if(t.hasOwnProperty(b)&&void 0!==this.body.edges[b]){var _=this.body.edges[b];this._backupEdgeOptions(_),_.setOptions({physics:!1,hidden:!0})}for(var w in e)e.hasOwnProperty(w)&&(this.clusteredNodes[w]={clusterId:a.id,node:this.body.nodes[w]},this.body.nodes[w].setOptions({hidden:!0,physics:!1}));a.id=void 0,i===!0&&this.body.emitter.emit("_dataChanged")}}},{key:"_backupEdgeOptions",value:function(e){void 0===this.clusteredEdges[e.id]&&(this.clusteredEdges[e.id]={physics:e.options.physics,hidden:e.options.hidden})}},{key:"_restoreEdge",value:function(e){var t=this.clusteredEdges[e.id];void 0!==t&&(e.setOptions({physics:t.physics,hidden:t.hidden}),delete this.clusteredEdges[e.id])}},{key:"isCluster",value:function(e){return void 0!==this.body.nodes[e]?this.body.nodes[e].isCluster===!0:(console.log("Node does not exist."),!1)}},{key:"_getClusterPosition",value:function(e){for(var t=(0,o.default)(e),n=e[t[0]].x,i=e[t[0]].x,r=e[t[0]].y,a=e[t[0]].y,s=void 0,u=1;ui?s.x:i,r=s.ya?s.y:a;return{x:.5*(n+i),y:.5*(r+a)}}},{key:"openCluster",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===e)throw new Error("No clusterNodeId supplied to openCluster.");if(void 0===this.body.nodes[e])throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(void 0===this.body.nodes[e].containedNodes)return void console.log("The node:"+e+" is not a cluster.");var i=this.body.nodes[e],r=i.containedNodes,o=i.containedEdges;if(void 0!==t&&void 0!==t.releaseFunction&&"function"==typeof t.releaseFunction){var a={},s={x:i.x,y:i.y};for(var u in r)if(r.hasOwnProperty(u)){var l=this.body.nodes[u];a[u]={x:l.x,y:l.y}}var c=t.releaseFunction(s,a);for(var d in r)if(r.hasOwnProperty(d)){var h=this.body.nodes[d];void 0!==c[d]&&(h.x=void 0===c[d].x?i.x:c[d].x,h.y=void 0===c[d].y?i.y:c[d].y)}}else for(var p in r)if(r.hasOwnProperty(p)){var v=this.body.nodes[p];v=r[p],v.options.fixed.x===!1&&(v.x=i.x),v.options.fixed.y===!1&&(v.y=i.y)}for(var y in r)if(r.hasOwnProperty(y)){var g=this.body.nodes[y];g.vx=i.vx,g.vy=i.vy,g.setOptions({hidden:!1,physics:!0}),delete this.clusteredNodes[y]}for(var b=[],_=0;_i&&(i=o.edges.length),e+=o.edges.length,t+=Math.pow(o.edges.length,2),n+=1}e/=n,t/=n;var a=t-Math.pow(e,2),s=Math.sqrt(a),u=Math.floor(e+2*s);return u>i&&(u=i),u}}]),e}();t.default=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(1),l=function(){function e(){(0,o.default)(this,e)}return(0,s.default)(e,null,[{key:"getRange",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=1e9,r=-1e9,o=1e9,a=-1e9;if(n.length>0)for(var s=0;st.shape.boundingBox.left&&(o=t.shape.boundingBox.left),at.shape.boundingBox.top&&(i=t.shape.boundingBox.top),r1&&void 0!==arguments[1]?arguments[1]:[],i=1e9,r=-1e9,o=1e9,a=-1e9;if(n.length>0)for(var s=0;st.x&&(o=t.x),at.y&&(i=t.y),r0,e.renderTimer=void 0}),this.body.emitter.on("destroy",function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,e.requiresTimeout===!0?clearTimeout(e.renderTimer):cancelAnimationFrame(e.renderTimer),e.body.emitter.off()})}},{key:"setOptions",value:function(e){if(void 0!==e){var t=["hideEdgesOnDrag","hideNodesOnDrag"];u.selectiveDeepExtend(t,this.options,e)}}},{key:"_startRendering",value:function(){this.renderingActive===!0&&void 0===this.renderTimer&&(this.requiresTimeout===!0?this.renderTimer=window.setTimeout(this._renderStep.bind(this),this.simulationInterval):this.renderTimer=window.requestAnimationFrame(this._renderStep.bind(this)))}},{key:"_renderStep",value:function(){this.renderingActive===!0&&(this.renderTimer=void 0,this.requiresTimeout===!0&&this._startRendering(),this._redraw(),this.requiresTimeout===!1&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var e=this;this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,this.requiresTimeout===!0?window.setTimeout(function(){e._redraw(!1)},0):window.requestAnimationFrame(function(){e._redraw(!1)}))}},{key:"_redraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;var t=this.canvas.frame.canvas.getContext("2d");0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.canvas.frame.canvas.clientWidth,i=this.canvas.frame.canvas.clientHeight;if(t.clearRect(0,0,n,i),0===this.canvas.frame.clientWidth)return;t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale),t.beginPath(),this.body.emitter.emit("beforeDrawing",t),t.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&this._drawEdges(t),(this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1)&&this._drawNodes(t,e),t.beginPath(),this.body.emitter.emit("afterDrawing",t),t.closePath(),t.restore(),e===!0&&t.clearRect(0,0,n,i)}}},{key:"_resizeNodes",value:function(){var e=this.canvas.frame.canvas.getContext("2d");void 0===this.pixelRatio&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0),e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);var t=this.body.nodes,n=void 0;for(var i in t)t.hasOwnProperty(i)&&(n=t[i],n.resize(e),n.updateBoundingBox(e,n.selected));e.restore()}},{key:"_drawNodes",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.nodes,i=this.body.nodeIndices,r=void 0,o=[],a=20,s=this.canvas.DOMtoCanvas({x:-a,y:-a}),u=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+a,y:this.canvas.frame.canvas.clientHeight+a}),l={top:s.y,left:s.x,bottom:u.y,right:u.x},c=0;c0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0){var e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,t=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,n=this.cameraState.scale;1!=e&&1!=t?n=.5*this.cameraState.scale*(e+t):1!=e?n=this.cameraState.scale*e:1!=t&&(n=this.cameraState.scale*t),this.body.view.scale=n;var i=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),r={x:i.x-this.cameraState.position.x,y:i.y-this.cameraState.position.y};this.body.view.translation.x+=r.x*this.body.view.scale,this.body.view.translation.y+=r.y*this.body.view.scale}}},{key:"_prepareValue",value:function(e){if("number"==typeof e)return e+"px";if("string"==typeof e){if(e.indexOf("%")!==-1||e.indexOf("px")!==-1)return e;if(e.indexOf("%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=900,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext){var e=this.frame.canvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1),this.frame.canvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var e=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new u(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:u.DIRECTION_ALL}),l.onTouch(this.hammer,function(t){e.body.eventListeners.onTouch(t)}),this.hammer.on("tap",function(t){e.body.eventListeners.onTap(t)}),this.hammer.on("doubletap",function(t){e.body.eventListeners.onDoubleTap(t)}),this.hammer.on("press",function(t){e.body.eventListeners.onHold(t)}),this.hammer.on("panstart",function(t){e.body.eventListeners.onDragStart(t)}),this.hammer.on("panmove",function(t){e.body.eventListeners.onDrag(t)}),this.hammer.on("panend",function(t){e.body.eventListeners.onDragEnd(t)}),this.hammer.on("pinch",function(t){e.body.eventListeners.onPinch(t)}),this.frame.canvas.addEventListener("mousewheel",function(t){e.body.eventListeners.onMouseWheel(t)}),this.frame.canvas.addEventListener("DOMMouseScroll",function(t){e.body.eventListeners.onMouseWheel(t)}),this.frame.canvas.addEventListener("mousemove",function(t){e.body.eventListeners.onMouseMove(t)}),this.frame.canvas.addEventListener("contextmenu",function(t){e.body.eventListeners.onContext(t)}),this.hammerFrame=new u(this.frame),l.onRelease(this.hammerFrame,function(t){e.body.eventListeners.onRelease(t)})}},{key:"setSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;e=this._prepareValue(e),t=this._prepareValue(t);var n=!1,i=this.frame.canvas.width,r=this.frame.canvas.height,o=this.frame.canvas.getContext("2d"),a=this.pixelRatio;return this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1),e!=this.options.width||t!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=t?(this._getCameraState(a),this.frame.style.width=e,this.frame.style.height=t,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=t,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},n=!0):(this.frame.canvas.width==Math.round(this.frame.canvas.clientWidth*this.pixelRatio)&&this.frame.canvas.height==Math.round(this.frame.canvas.clientHeight*this.pixelRatio)||this._getCameraState(a),this.frame.canvas.width!=Math.round(this.frame.canvas.clientWidth*this.pixelRatio)&&(this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),n=!0),this.frame.canvas.height!=Math.round(this.frame.canvas.clientHeight*this.pixelRatio)&&(this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),n=!0)),n===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(i/this.pixelRatio),oldHeight:Math.round(r/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,n}},{key:"_XconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(e){return(e-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(e){return e*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}},{key:"DOMtoCanvas",value:function(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}}]),e}();t.default=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(214),l=i(u),c=n(1),d=function(){function e(t,n){var i=this;(0,o.default)(this,e),this.body=t,this.canvas=n,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",this.fit.bind(this)),this.body.emitter.on("animationFinished",function(){i.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",this.releaseNode.bind(this))}return(0,s.default)(e,[{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e}},{key:"fit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{nodes:[]},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=void 0,i=void 0;if(void 0!==e.nodes&&0!==e.nodes.length||(e.nodes=this.body.nodeIndices),t===!0){var r=0;for(var o in this.body.nodes)if(this.body.nodes.hasOwnProperty(o)){var a=this.body.nodes[o];a.predefinedPosition===!0&&(r+=1)}if(r>.5*this.body.nodeIndices.length)return void this.fit(e,!1);n=l.default.getRange(this.body.nodes,e.nodes);var s=this.body.nodeIndices.length;i=12.662/(s+7.4147)+.0964822;var u=Math.min(this.canvas.frame.canvas.clientWidth/600,this.canvas.frame.canvas.clientHeight/600);i*=u}else{this.body.emitter.emit("_resizeNodes"),n=l.default.getRange(this.body.nodes,e.nodes);var c=1.1*Math.abs(n.maxX-n.minX),d=1.1*Math.abs(n.maxY-n.minY),h=this.canvas.frame.canvas.clientWidth/c,f=this.canvas.frame.canvas.clientHeight/d;i=h<=f?h:f}i>1?i=1:0===i&&(i=1);var p=l.default.findCenter(n),v={position:p,scale:i,animation:e.animation};this.moveTo(v)}},{key:"focus",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[e]){var n={x:this.body.nodes[e].x,y:this.body.nodes[e].y};t.position=n,t.lockedOnNode=e,this.moveTo(t)}else console.log("Node: "+e+" cannot be found.")}},{key:"moveTo",value:function(e){return void 0===e?void(e={}):(void 0===e.offset&&(e.offset={x:0,y:0}),void 0===e.offset.x&&(e.offset.x=0),void 0===e.offset.y&&(e.offset.y=0),void 0===e.scale&&(e.scale=this.body.view.scale),void 0===e.position&&(e.position=this.getViewPosition()),void 0===e.animation&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),void 0===e.animation.duration&&(e.animation.duration=1e3),void 0===e.animation.easingFunction&&(e.animation.easingFunction="easeInOutQuad"),void this.animateView(e))}},{key:"animateView",value:function(e){if(void 0!==e){this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;var t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),n={x:t.x-e.position.x,y:t.y-e.position.y};this.targetTranslation={x:this.sourceTranslation.x+n.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+n.y*this.targetScale+e.offset.y},0===e.animation.duration?void 0!=this.lockedOnNodeId?(this.viewFunction=this._lockedRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction)):(this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw")):(this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=this._transitionRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))}}},{key:"_lockedRedraw",value:function(){var e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),n={x:t.x-e.x,y:t.y-e.y},i=this.body.view.translation,r={x:i.x+n.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:i.y+n.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=r}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;var t=c.easingFunctions[this.animationEasingFunction](this.easingTime);this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*t,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*t,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*t},this.easingTime>=1&&(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,void 0!=this.lockedOnNodeId&&(this.viewFunction=this._lockedRedraw.bind(this),this.body.emitter.on("initRedraw",this.viewFunction)),this.body.emitter.emit("animationFinished"))}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),e}();t.default=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(220),l=i(u),c=n(132),d=i(c),h=n(1),f=function(){function e(t,n,i){(0,o.default)(this,e),this.body=t,this.canvas=n,this.selectionHandler=i,this.navigationHandler=new l.default(t,n),this.body.eventListeners.onTap=this.onTap.bind(this),this.body.eventListeners.onTouch=this.onTouch.bind(this),this.body.eventListeners.onDoubleTap=this.onDoubleTap.bind(this),this.body.eventListeners.onHold=this.onHold.bind(this),this.body.eventListeners.onDragStart=this.onDragStart.bind(this),this.body.eventListeners.onDrag=this.onDrag.bind(this),this.body.eventListeners.onDragEnd=this.onDragEnd.bind(this),this.body.eventListeners.onMouseWheel=this.onMouseWheel.bind(this),this.body.eventListeners.onPinch=this.onPinch.bind(this),this.body.eventListeners.onMouseMove=this.onMouseMove.bind(this),this.body.eventListeners.onRelease=this.onRelease.bind(this),this.body.eventListeners.onContext=this.onContext.bind(this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=this.getPointer.bind(this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0},h.extend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,s.default)(e,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("destroy",function(){clearTimeout(e.popupTimer),delete e.body.functions.getPointer})}},{key:"setOptions",value:function(e){if(void 0!==e){var t=["hideEdgesOnDrag","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"];h.selectiveNotDeepExtend(t,this.options,e),h.mergeOptions(this.options,e,"keyboard"),e.tooltip&&(h.extend(this.options.tooltip,e.tooltip),e.tooltip.color&&(this.options.tooltip.color=h.parseColor(e.tooltip.color)))}this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(e){return{x:e.x-h.getAbsoluteLeft(this.canvas.frame.canvas),y:e.y-h.getAbsoluteTop(this.canvas.frame.canvas)}}},{key:"onTouch",value:function(e){(new Date).valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(e){var t=this.getPointer(e.center),n=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(t,e,n),this.selectionHandler._generateClickEvent("click",e,t)}},{key:"onDoubleTap",value:function(e){var t=this.getPointer(e.center);this.selectionHandler._generateClickEvent("doubleClick",e,t)}},{key:"onHold",value:function(e){var t=this.getPointer(e.center),n=this.selectionHandler.options.multiselect;this.checkSelectionChanges(t,e,n),this.selectionHandler._generateClickEvent("click",e,t),this.selectionHandler._generateClickEvent("hold",e,t)}},{key:"onRelease",value:function(e){if((new Date).valueOf()-this.touchTime>10){var t=this.getPointer(e.center);this.selectionHandler._generateClickEvent("release",e,t),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(e){ +var t=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler._generateClickEvent("oncontext",e,t)}},{key:"checkSelectionChanges",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.selectionHandler._getSelectedEdgeCount(),r=this.selectionHandler._getSelectedNodeCount(),o=this.selectionHandler.getSelection(),a=void 0;a=n===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e);var s=this.selectionHandler._getSelectedEdgeCount(),u=this.selectionHandler._getSelectedNodeCount(),l=this.selectionHandler.getSelection(),c=this._determineIfDifferent(o,l),d=c.nodesChanged,h=c.edgesChanged,f=!1;u-r>0?(this.selectionHandler._generateClickEvent("selectNode",t,e),a=!0,f=!0):d===!0&&u>0?(this.selectionHandler._generateClickEvent("deselectNode",t,e,o),this.selectionHandler._generateClickEvent("selectNode",t,e),f=!0,a=!0):u-r<0&&(this.selectionHandler._generateClickEvent("deselectNode",t,e,o),a=!0),s-i>0&&f===!1?(this.selectionHandler._generateClickEvent("selectEdge",t,e),a=!0):s>0&&h===!0?(this.selectionHandler._generateClickEvent("deselectEdge",t,e,o),this.selectionHandler._generateClickEvent("selectEdge",t,e),a=!0):s-i<0&&(this.selectionHandler._generateClickEvent("deselectEdge",t,e,o),a=!0),a===!0&&this.selectionHandler._generateClickEvent("select",t,e)}},{key:"_determineIfDifferent",value:function(e,t){for(var n=!1,i=!1,r=0;r10&&(e=10);var i=void 0;void 0!==this.drag&&this.drag.dragging===!0&&(i=this.canvas.DOMtoCanvas(this.drag.pointer));var r=this.body.view.translation,o=e/n,a=(1-o)*t.x+r.x*o,s=(1-o)*t.y+r.y*o;if(this.body.view.scale=e,this.body.view.translation={x:a,y:s},void 0!=i){var u=this.canvas.canvasToDOM(i);this.drag.pointer.x=u.x,this.drag.pointer.y=u.y}this.body.emitter.emit("_requestRedraw"),n0&&(this.popupObj=u[c[c.length-1]],o=!0)}if(void 0===this.popupObj&&o===!1){for(var f=this.body.edgeIndices,p=this.body.edges,v=void 0,m=[],y=0;y0&&(this.popupObj=p[m[m.length-1]],a="edge")}void 0!==this.popupObj?this.popupObj.id!==r&&(void 0===this.popup&&(this.popup=new d.default(this.canvas.frame)),this.popup.popupTargetType=a,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(e){var t=this.selectionHandler._pointerToPositionObject(e),n=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&(n=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(t),n===!0)){var i=this.selectionHandler.getNodeAt(e);n=void 0!==i&&i.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(e)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(n=this.body.edges[this.popup.popupTargetId].isOverlappingWith(t));n===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),e}();t.default=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=(n(1),n(112)),l=n(125),c=n(115),d=function(){function e(t,n){var i=this;(0,o.default)(this,e),this.body=t,this.canvas=n,this.iconsCreated=!1,this.navigationHammers=[],this.boundFunctions={},this.touchTime=0,this.activated=!1,this.body.emitter.on("activate",function(){i.activated=!0,i.configureKeyboardBindings()}),this.body.emitter.on("deactivate",function(){i.activated=!1,i.configureKeyboardBindings()}),this.body.emitter.on("destroy",function(){void 0!==i.keycharm&&i.keycharm.destroy()}),this.options={}}return(0,s.default)(e,[{key:"setOptions",value:function(e){void 0!==e&&(this.options=e,this.create())}},{key:"create",value:function(){this.options.navigationButtons===!0?this.iconsCreated===!1&&this.loadNavigationElements():this.iconsCreated===!0&&this.cleanNavigation(),this.configureKeyboardBindings()}},{key:"cleanNavigation",value:function(){if(0!=this.navigationHammers.length){for(var e=0;e700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var e in this.boundFunctions)this.boundFunctions.hasOwnProperty(e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var e=this.body.view.scale,t=this.body.view.scale*(1+this.options.keyboard.speed.zoom),n=this.body.view.translation,i=t/e,r=(1-i)*this.canvas.canvasViewCenter.x+n.x*i,o=(1-i)*this.canvas.canvasViewCenter.y+n.y*i;this.body.view.scale=t,this.body.view.translation={x:r,y:o},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var e=this.body.view.scale,t=this.body.view.scale/(1+this.options.keyboard.speed.zoom),n=this.body.view.translation,i=t/e,r=(1-i)*this.canvas.canvasViewCenter.x+n.x*i,o=(1-i)*this.canvas.canvasViewCenter.y+n.y*i;this.body.view.scale=t,this.body.view.translation={x:r,y:o},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var e=this;void 0!==this.keycharm&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=c({container:window,preventDefault:!0}):this.keycharm=c({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0&&(this.keycharm.bind("up",function(){e.bindToRedraw("_moveUp")},"keydown"),this.keycharm.bind("down",function(){e.bindToRedraw("_moveDown")},"keydown"),this.keycharm.bind("left",function(){e.bindToRedraw("_moveLeft")},"keydown"),this.keycharm.bind("right",function(){e.bindToRedraw("_moveRight")},"keydown"),this.keycharm.bind("=",function(){e.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("num+",function(){e.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("num-",function(){e.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("-",function(){e.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("[",function(){e.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("]",function(){e.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("pageup",function(){e.bindToRedraw("_zoomIn")},"keydown"),this.keycharm.bind("pagedown",function(){e.bindToRedraw("_zoomOut")},"keydown"),this.keycharm.bind("up",function(){e.unbindFromRedraw("_moveUp")},"keyup"),this.keycharm.bind("down",function(){e.unbindFromRedraw("_moveDown")},"keyup"),this.keycharm.bind("left",function(){e.unbindFromRedraw("_moveLeft")},"keyup"),this.keycharm.bind("right",function(){e.unbindFromRedraw("_moveRight")},"keyup"),this.keycharm.bind("=",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("num+",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("num-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("-",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("[",function(){e.unbindFromRedraw("_zoomOut")},"keyup"),this.keycharm.bind("]",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("pageup",function(){e.unbindFromRedraw("_zoomIn")},"keyup"),this.keycharm.bind("pagedown",function(){e.unbindFromRedraw("_zoomOut")},"keyup")))}}]),e}();t.default=d},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=i(r),a=n(120),s=i(a),u=n(163),l=i(u),c=n(196),d=i(c),h=n(1),f=function(){function e(t,n){var i=this;(0,o.default)(this,e),this.body=t,this.canvas=n,this.selectionObj={nodes:[],edges:[]},this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},h.extend(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",function(){i.updateSelection()})}return(0,s.default)(e,[{key:"setOptions",value:function(e){if(void 0!==e){var t=["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"];h.selectiveDeepExtend(t,this.options,e)}}},{key:"selectOnPoint",value:function(e){var t=!1;if(this.options.selectable===!0){var n=this.getNodeAt(e)||this.getEdgeAt(e);this.unselectAll(),void 0!==n&&(t=this.selectObject(n)),this.body.emitter.emit("_requestRedraw")}return t}},{key:"selectAdditionalOnPoint",value:function(e){var t=!1;if(this.options.selectable===!0){var n=this.getNodeAt(e)||this.getEdgeAt(e);void 0!==n&&(t=!0,n.isSelected()===!0?this.deselectObject(n):this.selectObject(n),this.body.emitter.emit("_requestRedraw"))}return t}},{key:"_generateClickEvent",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=void 0;o=r===!0?{nodes:[],edges:[]}:this.getSelection(),o.pointer={DOM:{x:n.x,y:n.y},canvas:this.canvas.DOMtoCanvas(n)},o.event=t,void 0!==i&&(o.previousSelection=i),this.body.emitter.emit(e,o)}},{key:"selectObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;return void 0!==e&&(e instanceof l.default&&t===!0&&this._selectConnectedEdges(e),e.select(),this._addToSelection(e),!0)}},{key:"deselectObject",value:function(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}},{key:"_getAllNodesOverlappingWith",value:function(e){for(var t=[],n=this.body.nodes,i=0;i1&&void 0!==arguments[1])||arguments[1],n=this._pointerToPositionObject(e),i=this._getAllNodesOverlappingWith(n);return i.length>0?t===!0?this.body.nodes[i[i.length-1]]:i[i.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(e,t){for(var n=this.body.edges,i=0;i1&&void 0!==arguments[1])||arguments[1],n=this.canvas.DOMtoCanvas(e),i=10,r=null,o=this.body.edges,a=0;a1)return!0;return!1}},{key:"_selectConnectedEdges",value:function(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:{},n=void 0,i=void 0;if(!e||!e.nodes&&!e.edges)throw"Selection must be an object with nodes and/or edges properties";if((t.unselectAll||void 0===t.unselectAll)&&this.unselectAll(),e.nodes)for(n=0;n1&&void 0!==arguments[1])||arguments[1];if(!e||void 0===e.length)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:t})}},{key:"selectEdges",value:function(e){if(!e||void 0===e.length)throw"Selection must be an array with ids";this.setSelection({edges:e})}},{key:"updateSelection",value:function(){for(var e in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(e)&&(this.body.nodes.hasOwnProperty(e)||delete this.selectionObj.nodes[e]);for(var t in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(t)&&(this.body.edges.hasOwnProperty(t)||delete this.selectionObj.edges[t])}}]),e}();t.default=f},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=i(r),a=n(165),s=i(a),u=n(62),l=i(u),c=n(119),d=i(c),h=n(120),f=i(h),p=n(214),v=i(p),m=n(1),y=function(){function e(t){(0,d.default)(this,e),this.body=t,this.initialRandomSeed=Math.round(1e6*Math.random()),this.randomSeed=this.initialRandomSeed,this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},m.extend(this.options,this.defaultOptions),this.bindEventListeners()}return(0,f.default)(e,[{key:"bindEventListeners",value:function(){var e=this;this.body.emitter.on("_dataChanged",function(){e.setupHierarchicalLayout()}),this.body.emitter.on("_dataLoaded",function(){e.layoutNetwork()}),this.body.emitter.on("_resetHierarchicalLayout",function(){e.setupHierarchicalLayout()})}},{key:"setOptions",value:function(e,t){if(void 0!==e){var n=this.options.hierarchical.enabled;if(m.selectiveDeepExtend(["randomSeed","improvedLayout"],this.options,e),m.mergeOptions(this.options,e,"hierarchical"),void 0!==e.randomSeed&&(this.initialRandomSeed=e.randomSeed),this.options.hierarchical.enabled===!0)return n===!0&&this.body.emitter.emit("refresh",!0),"RL"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction?this.options.hierarchical.levelSeparation>0&&(this.options.hierarchical.levelSeparation*=-1):this.options.hierarchical.levelSeparation<0&&(this.options.hierarchical.levelSeparation*=-1),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(t);if(n===!0)return this.body.emitter.emit("refresh"),m.deepExtend(t,this.optionsBackup)}return t}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(e){if(this.options.hierarchical.enabled===!0){void 0===e.physics||e.physics===!0?(e.physics={enabled:void 0===this.optionsBackup.physics.enabled||this.optionsBackup.physics.enabled,solver:"hierarchicalRepulsion"},this.optionsBackup.physics.enabled=void 0===this.optionsBackup.physics.enabled||this.optionsBackup.physics.enabled,this.optionsBackup.physics.solver=this.optionsBackup.physics.solver||"barnesHut"):"object"===(0,l.default)(e.physics)?(this.optionsBackup.physics.enabled=void 0===e.physics.enabled||e.physics.enabled,this.optionsBackup.physics.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(this.optionsBackup.physics.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});var t="horizontal";"RL"!==this.options.hierarchical.direction&&"LR"!==this.options.hierarchical.direction||(t="vertical"),void 0===e.edges?(this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1}):void 0===e.edges.smooth?(this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1):"boolean"==typeof e.edges.smooth?(this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:t}):(void 0!==e.edges.smooth.type&&"dynamic"!==e.edges.smooth.type&&(t=e.edges.smooth.type),this.optionsBackup.edges={smooth:void 0===e.edges.smooth.enabled||e.edges.smooth.enabled,type:void 0===e.edges.smooth.type?"dynamic":e.edges.smooth.type,roundness:void 0===e.edges.smooth.roundness?.5:e.edges.smooth.roundness,forceDirection:void 0!==e.edges.smooth.forceDirection&&e.edges.smooth.forceDirection},e.edges.smooth={enabled:void 0===e.edges.smooth.enabled||e.edges.smooth.enabled,type:t,roundness:void 0===e.edges.smooth.roundness?.5:e.edges.smooth.roundness,forceDirection:void 0!==e.edges.smooth.forceDirection&&e.edges.smooth.forceDirection}),this.body.emitter.emit("_forceDisableDynamicCurves",t)}return e}},{key:"seededRandom",value:function(){var e=1e4*Math.sin(this.randomSeed++);return e-Math.floor(e)}},{key:"positionInitially",value:function(e){if(this.options.hierarchical.enabled!==!0){this.randomSeed=this.initialRandomSeed;for(var t=0;to){for(var a=this.body.nodeIndices.length;this.body.nodeIndices.length>o;){r+=1;var s=this.body.nodeIndices.length;r%3===0?this.body.modules.clustering.clusterBridges():this.body.modules.clustering.clusterOutliers();var u=this.body.nodeIndices.length;if(s==u&&r%3!==0||r>i)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*a)})}this.body.modules.kamadaKawai.solve(this.body.nodeIndices,this.body.edgeIndices,!0),this._shiftToCenter();for(var l=70,c=0;c0){var e=void 0,t=void 0,n=!1,i=!0,r=!1;this.hierarchicalLevels={},this.lastNodeOnLevel={},this.hierarchicalChildrenReference={},this.hierarchicalParentReference={},this.hierarchicalTrees={},this.treeIndex=-1,this.distributionOrdering={},this.distributionIndex={},this.distributionOrderingPresence={};for(t in this.body.nodes)this.body.nodes.hasOwnProperty(t)&&(e=this.body.nodes[t],void 0===e.options.x&&void 0===e.options.y&&(i=!1),void 0!==e.options.level?(n=!0,this.hierarchicalLevels[t]=e.options.level):r=!0);if(r===!0&&n===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");r===!0&&("hubsize"===this.options.hierarchical.sortMethod?this._determineLevelsByHubsize():"directed"===this.options.hierarchical.sortMethod?this._determineLevelsDirected():"custom"===this.options.hierarchical.sortMethod&&this._determineLevelsCustomCallback());for(var o in this.body.nodes)this.body.nodes.hasOwnProperty(o)&&void 0===this.hierarchicalLevels[o]&&(this.hierarchicalLevels[o]=0);var a=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(a),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var e=this,t=!1,n={},i=function(){for(var t=u(),n=0,i=0;i0)for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:1e9,i=1e9,r=1e9,o=1e9,a=-1e9;for(var u in t)if(t.hasOwnProperty(u)){var l=e.body.nodes[u],c=e.hierarchicalLevels[l.id],d=e._getPositionForHierarchy(l),h=e._getSpaceAroundNode(l,t),f=(0,s.default)(h,2),p=f[0],v=f[1];i=Math.min(p,i),r=Math.min(v,r),c<=n&&(o=Math.min(d,o),a=Math.max(d,a))}return[o,a,i,r]},d=function(t){var n={},i=function t(i){if(void 0!==n[i])return n[i];var r=e.hierarchicalLevels[i];if(e.hierarchicalChildrenReference[i]){var o=e.hierarchicalChildrenReference[i];if(o.length>0)for(var a=0;a1)for(var s=0;s2&&void 0!==arguments[2]&&arguments[2],o=e._getPositionForHierarchy(n),a=e._getPositionForHierarchy(i),u=Math.abs(a-o);if(u>e.options.hierarchical.nodeSpacing){var d={},f={};l(n,d),l(i,f);var p=h(n,i),v=c(d,p),m=(0,s.default)(v,4),y=(m[0],m[1]),g=(m[2],m[3],c(f,p)),b=(0,s.default)(g,4),_=b[0],w=(b[1],b[2]),x=(b[3],Math.abs(y-_));if(x>e.options.hierarchical.nodeSpacing){var T=y-_+e.options.hierarchical.nodeSpacing;T<-w+e.options.hierarchical.nodeSpacing&&(T=-w+e.options.hierarchical.nodeSpacing),T<0&&(e._shiftBlock(i.id,T),t=!0,r===!0&&e._centerParent(i))}}},m=function(i,r){for(var o=r.id,a=r.edges,u=e.hierarchicalLevels[r.id],d=e.options.hierarchical.levelSeparation*e.options.hierarchical.levelSeparation,h={},f=[],p=0;p0?v=Math.min(p,f-e.options.hierarchical.nodeSpacing):p<0&&(v=-Math.min(-p,h-e.options.hierarchical.nodeSpacing)),0!=v&&(e._shiftBlock(r.id,v),t=!0)},w=function(n){var i=e._getPositionForHierarchy(r),o=e._getSpaceAroundNode(r),a=(0,s.default)(o,2),u=a[0],l=a[1],c=n-i,d=i;c>0?d=Math.min(i+(l-e.options.hierarchical.nodeSpacing),n):c<0&&(d=Math.max(i-(u-e.options.hierarchical.nodeSpacing),n)),d!==i&&(e._setPositionForHierarchy(r,d,void 0,!0),t=!0)},x=b(i,f);_(x),x=b(i,a),w(x)},y=function(n){var i=(0,o.default)(e.distributionOrdering);i=i.reverse();for(var r=0;r0)for(var l=0;l0&&Math.abs(y)0&&(s=this._getPositionForHierarchy(n[r-1])+this.options.hierarchical.nodeSpacing),this._setPositionForHierarchy(a,s,t),this._validataPositionAndContinue(a,t,s),i++}}}}},{key:"_placeBranchNodes",value:function(e,t){if(void 0!==this.hierarchicalChildrenReference[e]){for(var n=[],i=0;it&&void 0===this.positionedNodes[o.id]))return;var s=void 0;s=0===r?this._getPositionForHierarchy(this.body.nodes[e]):this._getPositionForHierarchy(n[r-1])+this.options.hierarchical.nodeSpacing,this._setPositionForHierarchy(o,s,a),this._validataPositionAndContinue(o,a,s)}for(var u=1e9,l=-1e9,c=0;c0&&(t=this._getHubSize(),0!==t);)for(var i in this.body.nodes)if(this.body.nodes.hasOwnProperty(i)){var r=this.body.nodes[i];r.edges.length===t&&this._crawlNetwork(n,i)}}},{key:"_determineLevelsCustomCallback",value:function(){var e=this,t=1e5,n=function(e,t,n){},i=function(i,r,o){var a=e.hierarchicalLevels[i.id];void 0===a&&(e.hierarchicalLevels[i.id]=t);var s=n(v.default.cloneOptions(i,"node"),v.default.cloneOptions(r,"node"),v.default.cloneOptions(o,"edge"));e.hierarchicalLevels[r.id]=e.hierarchicalLevels[i.id]+s};this._crawlNetwork(i),this._setMinLevelToZero()}},{key:"_determineLevelsDirected",value:function(){var e=this,t=1e4,n=function(n,i,r){var o=e.hierarchicalLevels[n.id];void 0===o&&(e.hierarchicalLevels[n.id]=t),r.toId==i.id?e.hierarchicalLevels[i.id]=e.hierarchicalLevels[n.id]+1:e.hierarchicalLevels[i.id]=e.hierarchicalLevels[n.id]-1};this._crawlNetwork(n),this._setMinLevelToZero()}},{key:"_setMinLevelToZero",value:function(){var e=1e9;for(var t in this.body.nodes)this.body.nodes.hasOwnProperty(t)&&void 0!==this.hierarchicalLevels[t]&&(e=Math.min(this.hierarchicalLevels[t],e));for(var n in this.body.nodes)this.body.nodes.hasOwnProperty(n)&&void 0!==this.hierarchicalLevels[n]&&(this.hierarchicalLevels[n]-=e)}},{key:"_generateMap",value:function(){var e=this,t=function(t,n){if(e.hierarchicalLevels[n.id]>e.hierarchicalLevels[t.id]){var i=t.id,r=n.id;void 0===e.hierarchicalChildrenReference[i]&&(e.hierarchicalChildrenReference[i]=[]),e.hierarchicalChildrenReference[i].push(r),void 0===e.hierarchicalParentReference[r]&&(e.hierarchicalParentReference[r]=[]),e.hierarchicalParentReference[r].push(i)}};this._crawlNetwork(t)}},{key:"_crawlNetwork",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},n=arguments[1],i={},r=0,o=function n(r,o){if(void 0===i[r.id]){void 0===e.hierarchicalTrees[r.id]&&(e.hierarchicalTrees[r.id]=o,e.treeIndex=Math.max(o,e.treeIndex)),i[r.id]=!0;for(var a=void 0,s=0;s3&&void 0!==arguments[3]&&arguments[3];i!==!0&&(void 0===this.distributionOrdering[n]&&(this.distributionOrdering[n]=[],this.distributionOrderingPresence[n]={}),void 0===this.distributionOrderingPresence[n][e.id]&&(this.distributionOrdering[n].push(e),this.distributionIndex[e.id]=this.distributionOrdering[n].length-1),this.distributionOrderingPresence[n][e.id]=!0),"UD"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction?e.x=t:e.y=t}},{key:"_getPositionForHierarchy",value:function(e){return"UD"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction?e.x:e.y}},{key:"_sortNodeArray",value:function(e){e.length>1&&("UD"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction?e.sort(function(e,t){return e.x-t.x}):e.sort(function(e,t){return e.y-t.y}))}}]),e}();t.default=y},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=i(r),a=n(90),s=i(a),u=n(62),l=i(u),c=n(119),d=i(c),h=n(120),f=i(h),p=n(1),v=n(112),m=n(125),y=function(){function e(t,n,i){var r=this;(0,d.default)(this,e),this.body=t,this.canvas=n,this.selectionHandler=i,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this.manipulationHammers=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},p.extend(this.options,this.defaultOptions),this.body.emitter.on("destroy",function(){r._clean()}),this.body.emitter.on("_dataChanged",this._restore.bind(this)),this.body.emitter.on("_resetData",this._restore.bind(this))}return(0,f.default)(e,[{key:"_restore",value:function(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(e,t,n){void 0!==t&&(void 0!==t.locale?this.options.locale=t.locale:this.options.locale=n.locale,void 0!==t.locales?this.options.locales=t.locales:this.options.locales=n.locales),void 0!==e&&("boolean"==typeof e?this.options.enabled=e:(this.options.enabled=!0,p.deepExtend(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var e=this.selectionHandler._getSelectedNodeCount(),t=this.selectionHandler._getSelectedEdgeCount(),n=e+t,i=this.options.locales[this.options.locale],r=!1;this.options.addNode!==!1&&(this._createAddNodeButton(i),r=!0),this.options.addEdge!==!1&&(r===!0?this._createSeperator(1):r=!0,this._createAddEdgeButton(i)),1===e&&"function"==typeof this.options.editNode?(r===!0?this._createSeperator(2):r=!0,this._createEditNodeButton(i)):1===t&&0===e&&this.options.editEdge!==!1&&(r===!0?this._createSeperator(3):r=!0,this._createEditEdgeButton(i)),0!==n&&(e>0&&this.options.deleteNode!==!1?(r===!0&&this._createSeperator(4),this._createDeleteButton(i)):0===e&&this.options.deleteEdge!==!1&&(r===!0&&this._createSeperator(4),this._createDeleteButton(i))),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this)),this._temporaryBindEvent("select",this.showManipulatorToolbar.bind(this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.addDescription||this.options.locales.en.addDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindEvent("click",this._performAddNode.bind(this))}},{key:"editNode",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean();var t=this.selectionHandler._getSelectedNode();if(void 0!==t){if(this.inMode="editNode","function"!=typeof this.options.editNode)throw new Error("No function has been configured to handle the editing of nodes.");if(t.isCluster!==!0){var n=p.deepExtend({},t.options,!1);if(n.x=t.x,n.y=t.y,2!==this.options.editNode.length)throw new Error("The function for edit does not support two arguments (data, callback)");this.options.editNode(n,function(t){null!==t&&void 0!==t&&"editNode"===e.inMode&&e.body.data.nodes.getDataSet().update(t),e.showManipulatorToolbar()})}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.edgeDescription||this.options.locales.en.edgeDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}this._temporaryBindUI("onTouch",this._handleConnect.bind(this)),this._temporaryBindUI("onDragEnd",this._finishConnect.bind(this)),this._temporaryBindUI("onDrag",this._dragControlNode.bind(this)),this._temporaryBindUI("onRelease",this._finishConnect.bind(this)),this._temporaryBindUI("onDragStart",function(){}),this._temporaryBindUI("onHold",function(){})}},{key:"editEdgeMode",value:function(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge","object"===(0,l.default)(this.options.editEdge)&&"function"==typeof this.options.editEdge.editWithoutDrag&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0!==this.edgeBeingEditedId)){var e=this.body.edges[this.edgeBeingEditedId];return void this._performEditEdge(e.from,e.to)}if(this.guiEnabled===!0){var t=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(t),this._createSeperator(),this._createDescription(t.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindHammerToDiv(this.closeDiv,this.toggleEditMode.bind(this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0!==this.edgeBeingEditedId){var n=this.body.edges[this.edgeBeingEditedId],i=this._getNewTargetNode(n.from.x,n.from.y),r=this._getNewTargetNode(n.to.x,n.to.y);this.temporaryIds.nodes.push(i.id),this.temporaryIds.nodes.push(r.id),this.body.nodes[i.id]=i,this.body.nodeIndices.push(i.id),this.body.nodes[r.id]=r,this.body.nodeIndices.push(r.id),this._temporaryBindUI("onTouch",this._controlNodeTouch.bind(this)),this._temporaryBindUI("onTap",function(){}),this._temporaryBindUI("onHold",function(){}),this._temporaryBindUI("onDragStart",this._controlNodeDragStart.bind(this)),this._temporaryBindUI("onDrag",this._controlNodeDrag.bind(this)),this._temporaryBindUI("onDragEnd",this._controlNodeDragEnd.bind(this)),this._temporaryBindUI("onMouseMove",function(){}),this._temporaryBindEvent("beforeDrawing",function(e){var t=n.edgeType.findBorderPositions(e);i.selected===!1&&(i.x=t.from.x,i.y=t.from.y),r.selected===!1&&(r.x=t.to.x,r.y=t.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}},{key:"deleteSelected",value:function(){var e=this;this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";var t=this.selectionHandler.getSelectedNodes(),n=this.selectionHandler.getSelectedEdges(),i=void 0;if(t.length>0){for(var r=0;r0&&"function"==typeof this.options.deleteEdge&&(i=this.options.deleteEdge);if("function"==typeof i){var o={nodes:t,edges:n};if(2!==i.length)throw new Error("The function for delete does not support two arguments (data, callback)");i(o,function(t){null!==t&&void 0!==t&&"delete"===e.inMode?(e.body.data.edges.getDataSet().remove(t.edges),e.body.data.nodes.getDataSet().remove(t.nodes),e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar()):(e.body.emitter.emit("startSimulation"),e.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().remove(n),this.body.data.nodes.getDataSet().remove(t),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv&&(this.closeDiv=document.createElement("div"),this.closeDiv.className="vis-close",this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}},{key:"_getNewTargetNode",value:function(e,t){var n=p.deepExtend({},this.options.controlNodeStyle);n.id="targetNode"+p.randomUUID(),n.hidden=!1,n.physics=!1,n.x=e,n.y=t;var i=this.body.functions.createNode(n);return i.shape.boundingBox={left:e,right:e,top:t,bottom:t},i}},{key:"_createEditButton",value:function(){this._clean(),this.manipulationDOM={},p.recursiveDOMDelete(this.editModeDiv);var e=this.options.locales[this.options.locale],t=this._createButton("editMode","vis-button vis-edit vis-edit-mode",e.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(t),this._bindHammerToDiv(t,this.toggleEditMode.bind(this))}},{key:"_clean",value:function(){this.inMode=!1,this.guiEnabled===!0&&(p.recursiveDOMDelete(this.editModeDiv),p.recursiveDOMDelete(this.manipulationDiv),this._cleanManipulatorHammers()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanManipulatorHammers",value:function(){if(0!=this.manipulationHammers.length){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}},{key:"_createAddNodeButton",value:function(e){var t=this._createButton("addNode","vis-button vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.addNodeMode.bind(this))}},{key:"_createAddEdgeButton",value:function(e){var t=this._createButton("addEdge","vis-button vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.addEdgeMode.bind(this))}},{key:"_createEditNodeButton",value:function(e){var t=this._createButton("editNode","vis-button vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.editNode.bind(this))}},{key:"_createEditEdgeButton",value:function(e){var t=this._createButton("editEdge","vis-button vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.editEdgeMode.bind(this))}},{key:"_createDeleteButton",value:function(e){if(this.options.rtl)var t="vis-button vis-delete-rtl";else var t="vis-button vis-delete";var n=this._createButton("delete",t,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(n),this._bindHammerToDiv(n,this.deleteSelected.bind(this))}},{key:"_createBackButton",value:function(e){var t=this._createButton("back","vis-button vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(t),this._bindHammerToDiv(t,this.showManipulatorToolbar.bind(this))}},{key:"_createButton",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("div"),this.manipulationDOM[e+"Div"].className=t,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=i,this.manipulationDOM[e+"Label"].innerHTML=n,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}},{key:"_createDescription",value:function(e){this.manipulationDiv.appendChild(this._createButton("description","vis-button vis-none",e))}},{key:"_temporaryBindEvent",value:function(e,t){this.temporaryEventFunctions.push({event:e,boundFunction:t}),this.body.emitter.on(e,t)}},{key:"_temporaryBindUI",value:function(e,t){if(void 0===this.body.eventListeners[e])throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+(0,s.default)((0,o.default)(this.body.eventListeners)));this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=t}},{key:"_unbindTemporaryUIs",value:function(){for(var e in this.temporaryUIFunctions)this.temporaryUIFunctions.hasOwnProperty(e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var e=0;e=0;a--)if(r[a]!==this.selectedControlNode.id){o=this.body.nodes[r[a]];break}if(void 0!==o&&void 0!==this.selectedControlNode)if(o.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var s=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===s.id?this._performEditEdge(o.id,i.to.id):this._performEditEdge(i.from.id,o.id)}else i.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(e){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=p.extend({},this.body.view.translation);var t=this.lastTouch,n=this.selectionHandler.getNodeAt(t);if(void 0!==n)if(n.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var i=this._getNewTargetNode(n.x,n.y);this.body.nodes[i.id]=i,this.body.nodeIndices.push(i.id);var r=this.body.functions.createEdge({id:"connectionEdge"+p.randomUUID(),from:n.id,to:i.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[r.id]=r,this.body.edgeIndices.push(r.id),this.temporaryIds.nodes.push(i.id),this.temporaryIds.edges.push(r.id)}this.touchTime=(new Date).valueOf()}}},{key:"_dragControlNode",value:function(e){var t=this.body.functions.getPointer(e.center);if(void 0!==this.temporaryIds.nodes[0]){var n=this.body.nodes[this.temporaryIds.nodes[0]];n.x=this.canvas._XconvertDOMtoCanvas(t.x),n.y=this.canvas._YconvertDOMtoCanvas(t.y),this.body.emitter.emit("_redraw")}else{var i=t.x-this.lastTouch.x,r=t.y-this.lastTouch.y;this.body.view.translation={x:this.lastTouch.translation.x+i,y:this.lastTouch.translation.y+r}}}},{key:"_finishConnect",value:function(e){var t=this.body.functions.getPointer(e.center),n=this.selectionHandler._pointerToPositionObject(t),i=void 0;void 0!==this.temporaryIds.edges[0]&&(i=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var r=this.selectionHandler._getAllNodesOverlappingWith(n),o=void 0,a=r.length-1;a>=0;a--)if(this.temporaryIds.nodes.indexOf(r[a])===-1){o=this.body.nodes[r[a]];break}this._cleanupTemporaryNodesAndEdges(),void 0!==o&&(o.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[i]&&void 0!==this.body.nodes[o.id]&&this._performAddEdge(i,o.id)),this.body.emitter.emit("_redraw")}},{key:"_performAddNode",value:function(e){var t=this,n={id:p.randomUUID(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if("function"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw new Error("The function for add does not support two arguments (data,callback)");this.options.addNode(n,function(e){null!==e&&void 0!==e&&"addNode"===t.inMode&&(t.body.data.nodes.getDataSet().add(e),t.showManipulatorToolbar())})}else this.body.data.nodes.getDataSet().add(n),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(e,t){var n=this,i={from:e,to:t};if("function"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error("The function for connect does not support two arguments (data,callback)");this.options.addEdge(i,function(e){null!==e&&void 0!==e&&"addEdge"===n.inMode&&(n.body.data.edges.getDataSet().add(e),n.selectionHandler.unselectAll(),n.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().add(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge", +value:function(e,t){var n=this,i={id:this.edgeBeingEditedId,from:e,to:t,label:this.body.data.edges._data[this.edgeBeingEditedId].label},r=this.options.editEdge;if("object"===("undefined"==typeof r?"undefined":(0,l.default)(r))&&(r=r.editWithoutDrag),"function"==typeof r){if(2!==r.length)throw new Error("The function for edit does not support two arguments (data, callback)");r(i,function(e){null===e||void 0===e||"editEdge"!==n.inMode?(n.body.edges[i.id].updateEdgeType(),n.body.emitter.emit("_redraw"),n.showManipulatorToolbar()):(n.body.data.edges.getDataSet().update(e),n.selectionHandler.unselectAll(),n.showManipulatorToolbar())})}else this.body.data.edges.getDataSet().update(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),e}();t.default=y},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="string",i="boolean",r="number",o="array",a="object",s="dom",u="any",l={configure:{enabled:{boolean:i},filter:{boolean:i,string:n,array:o,function:"function"},container:{dom:s},showButton:{boolean:i},__type__:{object:a,boolean:i,string:n,array:o,function:"function"}},edges:{arrows:{to:{enabled:{boolean:i},scaleFactor:{number:r},type:{string:["arrow","circle"]},__type__:{object:a,boolean:i}},middle:{enabled:{boolean:i},scaleFactor:{number:r},type:{string:["arrow","circle"]},__type__:{object:a,boolean:i}},from:{enabled:{boolean:i},scaleFactor:{number:r},type:{string:["arrow","circle"]},__type__:{object:a,boolean:i}},__type__:{string:["from","to","middle"],object:a}},arrowStrikethrough:{boolean:i},chosen:{label:{boolean:i,function:"function"},edge:{boolean:i,function:"function"},__type__:{object:a,boolean:i}},color:{color:{string:n},highlight:{string:n},hover:{string:n},inherit:{string:["from","to","both"],boolean:i},opacity:{number:r},__type__:{object:a,string:n}},dashes:{boolean:i,array:o},font:{color:{string:n},size:{number:r},face:{string:n},background:{string:n},strokeWidth:{number:r},strokeColor:{string:n},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:r},multi:{boolean:i,string:n},bold:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},boldital:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},ital:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},mono:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},__type__:{object:a,string:n}},hidden:{boolean:i},hoverWidth:{function:"function",number:r},label:{string:n,undefined:"undefined"},labelHighlightBold:{boolean:i},length:{number:r,undefined:"undefined"},physics:{boolean:i},scaling:{min:{number:r},max:{number:r},label:{enabled:{boolean:i},min:{number:r},max:{number:r},maxVisible:{number:r},drawThreshold:{number:r},__type__:{object:a,boolean:i}},customScalingFunction:{function:"function"},__type__:{object:a}},selectionWidth:{function:"function",number:r},selfReferenceSize:{number:r},shadow:{enabled:{boolean:i},color:{string:n},size:{number:r},x:{number:r},y:{number:r},__type__:{object:a,boolean:i}},smooth:{enabled:{boolean:i},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:r},forceDirection:{string:["horizontal","vertical","none"],boolean:i},__type__:{object:a,boolean:i}},title:{string:n,undefined:"undefined"},width:{number:r},widthConstraint:{maximum:{number:r},__type__:{object:a,boolean:i,number:r}},value:{number:r,undefined:"undefined"},__type__:{object:a}},groups:{useDefaultGroups:{boolean:i},__any__:"get from nodes, will be overwritten below",__type__:{object:a}},interaction:{dragNodes:{boolean:i},dragView:{boolean:i},hideEdgesOnDrag:{boolean:i},hideNodesOnDrag:{boolean:i},hover:{boolean:i},keyboard:{enabled:{boolean:i},speed:{x:{number:r},y:{number:r},zoom:{number:r},__type__:{object:a}},bindToWindow:{boolean:i},__type__:{object:a,boolean:i}},multiselect:{boolean:i},navigationButtons:{boolean:i},selectable:{boolean:i},selectConnectedEdges:{boolean:i},hoverConnectedEdges:{boolean:i},tooltipDelay:{number:r},zoomView:{boolean:i},__type__:{object:a}},layout:{randomSeed:{undefined:"undefined",number:r},improvedLayout:{boolean:i},hierarchical:{enabled:{boolean:i},levelSeparation:{number:r},nodeSpacing:{number:r},treeSpacing:{number:r},blockShifting:{boolean:i},edgeMinimization:{boolean:i},parentCentralization:{boolean:i},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},__type__:{object:a,boolean:i}},__type__:{object:a}},manipulation:{enabled:{boolean:i},initiallyActive:{boolean:i},addNode:{boolean:i,function:"function"},addEdge:{boolean:i,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:a,boolean:i,function:"function"}},deleteNode:{boolean:i,function:"function"},deleteEdge:{boolean:i,function:"function"},controlNodeStyle:"get from nodes, will be overwritten below",__type__:{object:a,boolean:i}},nodes:{borderWidth:{number:r},borderWidthSelected:{number:r,undefined:"undefined"},brokenImage:{string:n,undefined:"undefined"},chosen:{label:{boolean:i,function:"function"},node:{boolean:i,function:"function"},__type__:{object:a,boolean:i}},color:{border:{string:n},background:{string:n},highlight:{border:{string:n},background:{string:n},__type__:{object:a,string:n}},hover:{border:{string:n},background:{string:n},__type__:{object:a,string:n}},__type__:{object:a,string:n}},fixed:{x:{boolean:i},y:{boolean:i},__type__:{object:a,boolean:i}},font:{align:{string:n},color:{string:n},size:{number:r},face:{string:n},background:{string:n},strokeWidth:{number:r},strokeColor:{string:n},vadjust:{number:r},multi:{boolean:i,string:n},bold:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},boldital:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},ital:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},mono:{color:{string:n},size:{number:r},face:{string:n},mod:{string:n},vadjust:{number:r},__type__:{object:a,string:n}},__type__:{object:a,string:n}},group:{string:n,number:r,undefined:"undefined"},heightConstraint:{minimum:{number:r},valign:{string:n},__type__:{object:a,boolean:i,number:r}},hidden:{boolean:i},icon:{face:{string:n},code:{string:n},size:{number:r},color:{string:n},__type__:{object:a}},id:{string:n,number:r},image:{selected:{string:n,undefined:"undefined"},unselected:{string:n,undefined:"undefined"},__type__:{object:a,string:n}},label:{string:n,undefined:"undefined"},labelHighlightBold:{boolean:i},level:{number:r,undefined:"undefined"},margin:{top:{number:r},right:{number:r},bottom:{number:r},left:{number:r},__type__:{object:a,number:r}},mass:{number:r},physics:{boolean:i},scaling:{min:{number:r},max:{number:r},label:{enabled:{boolean:i},min:{number:r},max:{number:r},maxVisible:{number:r},drawThreshold:{number:r},__type__:{object:a,boolean:i}},customScalingFunction:{function:"function"},__type__:{object:a}},shadow:{enabled:{boolean:i},color:{string:n},size:{number:r},x:{number:r},y:{number:r},__type__:{object:a,boolean:i}},shape:{string:["ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon"]},shapeProperties:{borderDashes:{boolean:i,array:o},borderRadius:{number:r},interpolation:{boolean:i},useImageSize:{boolean:i},useBorderWithImage:{boolean:i},__type__:{object:a}},size:{number:r},title:{string:n,undefined:"undefined"},value:{number:r,undefined:"undefined"},widthConstraint:{minimum:{number:r},maximum:{number:r},__type__:{object:a,boolean:i,number:r}},x:{number:r},y:{number:r},__type__:{object:a}},physics:{enabled:{boolean:i},barnesHut:{gravitationalConstant:{number:r},centralGravity:{number:r},springLength:{number:r},springConstant:{number:r},damping:{number:r},avoidOverlap:{number:r},__type__:{object:a}},forceAtlas2Based:{gravitationalConstant:{number:r},centralGravity:{number:r},springLength:{number:r},springConstant:{number:r},damping:{number:r},avoidOverlap:{number:r},__type__:{object:a}},repulsion:{centralGravity:{number:r},springLength:{number:r},springConstant:{number:r},nodeDistance:{number:r},damping:{number:r},__type__:{object:a}},hierarchicalRepulsion:{centralGravity:{number:r},springLength:{number:r},springConstant:{number:r},nodeDistance:{number:r},damping:{number:r},__type__:{object:a}},maxVelocity:{number:r},minVelocity:{number:r},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:i},iterations:{number:r},updateInterval:{number:r},onlyDynamicEdges:{boolean:i},fit:{boolean:i},__type__:{object:a,boolean:i}},timestep:{number:r},adaptiveTimestep:{boolean:i},__type__:{object:a,boolean:i}},autoResize:{boolean:i},clickToUse:{boolean:i},locale:{string:n},locales:{__any__:{any:u},__type__:{object:a}},height:{string:n},width:{string:n},__type__:{object:a}};l.groups.__any__=l.nodes,l.manipulation.controlNodeStyle=l.nodes;var c={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01]}};t.allOptions=l,t.configureOptions=c},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(165),o=i(r),a=n(119),s=i(a),u=n(120),l=i(u),c=n(226),d=i(c),h=function(){function e(t,n,i){(0,s.default)(this,e),this.body=t,this.springLength=n,this.springConstant=i,this.distanceSolver=new d.default}return(0,l.default)(e,[{key:"setOptions",value:function(e){e&&(e.springLength&&(this.springLength=e.springLength),e.springConstant&&(this.springConstant=e.springConstant))}},{key:"solve",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.distanceSolver.getDistances(this.body,e,t);this._createL_matrix(i),this._createK_matrix(i);for(var r=.01,a=1,s=0,u=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),l=5,c=1e9,d=0,h=0,f=0,p=0,v=0;c>r&&sa&&v=.1;)f=r[c++%o],f>l&&(f=l),h=Math.sqrt(f*f/(1+u*u)),h=a<0?-h:h,e+=h,t+=u*h,d===!0?this.lineTo(e,t):this.moveTo(e,t),l-=f,d=!d})},function(e,t,n){function i(e){return e&&e.__esModule?e:{default:e}}function r(e){return A=e,v()}function o(){R=0,j=A.charAt(0)}function a(){R++,j=A.charAt(R)}function s(){return A.charAt(R+1)}function u(e){return z.test(e)}function l(e,t){if(e||(e={}),t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function c(e,t,n){for(var i=t.split("."),r=e;i.length;){var o=i.shift();i.length?(r[o]||(r[o]={}),r=r[o]):r[o]=n}}function d(e,t){for(var n,i,r=null,o=[e],a=e;a.parent;)o.push(a.parent),a=a.parent;if(a.nodes)for(n=0,i=a.nodes.length;n=0;n--){var s=o[n];s.nodes||(s.nodes=[]),s.nodes.indexOf(r)===-1&&s.nodes.push(r)}t.attr&&(r.attr=l(r.attr,t.attr))}function h(e,t){if(e.edges||(e.edges=[]),e.edges.push(t),e.edge){var n=l({},e.edge);t.attr=l(n,t.attr)}}function f(e,t,n,i,r){var o={from:t,to:n,type:i};return e.edge&&(o.attr=l({},e.edge)),o.attr=l(o.attr||{},r),o}function p(){for(B=I.NULL,F="";" "===j||"\t"===j||"\n"===j||"\r"===j;)a();do{var e=!1;if("#"===j){for(var t=R-1;" "===A.charAt(t)||"\t"===A.charAt(t);)t--;if("\n"===A.charAt(t)||""===A.charAt(t)){for(;""!=j&&"\n"!=j;)a();e=!0}}if("/"===j&&"/"===s()){for(;""!=j&&"\n"!=j;)a();e=!0}if("/"===j&&"*"===s()){for(;""!=j;){if("*"===j&&"/"===s()){a(),a();break}a()}e=!0}for(;" "===j||"\t"===j||"\n"===j||"\r"===j;)a()}while(e);if(""===j)return void(B=I.DELIMITER);var n=j+s();if(L[n])return B=I.DELIMITER,F=n,a(),void a();if(L[j])return B=I.DELIMITER,F=j,void a();if(u(j)||"-"===j){for(F+=j,a();u(j);)F+=j,a();return"false"===F?F=!1:"true"===F?F=!0:isNaN(Number(F))||(F=Number(F)),void(B=I.IDENTIFIER)}if('"'===j){for(a();""!=j&&('"'!=j||'"'===j&&'"'===s());)F+=j,'"'===j&&a(),a();if('"'!=j)throw T('End of string " expected');return a(),void(B=I.IDENTIFIER)}for(B=I.UNKNOWN;""!=j;)F+=j,a();throw new SyntaxError('Syntax error in part "'+E(F,30)+'"')}function v(){var e={};if(o(),p(),"strict"===F&&(e.strict=!0,p()),"graph"!==F&&"digraph"!==F||(e.type=F,p()),B===I.IDENTIFIER&&(e.id=F,p()),"{"!=F)throw T("Angle bracket { expected");if(p(),m(e),"}"!=F)throw T("Angle bracket } expected");if(p(),""!==F)throw T("End of file expected");return p(),delete e.node,delete e.edge,delete e.graph,e}function m(e){for(;""!==F&&"}"!=F;)y(e),";"===F&&p()}function y(e){var t=g(e);if(t)return void w(e,t);var n=b(e);if(!n){if(B!=I.IDENTIFIER)throw T("Identifier expected");var i=F;if(p(),"="===F){if(p(),B!=I.IDENTIFIER)throw T("Identifier expected");e[i]=F,p()}else _(e,i)}}function g(e){var t=null;if("subgraph"===F&&(t={},t.type="subgraph",p(),B===I.IDENTIFIER&&(t.id=F,p())),"{"===F){if(p(),t||(t={}),t.parent=e,t.node=e.node,t.edge=e.edge,t.graph=e.graph,m(t),"}"!=F)throw T("Angle bracket } expected");p(),delete t.node,delete t.edge,delete t.graph,delete t.parent,e.subgraphs||(e.subgraphs=[]),e.subgraphs.push(t)}return t}function b(e){return"node"===F?(p(),e.node=x(),"node"):"edge"===F?(p(),e.edge=x(),"edge"):"graph"===F?(p(),e.graph=x(),"graph"):null}function _(e,t){var n={id:t},i=x();i&&(n.attr=i),d(e,n),w(e,t)}function w(e,t){for(;"->"===F||"--"===F;){var n,i=F;p();var r=g(e);if(r)n=r;else{if(B!=I.IDENTIFIER)throw T("Identifier or subgraph expected");n=F,d(e,{id:n}),p()}var o=x(),a=f(e,t,n,i,o);h(e,a),t=n}}function x(){for(var e=null;"["===F;){for(p(),e={};""!==F&&"]"!=F;){if(B!=I.IDENTIFIER)throw T("Attribute name expected");var t=F;if(p(),"="!=F)throw T("Equal sign = expected");if(p(),B!=I.IDENTIFIER)throw T("Attribute value expected");var n=F;c(e,t,n),p(),","==F&&p()}if("]"!=F)throw T("Bracket ] expected");p()}return e}function T(e){return new SyntaxError(e+', got "'+E(F,30)+'" (char '+R+")")}function E(e,t){return e.length<=t?e:e.substr(0,27)+"..."}function C(e,t,n){Array.isArray(e)?e.forEach(function(e){Array.isArray(t)?t.forEach(function(t){n(e,t)}):n(e,t)}):Array.isArray(t)?t.forEach(function(t){n(e,t)}):n(e,t)}function O(e,t,n){for(var i=t.split("."),r=i.pop(),o=e,a=0;a":!0,"--":!0},A="",R=0,j="",F="",B=I.NULL,z=/[a-zA-Z_0-9.:#]/;t.parseDOT=r,t.DOTToGraph=k},function(e,t){function n(e,t){var n=[],i=[],r={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};void 0!==t&&(void 0!==t.fixed&&(r.nodes.fixed=t.fixed),void 0!==t.parseColor&&(r.nodes.parseColor=t.parseColor),void 0!==t.inheritColor&&(r.edges.inheritColor=t.inheritColor));for(var o=e.edges,a=e.nodes,s=0;s window.SERVER_URL = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: ''); + Dgraph UI diff --git a/dashboard/src/actions/index.js b/dashboard/src/actions/index.js index f12763ed0a5..880e679c75d 100644 --- a/dashboard/src/actions/index.js +++ b/dashboard/src/actions/index.js @@ -4,7 +4,8 @@ import { isNotEmpty, showTreeView, processGraph, - dgraphAddress + dgraphAddress, + dgraphQuery } from "../containers/Helpers"; // TODO - Check if its better to break this file down into multiple files. @@ -152,19 +153,10 @@ export const runQuery = query => { ); } }) - ) - .catch(function(error) { - console.log(error.stack); - var err = (error.response && error.response.text()) || - error.message; - return err; - }) - .then(function(errorMsg) { - if (errorMsg !== undefined) { - dispatch(fetchedResponse()); - dispatch(saveErrorResponse(errorMsg)); - } - }); + ).catch(function(error) { + dispatch(fetchedResponse()); + dispatch(saveErrorResponse(error.message)); + }); }; }; @@ -197,3 +189,171 @@ export const addScratchpadEntry = entry => ({ export const deleteScratchpadEntries = () => ({ type: "DELETE_SCRATCHPAD_ENTRIES" }); + +export const updateShareId = shareId => ({ + type: "UPDATE_SHARE_ID", + shareId +}); + +export const queryFound = found => ({ + type: "QUERY_FOUND", + found: found +}); + +const doShareMutation = (dispatch, getState) => { + let query = getState().query.text, + stringifiedQuery = JSON.stringify(encodeURI(query)), + mutation = ` + mutation { + set { + <_:share> <_share_> ${stringifiedQuery} . + } + }`; + + fetch(dgraphQuery(false), { + method: "POST", + mode: "cors", + headers: { + Accept: "application/json", + "Content-Type": "text/plain" + }, + body: mutation + }) + .then(checkStatus) + .then(response => response.json()) + .then(function handleResponse(result) { + if (result.uids && result.uids.share) { + dispatch(updateShareId(result.uids.share)); + } + }) + .catch(function(error) { + dispatch( + saveErrorResponse( + "Got error while saving querying for share: " + + error.message + ) + ); + }); +}; + +export const getShareId = (dispatch, getState) => { + let query = getState().query.text; + if (query === "") { + return; + } + let stringifiedQuery = JSON.stringify(encodeURI(query)), + // Considering that index is already set on the pred, schema mutation + // should be a no-op. Lets see if we have already stored this query by + // performing an exact match. + checkQuery = ` +mutation { + schema { + _share_: string @index(exact) . + } +} +{ + query(func:eq(_share_, ${stringifiedQuery})) { + _uid_ + } +}`; + + timeout( + 6000, + fetch(dgraphQuery(false), { + method: "POST", + mode: "cors", + headers: { + Accept: "application/json", + "Content-Type": "text/plain" + }, + body: checkQuery + }) + .then(checkStatus) + .then(response => response.json()) + .then(function handleResponse(result) { + if (result.query && result.query.length > 0) { + dispatch(updateShareId(result.query[0]["_uid_"])); + } else { + // Else do a mutation to store the query. + doShareMutation(dispatch, getState); + } + }) + ).catch(function(error) { + dispatch( + saveErrorResponse( + "Got error while saving querying for share: " + error.message + ) + ); + }); +}; + +export const getQuery = shareId => { + return dispatch => { + timeout( + 6000, + fetch(dgraphQuery(false), { + method: "POST", + mode: "cors", + headers: { + Accept: "application/json" + }, + body: `{ + query(id: ${shareId}) { + _share_ + } + }` + }) + .then(checkStatus) + .then(response => response.json()) + .then(function(result) { + if (result.query && result.query.length > 0) { + dispatch( + selectQuery(decodeURI(result.query[0]["_share_"])) + ); + return; + } + dispatch(queryFound(false)); + }) + ).catch(function(error) { + dispatch( + saveErrorResponse( + `Got error while getting query for id: ${shareId}, err: ` + + error.message + ) + ); + }); + }; +}; + +const updateAllowed = allowed => ({ + type: "UPDATE_ALLOWED", + allowed: allowed +}); + +export const initialServerState = () => { + const endpoint = [dgraphAddress(), "ui/init"].join("/"); + return dispatch => { + timeout( + 6000, + fetch(endpoint, { + method: "GET", + mode: "cors", + headers: { + Accept: "application/json" + } + }) + .then(checkStatus) + .then(response => response.json()) + .then(function(result) { + dispatch(updateAllowed(result.share)); + }) + ).catch(function(error) { + dispatch( + saveErrorResponse( + "Got error while communicating with server: " + + error.message + ) + ); + }); + }; +}; diff --git a/dashboard/src/assets/css/App.css b/dashboard/src/assets/css/App.css index 964dad9f720..e48492f9d5d 100644 --- a/dashboard/src/assets/css/App.css +++ b/dashboard/src/assets/css/App.css @@ -91,4 +91,8 @@ input.form-control { .form-group { margin-bottom: 5px; +} + +.App-hide { + display: none; } \ No newline at end of file diff --git a/dashboard/src/assets/css/Navbar.css b/dashboard/src/assets/css/Navbar.css new file mode 100644 index 00000000000..94181e0cb0d --- /dev/null +++ b/dashboard/src/assets/css/Navbar.css @@ -0,0 +1,24 @@ +.Nav-url-hide { + display: none !important; +} + +.Nav-share-url { + margin-left: 10px; +} + +.Nav-pad a { + padding-top: 10px !important; + height: 50px; +} + +@media only screen and (min-width: 992px) { + .Nav-share-url.form-control { + width: 350px; + } +} + +@media only screen and (max-width: 992px) { + .Nav-share-url.form-control { + width: 200px; + } +} \ No newline at end of file diff --git a/dashboard/src/components/Navbar.js b/dashboard/src/components/Navbar.js index cfc684812b2..502acc6b369 100644 --- a/dashboard/src/components/Navbar.js +++ b/dashboard/src/components/Navbar.js @@ -1,15 +1,44 @@ -import React, { Component } from "react"; -import { Navbar, Nav, NavItem } from "react-bootstrap"; +import React from "react"; +import { Navbar, Nav, NavItem, Button } from "react-bootstrap"; +import CopyToClipboard from "react-copy-to-clipboard"; + +import { dgraphAddress } from "../containers/Helpers.js"; import logo from "../assets/images/logo.svg"; +import "../assets/css/Navbar.css"; + +function url(id) { + return dgraphAddress() + "/" + id; +} + +const NavBar = React.createClass({ + getInitialState() { + return { + shareUrl: "" + }; + }, + + componentWillReceiveProps(nextProps) { + if ( + nextProps.shareId !== "" && nextProps.shareId !== this.props.shareId + ) { + this.setState({ shareUrl: url(nextProps.shareId) }); + } + }, -class NavBar extends Component { render() { + let { getShareId, shareId, allowed, query } = this.props, + urlClass = shareId === "" ? "Nav-url-hide" : "", + hideShare = !allowed || query === "" ? "Nav-url-hide" : ""; return ( - + @@ -35,11 +64,44 @@ class NavBar extends Component { > Community + +
+ + {}} + placeholder="Share" + /> + +