diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index f09954206..dd52412a3 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -17,4 +17,5 @@ //= require bootstrap //= require activestorage //= require local-time +//= require_tree ../../../vendor/assets/javascripts //= require_tree . diff --git a/app/assets/javascripts/submissions.js b/app/assets/javascripts/submissions.js index 72fbbcff8..d2d58da06 100644 --- a/app/assets/javascripts/submissions.js +++ b/app/assets/javascripts/submissions.js @@ -457,6 +457,39 @@ const SubmissionForm = function() { } } }); + + // API docs: https://developer.box.com/guides/embed/ui-elements/picker/ + const filePicker = new Box.FilePicker(); + const accessToken = $("input[name=box_access_token]").val(); + + filePicker.addListener("choose", function(files) { + console.log(files); + files.forEach(function(file, index) { // TODO: this is obviously quite broken + $.ajax({ + type: "GET", + url: file.authenticated_download_url, + headers: { + "Authorization": "Bearer " + accessToken + }, + success: function() { + console.log("success"); + }, + error: function() { + console.log("error"); + } + }); + //fileTable.addFile(file); + }); + }); + + const folderId = "0"; // the root folder of a Box account is ID 0 + filePicker.show(folderId, accessToken, { + container: "#box-container", + modal: { + buttonLabel: "Select Files From Box", + buttonClassName: "btn btn-lg btn-light" + } + }); }; const fileTable = new FileTable(); diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 25ad06565..65e76d5b5 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -13,6 +13,7 @@ @import "bootstrap"; +@import "../../../vendor/assets/stylesheets/picker"; @import "font-awesome-sprockets"; @import "font-awesome"; diff --git a/app/controllers/box_controller.rb b/app/controllers/box_controller.rb new file mode 100644 index 000000000..76110ac4e --- /dev/null +++ b/app/controllers/box_controller.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class BoxController < ApplicationController + + ## + # Box OAuth2 callback route. Responds to `GET /box/callback` + # + def oauth_callback + raise ActionController::BadRequest, "Missing code" if params[:code].blank? + code = params[:code].gsub(/^A-Za-z0-9/, "")[0..64] + BoxClient.new(session).new_access_token(code) + redirect_to params[:state] || redirect_path + end + +end diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index 426914260..b0a18fa41 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -66,6 +66,9 @@ def destroy # def edit @submission_profile = @resource.effective_submission_profile + + token = BoxClient.new(session).access_token + @access_token = token['access_token'] if token end ## diff --git a/app/util/box_client.rb b/app/util/box_client.rb new file mode 100644 index 000000000..76712e11d --- /dev/null +++ b/app/util/box_client.rb @@ -0,0 +1,110 @@ +## +# Convenience class used for obtaining and refreshing OAuth access tokens from +# Box and/or the session. +# +# # Usage +# +# If {access_token} returns a non-`nil` value, use it. Otherwise, +# obtain a new token via {new_access_token}. +# +class BoxClient + + ## + # @param callback_url [String] URL to redirect to. + # @param return_url [String] Information to add to the `state` argument. + # @return [String] + # + def self.authorization_url(callback_url:, state:) + config = ::Configuration.instance + "https://account.box.com/api/oauth2/authorize?response_type=code" + + "&client_id=#{config.box[:client_id]}" + + "&redirect_url=#{callback_url}" + + "&state=#{state}" + end + + def initialize(session) + @session = session + end + + ## + # Fetches the access token from the session. If the token is expired, it is + # refreshed, stored, and returned. If there is no token in the session, `nil` + # is returned. + # + # @return [Hash] Hash with the same structure as the one returned from + # {new_access_token}. + # + def access_token + if @session['box'].present? + if Time.now > @session['box']['expires'] + token = refresh_access_token(@session['box']['refresh_token']) + @session['box'] = token + return token + else + return @session['box'] + end + end + nil + end + + ## + # Exchanges the OAuth access code (supplied as a query argument to the OAuth + # callback URL) for an access token, stores it in the session, and returns + # it. + # + # @param code [String] + # @return [Hash] Hash with `:access_token`, `:expires`, and `:refresh_token` + # keys. + # @see https://developer.box.com/reference/post-oauth2-token/ + # + def new_access_token(code) + config = ::Configuration.instance + body = { + client_id: config.box[:client_id], + client_secret: config.box[:client_secret], + code: code, + grant_type: "authorization_code" + } + response = post("https://account.box.com/api/oauth2/token", body) + token = token_from_response(response.body) + @session['box'] = token + token + end + + private + + def post(url, body) + headers = { 'Content-Type': "application/x-www-form-urlencoded" } + HTTPClient.new.post(url, body, headers) + end + + ## + # @param refresh_token [String] + # + def refresh_access_token(refresh_token) + config = ::Configuration.instance + body = { + client_id: config.box[:client_id], + client_secret: config.box[:client_secret], + refresh_token: refresh_token, + grant_type: "refresh_token" + } + response = post("https://api.box.com/oauth2/token", body) + token_from_response(response.body) + end + + ## + # @param entity [String] HTTP response entity a.k.a. body. + # @return [Hash] Hash with `:access_token`, `:expires`, and `:refresh_token` + # keys. + # + def token_from_response(entity) + struct = JSON.parse(entity) + { + access_token: struct['access_token'], + expires: Time.now + struct['expires_in'], + refresh_token: struct['refresh_token'] + } + end + +end \ No newline at end of file diff --git a/app/views/submissions/_deposit_files_form.html.haml b/app/views/submissions/_deposit_files_form.html.haml index 45a578f4e..37a78432e 100644 --- a/app/views/submissions/_deposit_files_form.html.haml +++ b/app/views/submissions/_deposit_files_form.html.haml @@ -1,9 +1,5 @@ -# frozen_string_literal: true -.alert.alert-light - %i.fa.fa-exclamation-triangle - Filenames must be unique, and directory structure is not preserved. - = form_for(@resource, url: submission_path(@resource), remote: true, html: { id: "files-form" }) do |f| = token_tag(nil) @@ -31,13 +27,29 @@ %i.fa.fa-minus Remove - -# This input is hidden via CSS. JavaScript sends #file-dropzone click events - -# to it in order to open a file selection dialog. - %input#file-chooser{type: "file", multiple: true} + %ul.nav.nav-pills.nav-justified{role: "tablist"} + %li.nav-item + %a#browser-files-tab.nav-link.active{"data-toggle": "tab", + href: "#browser-files", + role: "tab", + "aria-controls": "browser-files", + "aria-selected": "true"} Upload From Browser + %li.nav-item + %a#box-files-tab.nav-link{"data-toggle": "tab", + href: "#box-files", + role: "tab", + "aria-controls": "box-files", + "aria-selected": "false"} Upload From Box + + .tab-content + #browser-files.tab-pane.fade.show.active{role: "tabpanel", + "aria-labelledby": "browser-files-tab"} + = render partial: "deposit_files_form_browser" + + #box-files.tab-pane.fade{role: "tabpanel", + "aria-labelledby": "box-files-tab"} + = render partial: "deposit_files_form_box" - #file-drop-zone.bg-light - %i.fa.fa-upload - Attach files (not folders) by dropping them here or selecting them. .text-center.mb-3.mt-3 %button.btn.btn-light.step-3-to-2{type: "button"} diff --git a/app/views/submissions/_deposit_files_form_box.html.haml b/app/views/submissions/_deposit_files_form_box.html.haml new file mode 100644 index 000000000..8ec0fe5cf --- /dev/null +++ b/app/views/submissions/_deposit_files_form_box.html.haml @@ -0,0 +1,13 @@ +- if @access_token.blank? + .text-center + = link_to BoxClient::authorization_url(callback_url: box_callback_url, + state: request.original_url), + class: "btn btn-primary" do + %i.fa.fa-sign-in-alt + Log into Box +- else + -# Read by JavaScript + = hidden_field_tag "box_access_token", @access_token + + #box-container + -# JavaScript takes over from here. \ No newline at end of file diff --git a/app/views/submissions/_deposit_files_form_browser.html.haml b/app/views/submissions/_deposit_files_form_browser.html.haml new file mode 100644 index 000000000..473dde21c --- /dev/null +++ b/app/views/submissions/_deposit_files_form_browser.html.haml @@ -0,0 +1,7 @@ +-# This input is hidden via CSS. JavaScript sends #file-dropzone click events +-# to it in order to open a file selection dialog. +%input#file-chooser{type: "file", multiple: true} + +#file-drop-zone.bg-light + %i.fa.fa-upload + Attach files (not folders) by dropping them here or selecting them. diff --git a/config/credentials/ci.yml b/config/credentials/ci.yml index 92726d011..573918a64 100644 --- a/config/credentials/ci.yml +++ b/config/credentials/ci.yml @@ -7,6 +7,9 @@ aws: access_key_id: my-access-key secret_access_key: my-secret-key bucket: ideals-test +box: + client_id: + client_secret: primary_db: host: localhost port: 5432 diff --git a/config/credentials/demo.yml.enc b/config/credentials/demo.yml.enc index b92ad883c..6e4c514ff 100644 --- a/config/credentials/demo.yml.enc +++ b/config/credentials/demo.yml.enc @@ -1 +1 @@ -Qr3MvjqlnpbgLS3J7EZdPMf89uzTPO/LEB6W8RSeeOTWQpxx77n48jLcsnpaqfFcHuLFn14FBWPNG/sQA1jEsM829R+Yc963kBTv7iTI38tKocyt6gsNM5z5fCOdeq+Uo1pt6fbcI6MKjBl3BCmWPepqoG1GMUMo5GPZo5lAErJeo38uvJEehCluiIyJ5KH74WMK/nwFFFF8rq+tms+RCzOC5UjkD/YA0eF/gEw3N0zxr2td4hwAVL8o8uO2YTVHj532tdcWdDFHyb9SFUC8grzlCCCsuwrO3ew7iERlrax18TXE6i8J+cp+VQ6wA3kbFkV0D70f0teVGBzLDoAs1dke4/k3DGlYorfwT6aupp7PqXofefgr0cSOh2QqbVif9D5owhG0jAtQyGBYo0uLdNXCAoIwPqT3Bu4rhKA3iJqxKQ3kykWtPI7lofVgl6a8ISItQt/H1+7wD5MiYQGVRwPbSG/VjBBeswjCPSVSBm5XNlVnxU9M8ZJ8cdeaCEoyXgUewGekedB/37oZGo+7E0aXom15WuryGaazhSIWbXvWugDVt90LcCQmKVMk/q6ULwerIDH+2xA+ta7ZRmch6bXVy9FdA7HzEUGAsRKK3w1u1EcyRa76PiYeG3TFbUNQdIc58xdtx2E5OD82lanA626+/7VC47Sq5yovTd1Rf3sHsMwPywohoqdts0iNYjyOviocfRAlNSlYNotFVsw4hqCdDG3kgsrLqCbhWV8lkrYc7V9p146LskYDJ1XV2OwIPzLrLSHLdgkCJRFrxfKwcf+LHQeZA0PV23qyPpJ+aKqO1UkmIVDvd2F1jIPB7PiZKGwhWTfkbInU8QNzzcRPyipTLeRVYRUw78fXTr1cNgiXOng+XL3m7Jo9OjegFfINOQpw5aJcu6lLScKqunZ+ByXizAjEDdKF5KY+MV/HJZLzX+DbrkWwvTxb16rJQsfqfEHZSvqMvm0oeA4hlJGa60fj+Km5851I1UCXkzYKhlp9J5q93LqcKoWGsbeAj7M3RU/zFJrcJvigZhwuJ2q9QgfqD83q+hWGJfooNDBVyi7LRI1OmRLPBltkZTip7mjcOkh+pAv6ZubSwWXEyrjI05tQd7tEut6Y8o3NtNm0vS7vscahDunAiMtGc/xa9+JaqCBvtPAWta68AcmB5w==--2DZrSin+e1ccXOGI--ezuvk+QXegtA8cH/dR4WvA== \ No newline at end of file +a2rYDieRk9yez7p4GpoVITHrholn16shU00OmmIl2gpS5Rh3oE/XpspGOugRL98crg8cWeO3Nuf4D5zm2mQ1l8gILYKEQkUZyNoNBgtHcQOqhYAf0APcfWgLVj8TMb7GV0qljzr5DF3jrjmWuEjRh0Y9TC+n9cEQ30nwPjZxNNaHg3zZtMeHP7xx6ywP6KDaqHm4YRxI4plD6vQGJb9N92wjB8EwNiW6B0rOvhsntCbflUj8PVuqZRqZF6lgKwL6vqR7q8LVZzaNGta10qlhDjJFAu/P3omWVzumqaSt7kxwe1Md6pvyNz66Umj/PjkBQKD7/YBYXR92h/mQNdPkcZawjadumJUT+8LFyEb7L9FF+pz10D4a255hdY0JgZQOAKPgcd8YnYrhCa6BeVyIx4BRCnfeLH1YhlZZggPcXxCgE+2W27A+rVklBmvC4ye5YNvHw0gekOVyFjX4WGmvlyPYb8Omdprk/dM3t1F6cgPOq2bAgId7izxiJT/YmMC7tf2WW6DY17KtOvcNbMxVMRi2GA3Dg5grKkE9SqEHPdgRGq0z3ouz9lRUkyNDJB9t0RFRe9JG2OX2E730PI54AClKSmUsoSPtM0rIlXFS5sf/3RXmgmLLi9qta4QZ17etrTIOQ5Y4pGcUIS1qzqtekHQdhYYPacLmEPOCSZx8jYChEdBeklVMldw0sQeJdLQXdFO0mZGThiUxY0hYktec+kMulE0McC9wtKIUGK2hUx/eFttLLkh6C20195QouAUn9XCZ7+QRsCxkTw7iNe0/4OpF7a948uuc8l0n6/Clre6/Z+fyoqxK3whH1endMftLfDOyMM5gfkctpRmh/52w1XrDq3t7+EjcvofpX6h++MrJhiT++OkOiI7Z0Lj4bgmdELIfkRnILC68re3x54TPMwG/es0DpDyhhWwXXfjKjGw6R4JdLihuwIKu1bkboJbrXhQ2ZPxqb3KE5cjRMbKNWqrP2geR3o9adqQSA9Q1Z/Beqrnt6TiHy5/oipR/wUxyn85HYfRjy1GByurzeYX4+H1CsgN/uBdcQf8vtvOqVwrUHVjcVzYi/Kflkln8PmIf1VsvypiDWxFRS445S1xDCgBuHq6Yeg79qKlxBxFp73Ks7L7ay+f/0atIiJHDFgODEse4zjOQrth4if9zXPN2YkTKWhjZTb7pXhQkh3WMD83vWQTl11FdP7TRY1kJaCW46kT4OA8wIPPK7TnOh9vzcm1M5X/bF8zLu7e4UpRZPztppRzR/ZAwdp7whHhnEUOKNiglQbjPebsVyqe/KwNtoyyX--PS8v2vwpvTyszM4I--mVBHpN0ZxzChPZ26AEzCbA== \ No newline at end of file diff --git a/config/credentials/production.yml.enc b/config/credentials/production.yml.enc index 7062ba77c..4038b143a 100644 --- a/config/credentials/production.yml.enc +++ b/config/credentials/production.yml.enc @@ -1 +1 @@ -qnjJHlT7UNhA1yAeNmffuqPdkDxfY7y0fuIP7uZPhEuFF3tcmKud1OL43PGop/zEFeZM3m9Z3IGFx/H8Mu8iOykdVyeiyV0wc7HpwOagg3WaSChTL0RrfgR8UR/TLM5jfxigN97CjJ8RsoVJr1J2OdaQyS/ZKCp5aPvHsnYTT+BuDTL2zMB1WWzrN+OvMSAwgVkycwYJ6fcqCXakzNxv85D+Zf+mt6/WpDIuIooM/rMaar0Aj2t6+0Wldp+MxG1TCX8PQlISVNMWXMpboEwOTxcPQmMDUsruCHeHb/0Jdh9zhKsenfKeaKQpSYA0aoTZ4ZHfjb+xgRWd8KUw6CbO6h2V3DdCTHh6/f+5sCg9jdhPJCCE9RKP0x/W8I9PqWON0T6q3XD1YBFijGKedtOXrbuaA+DW4IsUWUsfN69Y5PPz/Yd06czJMdMGmMyE9y4K/bCnfhY7qkY/dwjGTNJSC9zzCUkuuouDjfbeCGJjKUqyHE9rmLf21ViJdUQV/CuwoG642o3r6vT/7rNgV4fe2EeWvwQUw+QhaKD656wn2onk8TSBPxFVNN4ReC/gAVWs9bKyWEt0t4XNkkVCy6+zK+7xH/nnEQMQARJbvokOmUBIDZdIW8XQ73t9q6oMMOFXV0mwnXIJkWvZnpFsSzxGnjiXrsn2RWZeH40AGLYKTO9oDHt7g+STnOqTGz3IdTBydMU5ilzOZDwCvKKka2YovWKmQjNHsHpx5ODj+q9mq0Rt43kSUrh77dB6/M/Q61qvZ4NfE3G0szkHuXlS+mMJJHjLn3EcSBXNpvuNigpk3X7IxPwf4PSowgW3/OM4PcF+0ZjeffO47eNyGxBLOsKLqKVfs8XNRY4+6BeTwl3IIdI6hpe/7v9cGRfBk6pcxbZ6rk7l/MsF6Oc5/bKsXydrrsHTERWJYnPZXak9tpdE/rWdzaa+AfXOKXTI2BwY4OUzN3jMQG/uNwLhsx1BPt/fg0DO0ZBmG3x30uZ0KvLeMG5AZUOiGF13e0yYxB6zlb/eT60HTxioHLHhJZPuBqLnLaZU0sHnENuTsrHojJZBPaSAdjtRVZQdV5eW/ww/1cw=--mkKJyPBx48IuCU0C--UdB9VcGoHu8ODh7CDAPvCA== \ No newline at end of file +mMsv9Fk2fBcBkTiCQ9Rcsl8IvSCdSmFGoNWKCFFMH/f0R5f0UxWr47entCMPPojUkvGk+V9bUZvb3XIuGDz1mpluhpAZLrp1iPRsNNrfkTBOxrR3tPFLxkQd4q+YMsXRDT384QZQNqMor6Hcz8xzgTDdnMM3CRg5t6s6q5h2JTLqDvinVypfw8Jo0UZwyLh81sIVJUjLQlyXPQd2vFJqOZfJhHSS46L379ara+6/zdVB0DFoFs42D1XvoEHvTRUBG3I70tKlA1v1xAgKgk93f/SvK46hlx0AU5ZG965/Zk77WmTpPcPJxyIrM8HejcLPJI8G0QVNNYNDy/h240S0FgKgT++ZXAWVvu4QCg1kToRRNUPpi8BkDC3UY8YZtmk5vin3jEO0rjrubWib9CXrspeRMqbU8pesGGZLQqZqtOhZpqmfU9frIGVRWndJTjAVBW52e0AX2uKhh3SoLJsR/JfBbEQq3S/1ULnuluYN05nxb3E+2WtFoJxbM6EUXebK1mQqzCZsQ2h7jgj2PkTYCv1TO+POtloY+9vUJD/ifn263hdumYnCJ+BPQ0lb3kzuImNODeiEgG8bWOmxzPQWHZ+yXbj1sR1y4NthbUUh/xV4XM5LbbuU6tz5SL1+rPMeNOFlIyK0TgUgw0dnT3kzpMKoYx+IjLXVlX1QlBMW60oSjojD65A8kHK6pzhmNRGoLksf2XbBcfeo9Y5SWjNkeE/xz8eRUl9gWhYmRwbTQfgavUWk9shmYy1zPU5a+aO8L9GM34QcEYDWqTyl0W6uPq4RkHK8mbhxKE+TxiRdiqXBxBzTym3CtrdG4VvyD09TloM5o0Kdx4ieqUfKogj4oPcyih6UXWv62tJ2VOAEPR+bffcYefh6A+N/+IevIQAz/oMAg9w8TgjvsdaXKRZ8HyQL822a3qk4Uju7bWewFU8W7qVrzoDO/+Azm7fWmj1v14crPbCDgUs+hAYRU/G1RnJ3QWUFomiJFEEMzTRm5LblgzzsYiHpcIBD8LoEXujXyagiS/lmMat3k51y9RVgq9eXtvrhoYln4z+CqaKIUUKl1g8pFi1S77uTlGiSOwzlqbNCVSdzEhU9co719l5WDx2K4XDNdR0NIJ0QBHuW1uplUDv6tM5PphR8BI+N8M4w13PJm3l3G23IzswaaWrhq3P0U4zQLR5Cz8cESLeswTcao2ukNCe2fwHhy5tG2rmMm6Ieyg==--Iaf0ykNNbkSr3SXx--XFFu7MogA+7xdGA1lNd4/A== \ No newline at end of file diff --git a/config/credentials/template.yml b/config/credentials/template.yml index 382002e90..bfe69afbe 100644 --- a/config/credentials/template.yml +++ b/config/credentials/template.yml @@ -9,6 +9,9 @@ aws: secret_access_key: # This key is used only in demo & production. region: us-east-2 +box: + client_id: + client_secret: # Database connection settings, which will get injected into # config/database.yml. primary_db: diff --git a/config/routes.rb b/config/routes.rb index b28f40193..35a93658d 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -13,6 +13,7 @@ get '/handle/:prefix/:suffix', to: 'handles#resolve' resources :account_activations, only: [:edit] + match "/box/callback", to: "box#oauth_callback", via: :get resources :collections, except: [:edit, :new] do match "/children", to: "collections#children", via: :get, constraints: lambda { |request| request.xhr? } diff --git a/vendor/assets/javascripts/picker.js b/vendor/assets/javascripts/picker.js new file mode 100644 index 000000000..95bc91436 --- /dev/null +++ b/vendor/assets/javascripts/picker.js @@ -0,0 +1,93 @@ +/*! + * Box UI Element + * + * Copyright 2019 Box, Inc. All rights reserved. + * + * This product includes software developed by Box, Inc. ("Box") + * (http://www.box.com) + * + * ALL BOX SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL BOX BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * See the Box license for the specific language governing permissions + * and limitations under the license. + */!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/0.0.0-semantically-released/en-US/",n(n.s=1112)}([function(e,t,n){"use strict";e.exports=n(317)},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"ke",(function(){return i})),n.d(t,"le",(function(){return a})),n.d(t,"me",(function(){return s})),n.d(t,"ne",(function(){return l})),n.d(t,"if",(function(){return c})),n.d(t,"nf",(function(){return u})),n.d(t,"of",(function(){return f})),n.d(t,"mf",(function(){return d})),n.d(t,"hf",(function(){return p})),n.d(t,"pf",(function(){return h})),n.d(t,"qf",(function(){return m})),n.d(t,"rf",(function(){return y})),n.d(t,"jf",(function(){return v})),n.d(t,"lf",(function(){return b})),n.d(t,"kf",(function(){return g})),n.d(t,"Ye",(function(){return w})),n.d(t,"Xe",(function(){return C})),n.d(t,"Ze",(function(){return S})),n.d(t,"We",(function(){return k})),n.d(t,"Ve",(function(){return x})),n.d(t,"Ue",(function(){return E})),n.d(t,"i",(function(){return _})),n.d(t,"h",(function(){return O})),n.d(t,"n",(function(){return P})),n.d(t,"m",(function(){return T})),n.d(t,"l",(function(){return j})),n.d(t,"j",(function(){return I})),n.d(t,"k",(function(){return A})),n.d(t,"Ce",(function(){return M})),n.d(t,"De",(function(){return L})),n.d(t,"c",(function(){return F})),n.d(t,"d",(function(){return R})),n.d(t,"a",(function(){return N})),n.d(t,"b",(function(){return D})),n.d(t,"dd",(function(){return z})),n.d(t,"hd",(function(){return U})),n.d(t,"fd",(function(){return H})),n.d(t,"gd",(function(){return B})),n.d(t,"ed",(function(){return V})),n.d(t,"Cd",(function(){return W})),n.d(t,"Fd",(function(){return q})),n.d(t,"Ed",(function(){return G})),n.d(t,"Bd",(function(){return K})),n.d(t,"Ad",(function(){return Q})),n.d(t,"Dd",(function(){return Z})),n.d(t,"rc",(function(){return X})),n.d(t,"lc",(function(){return Y})),n.d(t,"Cc",(function(){return $})),n.d(t,"Yc",(function(){return J})),n.d(t,"Sc",(function(){return ee})),n.d(t,"Fc",(function(){return te})),n.d(t,"oc",(function(){return ne})),n.d(t,"xc",(function(){return re})),n.d(t,"Hc",(function(){return oe})),n.d(t,"Ic",(function(){return ie})),n.d(t,"wc",(function(){return ae})),n.d(t,"Gc",(function(){return se})),n.d(t,"hc",(function(){return le})),n.d(t,"ic",(function(){return ce})),n.d(t,"Ac",(function(){return ue})),n.d(t,"Mc",(function(){return fe})),n.d(t,"Oc",(function(){return de})),n.d(t,"jc",(function(){return pe})),n.d(t,"sc",(function(){return he})),n.d(t,"Rc",(function(){return me})),n.d(t,"dc",(function(){return ye})),n.d(t,"qc",(function(){return ve})),n.d(t,"vc",(function(){return be})),n.d(t,"kc",(function(){return ge})),n.d(t,"Bc",(function(){return we})),n.d(t,"Ec",(function(){return Ce})),n.d(t,"Nc",(function(){return Se})),n.d(t,"Xc",(function(){return ke})),n.d(t,"mc",(function(){return xe})),n.d(t,"Lc",(function(){return Ee})),n.d(t,"Qc",(function(){return _e})),n.d(t,"bd",(function(){return Oe})),n.d(t,"gc",(function(){return Pe})),n.d(t,"pc",(function(){return Te})),n.d(t,"uc",(function(){return je})),n.d(t,"Zc",(function(){return Ie})),n.d(t,"ad",(function(){return Ae})),n.d(t,"zc",(function(){return Me})),n.d(t,"nc",(function(){return Le})),n.d(t,"Vc",(function(){return Fe})),n.d(t,"tc",(function(){return Re})),n.d(t,"yc",(function(){return Ne})),n.d(t,"Uc",(function(){return De})),n.d(t,"Wc",(function(){return ze})),n.d(t,"fc",(function(){return Ue})),n.d(t,"Jc",(function(){return He})),n.d(t,"Tc",(function(){return Be})),n.d(t,"cc",(function(){return Ve})),n.d(t,"ec",(function(){return We})),n.d(t,"Dc",(function(){return qe})),n.d(t,"Kc",(function(){return Ge})),n.d(t,"Pc",(function(){return Ke})),n.d(t,"ae",(function(){return Qe})),n.d(t,"be",(function(){return Ze})),n.d(t,"Yd",(function(){return Xe})),n.d(t,"Xd",(function(){return Ye})),n.d(t,"de",(function(){return $e})),n.d(t,"ce",(function(){return Je})),n.d(t,"Wd",(function(){return et})),n.d(t,"Zd",(function(){return tt})),n.d(t,"bb",(function(){return nt})),n.d(t,"ab",(function(){return rt})),n.d(t,"T",(function(){return ot})),n.d(t,"O",(function(){return it})),n.d(t,"S",(function(){return at})),n.d(t,"K",(function(){return st})),n.d(t,"M",(function(){return lt})),n.d(t,"N",(function(){return ct})),n.d(t,"L",(function(){return ut})),n.d(t,"H",(function(){return ft})),n.d(t,"V",(function(){return dt})),n.d(t,"W",(function(){return pt})),n.d(t,"G",(function(){return ht})),n.d(t,"P",(function(){return mt})),n.d(t,"Q",(function(){return yt})),n.d(t,"R",(function(){return vt})),n.d(t,"J",(function(){return bt})),n.d(t,"I",(function(){return gt})),n.d(t,"X",(function(){return wt})),n.d(t,"Z",(function(){return Ct})),n.d(t,"Y",(function(){return St})),n.d(t,"x",(function(){return kt})),n.d(t,"B",(function(){return xt})),n.d(t,"C",(function(){return Et})),n.d(t,"A",(function(){return _t})),n.d(t,"w",(function(){return Ot})),n.d(t,"y",(function(){return Pt})),n.d(t,"z",(function(){return Tt})),n.d(t,"D",(function(){return jt})),n.d(t,"He",(function(){return It})),n.d(t,"Ge",(function(){return At})),n.d(t,"Ie",(function(){return Mt})),n.d(t,"Ee",(function(){return Lt})),n.d(t,"Fe",(function(){return Ft})),n.d(t,"t",(function(){return Rt})),n.d(t,"u",(function(){return Nt})),n.d(t,"v",(function(){return Dt})),n.d(t,"q",(function(){return zt})),n.d(t,"p",(function(){return Ut})),n.d(t,"r",(function(){return Ht})),n.d(t,"s",(function(){return Bt})),n.d(t,"o",(function(){return Vt})),n.d(t,"Vd",(function(){return Wt})),n.d(t,"Hb",(function(){return qt})),n.d(t,"Jb",(function(){return Gt})),n.d(t,"Ib",(function(){return Kt})),n.d(t,"Yb",(function(){return Qt})),n.d(t,"Xb",(function(){return Zt})),n.d(t,"bc",(function(){return Xt})),n.d(t,"Zb",(function(){return Yt})),n.d(t,"ac",(function(){return $t})),n.d(t,"tb",(function(){return Jt})),n.d(t,"ub",(function(){return en})),n.d(t,"vb",(function(){return tn})),n.d(t,"Fb",(function(){return nn})),n.d(t,"rb",(function(){return rn})),n.d(t,"Db",(function(){return on})),n.d(t,"Eb",(function(){return an})),n.d(t,"Bb",(function(){return sn})),n.d(t,"sb",(function(){return ln})),n.d(t,"Cb",(function(){return cn})),n.d(t,"wb",(function(){return un})),n.d(t,"xb",(function(){return fn})),n.d(t,"yb",(function(){return dn})),n.d(t,"qb",(function(){return pn})),n.d(t,"Ab",(function(){return hn})),n.d(t,"zb",(function(){return mn})),n.d(t,"pb",(function(){return yn})),n.d(t,"cb",(function(){return vn})),n.d(t,"fb",(function(){return bn})),n.d(t,"hb",(function(){return gn})),n.d(t,"gb",(function(){return wn})),n.d(t,"db",(function(){return Cn})),n.d(t,"eb",(function(){return Sn})),n.d(t,"ib",(function(){return kn})),n.d(t,"jb",(function(){return xn})),n.d(t,"mb",(function(){return En})),n.d(t,"nb",(function(){return _n})),n.d(t,"kb",(function(){return On})),n.d(t,"lb",(function(){return Pn})),n.d(t,"ob",(function(){return Tn})),n.d(t,"Lb",(function(){return jn})),n.d(t,"Nb",(function(){return In})),n.d(t,"Vb",(function(){return An})),n.d(t,"Wb",(function(){return Mn})),n.d(t,"Sb",(function(){return Ln})),n.d(t,"Ub",(function(){return Fn})),n.d(t,"Tb",(function(){return Rn})),n.d(t,"Gb",(function(){return Nn})),n.d(t,"Mb",(function(){return Dn})),n.d(t,"Pb",(function(){return zn})),n.d(t,"Qb",(function(){return Un})),n.d(t,"Ob",(function(){return Hn})),n.d(t,"Kb",(function(){return Bn})),n.d(t,"Rb",(function(){return Vn})),n.d(t,"Nd",(function(){return Wn})),n.d(t,"Od",(function(){return qn})),n.d(t,"Md",(function(){return Gn})),n.d(t,"Pd",(function(){return Kn})),n.d(t,"Qd",(function(){return Qn})),n.d(t,"Td",(function(){return Zn})),n.d(t,"Ud",(function(){return Xn})),n.d(t,"Sd",(function(){return Yn})),n.d(t,"Rd",(function(){return $n})),n.d(t,"Hd",(function(){return Jn})),n.d(t,"Gd",(function(){return er})),n.d(t,"yd",(function(){return tr})),n.d(t,"sf",(function(){return rr})),n.d(t,"U",(function(){return or})),n.d(t,"Id",(function(){return ir})),n.d(t,"E",(function(){return ar})),n.d(t,"F",(function(){return sr})),n.d(t,"Be",(function(){return lr})),n.d(t,"we",(function(){return cr})),n.d(t,"Ae",(function(){return ur})),n.d(t,"ve",(function(){return fr})),n.d(t,"xe",(function(){return dr})),n.d(t,"te",(function(){return pr})),n.d(t,"oe",(function(){return hr})),n.d(t,"pe",(function(){return mr})),n.d(t,"ue",(function(){return yr})),n.d(t,"se",(function(){return vr})),n.d(t,"re",(function(){return br})),n.d(t,"qe",(function(){return gr})),n.d(t,"ze",(function(){return wr})),n.d(t,"ye",(function(){return Cr})),n.d(t,"cd",(function(){return Sr})),n.d(t,"tf",(function(){return kr})),n.d(t,"ie",(function(){return xr})),n.d(t,"ge",(function(){return Er})),n.d(t,"he",(function(){return _r})),n.d(t,"fe",(function(){return Or})),n.d(t,"je",(function(){return Pr})),n.d(t,"jd",(function(){return Tr})),n.d(t,"md",(function(){return jr})),n.d(t,"nd",(function(){return Ir})),n.d(t,"id",(function(){return Ar})),n.d(t,"ld",(function(){return Mr})),n.d(t,"kd",(function(){return Lr})),n.d(t,"qd",(function(){return Fr})),n.d(t,"td",(function(){return Rr})),n.d(t,"pd",(function(){return Nr})),n.d(t,"xd",(function(){return Dr})),n.d(t,"vd",(function(){return zr})),n.d(t,"sd",(function(){return Ur})),n.d(t,"ud",(function(){return Hr})),n.d(t,"od",(function(){return Br})),n.d(t,"wd",(function(){return Vr})),n.d(t,"rd",(function(){return Wr})),n.d(t,"af",(function(){return qr})),n.d(t,"bf",(function(){return Gr})),n.d(t,"cf",(function(){return Kr})),n.d(t,"gf",(function(){return Qr})),n.d(t,"df",(function(){return Zr})),n.d(t,"ff",(function(){return Xr})),n.d(t,"ef",(function(){return Yr})),n.d(t,"ee",(function(){return $r})),n.d(t,"f",(function(){return Jr})),n.d(t,"g",(function(){return eo})),n.d(t,"Kd",(function(){return to})),n.d(t,"Ld",(function(){return no})),n.d(t,"Ne",(function(){return ro})),n.d(t,"Oe",(function(){return oo})),n.d(t,"Qe",(function(){return io})),n.d(t,"Pe",(function(){return ao})),n.d(t,"Re",(function(){return so})),n.d(t,"Te",(function(){return lo})),n.d(t,"Se",(function(){return co})),n.d(t,"Je",(function(){return uo})),n.d(t,"Ke",(function(){return fo})),n.d(t,"Le",(function(){return po})),n.d(t,"Me",(function(){return ho})),n.d(t,"zd",(function(){return mo})),n.d(t,"Jd",(function(){return yo}));var r=n(147),o=1e3,i="large",a="medium",s="small",l="very_large",c="folder",u="search",f="selected",d="recents",p="error",h="upload-empty",m="upload-inprogress",y="upload-success",v="metadata",b="list",g="grid",w="folder",C="file",S="web_link",k="folder_",x="file_",E="feedItems_",_=k,O=x,P="web_link_",T="search_",j="recents_",I="metadata_",A="metadata_query_",M="ASC",L="DESC",F="none",R="open",N="collaborators",D="company",z="Accept",U="Content-Type",H="X-Box-Client-Name",B="X-Box-Client-Version",V="Accept-Language",W="securityClassification-6VMVochwUWo",q="boxSkillsCards",G="properties",K="global",Q="enterprise",Z=o,X="id",Y="date",$="name",J="type",ee="size",te="parent",ne="extension",re="expires_at",oe="permissions",ie="".concat(oe,".can_upload"),ae="item_collection",se="path_collection",le="content_created_at",ce="content_modified_at",ue="modified_at",fe="restored_at",de="restored_from",pe="created_at",he="interacted_at",me="shared_link",ye="allowed_shared_link_access_levels",ve="has_collaborations",be="is_externally_owned",ge="created_by",we="modified_by",Ce="owned_by",Se="restored_by",ke="trashed_by",xe="description",Ee="representations",_e="sha1",Oe="watermark_info",Pe="authenticated_download_url",Te="file_version",je="is_download_available",Ie="version_limit",Ae="version_number",Me="".concat("metadata",".").concat(K,".").concat(q),Le=("".concat("metadata",".").concat(K,".").concat(G),"".concat("metadata",".").concat(Q,".").concat(W),"due_at"),Fe="task_assignment_collection",Re="is_completed",Ne="message",De="tagged_message",ze="trashed_at",Ue="assigned_to",He="",Be="status",Ve="activity_template",We="app",qe="occurred_at",Ge="rendered_text",Ke="retention",Qe="can_preview",Ze="can_rename",Xe="can_download",Ye="can_delete",$e="can_upload",Je="can_share",et="can_comment",tt="can_edit",nt="slash",rt="caret",ot="2.16.0",it="en-US",at="platform/preview",st="https://api.box.com",lt="https://cdn01.boxcdn.net",ct="https://upload.box.com",ut="https://app.box.com",ft="body",dt="0",pt=500,ht=500,mt=25,yt=1,vt=50,bt=0,gt=1e3,wt="files",Ct="recents",St="metadata",kt="ContentPicker",xt="FilePicker",Et="FolderPicker",_t="ContentUploader",Ot="ContentExplorer",Pt="ContentPreview",Tt="ContentSidebar",jt="ContentOpenWith",It="pending",At="inprogress",Mt="staged",Lt="complete",Ft="error",Rt="be-modal-dialog-content",Nt="be-modal-dialog-content-full-bleed",Dt="be-modal-dialog-overlay",zt="be-is-small",Ut="be-is-medium",Ht="be-is-touch",Bt="be-modal",Vt="bcow-integration-icon",Wt="overlay-wrapper",qt="item_name_invalid",Gt="item_name_too_long",Kt="item_name_in_use",Qt="upload_file_limit",Zt="child_folder_failed_upload",Xt="storage_limit_exceeded",Yt="file_size_limit_exceeded",$t="pending_app_folder_size_limit",Jt="fetch_file_error",en="forbidden_by_policy",tn="fetch_folder_error",nn="fetch_weblink_error",rn="fetch_comments_error",on="fetch_version_error",an="fetch_versions_error",sn="fetch_tasks_error",ln="fetch_current_user_error",cn="fetch_task_collaborator_error",un="fetch_integrations_error",fn="fetch_metadata_error",dn="fetch_metadata_templates_error",pn="fetch_access_stats_error",hn="fetch_skills_error",mn="fetch_recents_error",yn="execute_integrations_error",vn="create_comment_error",bn="create_task_error",gn="create_task_link_error",wn="create_task_collaborator_error",Cn="create_folder_error",Sn="create_metadata_error",kn="delete_app_activity_error",xn="delete_comment_error",En="delete_task_error",_n="delete_task_collaborator_error",On="delete_item_error",Pn="delete_metadata_error",Tn="delete_version_error",jn="promote_version_error",In="restore_version_error",An="update_task_error",Mn="update_task_collaborator_error",Ln="update_comment_error",Fn="update_skills_error",Rn="update_metadata_error",Nn="get_download_url_error",Dn="rename_item_error",zn="share_item_error",Un="unexpected_exception_error",Hn="search_error",Bn="metadata_query_error",Vn="unknown_error",Wn="content_preview",qn="content_sidebar",Gn="activity_sidebar",Kn="details_sidebar",Qn="metadata_sidebar",Zn="skills_sidebar",Xn="versions_sidebar",Yn="preview",$n="open_with",Jn="preview_metric",er="elements_load_metric",tr="isErrorDisplayed",nr=r.a.canPlayDash()?"[dash,mp4][filmstrip]":"[mp4]",rr="".concat("[3d][pdf][text][mp3]").concat("[jpg?dimensions=1024x1024&paged=false]").concat("[jpg?dimensions=2048x2048,png?dimensions=2048x2048]").concat(nr),or=3e3,ir=1e3,ar="#999",sr="#fff",lr="transcript",cr="keyword",ur="timeline",fr="face",dr="status",pr="skills_invocations_error",hr="skills_billing_error",mr="skills_external_auth_error",yr="skills_unknown_error",vr="skills_invalid_file_size_error",br="skills_invalid_file_format_error",gr="skills_file_processing_error",wr="skills_pending_status",Cr="skills_invoked_status",Sr="boxnote",kr="[jpg?dimensions=".concat("1024x1024","&paged=false,png?dimensions=").concat("1024x1024","]"),xr="skills",Er="details",_r="metadata",Or="activity",Pr="versions",Tr="GET",jr="POST",Ir="PUT",Ar="DELETE",Mr="OPTIONS",Lr="HEAD",Fr=403,Rr=404,Nr=409,Dr=401,zr=429,Ur=500,Hr=501,Br=502,Vr=503,Wr=504,qr="delete",Gr="promote",Kr="restore",Qr="upload",Zr="permanently_delete",Xr="remove_retention",Yr="indefinite",$r={type:"user",id:"2",name:""},Jr="1338",eo="13418",to=26,no=30,ro="APPROVED",oo="COMPLETED",io="NOT_STARTED",ao="IN_PROGRESS",so="REJECTED",lo="GENERAL",co="APPROVAL",uo="ALL_ASSIGNEES",fo="ANY_ASSIGNEE",po="CREATE",ho="EDIT",mo={arrowDown:"ArrowDown",arrowLeft:"ArrowLeft",arrowRight:"ArrowRight",arrowUp:"ArrowUp",backspace:"Backspace",enter:"Enter",escape:"Escape",space:" "},yo=36e5},function(e,t,n){"use strict";n.d(t,"f",(function(){return C})),n.d(t,"h",(function(){return ae})),n.d(t,"g",(function(){return se})),n.d(t,"e",(function(){return ke})),n.d(t,"a",(function(){return xe})),n.d(t,"d",(function(){return Ie})),n.d(t,"c",(function(){return Ae})),n.d(t,"b",(function(){return Fe}));var r=n(244),o=n.n(r),i=n(59),a=n.n(i),s=n(82),l=n.n(s),c=n(11),u=n.n(c),f=n(0),d=n.n(f),p=n(245),h=n.n(p),m=n(99),y=n.n(m),v=n(66),b=n.n(v);function g(e){return(g="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})(e)}var w={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}};function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(e)?e:[e]).forEach((function(e){e&&e.locale&&(a.a.__addLocaleData(e),l.a.__addLocaleData(e))}))}function S(e){var t=e&&e.toLowerCase();return!(!a.a.__localeData__[t]||!l.a.__localeData__[t])}var k="function"==typeof Symbol&&"symbol"===g(Symbol.iterator)?function(e){return g(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":g(e)},x=(function(){function e(e){this.value=e}function t(t){var n,r;function o(n,r){try{var a=t[n](r),s=a.value;s instanceof e?Promise.resolve(s.value).then((function(e){o("next",e)}),(function(e){o("throw",e)})):i(a.done?"return":"normal",a.value)}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?o(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise((function(i,a){var s={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=s:(n=r=s,o(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),E=function(){function e(e,t){for(var n=0;n":">","<":"<",'"':""","'":"'"},J=/[&><"']/g;function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t}),{})}function te(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intl;y()(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function ne(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":k(e))||null===e||"object"!==(void 0===t?"undefined":k(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),i=0;i3&&void 0!==arguments[3]?arguments[3]:{},l=a.intl,c=void 0===l?{}:l,u=s.intl,f=void 0===u?{}:u;return!ne(t,r)||!ne(n,o)||!(f===c||ne(ee(f,Y),ee(c,Y)))}function oe(e,t){return"[React Intl] "+e+(t?"\n"+t:"")}function ie(e){0}function ae(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.intlPropName,o=void 0===r?"intl":r,i=n.withRef,a=void 0!==i&&i,s=function(t){function n(e,t){x(this,n);var r=T(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return te(t),r}return P(n,t),E(n,[{key:"getWrappedInstance",value:function(){return y()(a,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this._wrappedInstance}},{key:"render",value:function(){var t=this;return d.a.createElement(e,O({},this.props,_({},o,this.context.intl),{ref:a?function(e){return t._wrappedInstance=e}:null}))}}]),n}(f.Component);return s.displayName="InjectIntl("+((t=e).displayName||t.name||"Component")+")",s.contextTypes={intl:G},s.WrappedComponent=e,h()(s,e)}function se(e){return e}function le(e){return a.a.prototype._resolveLocale(e)}function ce(e){return a.a.prototype._findPluralRuleFunction(e)}var ue=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,e);var r="ordinal"===n.style,o=ce(le(t));this.format=function(e){return o(e,r)}},fe=Object.keys(K),de=Object.keys(Q),pe=Object.keys(Z),he=Object.keys(X),me={second:60,minute:60,hour:24,day:30,month:12};function ye(e){var t=l.a.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month,t["second-short"]=e["second-short"],t["minute-short"]=e["minute-short"],t["hour-short"]=e["hour-short"],t["day-short"]=e["day-short"],t["month-short"]=e["month-short"]}function ve(e,t,n,r){var o=e&&e[t]&&e[t][n];if(o)return o;r(oe("No "+t+" format named: "+n))}function be(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=e.formats,a=e.messages,s=e.defaultLocale,l=e.defaultFormats,c=n.id,u=n.defaultMessage;y()(c,"[React Intl] An `id` must be provided to format a message.");var f=a&&a[c];if(!(Object.keys(r).length>0))return f||u||c;var d=void 0,p=e.onError||ie;if(f)try{d=t.getMessageFormat(f,o,i).format(r)}catch(e){p(oe('Error formatting message: "'+c+'" for locale: "'+o+'"'+(u?", using default message as fallback.":""),e))}else(!u||o&&o.toLowerCase()!==s.toLowerCase())&&p(oe('Missing message: "'+c+'" for locale: "'+o+'"'+(u?", using default message as fallback.":"")));if(!d&&u)try{d=t.getMessageFormat(u,s,l).format(r)}catch(e){p(oe('Error formatting the default message for: "'+c+'"',e))}return d||p(oe('Cannot format message: "'+c+'", using message '+(f||u?"source":"id")+" as fallback.")),d||f||u||c}var ge=Object.freeze({formatDate:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=e.formats,a=e.timeZone,s=r.format,l=e.onError||ie,c=new Date(n),u=O({},a&&{timeZone:a},s&&ve(i,"date",s,l)),f=ee(r,fe,u);try{return t.getDateTimeFormat(o,f).format(c)}catch(e){l(oe("Error formatting date.",e))}return String(c)},formatTime:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=e.formats,a=e.timeZone,s=r.format,l=e.onError||ie,c=new Date(n),u=O({},a&&{timeZone:a},s&&ve(i,"time",s,l)),f=ee(r,fe,u);f.hour||f.minute||f.second||(f=O({},f,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(o,f).format(c)}catch(e){l(oe("Error formatting time.",e))}return String(c)},formatRelative:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=e.formats,a=r.format,s=e.onError||ie,c=new Date(n),u=new Date(r.now),f=a&&ve(i,"relative",a,s),d=ee(r,pe,f),p=O({},l.a.thresholds);ye(me);try{return t.getRelativeFormat(o,d).format(c,{now:isFinite(u)?u:t.now()})}catch(e){s(oe("Error formatting relative time.",e))}finally{ye(p)}return String(c)},formatNumber:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=e.formats,a=r.format,s=e.onError||ie,l=a&&ve(i,"number",a,s),c=ee(r,de,l);try{return t.getNumberFormat(o,c).format(n)}catch(e){s(oe("Error formatting number.",e))}return String(n)},formatPlural:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=ee(r,he),a=e.onError||ie;try{return t.getPluralFormat(o,i).format(n)}catch(e){a(oe("Error formatting plural.",e))}return"other"},formatMessage:be,formatHTMLMessage:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return be(e,t,n,Object.keys(r).reduce((function(e,t){var n=r[t];return e[t]="string"==typeof n?(""+n).replace(J,(function(e){return $[e]})):n,e}),{}))}}),we=Object.keys(W),Ce=Object.keys(q),Se={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:ie},ke=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(this,t);var r=T(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));y()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var o=n.intl,i=void 0;i=isFinite(e.initialNow)?Number(e.initialNow):o?o.now():Date.now();var s=(o||{}).formatters,c=void 0===s?{getDateTimeFormat:b()(Intl.DateTimeFormat),getNumberFormat:b()(Intl.NumberFormat),getMessageFormat:b()(a.a),getRelativeFormat:b()(l.a),getPluralFormat:b()(ue)}:s;return r.state=O({},c,{now:function(){return r._didDisplay?Date.now():i}}),r}return P(t,e),E(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=ee(this.props,we,e);for(var n in Se)void 0===t[n]&&(t[n]=Se[n]);if(!function(e){for(var t=(e||"").split("-");t.length>0;){if(S(t.join("-")))return!0;t.pop()}return!1}(t.locale)){var r=t,o=r.locale,i=r.defaultLocale,a=r.defaultFormats;(0,r.onError)(oe('Missing locale data for locale: "'+o+'". Using default locale: "'+i+'" as fallback.')),t=O({},t,{locale:i,formats:a,messages:Se.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return Ce.reduce((function(n,r){return n[r]=ge[r].bind(null,e,t),n}),{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["now"]);return{intl:O({},e,t,{formatters:o,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n1?o-1:0),a=1;a0){var b=Math.floor(1099511627776*Math.random()).toString(16),g=(e=0,function(){return"ELEMENT-"+b+"-"+(e+=1)});m="@__"+b+"__@",y={},v={},Object.keys(u).forEach((function(e){var t=u[e];if(Object(f.isValidElement)(t)){var n=g();y[e]=m+n+m,v[n]=t}else y[e]=t}))}var w=r({id:s,description:l,defaultMessage:c},y||u),C=void 0;return C=v&&Object.keys(v).length>0?w.split(m).filter((function(e){return!!e})).map((function(e){return v[e]||e})):[w],"function"==typeof h?h.apply(void 0,j(C)):f.createElement.apply(void 0,[p,null].concat(j(C)))}}]),t}(f.Component);Fe.displayName="FormattedMessage",Fe.contextTypes={intl:G},Fe.defaultProps={values:{}};var Re=function(e){function t(e,n){x(this,t);var r=T(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return te(n),r}return P(t,e),E(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!ne(n,t))return!0;for(var r=O({},e,{values:t}),o=arguments.length,i=Array(o>1?o-1:0),a=1;a=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){for(var n=0;n=r.sd}},function(e,t,n){var r=n(202);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"h",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"l",(function(){return f})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"a",(function(){return m}));var r="#fff",o="#0061d5",i="#222",a="#4e4e4e",s="#767676",l="#909090",c="#a7a7a7",u="#e8e8e8",f="#f5b31b",d="#26c281",p="#9f3fed",h="#ed3757",m=["#2486fc","#0061d5","#003c84","#767676","#26c281","#f5b31b","#4826c2","#9f3fed","#ed3757"]},function(e,t,n){"use strict";var r=n(0),o=n(6);t.a=function(e){var t=e.children,n=e.className,i=void 0===n?"":n,a=e.baseClassName,s=e.height,l=void 0===s?32:s,c=e.title,u=e.width,f=void 0===u?32:u;return r.createElement(o.a,{className:"".concat(a," ").concat(i),height:l,title:c,viewBox:"0 0 32 32",width:f},t)}},function(e,t,n){e.exports=n(335)()},function(e,t,n){var r=n(93),o=0;e.exports=function(e){var t=++o;return r(e)+t}},,,function(e,t,n){"use strict";var r=n(5),o=n.n(r),i=n(127),a=n.n(i),s=n(8),l=n.n(s),c=n(178),u=n.n(c),f=n(247),d=n.n(f),p=n(56),h=n(1);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=n.id,o=n.clientName,i=n.language,s=n.token,c=n.version,u=n.sharedLink,f=n.sharedLinkPassword,d=n.responseInterceptor,p=n.requestInterceptor,m=n.retryableStatusCodes,y=void 0===m?[h.vd]:m,v=n.shouldRetry,b=void 0===v||v;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"retryCount",0),g(this,"errorInterceptor",(function(e){if(t.shouldRetryRequest(e)){t.retryCount+=1;var n=t.getExponentialRetryTimeoutInMs(t.retryCount);return new Promise((function(r,o){t.retryTimeout=setTimeout((function(){t.axios(e.config).then(r,o)}),n)}))}var r=l()(e,"response.data")||e;return t.responseInterceptor(r),Promise.reject(e)})),this.clientName=o,this.id=r,this.language=i,this.responseInterceptor=d||this.defaultResponseInterceptor,this.retryableStatusCodes=y,this.sharedLink=u,this.sharedLinkPassword=f,this.shouldRetry=b,this.token=s,this.version=c,this.axios=a.a.create(),this.axiosSource=a.a.CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof p&&this.axios.interceptors.request.use(p)}var t,n,r,o,i;return t=e,(n=[{key:"defaultResponseInterceptor",value:function(e){return e}},{key:"shouldRetryRequest",value:function(e){if(!this.shouldRetry||this.retryCount>=3)return!1;var t=e.response,n=e.request,r=e.config,o=l()(t,"status"),i=l()(r,"method"),a=n&&!t,s=o===h.vd,c=u()(this.retryableStatusCodes,o)&&u()(w,i);return a||s||c}},{key:"getExponentialRetryTimeoutInMs",value:function(e){var t=Math.ceil(1e3*Math.random());return 1e3*Math.pow(2,e-1)+t}},{key:"getParsedUrl",value:function(e){var t=document.createElement("a");return t.href=e,{api:e.replace("".concat(t.origin,"/2.0"),""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}},{key:"getHeaders",value:(o=regeneratorRuntime.mark((function e(t){var n,r,o,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},r=y(g({Accept:"application/json"},h.hd,"application/json"),n),this.language&&!r[h.ed]&&(r[h.ed]=this.language),this.sharedLink&&(r.BoxApi="shared_link=".concat(this.sharedLink),this.sharedLinkPassword&&(r.BoxApi="".concat(r.BoxApi,"&shared_link_password=").concat(this.sharedLinkPassword))),this.clientName&&(r[h.fd]=this.clientName),this.version&&(r[h.gd]=this.version),o=t||this.id||"",e.next=9,p.a.getWriteToken(o,this.token);case 9:return(i=e.sent)&&(r.Authorization="Bearer ".concat(i)),e.abrupt("return",r);case 12:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){v(i,n,r,a,s,"next",e)}function s(e){v(i,n,r,a,s,"throw",e)}a(void 0)}))},function(e){return i.apply(this,arguments)})},{key:"get",value:function(e){var t=this,n=e.url,r=e.id,o=e.params,i=void 0===o?{}:o,a=e.headers,s=void 0===a?{}:a;return this.getHeaders(r,s).then((function(e){return t.axios.get(n,{cancelToken:t.axiosSource.token,params:i,headers:e,parsedUrl:t.getParsedUrl(n)})}))}},{key:"post",value:function(e){var t=this,n=e.url,r=e.id,o=e.data,i=e.params,a=e.headers,s=void 0===a?{}:a,l=e.method,c=void 0===l?h.md:l;return this.getHeaders(r,s).then((function(e){return t.axios({url:n,data:o,params:i,method:c,parsedUrl:t.getParsedUrl(n),headers:e})}))}},{key:"put",value:function(e){var t=e.url,n=e.id,r=e.data,o=e.params,i=e.headers,a=void 0===i?{}:i;return this.post({id:n,url:t,data:r,params:o,headers:a,method:h.nd})}},{key:"delete",value:function(e){var t=e.url,n=e.id,r=e.data,o=void 0===r?{}:r,i=e.headers,a=void 0===i?{}:i;return this.post({id:n,url:t,data:o,headers:a,method:h.id})}},{key:"options",value:function(e){var t=this,n=e.id,r=e.url,o=e.data,i=e.headers,a=void 0===i?{}:i,s=e.successHandler,l=e.errorHandler;return this.getHeaders(n,a).then((function(e){return t.axios({url:r,data:o,method:h.ld,headers:e}).then(s).catch(l)})).catch(l)}},{key:"uploadFile",value:function(e){var t=this,n=e.id,r=e.url,o=e.data,i=e.headers,a=void 0===i?{}:i,s=e.method,l=void 0===s?h.md:s,c=e.successHandler,u=e.errorHandler,f=e.progressHandler,d=e.withIdleTimeout,p=void 0!==d&&d,m=e.idleTimeoutDuration,y=void 0===m?12e4:m,v=e.idleTimeoutHandler;return this.getHeaders(n,a).then((function(e){var n,i=f;if(p){var s=function(){t.abort(),v&&v()};n=setTimeout(s,y),i=function(e){clearTimeout(n),n=setTimeout(s,y),f(e)}}t.axios({url:r,data:o,transformRequest:function(e,t){if(delete t[h.dd],delete t[h.hd],a[h.hd]&&(t[h.hd]=a[h.hd]),e&&!(e instanceof Blob)&&e.attributes){var n=new FormData;return Object.keys(e).forEach((function(t){n.append(t,e[t])})),n}return e},method:l,headers:e,onUploadProgress:i,cancelToken:t.axiosSource.token}).then((function(e){clearTimeout(n),c(e)})).catch((function(e){clearTimeout(n),u(e)}))})).catch(u)}},{key:"abort",value:function(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=a.a.CancelToken.source())}}])&&b(t.prototype,n),r&&b(t,r),e}(),S=n(65),k=n(18),x=n(7);function E(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t5&&void 0!==u[5]?u[5]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return this.successCallback=o,this.errorCallback=i,s=this.xhr[t.toLowerCase()].bind(this.xhr),e.prev=6,e.next=9,s(O({id:Object(k.b)(n),url:r},a));case 9:l=e.sent,c=l.data,this.successHandler(c),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(6),this.errorHandler(e.t0);case 17:case"end":return e.stop()}}),e,this,[[6,14]])})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){E(o,n,r,a,s,"next",e)}function s(e){E(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e,t,n,r,o){return a.apply(this,arguments)})}])&&P(t.prototype,n),r&&P(t,r),e}();t.a=j},function(e,t,n){"use strict";var r=n(0);function o(){return(o=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,a=void 0===n?"":n,s=e.getDOMRef,l=e.isDisabled,c=void 0!==l&&l,u=e.type,f=void 0===u?"submit":u,d=i(e,["children","className","getDOMRef","isDisabled","type"]),p={};return c&&(p["aria-disabled"]=!0,p.onClick=function(e){e.preventDefault(),e.stopPropagation()}),r.createElement("button",o({className:"btn-plain ".concat(a),ref:s,type:f},d,p),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return y})),n.d(t,"i",(function(){return C})),n.d(t,"j",(function(){return w})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return p}));var r=n(177),o=n.n(r),i=n(96),a=n.n(i),s=n(1);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return e&&"object"===f(e)&&0!==Object.keys(e).length?t.filter((function(t){return!o()(e,t)})):t}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!Array.isArray(t)||0===t.length)return e;var n=c({},e);return w(e,t).forEach((function(e){a()(n,e,null)})),n}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u}));var r=n(8),o=n.n(r),i=n(1),a=/\.([0-9a-z]+)$/i;function s(e){return"".concat(i.Ve).concat(e)}function l(e){return"".concat(i.We).concat(e)}function c(e){return e.extension===i.cd}function u(e){if("string"!=typeof e)return"";var t=a.exec(e);return o()(t,"[1]","")}},function(e,t,n){"use strict";var r=n(16);n.d(t,"a",(function(){return r.a}))},function(e,t,n){var r=n(154),o=n(255),i=n(394),a=n(92),s=n(76),l=n(400),c=n(270),u=n(219),f=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=a(t,e),c||(c=t.length>1),t})),s(e,u(e),n),c&&(n=o(n,7,l));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"j",(function(){return w})),n.d(t,"k",(function(){return p})),n.d(t,"l",(function(){return y})),n.d(t,"m",(function(){return S}));var r=n(8),o=n.n(r);function i(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var a={};function s(e){return!(!e.options||!e.file)}function l(e){return!(!e.options||!e.item)}function c(e){return s(e)?e.file:e}function u(e){return l(e)?e.item:e}function f(e){return s(e)&&e.options||a}function d(e){return l(e)&&e.options||a}function p(e){var t,n=e.lastModified||e.lastModifiedDate;if(n&&("string"==typeof n||"number"==typeof n||n instanceof Date)){var r=new Date(n);if(t=r,"[object Date]"===Object.prototype.toString.call(t)&&!Number.isNaN(t.getTime()))return function(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}(r)}return null}function h(e,t,n){var r=e*Math.pow(n,2);return r>t?t:r}function m(e){return(e.webkitGetAsEntry||e.mozGetAsEntry||e.getAsEntry).call(e)}function y(e){var t=m(u(e));return!!t&&t.isDirectory}function v(e){return new Promise((function(t){e.file((function(e){t(e)}))}))}function b(e){return g.apply(this,arguments)}function g(){var e;return e=regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u(t),r=m(n)){e.next=4;break}return e.abrupt("return",null);case 4:return e.next=6,v(r);case 6:if(o=e.sent,!l(t)){e.next=9;break}return e.abrupt("return",{file:o,options:d(t)});case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})),(g=function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}).apply(this,arguments)}function w(e,t){if(!s(e))return e.name;var n=e,r=o()(n,"options.folderId",t),i=o()(n,"options.uploadInitTimestamp",Date.now()),a=n.file.webkitRelativePath||n.file.name;return"".concat(a,"_").concat(r,"_").concat(i)}function C(e,t){var n=m(u(e)).name,r=d(e),o=r.folderId,i=void 0===o?t:o,a=r.uploadInitTimestamp,s=void 0===a?Date.now():a;return"".concat(n,"_").concat(i,"_").concat(s)}function S(){var e=window.crypto||window.msCrypto;return"https:"===window.location.protocol&&e&&e.subtle}},function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(20),s=n.n(a),l=n(50),c=n(131);function u(e){return(u="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})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n0?"".concat(t.toString(),":"):"",i=r<10?"0".concat(r.toString()):r.toString(),a=n.toString();return t>0&&n<10&&(a="0".concat(a)),"".concat(o).concat(a,":").concat(i)}function w(e,t){return e instanceof Date?new Date(e.getTime()+t):e+t}function C(e){return e.getTime()-e.getTimezoneOffset()*i}function S(e){var t=new Date(function(e){if(a.test(e)){var t=e.split(a),n=t[s],r=t[l],o=t[c];if(r||(n+=".000"),t[u])return e;if(t[f])return"".concat(n+o,":00");if(t[d])return"".concat(n+o.substr(0,3),":").concat(o.substr(3));if(t[p])return e}return e}(e)),n=t.getTime(),r=t.getTimezoneOffset();return new Date(n+r*i)}},,function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(290),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;tt||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0}var l=function(e,t){var n=t.scrollMode,r=t.block,i=t.inline,l=t.boundary,c=t.skipOverflowHiddenElements,u="function"==typeof l?l:function(e){return e!==l};if(!o(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,d=[],p=e;o(p)&&u(p);){if((p=p.parentNode)===f){d.push(p);break}p===document.body&&a(p)&&!a(document.documentElement)||a(p,c)&&d.push(p)}for(var h=window.visualViewport?visualViewport.width:innerWidth,m=window.visualViewport?visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),g=b.height,w=b.width,C=b.top,S=b.right,k=b.bottom,x=b.left,E="start"===r||"nearest"===r?C:"end"===r?k:C+g/2,_="center"===i?x+w/2:"end"===i?S:x,O=[],P=0;P=0&&x>=0&&k<=m&&S<=h&&C>=M&&k<=F&&x>=R&&S<=L)return O;var N=getComputedStyle(T),D=parseInt(N.borderLeftWidth,10),z=parseInt(N.borderTopWidth,10),U=parseInt(N.borderRightWidth,10),H=parseInt(N.borderBottomWidth,10),B=0,V=0,W="offsetWidth"in T?T.offsetWidth-T.clientWidth-D-U:0,q="offsetHeight"in T?T.offsetHeight-T.clientHeight-z-H:0;if(f===T)B="start"===r?E:"end"===r?E-m:"nearest"===r?s(v,v+m,m,z,H,v+E,v+E+g,g):E-m/2,V="start"===i?_:"center"===i?_-h/2:"end"===i?_-h:s(y,y+h,h,D,U,y+_,y+_+w,w),B=Math.max(0,B+v),V=Math.max(0,V+y);else{B="start"===r?E-M-z:"end"===r?E-F+H+q:"nearest"===r?s(M,F,I,z,H+q,E,E+g,g):E-(M+I/2)+q/2,V="start"===i?_-R-D:"center"===i?_-(R+A/2)+W/2:"end"===i?_-L+U+W:s(R,L,A,D,U+W,_,_+w,w);var G=T.scrollLeft,K=T.scrollTop;E+=K-(B=Math.max(0,Math.min(K+B,T.scrollHeight-I+q))),_+=G-(V=Math.max(0,Math.min(G+V,T.scrollWidth-A+W)))}O.push({el:T,top:B,left:V})}return O};function c(e){return e===Object(e)&&0!==Object.keys(e).length}var u=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(c(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:l(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:c(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(l(e,r),r.behavior)}},f=n(1);n(585);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){if(!(e&&e instanceof HTMLElement))return!1;var t=e.tagName.toLowerCase();return"input"===t||"select"===t||"textarea"===t||"div"===t&&!!e.getAttribute("contenteditable")}function m(e){if(!(e&&e instanceof HTMLElement))return!1;var t=e.tagName.toLowerCase(),n=e.classList.contains("checkbox-pointer-target")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("checkbox-label"),r=e.classList.contains("btn-content")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("btn");return h(e)||"button"===t||"a"===t||"option"===t||n||r}function y(e){return!(0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}function v(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e)if(t){var r=e.querySelector(t);r&&"function"==typeof r.focus?r.focus():n&&e.focus()}else e.focus()}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var n=e.closest(".body, .modal, .".concat(f.Vd));u(e,function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,s=void 0===n?"":n,l=e.isDisabled,c=e.isSelected,u=e.isLoading,f=a(e,["children","className","isDisabled","isSelected","isLoading"]);return r.createElement(o.a,i({className:"btn-primary ".concat(s),isDisabled:l,isLoading:u,isSelected:c},f),t)}},function(e,t){function n(e){return(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})(e)}e.exports=function(e){return null!=e&&"object"==n(e)}},function(e,t,n){"use strict";var r=n(22);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";var r,o=n(0),i=n(4),a=n.n(i),s=n(12),l=n.n(s),c=n(44),u=n.n(c),f=n(48),d=n(19);n(416);function p(e){return(p="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})(e)}function h(e,t){for(var n=0;n3&&void 0!==v[3]?v[3]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(i=this.getCache(),a=this.getCacheKey(t),c=!o.forceFetch&&i.has(a),f=c?i.get(a):{id:t},d=Object(s.j)(f,o.fields),p={id:Object(l.b)(t),url:this.getUrl(t),headers:{"X-Rep-Hints":u.sf}},this.errorCode=u.tb,this.successCallback=n,this.errorCallback=r,!c||0!==d.length){e.next=17;break}if(n(f),d=o.fields||[],o.refreshCache){e.next=17;break}return e.abrupt("return");case 17:return d.length>0&&(p.params={fields:d.toString()}),e.prev=18,e.next=21,this.xhr.get(p);case 21:if(h=e.sent,m=h.data,!this.isDestroyed()){e.next=25;break}return e.abrupt("return");case 25:y=Object(s.i)(m,d),i.has(a)?i.merge(a,y):i.set(a,y),this.successHandler(i.get(a)),e.next=33;break;case 30:e.prev=30,e.t0=e.catch(18),this.errorHandler(e.t0);case 33:case"end":return e.stop()}}),e,this,[[18,30]])}))),function(e,t,n){return f.apply(this,arguments)})},{key:"getFileExtension",value:function(e,t,n){this.isDestroyed()||this.getFile(e,t,n,{fields:[u.oc]})}}])&&g(n.prototype,r),i&&g(n,i),t}(f.a);t.a=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(408))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(107),o=n(53),i=n(0),a=n(4),s=n.n(a),l=n(20),c=n.n(l);n(583);function u(e){return(u="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})(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,c=e.crawlerPosition,u=void 0===c?"center":c,f=e.crawlerSize,d=void 0===f?"default":f,p=e.isLoading,h=void 0!==p&&p,m=e.hideContent,y=void 0!==m&&m,v=l(e,["children","className","crawlerPosition","crawlerSize","isLoading","hideContent"]),b=i()("loading-indicator-veil",{"is-with-top-crawler":"top"===u,"is-with-center-crawler":"center"===u},y?"hide-content":"blur-content");return r.createElement("div",s({className:"loading-indicator-wrapper ".concat(o)},v),t,h&&r.createElement("div",{className:b},r.createElement(a.a,{size:d})))}},,function(e,t,n){"use strict";var r=n(0),o=n(4),i=n.n(o),a=n(20),s=n.n(a),l=n(131);function c(e){return(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})(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){for(var n=0;n3&&void 0!==p[3]?p[3]:{},s=a.fields,!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(l=this.getCache(),c=this.getCacheKey(t),this.errorCode=o.Fb,this.successCallback=n,this.errorCallback=r,!l.has(c)){e.next=13;break}if(0!==Object(i.j)(l.get(c),s).length){e.next=13;break}return n(l.get(c)),e.abrupt("return");case 13:return u={url:this.getUrl(t)},s&&(u.params={fields:s.toString()}),e.prev=15,e.next=18,this.xhr.get(u);case 18:if(f=e.sent,d=f.data,!this.isDestroyed()){e.next=22;break}return e.abrupt("return");case 22:l.has(c)?l.merge(c,d):l.set(c,d),this.successHandler(l.get(c)),e.next=29;break;case 26:e.prev=26,e.t0=e.catch(15),this.errorHandler(e.t0);case 29:case"end":return e.stop()}}),e,this,[[15,26]])})),p=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=d.apply(e,t);function i(e){s(o,n,r,i,a,"next",e)}function a(e){s(o,n,r,i,a,"throw",e)}i(void 0)}))},function(e,t,n){return p.apply(this,arguments)})}])&&l(n.prototype,r),a&&l(n,a),t}(r.a);t.a=d},function(e,t,n){"use strict";var r=n(1);function o(e){return(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})(e)}function i(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}}function s(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.fields,n=e.noPagination,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.folderSuccessHandler;if(this.isDestroyed())return Promise.reject();var o=t||a.f;this.errorCode=f.vb;var i={fields:o.toString()};return n||(i=h({},i,{direction:this.sortDirection.toLowerCase(),limit:this.limit,offset:this.offset,fields:o.toString(),sort:this.sortBy.toLowerCase()})),this.xhr.get({url:this.getUrl(this.id),params:i,headers:o.includes(f.Lc)?{"X-Rep-Hints":f.tf}:{}}).then(r).catch(this.errorHandler)}},{key:"getFolderFields",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=t,this.errorCallback=n,this.folderRequest(h({},r,{noPagination:!0}),this.folderDetailsSuccessHandler))}},{key:"getFolder",value:function(e,t,n,r,o,i,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.limit=t,this.offset=n,this.sortBy=r,this.sortDirection=o,this.successCallback=i,this.errorCallback=a,s.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.folderRequest(s))}},{key:"folderCreateRequest",value:function(e){if(this.isDestroyed())return Promise.reject();this.errorCode=f.db;var t="".concat(this.getUrl(),"?fields=").concat(a.f.toString());return this.xhr.post({url:t,data:{name:e,parent:{id:this.id}}}).then(this.createSuccessHandler).catch(this.errorHandler)}},{key:"create",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=n,this.errorCallback=r,this.folderCreateRequest(t))}}])&&m(n.prototype,r),l&&m(n,l),t}(l.a);t.a=w},function(e,t,n){"use strict";var r=n(173),o=n.n(r);function i(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.isDisabled,s=e.text,l=a(e,["children","isDisabled","text"]);return n||!s?t:r.createElement(o.a,i({text:s},l),t)}},,function(e,t,n){var r=n(157),o=n(158);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s2&&void 0!==arguments[2]?arguments[2]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.kb;var i=e.id,a=e.permissions,l=e.parent,u=e.type;if(!(i&&a&&l&&u))return r(Object(s.a)(),this.errorCode),Promise.reject();var f=l.id,d=a.can_delete;if(!d||!f)return r(Object(s.b)(),this.errorCode),Promise.reject();this.id=i,this.parentId=f,this.successCallback=t,this.errorCallback=r;var p="".concat(this.getUrl(i)).concat(u===c.Ye?"?recursive=true":"");return this.xhr.delete({url:p}).then(this.deleteSuccessHandler).catch((function(e){n.errorHandler(e)}))}},{key:"rename",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.Mb;var a=e.id,l=e.permissions;if(!a||!l)return i(Object(s.a)(),this.errorCode),Promise.reject();var u=l.can_rename;return u?(this.id=a,this.successCallback=n,this.errorCallback=i,this.xhr.put({url:"".concat(this.getUrl(a)),data:{name:t}}).then(this.renameSuccessHandler).catch((function(e){r.errorHandler(e)}))):(i(Object(s.b)(),this.errorCode),Promise.reject())}},{key:"share",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.Pb;var a=e.id,l=e.permissions;if(!a||!l)return i(Object(s.a)(),this.errorCode),Promise.reject();var u=l.can_share,f=l.can_set_share_access;return u&&f?(this.id=a,this.successCallback=n,this.errorCallback=i,this.xhr.put({url:this.getUrl(this.id),data:{shared_link:t===c.c?null:{access:t}}}).then(this.shareSuccessHandler).catch((function(e){r.errorHandler(e)}))):(i(Object(s.b)(),this.errorCode),Promise.reject())}}])&&d(n.prototype,r),i&&d(n,i),t}(l.a);t.a=v},function(e,t,n){var r=n(255),o=1,i=4;e.exports=function(e){return r(e,o|i)}},function(e,t,n){"use strict";var r=n(329).default;n(334),(t=e.exports=r).default=t},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(652),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r;this.Grid&&this.Grid.recomputeGridSize({rowIndex:o,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.disableHeader,s=t.gridClassName,l=t.gridStyle,c=t.headerHeight,u=t.headerRowRenderer,d=t.height,p=t.id,h=t.noRowsRenderer,m=t.rowClassName,y=t.rowStyle,v=t.scrollToIndex,b=t.style,g=t.width,w=this.state.scrollbarWidth,C=i?d:d-c,S="function"==typeof m?m({index:-1}):m,k="function"==typeof y?y({index:-1}):y;return this._cachedColumnStyles=[],r.Children.toArray(n).forEach((function(t,n){var r=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=f()({},r,{overflow:"hidden"})})),r.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":r.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:a()("ReactVirtualized__Table",o),id:p,role:"grid",style:b},!i&&u({className:a()("ReactVirtualized__Table__headerRow",S),columns:this._getHeaderColumns(),style:f()({height:c,overflow:"hidden",paddingRight:w,width:g},k)}),r.createElement(_.b,f()({},this.props,{autoContainerWidth:!0,className:a()("ReactVirtualized__Table__Grid",s),cellRenderer:this._createRow,columnWidth:g,columnCount:1,height:C,id:void 0,noContentRenderer:h,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:w,scrollToRow:v,style:f()({},l,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,i=e.parent,s=e.rowData,l=e.rowIndex,c=this.props.onColumnClick,u=t.props,f=u.cellDataGetter,d=u.cellRenderer,p=u.className,h=u.columnData,m=u.dataKey,y=u.id,v=d({cellData:f({columnData:h,dataKey:m,rowData:s}),columnData:h,columnIndex:n,dataKey:m,isScrolling:o,parent:i,rowData:s,rowIndex:l}),b=this._cachedColumnStyles[n],g="string"==typeof v?v:null;return r.createElement("div",{"aria-colindex":n+1,"aria-describedby":y,className:a()("ReactVirtualized__Table__rowColumn",p),key:"Row"+l+"-Col"+n,onClick:function(e){c&&c({columnData:h,dataKey:m,event:e})},role:"gridcell",style:b,title:g},v)}},{key:"_createHeader",value:function(e){var t=e.column,n=e.index,o=this.props,i=o.headerClassName,l=o.headerStyle,c=o.onHeaderClick,u=o.sort,d=o.sortBy,p=o.sortDirection,h=t.props,m=h.columnData,y=h.dataKey,v=h.defaultSortDirection,b=h.disableSort,g=h.headerRenderer,w=h.id,C=h.label,S=!b&&u,k=a()("ReactVirtualized__Table__headerColumn",i,t.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:S}),x=this._getFlexStyleForColumn(t,f()({},l,t.props.headerStyle)),E=g({columnData:m,dataKey:y,disableSort:b,label:C,sortBy:d,sortDirection:p}),_=void 0,O=void 0,P=void 0,T=void 0,j=void 0;if(S||c){var I=d!==y?v:p===s.DESC?s.ASC:s.DESC,A=function(e){S&&u({defaultSortDirection:v,event:e,sortBy:y,sortDirection:I}),c&&c({columnData:m,dataKey:y,event:e})};j=t.props["aria-label"]||C||y,T="none",P=0,_=A,O=function(e){"Enter"!==e.key&&" "!==e.key||A(e)}}return d===y&&(T=p===s.ASC?"ascending":"descending"),r.createElement("div",{"aria-label":j,"aria-sort":T,className:k,id:w,key:"Header-Col"+n,onClick:_,onKeyDown:O,role:"columnheader",style:x,tabIndex:P},E)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,i=e.key,s=e.parent,l=e.style,c=this.props,u=c.children,d=c.onRowClick,p=c.onRowDoubleClick,h=c.onRowRightClick,m=c.onRowMouseOver,y=c.onRowMouseOut,v=c.rowClassName,b=c.rowGetter,g=c.rowRenderer,w=c.rowStyle,C=this.state.scrollbarWidth,S="function"==typeof v?v({index:n}):v,k="function"==typeof w?w({index:n}):w,x=b({index:n}),E=r.Children.toArray(u).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:s,rowData:x,rowIndex:n,scrollbarWidth:C})})),_=a()("ReactVirtualized__Table__row",S),O=f()({},l,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:C},k);return g({className:_,columns:E,index:n,isScrolling:o,key:i,onRowClick:d,onRowDoubleClick:p,onRowRightClick:h,onRowMouseOver:m,onRowMouseOut:y,rowData:x,style:O})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.props.flexGrow+" "+e.props.flexShrink+" "+e.props.width+"px",r=f()({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(r.maxWidth=e.props.maxWidth),e.props.minWidth&&(r.minWidth=e.props.minWidth),r}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:r.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,r=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:r})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,r=e.rowStartIndex,o=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:r,stopIndex:o})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){if(this.Grid){var e=Object(E.findDOMNode)(this.Grid),t=e.clientWidth||0,n=(e.offsetWidth||0)-t;this.setState({scrollbarWidth:n})}}}]),t}(r.PureComponent);O.defaultProps={disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:_.a,overscanRowCount:10,rowRenderer:d,headerRowRenderer:o,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}};var P=O;O.propTypes={},n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return P}));t.c=P},function(e,t,n){var r=n(34),o=n(300),i=n(395),a=n(93);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(398);e.exports=function(e){return null==e?"":r(e)}},,function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=0,i=n;return new Promise((function(n,a){function s(l){setTimeout((function(){o+=1,new Promise((function(t,n){e(t,n,a)})).then(n).catch((function(e){o");var p=d[0],h=d[1],m={id:this.menuButtonID,key:this.menuButtonID,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,"aria-haspopup":"true","aria-expanded":u?"true":"false"};u&&(m["aria-controls"]=this.menuID);var y={id:this.menuID,key:this.menuID,initialFocusIndex:f,onClose:this.handleMenuClose,"aria-labelledby":this.menuButtonID},v="top left",b="bottom left";o&&(v="top right",b="bottom right");var g=[];a&&g.push({to:"scrollParent",attachment:"together"}),s&&g.push({to:"window",attachment:"together"});var w=t instanceof HTMLElement?t:document.body;return r.createElement(i.a,{attachment:v,bodyElement:w,className:l,classPrefix:"dropdown-menu",constraints:g,enabled:u,targetAttachment:b},r.cloneElement(p,m),u?r.cloneElement(h,y):null)}}])&&u(n.prototype,o),a&&u(n,a),t}(r.Component);h(m,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!1,isRightAligned:!1}),t.a=m},function(e,t,n){"use strict";var r=n(0),o=n(20),i=n.n(o),a=n(4),s=n.n(a);n(501);function l(e){return(l="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})(e)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){for(var n=0;n li > ").concat(m),v="ul.submenu > ".concat(m,", ul.submenu > li > ").concat(m);function b(e){e.stopPropagation(),e.preventDefault()}var g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,f(t).call(this,e)),h(d(n),"setInitialFocusIndex",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props,t=e.initialFocusIndex,r=e.isHidden;r||void 0===t||("number"==typeof t?setTimeout((function(){n.setFocus(t)}),0):null===t&&setTimeout((function(){n.menuEl&&n.menuEl.focus()}),0))})),h(d(n),"setMenuItemEls",(function(){var e=n.props.isSubmenu?v:y;n.menuItemEls=n.menuEl?[].slice.call(n.menuEl.querySelectorAll(e)):[]})),h(d(n),"getMenuItemElFromEventTarget",(function(e){for(var t=null,r=-1,o=0;o=t?0:e<0?t-1:e,n.menuItemEls[n.focusIndex].focus()}})),h(d(n),"focusFirstItem",(function(){n.setFocus(0)})),h(d(n),"focusLastItem",(function(){n.setFocus(-1)})),h(d(n),"focusNextItem",(function(){n.setFocus(n.focusIndex+1)})),h(d(n),"focusPreviousItem",(function(){n.setFocus(n.focusIndex-1)})),h(d(n),"fireOnCloseHandler",(function(e,t){var r=n.props.onClose;r&&r(e,t)})),h(d(n),"handleClick",(function(e){(e.target instanceof Node?n.getMenuItemElFromEventTarget(e.target):{}).menuItemEl&&n.fireOnCloseHandler(!1,e)})),h(d(n),"handleKeyDown",(function(e){var t=n.props,r=t.isSubmenu,o=t.initialFocusIndex;switch(e.key){case"ArrowDown":b(e),null!==o||n.keyboardPressed?n.focusNextItem():n.focusFirstItem();break;case"ArrowUp":b(e),n.focusPreviousItem();break;case"ArrowLeft":if(!r)return;b(e),n.fireOnCloseHandler(!0,e);break;case"Home":case"PageUp":b(e),n.focusFirstItem();break;case"End":case"PageDown":b(e),n.focusLastItem();break;case"Escape":b(e),n.fireOnCloseHandler(!0,e);break;case"Tab":n.fireOnCloseHandler(!0,e);break;case" ":case"Enter":b(e),e.target instanceof HTMLElement&&e.target.click()}n.keyboardPressed=!0})),n.focusIndex=0,n.menuEl=null,n.menuItemEls=[],n}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.setMenuItemEls(),this.setInitialFocusIndex()}},{key:"componentDidUpdate",value:function(e){var t=e.isHidden,n=e.children,o=this.props,i=o.children,a=o.isHidden;if(o.isSubmenu&&t&&!a&&(this.setMenuItemEls(),this.setInitialFocusIndex(this.props)),r.Children.toArray(n).length!==r.Children.toArray(i).length){var s=this.menuItemEls[this.focusIndex];this.setMenuItemEls();var l=this.getMenuItemElFromEventTarget(s).menuIndex;this.setFocus(l)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,a=t.isHidden,l=t.setRef,u=t.shouldOutlineFocus,f=c(t,["children","className","isHidden","setRef","shouldOutlineFocus"]),d=i()(f,["onClose","initialFocusIndex","isSubmenu"]);return d.className=s()("aria-menu",o,{"is-hidden":a,"should-outline-focus":u}),d.ref=function(t){e.menuEl=t,l&&l(t)},d.role="menu",d.tabIndex=-1,d.onClick=this.handleClick,d.onKeyDown=this.handleKeyDown,r.createElement("ul",d,n)}}])&&u(n.prototype,o),a&&u(n,a),t}(r.Component);h(g,"defaultProps",{className:"",isSubmenu:!1,isHidden:!1}),t.a=g},,,function(e,t,n){var r=n(213),o=n(374),i=n(89);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(123),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(2);t.a=function(e){var t=e.language,n=e.messages,a=e.children;if(!!t&&!!n){var s=t&&t.substr(0,t.indexOf("-"));return o.a.createElement(i.e,{locale:s,messages:n},a)}return r.Children.only(a)}},function(e,t,n){"use strict";var r=n(0),o=n(142);n(504);t.a=function(e){var t=e.children;return r.createElement("span",{className:"menu-toggle"},t,r.createElement(o.a,{className:"toggle-arrow",width:7}))}},function(e,t,n){e.exports={default:n(626),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(645)),o=a(n(649)),i=a(n(516));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},function(e,t,n){var r=n(340),o=n(341),i=n(342),a=n(343),s=n(344);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e=t||n<0||v&&e-m>=f}function C(){var e=o();if(w(e))return S(e);p=setTimeout(C,function(e){var n=t-(e-h);return v?l(n,f-(e-m)):n}(e))}function S(e){return p=void 0,b&&c?g(e):(c=u=void 0,d)}function k(){var e=o(),n=w(e);if(c=arguments,u=this,h=e,n){if(void 0===p)return function(e){return m=e,p=setTimeout(C,t),y?g(e):d}(h);if(v)return clearTimeout(p),p=setTimeout(C,t),g(h)}return void 0===p&&(p=setTimeout(C,t)),d}return t=i(t)||0,r(n)&&(y=!!n.leading,f=(v="maxWait"in n)?s(i(n.maxWait)||0,t):f,b="trailing"in n?!!n.trailing:b),k.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=u=p=void 0},k.flush=function(){return void 0===p?d:S(o())},k}},,function(e,t,n){"use strict";var r=n(0),o=n(30);function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=function(t){var n=t.isLoading,a=void 0!==n&&n,s=t.loadingIndicatorProps,l=void 0===s?{}:s,c=i(t,["isLoading","loadingIndicatorProps"]);return a?r.createElement(o.a,l):r.createElement(e,c)};return t.displayName="Loadable".concat(e.displayName||e.name||"Component"),t}},function(e,t,n){"use strict";var r,o=n(0),i=n(12),a=n.n(i),s=n(44),l=n.n(s);n(410);function c(e){return(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})(e)}function u(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){(function(e){function r(e){return(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})(e)}var o=n(37),i=n(372),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,l=s&&s.exports===a?o.Buffer:void 0,c=(l?l.isBuffer:void 0)||i;e.exports=c}).call(this,n(103)(e))},function(e,t,n){var r=n(382),o=n(155),i=n(383),a=n(384),s=n(267),l=n(54),c=n(211),u=c(r),f=c(o),d=c(i),p=c(a),h=c(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(124),o=n(514),i=n(468),a=Object.defineProperty;t.f=n(138)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)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){function n(e){return(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})(e)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(186)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},,,function(e,t,n){"use strict";var r=n(0),o=n(10);function i(){return(i=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];if(void 0===r||t){var n=e.MediaSource;r=!!n&&"function"==typeof n.isTypeSupported&&n.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return r}}],(i=null)&&n(o.prototype,i),a&&n(o,a),t}();t.a=o}).call(this,n(42))},function(e,t,n){var r=n(461);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){"use strict";var r=n(65);function o(e,t){for(var n=0;n-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){function r(e){return(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})(e)}var o=n(210),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l}).call(this,n(103)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(380),o=n(216),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l}).call(this,n(271))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(136),o=n(276);e.exports=n(138)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},,,function(e,t,n){"use strict";var r=n(0);n(590);function o(){return(o=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a=function(){};t.a=function(e){var t=e.isDisabled,n=e.isSelected,s=void 0!==n&&n,l=e.description,c=e.hideLabel,u=void 0!==c&&c,f=e.label,d=e.name,p=e.value,h=i(e,["isDisabled","isSelected","description","hideLabel","label","name","value"]);return r.createElement("div",{className:"radio-container"},r.createElement("label",{className:"radio-label"},r.createElement("input",o({checked:s,disabled:t,name:d,onChange:a,type:"radio",value:p},h)),r.createElement("span",null),r.createElement("span",{className:u?"accessibility-hidden":""},f)),l?r.createElement("div",{className:"radio-description"},l):null)}},function(e,t,n){var r=n(451),o=n(457)((function(e,t,n){r(e,t,n)}));e.exports=o},,function(e,t,n){"use strict";var r=n(0),o=n(6);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000000":i,s=e.height,l=void 0===s?24:s,c=e.title,u=e.width,f=void 0===u?24:u;return r.createElement(o.a,{className:"icon-info ".concat(n),height:l,title:c,viewBox:"-603 389 16 16",width:f},r.createElement("path",{className:"fill-color",d:"M-595 403c5.5 0 8-7.1 3.9-10.6-4.2-3.6-10.8.3-9.8 5.7.5 2.8 3 4.9 5.9 4.9zm.9-6.7v3.7h-1.4v-3.7h1.4zm.1-2.2c0 1-1.7 1.1-1.7 0 .1-1.1 1.7-1.1 1.7 0z",fill:a,fillRule:"evenodd"}))}},,function(e,t,n){var r=n(418),o=n(306);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(437),o=n(89),i=n(440),a=n(308),s=n(441),l=Math.max;e.exports=function(e,t,n,c){e=o(e)?e:s(e),n=n&&!c?a(n):0;var u=e.length;return n<0&&(n=l(u+n,0)),i(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&r(e,t,n)>-1}},function(e,t,n){"use strict";var r=n(0),o=n(6);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#F7931D":i,s=e.height,l=void 0===s?26:s,c=e.title,u=e.width,f=void 0===u?26:u;return r.createElement(o.a,{className:"icon-alert-default ".concat(n),title:c,height:l,width:f,viewBox:"0 0 26 26"},r.createElement("defs",null,r.createElement("circle",{id:"b",cx:"8",cy:"8",r:"8"}),r.createElement("filter",{x:"-46.9%",y:"-46.9%",width:"193.8%",height:"193.8%",filterUnits:"objectBoundingBox",id:"a"},r.createElement("feMorphology",{radius:".5",operator:"dilate",in:"SourceAlpha",result:"shadowSpreadOuter1"}),r.createElement("feOffset",{in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),r.createElement("feGaussianBlur",{stdDeviation:"2",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),r.createElement("feColorMatrix",{values:"0 0 0 0 0.733285502 0 0 0 0 0.733285502 0 0 0 0 0.733285502 0 0 0 0.5 0",in:"shadowBlurOuter1"}))),r.createElement("g",{transform:"translate(5 5)",fill:"none",fillRule:"evenodd"},r.createElement("use",{fill:"#000",filter:"url(#a)",xlinkHref:"#b"}),r.createElement("use",{fill:a,xlinkHref:"#b"}),r.createElement("path",{d:"M8.047 4.706v4.111",stroke:"#FFF",strokeWidth:"1.412",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("circle",{fill:"#FFF",cx:"8.047",cy:"11.294",r:"1"})))}},function(e,t,n){var r=n(116),o=n(345),i=n(346),a=n(347),s=n(348),l=n(349);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},,function(e,t,n){var r=n(356),o=n(363),i=n(365),a=n(366),s=n(367);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t>2]|0;s=r[t+324>>2]|0;c=r[t+328>>2]|0;f=r[t+332>>2]|0;p=r[t+336>>2]|0;for(n=0;(n|0)<(e|0);n=n+64|0){a=i;l=s;u=c;d=f;h=p;for(o=0;(o|0)<64;o=o+4|0){y=r[n+o>>2]|0;m=((i<<5|i>>>27)+(s&c|~s&f)|0)+((y+p|0)+1518500249|0)|0;p=f;f=c;c=s<<30|s>>>2;s=i;i=m;r[e+o>>2]=y}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){y=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;m=((i<<5|i>>>27)+(s&c|~s&f)|0)+((y+p|0)+1518500249|0)|0;p=f;f=c;c=s<<30|s>>>2;s=i;i=m;r[o>>2]=y}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){y=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;m=((i<<5|i>>>27)+(s^c^f)|0)+((y+p|0)+1859775393|0)|0;p=f;f=c;c=s<<30|s>>>2;s=i;i=m;r[o>>2]=y}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){y=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;m=((i<<5|i>>>27)+(s&c|s&f|c&f)|0)+((y+p|0)-1894007588|0)|0;p=f;f=c;c=s<<30|s>>>2;s=i;i=m;r[o>>2]=y}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){y=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;m=((i<<5|i>>>27)+(s^c^f)|0)+((y+p|0)-899497514|0)|0;p=f;f=c;c=s<<30|s>>>2;s=i;i=m;r[o>>2]=y}i=i+a|0;s=s+l|0;c=c+u|0;f=f+d|0;p=p+h|0}r[t+320>>2]=i;r[t+324>>2]=s;r[t+328>>2]=c;r[t+332>>2]=f;r[t+336>>2]=p}return{hash:o}}var p=function(){var e=new Blob(["const RushaCore = ".concat(d.toString()),";\n",'function Rusha(e){for(var r=function(e){if("string"==typeof e)return"string";if(e instanceof Array)return"array";if("undefined"!=typeof global&&global.Buffer&&global.Buffer.isBuffer(e))return"buffer";if(e instanceof ArrayBuffer)return"arraybuffer";if(e.buffer instanceof ArrayBuffer)return"view";if(e instanceof Blob)return"blob";throw new Error("Unsupported data type.")},n={fill:0},t=function(e){for(e+=9;e%64>0;e+=1);return e},a=function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s[n+3];case 1:e[a+1-(i<<1)|0]=s[n+2];case 2:e[a+2-(i<<1)|0]=s[n+1];case 3:e[a+3-(i<<1)|0]=s[n]}if(!(t>2|0]=s[n+f]<<24|s[n+f+1]<<16|s[n+f+2]<<8|s[n+f+3];switch(h){case 3:e[a+u+1|0]=s[n+u+2];case 2:e[a+u+2|0]=s[n+u+1];case 1:e[a+u+3|0]=s[n+u]}}},f=function(e){switch(r(e)){case"string":return function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s.charCodeAt(n+3);case 1:e[a+1-(i<<1)|0]=s.charCodeAt(n+2);case 2:e[a+2-(i<<1)|0]=s.charCodeAt(n+1);case 3:e[a+3-(i<<1)|0]=s.charCodeAt(n)}if(!(t>2]=s.charCodeAt(n+f)<<24|s.charCodeAt(n+f+1)<<16|s.charCodeAt(n+f+2)<<8|s.charCodeAt(n+f+3);switch(h){case 3:e[a+u+1|0]=s.charCodeAt(n+u+2);case 2:e[a+u+2|0]=s.charCodeAt(n+u+1);case 1:e[a+u+3|0]=s.charCodeAt(n+u)}}}.bind(e);case"array":case"buffer":return a.bind(e);case"arraybuffer":return a.bind(new Uint8Array(e));case"view":return a.bind(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));case"blob":return function(e,r,n,t,a){var f,s=a%4,i=(t+s)%4,h=t-i,u=new Uint8Array(reader.readAsArrayBuffer(this.slice(n,n+t)));switch(s){case 0:e[a]=u[3];case 1:e[a+1-(s<<1)|0]=u[2];case 2:e[a+2-(s<<1)|0]=u[1];case 3:e[a+3-(s<<1)|0]=u[0]}if(!(t>2|0]=u[f]<<24|u[f+1]<<16|u[f+2]<<8|u[f+3];switch(i){case 3:e[a+h+1|0]=u[h+2];case 2:e[a+h+2|0]=u[h+1];case 1:e[a+h+3|0]=u[h]}}}.bind(e)}},s=new Array(256),i=0;i<256;i++)s[i]=(i<16?"0":"")+i.toString(16);var h=function(e){for(var r=new Uint8Array(e),n=new Array(e.byteLength),t=0;t0)throw new Error("Chunk size must be a multiple of 128 bit");n.offset=0,n.maxChunkLen=e,n.padMaxChunkLen=t(e),n.heap=new ArrayBuffer(function(e){var r;if(e<=65536)return 65536;if(e<16777216)for(r=1;r>2);return function(e,r){var n=new Uint8Array(e.buffer),t=r%4,a=r-t;switch(t){case 0:n[a+3]=0;case 1:n[a+2]=0;case 2:n[a+1]=0;case 3:n[a+0]=0}for(var f=1+(r>>2);f>2]|=128<<24-(f%4<<3),a[14+(2+(f>>2)&-16)]=s/(1<<29)|0,a[15+(2+(f>>2)&-16)]=s<<3,i},o=function(e,r,t,a){f(e)(n.h8,n.h32,r,t,a||0)},d=function(e,r,t,a,f){var s=t;o(e,r,t),f&&(s=c(t,a)),n.core.hash(s,n.padMaxChunkLen)},y=function(e,r){var n=new Int32Array(e,r+320,5),t=new Int32Array(5),a=new DataView(t.buffer);return a.setInt32(0,n[0],!1),a.setInt32(4,n[1],!1),a.setInt32(8,n[2],!1),a.setInt32(12,n[3],!1),a.setInt32(16,n[4],!1),t},w=this.rawDigest=function(e){var r=e.byteLength||e.length||e.size||0;u(n.heap,n.padMaxChunkLen);var t=0,a=n.maxChunkLen;for(t=0;r>t+a;t+=a)d(e,t,a,r,!1);return d(e,t,r-t,r,!0),y(n.heap,n.padMaxChunkLen)};this.digest=this.digestFromString=this.digestFromBuffer=this.digestFromArrayBuffer=function(e){return h(w(e).buffer)},this.resetState=function(){return u(n.heap,n.padMaxChunkLen),this},this.append=function(e){var r,t=0,a=e.byteLength||e.length||e.size||0,f=n.offset%n.maxChunkLen;for(n.offset+=a;t=O)n.errorCallback(t);else if(t&&409===t.status){if(n.overwrite){var o=t.context_info.conflicts.id;!n.fileId&&o&&(n.fileId=o),n.makePreflightRequest()}else{var i=n.fileName.substr(n.fileName.lastIndexOf("."))||"";n.fileName="".concat(n.fileName.substr(0,n.fileName.lastIndexOf(".")),"-").concat(Date.now()).concat(i),n.makePreflightRequest()}n.retryCount+=1}else if(!t||429!==t.status&&"too_many_requests"!==t.code)t&&(t.status||"Failed to fetch"===t.message)&&"function"==typeof n.errorCallback?n.errorCallback(t):(n.retryTimeout=setTimeout(n.makePreflightRequest,Math.pow(2,n.retryCount)*h.Id),n.retryCount+=1);else{var a=h.U;if(t.headers){var s=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);Number.isNaN(s)||(a=s*h.Id)}n.retryTimeout=setTimeout(n.makePreflightRequest,a),n.retryCount+=1}}})),n}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(t,e),n=t,(r=[{key:"readFile",value:function(e,t){return new Promise((function(n,r){e.readAsArrayBuffer(t),e.onload=function(){n({buffer:e.result,readCompleteTimestamp:Date.now()})},e.onerror=r}))}}])&&S(n.prototype,r),o&&S(n,o),t}(w.a);function T(e){return(T="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})(e)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var F={digestReadahead:5,initialRetryDelayMs:5e3,maxRetryDelayMs:6e4,parallelism:4,requestTimeoutMs:12e4,retries:5},R=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?A(e):t}(this,I(t).call(this,function(e){for(var t=1;t=b.config.retries)){e.next=11;break}return b.onError(t,i),e.abrupt("return");case 11:a=Object(l.a)(b.config.initialRetryDelayMs,b.config.maxRetryDelayMs,b.numUploadRetriesPerformed),b.numUploadRetriesPerformed+=1,b.consoleLog("Retrying uploading part ".concat(b.toJSON()," in ").concat(a," ms")),b.retryTimeout=setTimeout(b.retryUpload,a);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),W(B(b),"retryUpload",z(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b.isDestroyed()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,b.listParts(b.index,1);case 5:if(!(t=e.sent)||1!==t.length||t[0].offset!==b.offset||!t[0].part_id){e.next=11;break}return b.consoleLog("Part ".concat(b.toJSON()," is available on server. Not re-uploading.")),b.id=t[0].part_id,b.uploadSuccessHandler({data:{part:t[0]}}),e.abrupt("return");case 11:throw b.consoleLog("Part ".concat(b.toJSON()," is not available on server. Re-uploading.")),new Error("Part not found on the server");case 15:e.prev=15,e.t0=e.catch(2),(n=e.t0.response)&&n.status&&b.consoleLog("Error ".concat(n.status," while listing part ").concat(b.toJSON(),". Re-uploading.")),b.numUploadRetriesPerformed+=1,b.upload();case 21:case"end":return e.stop()}}),e,null,[[2,15]])})))),W(B(b),"listParts",function(){var e=z(regeneratorRuntime.mark((function e(t,n){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={offset:t,limit:n},o=g(b.sessionEndpoints.listParts,r),e.next=4,b.xhr.get({url:o});case 4:return i=e.sent,e.abrupt("return",i.data.entries);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),b.index=n,b.numDigestRetriesPerformed=0,b.numUploadRetriesPerformed=0,b.offset=r,b.partSize=o,b.fileSize=a,b.state=q,b.timing={},b.uploadedBytes=0,b.data={},b.config=f,b.rangeEnd=r+o-1,b.rangeEnd>a-1&&(b.rangeEnd=a-1),b.onSuccess=p||i.a,b.onError=v||i.a,b.onProgress=m||i.a,b.getNumPartsUploading=d,b}var n,r,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(t,e),n=t,(r=[{key:"cancel",value:function(){clearTimeout(this.retryTimeout),this.blob=null,this.data={},this.destroy()}}])&&U(n.prototype,r),o&&U(n,o),t}(R);function Z(e){return(Z="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})(e)}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t=500&&s.status<600)){e.next=20;break}return r.createSessionErrorHandler(e.t0),e.abrupt("return");case 20:if(!s||409!==s.status||"session_conflict"!==s.code){e.next=23;break}return r.createSessionSuccessHandler(s.context_info.session),e.abrupt("return");case 23:if(!(s&&s.status===h.qd&&s.code===h.bc||s.status===h.qd&&"access_denied_insufficient_permissions"===s.code)){e.next=26;break}return r.errorCallback(s),e.abrupt("return");case 26:if(!s||409!==s.status){e.next=30;break}return r.resolveConflict(s),r.createSessionRetry(),e.abrupt("return");case 30:r.sessionErrorHandler(e.t0,ie,JSON.stringify(e.t0));case 31:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(t){return e.apply(this,arguments)}}()),oe(ne(r),"createSessionErrorHandler",(function(e){r.isDestroyed()||(r.createSessionNumRetriesPerformed=r.config.retries)r.sessionErrorHandler(null,fe,JSON.stringify(e));else{var n=Object(l.a)(r.config.initialRetryDelayMs,r.config.maxRetryDelayMs,t.numDigestRetriesPerformed);t.numDigestRetriesPerformed+=1,r.consoleLog("Retrying digest work for part ".concat(JSON.stringify(t)," in ").concat(n," ms")),setTimeout((function(){r.computeDigestForPart(t)}),n)}}else r.sessionErrorHandler(null,ue,JSON.stringify(e))})),oe(ne(r),"commitSession",(function(){if(!r.isDestroyed()){var e={totalPartReadTime:0,totalPartDigestTime:0,totalFileDigestTime:0,totalPartUploadTime:0},t={parts:r.parts.map((function(t){return e.totalPartReadTime+=t.timing.readTime,e.totalPartDigestTime+=t.timing.subtleCryptoTime,e.totalFileDigestTime+=t.timing.fileDigestTime,e.totalPartUploadTime+=t.timing.uploadTime,t.getPart()})).sort((function(e,t){return e.offset-t.offset})),attributes:{}},n=Object(l.k)(r.file);n&&(t.attributes.content_modified_at=n);var o={avg_part_read_time:Math.round(e.totalPartReadTime/r.parts.length),avg_part_digest_time:Math.round(e.totalPartDigestTime/r.parts.length),avg_file_digest_time:Math.round(e.totalFileDigestTime/r.parts.length),avg_part_upload_time:Math.round(e.totalPartUploadTime/r.parts.length)},i=r.fileSha1,a={Digest:"sha=".concat(i),"X-Box-Client-Event-Info":JSON.stringify(o)};r.xhr.post({url:r.sessionEndpoints.commit,data:t,headers:a}).then(r.commitSessionSuccessHandler).catch(r.commitSessionErrorHandler)}})),oe(ne(r),"commitSessionSuccessHandler",(function(e){if(!r.isDestroyed()){var t=e.status,n=e.data;if(202!==t){var o=n.entries;!o&&n.id&&(o=[n]),r.destroy(),r.successCallback&&o&&r.successCallback(o)}else r.commitSessionRetry(e)}})),oe(ne(r),"commitSessionErrorHandler",(function(e){if(!r.isDestroyed()){var t=e.response;if(t)return r.commitRetryCount>=r.config.retries?(r.consoleLog("Too many commit failures, failing upload"),void r.sessionErrorHandler(e,le,JSON.stringify(e))):void r.commitSessionRetry(t);r.consoleError(e)}})),oe(ne(r),"getNumPartsUploading",(function(){return r.numPartsUploading})),r.parts=[],r.options=e,r.fileSha1=null,r.totalUploadedBytes=0,r.numPartsNotStarted=0,r.numPartsDigestComputing=0,r.numPartsDigestReady=0,r.numPartsUploading=0,r.numPartsUploaded=0,r.firstUnuploadedPartIndex=0,r.createSessionNumRetriesPerformed=0,r.partSize=0,r.commitRetryCount=0,r.clientId=null,r.isResumableUploadsEnabled=!1,r}var n,r,o,a,u,d;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&re(e,t)}(t,e),n=t,(r=[{key:"reset",value:function(){this.parts=[],this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0}},{key:"setFileInfo",value:function(e){var t=e.file,n=e.folderId,r=e.errorCallback,o=e.progressCallback,a=e.successCallback,s=e.overwrite,l=void 0===s||s,c=e.fileId;this.file=t,this.fileName=this.file.name,this.folderId=n,this.errorCallback=r||i.a,this.progressCallback=o||i.a,this.successCallback=a||i.a,this.overwrite=l,this.fileId=c}},{key:"upload",value:function(e){var t=e.file,n=e.folderId,r=e.errorCallback,o=e.progressCallback,a=e.successCallback,s=e.overwrite,c=void 0===s||s,u=e.fileId;this.file=t,this.fileName=this.file.name,this.initialFileSize=this.file.size,this.initialFileLastModified=Object(l.k)(this.file),this.folderId=n,this.errorCallback=r||i.a,this.progressCallback=o||i.a,this.successCallback=a||i.a,this.sha1Worker=p(),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.overwrite=c,this.fileId=u,this.makePreflightRequest()}},{key:"createSessionRetry",value:function(){var e=Object(l.a)(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.createSessionNumRetriesPerformed);this.createSessionNumRetriesPerformed+=1,this.consoleLog("Retrying create session in ".concat(e," ms")),this.createSessionTimeout=setTimeout(this.makePreflightRequest,e)}},{key:"createSessionSuccessHandler",value:function(e){if(!this.isDestroyed()){var t=e.id,n=e.part_size,r=e.session_endpoints;this.sessionId=t,this.partSize=n,this.sessionEndpoints=Y({},this.sessionEndpoints,{uploadPart:r.upload_part,listParts:r.list_parts,commit:r.commit,abort:r.abort,logEvent:r.log_event}),this.populateParts(),this.processNextParts()}}},{key:"resume",value:function(e){var t=e.file,n=e.folderId,r=e.errorCallback,o=e.progressCallback,i=e.sessionId,a=e.successCallback,s=e.overwrite,l=void 0===s||s,c=e.fileId;this.setFileInfo({file:t,folderId:n,errorCallback:r,progressCallback:o,successCallback:a,overwrite:l,fileId:c}),this.sessionId=i,this.sha1Worker||(this.sha1Worker=p()),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.getSessionInfo()}},{key:"getSessionSuccessHandler",value:function(e){var t=e.part_size,n=e.session_endpoints;this.partSize=t,this.sessionEndpoints=Y({},this.sessionEndpoints,{uploadPart:n.upload_part,listParts:n.list_parts,commit:n.commit,abort:n.abort,logEvent:n.log_event});for(var r=this.firstUnuploadedPartIndex;this.numPartsUploading>0;){var o=this.parts[r];o&&o.state===G&&(o.state=1,o.numUploadRetriesPerformed=0,o.timing={},o.uploadedBytes=0,this.numPartsUploading-=1,this.numPartsDigestReady+=1),r+=1}this.processNextParts()}},{key:"getSessionErrorHandler",value:function(e){if(!this.isDestroyed()){var t=this.getErrorResponse(e);if(this.numResumeRetries>this.config.retries)this.errorCallback(t);else if(t&&429===t.status){var n=h.U;if(t.headers){var r=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);s()(r)||(n=r*h.Id)}this.retryTimeout=setTimeout(this.getSessionInfo,n),this.numResumeRetries+=1}else if(t&&t.status>=500)this.retryTimeout=setTimeout(this.getSessionInfo,Math.pow(2,this.numResumeRetries)*h.Id),this.numResumeRetries+=1;else{this.parts.forEach((function(e){e.cancel()})),this.reset(),clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession();var o={file:this.file,folderId:this.folderId,errorCallback:this.errorCallback,progressCallback:this.progressCallback,successCallback:this.successCallback,overwrite:this.overwrite,fileId:this.fileId};this.upload(o)}}}},{key:"sessionErrorHandler",value:(d=J(regeneratorRuntime.mark((function e(t,n,r){var o,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isResumableUploadsEnabled||this.destroy(),o=this.getErrorResponse(t),this.errorCallback(o),e.prev=3,this.sessionEndpoints.logEvent){e.next=6;break}throw new Error("logEvent endpoint not found");case 6:return e.next=8,Object(c.a)((function(e,t){i.logEvent(n,r).then(e).catch(t)}),this.config.retries,this.config.initialRetryDelayMs);case 8:this.isResumableUploadsEnabled||this.abortSession(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),this.isResumableUploadsEnabled||this.abortSession();case 14:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(e,t,n){return d.apply(this,arguments)})},{key:"abortSession",value:function(){var e=this;this.sha1Worker&&this.sha1Worker.terminate(),this.sessionEndpoints.abort&&this.sessionId&&this.xhr.delete({url:this.sessionEndpoints.abort}).then((function(){e.sessionId=""}))}},{key:"shouldComputeDigestForNextPart",value:function(){return!this.isDestroyed()&&0===this.numPartsDigestComputing&&this.numPartsNotStarted>0&&this.numPartsDigestReady0}},{key:"updateFirstUnuploadedPartIndex",value:function(){for(var e=this.parts[this.firstUnuploadedPartIndex];e&&e.state===K;)this.firstUnuploadedPartIndex+=1,e=this.parts[this.firstUnuploadedPartIndex]}},{key:"populateParts",value:function(){this.numPartsNotStarted=Math.ceil(this.file.size/this.partSize);for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{};if(this.isDestroyed())return Promise.reject();var t=e.fields,n=t||Oe.f;return this.errorCode=h.Ob,this.xhr.get({url:this.getUrl(),params:{offset:this.offset,query:this.query,ancestor_folder_ids:this.id,limit:this.limit,fields:n.toString()},headers:n.includes(h.Lc)?{"X-Rep-Hints":h.tf}:{}}).then(this.searchSuccessHandler).catch(this.searchErrorHandler)}},{key:"search",value:function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};this.isDestroyed()||(this.limit=n,this.offset=r,this.query=t,this.id=e,this.key=this.getCacheKey(e,this.getEncodedQuery(this.query)),this.successCallback=o,this.errorCallback=i,a.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.searchRequest(a))}}])&&Ae(n.prototype,r),o&&Ae(n,o),t}(w.a);function De(e){return(De="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})(e)}function ze(){return(ze=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};if(this.isDestroyed())return Promise.reject();var t=e.fields,n=t||Oe.f;return this.errorCode=h.zb,this.xhr.get({url:this.getUrl(),params:{fields:n.toString()},headers:n.includes(h.Lc)?{"X-Rep-Hints":h.tf}:{}}).then(this.recentsSuccessHandler).catch(this.recentsErrorHandler)}},{key:"recents",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!this.isDestroyed()){this.id=e,this.successCallback=t,this.errorCallback=n;var o=this.getCache();this.key=this.getCacheKey(this.id),r.forceFetch&&o.unset(this.key),o.has(this.key)?this.finish():this.recentsRequest(r)}}}])&&Ue(n.prototype,r),o&&Ue(n,o),t}(w.a),Ge=n(18);function Ke(e){return(Ke="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})(e)}function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t0&&(r.fields=n.toString()),r}},{key:"hasMoreItems",value:function(e,t){return void 0===t||e3&&void 0!==l[3]?l[3]:h.J,i=l.length>4&&void 0!==l[4]?l[4]:h.I,a=l.length>5?l[5]:void 0,s=!(l.length>6&&void 0!==l[6])||l[6],this.successCallback=n,this.errorCallback=r,e.abrupt("return",this.offsetGetRequest(t,o,i,s,a));case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})}])&&Je(n.prototype,r),o&&Je(n,o),t}(w.a);function ot(e){return(ot="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})(e)}function it(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ct(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:h.J,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:h.I,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Oe.d,a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];this.errorCode=h.Eb,this.offsetGet(e,t,n,r,o,i,a)}},{key:"getVersion",value:function(e,t,n,r){this.errorCode=h.Db,this.get({id:e,successCallback:n,errorCallback:r,url:this.getVersionUrl(e,t),requestData:{params:{fields:Oe.d.toString()}}})}},{key:"addCurrentVersion",value:function(e,t,n){if(!e)return t||{entries:[],total_count:0};if(!t)return{entries:[e],total_count:1};var r=y()(n,"restored_from.id"),o=t.entries.find((function(e){return e.id===r}));return o&&(e.version_promoted=o.version_number),{entries:[].concat(it(t.entries),[e]),total_count:t.total_count+1}}},{key:"promoteVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=h.Lb;try{this.checkApiCallValidity(h.de,r,n)}catch(e){return void t(e,this.errorCode)}this.post({id:n,data:{data:{id:i,type:"file_version"}},url:this.getVersionUrl(n,"current"),successCallback:o,errorCallback:t})}},{key:"restoreVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=h.Nb;try{this.checkApiCallValidity(h.Xd,r,n)}catch(e){return void t(e,this.errorCode)}this.put({id:n,data:{data:{trashed_at:null}},url:this.getVersionUrl(n,i),successCallback:o,errorCallback:t})}}])&&ct(n.prototype,r),o&&ct(n,o),t}(rt);function mt(e){return(mt="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})(e)}function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t4&&void 0!==arguments[4]?arguments[4]:Oe.b,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;this.errorCode=h.rb;try{this.checkApiCallValidity(h.Wd,t,e)}catch(e){return void r(e,this.errorCode)}this.offsetGet(e,n,r,i,a,o,s)}}])&&bt(n.prototype,r),o&&bt(n,o),t}(rt);function xt(e){return(xt="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})(e)}function Et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ot(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Pt(e,t){return!t||"object"!==xt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Tt(e){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jt(e,t){return(jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var It=[h.vd,h.sd,h.ud,h.od,h.wd,h.rd],At=function(e){function t(e){var n=e.retryableStatusCodes,r=void 0===n?It:n,o=Ot(e,["retryableStatusCodes"]);return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pt(this,Tt(t).call(this,function(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};this.errorCode=h.sb,this.get({id:e,successCallback:t,errorCallback:n,requestData:r})}}])&&wn(n.prototype,r),o&&wn(n,o),t}(w.a),En=n(12),_n=n.n(En);function On(e){return(On="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})(e)}function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function jn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function In(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){jn(i,r,o,a,s,"next",e)}function s(e){jn(i,r,o,a,s,"throw",e)}a(void 0)}))}}function An(e,t){for(var n=0;n4&&void 0!==w[4]?w[4]:{},a=t.id,s=t.permissions,l=t.is_externally_owned,this.errorCode=h.xb,this.successCallback=n,this.errorCallback=r,a&&s){e.next=8;break}return this.errorHandler(Object(Pe.a)()),e.abrupt("return");case 8:if(c=this.getCache(),u=this.getMetadataCacheKey(a),i.forceFetch&&c.unset(u),!c.has(u)){e.next=15;break}if(this.successHandler(c.get(u)),i.refreshCache){e.next=15;break}return e.abrupt("return");case 15:return e.prev=15,f=this.getCustomPropertiesTemplate(),e.next=19,Promise.all([this.getInstances(a),this.getTemplates(a,h.Bd),o?this.getTemplates(a,h.Ad):Promise.resolve([])]);case 19:return d=e.sent,p=Tn(d,3),m=p[0],y=p[1],v=p[2],e.next=26,this.getEditors(a,m,f,v,y,!!s.can_upload);case 26:b=e.sent,g={editors:b,templates:this.getUserAddableTemplates(f,v,o,l)},c.set(u,g),this.isDestroyed()||this.successHandler(g),e.next=35;break;case 32:e.prev=32,e.t0=e.catch(15),this.errorHandler(e.t0);case 35:case"end":return e.stop()}}),e,this,[[15,32]])}))),function(e,t,n,r){return u.apply(this,arguments)})},{key:"getSkills",value:(c=In(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,s,l,c,u=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=u.length>3&&void 0!==u[3]&&u[3],this.errorCode=h.Ab,i=t.id){e.next=6;break}return r(Object(Pe.a)(),this.errorCode),e.abrupt("return");case 6:if(a=this.getCache(),s=this.getSkillsCacheKey(i),this.successCallback=n,this.errorCallback=r,o&&a.unset(s),!a.has(s)){e.next=14;break}return this.successHandler(a.get(s)),e.abrupt("return");case 14:if(l={data:y()(t,h.zc)},e.prev=15,l.data){e.next=20;break}return e.next=19,this.xhr.get({url:this.getMetadataUrl(i,h.Bd,h.Fd),id:Object(Ge.b)(i)});case 19:l=e.sent;case 20:this.isDestroyed()||(c=l.data.cards||[],a.set(s,c),this.successHandler(c)),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(15),this.errorHandler(e.t0);case 26:case"end":return e.stop()}}),e,this,[[15,23]])}))),function(e,t,n){return c.apply(this,arguments)})},{key:"updateSkills",value:(l=In(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=h.Ub,i=t.id,a=t.permissions,i&&a){e.next=5;break}return o(Object(Pe.a)(),this.errorCode),e.abrupt("return");case 5:if(a.can_upload){e.next=8;break}return o(Object(Pe.b)(),this.errorCode),e.abrupt("return");case 8:return this.successCallback=r,this.errorCallback=o,e.prev=10,e.next=13,this.xhr.put({url:this.getMetadataUrl(i,h.Bd,h.Fd),headers:Pn({},h.hd,"application/json-patch+json"),id:Object(Ge.b)(i),data:n});case 13:s=e.sent,this.isDestroyed()||(l=s.data.cards||[],this.merge(this.getCacheKey(i),h.zc,s.data),this.getCache().set(this.getSkillsCacheKey(i),l),this.successHandler(l)),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(10),this.errorHandler(e.t0);case 20:case"end":return e.stop()}}),e,this,[[10,17]])}))),function(e,t,n,r){return l.apply(this,arguments)})},{key:"updateMetadata",value:(s=In(regeneratorRuntime.mark((function e(t,n,r,o,i){var a,s,l,c,u,f,d,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=h.Tb,this.successCallback=o,this.errorCallback=i,a=t.id,s=t.permissions,a&&s){e.next=7;break}return this.errorHandler(Object(Pe.a)()),e.abrupt("return");case 7:if(l=!!s.can_upload){e.next=11;break}return this.errorHandler(Object(Pe.b)()),e.abrupt("return");case 11:return e.prev=11,e.next=14,this.xhr.put({url:this.getMetadataUrl(a,n.scope,n.templateKey),headers:Pn({},h.hd,"application/json-patch+json"),id:Object(Ge.b)(a),data:r});case 14:c=e.sent,this.isDestroyed()||(u=this.getCache(),f=this.getMetadataCacheKey(a),d=u.get(f),p=this.createEditor(c.data,n,l),d.editors.splice(d.editors.findIndex((function(e){return e.instance.id===p.instance.id})),1,p),this.successHandler(p)),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(11),this.errorHandler(e.t0);case 21:case"end":return e.stop()}}),e,this,[[11,18]])}))),function(e,t,n,r,o){return s.apply(this,arguments)})},{key:"createMetadata",value:(a=In(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,c,u,f,d,p,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=h.eb,t&&n){e.next=4;break}return o(Object(Pe.a)(),this.errorCode),e.abrupt("return");case 4:if(i=t.id,a=t.permissions,s=t.is_externally_owned,i&&a){e.next=8;break}return o(Object(Pe.a)(),this.errorCode),e.abrupt("return");case 8:if(l=!!a.can_upload,c=n.templateKey===h.Ed&&n.scope===h.Bd,l&&(!s||c)){e.next=13;break}return o(Object(Pe.b)(),this.errorCode),e.abrupt("return");case 13:return this.successCallback=r,this.errorCallback=o,e.prev=15,e.next=18,this.xhr.post({url:this.getMetadataUrl(i,n.scope,n.templateKey),id:Object(Ge.b)(i),data:{}});case 18:u=e.sent,this.isDestroyed()||(f=this.getCache(),d=this.getMetadataCacheKey(i),p=f.get(d),m=this.createEditor(u.data,n,l),p.editors.push(m),this.successHandler(m)),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(15),this.errorHandler(e.t0);case 25:case"end":return e.stop()}}),e,this,[[15,22]])}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"deleteMetadata",value:(i=In(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,c,u,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=h.lb,t&&n){e.next=4;break}return o(Object(Pe.a)(),this.errorCode),e.abrupt("return");case 4:if(i=n.scope,a=n.templateKey,s=t.id,l=t.permissions,s&&l){e.next=9;break}return o(Object(Pe.a)(),this.errorCode),e.abrupt("return");case 9:if(l.can_upload){e.next=12;break}return o(Object(Pe.b)(),this.errorCode),e.abrupt("return");case 12:return this.successCallback=r,this.errorCallback=o,e.prev=14,e.next=17,this.xhr.delete({url:this.getMetadataUrl(s,i,a),id:Object(Ge.b)(s)});case 17:this.isDestroyed()||(c=this.getCache(),u=this.getMetadataCacheKey(s),(f=c.get(u)).editors.splice(f.editors.findIndex((function(e){return e.template.scope===i&&e.template.templateKey===a})),1),this.successHandler()),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(14),this.errorHandler(e.t0);case 23:case"end":return e.stop()}}),e,this,[[14,20]])}))),function(e,t,n,r){return i.apply(this,arguments)})}])&&An(n.prototype,r),o&&An(n,o),t}(xe.a);function Nn(e){return(Nn="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})(e)}function Dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zn(e){for(var t=1;t4&&void 0!==d[4]?d[4]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,a=this.getUrl(t),s=zn({},i,{marker:n,limit:r}),e.next=8,this.xhr.get({url:a,id:Object(Ge.b)(t),params:s});case 8:if(l=e.sent,c=l.data,u=this.data?this.data.entries:[],this.data=zn({},c,{entries:u.concat(c.entries)}),f=c.next_marker,!o||!this.hasMoreItems(f)){e.next=16;break}return this.markerGetRequest(t,f,r,o,i),e.abrupt("return");case 16:this.successHandler(this.data),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(3),this.errorHandler(e.t0);case 22:case"end":return e.stop()}}),e,this,[[3,19]])}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"markerGet",value:(i=Bn(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,c,u,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.successCallback,o=t.errorCallback,i=t.marker,a=void 0===i?"":i,s=t.limit,l=void 0===s?1e3:s,c=t.requestData,u=t.shouldFetchAll,f=void 0===u||u,this.successCallback=r,this.errorCallback=o,e.abrupt("return",this.markerGetRequest(n,a,l,f,c));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}])&&Vn(n.prototype,r),o&&Vn(n,o),t}(w.a);function Qn(e){return(Qn="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})(e)}function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xn(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:h.P;this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:r})}}])&&Xn(n.prototype,r),o&&Xn(n,o),t}(Kn),nr=n(3),rr=n(33);function or(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==c[2]?c[2]:i.a,a=c.length>3&&void 0!==c[3]?c[3]:i.a,t.id){e.next=4;break}throw Object(Pe.a)();case 4:return s=!0,n.file=t,n.errorCallback=a,n.tasksNewAPI=new Ht(n.options),n.updateFeedItem({isPending:!0},r.id),e.prev=9,e.next=12,Promise.all(r.addedAssignees.map((function(e){return n.createTaskCollaborator(t,r,e)})));case 12:return e.next=14,new Promise((function(e,o){n.tasksNewAPI.updateTask({file:t,task:r,successCallback:e,errorCallback:o})}));case 14:return e.next=16,Promise.all(r.removedAssignees.map((function(e){return n.deleteTaskCollaborator(t,r,e)}))).catch((function(e){s=!1,l=e}));case 16:return e.next=18,new Promise((function(e,o){n.tasksNewAPI.getTask({file:t,id:r.id,successCallback:function(t){n.updateFeedItem(gr({},t,{isPending:!1}),r.id),s||n.feedErrorCallback(!1,l,h.Vb),e()},errorCallback:function(e){n.updateFeedItem({isPending:!1},r.id),n.feedErrorCallback(!1,e,h.Vb),o()}})}));case 18:!n.isDestroyed()&&s&&o(),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(9),n.updateFeedItem({isPending:!1},r.id),n.feedErrorCallback(!1,e.t0,h.Vb);case 25:case"end":return e.stop()}}),e,null,[[9,21]])})));return function(t,n){return e.apply(this,arguments)}}()),Er(Cr(n),"deleteComment",(function(e,t,r,o,i){if(n.commentsAPI=new kt(n.options),!e.id)throw Object(Pe.a)();n.file=e,n.errorCallback=i,n.updateFeedItem({isPending:!0},t),n.commentsAPI.deleteComment({file:e,commentId:t,permissions:r,successCallback:n.deleteFeedItem.bind(Cr(n),t,o),errorCallback:function(e,r){n.deleteCommentErrorCallback(e,r,t)}})})),Er(Cr(n),"deleteCommentErrorCallback",(function(e,t,r){n.updateFeedItem(n.createFeedError(rr.a.commentDeleteErrorMessage),r),n.feedErrorCallback(!0,e,t)})),Er(Cr(n),"createTaskNew",(function(e,t,r,o,i,a,s,l,c){if(!e.id)throw Object(Pe.a)();n.file=e,n.errorCallback=c;var u,f=_n()("task_");a&&(u=new Date(a).toISOString());var d={created_by:{type:"task_collaborator",target:t,id:_n()(),role:"CREATOR",status:_r},completion_rule:s,created_at:(new Date).toISOString(),due_at:u,id:f,description:r,type:Or,assigned_to:{entries:o.map((function(e){return{id:_n()(),target:gr({},e,{avatar_url:"",type:"user"}),status:_r,permissions:{can_delete:!1,can_update:!1},role:"ASSIGNEE",type:"task_collaborator"}})),limit:10,next_marker:null},permissions:{can_update:!1,can_delete:!1,can_create_task_collaborator:!1,can_create_task_link:!1},task_links:{entries:[{id:_n()(),type:"task_link",target:gr({type:"file"},e),permissions:{can_delete:!1,can_update:!1}}],limit:1,next_marker:null},task_type:i,status:h.Qe},p={description:r,due_at:u,task_type:i,completion_rule:s};n.tasksNewAPI=new Ht(n.options),n.tasksNewAPI.createTask({file:e,task:p,successCallback:function(r){n.addPendingItem(n.file.id,t,d),n.createTaskNewSuccessCallback(e,f,r,o,l,c)},errorCallback:function(e,t){n.feedErrorCallback(!1,e,t)}})})),Er(Cr(n),"deleteTaskNew",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.a;if(!e.id)throw Object(Pe.a)();n.file=e,n.errorCallback=o,n.tasksNewAPI=new Ht(n.options),n.updateFeedItem({isPending:!0},t.id),n.tasksNewAPI.deleteTask({file:e,task:t,successCallback:n.deleteFeedItem.bind(Cr(n),t.id,r),errorCallback:function(e,r){n.updateFeedItem(n.createFeedError(rr.a.taskDeleteErrorMessage),t.id),n.feedErrorCallback(!0,e,r)}})})),Er(Cr(n),"deleteFeedItem",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a,r=n.getCachedItems(n.file.id);if(r){var o=r.items.filter((function(t){return t.id!==e}));n.setCachedItems(n.file.id,o),n.isDestroyed()||t(e)}})),Er(Cr(n),"feedErrorCallback",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;e&&(n.hasError=!0),!n.isDestroyed()&&n.errorCallback&&n.errorCallback(t,r,Er({error:t},h.yd,e)),console.error(t)})),Er(Cr(n),"addPendingItem",(function(e,t,r){if(!t)throw Object(Pe.c)();var o=(new Date).toISOString(),i=gr({created_at:o,created_by:t,modified_at:o,isPending:!0},r),a=n.getCachedItems(n.file.id),s=a?a.items:[],l=[].concat(hr(s),[i]);return n.setCachedItems(e,l),i})),Er(Cr(n),"createCommentSuccessCallback",(function(e,t,r){var o=e.message,i=void 0===o?"":o,a=e.tagged_message,s=void 0===a?"":a;e.tagged_message=s||i,n.updateFeedItem(gr({},e,{isPending:!1}),t),n.isDestroyed()||r(e)})),Er(Cr(n),"createCommentErrorCallback",(function(e,t,r){var o=e.status===h.pd?rr.a.commentCreateConflictMessage:rr.a.commentCreateErrorMessage;n.updateFeedItem(n.createFeedError(o),r),n.feedErrorCallback(!1,e,t)})),Er(Cr(n),"updateFeedItem",(function(e,t){if(!n.file.id)throw Object(Pe.a)();var r=n.getCachedItems(n.file.id);if(r){var o=r.items.map((function(n){return n.id===t?gr({},n,{},e):n}));return n.setCachedItems(n.file.id,o),o}return null})),Er(Cr(n),"createComment",(function(e,t,r,o,i,a){var s=_n()("comment_"),l={id:s,tagged_message:r,type:"comment"};if(!e.id)throw Object(Pe.a)();n.file=e,n.errorCallback=a,n.addPendingItem(n.file.id,t,l);var c={};o?c.taggedMessage=r:c.message=r,n.commentsAPI=new kt(n.options),n.commentsAPI.createComment(gr({file:e},c,{successCallback:function(e){n.createCommentSuccessCallback(e,s,i)},errorCallback:function(e,t){n.createCommentErrorCallback(e,t,s)}}))})),Er(Cr(n),"updateComment",(function(e,t,r,o,i,a,s){var l={tagged_message:r};if(!e.id)throw Object(Pe.a)();n.file=e,n.errorCallback=s,n.updateFeedItem(gr({},l,{isPending:!0}),t);var c={};o?c.tagged_message=r:c.message=r,n.commentsAPI=new kt(n.options),n.commentsAPI.updateComment(gr({file:e,commentId:t,permissions:i},c,{successCallback:function(e){n.updateFeedItem(gr({},c,{isPending:!1}),t),n.isDestroyed()||a(e)},errorCallback:function(e,t){n.feedErrorCallback(!0,e,t)}}))})),Er(Cr(n),"deleteAppActivity",(function(e,t,r,o){var i=e.id;if(!i)throw Object(Pe.a)();n.appActivityAPI=new fr(n.options),n.file=e,n.errorCallback=o,n.updateFeedItem({isPending:!0},t),n.appActivityAPI.deleteAppActivity({id:i,appActivityId:t,successCallback:n.deleteFeedItem.bind(Cr(n),t,r),errorCallback:function(e,r){n.deleteAppActivityErrorCallback(e,r,t)}})})),Er(Cr(n),"deleteAppActivityErrorCallback",(function(e,t,r){n.updateFeedItem(n.createFeedError(rr.a.appActivityDeleteErrorMessage),r),n.feedErrorCallback(!0,e,t)})),n.taskCollaboratorsAPI=[],n.taskLinksAPI=[],n}var n,r,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xr(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(h.Ue).concat(e)}},{key:"getCachedItems",value:function(e){var t=this.getCache(),n=this.getCacheKey(e);return t.get(n)}},{key:"setCachedItems",value:function(e,t){var n=this.getCache(),r=this.getCacheKey(e);n.set(r,{hasError:!!this.hasError,items:t})}},{key:"feedItems",value:function(e){function t(t,n,r,o,i){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t,n,r,o){var i=this,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=a.shouldShowAppActivity,l=void 0!==s&&s,c=e.id,u=e.permissions,f=void 0===u?{}:u,d=this.getCachedItems(c);if(d){var p=d.hasError,h=d.items;if(p?r(h):n(h),!t)return}this.file=e,this.hasError=!1,this.errorCallback=o;var m=this.fetchVersions(),y=this.fetchCurrentVersion(),v=this.fetchComments(f),b=this.fetchTasksNew(),g=l?this.fetchAppActivity(f):Promise.resolve();Promise.all([m,y,v,b,g]).then((function(e){var t=pr(e),o=t[0],a=t[1],s=t.slice(2),l=i.versionsAPI.addCurrentVersion(a,o,i.file),u=or.apply(void 0,[l].concat(hr(s)));i.isDestroyed()||(i.setCachedItems(c,u),i.hasError?r(u):n(u))}))}))},{key:"fetchComments",value:function(e){var t=this;return this.commentsAPI=new kt(this.options),new Promise((function(n){t.commentsAPI.getComments(t.file.id,e,n,t.fetchFeedItemErrorCallback.bind(t,n))}))}},{key:"fetchVersions",value:function(){var e=this;return this.versionsAPI=new ht(this.options),new Promise((function(t){e.versionsAPI.getVersions(e.file.id,t,e.fetchFeedItemErrorCallback.bind(e,t))}))}},{key:"fetchCurrentVersion",value:function(){var e=this;return this.versionsAPI=new ht(this.options),new Promise((function(t){var n=e.file.file_version,r=void 0===n?{}:n;e.versionsAPI.getVersion(e.file.id,r.id,t,e.fetchFeedItemErrorCallback.bind(e,t))}))}},{key:"fetchTasksNew",value:function(){var e=this;return this.tasksNewAPI=new Ht(this.options),new Promise((function(t){e.tasksNewAPI.getTasksForFile({file:{id:e.file.id},successCallback:t,errorCallback:function(n,r){return e.fetchFeedItemErrorCallback(t,n,r)}})}))}},{key:"fetchFeedItemErrorCallback",value:function(e,t,n){var r=t.status,o=Object(Pe.d)(r);this.feedErrorCallback(o,t,n),e()}},{key:"createTaskNewSuccessCallback",value:(a=vr(regeneratorRuntime.mark((function e(t,n,r,o,i,a){var s,l,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw Object(Pe.a)();case 2:return this.errorCallback=a,e.prev=3,e.next=6,this.createTaskLink(t,r);case 6:return s=e.sent,e.next=9,Promise.all(o.map((function(e){return c.createTaskCollaborator(t,r,e)})));case 9:l=e.sent,this.updateFeedItem(gr({},r,{task_links:{entries:[s],next_marker:null,limit:1},assigned_to:{entries:l,next_marker:null,limit:l.length},isPending:!1}),n),i(r),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),this.feedErrorCallback(!1,e.t0,h.fb);case 17:case"end":return e.stop()}}),e,this,[[3,14]])}))),function(e,t,n,r,o,i){return a.apply(this,arguments)})},{key:"createTaskCollaborator",value:function(e,t,n){var r=this;if(!e.id)throw Object(Pe.a)();return this.file=e,new Promise((function(o,i){var a=new $t(r.options);r.taskCollaboratorsAPI.push(a),a.createTaskCollaborator({file:e,task:t,user:n,successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"deleteTaskCollaborator",value:function(e,t,n){var r=this;if(!e.id)throw Object(Pe.a)();return this.file.id=e.id,new Promise((function(o,i){var a=new $t(r.options);r.taskCollaboratorsAPI.push(a),a.deleteTaskCollaborator({file:e,task:t,taskCollaborator:{id:n.id},successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"createTaskLink",value:function(e,t){var n=this;if(!e.id)throw Object(Pe.a)();return this.file=e,new Promise((function(r,o){var i=new ln(n.options);n.taskLinksAPI.push(i),i.createTaskLink({file:e,task:t,successCallback:r,errorCallback:o})}))}},{key:"createFeedError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nr.a.errorOccured;return{error:{message:e,title:t}}}},{key:"destroyTaskCollaborators",value:function(){Array.isArray(this.taskCollaboratorsAPI)&&(this.taskCollaboratorsAPI.forEach((function(e){return e.destroy()})),this.taskCollaboratorsAPI=[])}},{key:"destroyTaskLinks",value:function(){Array.isArray(this.taskLinksAPI)&&(this.taskLinksAPI.forEach((function(e){return e.destroy()})),this.taskLinksAPI=[])}},{key:"fetchAppActivity",value:function(e){var t=this;return this.appActivityAPI=new fr(this.options),new Promise((function(n){t.appActivityAPI.getAppActivity(t.file.id,e,n,t.fetchFeedItemErrorCallback.bind(t,n))}))}},{key:"destroy",value:function(){Sr(kr(t.prototype),"destroy",this).call(this),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.appActivityAPI&&(this.appActivityAPI.destroy(),delete this.appActivityAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.destroyTaskCollaborators(),this.destroyTaskLinks()}}])&&wr(n.prototype,r),o&&wr(n,o),t}(w.a);function Tr(e){return(Tr="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})(e)}function jr(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:{};if(!this.isDestroyed()){var o=r.context,i=void 0===o?{}:o;this.key=this.getCacheKey(i.id),this.successCallback=t,this.errorCallback=n,r.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.queryMetadataRequest(e)}}}])&&Wr(n.prototype,r),o&&Wr(n,o),t}(w.a);function Xr(e,t){for(var n=0;n=parseFloat(t)}},{key:"isSafari",value:function(){return this.browser===Yr.SAFARI}},{key:"isFirefox",value:function(){return this.browser===Yr.FIREFOX}},{key:"isChrome",value:function(){return this.browser===Yr.CHROME}},{key:"isIE",value:function(){return this.browser===Yr.IE}},{key:"isEdge",value:function(){return this.browser===Yr.EDGE}},{key:"isIEAndSpecificBrowserPluginSupported",value:function(e){return this.isIE()&&function(e){var t=e||"htmlfile",n=!1;try{"ActiveXObject"in window&&(n=!!new(0,window.ActiveXObject)(t))}catch(e){n=!1}return n}(e)}}])&&Xr(t.prototype,n),r&&Xr(t,r),e}());var ro=function(e){var t,n=[],r=0;return new Promise((function(o,i){e.forEach((function(a,s){a.then(o).catch(function(o){return function(a){n[o]=a,(r+=1)===e.length&&(t=new Error("no promises resolved"),i(t))}}(s))}))}))},oo={SAFARI_CHANNEL_NAME:"safari_channel",SECRET_STORE_COOKIE_NAME:"box-edit-secret-cookie-name",BOX_EDIT_APP_NAME:"BoxEdit",BOX_EDIT_NOT_SUPPORTED_ERROR:"box_edit_not_supported_error",BOX_EDIT_UNINSTALLED_ERROR:"box_edit_uninstalled_error",BOX_EDIT_UPGRADE_BROWSER_ERROR:"box_edit_upgrade_browser_error",BOX_EDIT_SAFARI_ERROR:"box_edit_safari_error",BOX_EDIT_INSECURE_REQUESTS_UPGRADED_ERROR:"box_edit_insecure_requests_upgraded_error",BOX_TOOLS_PLUGIN_NAME:"Box.BoxTools",BOX_SECURE_LOCAL_BASE_URL:"https://edit.boxlocalhost.com:",BOX_UNSECURE_LOCAL_BASE_URL:"http://127.0.0.1:",ACTIVEX_CHANNEL_NAME:"activex_channel",HTTP_CHANNEL_NAME:"http_channel",HTTPS_CHANNEL_NAME:"https_channel",OPERATION_STATUS:"status",OPERATION_REQUEST:"application_request",OPERATION_COMMAND:"application_command",UNCREATED_STATUS:"uncreated",CREATED_STATUS:"created",ACTIVE_STATUS:"active",HIVE_TABLE_WEBAPP_BOXTOOLS_ANALYTICS:"webapp_boxtools_analytics",KEY_LENGTH:16,KEY_ID_LENGTH:8,IV:"75392C57F66CE7E7EF47110410280DD7",OUTPUT_EVENT:"box_extension_output",REQUEST_ID_PRE:"BOX-EXT-REQ-ID-",REQUEST_TIMEOUT_RESPONSE_CODE:408,EXTENSION_BLACKLIST:{A6P:1,AC:1,AS:1,ACR:1,ACTION:1,AIR:1,APP:1,AWK:1,BAT:1,BOXNOTE:1,CGI:1,CHM:1,CMD:1,COM:1,CSH:1,DEK:1,DLD:1,DS:1,EBM:1,ESH:1,EXE:1,EZS:1,FKY:1,FRS:1,FXP:1,GADGET:1,HMS:1,HTA:1,ICD:1,INX:1,IPF:1,ISU:1,JAR:1,JS:1,JSE:1,JSX:1,KIX:1,LNK:1,LUA:1,MCR:1,MEM:1,MPX:1,MS:1,MSI:1,MST:1,OBS:1,PAF:1,PEX:1,PIF:1,PL:1,PRC:1,PRG:1,PVD:1,PWC:1,PY:1,PYC:1,PYO:1,QPX:1,RBX:1,REG:1,RGS:1,ROX:1,RPJ:1,SCAR:1,SCR:1,SCRIPT:1,SCPT:1,SCT:1,SH:1,SHB:1,SHS:1,SPR:1,TLB:1,TMS:1,U3P:1,UDF:1,URL:1,VB:1,VBE:1,VBS:1,VBSCRIPT:1,WCM:1,WPK:1,WS:1,WSF:1,XQT:1}};function io(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Promise((function(i,a){var s=r.buildDetailsObj(e,t,o),l=setTimeout((function(){a(new Error({status_code:oo.REQUEST_TIMEOUT_RESPONSE_CODE}))}),n);r.reqIdToPromiseMap.set(s.req_id,{resolve:i,rejectTimeout:l}),r.executeActiveXEvent({detail:s})}))})),po(uo(r),"repairActiveXConnection",(function(e){no.isIEAndSpecificBrowserPluginSupported(oo.BOX_TOOLS_PLUGIN_NAME)&&(r.retryAttempt>=ho||(r.retryAttempt+=1,setTimeout((function(){r.executeActiveXEvent(e)}),100)))})),po(uo(r),"executeActiveXEvent",(function(e){var t=r.createActiveXObjectJSRef(),n="ExecuteSync"in t;try{r.isSynchronous&&n?t.ExecuteSync(JSON.stringify(e)):t.Execute(JSON.stringify(e))}catch(t){r.repairActiveXConnection(e)}})),po(uo(r),"createActiveXObjectJSRef",(function(){return new(0,r.window.ActiveXObject)(oo.BOX_TOOLS_PLUGIN_NAME)})),po(uo(r),"setupActiveXCommunication",(function(){r.isActiveXExtensionListenerAttached||(r.document.addEventListener(oo.OUTPUT_EVENT,r.appExtensionEventResponseHandler),r.isActiveXExtensionListenerAttached=!0)})),po(uo(r),"tearDownActiveXCommunication",(function(){r.isActiveXExtensionListenerAttached&&(r.document.removeEventListener(oo.OUTPUT_EVENT,r.appExtensionEventResponseHandler),r.isActiveXExtensionListenerAttached=!1)})),po(uo(r),"appExtensionEventResponseHandler",(function(e){r.retryAttempt>0&&(r.retryAttempt=0);var t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(r.reqIdToPromiseMap.has(t.req_id)){var n=r.reqIdToPromiseMap.get(t.req_id);if(n){clearTimeout(n.rejectTimeout),r.reqIdToPromiseMap.delete(t.req_id);var o="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;n.resolve(o)}}})),po(uo(r),"getComServerStatus",(function(e,t){return r.executeOperation(oo.OPERATION_STATUS,null,e,t)})),po(uo(r),"sendRequest",(function(e,t,n){return r.executeOperation(oo.OPERATION_REQUEST,e,t,n)})),po(uo(r),"sendCommand",(function(e,t,n){return r.executeOperation(oo.OPERATION_COMMAND,e,t,n)})),po(uo(r),"destroy",(function(){r.tearDownActiveXCommunication()})),r.isSynchronous=n,r.channelName=oo.ACTIVEX_CHANNEL_NAME,r.reqIdToPromiseMap=new Map,r.isActiveXExtensionListenerAttached=!1,r.retryAttempt=0,r.document=document,r.window=window,r.setupActiveXCommunication(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fo(e,t)}(t,e),t}(so),yo=n(149);function vo(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=window.document,a=new Date,s=[];void 0===n&&(n=a.getTime()+5184e6),a.setTime(n),s.push("".concat(e,"=").concat(encodeURIComponent(t))),0!==n&&s.push("; expires=".concat(a.toUTCString())),s.push("; path=".concat(r)),o&&s.push("; domain=".concat(o)),s.push("; secure"),i.cookie=s.join("")}function bo(e){return(bo="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})(e)}function go(e){return(go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Co(e,t){return(Co=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ko="GET",xo="POST",Eo=31536e6,_o=17223,Oo=17224,Po="Content-Type",To="text/plain; charset=UTF-8",jo="notrunning",Io=new yo.a;function Ao(){return Io.getItem("comUseFallback")?{primary:Oo,fallback:_o}:{primary:_o,fallback:Oo}}var Mo=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t){return!t||"object"!==bo(t)&&"function"!=typeof t?wo(e):t}(this,go(t).call(this,e)),So(wo(o),"createCORSRequest",(function(e,t){var n;try{return(n=new(0,o.window.XMLHttpRequest)).open(e,t,!0),n}catch(n){if(o.retryCounter<3)return o.retryCounter+=1,o.createCORSRequest(e,t);throw new Error("could not create xhr")}})),So(wo(o),"getComServerStatusInstallationPromise",(function(e){var t,n,r=new Promise((function(e,r){t=e,n=r})),i=function(e,n){o.currentPort=e,e===_o?Io.removeItem("comUseFallback"):Io.setItem("comUseFallback",1),o.comServerInstallationPromiseRejected=!1,t(n)},a=Ao(),s=a.primary,l=a.fallback;return o.checkInstallStatus(s,e).then(i.bind(wo(o),s)).catch((function(t){if(t===jo)return o.comServerInstallationPromiseRejected=!0,void n();o.checkInstallStatus(l,e).then(i.bind(wo(o),l)).catch((function(){o.comServerInstallationPromiseRejected=!0,n()}))})),r})),So(wo(o),"sendComServerRequest",(function(e,t,n,r){return new Promise((function(i,a){try{var s=o.createCORSRequest(e,t);s.setRequestHeader(Po,To),s.onload=function(){i(s)},s.onerror=function(){a(s)},r>0&&(s.timeout=r,s.ontimeout=function(){a(s)}),setTimeout((function(){s.send(n)}),0)}catch(e){a()}}))})),So(wo(o),"checkInstallStatus",(function(e,t){return o.sendComServerRequest(ko,"".concat(o.url).concat(e,"/status"),null,t).then((function(e){var t=JSON.parse(e.responseText);if(t.running)return t;throw o.comServerInstallationPromiseRejected=!0,new Error(jo)}))})),So(wo(o),"getComChannel",(function(e){return function(e){var t,n,r=window.document.cookie.split("; "),o=r.length;for(n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Promise((function(i,a){var s=n.buildDetailsObj(e,t,o),l=setTimeout((function(){a(new Error({status_code:oo.REQUEST_TIMEOUT_RESPONSE_CODE}))}),r);n.reqIdToPromiseMap.set(s.req_id,{resolve:i,rejectTimeout:l}),n.createAndDispatchAppExtensionEvent({detail:s})}))})),Do(Ro(n),"setupSafariExtensionCommunication",(function(){n.isAppExtensionListenerAttached||(n.isAppExtensionListenerAttached=!0,n.document.addEventListener(Uo,n.appExtensionEventResponseHandler))})),Do(Ro(n),"tearDownSafariExtensionCommunication",(function(){n.isAppExtensionListenerAttached&&(n.isAppExtensionListenerAttached=!1,n.document.removeEventListener(Uo,n.appExtensionEventResponseHandler))})),Do(Ro(n),"appExtensionEventResponseHandler",(function(e){var t="string"==typeof e.detail?JSON.parse(e.detail):e.detail;if(n.reqIdToPromiseMap.has(t.req_id)){var r=n.reqIdToPromiseMap.get(t.req_id);if(r){clearTimeout(r.rejectTimeout),n.reqIdToPromiseMap.delete(t.req_id);var o="string"==typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;r.resolve(o)}}})),Do(Ro(n),"createAndDispatchAppExtensionEvent",(function(e){var t=new(0,n.window.CustomEvent)(zo,e);n.document.dispatchEvent(t)})),Do(Ro(n),"getComServerStatus",(function(e,t){return n.executeOperation(oo.OPERATION_STATUS,null,e,t)})),Do(Ro(n),"sendRequest",(function(e,t,r){return n.executeOperation(oo.OPERATION_REQUEST,e,t,r)})),Do(Ro(n),"sendCommand",(function(e,t,r){return n.executeOperation(oo.OPERATION_COMMAND,e,t,r)})),Do(Ro(n),"destroy",(function(){n.tearDownSafariExtensionCommunication()})),n.reqIdToPromiseMap=new Map,n.channelName=oo.SAFARI_CHANNEL_NAME,n.window=window,n.document=document,n.setupSafariExtensionCommunication(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&No(e,t)}(t,e),t}(so);function Bo(e,t){for(var n=0;n=0&&(t=Math.floor(e)),t}function oi(e){var t=+(e/1e3).toFixed(2);return e<2?t/=2:t-=1,t}var ii=function(){function e(t){var n,r,o,i,a,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=!1,(r="isInitialized")in(n=this)?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.channels=[],this.isInitialized=!0,i=no.getName(),a=no.getVersion(),s=oo.UNCREATED_STATUS,Vo={box_tools_version:null,browser_name:i,browser_version:a,error_message:null,installation_type:null,http_channel_status:s,https_channel_status:s,activex_channel_status:s,safari_channel_status:s},Jo()?this.channels.push(Qo(t)):ei()?this.channels.push(Zo(t)):ti()&&no.isIEAndSpecificBrowserPluginSupported(oo.BOX_TOOLS_PLUGIN_NAME)?this.channels.push(function(e){var t=oo.CREATED_STATUS;return Vo.activex_channel_status=t,new mo(e,!1)}(t)):no.isFirefox()&&!no.isMinBrowser(Yr.FIREFOX,Wo)||$o()||(this.channels=this.channels.concat([Qo(t),Zo(t),Xo(t)]))}var t,n,r;return t=e,(n=[{key:"getComServerStatus",value:function(e){var t=this,n=oo.ACTIVE_STATUS,r=ri(e),o=oi(r),i=$o();return new Promise((function(e,a){return i?ni.call(null,a):t.channels.length?ro(t.channels.map((function(i){return i.getComServerStatus(r,o).then((function(r){return t.activeChannel=i,r&&(Vo.installation_type=r.installation_type,Vo.box_tools_version=r.version),Vo["".concat(i.channelName,"_status")]=n,e(r)}))}))).catch(ni.bind(null,a)):ni.call(null,a)}))}},{key:"sendRequest",value:function(e,t,n){var r=this,o=ri(n),i=oi(o);return this.activeChannel?this.activeChannel.sendRequest(e,o,i):this.getComServerStatus().then((function(){return r.activeChannel.sendRequest(e,o,i)}))}},{key:"sendCommand",value:function(e,t){var n=this,r=ri(t),o=oi(r);return this.activeChannel?this.activeChannel.sendCommand(e,r,o):this.getComServerStatus().then((function(){return n.activeChannel.sendCommand(e,r,o)}))}}])&&Bo(t.prototype,n),r&&Bo(t,r),e}();function ai(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]&&arguments[0];this.fileAPI&&(this.fileAPI.destroy(),delete this.fileAPI),this.weblinkAPI&&(this.weblinkAPI.destroy(),delete this.weblinkAPI),this.plainUploadAPI&&(this.plainUploadAPI.destroy(),delete this.plainUploadAPI),this.chunkedUploadAPI&&(this.chunkedUploadAPI.destroy(),delete this.chunkedUploadAPI),this.folderAPI&&(this.folderAPI.destroy(),delete this.folderAPI),this.searchAPI&&(this.searchAPI.destroy(),delete this.searchAPI),this.recentsAPI&&(this.recentsAPI.destroy(),delete this.recentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.fileAccessStatsAPI&&(this.fileAccessStatsAPI.destroy(),delete this.fileAccessStatsAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.taskCollaboratorsAPI&&(this.taskCollaboratorsAPI.destroy(),delete this.taskCollaboratorsAPI),this.taskLinksAPI&&(this.taskLinksAPI.destroy(),delete this.taskLinksAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.usersAPI&&(this.usersAPI.destroy(),delete this.usersAPI),this.metadataAPI&&(this.metadataAPI.destroy(),delete this.metadataAPI),this.fileCollaboratorsAPI&&(this.fileCollaboratorsAPI.destroy(),delete this.fileCollaboratorsAPI),this.appIntegrationsAPI&&(this.appIntegrationsAPI.destroy(),delete this.appIntegrationsAPI),this.metadataQueryAPI&&(this.metadataQueryAPI.destroy(),delete this.metadataQueryAPI),this.openWithAPI&&(this.openWithAPI.destroy(),delete this.openWithAPI),e&&(this.options.cache=new r.a)}},{key:"getCache",value:function(){return this.options.cache}},{key:"getAPI",value:function(e){var t;switch(e){case h.Ye:t=this.getFolderAPI();break;case h.Xe:t=this.getFileAPI();break;case h.Ze:t=this.getWebLinkAPI();break;default:throw new Error("Unknown Type!")}return t}},{key:"getFileAPI",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e&&this.destroy(),this.fileAPI=new xe.a(this.options),this.fileAPI}},{key:"getWebLinkAPI",value:function(){return this.destroy(),this.weblinkAPI=new Ee.a(this.options),this.weblinkAPI}},{key:"getPlainUploadAPI",value:function(){return this.destroy(),this.plainUploadAPI=new Se(this.options),this.plainUploadAPI}},{key:"getChunkedUploadAPI",value:function(){return this.destroy(),this.chunkedUploadAPI=new de(this.options),this.chunkedUploadAPI}},{key:"getFolderAPI",value:function(){return this.destroy(),this.folderAPI=new ke.a(this.options),this.folderAPI}},{key:"getSearchAPI",value:function(){return this.destroy(),this.searchAPI=new Ne(this.options),this.searchAPI}},{key:"getRecentsAPI",value:function(){return this.destroy(),this.recentsAPI=new qe(this.options),this.recentsAPI}},{key:"getMetadataAPI",value:function(e){return e&&this.destroy(),this.metadataAPI=new Rn(this.options),this.metadataAPI}},{key:"getVersionsAPI",value:function(e){return e&&this.destroy(),this.versionsAPI=new ht(this.options),this.versionsAPI}},{key:"getCommentsAPI",value:function(e){return e&&this.destroy(),this.commentsAPI=new kt(this.options),this.commentsAPI}},{key:"getTasksNewAPI",value:function(e){return e&&this.destroy(),this.tasksNewAPI=new Ht(this.options),this.tasksNewAPI}},{key:"getTaskCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.taskCollaboratorsAPI=new $t(this.options),this.taskCollaboratorsAPI}},{key:"getTaskLinksAPI",value:function(e){return e&&this.destroy(),this.taskLinksAPI=new ln(this.options),this.taskLinksAPI}},{key:"getFileAccessStatsAPI",value:function(e){return e&&this.destroy(),this.fileAccessStatsAPI=new hn(this.options),this.fileAccessStatsAPI}},{key:"getFileCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.fileCollaboratorsAPI=new tr(this.options),this.fileCollaboratorsAPI}},{key:"getUsersAPI",value:function(e){return e&&this.destroy(),this.usersAPI=new xn(this.options),this.usersAPI}},{key:"getFeedAPI",value:function(e){return e&&this.destroy(),this.feedItemsAPI=new Pr(this.options),this.feedItemsAPI}},{key:"getOpenWithAPI",value:function(e){return e&&this.destroy(),this.openWithAPI=new Hr(this.options),this.openWithAPI}},{key:"getAppIntegrationsAPI",value:function(e){return e&&this.destroy(),this.appIntegrationsAPI=new Lr(this.options),this.appIntegrationsAPI}},{key:"getMetadataQueryAPI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.destroy(),this.metadataQueryAPI=new Zr(this.options),this.metadataQueryAPI}},{key:"getBoxEditAPI",value:function(){return this.boxEditAPI=new di,this.boxEditAPI}}])&&mi(t.prototype,n),o&&mi(t,o),e}();t.a=yi},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},,,,,,,,,,function(e,t,n){"use strict";var r=n(290),o=n.n(r),i=n(28),a=n.n(i),s=n(114),l=n.n(s),c=n(67),u=n.n(c),f=n(83),d=n.n(f),p=n(101),h=n.n(p),m=n(115),y=n.n(m),v=n(0),b=n(4),g=n.n(b);function w(e){var t=e.cellCount,n=e.cellSize,r=e.computeMetadataCallback,o=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,s=e.nextScrollToIndex,l=e.scrollToIndex,c=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(r(o),l>=0&&l===s&&c())}var C=n(305),S=n.n(C),k=(n(86),function(){function e(t){var n=t.cellCount,r=t.cellSizeGetter,o=t.estimatedCellSize;u()(this,e),this._cellSizeAndPositionData={},this._lastMeasuredIndex=-1,this._lastBatchedIndex=-1,this._cellSizeGetter=r,this._cellCount=n,this._estimatedCellSize=o}return d()(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,r=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=r}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index "+e+" is outside of range 0.."+this._cellCount);if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,r=this._lastMeasuredIndex+1;r<=e;r++){var o=this._cellSizeGetter({index:r});if(void 0===o||isNaN(o))throw Error("Invalid size returned for cell "+r+" of value "+o);null===o?(this._cellSizeAndPositionData[r]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[r]={offset:n,size:o},n+=o,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;if(r<=0)return 0;var a=this.getSizeAndPositionOfCell(i),s=a.offset,l=s-r+a.size,c=void 0;switch(n){case"start":c=s;break;case"end":c=l;break;case"center":c=s-(r-a.size)/2;break;default:c=Math.max(l,Math.min(s,o))}var u=this.getTotalSize();return Math.max(0,Math.min(u-r,c))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var r=n+t,o=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(o);n=i.offset+i.size;for(var a=o;nn&&(e=r-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}()),x=function(){return"undefined"!=typeof window&&window.chrome&&window.chrome.webstore?16777100:15e5},E=function(){function e(t){var n=t.maxScrollSize,r=void 0===n?x():n,o=S()(t,["maxScrollSize"]);u()(this,e),this._cellSizeAndPositionManager=new k(o),this._maxScrollSize=r}return d()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(o-r))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,r=e.containerSize,o=e.currentOffset,i=e.targetIndex;o=this._safeOffsetToOffset({containerSize:r,offset:o});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:r,currentOffset:o,targetIndex:i});return this._offsetToSafeOffset({containerSize:r,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,r=e.totalSize;return r<=t?0:n/(r-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,r=this._cellSizeAndPositionManager.getTotalSize(),o=this.getTotalSize();if(r===o)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}}]),e}(),_=n(251),O=n.n(_);function P(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var r=n.callback,o=n.indices,i=O()(o),a=!e||i.every((function(e){var t=o[e];return Array.isArray(t)?t.length>0:t>=0})),s=i.length!==O()(t).length||i.some((function(e){var n=t[e],r=o[e];return Array.isArray(r)?n.join(",")!==r.join(","):n!==r}));t=o,a&&s&&r(o)}}var T=1;function j(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,r=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,l=e.scrollOffset,c=e.scrollToAlignment,u=e.scrollToIndex,f=e.size,d=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=n.getCellCount(),m=u>=0&&u0&&(fn.getTotalSize()-f&&p(h-1)}var I=n(568),A=n.n(I),M=n(302),L=n(569),F=n.n(L),R=void 0,N=(R="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||R.webkitRequestAnimationFrame||R.mozRequestAnimationFrame||R.oRequestAnimationFrame||R.msRequestAnimationFrame||function(e){return R.setTimeout(e,1e3/60)},D=R.cancelAnimationFrame||R.webkitCancelAnimationFrame||R.mozCancelAnimationFrame||R.oCancelAnimationFrame||R.msCancelAnimationFrame||function(e){R.clearTimeout(e)},z=N,U=D,H=function(e){return U(e.id)},B="observed",V="requested",W=function(e){function t(e){u()(this,t);var n=h()(this,(t.__proto__||l()(t)).call(this,e));n._onGridRenderedMemoizer=P(),n._onScrollMemoizer=P(!1),n._deferredInvalidateColumnIndex=null,n._deferredInvalidateRowIndex=null,n._recomputeScrollLeftFlag=!1,n._recomputeScrollTopFlag=!1,n._horizontalScrollBarSize=0,n._verticalScrollBarSize=0,n._scrollbarPresenceChanged=!1,n._renderedColumnStartIndex=0,n._renderedColumnStopIndex=0,n._renderedRowStartIndex=0,n._renderedRowStopIndex=0,n._styleCache={},n._cellCache={},n._debounceScrollEndedCallback=function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})},n._invokeOnGridRenderedHelper=function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})},n._setScrollingContainerRef=function(e){n._scrollingContainer=e},n._onScroll=function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)};var r=new E({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),o=new E({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:r,rowSizeAndPositionManager:o,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:T,scrollDirectionVertical:T,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return y()(t,e),d()(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,r=e.columnIndex,o=void 0===r?this.props.scrollToColumn:r,i=e.rowIndex,s=void 0===i?this.props.scrollToRow:i,l=a()({},this.props,{scrollToAlignment:n,scrollToColumn:o,scrollToRow:s});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r;if(!(o<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,s=i.autoWidth,l=i.height,c=i.width,u=this.state.instanceProps,f=u.scrollbarSize,d=u.rowSizeAndPositionManager.getTotalSize(),p=u.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-c+f),n),m=Math.min(Math.max(0,d-l+f),o);if(this.state.scrollLeft!==h||this.state.scrollTop!==m){var y={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?T:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?T:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:B};a||(y.scrollTop=m),s||(y.scrollLeft=h),y.needToResetStyleCache=!1,this.setState(y)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:d})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,r=this.state.instanceProps;r.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),r.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,r=e.rowIndex,o=void 0===r?0:r,i=this.props,a=i.scrollToColumn,s=i.scrollToRow,l=this.state.instanceProps;l.columnSizeAndPositionManager.resetCell(n),l.rowSizeAndPositionManager.resetCell(o),this._recomputeScrollLeftFlag=a>=0&&(this.state.scrollDirectionHorizontal===T?n<=a:n>=a),this._recomputeScrollTopFlag=s>=0&&(this.state.scrollDirectionVertical===T?o<=s:o>=s),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,r=this.props.columnCount,o=this.props;r>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(a()({},o,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(a()({},o,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,r=e.height,o=e.scrollLeft,i=e.scrollToColumn,s=e.scrollTop,l=e.scrollToRow,c=e.width,u=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),u.scrollbarSizeMeasured||this.setState((function(e){var t=a()({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof o&&o>=0||"number"==typeof s&&s>=0){var f=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:s});f&&(f.needToResetStyleCache=!1,this.setState(f))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=r>0&&c>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),l>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:o||0,scrollTop:s||0,totalColumnsWidth:u.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:u.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,o=r.autoHeight,i=r.autoWidth,a=r.columnCount,s=r.height,l=r.rowCount,c=r.scrollToAlignment,u=r.scrollToColumn,f=r.scrollToRow,d=r.width,p=this.state,h=p.scrollLeft,m=p.scrollPositionChangeReason,y=p.scrollTop,v=p.instanceProps;this._handleInvalidatedGridSize();var b=a>0&&0===e.columnCount||l>0&&0===e.rowCount;m===V&&(!i&&h>=0&&(h!==this._scrollingContainer.scrollLeft||b)&&(this._scrollingContainer.scrollLeft=h),!o&&y>=0&&(y!==this._scrollingContainer.scrollTop||b)&&(this._scrollingContainer.scrollTop=y));var g=(0===e.width||0===e.height)&&s>0&&d>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):j({cellSizeAndPositionManager:v.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:c,scrollToIndex:u,size:d,sizeJustIncreasedFromZero:g,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):j({cellSizeAndPositionManager:v.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:y,scrollToAlignment:c,scrollToIndex:f,size:s,sizeJustIncreasedFromZero:g,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||y!==t.scrollTop){var w=v.rowSizeAndPositionManager.getTotalSize(),C=v.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:y,totalColumnsWidth:C,totalRowsHeight:w})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&H(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,r=e.autoWidth,o=e.className,i=e.containerProps,s=e.containerRole,l=e.containerStyle,c=e.height,u=e.id,f=e.noContentRenderer,d=e.role,p=e.style,h=e.tabIndex,m=e.width,y=this.state,b=y.instanceProps,w=y.needToResetStyleCache,C=this._isScrolling(),S={boxSizing:"border-box",direction:"ltr",height:n?"auto":c,position:"relative",width:r?"auto":m,WebkitOverflowScrolling:"touch",willChange:"transform"};w&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var k=b.columnSizeAndPositionManager.getTotalSize(),x=b.rowSizeAndPositionManager.getTotalSize(),E=x>c?b.scrollbarSize:0,_=k>m?b.scrollbarSize:0;_===this._horizontalScrollBarSize&&E===this._verticalScrollBarSize||(this._horizontalScrollBarSize=_,this._verticalScrollBarSize=E,this._scrollbarPresenceChanged=!0),S.overflowX=k+E<=m?"hidden":"auto",S.overflowY=x+_<=c?"hidden":"auto";var O=this._childrenToDisplay,P=0===O.length&&c>0&&m>0;return v.createElement("div",a()({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:g()("ReactVirtualized__Grid",o),id:u,onScroll:this._onScroll,role:d,style:a()({},S,p),tabIndex:h}),O.length>0&&v.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:s,style:a()({width:t?"auto":k,height:x,maxWidth:k,maxHeight:x,overflow:"hidden",pointerEvents:C?"none":"",position:"relative"},l)},O),P&&f())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,r=e.cellRangeRenderer,o=e.columnCount,i=e.deferredMeasurementCache,a=e.height,s=e.overscanColumnCount,l=e.overscanIndicesGetter,c=e.overscanRowCount,u=e.rowCount,f=e.width,d=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.instanceProps,y=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,v=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,b=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&f>0){var g=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:f,offset:v}),w=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:y}),C=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:f,offset:v}),S=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:y});this._renderedColumnStartIndex=g.start,this._renderedColumnStopIndex=g.stop,this._renderedRowStartIndex=w.start,this._renderedRowStopIndex=w.stop;var k=l({direction:"horizontal",cellCount:o,overscanCellsCount:s,scrollDirection:p,startIndex:"number"==typeof g.start?g.start:0,stopIndex:"number"==typeof g.stop?g.stop:-1}),x=l({direction:"vertical",cellCount:u,overscanCellsCount:c,scrollDirection:h,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),E=k.overscanStartIndex,_=k.overscanStopIndex,O=x.overscanStartIndex,P=x.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var T=O;T<=P;T++)if(!i.has(T,0)){E=0,_=o-1;break}if(!i.hasFixedWidth())for(var j=E;j<=_;j++)if(!i.has(0,j)){O=0,P=u-1;break}}this._childrenToDisplay=r({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:E,columnStopIndex:_,deferredMeasurementCache:i,horizontalOffsetAdjustment:C,isScrolling:b,isScrollingOptOut:d,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:O,rowStopIndex:P,scrollLeft:v,scrollTop:y,styleCache:this._styleCache,verticalOffsetAdjustment:S,visibleColumnIndices:g,visibleRowIndices:w}),this._columnStartIndex=E,this._columnStopIndex=_,this._rowStartIndex=O,this._rowStopIndex=P}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&H(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=function(e,t){var n=void 0;F.a.resolve().then((function(){n=Date.now()}));var r={id:z((function o(){Date.now()-n>=t?e.call():r.id=z(o)}))};return r}(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,r=e.scrollTop,o=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,r=e.scrollTop,a=t.props,s=a.height;(0,a.onScroll)({clientHeight:s,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:r,scrollWidth:o})},indices:{scrollLeft:n,scrollTop:r}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,r=e.scrollTop,o=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:r});o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollLeftForScrollToColumnStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var r=this._rowStartIndex;r<=this._rowStopIndex;r++)for(var o=this._columnStartIndex;o<=this._columnStopIndex;o++){var i=r+"-"+o;this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,r=t._getScrollTopForScrollToRowStateUpdate(e,n);r&&(r.needToResetStyleCache=!1,this.setState(r))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(r.scrollLeft=0,r.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&o()(r,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var i=n.instanceProps;r.needToResetStyleCache=!1,e.columnWidth===i.prevColumnWidth&&e.rowHeight===i.prevRowHeight||(r.needToResetStyleCache=!0),i.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),i.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==i.prevColumnCount&&0!==i.prevRowCount||(i.prevColumnCount=0,i.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===i.prevIsScrolling&&o()(r,{isScrolling:!1});var s=void 0,l=void 0;return w({cellCount:i.prevColumnCount,cellSize:"number"==typeof i.prevColumnWidth?i.prevColumnWidth:null,computeMetadataCallback:function(){return i.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:i.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){s=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),w({cellCount:i.prevRowCount,cellSize:"number"==typeof i.prevRowHeight?i.prevRowHeight:null,computeMetadataCallback:function(){return i.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:i.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){l=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),i.prevColumnCount=e.columnCount,i.prevColumnWidth=e.columnWidth,i.prevIsScrolling=!0===e.isScrolling,i.prevRowCount=e.rowCount,i.prevRowHeight=e.rowHeight,i.prevScrollToColumn=e.scrollToColumn,i.prevScrollToRow=e.scrollToRow,i.scrollbarSize=e.getScrollbarSize(),void 0===i.scrollbarSize?(i.scrollbarSizeMeasured=!1,i.scrollbarSize=0):i.scrollbarSizeMeasured=!0,r.instanceProps=i,a()({},r,s,l)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,r=e.scrollTop,o={scrollPositionChangeReason:V};return"number"==typeof n&&n>=0&&(o.scrollDirectionHorizontal=n>t.scrollLeft?T:-1,o.scrollLeft=n),"number"==typeof r&&r>=0&&(o.scrollDirectionVertical=r>t.scrollTop?T:-1,o.scrollTop=r),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof r&&r>=0&&r!==t.scrollTop?o:null}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,r=e.height,o=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,s=t.scrollLeft,l=t.instanceProps;if(n>0){var c=n-1,u=i<0?c:Math.min(c,i),f=l.rowSizeAndPositionManager.getTotalSize(),d=l.scrollbarSizeMeasured&&f>r?l.scrollbarSize:0;return l.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:a-d,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var r=n.scrollLeft,o=t._getCalculatedScrollLeft(e,n);return"number"==typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:o,scrollTop:-1}):null}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,r=e.rowCount,o=e.scrollToAlignment,i=e.scrollToRow,a=e.width,s=t.scrollTop,l=t.instanceProps;if(r>0){var c=r-1,u=i<0?c:Math.min(c,i),f=l.columnSizeAndPositionManager.getTotalSize(),d=l.scrollbarSizeMeasured&&f>a?l.scrollbarSize:0;return l.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:n-d,currentOffset:s,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var r=n.scrollTop,o=t._getCalculatedScrollTop(e,n);return"number"==typeof o&&o>=0&&r!==o?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:o}):null}}]),t}(v.PureComponent);W.defaultProps={"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,r=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,l=e.isScrolling,c=e.isScrollingOptOut,u=e.parent,f=e.rowSizeAndPositionManager,d=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,y=e.visibleColumnIndices,v=e.visibleRowIndices,b=[],g=r.areOffsetsAdjusted()||f.areOffsetsAdjusted(),w=!l&&!g,C=d;C<=p;C++)for(var S=f.getSizeAndPositionOfCell(C),k=o;k<=i;k++){var x=r.getSizeAndPositionOfCell(k),E=k>=y.start&&k<=y.stop&&C>=v.start&&C<=v.stop,_=C+"-"+k,O=void 0;w&&h[_]?O=h[_]:a&&!a.has(C,k)?O={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(O={height:S.size,left:x.offset+s,position:"absolute",top:S.offset+m,width:x.size},h[_]=O);var P={columnIndex:k,isScrolling:l,isVisible:E,key:_,parent:u,rowIndex:C,style:O},T=void 0;!c&&!l||s||m?T=n(P):(t[_]||(t[_]=n(P)),T=t[_]),null!=T&&!1!==T&&b.push(T)}return b},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:A.a,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r===T?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1},W.propTypes=null,Object(M.polyfill)(W);var q=W,G=1;function K(e){var t=e.cellCount,n=e.overscanCellsCount,r=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),r===G?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,o-n),overscanStopIndex:Math.min(t-1,i+1)}}n.d(t,"b",(function(){return q})),n.d(t,"a",(function(){return K}))},function(e,t,n){var r=n(581)();e.exports=r},function(e,t,n){var r=n(92),o=n(111);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,l=c,console&&console.warn&&console.warn(l)}return e}function d(){for(var e=[],t=0;t0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var c=l.length,u=y(l,c);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t){},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,u=c&&c(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(u){var d=c(n);d&&d!==u&&e(t,d,f)}var p=a(n);s&&(p=p.concat(s(n)));for(var h=0;h>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(n=t),r=0;r0&&(o+="&"),null===n[1]?o+=n[0]:(o+=n[0],o+="=",void 0!==n[1]&&(o+=encodeURIComponent(n[1])));return o.length>0?"?"+o:o},l.prototype.getQueryParamValue=function(e){var t,n,r;for(n=0,r=this.queryPairs.length;n0&&this.queryPairs.push([e,t]),this},l.prototype.hasQueryParam=function(e){var t,n=this.queryPairs.length;for(t=0;t=0&&this.deleteQueryParam(e,a(n)).addQueryParam(e,t,i)}else{for(r=0;r2&&void 0!==arguments[2]?arguments[2]:{};this.id=e,this.token=t,this.options=n,this.options.version="0.0.0-semantically-released",this.emit=this.emit.bind(this);var r=n.container||p.H;this.container=r instanceof HTMLElement?r:document.querySelector(r),this.render()}},{key:"hide",value:function(){this.removeAllListeners(),a.a.unmountComponentAtNode(this.container),this.container&&(this.container.innerHTML="")}},{key:"render",value:function(){throw new Error("Unimplemented!")}},{key:"getComponent",value:function(){return this.component}},{key:"clearCache",value:function(){var e=this.getComponent();e&&"function"==typeof e.clearCache&&e.clearCache()}},{key:"emit",value:function(e,n){try{return v(b(t.prototype),"emit",this).call(this,e,n)}catch(e){}return!1}}])&&m(n.prototype,r),o&&m(n,o),t}(o.a);t.a=C},function(e,t,n){"use strict";var r=n(0),o=n(128),i=n.n(o),a=n(264),s=n(4),l=n.n(s),c=n(1);function u(e){return(u="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})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n1)throw new Error("Box UI Element cannot be small or medium or large or very large at the same time");if(!w)return r.createElement(e,f({ref:p,className:u,isLarge:m,isMedium:y,isSmall:b,isTouch:i,isVeryLarge:g},h));var C=this.state.size;b=C===c.me,y=C===c.le,m=C===c.ke,g=C===c.ne;var S=l()((v(t={},c.q,b),v(t,c.p,y),v(t,c.r,i),t),u);return r.createElement(a.a,{bounds:!0,innerRef:this.innerRef,onResize:this.onResize},(function(t){var o=t.measureRef;return r.createElement(e,f({ref:p,className:S,getInnerRef:n.getInnerElement,isLarge:m,isMedium:y,isSmall:b,isTouch:i,isVeryLarge:g,measureRef:o},h))}))}}])&&p(o.prototype,s),C&&p(o,C),n}(r.PureComponent),v(t,"defaultProps",{className:"",isTouch:C}),n}},function(e,t,n){e.exports={default:n(617),__esModule:!0}},,,,function(e,t,n){var r=n(180),o=n(368),i=n(157),a=n(369),s=n(376),l=n(215),c=n(184),u=n(379),f=n(381),d=n(266),p=n(219),h=n(135),m=n(385),y=n(386),v=n(221),b=n(34),g=n(134),w=n(390),C=n(35),S=n(392),k=n(110),x=1,E=2,_=4,O="[object Arguments]",P="[object Function]",T="[object GeneratorFunction]",j="[object Object]",I={};I[O]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[j]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[P]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,A,M,L,F){var R,N=n&x,D=n&E,z=n&_;if(A&&(R=L?A(t,M,L,F):A(t)),void 0!==R)return R;if(!C(t))return t;var U=b(t);if(U){if(R=m(t),!N)return c(t,R)}else{var H=h(t),B=H==P||H==T;if(g(t))return l(t,N);if(H==j||H==O||B&&!L){if(R=D||B?{}:v(t),!N)return D?f(t,s(R,t)):u(t,a(R,t))}else{if(!I[H])return L?t:{};R=y(t,H,N)}}F||(F=new r);var V=F.get(t);if(V)return V;F.set(t,R),S(t)?t.forEach((function(r){R.add(e(r,n,A,r,t,F))})):w(t)&&t.forEach((function(r,o){R.set(o,e(r,n,A,o,t,F))}));var W=z?D?p:d:D?keysIn:k,q=U?void 0:W(t);return o(q||t,(function(r,o){q&&(r=t[o=r]),i(R,o,e(r,n,A,o,t,F))})),R}},function(e,t,n){(function(e){function t(e){return(t="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})(e)}var n=function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={};function y(){}function v(){}function b(){}var g={};g[a]=function(){return this};var w=Object.getPrototypeOf,C=w&&w(w(T([])));C&&C!==r&&o.call(C,a)&&(g=C);var S=b.prototype=y.prototype=Object.create(g);function k(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function x(e){var n;this._invoke=function(r,i){function a(){return new Promise((function(n,a){!function n(r,i,a,s){var l=u(e[r],e,i);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"===t(f)&&o.call(f,"__await")?Promise.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):Promise.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}(r,i,n,a)}))}return n=n?n.then(a,a):a()}}function E(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,E(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(103)(e))},function(e,t,n){var r=n(35),o=n(123),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;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(a,"");var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?i:+e}},,,,function(e,t,n){"use strict";var r=n(28),o=n.n(r),i=n(114),a=n.n(i),s=n(67),l=n.n(s),c=n(83),u=n.n(c),f=n(101),d=n.n(f),p=n(115),h=n.n(p),m=n(0),y=n(570),v=(n(86),function(e){function t(){var e,n,r,o;l()(this,t);for(var i=arguments.length,s=Array(i),c=0;c-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var o=getComputedStyle(e);n.margin={top:o?parseInt(o.marginTop):0,right:o?parseInt(o.marginRight):0,bottom:o?parseInt(o.marginBottom):0,left:o?parseInt(o.marginLeft):0}}return n}var p=function(e){return function(t){var n,s;return s=n=function(n){function s(){for(var t,r=arguments.length,o=new Array(r),i=0;io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r1)for(var n=1;n2&&void 0!==o[2]&&o[2],this.parentFolderId=t,e.next=4,this.createAndUploadFolder(n,r);case 4:if(!this.getFolderId()){e.next=8;break}return this.addFilesToUploadQueue(this.getFormattedFiles(),u.a,!0),e.next=8,this.uploadChildFolders(n);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"createFolder",value:function(){var e=this,t=new g.a(S({},this.baseAPIOptions,{id:"folder_".concat(this.parentFolderId)}));return new Promise((function(n,r){t.create(e.parentFolderId,e.name,n,r)}))}}])&&E(t.prototype,n),r&&E(t,r),e}();function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function j(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){T(i,r,o,a,s,"next",e)}function s(e){T(i,r,o,a,s,"throw",e)}a(void 0)}))}}function I(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function z(e,t){for(var n=0;n0||r.setState({canDrop:!1,isDragging:!1,isOver:!1})})),r.enterLeaveCounter=0,r.state={canDrop:!1,isDragging:!1,isOver:!1},r}var s,l,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(i,r),s=i,(l=[{key:"componentDidMount",value:function(){this.bindDragDropHandlers()}},{key:"componentDidUpdate",value:function(){this.droppableEl?Object(F.findDOMNode)(this)!==this.droppableEl&&(this.removeEventListeners(this.droppableEl),this.bindDragDropHandlers()):this.bindDragDropHandlers()}},{key:"componentWillUnmount",value:function(){this.droppableEl&&this.droppableEl instanceof Element&&this.removeEventListeners(this.droppableEl)}},{key:"render",value:function(){var t=this.props,n=t.className,r=D(t,["className"]),i=this.state,s=i.canDrop,l=i.isOver,c=a()(n,{"is-droppable":s,"is-over":l}),u=function(e){for(var t=1;t0&&e<100?"0":"0.4s"};return o.a.createElement("div",{className:"bcu-progress-container",style:t},o.a.createElement("div",{className:"bcu-progress",style:{width:"".concat(e,"%")}}))}}]),t}(r.PureComponent);ue={percent:0},(ce="defaultProps")in(le=fe)?Object.defineProperty(le,ce,{value:ue,enumerable:!0,configurable:!0,writable:!0}):le[ce]=ue;var de=fe,pe=(n(680),function(e){var t=e.progress;return o.a.createElement("div",{className:"bcu-item-progress"},o.a.createElement(de,{percent:t}),o.a.createElement("div",{className:"bcu-progress-label"},t,"%"))});function he(){return(he=Object.assign||function(e){for(var t=1;t-1}))},onDrop:function(e,t){(0,t.addDataTransferItemsToUploadQueue)(e.dataTransfer.items)}})((function(e){var t=e.canDrop,n=e.isOver,r=e.isTouch,i=e.view,a=e.items,s=e.addFiles,l=e.onClick,c=e.isFolderUploadEnabled,u=a.length>0;return o.a.createElement("div",{className:"bcu-droppable-content"},o.a.createElement(Ie,{items:a,onClick:l,view:i}),o.a.createElement(ze,{canDrop:t,hasItems:u,isFolderUploadEnabled:c,isOver:n,isTouch:r,onSelect:function(e){var t=e.target.files;return s(t)},view:i}))}))),He=n(206),Be=(n(690),function(e){var t=e.onClick,n=e.hasMultipleFailedUploads?te.a.resumeAll:te.a.resume;return o.a.createElement("div",{className:"bcu-uploads-manager-action"},o.a.createElement(He.a,{onClick:function(e){e.stopPropagation(),t(w.Fe)},type:"button"},o.a.createElement(ee.b,n)))}),Ve=(n(692),function(e){var t=e.percent,n=e.view,r=e.onClick,i=e.onKeyDown,a=e.onUploadsManagerActionClick,s=e.isDragging,l=e.isResumeVisible,c=e.isVisible,u=(e.isExpanded,e.hasMultipleFailedUploads),f=s||!c,d=f?o.a.createElement(ee.b,te.a.uploadsManagerUploadPrompt):function(e){switch(e){case w.qf:return o.a.createElement(ee.b,te.a.uploadsManagerUploadInProgress);case w.rf:return o.a.createElement(ee.b,te.a.uploadsManagerUploadComplete);case w.pf:return o.a.createElement(ee.b,te.a.uploadsManagerUploadPrompt);case w.hf:return o.a.createElement(ee.b,te.a.uploadsManagerUploadFailed);default:return""}}(n),p=f?0:function(e,t){switch(e){case w.rf:return 100;case w.pf:case w.hf:return 0;default:return t}}(n,t);return o.a.createElement("div",{className:"bcu-overall-progress-bar",onClick:r,onKeyDown:i,role:"button",tabIndex:c?"0":"-1"},o.a.createElement("span",{className:"bcu-upload-status"},d),o.a.createElement(de,{percent:p}),l&&o.a.createElement(Be,{hasMultipleFailedUploads:u,onClick:a}),o.a.createElement("span",{className:"bcu-uploads-manager-toggle"}))}),We=(n(694),function(e){var t=e.items,n=e.view,r=e.onItemActionClick,i=e.onRemoveActionClick,s=e.onUploadsManagerActionClick,l=e.toggleUploadsManager,c=e.isExpanded,u=e.isVisible,f=e.isResumableUploadsEnabled,d=e.isDragging,p=0,h=0,m=0;t.forEach((function(e){e.status===w.Fe||e.isFolder?e.status===w.Fe&&(p+=1):(h+=e.size,m+=e.size*e.progress/100)}));var y=m/h*100,v=f&&p>0,b=p>1;return o.a.createElement("div",{"data-resin-component":"uploadsmanager","data-resin-feature":"uploads",className:a()("be bcu-uploads-manager-container",{"bcu-is-expanded":c,"bcu-is-visible":u})},o.a.createElement(Ve,{isDragging:d,isExpanded:c,isResumeVisible:v,isVisible:u,hasMultipleFailedUploads:b,onClick:l,onKeyDown:function(e){switch(e.key){case"Enter":case"Space":l()}},onUploadsManagerActionClick:s,percent:y,view:n}),o.a.createElement("div",{className:"bcu-uploads-manager-item-list"},o.a.createElement(Ie,{isResumableUploadsEnabled:f,items:t,onClick:r,onRemoveClick:i,view:n})))}),qe=n(38),Ge=n(22);n(696);function Ke(){return(Ke=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],o=n.props,i=o.onBeforeUpload,a=o.rootFolderId;if(e&&0!==e.length){var s=n.getNewFiles(e);if(0!==s.length){var l={};s.forEach((function(e){l[Object(b.j)(e,a)]=!0})),clearTimeout(n.resetItemsTimeout);var c=Object(b.f)(s[0]);n.setState((function(e){return{itemIds:tt({},e.itemIds,{},l)}}),(function(){i(s),c.webkitRelativePath&&!r?n.addFilesWithRelativePathToQueue(s,t):n.addFilesWithoutRelativePathToQueue(s,t)}))}}})),at(ot(n),"addDataTransferItemsToUploadQueue",(function(e,t){var r=n.props.isFolderUploadEnabled;if(e&&0!==e.length){var o=[],i=[];Array.from(e).forEach((function(e){var t=Object(b.l)(e);t&&r?o.push(e):t||i.push(e)})),n.addFileDataTransferItemsToUploadQueue(i,t),n.addFolderDataTransferItemsToUploadQueue(o,t)}})),at(ot(n),"addFileDataTransferItemsToUploadQueue",(function(e,t){e.forEach(function(){var e=Je(regeneratorRuntime.mark((function e(r){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.h)(r);case 2:if(o=e.sent){e.next=5;break}return e.abrupt("return");case 5:n.addFilesToUploadQueue([o],t);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})),at(ot(n),"addFolderDataTransferItemsToUploadQueue",function(){var e=Je(regeneratorRuntime.mark((function e(t,r){var o,i,a,s,l,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.props.rootFolderId,i=n.state.itemIds,0!==t.length){e.next=4;break}return e.abrupt("return");case 4:if((a=n.getNewDataTransferItems(t)).forEach((function(e){i[Object(b.d)(e,o)]=!0})),0!==a.length){e.next=8;break}return e.abrupt("return");case 8:s=Object(b.c)(a[0]),l=s.folderId,c=void 0===l?o:l,a.forEach(function(){var e=Je(regeneratorRuntime.mark((function e(t){var o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.getFolderUploadAPI(c),e.next=3,o.buildFolderTreeFromDataTransferItem(t);case 3:n.addFolderToUploadQueue(o,r,s);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),at(ot(n),"getFolderUploadAPI",(function(e){var t=n.getBaseAPIOptions();return new M(n.addFilesToUploadQueue,e,n.addToQueue,t)})),at(ot(n),"addFolderToUploadQueue",(function(e,t,r){n.addToQueue([{api:e,extension:"",isFolder:!0,name:e.folder.name,options:r,progress:0,size:1,status:w.He}],t)})),at(ot(n),"addFilesWithoutRelativePathToQueue",(function(e,t){var r=n.state.itemIds,o=n.props.rootFolderId,i=e.map((function(e){var t=Object(b.f)(e),i=Object(b.g)(e),a=t.name,s=t.size,l=a.substr(a.lastIndexOf(".")+1);l.length===a.length&&(l="");var c={api:n.getUploadAPI(t,i),extension:l,file:t,name:a,progress:0,size:s,status:w.He};return i&&(c.options=i),r[Object(b.j)(c,o)]=!0,c}));0!==i.length&&(n.setState({itemIds:r}),n.addToQueue(i,t))})),at(ot(n),"addToQueue",(function(e,t){var r=n.props,o=r.fileLimit,i=r.useUploadsManager,a=n.state,s=a.items,l=a.isUploadsManagerExpanded,c=[],u=s.length,f=u+e.length;f>o?(c=s.concat(e.slice(0,o-s.length)),n.setState({errorCode:w.Yb})):(c=s.concat(e),n.setState({errorCode:""}),u=ct&&i&&!l&&(n.isAutoExpanded=!0,n.expandUploadsManager())),n.updateViewAndCollection(c,(function(){t&&t(),n.state.view===w.qf&&n.upload()}))})),at(ot(n),"removeFileFromUploadQueue",(function(e){var t=n.props,r=t.onCancel,o=t.useUploadsManager,i=n.state.items;n.setState({errorCode:""}),e.api.cancel(),i.splice(i.indexOf(e),1),r([e]),n.updateViewAndCollection(i,(function(){o&&!i.length&&n.minimizeUploadsManager(),n.state.view===w.qf&&n.upload()}))})),at(ot(n),"cancel",(function(){n.state.items.forEach((function(e){var t=e.api;e.status===w.Ge&&t.cancel()})),n.updateViewAndCollection([])})),at(ot(n),"upload",(function(){n.state.items.forEach((function(e){e.status===w.He&&n.uploadFile(e)}))})),at(ot(n),"handleUploadSuccess",(function(e,t){var r=n.props,o=r.onUpload,i=r.useUploadsManager;if(e.progress=100,e.error||(e.status=w.Ee),t&&1===t.length){var a=Ye(t,1)[0];e.boxFile=a}var s=n.state.items;s[s.indexOf(e)]=e,i?(o(e),n.checkClearUploadItems()):o(e.boxFile),n.updateViewAndCollection(s,(function(){n.state.view===w.qf&&n.upload()}))})),at(ot(n),"resetUploadManagerExpandState",(function(){n.isAutoExpanded=!1,n.setState({isUploadsManagerExpanded:!1})})),at(ot(n),"handleUploadError",(function(e,t){var r=n.props,o=r.onError,i=r.useUploadsManager,a=e.file,s=n.state.items;e.status=w.Fe,e.error=t;var l=Xe(s),c=l.findIndex((function(t){return t===e}));-1!==c&&(l[c]=e),o(i?{item:e,error:t}:{file:a,error:t}),n.updateViewAndCollection(l,(function(){i&&(n.isAutoExpanded=!0,n.expandUploadsManager()),n.state.view===w.qf&&n.upload()}))})),at(ot(n),"handleUploadProgress",(function(e,t){if(t.total&&e.status!==w.Ee&&e.status!==w.Ie){e.progress=Math.min(Math.round(t.loaded/t.total*100),100),e.status=100===e.progress?w.Ie:w.Ge;var r=n.state.items;r[r.indexOf(e)]=e,n.updateViewAndCollection(r)}})),at(ot(n),"onClick",(function(e){var t=n.props,r=t.chunked,o=t.isResumableUploadsEnabled,i=e.status,a=e.file,s=r&&a.size>st&&Object(b.m)(),l=o&&s&&e.api.sessionId;switch(i){case w.Ge:case w.Ie:case w.Ee:case w.He:n.removeFileFromUploadQueue(e);break;case w.Fe:l?n.resumeFile(e):(n.resetFile(e),n.uploadFile(e))}})),at(ot(n),"clickAllWithStatus",(function(e){n.state.items.forEach((function(t){e&&t.status!==e||n.onClick(t)}))})),at(ot(n),"expandUploadsManager",(function(){n.props.useUploadsManager&&(clearTimeout(n.resetItemsTimeout),n.setState({isUploadsManagerExpanded:!0}))})),at(ot(n),"minimizeUploadsManager",(function(){var e=n.props,t=e.useUploadsManager,r=e.onMinimize;t&&r&&(clearTimeout(n.resetItemsTimeout),r(),n.resetUploadManagerExpandState(),n.checkClearUploadItems())})),at(ot(n),"checkClearUploadItems",(function(){n.resetItemsTimeout=setTimeout(n.resetUploadsManagerItemsWhenUploadsComplete,lt)})),at(ot(n),"toggleUploadsManager",(function(){n.state.isUploadsManagerExpanded?n.minimizeUploadsManager():n.expandUploadsManager()})),at(ot(n),"resetUploadsManagerItemsWhenUploadsComplete",(function(){var e=n.state,t=e.view,r=e.items,o=e.isUploadsManagerExpanded,i=n.props,a=i.useUploadsManager,s=i.onCancel;o&&a&&r.length||t===w.qf||(s(r),n.setState({items:[],itemIds:{}}))})),at(ot(n),"addFilesWithOptionsToUploadQueueAndStartUpload",(function(e,t){n.addFilesToUploadQueue(e,n.upload),n.addDataTransferItemsToUploadQueue(t,n.upload)}));var r=e.rootFolderId,o=e.token,i=e.useUploadsManager;return n.state={view:r&&o||i?w.pf:w.hf,items:[],errorCode:"",itemIds:{},isUploadsManagerExpanded:!1},n.id=d()("bcu_"),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&it(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.rootElement=document.getElementById(this.id),this.appElement=this.rootElement}},{key:"componentWillUnmount",value:function(){this.cancel()}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.files,n=e.dataTransferItems,r=e.useUploadsManager,o=Array.isArray(t)&&t.length>0,i=Array.isArray(n)&&n.length>0;r&&(o||i)&&this.addFilesWithOptionsToUploadQueueAndStartUpload(t,n)}},{key:"createAPIFactory",value:function(e){var t=this.props.rootFolderId,n=l()(e,"folderId")||t,r=l()(e,"fileId"),o=Object(m.c)(n),i=r?Object(m.b)(r):null;return new L.a(tt({},this.getBaseAPIOptions(),{id:i||o},e))}},{key:"addFilesWithRelativePathToQueue",value:function(e,t){if(0!==e.length){var n=this.props.rootFolderId,r=Object(b.g)(e[0]),o=r.folderId,i=void 0===o?n:o,a=this.getFolderUploadAPI(i);a.buildFolderTreeFromWebkitRelativePath(e),this.addFolderToUploadQueue(a,t,r)}}},{key:"getUploadAPI",value:function(e,t){var n=this.props,r=n.chunked,o=n.isResumableUploadsEnabled,i=e.size,a=this.createAPIFactory(t);if(r&&i>st){if(Object(b.m)()){var s=a.getChunkedUploadAPI();return o&&(s.isResumableUploadsEnabled=!0),s}console.warn("Chunked uploading is enabled, but not supported by your browser. You may need to enable HTTPS.")}return a.getPlainUploadAPI()}},{key:"uploadFile",value:function(e){var t=this,n=this.props,r=n.overwrite,o=n.rootFolderId,i=e.api,a=e.file,s=e.options,l=this.state.items;if(!(l.filter((function(e){return e.status===w.Ge})).length>=6)){var c={file:a,folderId:s&&s.folderId?s.folderId:o,errorCallback:function(n){return t.handleUploadError(e,n)},progressCallback:function(n){return t.handleUploadProgress(e,n)},successCallback:function(n){return t.handleUploadSuccess(e,n)},overwrite:r,fileId:s&&s.fileId?s.fileId:null};e.status=w.Ge,l[l.indexOf(e)]=e,i.upload(c),this.updateViewAndCollection(l)}}},{key:"resumeFile",value:function(e){var t=this,n=this.props,r=n.overwrite,o=n.rootFolderId,i=e.api,a=e.file,s=e.options,l=this.state.items;if(!(l.filter((function(e){return e.status===w.Ge})).length>=6)){var c={file:a,folderId:s&&s.folderId?s.folderId:o,errorCallback:function(n){return t.handleUploadError(e,n)},progressCallback:function(n){return t.handleUploadProgress(e,n)},successCallback:function(n){return t.handleUploadSuccess(e,n)},overwrite:r,sessionId:i&&i.sessionId?i.sessionId:null,fileId:s&&s.fileId?s.fileId:null};e.status=w.Ge,delete e.error,l[l.indexOf(e)]=e,i.resume(c),this.updateViewAndCollection(l)}}},{key:"resetFile",value:function(e){var t=e.api,n=e.file,r=e.options;t&&"function"==typeof t.cancel&&t.cancel(),e.api=this.getUploadAPI(n,r),e.progress=0,e.status=w.He,delete e.error;var o=this.state.items;o[o.indexOf(e)]=e,this.updateViewAndCollection(o)}},{key:"updateViewAndCollection",value:function(e,t){var n=this.props,r=n.onComplete,o=n.useUploadsManager,i=e.some((function(e){return e.status!==w.Ee})),a=e.some((function(e){return e.status===w.Fe})),s=!e.some((function(e){return e.status!==w.He})),l=e.every((function(e){return e.status!==w.He&&e.status!==w.Ge})),c="";e&&0===e.length||s?c=w.pf:a&&o?c=w.hf:i?c=w.qf:(c=w.rf,o||(r(h()(e.map((function(e){return e.boxFile})))),e=[])),l&&o&&(this.isAutoExpanded&&this.resetUploadManagerExpandState(),r(e));var u={items:e,view:c};0===e.length&&(u.itemIds={},u.errorCode=""),this.setState(u,t)}},{key:"render",value:function(){var e=this.props,t=e.language,n=e.messages,r=e.onClose,i=e.className,s=e.measureRef,l=e.isTouch,c=e.fileLimit,u=e.useUploadsManager,f=e.isResumableUploadsEnabled,d=e.isFolderUploadEnabled,p=e.isDraggingItemsToUploadsManager,h=void 0!==p&&p,m=this.state,y=m.view,b=m.items,g=m.errorCode,C=m.isUploadsManagerExpanded,S=!(0===b.length&&!h),k=0!==b.length,x=b.some((function(e){return e.status===w.Ge})),E=b.every((function(e){return e.status===w.Ee||e.status===w.Ie})),_=a()("bcu",i,{"be-app-element":!u,be:!u});return o.a.createElement(v.a,{language:t,messages:n},u?o.a.createElement("div",{ref:s,className:_,id:this.id},o.a.createElement(We,{isDragging:h,isExpanded:C,isResumableUploadsEnabled:f,isVisible:S,items:b,onItemActionClick:this.onClick,onRemoveActionClick:this.removeFileFromUploadQueue,onUploadsManagerActionClick:this.clickAllWithStatus,toggleUploadsManager:this.toggleUploadsManager,view:y})):o.a.createElement("div",{ref:s,className:_,id:this.id},o.a.createElement(Ue,{addDataTransferItemsToUploadQueue:this.addDataTransferItemsToUploadQueue,addFiles:this.addFilesToUploadQueue,allowedTypes:["Files"],isFolderUploadEnabled:d,isTouch:l,items:b,onClick:this.onClick,view:y}),o.a.createElement(Qe,{errorCode:g,fileLimit:c,hasFiles:k,isLoading:x,onCancel:this.cancel,onClose:r,onUpload:this.upload,isDone:E})))}}])&&nt(n.prototype,r),i&&nt(n,i),t}(r.Component);at(ut,"defaultProps",{rootFolderId:w.V,apiHost:w.K,chunked:!0,className:"",clientName:w.A,fileLimit:100,uploadHost:w.N,onBeforeUpload:u.a,onClose:u.a,onComplete:u.a,onError:u.a,onUpload:u.a,overwrite:!0,useUploadsManager:!1,files:[],onMinimize:u.a,onCancel:u.a,isFolderUploadEnabled:!1,isResumableUploadsEnabled:!1,dataTransferItems:[],isDraggingItemsToUploadsManager:!1});t.a=Object(y.a)(ut)},function(e,t,n){e.exports={default:n(623),__esModule:!0}},,,,,,,,,,function(e,t,n){function r(e){return(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})(e)}var o=n(34),i=n(123),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,n){"use strict";var r=n(0);n(579);t.a=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,i=e.isDisabled;return r.createElement("div",{className:"btn-group ".concat(o," ").concat(i?"is-disabled":"")},t)}},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";var r=n(0),o=n(6);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#222":i,s=e.height,l=void 0===s?9:s,c=e.title,u=e.width,f=void 0===u?9:u;return r.createElement(o.a,{className:"icon-plus-thin ".concat(n),height:l,title:c,viewBox:"0 0 9 9",width:f},r.createElement("path",{className:"fill-color",d:"M5 4V0H4v4H0v1h4v4h1V5h4V4H5z",fill:a,fillRule:"evenodd"}))}},function(e,t,n){"use strict";var r=n(0),o=n(6);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#222":i,s=e.height,l=void 0===s?1:s,c=e.title,u=e.width,f=void 0===u?9:u;return r.createElement(o.a,{className:"icon-minus-thin ".concat(n),height:l,title:c,viewBox:"0 0 9 1",width:f},r.createElement("path",{className:"fill-color",d:"M0 0h9v1H0z",fill:a,fillRule:"evenodd"}))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){var r=n(92),o=n(120),i=n(34),a=n(121),s=n(159),l=n(111);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,f=!1;++cL.length&&L.push(e)}function N(e,t,n){return null==e?0:function e(t,n,o,i){var l=r(t);"undefined"!==l&&"boolean"!==l||(t=null);var c=!1;if(null===t)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case a:case s:c=!0}}if(c)return o(i,t,""===n?"."+D(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var u=0;uthis.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=fe,e.release=de}i(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=le)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=le)},persist:function(){this.isPersistent=le},isPersistent:ce,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ce,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,pe(n),n},pe(ue);var he=ue.extend({data:null}),me=ue.extend({data:null}),ye=[9,13,27,32],ve=K&&"CompositionEvent"in window,be=null;K&&"documentMode"in document&&(be=document.documentMode);var ge=K&&"TextEvent"in window&&!be,we=K&&(!ve||be&&8=be),Ce=String.fromCharCode(32),Se={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ke=!1;function xe(e,t){switch(e){case"keyup":return-1!==ye.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ee(e){return"object"===r(e=e.detail)&&"data"in e?e.data:null}var _e=!1;var Oe={eventTypes:Se,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(ve)e:{switch(e){case"compositionstart":o=Se.compositionStart;break e;case"compositionend":o=Se.compositionEnd;break e;case"compositionupdate":o=Se.compositionUpdate;break e}o=void 0}else _e?xe(e,n)&&(o=Se.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Se.compositionStart);return o?(we&&"ko"!==n.locale&&(_e||o!==Se.compositionStart?o===Se.compositionEnd&&_e&&(i=se()):(ie="value"in(oe=r)?oe.value:oe.textContent,_e=!0)),o=he.getPooled(o,t,n,r),i?o.data=i:null!==(i=Ee(n))&&(o.data=i),G(o),i=o):i=null,(e=ge?function(e,t){switch(e){case"compositionend":return Ee(t);case"keypress":return 32!==t.which?null:(ke=!0,Ce);case"textInput":return(e=t.data)===Ce&&ke?null:e;default:return null}}(e,n):function(e,t){if(_e)return"compositionend"===e||!ve&&xe(e,t)?(e=se(),ae=ie=oe=null,_e=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1t}return!1}function bt(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){gt[e]=new bt(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];gt[t]=new bt(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){gt[e]=new bt(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){gt[e]=new bt(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){gt[e]=new bt(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){gt[e]=new bt(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){gt[e]=new bt(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){gt[e]=new bt(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){gt[e]=new bt(e,5,!1,e.toLowerCase(),null,!1)}));var wt=/[\-:]([a-z])/g;function Ct(e){return e[1].toUpperCase()}function St(e,t,n,r){var o=gt.hasOwnProperty(t)?gt[t]:null;(null!==o?0===o.type:!r&&(2Ln.length&&Ln.push(e)}}}var Bn=new("function"==typeof WeakMap?WeakMap:Map);function Vn(e){var t=Bn.get(e);return void 0===t&&(t=new Set,Bn.set(e,t)),t}function Wn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function qn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gn(e,t){var n,r=qn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=qn(r)}}function Kn(){for(var e=window,t=Wn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Wn((e=t.contentWindow).document)}return t}function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Zn=K&&"documentMode"in document&&11>=document.documentMode,Xn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Yn=null,$n=null,Jn=null,er=!1;function tr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return er||null==Yn||Yn!==Wn(n)?null:("selectionStart"in(n=Yn)&&Qn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Jn&&an(Jn,n)?null:(Jn=n,(e=ue.getPooled(Xn.select,$n,e,t)).type="select",e.target=Yn,G(e),e))}var nr={eventTypes:Xn,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Vn(i),o=m.onSelect;for(var a=0;a=t.length))throw s(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:kt(n)}}function sr(e,t){var n=kt(t.value),r=kt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function lr(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}A.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k=U,x=D,E=z,A.injectEventPluginsByName({SimpleEventPlugin:An,EnterLeaveEventPlugin:nn,ChangeEventPlugin:Wt,SelectEventPlugin:nr,BeforeInputEventPlugin:Oe});var cr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function ur(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ur(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var dr=void 0,pr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==cr.svg||"innerHTML"in e)e.innerHTML=t;else{for((dr=dr||document.createElement("div")).innerHTML=""+t+"",t=dr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function hr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var mr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!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},yr=["Webkit","ms","Moz","O"];function vr(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||mr.hasOwnProperty(e)&&mr[e]?(""+t).trim():t+"px"}function br(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=vr(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(mr).forEach((function(e){yr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mr[t]=mr[e]}))}));var gr=i({menuitem:!0},{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});function wr(e,t){if(t){if(gr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw s(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw s(Error(60));if(!("object"===r(t.dangerouslySetInnerHTML)&&"__html"in t.dangerouslySetInnerHTML))throw s(Error(61))}if(null!=t.style&&"object"!==r(t.style))throw s(Error(62),"")}}function Cr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Sr(e,t){var n=Vn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=m[t];for(var r=0;rAr||(e.current=Ir[Ar],Ir[Ar]=null,Ar--)}function Lr(e,t){Ir[++Ar]=e.current,e.current=t}var Fr={},Rr={current:Fr},Nr={current:!1},Dr=Fr;function zr(e,t){var n=e.type.contextTypes;if(!n)return Fr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ur(e){return null!=(e=e.childContextTypes)}function Hr(e){Mr(Nr),Mr(Rr)}function Br(e){Mr(Nr),Mr(Rr)}function Vr(e,t,n){if(Rr.current!==Fr)throw s(Error(168));Lr(Rr,t),Lr(Nr,n)}function Wr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw s(Error(108),ft(t)||"Unknown",o);return i({},n,r)}function qr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Fr,Dr=Rr.current,Lr(Rr,t),Lr(Nr,Nr.current),!0}function Gr(e,t,n){var r=e.stateNode;if(!r)throw s(Error(169));n?(t=Wr(e,t,Dr),r.__reactInternalMemoizedMergedChildContext=t,Mr(Nr),Mr(Rr),Lr(Rr,t)):Mr(Nr),Lr(Nr,n)}var Kr=a.unstable_runWithPriority,Qr=a.unstable_scheduleCallback,Zr=a.unstable_cancelCallback,Xr=a.unstable_shouldYield,Yr=a.unstable_requestPaint,$r=a.unstable_now,Jr=a.unstable_getCurrentPriorityLevel,eo=a.unstable_ImmediatePriority,to=a.unstable_UserBlockingPriority,no=a.unstable_NormalPriority,ro=a.unstable_LowPriority,oo=a.unstable_IdlePriority,io={},ao=void 0!==Yr?Yr:function(){},so=null,lo=null,co=!1,uo=$r(),fo=1e4>uo?$r:function(){return $r()-uo};function po(){switch(Jr()){case eo:return 99;case to:return 98;case no:return 97;case ro:return 96;case oo:return 95;default:throw s(Error(332))}}function ho(e){switch(e){case 99:return eo;case 98:return to;case 97:return no;case 96:return ro;case 95:return oo;default:throw s(Error(332))}}function mo(e,t){return e=ho(e),Kr(e,t)}function yo(e,t,n){return e=ho(e),Qr(e,t,n)}function vo(e){return null===so?(so=[e],lo=Qr(eo,go)):so.push(e),io}function bo(){null!==lo&&Zr(lo),go()}function go(){if(!co&&null!==so){co=!0;var e=0;try{var t=so;mo(99,(function(){for(;e=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function Co(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var So={current:null},ko=null,xo=null,Eo=null;function _o(){Eo=xo=ko=null}function Oo(e,t){var n=e.type._context;Lr(So,n._currentValue),n._currentValue=t}function Po(e){var t=So.current;Mr(So),e.type._context._currentValue=t}function To(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime=t&&(pa=!0),e.firstContext=null)}function Io(e,t){if(Eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===xo){if(null===ko)throw s(Error(308));xo=t,ko.dependencies={expirationTime:0,firstContext:t,responders:null}}else xo=xo.next=t;return e._currentValue}var Ao=!1;function Mo(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Lo(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Fo(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Ro(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function No(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=Mo(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=Mo(e.memoizedState),o=n.updateQueue=Mo(n.memoizedState)):r=e.updateQueue=Lo(o):null===o&&(o=n.updateQueue=Lo(r));null===o||r===o?Ro(r,t):null===r.lastUpdate||null===o.lastUpdate?(Ro(r,t),Ro(o,t)):(Ro(r,t),o.lastUpdate=t)}function Do(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Mo(e.memoizedState):zo(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function zo(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Lo(t)),t}function Uo(e,t,n,r,o,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=n.payload)?e.call(a,r,o):e))break;return i({},r,o);case 2:Ao=!0}return r}function Ho(e,t,n,r,o){Ao=!1;for(var i=(t=zo(e,t)).baseState,a=null,s=0,l=t.firstUpdate,c=i;null!==l;){var u=l.expirationTime;ud?(y=f,f=null):y=f.sibling;var v=h(r,f,s[d],l);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(r,f),i=a(v,i,d),null===u?c=v:u.sibling=v,u=v,f=y}if(d===s.length)return n(r,f),c;if(null===f){for(;dy?(v=d,d=null):v=d.sibling;var g=h(r,d,b.value,c);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(r,d),i=a(g,i,y),null===f?u=g:f.sibling=g,f=g,d=v}if(b.done)return n(r,d),u;if(null===d){for(;!b.done;y++,b=l.next())null!==(b=p(r,b.value,c))&&(i=a(b,i,y),null===f?u=b:f.sibling=b,f=b);return u}for(d=o(r,d);!b.done;y++,b=l.next())null!==(b=m(d,r,y,b.value,c))&&(e&&null!==b.alternate&&d.delete(null===b.key?y:b.key),i=a(b,i,y),null===f?u=b:f.sibling=b,f=b);return e&&d.forEach((function(e){return t(r,e)})),u}return function(e,o,a,c){var u="object"===r(a)&&null!==a&&a.type===$e&&null===a.key;u&&(a=a.props.children);var f="object"===r(a)&&null!==a;if(f)switch(a.$$typeof){case Xe:e:{for(f=a.key,u=o;null!==u;){if(u.key===f){if(7===u.tag?a.type===$e:u.elementType===a.type){n(e,u.sibling),(o=i(u,a.type===$e?a.props.children:a.props)).ref=Jo(e,u,a),o.return=e,e=o;break e}n(e,u);break}t(e,u),u=u.sibling}a.type===$e?((o=cl(a.props.children,e.mode,c,a.key)).return=e,e=o):((c=ll(a.type,a.key,a.props,null,e.mode,c)).ref=Jo(e,o,a),c.return=e,e=c)}return l(e);case Ye:e:{for(u=a.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),(o=i(o,a.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=fl(a,e.mode,c)).return=e,e=o}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),(o=i(o,a)).return=e,e=o):(n(e,o),(o=ul(a,e.mode,c)).return=e,e=o),l(e);if($o(a))return y(e,o,a,c);if(ut(a))return v(e,o,a,c);if(f&&ei(e,a),void 0===a&&!u)switch(e.tag){case 1:case 0:throw e=e.type,s(Error(152),e.displayName||e.name||"Component")}return n(e,o)}}var ni=ti(!0),ri=ti(!1),oi={},ii={current:oi},ai={current:oi},si={current:oi};function li(e){if(e===oi)throw s(Error(174));return e}function ci(e,t){Lr(si,t),Lr(ai,e),Lr(ii,oi);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fr(null,"");break;default:t=fr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Mr(ii),Lr(ii,t)}function ui(e){Mr(ii),Mr(ai),Mr(si)}function fi(e){li(si.current);var t=li(ii.current),n=fr(t,e.type);t!==n&&(Lr(ai,e),Lr(ii,n))}function di(e){ai.current===e&&(Mr(ii),Mr(ai))}var pi=1,hi=1,mi=2,yi={current:0};function vi(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bi=0,gi=2,wi=4,Ci=8,Si=16,ki=32,xi=64,Ei=128,_i=Ke.ReactCurrentDispatcher,Oi=0,Pi=null,Ti=null,ji=null,Ii=null,Ai=null,Mi=null,Li=0,Fi=null,Ri=0,Ni=!1,Di=null,zi=0;function Ui(){throw s(Error(321))}function Hi(e,t){if(null===t)return!1;for(var n=0;nLi&&(Li=f)):(Ws(f,c.suspenseConfig),i=c.eagerReducer===e?c.eagerState:e(i,c.action)),a=c,c=c.next}while(null!==c&&c!==r);u||(l=a,o=i),rn(i,t.memoizedState)||(pa=!0),t.memoizedState=i,t.baseUpdate=l,t.baseState=o,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function Qi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Fi?(Fi={lastEffect:null}).lastEffect=e.next=e:null===(t=Fi.lastEffect)?Fi.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Fi.lastEffect=e),e}function Zi(e,t,n,r){var o=Wi();Ri|=e,o.memoizedState=Qi(t,n,void 0,void 0===r?null:r)}function Xi(e,t,n,r){var o=qi();r=void 0===r?null:r;var i=void 0;if(null!==Ti){var a=Ti.memoizedState;if(i=a.destroy,null!==r&&Hi(r,a.deps))return void Qi(bi,n,i,r)}Ri|=e,o.memoizedState=Qi(t,n,i,r)}function Yi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function $i(){}function Ji(e,t,n){if(!(25>zi))throw s(Error(301));var r=e.alternate;if(e===Pi||null!==r&&r===Pi)if(Ni=!0,e={expirationTime:Oi,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Di&&(Di=new Map),void 0===(n=Di.get(t)))Di.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var o=Is(),i=Wo.suspense;i={expirationTime:o=As(o,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.last;if(null===a)i.next=i;else{var l=a.next;null!==l&&(i.next=l),a.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var c=t.lastRenderedState,u=r(c,n);if(i.eagerReducer=r,i.eagerState=u,rn(u,c))return}catch(e){}Ls(e,o)}}var ea={readContext:Io,useCallback:Ui,useContext:Ui,useEffect:Ui,useImperativeHandle:Ui,useLayoutEffect:Ui,useMemo:Ui,useReducer:Ui,useRef:Ui,useState:Ui,useDebugValue:Ui,useResponder:Ui},ta={readContext:Io,useCallback:function(e,t){return Wi().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:function(e,t){return Zi(516,Ei|xi,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Zi(4,wi|ki,Yi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zi(4,wi|ki,e,t)},useMemo:function(e,t){var n=Wi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ji.bind(null,Pi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Wi().memoizedState=e},useState:function(e){var t=Wi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Gi,lastRenderedState:e}).dispatch=Ji.bind(null,Pi,e),[t.memoizedState,e]},useDebugValue:$i,useResponder:sn},na={readContext:Io,useCallback:function(e,t){var n=qi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Hi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Io,useEffect:function(e,t){return Xi(516,Ei|xi,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Xi(4,wi|ki,Yi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xi(4,wi|ki,e,t)},useMemo:function(e,t){var n=qi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Hi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Ki,useRef:function(){return qi().memoizedState},useState:function(e){return Ki(Gi)},useDebugValue:$i,useResponder:sn},ra=null,oa=null,ia=!1;function aa(e,t){var n=il(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function la(e){if(ia){var t=oa;if(t){var n=t;if(!sa(e,t)){if(!(t=jr(n.nextSibling))||!sa(e,t))return e.effectTag|=2,ia=!1,void(ra=e);aa(ra,n)}ra=e,oa=jr(t.firstChild)}else e.effectTag|=2,ia=!1,ra=e}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;ra=e}function ua(e){if(e!==ra)return!1;if(!ia)return ca(e),ia=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Or(t,e.memoizedProps))for(t=oa;t;)aa(e,t),t=jr(t.nextSibling);return ca(e),oa=ra?jr(e.stateNode.nextSibling):null,!0}function fa(){oa=ra=null,ia=!1}var da=Ke.ReactCurrentOwner,pa=!1;function ha(e,t,n,r){t.child=null===e?ri(t,null,n,r):ni(t,e.child,n,r)}function ma(e,t,n,r,o){n=n.render;var i=t.ref;return jo(t,o),r=Bi(e,t,n,r,i,o),null===e||pa?(t.effectTag|=1,ha(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Oa(e,t,o))}function ya(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||al(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ll(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,va(e,t,a,r,o,i))}return a=e.child,ot)&&Os.set(e,t))}}function Fs(e,t){e.expirationTimeo.firstPendingTime&&(o.firstPendingTime=t),0===(e=o.lastPendingTime)||t component higher in the tree to provide a loading indicator or placeholder to display."+dt(u))}ds!==ss&&(ds=os),f=Fa(f,u),u=c;do{switch(u.tag){case 3:u.effectTag|=2048,u.expirationTime=d,Do(u,d=Qa(u,f,d));break e;case 1:if(p=f,l=u.type,c=u.stateNode,0==(64&u.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==c&&"function"==typeof c.componentDidCatch&&(null===Ss||!Ss.has(c)))){u.effectTag|=2048,u.expirationTime=d,Do(u,d=Za(u,p,d));break e}}u=u.return}while(null!==u)}us=Gs(a)}if(ls=o,_o(),Ya.current=i,null!==us)return Vs.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(yo(97,(function(){return n._onComplete(),null})),!0)}(e,t))return null;switch(cs=null,ds){case rs:throw s(Error(328));case os:return(o=e.lastPendingTime)(n=(o=fo())-n)&&(n=0),(t=10*(1073741821-t)-o)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Xa(n/1960))-n)&&(n=t)),10=(t=0|(i=ms).busyMinDurationMs)?t=0:(n=0|i.busyDelayMs,t=(o=fo()-(10*(1073741821-o)-(0|i.timeoutMs||5e3)))<=n?0:n+t-o),10<\/script>",f=u.removeChild(u.firstChild)):"string"==typeof n.is?f=f.createElement(u,{is:n.is}):(f=f.createElement(u),"select"===u&&(u=f,n.multiple?u.multiple=!0:n.size&&(u.size=n.size))):f=f.createElementNS(l,u),(u=f)[F]=c,u[R]=n,Ta(n=u,t,!1,!1),c=n;var d=r,p=Cr(a,o);switch(a){case"iframe":case"object":case"embed":Nn("load",c),r=o;break;case"video":case"audio":for(r=0;ro.tailExpiration&&1n&&(n=a),(c=o.childExpirationTime)>n&&(n=c),o=o.sibling;r.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=us.firstEffect),null!==us.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=us.firstEffect),e.lastEffect=us.lastEffect),1o?i:o,e.firstPendingTime=o,ow&&(C=w,w=P,P=C),C=Gn(E,P),S=Gn(E,w),C&&S&&(1!==O.rangeCount||O.anchorNode!==C.node||O.anchorOffset!==C.offset||O.focusNode!==S.node||O.focusOffset!==S.offset)&&((_=_.createRange()).setStart(C.node,C.offset),O.removeAllRanges(),P>w?(O.addRange(_),O.extend(S.node,S.offset)):(_.setEnd(S.node,S.offset),O.addRange(_))))),_=[];for(O=E;O=O.parentNode;)1===O.nodeType&&_.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<_.length;E++)(O=_[E]).element.scrollLeft=O.left,O.element.scrollTop=O.top}Er=null,Rn=!!xr,xr=null,e.current=n,gs=o;do{try{for(E=r;null!==gs;){var T=gs.effectTag;if(36&T){var j=gs.alternate;switch(O=E,(_=gs).tag){case 0:case 11:case 15:za(Si,ki,_);break;case 1:var I=_.stateNode;if(4&_.effectTag)if(null===j)I.componentDidMount();else{var A=_.elementType===_.type?j.memoizedProps:Co(_.type,j.memoizedProps);I.componentDidUpdate(A,j.memoizedState,I.__reactInternalSnapshotBeforeUpdate)}var M=_.updateQueue;null!==M&&Bo(0,M,I);break;case 3:var L=_.updateQueue;if(null!==L){if(P=null,null!==_.child)switch(_.child.tag){case 5:P=_.child.stateNode;break;case 1:P=_.child.stateNode}Bo(0,L,P)}break;case 5:var F=_.stateNode;null===j&&4&_.effectTag&&(O=F,_r(_.type,_.memoizedProps)&&O.focus());break;case 6:case 4:case 12:break;case 13:case 19:case 17:case 20:break;default:throw s(Error(163))}}if(128&T){var R=gs.ref;if(null!==R){var N=gs.stateNode;switch(gs.tag){case 5:var D=N;break;default:D=N}"function"==typeof R?R(D):R.current=D}}512&T&&(ks=!0),gs=gs.nextEffect}}catch(e){if(null===gs)throw s(Error(330));$s(gs,e),gs=gs.nextEffect}}while(null!==gs);gs=null,ao(),ls=i}else e.current=n;if(ks)ks=!1,xs=e,_s=r,Es=t;else for(gs=o;null!==gs;)t=gs.nextEffect,gs.nextEffect=null,gs=t;if(0!==(t=e.firstPendingTime)?Rs(e,T=wo(T=Is(),t),t):Ss=null,"function"==typeof nl&&nl(n.stateNode,r),1073741823===t?e===Ts?Ps++:(Ps=0,Ts=e):Ps=0,ws)throw ws=!1,e=Cs,Cs=null,e;return(ls&es)!==Ja?null:(bo(),null)}function Zs(){if(null===xs)return!1;var e=xs,t=_s,n=Es;return xs=null,_s=0,Es=90,mo(97=n?xa(e,t,n):(Lr(yi,yi.current&pi),null!==(t=Oa(e,t,n))?t.sibling:null);Lr(yi,yi.current&pi);break;case 19:if(o=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(o)return _a(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),Lr(yi,yi.current),!o)return null}return Oa(e,t,n)}}else pa=!1;switch(t.expirationTime=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=zr(t,Rr.current),jo(t,n),i=Bi(null,t,o,e,i,n),t.effectTag|=1,"object"===r(i)&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,Vi(),Ur(o)){var a=!0;qr(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var l=o.getDerivedStateFromProps;"function"==typeof l&&Go(t,o,l,e),i.updater=Ko,t.stateNode=i,i._reactInternalFiber=t,Yo(t,o,e,n),t=Ca(null,t,o,!0,a,n)}else t.tag=0,ha(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(i),t.type=i,a=t.tag=function(e){if("function"==typeof e)return al(e)?1:0;if(null!=e){if((e=e.$$typeof)===ot)return 11;if(e===st)return 14}return 2}(i),e=Co(i,e),a){case 0:t=ga(null,t,i,e,n);break;case 1:t=wa(null,t,i,e,n);break;case 11:t=ma(null,t,i,e,n);break;case 14:t=ya(null,t,i,Co(i.type,e),o,n);break;default:throw s(Error(306),i,"")}return t;case 0:return o=t.type,i=t.pendingProps,ga(e,t,o,i=t.elementType===o?i:Co(o,i),n);case 1:return o=t.type,i=t.pendingProps,wa(e,t,o,i=t.elementType===o?i:Co(o,i),n);case 3:if(Sa(t),null===(o=t.updateQueue))throw s(Error(282));return i=null!==(i=t.memoizedState)?i.element:null,Ho(t,o,t.pendingProps,null,n),(o=t.memoizedState.element)===i?(fa(),t=Oa(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(oa=jr(t.stateNode.containerInfo.firstChild),ra=t,i=ia=!0),i?(t.effectTag|=2,t.child=ri(t,null,o,n)):(ha(e,t,o,n),fa()),t=t.child),t;case 5:return fi(t),null===e&&la(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,Or(o,i)?l=null:null!==a&&Or(o,a)&&(t.effectTag|=16),ba(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ha(e,t,l,n),t=t.child),t;case 6:return null===e&&la(t),null;case 13:return xa(e,t,n);case 4:return ci(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=ni(t,null,o,n):ha(e,t,o,n),t.child;case 11:return o=t.type,i=t.pendingProps,ma(e,t,o,i=t.elementType===o?i:Co(o,i),n);case 7:return ha(e,t,t.pendingProps,n),t.child;case 8:case 12:return ha(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,l=t.memoizedProps,Oo(t,a=i.value),null!==l){var c=l.value;if(0===(a=rn(c,a)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(c,a):1073741823))){if(l.children===i.children&&!Nr.current){t=Oa(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var u=c.dependencies;if(null!==u){l=c.child;for(var f=u.firstContext;null!==f;){if(f.context===o&&0!=(f.observedBits&a)){1===c.tag&&((f=Fo(n,null)).tag=2,No(c,f)),c.expirationTime=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Le=zs,Fe=Us,Re=Ds,Ne=function(e,t){var n=ls;ls|=2;try{return e(t)}finally{(ls=n)===Ja&&bo()}};var xl,El,_l={createPortal:kl,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw s(Error(188));throw s(Error(268),Object.keys(e))}e=null===(e=un(t))?null:e.stateNode}return e},hydrate:function(e,t,n){if(!Cl(t))throw s(Error(200));return Sl(null,e,t,!0,n)},render:function(e,t,n){if(!Cl(t))throw s(Error(200));return Sl(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!Cl(n))throw s(Error(200));if(null==e||void 0===e._reactInternalFiber)throw s(Error(38));return Sl(e,t,n,!1,r)},unmountComponentAtNode:function(e){if(!Cl(e))throw s(Error(40));return!!e._reactRootContainer&&(Hs((function(){Sl(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return kl.apply(void 0,arguments)},unstable_batchedUpdates:zs,unstable_interactiveUpdates:function(e,t,n,r){return Ds(),Us(e,t,n,r)},unstable_discreteUpdates:Us,unstable_flushDiscreteUpdates:Ds,flushSync:function(e,t){if((ls&(ts|ns))!==Ja)throw s(Error(187));var n=ls;ls|=1;try{return mo(99,e.bind(null,t))}finally{ls=n,bo()}},unstable_createRoot:function(e,t){if(!Cl(e))throw s(Error(299),"unstable_createRoot");return new wl(e,null!=t&&!0===t.hydrate)},unstable_createSyncRoot:function(e,t){if(!Cl(e))throw s(Error(299),"unstable_createRoot");return new gl(e,1,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=ls;ls|=1;try{mo(99,e)}finally{(ls=t)===Ja&&bo()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[D,z,U,A.injectEventPluginsByName,p,G,function(e){P(e,q)},Ae,Me,Hn,I,Zs,{current:!1}]}};El=(xl={findFiberByHostInstance:N,bundleType:0,version:"16.9.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);nl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},rl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(i({},xl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ke.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=un(e))?null:e.stateNode},findFiberByHostInstance:function(e){return El?El(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var Ol={default:_l},Pl=Ol&&_l||Ol;e.exports=Pl.default||Pl},function(e,t,n){"use strict";e.exports=n(320)},function(e,t,n){"use strict"; +/** @license React v0.15.0 + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function r(e){return(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})(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=void 0,i=void 0,a=void 0,s=void 0,l=void 0;if(t.unstable_now=void 0,t.unstable_forceFrameRate=void 0,"undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,u=null,f=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(t){throw setTimeout(e,0),t}};t.unstable_now=function(){return Date.now()},o=function(e){null!==c?setTimeout(o,0,e):(c=e,setTimeout(f,0))},i=function(e,t){u=setTimeout(e,t)},a=function(){clearTimeout(u)},s=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout,y=window.requestAnimationFrame,v=window.cancelAnimationFrame;"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),t.unstable_now="object"===r(d)&&"function"==typeof d.now?function(){return d.now()}:function(){return p.now()};var b=!1,g=null,w=-1,C=-1,S=33.33,k=-1,x=-1,E=0,_=!1;s=function(){return t.unstable_now()>=E},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125(S=rl){if(s=c,null===I)I=e.next=e.previous=e;else{n=null;var u=I;do{if(s1?arguments[1]:{},o={},i={start:je},a=je,s=function(e){return{type:"messageFormatPattern",elements:e,location:Ee()}},l=function(e){var t,n,r,o,i,a="";for(t=0,r=e.length;tSe&&(Se=ge,ke=[]),ke.push(e))}function Te(t,n,r,o){return null!==n&&function(e){var t=1;for(e.sort((function(e,t){return e.descriptiont.description?1:0}));t1?r.slice(0,-1).join(", ")+" or "+r[e.length-1]:r[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0100-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1000-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(n,r),n,r,o)}function je(){return Ie()}function Ie(){var e,t,n;for(e=ge,t=[],n=Ae();n!==o;)t.push(n),n=Ae();return t!==o&&(we=e,t=s(t)),e=t}function Ae(){var e;return(e=function(){var e,n;e=ge,(n=function(){var e,n,r,i,a,s;e=ge,n=[],r=ge,(i=Re())!==o&&(a=He())!==o&&(s=Re())!==o?r=i=[i,a,s]:(ge=r,r=o);if(r!==o)for(;r!==o;)n.push(r),r=ge,(i=Re())!==o&&(a=He())!==o&&(s=Re())!==o?r=i=[i,a,s]:(ge=r,r=o);else n=o;n!==o&&(we=e,n=l(n));(e=n)===o&&(e=ge,n=Fe(),e=n!==o?t.substring(e,ge):n);return e}())!==o&&(we=e,n=c(n));return e=n}())===o&&(e=function(){var e,n,r,i,a,s,l;e=ge,123===t.charCodeAt(ge)?(n=d,ge++):(n=o,0===xe&&Pe(p));n!==o&&Re()!==o&&(r=function(){var e,n,r;if((e=ze())===o){if(e=ge,n=[],u.test(t.charAt(ge))?(r=t.charAt(ge),ge++):(r=o,0===xe&&Pe(f)),r!==o)for(;r!==o;)n.push(r),u.test(t.charAt(ge))?(r=t.charAt(ge),ge++):(r=o,0===xe&&Pe(f));else n=o;e=n!==o?t.substring(e,ge):n}return e}())!==o&&Re()!==o?(i=ge,44===t.charCodeAt(ge)?(a=h,ge++):(a=o,0===xe&&Pe(m)),a!==o&&(s=Re())!==o&&(l=function(){var e;(e=function(){var e,n,r,i,a,s;e=ge,t.substr(ge,6)===g?(n=g,ge+=6):(n=o,0===xe&&Pe(w));n===o&&(t.substr(ge,4)===C?(n=C,ge+=4):(n=o,0===xe&&Pe(S)),n===o&&(t.substr(ge,4)===k?(n=k,ge+=4):(n=o,0===xe&&Pe(x))));n!==o&&Re()!==o?(r=ge,44===t.charCodeAt(ge)?(i=h,ge++):(i=o,0===xe&&Pe(m)),i!==o&&(a=Re())!==o&&(s=He())!==o?r=i=[i,a,s]:(ge=r,r=o),r===o&&(r=null),r!==o?(we=e,n=E(n,r),e=n):(ge=e,e=o)):(ge=e,e=o);return e}())===o&&(e=function(){var e,n,r,i;e=ge,t.substr(ge,6)===_?(n=_,ge+=6):(n=o,0===xe&&Pe(O));n!==o&&Re()!==o?(44===t.charCodeAt(ge)?(r=h,ge++):(r=o,0===xe&&Pe(m)),r!==o&&Re()!==o&&(i=Le())!==o?(we=e,n=P(i),e=n):(ge=e,e=o)):(ge=e,e=o);return e}())===o&&(e=function(){var e,n,r,i;e=ge,t.substr(ge,13)===T?(n=T,ge+=13):(n=o,0===xe&&Pe(j));n!==o&&Re()!==o?(44===t.charCodeAt(ge)?(r=h,ge++):(r=o,0===xe&&Pe(m)),r!==o&&Re()!==o&&(i=Le())!==o?(we=e,n=I(i),e=n):(ge=e,e=o)):(ge=e,e=o);return e}())===o&&(e=function(){var e,n,r,i,a;e=ge,t.substr(ge,6)===A?(n=A,ge+=6):(n=o,0===xe&&Pe(M));if(n!==o)if(Re()!==o)if(44===t.charCodeAt(ge)?(r=h,ge++):(r=o,0===xe&&Pe(m)),r!==o)if(Re()!==o){if(i=[],(a=Me())!==o)for(;a!==o;)i.push(a),a=Me();else i=o;i!==o?(we=e,n=L(i),e=n):(ge=e,e=o)}else ge=e,e=o;else ge=e,e=o;else ge=e,e=o;else ge=e,e=o;return e}());return e}())!==o?i=a=[a,s,l]:(ge=i,i=o),i===o&&(i=null),i!==o&&(a=Re())!==o?(125===t.charCodeAt(ge)?(s=y,ge++):(s=o,0===xe&&Pe(v)),s!==o?(we=e,n=b(r,i),e=n):(ge=e,e=o)):(ge=e,e=o)):(ge=e,e=o);return e}()),e}function Me(){var e,n,r,i,a;return e=ge,Re()!==o&&(n=function(){var e,n,r,i;return e=ge,n=ge,61===t.charCodeAt(ge)?(r=F,ge++):(r=o,0===xe&&Pe(R)),r!==o&&(i=ze())!==o?n=r=[r,i]:(ge=n,n=o),(e=n!==o?t.substring(e,ge):n)===o&&(e=He()),e}())!==o&&Re()!==o?(123===t.charCodeAt(ge)?(r=d,ge++):(r=o,0===xe&&Pe(p)),r!==o&&Re()!==o&&(i=Ie())!==o&&Re()!==o?(125===t.charCodeAt(ge)?(a=y,ge++):(a=o,0===xe&&Pe(v)),a!==o?(we=e,e=N(n,i)):(ge=e,e=o)):(ge=e,e=o)):(ge=e,e=o),e}function Le(){var e,n,r,i;if(e=ge,(n=function(){var e,n,r;return e=ge,t.substr(ge,7)===D?(n=D,ge+=7):(n=o,0===xe&&Pe(z)),n!==o&&Re()!==o&&(r=ze())!==o?(we=e,e=n=U(r)):(ge=e,e=o),e}())===o&&(n=null),n!==o)if(Re()!==o){if(r=[],(i=Me())!==o)for(;i!==o;)r.push(i),i=Me();else r=o;r!==o?(we=e,e=n=H(n,r)):(ge=e,e=o)}else ge=e,e=o;else ge=e,e=o;return e}function Fe(){var e,n;if(xe++,e=[],V.test(t.charAt(ge))?(n=t.charAt(ge),ge++):(n=o,0===xe&&Pe(W)),n!==o)for(;n!==o;)e.push(n),V.test(t.charAt(ge))?(n=t.charAt(ge),ge++):(n=o,0===xe&&Pe(W));else e=o;return xe--,e===o&&(n=o,0===xe&&Pe(B)),e}function Re(){var e,n,r;for(xe++,e=ge,n=[],r=Fe();r!==o;)n.push(r),r=Fe();return e=n!==o?t.substring(e,ge):n,xe--,e===o&&(n=o,0===xe&&Pe(q)),e}function Ne(){var e;return G.test(t.charAt(ge))?(e=t.charAt(ge),ge++):(e=o,0===xe&&Pe(K)),e}function De(){var e;return Q.test(t.charAt(ge))?(e=t.charAt(ge),ge++):(e=o,0===xe&&Pe(Z)),e}function ze(){var e,n,r,i,a,s;if(e=ge,48===t.charCodeAt(ge)?(n=X,ge++):(n=o,0===xe&&Pe(Y)),n===o){if(n=ge,r=ge,$.test(t.charAt(ge))?(i=t.charAt(ge),ge++):(i=o,0===xe&&Pe(J)),i!==o){for(a=[],s=Ne();s!==o;)a.push(s),s=Ne();a!==o?r=i=[i,a]:(ge=r,r=o)}else ge=r,r=o;n=r!==o?t.substring(n,ge):r}return n!==o&&(we=e,n=ee(n)),e=n}function Ue(){var e,n,r,i,a,s,l,c;return te.test(t.charAt(ge))?(e=t.charAt(ge),ge++):(e=o,0===xe&&Pe(ne)),e===o&&(e=ge,t.substr(ge,2)===re?(n=re,ge+=2):(n=o,0===xe&&Pe(oe)),n!==o&&(we=e,n=ie()),(e=n)===o&&(e=ge,t.substr(ge,2)===ae?(n=ae,ge+=2):(n=o,0===xe&&Pe(se)),n!==o&&(we=e,n=le()),(e=n)===o&&(e=ge,t.substr(ge,2)===ce?(n=ce,ge+=2):(n=o,0===xe&&Pe(ue)),n!==o&&(we=e,n=fe()),(e=n)===o&&(e=ge,t.substr(ge,2)===de?(n=de,ge+=2):(n=o,0===xe&&Pe(pe)),n!==o&&(we=e,n=he()),(e=n)===o&&(e=ge,t.substr(ge,2)===me?(n=me,ge+=2):(n=o,0===xe&&Pe(ye)),n!==o?(r=ge,i=ge,(a=De())!==o&&(s=De())!==o&&(l=De())!==o&&(c=De())!==o?i=a=[a,s,l,c]:(ge=i,i=o),(r=i!==o?t.substring(r,ge):i)!==o?(we=e,e=n=ve(r)):(ge=e,e=o)):(ge=e,e=o)))))),e}function He(){var e,t,n;if(e=ge,t=[],(n=Ue())!==o)for(;n!==o;)t.push(n),n=Ue();else t=o;return t!==o&&(we=e,t=be(t)),e=t}if((n=a())!==o&&ge===t.length)return n;throw n!==o&&ge=0)return!0;if("string"==typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&i.arrIndexOf.call(a,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+a.join('", "')+'"')},l.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(l.defaultLocale);var t,n,r,o,i=l.__localeData__;for(t=0,n=e.length;t=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+s.join('", "')+'"')},l.prototype._selectUnits=function(e){var t,n,r,o=a.filter((function(e){return e.indexOf("-short")<1}));for(t=0,n=o.length;t-1}},function(e,t,n){var r=n(117);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(116);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(116),o=n(155),i=n(182),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},function(e,t,n){var r=n(85),o=n(120),i=n(34),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t){e.exports=function(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(e,t,n){var r=n(406),o=n(212),i=n(203),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),s=r-(a-i);if(i=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){"use strict";function r(e){return(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})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),i=l(n(11)),a=l(n(31)),s=l(n(409));function l(e){return e&&e.__esModule?e:{default:e}}function c(e){return(c="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0})),a=(e.className||"").split(" ").filter((function(e){return e.length>0}));(n=this._elementParentNode.classList).remove.apply(n,f(i)),(r=this._elementParentNode.classList).add.apply(r,f(a))}}},{key:"componentDidMount",value:function(){this._update()}},{key:"componentDidUpdate",value:function(){this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tether}},{key:"disable",value:function(){this._tether.disable()}},{key:"enable",value:function(){this._tether.enable()}},{key:"on",value:function(e,t,n){this._tether.on(e,t,n)}},{key:"once",value:function(e,t,n){this._tether.once(e,t,n)}},{key:"off",value:function(e,t){this._tether.off(e,t)}},{key:"position",value:function(){this._tether.position()}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",(function(){for(var t=arguments.length,n=new Array(t),r=0;r2?new Error("Only a max of two children allowed in ".concat(n,".")):void 0}}),y(w,"defaultProps",{renderElementTag:"div",renderElementTo:null});var S,k,x=o.default.version.split(".").map(Number),E=(k=2,function(e){if(Array.isArray(e))return e}(S=x)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(S,k)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),_=E[0],O=E[1];_<16||16===_&&O<9?w.prototype.componentWillUpdate=C:w.prototype.UNSAFE_componentWillUpdate=C;var P=w;t.default=P},function(e,t,n){var r,o,i;function a(e){return(a="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})(e)} +/*! tether 1.4.7 */o=[],void 0===(i="function"==typeof(r=function(){"use strict";var e=function(){function e(e,t){for(var n=0;n=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}var s,l=(s=0,function(){return++s}),c={},u=function(){var e=r;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",l()),y(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),r=e);var t=e.getAttribute("data-tether-id");return void 0===c[t]&&(c[t]=o(e),x((function(){delete c[t]}))),c[t]};function f(){r&&document.body.removeChild(r),r=null}function d(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,r=o(e),i=u();return r.top-=i.top,r.left-=i.left,void 0===r.width&&(r.width=document.body.scrollWidth-r.left-r.right),void 0===r.height&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-n.clientTop,r.left=r.left-n.clientLeft,r.right=t.body.clientWidth-r.width-r.left,r.bottom=t.body.clientHeight-r.height-r.top,r}function p(e){return e.offsetParent||document.documentElement}var h=null;function m(){if(h)return h;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");y(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var o=n-r;return h={width:o,height:o}}function y(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function v(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var n=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=w(e).replace(n," ");C(e,r)}}function b(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{v(e,t);var n=w(e)+" "+t;C(e,n)}}function g(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=w(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function w(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function C(e,t){e.setAttribute("class",t)}function S(e,t,n){n.forEach((function(n){-1===t.indexOf(n)&&g(e,n)&&v(e,n)})),t.forEach((function(t){g(e,t)||b(e,t)}))}var k=[],x=function(e){k.push(e)},E=function(){for(var e=void 0;e=k.pop();)e()},_=function(){function n(){t(this,n)}return e(n,[{key:"on",value:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var n=0;n1?n-1:0),o=1;o=t&&t>=e-n}var j,I,A,M,L=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n16)return I=Math.min(I-16,250),void(A=setTimeout(e,250));void 0!==j&&N()-j<10||(null!=A&&(clearTimeout(A),A=null),j=N(),R(),I=N()-j)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,M)}));var D={center:"center",left:"right",right:"left"},z={middle:"middle",top:"bottom",bottom:"top"},U={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},H=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=D[t.left]),"auto"===r&&(r=z[t.top]),{left:n,top:r}},B=function(e){var t=e.left,n=e.top;return void 0!==U[e.left]&&(t=U[e.left]),void 0!==U[e.top]&&(n=U[e.top]),{left:t,top:n}};function V(){for(var e={top:0,left:0},t=arguments.length,n=Array(t),r=0;rt.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(r=15);var o=e.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,i={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(n.borderLeftWidth)-15},a=0;o<408&&this.target===document.body&&(a=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(i.height=Math.max(i.height,24));var s=this.target.scrollTop/(t.scrollHeight-o);return i.top=s*(o-i.height-a)+e.top+parseFloat(n.borderTopWidth),this.target===document.body&&(i.height=Math.max(i.height,24)),i}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&b(this.target,this.getClass("enabled")),b(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),F.forEach((function(t,n){t===e&&F.splice(n,1)})),0===F.length&&f()}},{key:"updateAttachClasses",value:function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment,void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var r=this._addAttachClasses;e.top&&r.push(this.getClass("element-attached")+"-"+e.top),e.left&&r.push(this.getClass("element-attached")+"-"+e.left),t.top&&r.push(this.getClass("target-attached")+"-"+t.top),t.left&&r.push(this.getClass("target-attached")+"-"+t.left);var o=[];["left","top","bottom","right","middle","center"].forEach((function(e){o.push(n.getClass("element-attached")+"-"+e),o.push(n.getClass("target-attached")+"-"+e)})),x((function(){void 0!==n._addAttachClasses&&(S(n.element,n._addAttachClasses,o),!1!==n.options.addTargetClasses&&S(n.target,n._addAttachClasses,o),delete n._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var r=H(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var o=this.cache("element-bounds",(function(){return d(e.element)})),i=o.width,s=o.height;if(0===i&&0===s&&void 0!==this.lastSize){var l=this.lastSize;i=l.width,s=l.height}else this.lastSize={width:i,height:s};var c=this.cache("target-bounds",(function(){return e.getTargetBounds()})),u=c,f=W(B(this.attachment),{width:i,height:s}),h=W(B(r),u),y=W(this.offset,{width:i,height:s}),v=W(this.targetOffset,u);f=V(f,y),h=V(h,v);for(var b=c.left+h.left-f.left,g=c.top+h.top-f.top,w=0;wx.documentElement.clientHeight&&(O=this.cache("scrollbar-size",m),k.viewport.bottom-=O.height),_.innerWidth>x.documentElement.clientWidth&&(O=this.cache("scrollbar-size",m),k.viewport.right-=O.width),-1!==["","static"].indexOf(x.body.style.position)&&-1!==["","static"].indexOf(x.body.parentElement.style.position)||(k.page.bottom=x.body.scrollHeight-g-s,k.page.right=x.body.scrollWidth-b-i),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return p(e.target)})),n=e.cache("target-offsetparent-bounds",(function(){return d(t)})),r=getComputedStyle(t),o=n,i={};if(["Top","Left","Bottom","Right"].forEach((function(e){i[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])})),n.right=x.body.scrollWidth-n.left-o.width+i.right,n.bottom=x.body.scrollHeight-n.top-o.height+i.bottom,k.page.top>=n.top+i.top&&k.page.bottom>=n.bottom&&k.page.left>=n.left+i.left&&k.page.right>=n.right){var a=t.scrollTop,s=t.scrollLeft;k.offset={top:k.page.top-n.top+a-i.top,left:k.page.left-n.left+s-i.left}}}(),this.move(k),this.history.unshift(k),this.history.length>3&&this.history.pop(),t&&E(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var n={};for(var r in e)for(var o in n[r]={},e[r]){for(var i=!1,a=0;a=0){var b=l.split(" "),g=O(b,2);y=g[0],p=g[1]}else p=y=l;var w=function(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,n=d(t),r=n,o=getComputedStyle(t);if(t=[r.left,r.top,n.width+r.left,n.height+r.top],e.ownerDocument!==document){var i=e.ownerDocument.defaultView;t[0]+=i.pageXOffset,t[1]+=i.pageYOffset,t[2]+=i.pageXOffset,t[3]+=i.pageYOffset}Z.forEach((function(e,n){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[n]+=parseFloat(o["border"+e+"Width"]):t[n]-=parseFloat(o["border"+e+"Width"])}))}(),t}(t,i);"target"!==y&&"both"!==y||(nw[3]&&"bottom"===m.top&&(n-=u,m.top="top")),"together"===y&&("top"===m.top&&("bottom"===v.top&&nw[3]&&n-(a-u)>=w[1]&&(n-=a-u,m.top="bottom",v.top="bottom")),"bottom"===m.top&&("top"===v.top&&n+a>w[3]?(n-=u,m.top="top",n-=a,v.top="bottom"):"bottom"===v.top&&nw[3]&&"top"===v.top?(n-=a,v.top="bottom"):nw[2]&&"right"===m.left&&(r-=f,m.left="left")),"together"===p&&(rw[2]&&"right"===m.left?"left"===v.left?(r-=f,m.left="left",r-=s,v.left="right"):"right"===v.left&&(r-=f,m.left="left",r+=s,v.left="left"):"center"===m.left&&(r+s>w[2]&&"left"===v.left?(r-=s,v.left="right"):rw[3]&&"top"===v.top&&(n-=a,v.top="bottom")),"element"!==p&&"both"!==p||(rw[2]&&("left"===v.left?(r-=s,v.left="right"):"center"===v.left&&(r-=s/2,v.left="right"))),"string"==typeof c?c=c.split(",").map((function(e){return e.trim()})):!0===c&&(c=["top","left","right","bottom"]),c=c||[];var C,S,k=[],x=[];n=0?(n=w[1],k.push("top")):x.push("top")),n+a>w[3]&&(c.indexOf("bottom")>=0?(n=w[3]-a,k.push("bottom")):x.push("bottom")),r=0?(r=w[0],k.push("left")):x.push("left")),r+s>w[2]&&(c.indexOf("right")>=0?(r=w[2]-s,k.push("right")):x.push("right")),k.length&&(C=void 0,C=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),h.push(C),k.forEach((function(e){h.push(C+"-"+e)}))),x.length&&(S=void 0,S=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),h.push(S),x.forEach((function(e){h.push(S+"-"+e)}))),(k.indexOf("left")>=0||k.indexOf("right")>=0)&&(v.left=m.left=!1),(k.indexOf("top")>=0||k.indexOf("bottom")>=0)&&(v.top=m.top=!1),m.top===o.top&&m.left===o.left&&v.top===t.attachment.top&&v.left===t.attachment.left||(t.updateAttachClasses(v,m),t.trigger("update",{attachment:v,targetAttachment:m}))})),x((function(){!1!==t.options.addTargetClasses&&S(t.target,h,p),S(t.element,h,p)})),{top:n,left:r}}});var X,d=(X=n.Utils).getBounds,S=X.updateClasses;return x=X.defer,n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=this.cache("element-bounds",(function(){return d(t.element)})),i=o.height,a=o.width,s=this.getTargetBounds(),l=n+i,c=r+a,u=[];n<=s.bottom&&l>=s.top&&["left","right"].forEach((function(e){var t=s[e];t!==r&&t!==c||u.push(e)})),r<=s.right&&c>=s.left&&["top","bottom"].forEach((function(e){var t=s[e];t!==n&&t!==l||u.push(e)}));var f=[],p=[];return f.push(this.getClass("abutted")),["left","top","right","bottom"].forEach((function(e){f.push(t.getClass("abutted")+"-"+e)})),u.length&&p.push(this.getClass("abutted")),u.forEach((function(e){p.push(t.getClass("abutted")+"-"+e)})),x((function(){!1!==t.options.addTargetClasses&&S(t.target,p,f),S(t.element,p,f)})),!0}}),O=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},n.modules.push({position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:n}));var o=void 0,i=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var a=O(r,2);o=a[0],i=a[1],o=parseFloat(o,10),i=parseFloat(i,10)}else o=r.top,i=r.left;return{top:t+=o,left:n+=i}}}}),Q})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t,n){},,function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(157),o=n(92),i=n(121),a=n(35),s=n(111);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,f=u-1,d=e;null!=d&&++c + * @license MIT + */ +e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(167),o=n(32),i=n(430),a=n(431);function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(r,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=s},function(e,t,n){"use strict";var r=n(32);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(228);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";var r=n(32);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(32),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(32);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(32);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(32);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(32),o=n(432),i=n(229),a=n(167),s=n(433),l=n(434);function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return c(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(32);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(230);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){var r=n(307),o=n(438),i=n(439);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r0?r:n)(e)}},function(e,t,n){var r=n(465)("keys"),o=n(274);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(61),o=n(69),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(235)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(137),o=n(69).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(137);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(124),o=n(632),i=n(466),a=n(464)("IE_PROTO"),s=function(){},l=function(){var e,t=n(467)("iframe"),r=i.length;for(t.style.display="none",n(520).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("