Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dnm-react-uploader

Package Overview
Dependencies
Maintainers
1
Versions
236
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dnm-react-uploader - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

dist/dnm-react-uploader.es.js

@@ -505,3 +505,3 @@ import React from 'react';

if (this.props.src) {
if (this.props.src && this.refs.zone && this.refs.img) {
var fileType = this.props.fileType || FileManager.guessFileType(this.props.src);

@@ -508,0 +508,0 @@

@@ -1,1 +0,1 @@

import e from"react";import r from"prop-types";import n from"validator/lib/isURL";import t from"lodash-es/concat";import o from"lodash-es/isString";import a from"lodash-es/last";import i from"lodash-es/map";import l from"lodash-es/round";import c from"lodash-es/split";import p from"lodash-es/upperCase";import s from"lodash-es/camelCase";import d from"lodash-es/difference";import u from"lodash-es/get";import m from"lodash-es/upperFirst";function h(e){return(h="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,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function g(){return(g=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,r){return(b=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var x=function(r){return e.createElement("svg",g({viewBox:"0 0 512.001 512.001"},r),e.createElement("path",{d:"M405.967 187.467c-1.069-78.061-64.902-141.239-143.213-141.239-34.835 0-68.396 12.672-94.498 35.682-23.296 20.535-39.232 47.977-45.543 78.106-.461-.005-.918-.009-1.374-.009C54.434 160.008 0 214.441 0 281.347s54.434 121.339 121.34 121.339h44.534c6.029 0 10.919-4.888 10.919-10.919 0-6.031-4.89-10.919-10.919-10.919H121.34c-54.866 0-99.502-44.636-99.502-99.501s44.636-99.501 99.502-99.501c2.923 0 6.013.157 9.448.48 5.822.54 11.049-3.596 11.842-9.396 3.932-28.82 18.161-55.327 40.067-74.638 22.111-19.492 50.542-30.226 80.056-30.226 66.935 0 121.389 54.455 121.389 121.389 0 2.41-.449 8.642-.449 8.642a10.92 10.92 0 0 0 11.984 11.634 87.102 87.102 0 0 1 8.708-.44c47.297 0 85.778 38.48 85.778 85.778 0 47.297-38.48 85.777-85.778 85.777h-48.902c-6.029 0-10.919 4.888-10.919 10.919s4.89 10.919 10.919 10.919h48.902c59.339 0 107.616-48.275 107.616-107.615-.001-58.808-47.421-106.752-106.034-107.602z"}),e.createElement("path",{d:"M262.755 97.548c-45.658 0-84.742 34.121-90.914 79.367-.815 5.975 3.371 11.462 9.343 12.295 6.368.888 11.548-3.869 12.295-9.343 4.702-34.479 34.484-60.48 69.276-60.48 6.031 0 10.919-4.888 10.919-10.919 0-6.032-4.889-10.92-10.919-10.92zm50.524 312.735c-4.017-4.496-10.92-4.887-15.418-.868l-26.265 23.463V298.547c0-6.031-4.89-10.919-10.919-10.919-6.031 0-10.919 4.888-10.919 10.919v134.33l-26.264-23.463c-4.496-4.018-11.401-3.627-15.417.868-4.018 4.498-3.63 11.399.868 15.418l39.717 35.483a17.983 17.983 0 0 0 12.014 4.59 17.99 17.99 0 0 0 12.013-4.589l39.719-35.483c4.499-4.017 4.888-10.92.871-15.418z"}))},y=function(r){return e.createElement("svg",g({viewBox:"0 0 32 32"},r),e.createElement("path",{d:"M29.5 8C30.879 8 32 6.879 32 5.5v-3C32 1.121 30.879 0 29.5 0h-3A2.502 2.502 0 0 0 24 2.5V3H8v-.5C8 1.121 6.879 0 5.5 0h-3A2.503 2.503 0 0 0 0 2.5v3C0 6.879 1.122 8 2.5 8H3v16h-.5A2.503 2.503 0 0 0 0 26.5v3C0 30.879 1.122 32 2.5 32h3C6.879 32 8 30.879 8 29.5V29h16v.5c0 1.379 1.121 2.5 2.5 2.5h3c1.379 0 2.5-1.121 2.5-2.5v-3c0-1.379-1.121-2.5-2.5-2.5H29V8h.5zm-27-2a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3zM6 29.5c0 .275-.225.5-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3c.275 0 .5.225.5.5v3zm18-3v.5H8v-.5C8 25.121 6.879 24 5.5 24H5V8h.5C6.879 8 8 6.879 8 5.5V5h16v.5C24 6.879 25.121 8 26.5 8h.5v16h-.5a2.502 2.502 0 0 0-2.5 2.5zm5.5-.5c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3a.501.501 0 0 1-.5-.5v-3c0-.275.225-.5.5-.5h3zm-3-20a.501.501 0 0 1-.5-.5v-3c0-.275.225-.5.5-.5h3c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3z"}))},w=function(r){return e.createElement("svg",g({viewBox:"0 0 486.4 486.4"},r),e.createElement("path",{d:"M446 70H344.8V53.5c0-29.5-24-53.5-53.5-53.5h-96.2c-29.5 0-53.5 24-53.5 53.5V70H40.4c-7.5 0-13.5 6-13.5 13.5S32.9 97 40.4 97h24.4v317.2c0 39.8 32.4 72.2 72.2 72.2h212.4c39.8 0 72.2-32.4 72.2-72.2V97H446c7.5 0 13.5-6 13.5-13.5S453.5 70 446 70zM168.6 53.5c0-14.6 11.9-26.5 26.5-26.5h96.2c14.6 0 26.5 11.9 26.5 26.5V70H168.6V53.5zm226 360.7c0 24.9-20.3 45.2-45.2 45.2H137c-24.9 0-45.2-20.3-45.2-45.2V97h302.9v317.2h-.1z"}),e.createElement("path",{d:"M243.2 411c7.5 0 13.5-6 13.5-13.5V158.9c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v238.5c0 7.5 6 13.6 13.5 13.6zm-88.1-14.9c7.5 0 13.5-6 13.5-13.5V173.7c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v208.9c0 7.5 6.1 13.5 13.5 13.5zm176.2 0c7.5 0 13.5-6 13.5-13.5V173.7c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v208.9c0 7.5 6 13.5 13.5 13.5z"}))},C=function(r){return e.createElement("svg",g({height:596,viewBox:"0 0 447.632 447"},r),e.createElement("path",{d:"M231.816 447.05c34.23-4.863 64.239-40.59 83.121-93.35a406.317 406.317 0 0 0-83.12-9.786zm0 0M286.504 438.66c2.023-.586 4.039-1.176 6.039-1.824 1.687-.543 3.352-1.129 5.016-1.711a203.39 203.39 0 0 0 5.882-2.121c1.664-.633 3.313-1.305 4.965-1.977 1.906-.8 3.809-1.597 5.692-2.398a240.401 240.401 0 0 0 10.422-4.922c1.601-.816 3.199-1.648 4.8-2.504 1.793-.96 3.575-1.941 5.344-2.95a203.403 203.403 0 0 0 4.703-2.753c1.735-1.066 3.461-2.133 5.176-3.2a191.535 191.535 0 0 0 4.578-2.991 221.095 221.095 0 0 0 5.008-3.504 417.693 417.693 0 0 0 4.422-3.2 365.942 365.942 0 0 0 4.847-3.793c1.426-1.136 2.848-2.265 4.25-3.433 1.598-1.328 3.13-2.703 4.68-4.078 1.36-1.207 2.727-2.403 4.055-3.64 1.527-1.427 3.015-2.903 4.504-4.368 1.289-1.273 2.593-2.527 3.855-3.832.235-.242.457-.504.7-.754a268.883 268.883 0 0 0-54.817-21.094 198.517 198.517 0 0 1-51.129 83.024c.649-.168 1.297-.305 1.945-.473 1.711-.48 3.391-1.008 5.063-1.504zm0 0M447.633 231.684H351.71a414.882 414.882 0 0 1-16.152 110.68 278.228 278.228 0 0 1 60.714 24.16 223.51 223.51 0 0 0 51.36-134.84zm0 0M231.816 215.684h103.895a400.208 400.208 0 0 0-15.75-106.743 421.384 421.384 0 0 1-88.145 10.512zm0 0M231.816.316v103.137a406.589 406.589 0 0 0 83.121-9.785C296.055 40.906 266.048 5.18 231.817.316zm0 0M231.816 327.914a421.648 421.648 0 0 1 88.145 10.516 400.236 400.236 0 0 0 15.75-106.746H231.816zm0 0M396.273 80.844a278.228 278.228 0 0 1-60.714 24.16 414.882 414.882 0 0 1 16.152 110.68h95.922a223.577 223.577 0 0 0-51.36-134.84zm0 0M385.465 68.707c-.235-.238-.457-.496-.688-.742-1.265-1.305-2.578-2.563-3.867-3.832-1.484-1.465-2.965-2.945-4.496-4.367-1.324-1.235-2.695-2.403-4.055-3.633-1.55-1.375-3.101-2.762-4.695-4.09-1.383-1.168-2.8-2.285-4.207-3.406a171.24 171.24 0 0 0-4.89-3.825 220.477 220.477 0 0 0-4.383-3.199 192.844 192.844 0 0 0-5.055-3.547 200.251 200.251 0 0 0-4.535-2.957 190.441 190.441 0 0 0-5.219-3.257 223.26 223.26 0 0 0-4.664-2.727 220.848 220.848 0 0 0-5.39-2.984c-1.602-.801-3.2-1.672-4.801-2.473-1.84-.93-3.696-1.824-5.598-2.703a174.071 174.071 0 0 0-4.875-2.227c-1.895-.84-3.809-1.597-5.719-2.398a225.094 225.094 0 0 0-4.953-1.969 191.214 191.214 0 0 0-5.879-2.117 210.272 210.272 0 0 0-5.016-1.715c-2-.648-4-1.238-6.054-1.832-1.664-.488-3.336-.984-5.02-1.43-.644-.175-1.3-.312-1.949-.48a198.532 198.532 0 0 1 51.129 83.023 268.485 268.485 0 0 0 54.879-21.113zm0 0M0 215.684h95.922a415.035 415.035 0 0 1 16.148-110.68 277.885 277.885 0 0 1-60.71-24.16A223.519 223.519 0 0 0 0 215.684zm0 0M215.816 447.05V343.915a406.589 406.589 0 0 0-83.12 9.785c18.878 52.762 48.89 88.488 83.12 93.352zm0 0M215.816 231.684H111.922a400.079 400.079 0 0 0 15.75 106.746 421.097 421.097 0 0 1 88.144-10.516zm0 0M215.816.316c-34.23 4.864-64.242 40.59-83.12 93.352a406.045 406.045 0 0 0 83.12 9.785zm0 0M215.816 119.453a421.384 421.384 0 0 1-88.144-10.512 400.05 400.05 0 0 0-15.75 106.743h103.894zm0 0M168.113 6.79c-.648.167-1.297.304-1.945.472-1.695.453-3.367.957-5.055 1.445-2.008.586-4 1.176-6.015 1.816-1.7.551-3.371 1.137-5.043 1.72-1.957.69-3.918 1.378-5.856 2.112-1.672.641-3.32 1.305-4.976 1.985-1.903.8-3.809 1.601-5.688 2.398-1.648.723-3.277 1.48-4.91 2.242a223.908 223.908 0 0 0-5.512 2.68 228.526 228.526 0 0 0-10.137 5.457 149.244 149.244 0 0 0-4.718 2.75c-1.738 1.047-3.457 2.13-5.168 3.2-1.54.984-3.067 1.976-4.578 3a221.095 221.095 0 0 0-5.008 3.503 403.614 403.614 0 0 0-4.426 3.203c-1.637 1.23-3.2 2.512-4.848 3.79-1.421 1.136-2.855 2.265-4.246 3.44-1.601 1.321-3.12 2.688-4.664 4.056-1.367 1.218-2.746 2.402-4.082 3.664-1.52 1.418-3 2.89-4.484 4.351-1.29 1.274-2.602 2.531-3.867 3.84-.23.242-.453.508-.696.754a268.581 268.581 0 0 0 54.817 21.098 198.45 198.45 0 0 1 51.105-82.977zm0 0M66.719 383.234c1.488 1.465 2.969 2.946 4.496 4.371 1.328 1.23 2.695 2.399 4.058 3.63 1.551 1.378 3.102 2.761 4.696 4.09 1.383 1.16 2.793 2.28 4.207 3.405 1.601 1.297 3.199 2.586 4.894 3.833 1.442 1.082 2.907 2.128 4.371 3.203 1.672 1.199 3.36 2.398 5.063 3.55a214.813 214.813 0 0 0 4.535 2.961c1.73 1.11 3.457 2.2 5.219 3.254 1.543.93 3.101 1.84 4.664 2.73a208.275 208.275 0 0 0 5.39 2.981c1.598.801 3.2 1.672 4.801 2.473 1.84.93 3.696 1.824 5.598 2.707 1.601.754 3.226 1.496 4.875 2.223 1.894.84 3.805 1.597 5.719 2.398 1.648.672 3.289 1.336 4.953 1.969 1.941.746 3.91 1.441 5.879 2.12 1.664.583 3.328 1.169 5.015 1.712 2 .648 4 1.242 6.055 1.832 1.664.488 3.336.984 5.016 1.433.648.176 1.304.313 1.953.48a198.57 198.57 0 0 1-51.13-83.027 268.607 268.607 0 0 0-54.816 21.106c.235.238.458.496.692.742 1.2 1.297 2.492 2.555 3.797 3.824zm0 0M51.36 366.523a278.275 278.275 0 0 1 60.71-24.16 415.035 415.035 0 0 1-16.148-110.68H0a223.552 223.552 0 0 0 51.36 134.84zm0 0"}))},k=function(r){return e.createElement("svg",g({viewBox:"0 0 512 512"},r),e.createElement("path",{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"}))},E=function(r){return e.createElement("svg",g({viewBox:"0 0 512 512"},r),e.createElement("path",{d:"M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"}))},L={video:{mimeTypes:["video/x-flv","video/mp4","application/octet-stream","application/x-mpegURL","video/MP2T","video/3gpp","video/quicktime","video/x-msvideo","video/x-ms-wmv"],extensions:["3g2","3gp","amv","asf","avi","drc","f4a","f4b","f4p","f4v","flv","gif","gifv","m2v","m4p","m4v","mkv","mov","mng","mp2","mp4","mpe","mpeg","mpg","mpv","MTS","M2TS","mxf","nsv","ogg","qt","rm","rmvb","roq","svi","vob","webm","wmv","yuv"]},image:{mimeTypes:["image/gif","image/jpeg","image/png","image/tiff","image/vnd.microsoft.icon","image/vnd.djvu","image/svg+xml"],extensions:["3dv","PI1","PI2","PI3","ai","amf","art","art","ase","awg","blp","bmp","bw","bw","cd5","cdr","cgm","cit","cmx","cpt","cr2","cur","cut","dds","dib","djvu","dxf","e2d","ecw","egt","egt","emf","eps","exif","fs","gbr","gif","gpl","grf","hdp","icns","ico","iff","iff","int","int","inta","jfif","jng","jp2","jpeg","jpg","jps","jxr","lbm","lbm","liff","max","miff","mng","msp","nitf","nrrd","odg","ota","pam","pbm","pc1","pc2","pc3","pcf","pct","pcx","pcx","pdd","pdn","pgf","pgm","pict","png","pnm","pns","ppm","psb","psd","psp","px","pxm","pxr","qfx","ras","raw","rgb","rgb","rgba","rle","sct","sgi","sgi","sid","stl","sun","svg","sxd","tga","tga","tif","tiff","v2d","vnd","vrml","vtf","wdp","webp","wmf","x3d","xar","xbm","xcf","xpm"]},compressedFile:{mimeTypes:["application/x-bzip2","application/gzip","application/x-lzip","application/x-lzma","application/x-lzop","application/x-snappy-framed","application/x-xz","application/x-compress","application/x-7z-compressed","application/x-ace-compressed","application/x-astrotite-afa","application/x-alz-compressed","application/vnd.android.package-archive","application/x-arj","application/x-b1","application/vnd.ms-cab-compressed","application/x-cfs-compressed","application/x-dar","application/x-dgc-compressed","application/x-apple-diskimage","application/x-gca-compressed","application/x-lzh","application/x-lzx","application/x-rar-compressed","application/x-stuffit","application/x-stuffitx","application/x-gtar","application/zip","application/x-zoo"],extensions:["bz2","gz","F","lz","lzma","lzo","rz","sfark","sz","xz","z","Z","?Q?","?XF","?Z?","??_","7z","ace","afa","alz","apk","arc","arj","b1","b6z","ba","bh","cab","car","cfs","cpt","dar","dd","dgc","dmg","ear","gca","ha","hki","ice","jar","kgb","lha","lzh","lzx","pak","paq6","paq7","paq8","partimg","pea","pim","pit","qda","rar","rk","s7z","sda","sea","sen","sfx","shk","sit","sitx","sqx","tar.bz2","tar.gz","tar.lzma","tar.xz","tar.Z","tbz2","tgz","tlz","txz","ue2","uc","uc0","uc2","uca","ucn","uha","ur2","war","wim","xar","xp3","yz1","zip","zipx","zoo","zpaq","zz"]}},j={},T={concat:t,isString:o,last:a,map:i,round:l,split:c,upperCase:p};j.initializeDrag=function(){window.addEventListener("dragover",function(e){(e=e||event).preventDefault()},!1),window.addEventListener("drop",function(e){(e=e||event).preventDefault()},!1)},j.base64MimeType=function(e){var r=null;if("string"!=typeof e)return r;var n=e.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);return n&&n.length&&(r=n[1]),r},j.isBase64=function(e){return null!==j.base64MimeType(e)},j.extension=function(e){return e=T.isString(e)?e:e.name,T.last(T.split(e,"."))},j.fileType=function(e){if(!e.match(/\//)){var r={video:L.video.extensions,image:L.image.extensions,compressedFile:L.compressedFile.extensions};for(var n in r){if(-1!==T.concat(r[n],T.map(r[n],function(e){return T.upperCase(e)})).indexOf(e))return n}}else{var t={video:L.video.mimeTypes,image:L.image.mimeTypes,compressedFile:L.compressedFile.mimeTypes};for(var o in t){if(-1!==t[o].indexOf(e))return o}}return null},j.guessFileType=function(e){return j.fileType(j.base64MimeType(e)||j.extension(e))},j.humanSize=function(e){for(var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=["B","KB","MB","GB","TB"],t=n.length-1;t>=0;t--){var o=1*e/Math.pow(1e3,t);if(o>=1)return r&&(o=T.round(o)),"".concat(o," ").concat(n[t])}};var R={isURL:n},M={camelCase:s,difference:d,get:u,last:a,upperFirst:m,split:c},S=function(r){function n(e){var r,t,o;return function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,n),t=this,(r=!(o=v(n).call(this,e))||"object"!=typeof o&&"function"!=typeof o?z(t):o).state={beingDropTarget:!1,height:null,file:null,loaded:!0,mounted:!1,url:"",width:null},r.change=r.change.bind(z(r)),r.handleChange=r.handleChange.bind(z(r)),r.handleClick=r.handleClick.bind(z(r)),r.handleCropClick=r.handleCropClick.bind(z(r)),r.handleDragLeave=r.handleDragLeave.bind(z(r)),r.handleDragOver=r.handleDragOver.bind(z(r)),r.handleDrop=r.handleDrop.bind(z(r)),r.handleInjectURLClick=r.handleInjectURLClick.bind(z(r)),r.handleLoad=r.handleLoad.bind(z(r)),r.handleRemoveClick=r.handleRemoveClick.bind(z(r)),r.handleURLChange=r.handleURLChange.bind(z(r)),r.get=r.get.bind(z(r)),r.injectURL=r.injectURL.bind(z(r)),r.change=r.change.bind(z(r)),r}var t,o,a;return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&b(e,r)}(n,e.Component),t=n,(o=[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),j.initializeDrag()}},{key:"change",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return null},n=this.props.maxSize;j.guessFileType(e)!==this.props.fileType?this.props.onInvalidFileExtensionError():n&&e.size>=n?this.props.onFileTooLargeError():this.props.onChange(e),r(e),this.refs.input.value=null}},{key:"handleChange",value:function(e){var r=M.get(e,"target.files.0");r&&this.change(r)}},{key:"handleClick",value:function(e){this.refs.input.click()}},{key:"handleCropClick",value:function(e){e.stopPropagation(),this.props.onCropClick()}},{key:"handleDragLeave",value:function(){this.setState({beingDropTarget:!1})}},{key:"handleDragOver",value:function(){this.setState({beingDropTarget:!0})}},{key:"handleDrop",value:function(e){e.preventDefault(),this.setState({beingDropTarget:!1});var r=M.get(e,"dataTransfer.files.0");r&&this.change(r)}},{key:"handleInjectURLClick",value:function(){this.injectURL(this.state.url,!0)}},{key:"handleLoad",value:function(){void 0===this.firstLoadDone&&(this.firstLoadDone=!0,this.props.onFirstLoad(),this.setState({loaded:!0})),this.props.onLoad()}},{key:"handleRemoveClick",value:function(e){e.stopPropagation(),this.props.onRemoveClick()}},{key:"handleURLChange",value:function(e){var r=e.target.value;this.setState({url:r})}},{key:"get",value:function(e){return new Promise(function(r,n){var t=new XMLHttpRequest;t.responseType="blob",t.open("GET",e,!0),t.onload=function(){200===t.status?r(t.response):n(Error(t.statusText))},t.onerror=function(){return n(Error("Network Error"))},t.send()})}},{key:"injectURL",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return null};!n||R.isURL(e)?this.get(e).then(function(n){var o=M.last(M.split(e,"/")),a=new File([n],o,{type:n.type});r.change(a,t)}).catch(function(e){r.props.onURLInjectionError()}):this.props.onInvalidURLError()}},{key:"render",value:function(){var r=this,n=null,t=null,o=this.props.src&&(this.props.removable||this.props.croppable);if(this.props.src)switch(this.props.fileType||j.guessFileType(this.props.src)){case"image":if(this.state.loaded&&this.state.mounted&&this.props.imageCrop){var a=this.refs.zone.offsetWidth,i=this.refs.zone.offsetHeight,l=this.refs.img.offsetWidth,c=this.refs.img.offsetHeight,p=this.refs.img.naturalWidth,s=this.refs.img.naturalHeight,d=l*this.props.imageCrop.x/p,u=c*this.props.imageCrop.y/s,m=l*this.props.imageCrop.width/p,h=c*this.props.imageCrop.height/s,f=m/h,v=null;v="contain"===this.props.backgroundSize?i*f>a?a/m:i/h:i*f>a?i/h:a/m,n=e.createElement("img",{alt:"",ref:"img",src:this.props.src,onLoad:this.handleLoad,style:{position:"absolute",top:"50%",left:"50%",transformOrigin:"".concat(d+m/2,"px ").concat(u+h/2,"px"),transform:"\n translateX(-".concat(d+m/2,"px)\n translateY(-").concat(u+h/2,"px)\n scale(").concat(v,")\n "),clip:"rect(\n ".concat(u,"px\n ").concat(d+m,"px\n ").concat(u+h,"px\n ").concat(d,"px)\n ")}})}else n=e.createElement("div",{style:{backgroundColor:this.props.backgroundColor,backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:this.props.backgroundSize,backgroundImage:"url(".concat(this.props.src,")"),position:"relative",width:"100%",height:"100%"}},e.createElement("img",{alt:"",ref:"img",src:this.props.src,onLoad:this.handleLoad,style:{position:"fixed",top:"-9999px",left:"-9999px"}}));break;case"video":n=e.createElement("video",{autoPlay:!0,loop:!0,muted:!0,src:this.props.src,onLoadedData:this.handleLoad,style:"cover"===this.props.backgroundSize?{height:"100%"}:{maxHeight:"100%",maxWidth:"100%"}})}switch(this.props.fileType){case"image":t=e.createElement(k,{className:"uploader-zone-fog-img"});break;case"video":t=e.createElement(E,{className:"uploader-zone-fog-img"})}return e.createElement("div",g({"data-attr":"root"},M.get(this.props.customAttributes,"root",{}),{className:"\n uploader\n ".concat(M.get(this.props.customAttributes,"root.className",""),"\n ").concat(this.props.fetching?"uploader/fetching":"","\n ").concat(this.props.withURLInput?"uploader/withUrl":"","\n ").concat(o?"uploader/withControls":"","\n ")}),e.createElement("input",{"data-attr":"input",ref:"input",type:"file",className:"uploader-input",onChange:this.handleChange}),e.createElement("div",{ref:"zone",className:"\n uploader-zone\n ".concat(this.props.withURLInput?"uploader-zone/withUrl":"","\n "),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},n,e.createElement("div",{className:"uploader-zone-fog",onClick:this.handleClick},this.props.compact&&(this.props.removable||this.props.croppable)&&this.props.src?null:e.createElement(e.Fragment,null,this.state.beingDropTarget?e.createElement(x,{className:"uploader-zone-fog-img"}):t,e.createElement("div",{className:"uploader-zone-fog-caption"},this.props.fetching?this.props.catalogue.loading:"".concat(this.props.catalogue.click).concat(this.props.catalogue.drop?"/".concat(this.props.catalogue.drop):"").concat(this.props.withURLInput?"/".concat(this.props.catalogue.typeURL):""))),!0===o&&e.createElement(e.Fragment,null,this.props.compact?null:e.createElement("div",{className:"uploader-zone-fog-or"},e.createElement("div",{className:"uploader-zone-fog-or-wing"}),e.createElement("div",{className:"uploader-zone-fog-or-body"},this.props.catalogue.or),e.createElement("div",{className:"uploader-zone-fog-or-wing"})),e.createElement("div",{className:"uploader-zone-fog-controls"},!0===this.props.croppable&&e.createElement("span",{className:"uploader-zone-fog-controls-control",onClick:this.handleCropClick},this.props.cropIcon||e.createElement(y,null)),!0===this.props.removable&&e.createElement("span",{className:"uploader-zone-fog-controls-control",onClick:this.handleRemoveClick},this.props.removeIcon||e.createElement(w,null)))))),!0===this.props.withURLInput&&e.createElement("div",{className:"uploader-url"},e.createElement("input",{className:"uploader-url-input",name:"url",value:this.state.url,placeholder:this.props.catalogue.urlInputPlaceholder,type:"text",onChange:this.handleURLChange,onKeyPress:function(e){13===e.which&&(e.preventDefault(),r.handleInjectURLClick())}}),e.createElement("span",{className:"uploader-url-addon",onClick:this.handleInjectURLClick},e.createElement(C,{className:"uploader-url-addon-icon"}),this.props.catalogue.urlSubmitText)))}}])&&f(t.prototype,o),a&&f(t,a),n}();S.propTypes={backgroundColor:r.string,backgroundSize:r.oneOf(["contain","cover"]),catalogue:function(e,r,n){var t=e[r],o=Object.keys(e[r]),a=Object.keys(S.defaultProps[r]);if(!t||"object"!==h(t))throw new Error("Catalogue must be an object.");var i=M.difference(a,o);if(i.length)throw new Error("Given catalogue is insufficient. Missing keys: "+JSON.stringify(i))},compact:r.bool,croppable:r.bool,customAttributes:r.object,fetching:r.bool,fileType:r.oneOf(["image","video"]),imageCrop:r.object,maxSize:r.number,onChange:r.func,onCropClick:r.func,onFileTooLargeError:r.func,onFirstLoad:r.func,onInvalidFileExtensionError:r.func,onInvalidURLError:r.func,onLoad:r.func,onRemoveClick:r.func,onURLInjectionError:r.func,removable:r.bool,src:r.string,withURLInput:r.bool},S.defaultProps={backgroundColor:"transparent",backgroundSize:"cover",catalogue:{click:null,drop:null,typeURL:null,loading:null,or:null,urlInputPlaceholder:null,urlSubmitText:null},compact:!0,croppable:!1,cropIcon:null,customAttributes:{},fetching:!1,fileType:"image",imageCrop:null,maxSize:1e7,onChange:function(e){return null},onCropClick:function(){return null},onFileTooLargeError:function(){return null},onFirstLoad:function(){return null},onInvalidFileExtensionError:function(){return null},onInvalidURLError:function(){return null},onLoad:function(){return null},onRemoveClick:function(){return null},onURLInjectionError:function(){return null},removable:!1,removeIcon:null,src:null,withURLInput:!1};!function(e,r){void 0===r&&(r={});var n=r.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("@keyframes pulse {\r\n from {\r\n transform: scale(0.7);\r\n }\r\n 50% {\r\n transform: scale(1);\r\n }\r\n to {\r\n transform: scale(0.7);\r\n }\r\n}\r\n.uploader {\r\n position: relative;\r\n}\r\n.uploader\\/fetching .uploader-zone-fog-img {\r\n animation: pulse 2s linear infinite;\r\n}\r\n.uploader\\/withUrl .uploader-zone {\r\n border-top-left-radius: 0.25rem !important;\r\n border-top-right-radius: 0.25rem !important;\r\n border-bottom-left-radius: 0 !important;\r\n border-bottom-right-radius: 0 !important;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-caption {\r\n margin-top: 0;\r\n bottom: 0;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-img {\r\n width: 2.6rem;\r\n top: 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row wrap;\r\n position: relative;\r\n bottom: 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row;\r\n font-size: 80%;\r\n width: 100%;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or-wing {\r\n flex-grow: 1;\r\n height: 0;\r\n border-style: solid;\r\n border-width: .06rem 0 0 0;\r\n border-color: white;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or-body {\r\n padding: 0.5rem 0.7rem;\r\n user-select: none;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls > * {\r\n margin: 0 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls-control {\r\n height: 1.6rem;\r\n width: 1.6rem;\r\n fill: white;\r\n}\r\n.uploader img {\r\n max-height: 100%;\r\n max-width: 100%;\r\n height: auto;\r\n width: auto;\r\n}\r\n.uploader-url-addon {\r\n display: flex;\r\n align-items: center;\r\n padding: .375rem .75rem;\r\n margin-bottom: 0;\r\n font-weight: 400;\r\n line-height: 1.5;\r\n color: #495057;\r\n text-align: center;\r\n white-space: nowrap;\r\n background-color: #e9ecef;\r\n border: 1px solid #ced4da;\r\n border-left-width: 0;\r\n border-top-right-radius: 0;\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n border-bottom-right-radius: .25rem;\r\n}\r\n.uploader-url-addon svg {\r\n margin-right: 0.6rem;\r\n fill: #495057;\r\n height: 1.4rem;\r\n}\r\n.uploader-url-input {\r\n display: block;\r\n height: calc(1.5em + .75rem + 2px);\r\n padding: .375rem .75rem;\r\n font-weight: 400;\r\n font-size: 1rem;\r\n line-height: 1.5;\r\n color: #495057;\r\n background-color: #fff;\r\n background-clip: padding-box;\r\n border: 1px solid #ced4da;\r\n border-radius: .25rem;\r\n border-top-left-radius: 0;\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n position: relative;\r\n flex-grow: 1;\r\n margin-bottom: 0;\r\n}\r\n.uploader-url-input:focus {\r\n outline: none;\r\n}\r\n.uploader-url {\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: stretch;\r\n flex-flow: row;\r\n cursor: pointer;\r\n}\r\n.uploader-zone {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row wrap;\r\n width: 100%;\r\n height: 14rem;\r\n overflow: hidden;\r\n position: relative;\r\n border-radius: 500rem;\r\n color: white;\r\n}\r\n.uploader-zone-fog {\r\n display: flex;\r\n justify-content: space-evenly;\r\n align-items: center;\r\n flex-flow: column;\r\n background: rgba(0, 0, 0, 0.2);\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n cursor: pointer;\r\n}\r\n.uploader-zone-fog:hover {\r\n background: rgba(0, 0, 0, 0.5);\r\n}\r\n.uploader-zone-fog-caption {\r\n width: 80%;\r\n text-align: center;\r\n position: relative;\r\n bottom: 1rem;\r\n margin-top: 1rem;\r\n text-shadow: 0 0 0.5rem black;\r\n}\r\n.uploader-zone-fog-img {\r\n width: 5rem;\r\n fill: white;\r\n position: relative;\r\n top: 1rem;\r\n}\r\n.uploader-input {\r\n position: fixed;\r\n top: -9999px;\r\n left: -9999px;\r\n}");export default S;
import e from"react";import r from"prop-types";import n from"validator/lib/isURL";import t from"lodash-es/concat";import o from"lodash-es/isString";import a from"lodash-es/last";import i from"lodash-es/map";import l from"lodash-es/round";import c from"lodash-es/split";import p from"lodash-es/upperCase";import s from"lodash-es/camelCase";import d from"lodash-es/difference";import u from"lodash-es/get";import h from"lodash-es/upperFirst";function m(e){return(m="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,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function g(){return(g=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,r){return(b=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e})(e,r)}function z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var x=function(r){return e.createElement("svg",g({viewBox:"0 0 512.001 512.001"},r),e.createElement("path",{d:"M405.967 187.467c-1.069-78.061-64.902-141.239-143.213-141.239-34.835 0-68.396 12.672-94.498 35.682-23.296 20.535-39.232 47.977-45.543 78.106-.461-.005-.918-.009-1.374-.009C54.434 160.008 0 214.441 0 281.347s54.434 121.339 121.34 121.339h44.534c6.029 0 10.919-4.888 10.919-10.919 0-6.031-4.89-10.919-10.919-10.919H121.34c-54.866 0-99.502-44.636-99.502-99.501s44.636-99.501 99.502-99.501c2.923 0 6.013.157 9.448.48 5.822.54 11.049-3.596 11.842-9.396 3.932-28.82 18.161-55.327 40.067-74.638 22.111-19.492 50.542-30.226 80.056-30.226 66.935 0 121.389 54.455 121.389 121.389 0 2.41-.449 8.642-.449 8.642a10.92 10.92 0 0 0 11.984 11.634 87.102 87.102 0 0 1 8.708-.44c47.297 0 85.778 38.48 85.778 85.778 0 47.297-38.48 85.777-85.778 85.777h-48.902c-6.029 0-10.919 4.888-10.919 10.919s4.89 10.919 10.919 10.919h48.902c59.339 0 107.616-48.275 107.616-107.615-.001-58.808-47.421-106.752-106.034-107.602z"}),e.createElement("path",{d:"M262.755 97.548c-45.658 0-84.742 34.121-90.914 79.367-.815 5.975 3.371 11.462 9.343 12.295 6.368.888 11.548-3.869 12.295-9.343 4.702-34.479 34.484-60.48 69.276-60.48 6.031 0 10.919-4.888 10.919-10.919 0-6.032-4.889-10.92-10.919-10.92zm50.524 312.735c-4.017-4.496-10.92-4.887-15.418-.868l-26.265 23.463V298.547c0-6.031-4.89-10.919-10.919-10.919-6.031 0-10.919 4.888-10.919 10.919v134.33l-26.264-23.463c-4.496-4.018-11.401-3.627-15.417.868-4.018 4.498-3.63 11.399.868 15.418l39.717 35.483a17.983 17.983 0 0 0 12.014 4.59 17.99 17.99 0 0 0 12.013-4.589l39.719-35.483c4.499-4.017 4.888-10.92.871-15.418z"}))},y=function(r){return e.createElement("svg",g({viewBox:"0 0 32 32"},r),e.createElement("path",{d:"M29.5 8C30.879 8 32 6.879 32 5.5v-3C32 1.121 30.879 0 29.5 0h-3A2.502 2.502 0 0 0 24 2.5V3H8v-.5C8 1.121 6.879 0 5.5 0h-3A2.503 2.503 0 0 0 0 2.5v3C0 6.879 1.122 8 2.5 8H3v16h-.5A2.503 2.503 0 0 0 0 26.5v3C0 30.879 1.122 32 2.5 32h3C6.879 32 8 30.879 8 29.5V29h16v.5c0 1.379 1.121 2.5 2.5 2.5h3c1.379 0 2.5-1.121 2.5-2.5v-3c0-1.379-1.121-2.5-2.5-2.5H29V8h.5zm-27-2a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3zM6 29.5c0 .275-.225.5-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3c.275 0 .5.225.5.5v3zm18-3v.5H8v-.5C8 25.121 6.879 24 5.5 24H5V8h.5C6.879 8 8 6.879 8 5.5V5h16v.5C24 6.879 25.121 8 26.5 8h.5v16h-.5a2.502 2.502 0 0 0-2.5 2.5zm5.5-.5c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3a.501.501 0 0 1-.5-.5v-3c0-.275.225-.5.5-.5h3zm-3-20a.501.501 0 0 1-.5-.5v-3c0-.275.225-.5.5-.5h3c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3z"}))},w=function(r){return e.createElement("svg",g({viewBox:"0 0 486.4 486.4"},r),e.createElement("path",{d:"M446 70H344.8V53.5c0-29.5-24-53.5-53.5-53.5h-96.2c-29.5 0-53.5 24-53.5 53.5V70H40.4c-7.5 0-13.5 6-13.5 13.5S32.9 97 40.4 97h24.4v317.2c0 39.8 32.4 72.2 72.2 72.2h212.4c39.8 0 72.2-32.4 72.2-72.2V97H446c7.5 0 13.5-6 13.5-13.5S453.5 70 446 70zM168.6 53.5c0-14.6 11.9-26.5 26.5-26.5h96.2c14.6 0 26.5 11.9 26.5 26.5V70H168.6V53.5zm226 360.7c0 24.9-20.3 45.2-45.2 45.2H137c-24.9 0-45.2-20.3-45.2-45.2V97h302.9v317.2h-.1z"}),e.createElement("path",{d:"M243.2 411c7.5 0 13.5-6 13.5-13.5V158.9c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v238.5c0 7.5 6 13.6 13.5 13.6zm-88.1-14.9c7.5 0 13.5-6 13.5-13.5V173.7c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v208.9c0 7.5 6.1 13.5 13.5 13.5zm176.2 0c7.5 0 13.5-6 13.5-13.5V173.7c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v208.9c0 7.5 6 13.5 13.5 13.5z"}))},C=function(r){return e.createElement("svg",g({height:596,viewBox:"0 0 447.632 447"},r),e.createElement("path",{d:"M231.816 447.05c34.23-4.863 64.239-40.59 83.121-93.35a406.317 406.317 0 0 0-83.12-9.786zm0 0M286.504 438.66c2.023-.586 4.039-1.176 6.039-1.824 1.687-.543 3.352-1.129 5.016-1.711a203.39 203.39 0 0 0 5.882-2.121c1.664-.633 3.313-1.305 4.965-1.977 1.906-.8 3.809-1.597 5.692-2.398a240.401 240.401 0 0 0 10.422-4.922c1.601-.816 3.199-1.648 4.8-2.504 1.793-.96 3.575-1.941 5.344-2.95a203.403 203.403 0 0 0 4.703-2.753c1.735-1.066 3.461-2.133 5.176-3.2a191.535 191.535 0 0 0 4.578-2.991 221.095 221.095 0 0 0 5.008-3.504 417.693 417.693 0 0 0 4.422-3.2 365.942 365.942 0 0 0 4.847-3.793c1.426-1.136 2.848-2.265 4.25-3.433 1.598-1.328 3.13-2.703 4.68-4.078 1.36-1.207 2.727-2.403 4.055-3.64 1.527-1.427 3.015-2.903 4.504-4.368 1.289-1.273 2.593-2.527 3.855-3.832.235-.242.457-.504.7-.754a268.883 268.883 0 0 0-54.817-21.094 198.517 198.517 0 0 1-51.129 83.024c.649-.168 1.297-.305 1.945-.473 1.711-.48 3.391-1.008 5.063-1.504zm0 0M447.633 231.684H351.71a414.882 414.882 0 0 1-16.152 110.68 278.228 278.228 0 0 1 60.714 24.16 223.51 223.51 0 0 0 51.36-134.84zm0 0M231.816 215.684h103.895a400.208 400.208 0 0 0-15.75-106.743 421.384 421.384 0 0 1-88.145 10.512zm0 0M231.816.316v103.137a406.589 406.589 0 0 0 83.121-9.785C296.055 40.906 266.048 5.18 231.817.316zm0 0M231.816 327.914a421.648 421.648 0 0 1 88.145 10.516 400.236 400.236 0 0 0 15.75-106.746H231.816zm0 0M396.273 80.844a278.228 278.228 0 0 1-60.714 24.16 414.882 414.882 0 0 1 16.152 110.68h95.922a223.577 223.577 0 0 0-51.36-134.84zm0 0M385.465 68.707c-.235-.238-.457-.496-.688-.742-1.265-1.305-2.578-2.563-3.867-3.832-1.484-1.465-2.965-2.945-4.496-4.367-1.324-1.235-2.695-2.403-4.055-3.633-1.55-1.375-3.101-2.762-4.695-4.09-1.383-1.168-2.8-2.285-4.207-3.406a171.24 171.24 0 0 0-4.89-3.825 220.477 220.477 0 0 0-4.383-3.199 192.844 192.844 0 0 0-5.055-3.547 200.251 200.251 0 0 0-4.535-2.957 190.441 190.441 0 0 0-5.219-3.257 223.26 223.26 0 0 0-4.664-2.727 220.848 220.848 0 0 0-5.39-2.984c-1.602-.801-3.2-1.672-4.801-2.473-1.84-.93-3.696-1.824-5.598-2.703a174.071 174.071 0 0 0-4.875-2.227c-1.895-.84-3.809-1.597-5.719-2.398a225.094 225.094 0 0 0-4.953-1.969 191.214 191.214 0 0 0-5.879-2.117 210.272 210.272 0 0 0-5.016-1.715c-2-.648-4-1.238-6.054-1.832-1.664-.488-3.336-.984-5.02-1.43-.644-.175-1.3-.312-1.949-.48a198.532 198.532 0 0 1 51.129 83.023 268.485 268.485 0 0 0 54.879-21.113zm0 0M0 215.684h95.922a415.035 415.035 0 0 1 16.148-110.68 277.885 277.885 0 0 1-60.71-24.16A223.519 223.519 0 0 0 0 215.684zm0 0M215.816 447.05V343.915a406.589 406.589 0 0 0-83.12 9.785c18.878 52.762 48.89 88.488 83.12 93.352zm0 0M215.816 231.684H111.922a400.079 400.079 0 0 0 15.75 106.746 421.097 421.097 0 0 1 88.144-10.516zm0 0M215.816.316c-34.23 4.864-64.242 40.59-83.12 93.352a406.045 406.045 0 0 0 83.12 9.785zm0 0M215.816 119.453a421.384 421.384 0 0 1-88.144-10.512 400.05 400.05 0 0 0-15.75 106.743h103.894zm0 0M168.113 6.79c-.648.167-1.297.304-1.945.472-1.695.453-3.367.957-5.055 1.445-2.008.586-4 1.176-6.015 1.816-1.7.551-3.371 1.137-5.043 1.72-1.957.69-3.918 1.378-5.856 2.112-1.672.641-3.32 1.305-4.976 1.985-1.903.8-3.809 1.601-5.688 2.398-1.648.723-3.277 1.48-4.91 2.242a223.908 223.908 0 0 0-5.512 2.68 228.526 228.526 0 0 0-10.137 5.457 149.244 149.244 0 0 0-4.718 2.75c-1.738 1.047-3.457 2.13-5.168 3.2-1.54.984-3.067 1.976-4.578 3a221.095 221.095 0 0 0-5.008 3.503 403.614 403.614 0 0 0-4.426 3.203c-1.637 1.23-3.2 2.512-4.848 3.79-1.421 1.136-2.855 2.265-4.246 3.44-1.601 1.321-3.12 2.688-4.664 4.056-1.367 1.218-2.746 2.402-4.082 3.664-1.52 1.418-3 2.89-4.484 4.351-1.29 1.274-2.602 2.531-3.867 3.84-.23.242-.453.508-.696.754a268.581 268.581 0 0 0 54.817 21.098 198.45 198.45 0 0 1 51.105-82.977zm0 0M66.719 383.234c1.488 1.465 2.969 2.946 4.496 4.371 1.328 1.23 2.695 2.399 4.058 3.63 1.551 1.378 3.102 2.761 4.696 4.09 1.383 1.16 2.793 2.28 4.207 3.405 1.601 1.297 3.199 2.586 4.894 3.833 1.442 1.082 2.907 2.128 4.371 3.203 1.672 1.199 3.36 2.398 5.063 3.55a214.813 214.813 0 0 0 4.535 2.961c1.73 1.11 3.457 2.2 5.219 3.254 1.543.93 3.101 1.84 4.664 2.73a208.275 208.275 0 0 0 5.39 2.981c1.598.801 3.2 1.672 4.801 2.473 1.84.93 3.696 1.824 5.598 2.707 1.601.754 3.226 1.496 4.875 2.223 1.894.84 3.805 1.597 5.719 2.398 1.648.672 3.289 1.336 4.953 1.969 1.941.746 3.91 1.441 5.879 2.12 1.664.583 3.328 1.169 5.015 1.712 2 .648 4 1.242 6.055 1.832 1.664.488 3.336.984 5.016 1.433.648.176 1.304.313 1.953.48a198.57 198.57 0 0 1-51.13-83.027 268.607 268.607 0 0 0-54.816 21.106c.235.238.458.496.692.742 1.2 1.297 2.492 2.555 3.797 3.824zm0 0M51.36 366.523a278.275 278.275 0 0 1 60.71-24.16 415.035 415.035 0 0 1-16.148-110.68H0a223.552 223.552 0 0 0 51.36 134.84zm0 0"}))},k=function(r){return e.createElement("svg",g({viewBox:"0 0 512 512"},r),e.createElement("path",{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"}))},E=function(r){return e.createElement("svg",g({viewBox:"0 0 512 512"},r),e.createElement("path",{d:"M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"}))},L={video:{mimeTypes:["video/x-flv","video/mp4","application/octet-stream","application/x-mpegURL","video/MP2T","video/3gpp","video/quicktime","video/x-msvideo","video/x-ms-wmv"],extensions:["3g2","3gp","amv","asf","avi","drc","f4a","f4b","f4p","f4v","flv","gif","gifv","m2v","m4p","m4v","mkv","mov","mng","mp2","mp4","mpe","mpeg","mpg","mpv","MTS","M2TS","mxf","nsv","ogg","qt","rm","rmvb","roq","svi","vob","webm","wmv","yuv"]},image:{mimeTypes:["image/gif","image/jpeg","image/png","image/tiff","image/vnd.microsoft.icon","image/vnd.djvu","image/svg+xml"],extensions:["3dv","PI1","PI2","PI3","ai","amf","art","art","ase","awg","blp","bmp","bw","bw","cd5","cdr","cgm","cit","cmx","cpt","cr2","cur","cut","dds","dib","djvu","dxf","e2d","ecw","egt","egt","emf","eps","exif","fs","gbr","gif","gpl","grf","hdp","icns","ico","iff","iff","int","int","inta","jfif","jng","jp2","jpeg","jpg","jps","jxr","lbm","lbm","liff","max","miff","mng","msp","nitf","nrrd","odg","ota","pam","pbm","pc1","pc2","pc3","pcf","pct","pcx","pcx","pdd","pdn","pgf","pgm","pict","png","pnm","pns","ppm","psb","psd","psp","px","pxm","pxr","qfx","ras","raw","rgb","rgb","rgba","rle","sct","sgi","sgi","sid","stl","sun","svg","sxd","tga","tga","tif","tiff","v2d","vnd","vrml","vtf","wdp","webp","wmf","x3d","xar","xbm","xcf","xpm"]},compressedFile:{mimeTypes:["application/x-bzip2","application/gzip","application/x-lzip","application/x-lzma","application/x-lzop","application/x-snappy-framed","application/x-xz","application/x-compress","application/x-7z-compressed","application/x-ace-compressed","application/x-astrotite-afa","application/x-alz-compressed","application/vnd.android.package-archive","application/x-arj","application/x-b1","application/vnd.ms-cab-compressed","application/x-cfs-compressed","application/x-dar","application/x-dgc-compressed","application/x-apple-diskimage","application/x-gca-compressed","application/x-lzh","application/x-lzx","application/x-rar-compressed","application/x-stuffit","application/x-stuffitx","application/x-gtar","application/zip","application/x-zoo"],extensions:["bz2","gz","F","lz","lzma","lzo","rz","sfark","sz","xz","z","Z","?Q?","?XF","?Z?","??_","7z","ace","afa","alz","apk","arc","arj","b1","b6z","ba","bh","cab","car","cfs","cpt","dar","dd","dgc","dmg","ear","gca","ha","hki","ice","jar","kgb","lha","lzh","lzx","pak","paq6","paq7","paq8","partimg","pea","pim","pit","qda","rar","rk","s7z","sda","sea","sen","sfx","shk","sit","sitx","sqx","tar.bz2","tar.gz","tar.lzma","tar.xz","tar.Z","tbz2","tgz","tlz","txz","ue2","uc","uc0","uc2","uca","ucn","uha","ur2","war","wim","xar","xp3","yz1","zip","zipx","zoo","zpaq","zz"]}},j={},T={concat:t,isString:o,last:a,map:i,round:l,split:c,upperCase:p};j.initializeDrag=function(){window.addEventListener("dragover",function(e){(e=e||event).preventDefault()},!1),window.addEventListener("drop",function(e){(e=e||event).preventDefault()},!1)},j.base64MimeType=function(e){var r=null;if("string"!=typeof e)return r;var n=e.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);return n&&n.length&&(r=n[1]),r},j.isBase64=function(e){return null!==j.base64MimeType(e)},j.extension=function(e){return e=T.isString(e)?e:e.name,T.last(T.split(e,"."))},j.fileType=function(e){if(!e.match(/\//)){var r={video:L.video.extensions,image:L.image.extensions,compressedFile:L.compressedFile.extensions};for(var n in r){if(-1!==T.concat(r[n],T.map(r[n],function(e){return T.upperCase(e)})).indexOf(e))return n}}else{var t={video:L.video.mimeTypes,image:L.image.mimeTypes,compressedFile:L.compressedFile.mimeTypes};for(var o in t){if(-1!==t[o].indexOf(e))return o}}return null},j.guessFileType=function(e){return j.fileType(j.base64MimeType(e)||j.extension(e))},j.humanSize=function(e){for(var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=["B","KB","MB","GB","TB"],t=n.length-1;t>=0;t--){var o=1*e/Math.pow(1e3,t);if(o>=1)return r&&(o=T.round(o)),"".concat(o," ").concat(n[t])}};var R={isURL:n},M={camelCase:s,difference:d,get:u,last:a,upperFirst:h,split:c},S=function(r){function n(e){var r,t,o;return function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,n),t=this,(r=!(o=v(n).call(this,e))||"object"!=typeof o&&"function"!=typeof o?z(t):o).state={beingDropTarget:!1,height:null,file:null,loaded:!0,mounted:!1,url:"",width:null},r.change=r.change.bind(z(r)),r.handleChange=r.handleChange.bind(z(r)),r.handleClick=r.handleClick.bind(z(r)),r.handleCropClick=r.handleCropClick.bind(z(r)),r.handleDragLeave=r.handleDragLeave.bind(z(r)),r.handleDragOver=r.handleDragOver.bind(z(r)),r.handleDrop=r.handleDrop.bind(z(r)),r.handleInjectURLClick=r.handleInjectURLClick.bind(z(r)),r.handleLoad=r.handleLoad.bind(z(r)),r.handleRemoveClick=r.handleRemoveClick.bind(z(r)),r.handleURLChange=r.handleURLChange.bind(z(r)),r.get=r.get.bind(z(r)),r.injectURL=r.injectURL.bind(z(r)),r.change=r.change.bind(z(r)),r}var t,o,a;return function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&b(e,r)}(n,e.Component),t=n,(o=[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),j.initializeDrag()}},{key:"change",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return null},n=this.props.maxSize;j.guessFileType(e)!==this.props.fileType?this.props.onInvalidFileExtensionError():n&&e.size>=n?this.props.onFileTooLargeError():this.props.onChange(e),r(e),this.refs.input.value=null}},{key:"handleChange",value:function(e){var r=M.get(e,"target.files.0");r&&this.change(r)}},{key:"handleClick",value:function(e){this.refs.input.click()}},{key:"handleCropClick",value:function(e){e.stopPropagation(),this.props.onCropClick()}},{key:"handleDragLeave",value:function(){this.setState({beingDropTarget:!1})}},{key:"handleDragOver",value:function(){this.setState({beingDropTarget:!0})}},{key:"handleDrop",value:function(e){e.preventDefault(),this.setState({beingDropTarget:!1});var r=M.get(e,"dataTransfer.files.0");r&&this.change(r)}},{key:"handleInjectURLClick",value:function(){this.injectURL(this.state.url,!0)}},{key:"handleLoad",value:function(){void 0===this.firstLoadDone&&(this.firstLoadDone=!0,this.props.onFirstLoad(),this.setState({loaded:!0})),this.props.onLoad()}},{key:"handleRemoveClick",value:function(e){e.stopPropagation(),this.props.onRemoveClick()}},{key:"handleURLChange",value:function(e){var r=e.target.value;this.setState({url:r})}},{key:"get",value:function(e){return new Promise(function(r,n){var t=new XMLHttpRequest;t.responseType="blob",t.open("GET",e,!0),t.onload=function(){200===t.status?r(t.response):n(Error(t.statusText))},t.onerror=function(){return n(Error("Network Error"))},t.send()})}},{key:"injectURL",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return null};!n||R.isURL(e)?this.get(e).then(function(n){var o=M.last(M.split(e,"/")),a=new File([n],o,{type:n.type});r.change(a,t)}).catch(function(e){r.props.onURLInjectionError()}):this.props.onInvalidURLError()}},{key:"render",value:function(){var r=this,n=null,t=null,o=this.props.src&&(this.props.removable||this.props.croppable);if(this.props.src&&this.refs.zone&&this.refs.img)switch(this.props.fileType||j.guessFileType(this.props.src)){case"image":if(this.state.loaded&&this.state.mounted&&this.props.imageCrop){var a=this.refs.zone.offsetWidth,i=this.refs.zone.offsetHeight,l=this.refs.img.offsetWidth,c=this.refs.img.offsetHeight,p=this.refs.img.naturalWidth,s=this.refs.img.naturalHeight,d=l*this.props.imageCrop.x/p,u=c*this.props.imageCrop.y/s,h=l*this.props.imageCrop.width/p,m=c*this.props.imageCrop.height/s,f=h/m,v=null;v="contain"===this.props.backgroundSize?i*f>a?a/h:i/m:i*f>a?i/m:a/h,n=e.createElement("img",{alt:"",ref:"img",src:this.props.src,onLoad:this.handleLoad,style:{position:"absolute",top:"50%",left:"50%",transformOrigin:"".concat(d+h/2,"px ").concat(u+m/2,"px"),transform:"\n translateX(-".concat(d+h/2,"px)\n translateY(-").concat(u+m/2,"px)\n scale(").concat(v,")\n "),clip:"rect(\n ".concat(u,"px\n ").concat(d+h,"px\n ").concat(u+m,"px\n ").concat(d,"px)\n ")}})}else n=e.createElement("div",{style:{backgroundColor:this.props.backgroundColor,backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:this.props.backgroundSize,backgroundImage:"url(".concat(this.props.src,")"),position:"relative",width:"100%",height:"100%"}},e.createElement("img",{alt:"",ref:"img",src:this.props.src,onLoad:this.handleLoad,style:{position:"fixed",top:"-9999px",left:"-9999px"}}));break;case"video":n=e.createElement("video",{autoPlay:!0,loop:!0,muted:!0,src:this.props.src,onLoadedData:this.handleLoad,style:"cover"===this.props.backgroundSize?{height:"100%"}:{maxHeight:"100%",maxWidth:"100%"}})}switch(this.props.fileType){case"image":t=e.createElement(k,{className:"uploader-zone-fog-img"});break;case"video":t=e.createElement(E,{className:"uploader-zone-fog-img"})}return e.createElement("div",g({"data-attr":"root"},M.get(this.props.customAttributes,"root",{}),{className:"\n uploader\n ".concat(M.get(this.props.customAttributes,"root.className",""),"\n ").concat(this.props.fetching?"uploader/fetching":"","\n ").concat(this.props.withURLInput?"uploader/withUrl":"","\n ").concat(o?"uploader/withControls":"","\n ")}),e.createElement("input",{"data-attr":"input",ref:"input",type:"file",className:"uploader-input",onChange:this.handleChange}),e.createElement("div",{ref:"zone",className:"\n uploader-zone\n ".concat(this.props.withURLInput?"uploader-zone/withUrl":"","\n "),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},n,e.createElement("div",{className:"uploader-zone-fog",onClick:this.handleClick},this.props.compact&&(this.props.removable||this.props.croppable)&&this.props.src?null:e.createElement(e.Fragment,null,this.state.beingDropTarget?e.createElement(x,{className:"uploader-zone-fog-img"}):t,e.createElement("div",{className:"uploader-zone-fog-caption"},this.props.fetching?this.props.catalogue.loading:"".concat(this.props.catalogue.click).concat(this.props.catalogue.drop?"/".concat(this.props.catalogue.drop):"").concat(this.props.withURLInput?"/".concat(this.props.catalogue.typeURL):""))),!0===o&&e.createElement(e.Fragment,null,this.props.compact?null:e.createElement("div",{className:"uploader-zone-fog-or"},e.createElement("div",{className:"uploader-zone-fog-or-wing"}),e.createElement("div",{className:"uploader-zone-fog-or-body"},this.props.catalogue.or),e.createElement("div",{className:"uploader-zone-fog-or-wing"})),e.createElement("div",{className:"uploader-zone-fog-controls"},!0===this.props.croppable&&e.createElement("span",{className:"uploader-zone-fog-controls-control",onClick:this.handleCropClick},this.props.cropIcon||e.createElement(y,null)),!0===this.props.removable&&e.createElement("span",{className:"uploader-zone-fog-controls-control",onClick:this.handleRemoveClick},this.props.removeIcon||e.createElement(w,null)))))),!0===this.props.withURLInput&&e.createElement("div",{className:"uploader-url"},e.createElement("input",{className:"uploader-url-input",name:"url",value:this.state.url,placeholder:this.props.catalogue.urlInputPlaceholder,type:"text",onChange:this.handleURLChange,onKeyPress:function(e){13===e.which&&(e.preventDefault(),r.handleInjectURLClick())}}),e.createElement("span",{className:"uploader-url-addon",onClick:this.handleInjectURLClick},e.createElement(C,{className:"uploader-url-addon-icon"}),this.props.catalogue.urlSubmitText)))}}])&&f(t.prototype,o),a&&f(t,a),n}();S.propTypes={backgroundColor:r.string,backgroundSize:r.oneOf(["contain","cover"]),catalogue:function(e,r,n){var t=e[r],o=Object.keys(e[r]),a=Object.keys(S.defaultProps[r]);if(!t||"object"!==m(t))throw new Error("Catalogue must be an object.");var i=M.difference(a,o);if(i.length)throw new Error("Given catalogue is insufficient. Missing keys: "+JSON.stringify(i))},compact:r.bool,croppable:r.bool,customAttributes:r.object,fetching:r.bool,fileType:r.oneOf(["image","video"]),imageCrop:r.object,maxSize:r.number,onChange:r.func,onCropClick:r.func,onFileTooLargeError:r.func,onFirstLoad:r.func,onInvalidFileExtensionError:r.func,onInvalidURLError:r.func,onLoad:r.func,onRemoveClick:r.func,onURLInjectionError:r.func,removable:r.bool,src:r.string,withURLInput:r.bool},S.defaultProps={backgroundColor:"transparent",backgroundSize:"cover",catalogue:{click:null,drop:null,typeURL:null,loading:null,or:null,urlInputPlaceholder:null,urlSubmitText:null},compact:!0,croppable:!1,cropIcon:null,customAttributes:{},fetching:!1,fileType:"image",imageCrop:null,maxSize:1e7,onChange:function(e){return null},onCropClick:function(){return null},onFileTooLargeError:function(){return null},onFirstLoad:function(){return null},onInvalidFileExtensionError:function(){return null},onInvalidURLError:function(){return null},onLoad:function(){return null},onRemoveClick:function(){return null},onURLInjectionError:function(){return null},removable:!1,removeIcon:null,src:null,withURLInput:!1};!function(e,r){void 0===r&&(r={});var n=r.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("@keyframes pulse {\r\n from {\r\n transform: scale(0.7);\r\n }\r\n 50% {\r\n transform: scale(1);\r\n }\r\n to {\r\n transform: scale(0.7);\r\n }\r\n}\r\n.uploader {\r\n position: relative;\r\n}\r\n.uploader\\/fetching .uploader-zone-fog-img {\r\n animation: pulse 2s linear infinite;\r\n}\r\n.uploader\\/withUrl .uploader-zone {\r\n border-top-left-radius: 0.25rem !important;\r\n border-top-right-radius: 0.25rem !important;\r\n border-bottom-left-radius: 0 !important;\r\n border-bottom-right-radius: 0 !important;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-caption {\r\n margin-top: 0;\r\n bottom: 0;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-img {\r\n width: 2.6rem;\r\n top: 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row wrap;\r\n position: relative;\r\n bottom: 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row;\r\n font-size: 80%;\r\n width: 100%;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or-wing {\r\n flex-grow: 1;\r\n height: 0;\r\n border-style: solid;\r\n border-width: .06rem 0 0 0;\r\n border-color: white;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or-body {\r\n padding: 0.5rem 0.7rem;\r\n user-select: none;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls > * {\r\n margin: 0 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls-control {\r\n height: 1.6rem;\r\n width: 1.6rem;\r\n fill: white;\r\n}\r\n.uploader img {\r\n max-height: 100%;\r\n max-width: 100%;\r\n height: auto;\r\n width: auto;\r\n}\r\n.uploader-url-addon {\r\n display: flex;\r\n align-items: center;\r\n padding: .375rem .75rem;\r\n margin-bottom: 0;\r\n font-weight: 400;\r\n line-height: 1.5;\r\n color: #495057;\r\n text-align: center;\r\n white-space: nowrap;\r\n background-color: #e9ecef;\r\n border: 1px solid #ced4da;\r\n border-left-width: 0;\r\n border-top-right-radius: 0;\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n border-bottom-right-radius: .25rem;\r\n}\r\n.uploader-url-addon svg {\r\n margin-right: 0.6rem;\r\n fill: #495057;\r\n height: 1.4rem;\r\n}\r\n.uploader-url-input {\r\n display: block;\r\n height: calc(1.5em + .75rem + 2px);\r\n padding: .375rem .75rem;\r\n font-weight: 400;\r\n font-size: 1rem;\r\n line-height: 1.5;\r\n color: #495057;\r\n background-color: #fff;\r\n background-clip: padding-box;\r\n border: 1px solid #ced4da;\r\n border-radius: .25rem;\r\n border-top-left-radius: 0;\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n position: relative;\r\n flex-grow: 1;\r\n margin-bottom: 0;\r\n}\r\n.uploader-url-input:focus {\r\n outline: none;\r\n}\r\n.uploader-url {\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: stretch;\r\n flex-flow: row;\r\n cursor: pointer;\r\n}\r\n.uploader-zone {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row wrap;\r\n width: 100%;\r\n height: 14rem;\r\n overflow: hidden;\r\n position: relative;\r\n border-radius: 500rem;\r\n color: white;\r\n}\r\n.uploader-zone-fog {\r\n display: flex;\r\n justify-content: space-evenly;\r\n align-items: center;\r\n flex-flow: column;\r\n background: rgba(0, 0, 0, 0.2);\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n cursor: pointer;\r\n}\r\n.uploader-zone-fog:hover {\r\n background: rgba(0, 0, 0, 0.5);\r\n}\r\n.uploader-zone-fog-caption {\r\n width: 80%;\r\n text-align: center;\r\n position: relative;\r\n bottom: 1rem;\r\n margin-top: 1rem;\r\n text-shadow: 0 0 0.5rem black;\r\n}\r\n.uploader-zone-fog-img {\r\n width: 5rem;\r\n fill: white;\r\n position: relative;\r\n top: 1rem;\r\n}\r\n.uploader-input {\r\n position: fixed;\r\n top: -9999px;\r\n left: -9999px;\r\n}");export default S;

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):(e=e||self).Uploader=t(e.React,e.PropTypes)}(this,function(e,t){"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)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e,t){return e(t={exports:{}},t.exports),t.exports}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var s=l(function(e,t){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=function(e){if(!("string"==typeof e||e instanceof String)){var t;throw t=null===e?"null":"object"===(t=r(e))&&e.constructor&&e.constructor.hasOwnProperty("name")?e.constructor.name:"a ".concat(t),new TypeError("Expected string but received ".concat(t,"."))}},e.exports=t.default,e.exports.default=t.default});c(s);var f=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default});c(f);var p=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,n.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));for(var o=e.split("."),i=0;i<o.length;i++)if(o[i].length>63)return!1;if(t.require_tld){var u=o.pop();if(!o.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(u))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(u))return!1}for(var c,l=0;l<o.length;l++){if(c=o[l],t.allow_underscores&&(c=c.replace(/_/g,"")),!/^[a-z\u00a1-\uffff0-9-]+$/i.test(c))return!1;if(/[\uff01-\uff5e]/.test(c))return!1;if("-"===c[0]||"-"===c[c.length-1])return!1}return!0};var r=o(s),n=o(f);function o(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1};e.exports=t.default,e.exports.default=t.default});c(p);var d=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,n.default)(t);r=String(r);if(!r)return e(t,4)||e(t,6);if("4"===r){if(!o.test(t))return!1;var i=t.split(".").sort(function(e,t){return e-t});return i[3]<=255}if("6"===r){var u=t.split(":"),c=!1,l=e(u[u.length-1],4),s=l?7:8;if(u.length>s)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(u.shift(),u.shift(),c=!0):"::"===t.substr(t.length-2)&&(u.pop(),u.pop(),c=!0);for(var f=0;f<u.length;++f)if(""===u[f]&&f>0&&f<u.length-1){if(c)return!1;c=!0}else if(l&&f===u.length-1);else if(!a.test(u[f]))return!1;return c?u.length>=1:u.length===s}return!1};var r,n=(r=s)&&r.__esModule?r:{default:r};var o=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,a=/^[0-9A-F]{1,4}$/i;e.exports=t.default,e.exports.default=t.default});c(d);var h=c(l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||e.length>=2083||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;var i,s,f,p,d,h,v,g;if(t=(0,a.default)(t,u),v=e.split("#"),e=v.shift(),v=e.split("?"),e=v.shift(),(v=e.split("://")).length>1){if(i=v.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(i))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;v[0]=e.substr(2)}}if(""===(e=v.join("://")))return!1;if(v=e.split("/"),""===(e=v.shift())&&!t.require_host)return!0;if((v=e.split("@")).length>1){if(t.disallow_auth)return!1;if((s=v.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1}p=v.join("@"),h=null,g=null;var m=p.match(c);m?(f="",g=m[1],h=m[2]||null):(v=p.split(":"),f=v.shift(),v.length&&(h=v.join(":")));if(null!==h&&(d=parseInt(h,10),!/^[0-9]+$/.test(h)||d<=0||d>65535))return!1;if(!((0,o.default)(f)||(0,n.default)(f,t)||g&&(0,o.default)(g,6)))return!1;if(f=f||g,t.host_whitelist&&!l(f,t.host_whitelist))return!1;if(t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var r=i(s),n=i(p),o=i(d),a=i(f);function i(e){return e&&e.__esModule?e:{default:e}}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},c=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||(o=n,"[object RegExp]"===Object.prototype.toString.call(o)&&n.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default})),v=function(t){return e.createElement("svg",o({viewBox:"0 0 512.001 512.001"},t),e.createElement("path",{d:"M405.967 187.467c-1.069-78.061-64.902-141.239-143.213-141.239-34.835 0-68.396 12.672-94.498 35.682-23.296 20.535-39.232 47.977-45.543 78.106-.461-.005-.918-.009-1.374-.009C54.434 160.008 0 214.441 0 281.347s54.434 121.339 121.34 121.339h44.534c6.029 0 10.919-4.888 10.919-10.919 0-6.031-4.89-10.919-10.919-10.919H121.34c-54.866 0-99.502-44.636-99.502-99.501s44.636-99.501 99.502-99.501c2.923 0 6.013.157 9.448.48 5.822.54 11.049-3.596 11.842-9.396 3.932-28.82 18.161-55.327 40.067-74.638 22.111-19.492 50.542-30.226 80.056-30.226 66.935 0 121.389 54.455 121.389 121.389 0 2.41-.449 8.642-.449 8.642a10.92 10.92 0 0 0 11.984 11.634 87.102 87.102 0 0 1 8.708-.44c47.297 0 85.778 38.48 85.778 85.778 0 47.297-38.48 85.777-85.778 85.777h-48.902c-6.029 0-10.919 4.888-10.919 10.919s4.89 10.919 10.919 10.919h48.902c59.339 0 107.616-48.275 107.616-107.615-.001-58.808-47.421-106.752-106.034-107.602z"}),e.createElement("path",{d:"M262.755 97.548c-45.658 0-84.742 34.121-90.914 79.367-.815 5.975 3.371 11.462 9.343 12.295 6.368.888 11.548-3.869 12.295-9.343 4.702-34.479 34.484-60.48 69.276-60.48 6.031 0 10.919-4.888 10.919-10.919 0-6.032-4.889-10.92-10.919-10.92zm50.524 312.735c-4.017-4.496-10.92-4.887-15.418-.868l-26.265 23.463V298.547c0-6.031-4.89-10.919-10.919-10.919-6.031 0-10.919 4.888-10.919 10.919v134.33l-26.264-23.463c-4.496-4.018-11.401-3.627-15.417.868-4.018 4.498-3.63 11.399.868 15.418l39.717 35.483a17.983 17.983 0 0 0 12.014 4.59 17.99 17.99 0 0 0 12.013-4.589l39.719-35.483c4.499-4.017 4.888-10.92.871-15.418z"}))},g=function(t){return e.createElement("svg",o({viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M29.5 8C30.879 8 32 6.879 32 5.5v-3C32 1.121 30.879 0 29.5 0h-3A2.502 2.502 0 0 0 24 2.5V3H8v-.5C8 1.121 6.879 0 5.5 0h-3A2.503 2.503 0 0 0 0 2.5v3C0 6.879 1.122 8 2.5 8H3v16h-.5A2.503 2.503 0 0 0 0 26.5v3C0 30.879 1.122 32 2.5 32h3C6.879 32 8 30.879 8 29.5V29h16v.5c0 1.379 1.121 2.5 2.5 2.5h3c1.379 0 2.5-1.121 2.5-2.5v-3c0-1.379-1.121-2.5-2.5-2.5H29V8h.5zm-27-2a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3zM6 29.5c0 .275-.225.5-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3c.275 0 .5.225.5.5v3zm18-3v.5H8v-.5C8 25.121 6.879 24 5.5 24H5V8h.5C6.879 8 8 6.879 8 5.5V5h16v.5C24 6.879 25.121 8 26.5 8h.5v16h-.5a2.502 2.502 0 0 0-2.5 2.5zm5.5-.5c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3a.501.501 0 0 1-.5-.5v-3c0-.275.225-.5.5-.5h3zm-3-20a.501.501 0 0 1-.5-.5v-3c0-.275.225-.5.5-.5h3c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3z"}))},m=function(t){return e.createElement("svg",o({viewBox:"0 0 486.4 486.4"},t),e.createElement("path",{d:"M446 70H344.8V53.5c0-29.5-24-53.5-53.5-53.5h-96.2c-29.5 0-53.5 24-53.5 53.5V70H40.4c-7.5 0-13.5 6-13.5 13.5S32.9 97 40.4 97h24.4v317.2c0 39.8 32.4 72.2 72.2 72.2h212.4c39.8 0 72.2-32.4 72.2-72.2V97H446c7.5 0 13.5-6 13.5-13.5S453.5 70 446 70zM168.6 53.5c0-14.6 11.9-26.5 26.5-26.5h96.2c14.6 0 26.5 11.9 26.5 26.5V70H168.6V53.5zm226 360.7c0 24.9-20.3 45.2-45.2 45.2H137c-24.9 0-45.2-20.3-45.2-45.2V97h302.9v317.2h-.1z"}),e.createElement("path",{d:"M243.2 411c7.5 0 13.5-6 13.5-13.5V158.9c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v238.5c0 7.5 6 13.6 13.5 13.6zm-88.1-14.9c7.5 0 13.5-6 13.5-13.5V173.7c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v208.9c0 7.5 6.1 13.5 13.5 13.5zm176.2 0c7.5 0 13.5-6 13.5-13.5V173.7c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v208.9c0 7.5 6 13.5 13.5 13.5z"}))},b=function(t){return e.createElement("svg",o({height:596,viewBox:"0 0 447.632 447"},t),e.createElement("path",{d:"M231.816 447.05c34.23-4.863 64.239-40.59 83.121-93.35a406.317 406.317 0 0 0-83.12-9.786zm0 0M286.504 438.66c2.023-.586 4.039-1.176 6.039-1.824 1.687-.543 3.352-1.129 5.016-1.711a203.39 203.39 0 0 0 5.882-2.121c1.664-.633 3.313-1.305 4.965-1.977 1.906-.8 3.809-1.597 5.692-2.398a240.401 240.401 0 0 0 10.422-4.922c1.601-.816 3.199-1.648 4.8-2.504 1.793-.96 3.575-1.941 5.344-2.95a203.403 203.403 0 0 0 4.703-2.753c1.735-1.066 3.461-2.133 5.176-3.2a191.535 191.535 0 0 0 4.578-2.991 221.095 221.095 0 0 0 5.008-3.504 417.693 417.693 0 0 0 4.422-3.2 365.942 365.942 0 0 0 4.847-3.793c1.426-1.136 2.848-2.265 4.25-3.433 1.598-1.328 3.13-2.703 4.68-4.078 1.36-1.207 2.727-2.403 4.055-3.64 1.527-1.427 3.015-2.903 4.504-4.368 1.289-1.273 2.593-2.527 3.855-3.832.235-.242.457-.504.7-.754a268.883 268.883 0 0 0-54.817-21.094 198.517 198.517 0 0 1-51.129 83.024c.649-.168 1.297-.305 1.945-.473 1.711-.48 3.391-1.008 5.063-1.504zm0 0M447.633 231.684H351.71a414.882 414.882 0 0 1-16.152 110.68 278.228 278.228 0 0 1 60.714 24.16 223.51 223.51 0 0 0 51.36-134.84zm0 0M231.816 215.684h103.895a400.208 400.208 0 0 0-15.75-106.743 421.384 421.384 0 0 1-88.145 10.512zm0 0M231.816.316v103.137a406.589 406.589 0 0 0 83.121-9.785C296.055 40.906 266.048 5.18 231.817.316zm0 0M231.816 327.914a421.648 421.648 0 0 1 88.145 10.516 400.236 400.236 0 0 0 15.75-106.746H231.816zm0 0M396.273 80.844a278.228 278.228 0 0 1-60.714 24.16 414.882 414.882 0 0 1 16.152 110.68h95.922a223.577 223.577 0 0 0-51.36-134.84zm0 0M385.465 68.707c-.235-.238-.457-.496-.688-.742-1.265-1.305-2.578-2.563-3.867-3.832-1.484-1.465-2.965-2.945-4.496-4.367-1.324-1.235-2.695-2.403-4.055-3.633-1.55-1.375-3.101-2.762-4.695-4.09-1.383-1.168-2.8-2.285-4.207-3.406a171.24 171.24 0 0 0-4.89-3.825 220.477 220.477 0 0 0-4.383-3.199 192.844 192.844 0 0 0-5.055-3.547 200.251 200.251 0 0 0-4.535-2.957 190.441 190.441 0 0 0-5.219-3.257 223.26 223.26 0 0 0-4.664-2.727 220.848 220.848 0 0 0-5.39-2.984c-1.602-.801-3.2-1.672-4.801-2.473-1.84-.93-3.696-1.824-5.598-2.703a174.071 174.071 0 0 0-4.875-2.227c-1.895-.84-3.809-1.597-5.719-2.398a225.094 225.094 0 0 0-4.953-1.969 191.214 191.214 0 0 0-5.879-2.117 210.272 210.272 0 0 0-5.016-1.715c-2-.648-4-1.238-6.054-1.832-1.664-.488-3.336-.984-5.02-1.43-.644-.175-1.3-.312-1.949-.48a198.532 198.532 0 0 1 51.129 83.023 268.485 268.485 0 0 0 54.879-21.113zm0 0M0 215.684h95.922a415.035 415.035 0 0 1 16.148-110.68 277.885 277.885 0 0 1-60.71-24.16A223.519 223.519 0 0 0 0 215.684zm0 0M215.816 447.05V343.915a406.589 406.589 0 0 0-83.12 9.785c18.878 52.762 48.89 88.488 83.12 93.352zm0 0M215.816 231.684H111.922a400.079 400.079 0 0 0 15.75 106.746 421.097 421.097 0 0 1 88.144-10.516zm0 0M215.816.316c-34.23 4.864-64.242 40.59-83.12 93.352a406.045 406.045 0 0 0 83.12 9.785zm0 0M215.816 119.453a421.384 421.384 0 0 1-88.144-10.512 400.05 400.05 0 0 0-15.75 106.743h103.894zm0 0M168.113 6.79c-.648.167-1.297.304-1.945.472-1.695.453-3.367.957-5.055 1.445-2.008.586-4 1.176-6.015 1.816-1.7.551-3.371 1.137-5.043 1.72-1.957.69-3.918 1.378-5.856 2.112-1.672.641-3.32 1.305-4.976 1.985-1.903.8-3.809 1.601-5.688 2.398-1.648.723-3.277 1.48-4.91 2.242a223.908 223.908 0 0 0-5.512 2.68 228.526 228.526 0 0 0-10.137 5.457 149.244 149.244 0 0 0-4.718 2.75c-1.738 1.047-3.457 2.13-5.168 3.2-1.54.984-3.067 1.976-4.578 3a221.095 221.095 0 0 0-5.008 3.503 403.614 403.614 0 0 0-4.426 3.203c-1.637 1.23-3.2 2.512-4.848 3.79-1.421 1.136-2.855 2.265-4.246 3.44-1.601 1.321-3.12 2.688-4.664 4.056-1.367 1.218-2.746 2.402-4.082 3.664-1.52 1.418-3 2.89-4.484 4.351-1.29 1.274-2.602 2.531-3.867 3.84-.23.242-.453.508-.696.754a268.581 268.581 0 0 0 54.817 21.098 198.45 198.45 0 0 1 51.105-82.977zm0 0M66.719 383.234c1.488 1.465 2.969 2.946 4.496 4.371 1.328 1.23 2.695 2.399 4.058 3.63 1.551 1.378 3.102 2.761 4.696 4.09 1.383 1.16 2.793 2.28 4.207 3.405 1.601 1.297 3.199 2.586 4.894 3.833 1.442 1.082 2.907 2.128 4.371 3.203 1.672 1.199 3.36 2.398 5.063 3.55a214.813 214.813 0 0 0 4.535 2.961c1.73 1.11 3.457 2.2 5.219 3.254 1.543.93 3.101 1.84 4.664 2.73a208.275 208.275 0 0 0 5.39 2.981c1.598.801 3.2 1.672 4.801 2.473 1.84.93 3.696 1.824 5.598 2.707 1.601.754 3.226 1.496 4.875 2.223 1.894.84 3.805 1.597 5.719 2.398 1.648.672 3.289 1.336 4.953 1.969 1.941.746 3.91 1.441 5.879 2.12 1.664.583 3.328 1.169 5.015 1.712 2 .648 4 1.242 6.055 1.832 1.664.488 3.336.984 5.016 1.433.648.176 1.304.313 1.953.48a198.57 198.57 0 0 1-51.13-83.027 268.607 268.607 0 0 0-54.816 21.106c.235.238.458.496.692.742 1.2 1.297 2.492 2.555 3.797 3.824zm0 0M51.36 366.523a278.275 278.275 0 0 1 60.71-24.16 415.035 415.035 0 0 1-16.148-110.68H0a223.552 223.552 0 0 0 51.36 134.84zm0 0"}))},y=function(t){return e.createElement("svg",o({viewBox:"0 0 512 512"},t),e.createElement("path",{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"}))},x=function(t){return e.createElement("svg",o({viewBox:"0 0 512 512"},t),e.createElement("path",{d:"M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"}))},_={video:{mimeTypes:["video/x-flv","video/mp4","application/octet-stream","application/x-mpegURL","video/MP2T","video/3gpp","video/quicktime","video/x-msvideo","video/x-ms-wmv"],extensions:["3g2","3gp","amv","asf","avi","drc","f4a","f4b","f4p","f4v","flv","gif","gifv","m2v","m4p","m4v","mkv","mov","mng","mp2","mp4","mpe","mpeg","mpg","mpv","MTS","M2TS","mxf","nsv","ogg","qt","rm","rmvb","roq","svi","vob","webm","wmv","yuv"]},image:{mimeTypes:["image/gif","image/jpeg","image/png","image/tiff","image/vnd.microsoft.icon","image/vnd.djvu","image/svg+xml"],extensions:["3dv","PI1","PI2","PI3","ai","amf","art","art","ase","awg","blp","bmp","bw","bw","cd5","cdr","cgm","cit","cmx","cpt","cr2","cur","cut","dds","dib","djvu","dxf","e2d","ecw","egt","egt","emf","eps","exif","fs","gbr","gif","gpl","grf","hdp","icns","ico","iff","iff","int","int","inta","jfif","jng","jp2","jpeg","jpg","jps","jxr","lbm","lbm","liff","max","miff","mng","msp","nitf","nrrd","odg","ota","pam","pbm","pc1","pc2","pc3","pcf","pct","pcx","pcx","pdd","pdn","pgf","pgm","pict","png","pnm","pns","ppm","psb","psd","psp","px","pxm","pxr","qfx","ras","raw","rgb","rgb","rgba","rle","sct","sgi","sgi","sid","stl","sun","svg","sxd","tga","tga","tif","tiff","v2d","vnd","vrml","vtf","wdp","webp","wmf","x3d","xar","xbm","xcf","xpm"]},compressedFile:{mimeTypes:["application/x-bzip2","application/gzip","application/x-lzip","application/x-lzma","application/x-lzop","application/x-snappy-framed","application/x-xz","application/x-compress","application/x-7z-compressed","application/x-ace-compressed","application/x-astrotite-afa","application/x-alz-compressed","application/vnd.android.package-archive","application/x-arj","application/x-b1","application/vnd.ms-cab-compressed","application/x-cfs-compressed","application/x-dar","application/x-dgc-compressed","application/x-apple-diskimage","application/x-gca-compressed","application/x-lzh","application/x-lzx","application/x-rar-compressed","application/x-stuffit","application/x-stuffitx","application/x-gtar","application/zip","application/x-zoo"],extensions:["bz2","gz","F","lz","lzma","lzo","rz","sfark","sz","xz","z","Z","?Q?","?XF","?Z?","??_","7z","ace","afa","alz","apk","arc","arj","b1","b6z","ba","bh","cab","car","cfs","cpt","dar","dd","dgc","dmg","ear","gca","ha","hki","ice","jar","kgb","lha","lzh","lzx","pak","paq6","paq7","paq8","partimg","pea","pim","pit","qda","rar","rk","s7z","sda","sea","sen","sfx","shk","sit","sitx","sqx","tar.bz2","tar.gz","tar.lzma","tar.xz","tar.Z","tbz2","tgz","tlz","txz","ue2","uc","uc0","uc2","uca","ucn","uha","ur2","war","wim","xar","xp3","yz1","zip","zipx","zoo","zpaq","zz"]}};function z(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var j="object"==typeof global&&global&&global.Object===Object&&global,w="object"==typeof self&&self&&self.Object===Object&&self,C=j||w||Function("return this")(),E=C.Symbol,O=Object.prototype,k=O.hasOwnProperty,L=O.toString,S=E?E.toStringTag:void 0;var A=Object.prototype.toString;var M="[object Null]",T="[object Undefined]",R=E?E.toStringTag:void 0;function U(e){return null==e?void 0===e?T:M:R&&R in Object(e)?function(e){var t=k.call(e,S),r=e[S];try{e[S]=void 0;var n=!0}catch(e){}var o=L.call(e);return n&&(t?e[S]=r:delete e[S]),o}(e):function(e){return A.call(e)}(e)}function I(e){return null!=e&&"object"==typeof e}var D="[object Arguments]";function P(e){return I(e)&&U(e)==D}var F=Object.prototype,N=F.hasOwnProperty,H=F.propertyIsEnumerable,V=P(function(){return arguments}())?P:function(e){return I(e)&&N.call(e,"callee")&&!H.call(e,"callee")},q=Array.isArray,B=E?E.isConcatSpreadable:void 0;function $(e){return q(e)||V(e)||!!(B&&e&&e[B])}function Z(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=$),o||(o=[]);++a<i;){var u=e[a];t>0&&r(u)?t>1?Z(u,t-1,r,n,o):z(o,u):n||(o[o.length]=u)}return o}var W="[object String]";function G(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function Y(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function J(e,t){return e===t||e!=e&&t!=t}function K(e,t){for(var r=e.length;r--;)if(J(e[r][0],t))return r;return-1}var X=Array.prototype.splice;function Q(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Q.prototype.clear=function(){this.__data__=[],this.size=0},Q.prototype.delete=function(e){var t=this.__data__,r=K(t,e);return!(r<0||(r==t.length-1?t.pop():X.call(t,r,1),--this.size,0))},Q.prototype.get=function(e){var t=this.__data__,r=K(t,e);return r<0?void 0:t[r][1]},Q.prototype.has=function(e){return K(this.__data__,e)>-1},Q.prototype.set=function(e,t){var r=this.__data__,n=K(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var te="[object AsyncFunction]",re="[object Function]",ne="[object GeneratorFunction]",oe="[object Proxy]";function ae(e){if(!ee(e))return!1;var t=U(e);return t==re||t==ne||t==te||t==oe}var ie,ue=C["__core-js_shared__"],ce=(ie=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"";var le=Function.prototype.toString;function se(e){if(null!=e){try{return le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var fe=/^\[object .+?Constructor\]$/,pe=Function.prototype,de=Object.prototype,he=pe.toString,ve=de.hasOwnProperty,ge=RegExp("^"+he.call(ve).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function me(e){return!(!ee(e)||(t=e,ce&&ce in t))&&(ae(e)?ge:fe).test(se(e));var t}function be(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return me(r)?r:void 0}var ye=be(C,"Map"),xe=be(Object,"create");var _e="__lodash_hash_undefined__",ze=Object.prototype.hasOwnProperty;var je=Object.prototype.hasOwnProperty;var we="__lodash_hash_undefined__";function Ce(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ee(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Oe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=function(){this.__data__=xe?xe(null):{},this.size=0},Ce.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ce.prototype.get=function(e){var t=this.__data__;if(xe){var r=t[e];return r===_e?void 0:r}return ze.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return xe?void 0!==t[e]:je.call(t,e)},Ce.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xe&&void 0===t?we:t,this},Oe.prototype.clear=function(){this.size=0,this.__data__={hash:new Ce,map:new(ye||Q),string:new Ce}},Oe.prototype.delete=function(e){var t=Ee(this,e).delete(e);return this.size-=t?1:0,t},Oe.prototype.get=function(e){return Ee(this,e).get(e)},Oe.prototype.has=function(e){return Ee(this,e).has(e)},Oe.prototype.set=function(e,t){var r=Ee(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ke=200;function Le(e){var t=this.__data__=new Q(e);this.size=t.size}Le.prototype.clear=function(){this.__data__=new Q,this.size=0},Le.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Le.prototype.get=function(e){return this.__data__.get(e)},Le.prototype.has=function(e){return this.__data__.has(e)},Le.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Q){var n=r.__data__;if(!ye||n.length<ke-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Oe(n)}return r.set(e,t),this.size=r.size,this};var Se="__lodash_hash_undefined__";function Ae(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Oe;++t<r;)this.add(e[t])}function Me(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Te(e,t){return e.has(t)}Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,Se),this},Ae.prototype.has=function(e){return this.__data__.has(e)};var Re=1,Ue=2;function Ie(e,t,r,n,o,a){var i=r&Re,u=e.length,c=t.length;if(u!=c&&!(i&&c>u))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var s=-1,f=!0,p=r&Ue?new Ae:void 0;for(a.set(e,t),a.set(t,e);++s<u;){var d=e[s],h=t[s];if(n)var v=i?n(h,d,s,t,e,a):n(d,h,s,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!Me(t,function(e,t){if(!Te(p,t)&&(d===e||o(d,e,r,n,a)))return p.push(t)})){f=!1;break}}else if(d!==h&&!o(d,h,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f}var De=C.Uint8Array;function Pe(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Fe(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var Ne=1,He=2,Ve="[object Boolean]",qe="[object Date]",Be="[object Error]",$e="[object Map]",Ze="[object Number]",We="[object RegExp]",Ge="[object Set]",Ye="[object String]",Je="[object Symbol]",Ke="[object ArrayBuffer]",Xe="[object DataView]",Qe=E?E.prototype:void 0,et=Qe?Qe.valueOf:void 0;var tt=Object.prototype.propertyIsEnumerable,rt=Object.getOwnPropertySymbols,nt=rt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(rt(e),function(t){return tt.call(e,t)}))}:function(){return[]};var ot="object"==typeof exports&&exports&&!exports.nodeType&&exports,at=ot&&"object"==typeof module&&module&&!module.nodeType&&module,it=at&&at.exports===ot?C.Buffer:void 0,ut=(it?it.isBuffer:void 0)||function(){return!1},ct=9007199254740991,lt=/^(?:0|[1-9]\d*)$/;function st(e,t){var r=typeof e;return!!(t=null==t?ct:t)&&("number"==r||"symbol"!=r&&lt.test(e))&&e>-1&&e%1==0&&e<t}var ft=9007199254740991;function pt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ft}var dt={};function ht(e){return function(t){return e(t)}}dt["[object Float32Array]"]=dt["[object Float64Array]"]=dt["[object Int8Array]"]=dt["[object Int16Array]"]=dt["[object Int32Array]"]=dt["[object Uint8Array]"]=dt["[object Uint8ClampedArray]"]=dt["[object Uint16Array]"]=dt["[object Uint32Array]"]=!0,dt["[object Arguments]"]=dt["[object Array]"]=dt["[object ArrayBuffer]"]=dt["[object Boolean]"]=dt["[object DataView]"]=dt["[object Date]"]=dt["[object Error]"]=dt["[object Function]"]=dt["[object Map]"]=dt["[object Number]"]=dt["[object Object]"]=dt["[object RegExp]"]=dt["[object Set]"]=dt["[object String]"]=dt["[object WeakMap]"]=!1;var vt="object"==typeof exports&&exports&&!exports.nodeType&&exports,gt=vt&&"object"==typeof module&&module&&!module.nodeType&&module,mt=gt&&gt.exports===vt&&j.process,bt=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=bt&&bt.isTypedArray,xt=yt?ht(yt):function(e){return I(e)&&pt(e.length)&&!!dt[U(e)]},_t=Object.prototype.hasOwnProperty;function zt(e,t){var r=q(e),n=!r&&V(e),o=!r&&!n&&ut(e),a=!r&&!n&&!o&&xt(e),i=r||n||o||a,u=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var l in e)!t&&!_t.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||st(l,c))||u.push(l);return u}var jt=Object.prototype;var wt,Ct,Et=(wt=Object.keys,Ct=Object,function(e){return wt(Ct(e))}),Ot=Object.prototype.hasOwnProperty;function kt(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||jt))return Et(e);var t,r,n=[];for(var o in Object(e))Ot.call(e,o)&&"constructor"!=o&&n.push(o);return n}function Lt(e){return null!=e&&pt(e.length)&&!ae(e)}function St(e){return Lt(e)?zt(e):kt(e)}function At(e){return function(e,t,r){var n=t(e);return q(e)?n:z(n,r(e))}(e,St,nt)}var Mt=1,Tt=Object.prototype.hasOwnProperty;var Rt=be(C,"DataView"),Ut=be(C,"Promise"),It=be(C,"Set"),Dt=be(C,"WeakMap"),Pt=se(Rt),Ft=se(ye),Nt=se(Ut),Ht=se(It),Vt=se(Dt),qt=U;(Rt&&"[object DataView]"!=qt(new Rt(new ArrayBuffer(1)))||ye&&"[object Map]"!=qt(new ye)||Ut&&"[object Promise]"!=qt(Ut.resolve())||It&&"[object Set]"!=qt(new It)||Dt&&"[object WeakMap]"!=qt(new Dt))&&(qt=function(e){var t=U(e),r="[object Object]"==t?e.constructor:void 0,n=r?se(r):"";if(n)switch(n){case Pt:return"[object DataView]";case Ft:return"[object Map]";case Nt:return"[object Promise]";case Ht:return"[object Set]";case Vt:return"[object WeakMap]"}return t});var Bt=qt,$t=1,Zt="[object Arguments]",Wt="[object Array]",Gt="[object Object]",Yt=Object.prototype.hasOwnProperty;function Jt(e,t,r,n,o,a){var i=q(e),u=q(t),c=i?Wt:Bt(e),l=u?Wt:Bt(t),s=(c=c==Zt?Gt:c)==Gt,f=(l=l==Zt?Gt:l)==Gt,p=c==l;if(p&&ut(e)){if(!ut(t))return!1;i=!0,s=!1}if(p&&!s)return a||(a=new Le),i||xt(e)?Ie(e,t,r,n,o,a):function(e,t,r,n,o,a,i){switch(r){case Xe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ke:return!(e.byteLength!=t.byteLength||!a(new De(e),new De(t)));case Ve:case qe:case Ze:return J(+e,+t);case Be:return e.name==t.name&&e.message==t.message;case We:case Ye:return e==t+"";case $e:var u=Pe;case Ge:var c=n&Ne;if(u||(u=Fe),e.size!=t.size&&!c)return!1;var l=i.get(e);if(l)return l==t;n|=He,i.set(e,t);var s=Ie(u(e),u(t),n,o,a,i);return i.delete(e),s;case Je:if(et)return et.call(e)==et.call(t)}return!1}(e,t,c,r,n,o,a);if(!(r&$t)){var d=s&&Yt.call(e,"__wrapped__"),h=f&&Yt.call(t,"__wrapped__");if(d||h){var v=d?e.value():e,g=h?t.value():t;return a||(a=new Le),o(v,g,r,n,a)}}return!!p&&(a||(a=new Le),function(e,t,r,n,o,a){var i=r&Mt,u=At(e),c=u.length;if(c!=At(t).length&&!i)return!1;for(var l=c;l--;){var s=u[l];if(!(i?s in t:Tt.call(t,s)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var p=!0;a.set(e,t),a.set(t,e);for(var d=i;++l<c;){var h=e[s=u[l]],v=t[s];if(n)var g=i?n(v,h,s,t,e,a):n(h,v,s,e,t,a);if(!(void 0===g?h===v||o(h,v,r,n,a):g)){p=!1;break}d||(d="constructor"==s)}if(p&&!d){var m=e.constructor,b=t.constructor;m!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(p=!1)}return a.delete(e),a.delete(t),p}(e,t,r,n,o,a))}function Kt(e,t,r,n,o){return e===t||(null==e||null==t||!I(e)&&!I(t)?e!=e&&t!=t:Jt(e,t,r,n,Kt,o))}var Xt=1,Qt=2;function er(e){return e==e&&!ee(e)}function tr(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}function rr(e){var t=function(e){for(var t=St(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,er(o)]}return t}(e);return 1==t.length&&t[0][2]?tr(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var u=r[o];if(i&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=r[o])[0],l=e[c],s=u[1];if(i&&u[2]){if(void 0===l&&!(c in e))return!1}else{var f=new Le;if(n)var p=n(l,s,c,e,t,f);if(!(void 0===p?Kt(s,l,Xt|Qt,n,f):p))return!1}}return!0}(r,e,t)}}var nr="[object Symbol]";function or(e){return"symbol"==typeof e||I(e)&&U(e)==nr}var ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/;function ur(e,t){if(q(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!or(e))||(ir.test(e)||!ar.test(e)||null!=t&&e in Object(t))}var cr="Expected a function";function lr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(cr);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(lr.Cache||Oe),r}lr.Cache=Oe;var sr=500;var fr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pr=/\\(\\)?/g,dr=function(e){var t=lr(e,function(e){return r.size===sr&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(fr,function(e,r,n,o){t.push(n?o.replace(pr,"$1"):r||e)}),t}),hr=1/0,vr=E?E.prototype:void 0,gr=vr?vr.toString:void 0;function mr(e){if("string"==typeof e)return e;if(q(e))return Y(e,mr)+"";if(or(e))return gr?gr.call(e):"";var t=e+"";return"0"==t&&1/e==-hr?"-0":t}function br(e){return null==e?"":mr(e)}function yr(e,t){return q(e)?e:ur(e,t)?[e]:dr(br(e))}var xr=1/0;function _r(e){if("string"==typeof e||or(e))return e;var t=e+"";return"0"==t&&1/e==-xr?"-0":t}function zr(e,t){for(var r=0,n=(t=yr(t,e)).length;null!=e&&r<n;)e=e[_r(t[r++])];return r&&r==n?e:void 0}function jr(e,t,r){var n=null==e?void 0:zr(e,t);return void 0===n?r:n}function wr(e,t){return null!=e&&t in Object(e)}function Cr(e,t){return null!=e&&function(e,t,r){for(var n=-1,o=(t=yr(t,e)).length,a=!1;++n<o;){var i=_r(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&pt(o)&&st(i,o)&&(q(e)||V(e))}(e,t,wr)}var Er=1,Or=2;function kr(e){return e}function Lr(e){return ur(e)?(t=_r(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return zr(t,e)}}(e);var t}function Sr(e){return"function"==typeof e?e:null==e?kr:"object"==typeof e?q(e)?(t=e[0],r=e[1],ur(t)&&er(r)?tr(_r(t),r):function(e){var n=jr(e,t);return void 0===n&&n===r?Cr(e,t):Kt(r,n,Er|Or)}):rr(e):Lr(e);var t,r}var Ar,Mr=function(e,t,r){for(var n=-1,o=Object(e),a=r(e),i=a.length;i--;){var u=a[Ar?i:++n];if(!1===t(o[u],u,o))break}return e};var Tr=function(e,t){return function(r,n){if(null==r)return r;if(!Lt(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}}(function(e,t){return e&&Mr(e,t,St)});function Rr(e,t){var r=-1,n=Lt(e)?Array(e.length):[];return Tr(e,function(e,o,a){n[++r]=t(e,o,a)}),n}var Ur=NaN,Ir=/^\s+|\s+$/g,Dr=/^[-+]0x[0-9a-f]+$/i,Pr=/^0b[01]+$/i,Fr=/^0o[0-7]+$/i,Nr=parseInt;function Hr(e){if("number"==typeof e)return e;if(or(e))return Ur;if(ee(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ee(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ir,"");var r=Pr.test(e);return r||Fr.test(e)?Nr(e.slice(2),r?2:8):Dr.test(e)?Ur:+e}var Vr=1/0,qr=1.7976931348623157e308;function Br(e){var t=function(e){return e?(e=Hr(e))===Vr||e===-Vr?(e<0?-1:1)*qr:e==e?e:0:0===e?e:0}(e),r=t%1;return t==t?r?t-r:t:0}var $r=Math.min;var Zr=function(e){var t=Math[e];return function(e,r){if(e=Hr(e),r=null==r?0:$r(Br(r),292)){var n=(br(e)+"e").split("e");return+((n=(br(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}("round");function Wr(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a}(e,t,r)}var Gr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Yr(e){return Gr.test(e)}var Jr="[object RegExp]";var Kr=bt&&bt.isRegExp,Xr=Kr?ht(Kr):function(e){return I(e)&&U(e)==Jr};var Qr="[\\ud800-\\udfff]",en="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",tn="\\ud83c[\\udffb-\\udfff]",rn="[^\\ud800-\\udfff]",nn="(?:\\ud83c[\\udde6-\\uddff]){2}",on="[\\ud800-\\udbff][\\udc00-\\udfff]",an="(?:"+en+"|"+tn+")"+"?",un="[\\ufe0e\\ufe0f]?"+an+("(?:\\u200d(?:"+[rn,nn,on].join("|")+")[\\ufe0e\\ufe0f]?"+an+")*"),cn="(?:"+[rn+en+"?",en,nn,on,Qr].join("|")+")",ln=RegExp(tn+"(?="+tn+")|"+cn+un,"g");function sn(e){return Yr(e)?function(e){return e.match(ln)||[]}(e):function(e){return e.split("")}(e)}var fn=4294967295;function pn(e,t,r){return r&&"number"!=typeof r&&function(e,t,r){if(!ee(r))return!1;var n=typeof t;return!!("number"==n?Lt(r)&&st(t,r.length):"string"==n&&t in r)&&J(r[t],e)}(e,t,r)&&(t=r=void 0),(r=void 0===r?fn:r>>>0)?(e=br(e))&&("string"==typeof t||null!=t&&!Xr(t))&&!(t=mr(t))&&Yr(e)?Wr(sn(e),0,r):e.split(t,r):[]}var dn,hn=(dn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},function(e){return null==dn?void 0:dn[e]}),vn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gn=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var mn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var bn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var yn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xn="["+yn+"]",_n="\\d+",zn="[\\u2700-\\u27bf]",jn="[a-z\\xdf-\\xf6\\xf8-\\xff]",wn="[^\\ud800-\\udfff"+yn+_n+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Cn="(?:\\ud83c[\\udde6-\\uddff]){2}",En="[\\ud800-\\udbff][\\udc00-\\udfff]",On="[A-Z\\xc0-\\xd6\\xd8-\\xde]",kn="(?:"+jn+"|"+wn+")",Ln="(?:"+On+"|"+wn+")",Sn="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",An="[\\ufe0e\\ufe0f]?"+Sn+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Cn,En].join("|")+")[\\ufe0e\\ufe0f]?"+Sn+")*"),Mn="(?:"+[zn,Cn,En].join("|")+")"+An,Tn=RegExp([On+"?"+jn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[xn,On,"$"].join("|")+")",Ln+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[xn,On+kn,"$"].join("|")+")",On+"?"+kn+"+(?:['’](?:d|ll|m|re|s|t|ve))?",On+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_n,Mn].join("|"),"g");function Rn(e,t,r){return e=br(e),void 0===(t=r?void 0:t)?function(e){return bn.test(e)}(e)?function(e){return e.match(Tn)||[]}(e):function(e){return e.match(mn)||[]}(e):e.match(t)||[]}var Un=RegExp("['’]","g");function In(e){return function(t){return function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}(Rn(function(e){return(e=br(e))&&e.replace(vn,hn).replace(gn,"")}(t).replace(Un,"")),e,"")}}var Dn=In(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Pn={},Fn={concat:function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return z(q(r)?function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(r):[r],Z(t,1))},isString:function(e){return"string"==typeof e||!q(e)&&I(e)&&U(e)==W},last:G,map:function(e,t){return(q(e)?Y:Rr)(e,Sr(t))},round:Zr,split:pn,upperCase:Dn};Pn.initializeDrag=function(){window.addEventListener("dragover",function(e){(e=e||event).preventDefault()},!1),window.addEventListener("drop",function(e){(e=e||event).preventDefault()},!1)},Pn.base64MimeType=function(e){var t=null;if("string"!=typeof e)return t;var r=e.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);return r&&r.length&&(t=r[1]),t},Pn.isBase64=function(e){return null!==Pn.base64MimeType(e)},Pn.extension=function(e){return e=Fn.isString(e)?e:e.name,Fn.last(Fn.split(e,"."))},Pn.fileType=function(e){if(!e.match(/\//)){var t={video:_.video.extensions,image:_.image.extensions,compressedFile:_.compressedFile.extensions};for(var r in t){if(-1!==Fn.concat(t[r],Fn.map(t[r],function(e){return Fn.upperCase(e)})).indexOf(e))return r}}else{var n={video:_.video.mimeTypes,image:_.image.mimeTypes,compressedFile:_.compressedFile.mimeTypes};for(var o in n){if(-1!==n[o].indexOf(e))return o}}return null},Pn.guessFileType=function(e){return Pn.fileType(Pn.base64MimeType(e)||Pn.extension(e))},Pn.humanSize=function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=["B","KB","MB","GB","TB"],n=r.length-1;n>=0;n--){var o=1*e/Math.pow(1e3,n);if(o>=1)return t&&(o=Fn.round(o)),"".concat(o," ").concat(r[n])}};var Nn,Hn=(Nn="toUpperCase",function(e){var t=Yr(e=br(e))?sn(e):void 0,r=t?t[0]:e.charAt(0),n=t?Wr(t,1).join(""):e.slice(1);return r[Nn]()+n});var Vn=In(function(e,t,r){return t=t.toLowerCase(),e+(r?Hn(br(t).toLowerCase()):t)});function qn(e){return e!=e}function Bn(e,t){return!!(null==e?0:e.length)&&function(e,t,r){return t==t?function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}(e,qn,r)}(e,t,0)>-1}function $n(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}var Zn=200;var Wn=Math.max;var Gn=function(){try{var e=be(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Yn=Gn?function(e,t){return Gn(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:kr,Jn=800,Kn=16,Xn=Date.now;var Qn=function(e){var t=0,r=0;return function(){var n=Xn(),o=Kn-(n-r);if(r=n,o>0){if(++t>=Jn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Yn);function eo(e){return I(e)&&Lt(e)}var to=function(e,t){return Qn(function(e,t,r){return t=Wn(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Wn(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=n[o];return u[t]=r(i),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,u)}}(e,t,kr),e+"")}(function(e,t){return eo(e)?function(e,t,r,n){var o=-1,a=Bn,i=!0,u=e.length,c=[],l=t.length;if(!u)return c;r&&(t=Y(t,ht(r))),n?(a=$n,i=!1):t.length>=Zn&&(a=Te,i=!1,t=new Ae(t));e:for(;++o<u;){var s=e[o],f=null==r?s:r(s);if(s=n||0!==s?s:0,i&&f==f){for(var p=l;p--;)if(t[p]===f)continue e;c.push(s)}else a(t,f,n)||c.push(s)}return c}(e,Z(t,1,eo,!0)):[]}),ro={isURL:h},no={camelCase:Vn,difference:to,get:jr,last:G,upperFirst:Hn,split:pn},oo=function(t){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,(t=!(o=a(r).call(this,e))||"object"!=typeof o&&"function"!=typeof o?u(n):o).state={beingDropTarget:!1,height:null,file:null,loaded:!0,mounted:!1,url:"",width:null},t.change=t.change.bind(u(t)),t.handleChange=t.handleChange.bind(u(t)),t.handleClick=t.handleClick.bind(u(t)),t.handleCropClick=t.handleCropClick.bind(u(t)),t.handleDragLeave=t.handleDragLeave.bind(u(t)),t.handleDragOver=t.handleDragOver.bind(u(t)),t.handleDrop=t.handleDrop.bind(u(t)),t.handleInjectURLClick=t.handleInjectURLClick.bind(u(t)),t.handleLoad=t.handleLoad.bind(u(t)),t.handleRemoveClick=t.handleRemoveClick.bind(u(t)),t.handleURLChange=t.handleURLChange.bind(u(t)),t.get=t.get.bind(u(t)),t.injectURL=t.injectURL.bind(u(t)),t.change=t.change.bind(u(t)),t}var c,l,s;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&&i(e,t)}(r,e.Component),c=r,(l=[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),Pn.initializeDrag()}},{key:"change",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return null},r=this.props.maxSize;Pn.guessFileType(e)!==this.props.fileType?this.props.onInvalidFileExtensionError():r&&e.size>=r?this.props.onFileTooLargeError():this.props.onChange(e),t(e),this.refs.input.value=null}},{key:"handleChange",value:function(e){var t=no.get(e,"target.files.0");t&&this.change(t)}},{key:"handleClick",value:function(e){this.refs.input.click()}},{key:"handleCropClick",value:function(e){e.stopPropagation(),this.props.onCropClick()}},{key:"handleDragLeave",value:function(){this.setState({beingDropTarget:!1})}},{key:"handleDragOver",value:function(){this.setState({beingDropTarget:!0})}},{key:"handleDrop",value:function(e){e.preventDefault(),this.setState({beingDropTarget:!1});var t=no.get(e,"dataTransfer.files.0");t&&this.change(t)}},{key:"handleInjectURLClick",value:function(){this.injectURL(this.state.url,!0)}},{key:"handleLoad",value:function(){void 0===this.firstLoadDone&&(this.firstLoadDone=!0,this.props.onFirstLoad(),this.setState({loaded:!0})),this.props.onLoad()}},{key:"handleRemoveClick",value:function(e){e.stopPropagation(),this.props.onRemoveClick()}},{key:"handleURLChange",value:function(e){var t=e.target.value;this.setState({url:t})}},{key:"get",value:function(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.open("GET",e,!0),n.onload=function(){200===n.status?t(n.response):r(Error(n.statusText))},n.onerror=function(){return r(Error("Network Error"))},n.send()})}},{key:"injectURL",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return null};!r||ro.isURL(e)?this.get(e).then(function(r){var o=no.last(no.split(e,"/")),a=new File([r],o,{type:r.type});t.change(a,n)}).catch(function(e){t.props.onURLInjectionError()}):this.props.onInvalidURLError()}},{key:"render",value:function(){var t=this,r=null,n=null,a=this.props.src&&(this.props.removable||this.props.croppable);if(this.props.src)switch(this.props.fileType||Pn.guessFileType(this.props.src)){case"image":if(this.state.loaded&&this.state.mounted&&this.props.imageCrop){var i=this.refs.zone.offsetWidth,u=this.refs.zone.offsetHeight,c=this.refs.img.offsetWidth,l=this.refs.img.offsetHeight,s=this.refs.img.naturalWidth,f=this.refs.img.naturalHeight,p=c*this.props.imageCrop.x/s,d=l*this.props.imageCrop.y/f,h=c*this.props.imageCrop.width/s,_=l*this.props.imageCrop.height/f,z=h/_,j=null;j="contain"===this.props.backgroundSize?u*z>i?i/h:u/_:u*z>i?u/_:i/h,r=e.createElement("img",{alt:"",ref:"img",src:this.props.src,onLoad:this.handleLoad,style:{position:"absolute",top:"50%",left:"50%",transformOrigin:"".concat(p+h/2,"px ").concat(d+_/2,"px"),transform:"\n translateX(-".concat(p+h/2,"px)\n translateY(-").concat(d+_/2,"px)\n scale(").concat(j,")\n "),clip:"rect(\n ".concat(d,"px\n ").concat(p+h,"px\n ").concat(d+_,"px\n ").concat(p,"px)\n ")}})}else r=e.createElement("div",{style:{backgroundColor:this.props.backgroundColor,backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:this.props.backgroundSize,backgroundImage:"url(".concat(this.props.src,")"),position:"relative",width:"100%",height:"100%"}},e.createElement("img",{alt:"",ref:"img",src:this.props.src,onLoad:this.handleLoad,style:{position:"fixed",top:"-9999px",left:"-9999px"}}));break;case"video":r=e.createElement("video",{autoPlay:!0,loop:!0,muted:!0,src:this.props.src,onLoadedData:this.handleLoad,style:"cover"===this.props.backgroundSize?{height:"100%"}:{maxHeight:"100%",maxWidth:"100%"}})}switch(this.props.fileType){case"image":n=e.createElement(y,{className:"uploader-zone-fog-img"});break;case"video":n=e.createElement(x,{className:"uploader-zone-fog-img"})}return e.createElement("div",o({"data-attr":"root"},no.get(this.props.customAttributes,"root",{}),{className:"\n uploader\n ".concat(no.get(this.props.customAttributes,"root.className",""),"\n ").concat(this.props.fetching?"uploader/fetching":"","\n ").concat(this.props.withURLInput?"uploader/withUrl":"","\n ").concat(a?"uploader/withControls":"","\n ")}),e.createElement("input",{"data-attr":"input",ref:"input",type:"file",className:"uploader-input",onChange:this.handleChange}),e.createElement("div",{ref:"zone",className:"\n uploader-zone\n ".concat(this.props.withURLInput?"uploader-zone/withUrl":"","\n "),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},r,e.createElement("div",{className:"uploader-zone-fog",onClick:this.handleClick},this.props.compact&&(this.props.removable||this.props.croppable)&&this.props.src?null:e.createElement(e.Fragment,null,this.state.beingDropTarget?e.createElement(v,{className:"uploader-zone-fog-img"}):n,e.createElement("div",{className:"uploader-zone-fog-caption"},this.props.fetching?this.props.catalogue.loading:"".concat(this.props.catalogue.click).concat(this.props.catalogue.drop?"/".concat(this.props.catalogue.drop):"").concat(this.props.withURLInput?"/".concat(this.props.catalogue.typeURL):""))),!0===a&&e.createElement(e.Fragment,null,this.props.compact?null:e.createElement("div",{className:"uploader-zone-fog-or"},e.createElement("div",{className:"uploader-zone-fog-or-wing"}),e.createElement("div",{className:"uploader-zone-fog-or-body"},this.props.catalogue.or),e.createElement("div",{className:"uploader-zone-fog-or-wing"})),e.createElement("div",{className:"uploader-zone-fog-controls"},!0===this.props.croppable&&e.createElement("span",{className:"uploader-zone-fog-controls-control",onClick:this.handleCropClick},this.props.cropIcon||e.createElement(g,null)),!0===this.props.removable&&e.createElement("span",{className:"uploader-zone-fog-controls-control",onClick:this.handleRemoveClick},this.props.removeIcon||e.createElement(m,null)))))),!0===this.props.withURLInput&&e.createElement("div",{className:"uploader-url"},e.createElement("input",{className:"uploader-url-input",name:"url",value:this.state.url,placeholder:this.props.catalogue.urlInputPlaceholder,type:"text",onChange:this.handleURLChange,onKeyPress:function(e){13===e.which&&(e.preventDefault(),t.handleInjectURLClick())}}),e.createElement("span",{className:"uploader-url-addon",onClick:this.handleInjectURLClick},e.createElement(b,{className:"uploader-url-addon-icon"}),this.props.catalogue.urlSubmitText)))}}])&&n(c.prototype,l),s&&n(c,s),r}();oo.propTypes={backgroundColor:t.string,backgroundSize:t.oneOf(["contain","cover"]),catalogue:function(e,t,n){var o=e[t],a=Object.keys(e[t]),i=Object.keys(oo.defaultProps[t]);if(!o||"object"!==r(o))throw new Error("Catalogue must be an object.");var u=no.difference(i,a);if(u.length)throw new Error("Given catalogue is insufficient. Missing keys: "+JSON.stringify(u))},compact:t.bool,croppable:t.bool,customAttributes:t.object,fetching:t.bool,fileType:t.oneOf(["image","video"]),imageCrop:t.object,maxSize:t.number,onChange:t.func,onCropClick:t.func,onFileTooLargeError:t.func,onFirstLoad:t.func,onInvalidFileExtensionError:t.func,onInvalidURLError:t.func,onLoad:t.func,onRemoveClick:t.func,onURLInjectionError:t.func,removable:t.bool,src:t.string,withURLInput:t.bool},oo.defaultProps={backgroundColor:"transparent",backgroundSize:"cover",catalogue:{click:null,drop:null,typeURL:null,loading:null,or:null,urlInputPlaceholder:null,urlSubmitText:null},compact:!0,croppable:!1,cropIcon:null,customAttributes:{},fetching:!1,fileType:"image",imageCrop:null,maxSize:1e7,onChange:function(e){return null},onCropClick:function(){return null},onFileTooLargeError:function(){return null},onFirstLoad:function(){return null},onInvalidFileExtensionError:function(){return null},onInvalidURLError:function(){return null},onLoad:function(){return null},onRemoveClick:function(){return null},onURLInjectionError:function(){return null},removable:!1,removeIcon:null,src:null,withURLInput:!1};return function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("@keyframes pulse {\r\n from {\r\n transform: scale(0.7);\r\n }\r\n 50% {\r\n transform: scale(1);\r\n }\r\n to {\r\n transform: scale(0.7);\r\n }\r\n}\r\n.uploader {\r\n position: relative;\r\n}\r\n.uploader\\/fetching .uploader-zone-fog-img {\r\n animation: pulse 2s linear infinite;\r\n}\r\n.uploader\\/withUrl .uploader-zone {\r\n border-top-left-radius: 0.25rem !important;\r\n border-top-right-radius: 0.25rem !important;\r\n border-bottom-left-radius: 0 !important;\r\n border-bottom-right-radius: 0 !important;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-caption {\r\n margin-top: 0;\r\n bottom: 0;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-img {\r\n width: 2.6rem;\r\n top: 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row wrap;\r\n position: relative;\r\n bottom: 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row;\r\n font-size: 80%;\r\n width: 100%;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or-wing {\r\n flex-grow: 1;\r\n height: 0;\r\n border-style: solid;\r\n border-width: .06rem 0 0 0;\r\n border-color: white;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or-body {\r\n padding: 0.5rem 0.7rem;\r\n user-select: none;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls > * {\r\n margin: 0 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls-control {\r\n height: 1.6rem;\r\n width: 1.6rem;\r\n fill: white;\r\n}\r\n.uploader img {\r\n max-height: 100%;\r\n max-width: 100%;\r\n height: auto;\r\n width: auto;\r\n}\r\n.uploader-url-addon {\r\n display: flex;\r\n align-items: center;\r\n padding: .375rem .75rem;\r\n margin-bottom: 0;\r\n font-weight: 400;\r\n line-height: 1.5;\r\n color: #495057;\r\n text-align: center;\r\n white-space: nowrap;\r\n background-color: #e9ecef;\r\n border: 1px solid #ced4da;\r\n border-left-width: 0;\r\n border-top-right-radius: 0;\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n border-bottom-right-radius: .25rem;\r\n}\r\n.uploader-url-addon svg {\r\n margin-right: 0.6rem;\r\n fill: #495057;\r\n height: 1.4rem;\r\n}\r\n.uploader-url-input {\r\n display: block;\r\n height: calc(1.5em + .75rem + 2px);\r\n padding: .375rem .75rem;\r\n font-weight: 400;\r\n font-size: 1rem;\r\n line-height: 1.5;\r\n color: #495057;\r\n background-color: #fff;\r\n background-clip: padding-box;\r\n border: 1px solid #ced4da;\r\n border-radius: .25rem;\r\n border-top-left-radius: 0;\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n position: relative;\r\n flex-grow: 1;\r\n margin-bottom: 0;\r\n}\r\n.uploader-url-input:focus {\r\n outline: none;\r\n}\r\n.uploader-url {\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: stretch;\r\n flex-flow: row;\r\n cursor: pointer;\r\n}\r\n.uploader-zone {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row wrap;\r\n width: 100%;\r\n height: 14rem;\r\n overflow: hidden;\r\n position: relative;\r\n border-radius: 500rem;\r\n color: white;\r\n}\r\n.uploader-zone-fog {\r\n display: flex;\r\n justify-content: space-evenly;\r\n align-items: center;\r\n flex-flow: column;\r\n background: rgba(0, 0, 0, 0.2);\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n cursor: pointer;\r\n}\r\n.uploader-zone-fog:hover {\r\n background: rgba(0, 0, 0, 0.5);\r\n}\r\n.uploader-zone-fog-caption {\r\n width: 80%;\r\n text-align: center;\r\n position: relative;\r\n bottom: 1rem;\r\n margin-top: 1rem;\r\n text-shadow: 0 0 0.5rem black;\r\n}\r\n.uploader-zone-fog-img {\r\n width: 5rem;\r\n fill: white;\r\n position: relative;\r\n top: 1rem;\r\n}\r\n.uploader-input {\r\n position: fixed;\r\n top: -9999px;\r\n left: -9999px;\r\n}"),oo});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):(e=e||self).Uploader=t(e.React,e.PropTypes)}(this,function(e,t){"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)}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l(e,t){return e(t={exports:{}},t.exports),t.exports}e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t;var s=l(function(e,t){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=function(e){if(!("string"==typeof e||e instanceof String)){var t;throw t=null===e?"null":"object"===(t=r(e))&&e.constructor&&e.constructor.hasOwnProperty("name")?e.constructor.name:"a ".concat(t),new TypeError("Expected string but received ".concat(t,"."))}},e.exports=t.default,e.exports.default=t.default});c(s);var f=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default});c(f);var p=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,n.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));for(var o=e.split("."),i=0;i<o.length;i++)if(o[i].length>63)return!1;if(t.require_tld){var u=o.pop();if(!o.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(u))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(u))return!1}for(var c,l=0;l<o.length;l++){if(c=o[l],t.allow_underscores&&(c=c.replace(/_/g,"")),!/^[a-z\u00a1-\uffff0-9-]+$/i.test(c))return!1;if(/[\uff01-\uff5e]/.test(c))return!1;if("-"===c[0]||"-"===c[c.length-1])return!1}return!0};var r=o(s),n=o(f);function o(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1};e.exports=t.default,e.exports.default=t.default});c(p);var d=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,n.default)(t);r=String(r);if(!r)return e(t,4)||e(t,6);if("4"===r){if(!o.test(t))return!1;var i=t.split(".").sort(function(e,t){return e-t});return i[3]<=255}if("6"===r){var u=t.split(":"),c=!1,l=e(u[u.length-1],4),s=l?7:8;if(u.length>s)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(u.shift(),u.shift(),c=!0):"::"===t.substr(t.length-2)&&(u.pop(),u.pop(),c=!0);for(var f=0;f<u.length;++f)if(""===u[f]&&f>0&&f<u.length-1){if(c)return!1;c=!0}else if(l&&f===u.length-1);else if(!a.test(u[f]))return!1;return c?u.length>=1:u.length===s}return!1};var r,n=(r=s)&&r.__esModule?r:{default:r};var o=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,a=/^[0-9A-F]{1,4}$/i;e.exports=t.default,e.exports.default=t.default});c(d);var h=c(l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||e.length>=2083||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;var i,s,f,p,d,h,v,g;if(t=(0,a.default)(t,u),v=e.split("#"),e=v.shift(),v=e.split("?"),e=v.shift(),(v=e.split("://")).length>1){if(i=v.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(i))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;v[0]=e.substr(2)}}if(""===(e=v.join("://")))return!1;if(v=e.split("/"),""===(e=v.shift())&&!t.require_host)return!0;if((v=e.split("@")).length>1){if(t.disallow_auth)return!1;if((s=v.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1}p=v.join("@"),h=null,g=null;var m=p.match(c);m?(f="",g=m[1],h=m[2]||null):(v=p.split(":"),f=v.shift(),v.length&&(h=v.join(":")));if(null!==h&&(d=parseInt(h,10),!/^[0-9]+$/.test(h)||d<=0||d>65535))return!1;if(!((0,o.default)(f)||(0,n.default)(f,t)||g&&(0,o.default)(g,6)))return!1;if(f=f||g,t.host_whitelist&&!l(f,t.host_whitelist))return!1;if(t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var r=i(s),n=i(p),o=i(d),a=i(f);function i(e){return e&&e.__esModule?e:{default:e}}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},c=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||(o=n,"[object RegExp]"===Object.prototype.toString.call(o)&&n.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default})),v=function(t){return e.createElement("svg",o({viewBox:"0 0 512.001 512.001"},t),e.createElement("path",{d:"M405.967 187.467c-1.069-78.061-64.902-141.239-143.213-141.239-34.835 0-68.396 12.672-94.498 35.682-23.296 20.535-39.232 47.977-45.543 78.106-.461-.005-.918-.009-1.374-.009C54.434 160.008 0 214.441 0 281.347s54.434 121.339 121.34 121.339h44.534c6.029 0 10.919-4.888 10.919-10.919 0-6.031-4.89-10.919-10.919-10.919H121.34c-54.866 0-99.502-44.636-99.502-99.501s44.636-99.501 99.502-99.501c2.923 0 6.013.157 9.448.48 5.822.54 11.049-3.596 11.842-9.396 3.932-28.82 18.161-55.327 40.067-74.638 22.111-19.492 50.542-30.226 80.056-30.226 66.935 0 121.389 54.455 121.389 121.389 0 2.41-.449 8.642-.449 8.642a10.92 10.92 0 0 0 11.984 11.634 87.102 87.102 0 0 1 8.708-.44c47.297 0 85.778 38.48 85.778 85.778 0 47.297-38.48 85.777-85.778 85.777h-48.902c-6.029 0-10.919 4.888-10.919 10.919s4.89 10.919 10.919 10.919h48.902c59.339 0 107.616-48.275 107.616-107.615-.001-58.808-47.421-106.752-106.034-107.602z"}),e.createElement("path",{d:"M262.755 97.548c-45.658 0-84.742 34.121-90.914 79.367-.815 5.975 3.371 11.462 9.343 12.295 6.368.888 11.548-3.869 12.295-9.343 4.702-34.479 34.484-60.48 69.276-60.48 6.031 0 10.919-4.888 10.919-10.919 0-6.032-4.889-10.92-10.919-10.92zm50.524 312.735c-4.017-4.496-10.92-4.887-15.418-.868l-26.265 23.463V298.547c0-6.031-4.89-10.919-10.919-10.919-6.031 0-10.919 4.888-10.919 10.919v134.33l-26.264-23.463c-4.496-4.018-11.401-3.627-15.417.868-4.018 4.498-3.63 11.399.868 15.418l39.717 35.483a17.983 17.983 0 0 0 12.014 4.59 17.99 17.99 0 0 0 12.013-4.589l39.719-35.483c4.499-4.017 4.888-10.92.871-15.418z"}))},g=function(t){return e.createElement("svg",o({viewBox:"0 0 32 32"},t),e.createElement("path",{d:"M29.5 8C30.879 8 32 6.879 32 5.5v-3C32 1.121 30.879 0 29.5 0h-3A2.502 2.502 0 0 0 24 2.5V3H8v-.5C8 1.121 6.879 0 5.5 0h-3A2.503 2.503 0 0 0 0 2.5v3C0 6.879 1.122 8 2.5 8H3v16h-.5A2.503 2.503 0 0 0 0 26.5v3C0 30.879 1.122 32 2.5 32h3C6.879 32 8 30.879 8 29.5V29h16v.5c0 1.379 1.121 2.5 2.5 2.5h3c1.379 0 2.5-1.121 2.5-2.5v-3c0-1.379-1.121-2.5-2.5-2.5H29V8h.5zm-27-2a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3zM6 29.5c0 .275-.225.5-.5.5h-3a.5.5 0 0 1-.5-.5v-3a.5.5 0 0 1 .5-.5h3c.275 0 .5.225.5.5v3zm18-3v.5H8v-.5C8 25.121 6.879 24 5.5 24H5V8h.5C6.879 8 8 6.879 8 5.5V5h16v.5C24 6.879 25.121 8 26.5 8h.5v16h-.5a2.502 2.502 0 0 0-2.5 2.5zm5.5-.5c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3a.501.501 0 0 1-.5-.5v-3c0-.275.225-.5.5-.5h3zm-3-20a.501.501 0 0 1-.5-.5v-3c0-.275.225-.5.5-.5h3c.275 0 .5.225.5.5v3c0 .275-.225.5-.5.5h-3z"}))},m=function(t){return e.createElement("svg",o({viewBox:"0 0 486.4 486.4"},t),e.createElement("path",{d:"M446 70H344.8V53.5c0-29.5-24-53.5-53.5-53.5h-96.2c-29.5 0-53.5 24-53.5 53.5V70H40.4c-7.5 0-13.5 6-13.5 13.5S32.9 97 40.4 97h24.4v317.2c0 39.8 32.4 72.2 72.2 72.2h212.4c39.8 0 72.2-32.4 72.2-72.2V97H446c7.5 0 13.5-6 13.5-13.5S453.5 70 446 70zM168.6 53.5c0-14.6 11.9-26.5 26.5-26.5h96.2c14.6 0 26.5 11.9 26.5 26.5V70H168.6V53.5zm226 360.7c0 24.9-20.3 45.2-45.2 45.2H137c-24.9 0-45.2-20.3-45.2-45.2V97h302.9v317.2h-.1z"}),e.createElement("path",{d:"M243.2 411c7.5 0 13.5-6 13.5-13.5V158.9c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v238.5c0 7.5 6 13.6 13.5 13.6zm-88.1-14.9c7.5 0 13.5-6 13.5-13.5V173.7c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v208.9c0 7.5 6.1 13.5 13.5 13.5zm176.2 0c7.5 0 13.5-6 13.5-13.5V173.7c0-7.5-6-13.5-13.5-13.5s-13.5 6-13.5 13.5v208.9c0 7.5 6 13.5 13.5 13.5z"}))},b=function(t){return e.createElement("svg",o({height:596,viewBox:"0 0 447.632 447"},t),e.createElement("path",{d:"M231.816 447.05c34.23-4.863 64.239-40.59 83.121-93.35a406.317 406.317 0 0 0-83.12-9.786zm0 0M286.504 438.66c2.023-.586 4.039-1.176 6.039-1.824 1.687-.543 3.352-1.129 5.016-1.711a203.39 203.39 0 0 0 5.882-2.121c1.664-.633 3.313-1.305 4.965-1.977 1.906-.8 3.809-1.597 5.692-2.398a240.401 240.401 0 0 0 10.422-4.922c1.601-.816 3.199-1.648 4.8-2.504 1.793-.96 3.575-1.941 5.344-2.95a203.403 203.403 0 0 0 4.703-2.753c1.735-1.066 3.461-2.133 5.176-3.2a191.535 191.535 0 0 0 4.578-2.991 221.095 221.095 0 0 0 5.008-3.504 417.693 417.693 0 0 0 4.422-3.2 365.942 365.942 0 0 0 4.847-3.793c1.426-1.136 2.848-2.265 4.25-3.433 1.598-1.328 3.13-2.703 4.68-4.078 1.36-1.207 2.727-2.403 4.055-3.64 1.527-1.427 3.015-2.903 4.504-4.368 1.289-1.273 2.593-2.527 3.855-3.832.235-.242.457-.504.7-.754a268.883 268.883 0 0 0-54.817-21.094 198.517 198.517 0 0 1-51.129 83.024c.649-.168 1.297-.305 1.945-.473 1.711-.48 3.391-1.008 5.063-1.504zm0 0M447.633 231.684H351.71a414.882 414.882 0 0 1-16.152 110.68 278.228 278.228 0 0 1 60.714 24.16 223.51 223.51 0 0 0 51.36-134.84zm0 0M231.816 215.684h103.895a400.208 400.208 0 0 0-15.75-106.743 421.384 421.384 0 0 1-88.145 10.512zm0 0M231.816.316v103.137a406.589 406.589 0 0 0 83.121-9.785C296.055 40.906 266.048 5.18 231.817.316zm0 0M231.816 327.914a421.648 421.648 0 0 1 88.145 10.516 400.236 400.236 0 0 0 15.75-106.746H231.816zm0 0M396.273 80.844a278.228 278.228 0 0 1-60.714 24.16 414.882 414.882 0 0 1 16.152 110.68h95.922a223.577 223.577 0 0 0-51.36-134.84zm0 0M385.465 68.707c-.235-.238-.457-.496-.688-.742-1.265-1.305-2.578-2.563-3.867-3.832-1.484-1.465-2.965-2.945-4.496-4.367-1.324-1.235-2.695-2.403-4.055-3.633-1.55-1.375-3.101-2.762-4.695-4.09-1.383-1.168-2.8-2.285-4.207-3.406a171.24 171.24 0 0 0-4.89-3.825 220.477 220.477 0 0 0-4.383-3.199 192.844 192.844 0 0 0-5.055-3.547 200.251 200.251 0 0 0-4.535-2.957 190.441 190.441 0 0 0-5.219-3.257 223.26 223.26 0 0 0-4.664-2.727 220.848 220.848 0 0 0-5.39-2.984c-1.602-.801-3.2-1.672-4.801-2.473-1.84-.93-3.696-1.824-5.598-2.703a174.071 174.071 0 0 0-4.875-2.227c-1.895-.84-3.809-1.597-5.719-2.398a225.094 225.094 0 0 0-4.953-1.969 191.214 191.214 0 0 0-5.879-2.117 210.272 210.272 0 0 0-5.016-1.715c-2-.648-4-1.238-6.054-1.832-1.664-.488-3.336-.984-5.02-1.43-.644-.175-1.3-.312-1.949-.48a198.532 198.532 0 0 1 51.129 83.023 268.485 268.485 0 0 0 54.879-21.113zm0 0M0 215.684h95.922a415.035 415.035 0 0 1 16.148-110.68 277.885 277.885 0 0 1-60.71-24.16A223.519 223.519 0 0 0 0 215.684zm0 0M215.816 447.05V343.915a406.589 406.589 0 0 0-83.12 9.785c18.878 52.762 48.89 88.488 83.12 93.352zm0 0M215.816 231.684H111.922a400.079 400.079 0 0 0 15.75 106.746 421.097 421.097 0 0 1 88.144-10.516zm0 0M215.816.316c-34.23 4.864-64.242 40.59-83.12 93.352a406.045 406.045 0 0 0 83.12 9.785zm0 0M215.816 119.453a421.384 421.384 0 0 1-88.144-10.512 400.05 400.05 0 0 0-15.75 106.743h103.894zm0 0M168.113 6.79c-.648.167-1.297.304-1.945.472-1.695.453-3.367.957-5.055 1.445-2.008.586-4 1.176-6.015 1.816-1.7.551-3.371 1.137-5.043 1.72-1.957.69-3.918 1.378-5.856 2.112-1.672.641-3.32 1.305-4.976 1.985-1.903.8-3.809 1.601-5.688 2.398-1.648.723-3.277 1.48-4.91 2.242a223.908 223.908 0 0 0-5.512 2.68 228.526 228.526 0 0 0-10.137 5.457 149.244 149.244 0 0 0-4.718 2.75c-1.738 1.047-3.457 2.13-5.168 3.2-1.54.984-3.067 1.976-4.578 3a221.095 221.095 0 0 0-5.008 3.503 403.614 403.614 0 0 0-4.426 3.203c-1.637 1.23-3.2 2.512-4.848 3.79-1.421 1.136-2.855 2.265-4.246 3.44-1.601 1.321-3.12 2.688-4.664 4.056-1.367 1.218-2.746 2.402-4.082 3.664-1.52 1.418-3 2.89-4.484 4.351-1.29 1.274-2.602 2.531-3.867 3.84-.23.242-.453.508-.696.754a268.581 268.581 0 0 0 54.817 21.098 198.45 198.45 0 0 1 51.105-82.977zm0 0M66.719 383.234c1.488 1.465 2.969 2.946 4.496 4.371 1.328 1.23 2.695 2.399 4.058 3.63 1.551 1.378 3.102 2.761 4.696 4.09 1.383 1.16 2.793 2.28 4.207 3.405 1.601 1.297 3.199 2.586 4.894 3.833 1.442 1.082 2.907 2.128 4.371 3.203 1.672 1.199 3.36 2.398 5.063 3.55a214.813 214.813 0 0 0 4.535 2.961c1.73 1.11 3.457 2.2 5.219 3.254 1.543.93 3.101 1.84 4.664 2.73a208.275 208.275 0 0 0 5.39 2.981c1.598.801 3.2 1.672 4.801 2.473 1.84.93 3.696 1.824 5.598 2.707 1.601.754 3.226 1.496 4.875 2.223 1.894.84 3.805 1.597 5.719 2.398 1.648.672 3.289 1.336 4.953 1.969 1.941.746 3.91 1.441 5.879 2.12 1.664.583 3.328 1.169 5.015 1.712 2 .648 4 1.242 6.055 1.832 1.664.488 3.336.984 5.016 1.433.648.176 1.304.313 1.953.48a198.57 198.57 0 0 1-51.13-83.027 268.607 268.607 0 0 0-54.816 21.106c.235.238.458.496.692.742 1.2 1.297 2.492 2.555 3.797 3.824zm0 0M51.36 366.523a278.275 278.275 0 0 1 60.71-24.16 415.035 415.035 0 0 1-16.148-110.68H0a223.552 223.552 0 0 0 51.36 134.84zm0 0"}))},y=function(t){return e.createElement("svg",o({viewBox:"0 0 512 512"},t),e.createElement("path",{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"}))},x=function(t){return e.createElement("svg",o({viewBox:"0 0 512 512"},t),e.createElement("path",{d:"M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"}))},_={video:{mimeTypes:["video/x-flv","video/mp4","application/octet-stream","application/x-mpegURL","video/MP2T","video/3gpp","video/quicktime","video/x-msvideo","video/x-ms-wmv"],extensions:["3g2","3gp","amv","asf","avi","drc","f4a","f4b","f4p","f4v","flv","gif","gifv","m2v","m4p","m4v","mkv","mov","mng","mp2","mp4","mpe","mpeg","mpg","mpv","MTS","M2TS","mxf","nsv","ogg","qt","rm","rmvb","roq","svi","vob","webm","wmv","yuv"]},image:{mimeTypes:["image/gif","image/jpeg","image/png","image/tiff","image/vnd.microsoft.icon","image/vnd.djvu","image/svg+xml"],extensions:["3dv","PI1","PI2","PI3","ai","amf","art","art","ase","awg","blp","bmp","bw","bw","cd5","cdr","cgm","cit","cmx","cpt","cr2","cur","cut","dds","dib","djvu","dxf","e2d","ecw","egt","egt","emf","eps","exif","fs","gbr","gif","gpl","grf","hdp","icns","ico","iff","iff","int","int","inta","jfif","jng","jp2","jpeg","jpg","jps","jxr","lbm","lbm","liff","max","miff","mng","msp","nitf","nrrd","odg","ota","pam","pbm","pc1","pc2","pc3","pcf","pct","pcx","pcx","pdd","pdn","pgf","pgm","pict","png","pnm","pns","ppm","psb","psd","psp","px","pxm","pxr","qfx","ras","raw","rgb","rgb","rgba","rle","sct","sgi","sgi","sid","stl","sun","svg","sxd","tga","tga","tif","tiff","v2d","vnd","vrml","vtf","wdp","webp","wmf","x3d","xar","xbm","xcf","xpm"]},compressedFile:{mimeTypes:["application/x-bzip2","application/gzip","application/x-lzip","application/x-lzma","application/x-lzop","application/x-snappy-framed","application/x-xz","application/x-compress","application/x-7z-compressed","application/x-ace-compressed","application/x-astrotite-afa","application/x-alz-compressed","application/vnd.android.package-archive","application/x-arj","application/x-b1","application/vnd.ms-cab-compressed","application/x-cfs-compressed","application/x-dar","application/x-dgc-compressed","application/x-apple-diskimage","application/x-gca-compressed","application/x-lzh","application/x-lzx","application/x-rar-compressed","application/x-stuffit","application/x-stuffitx","application/x-gtar","application/zip","application/x-zoo"],extensions:["bz2","gz","F","lz","lzma","lzo","rz","sfark","sz","xz","z","Z","?Q?","?XF","?Z?","??_","7z","ace","afa","alz","apk","arc","arj","b1","b6z","ba","bh","cab","car","cfs","cpt","dar","dd","dgc","dmg","ear","gca","ha","hki","ice","jar","kgb","lha","lzh","lzx","pak","paq6","paq7","paq8","partimg","pea","pim","pit","qda","rar","rk","s7z","sda","sea","sen","sfx","shk","sit","sitx","sqx","tar.bz2","tar.gz","tar.lzma","tar.xz","tar.Z","tbz2","tgz","tlz","txz","ue2","uc","uc0","uc2","uca","ucn","uha","ur2","war","wim","xar","xp3","yz1","zip","zipx","zoo","zpaq","zz"]}};function z(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var j="object"==typeof global&&global&&global.Object===Object&&global,w="object"==typeof self&&self&&self.Object===Object&&self,C=j||w||Function("return this")(),E=C.Symbol,O=Object.prototype,k=O.hasOwnProperty,L=O.toString,S=E?E.toStringTag:void 0;var A=Object.prototype.toString;var M="[object Null]",T="[object Undefined]",R=E?E.toStringTag:void 0;function U(e){return null==e?void 0===e?T:M:R&&R in Object(e)?function(e){var t=k.call(e,S),r=e[S];try{e[S]=void 0;var n=!0}catch(e){}var o=L.call(e);return n&&(t?e[S]=r:delete e[S]),o}(e):function(e){return A.call(e)}(e)}function I(e){return null!=e&&"object"==typeof e}var D="[object Arguments]";function P(e){return I(e)&&U(e)==D}var F=Object.prototype,N=F.hasOwnProperty,H=F.propertyIsEnumerable,V=P(function(){return arguments}())?P:function(e){return I(e)&&N.call(e,"callee")&&!H.call(e,"callee")},q=Array.isArray,B=E?E.isConcatSpreadable:void 0;function $(e){return q(e)||V(e)||!!(B&&e&&e[B])}function Z(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=$),o||(o=[]);++a<i;){var u=e[a];t>0&&r(u)?t>1?Z(u,t-1,r,n,o):z(o,u):n||(o[o.length]=u)}return o}var W="[object String]";function G(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}function Y(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function J(e,t){return e===t||e!=e&&t!=t}function K(e,t){for(var r=e.length;r--;)if(J(e[r][0],t))return r;return-1}var X=Array.prototype.splice;function Q(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ee(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}Q.prototype.clear=function(){this.__data__=[],this.size=0},Q.prototype.delete=function(e){var t=this.__data__,r=K(t,e);return!(r<0||(r==t.length-1?t.pop():X.call(t,r,1),--this.size,0))},Q.prototype.get=function(e){var t=this.__data__,r=K(t,e);return r<0?void 0:t[r][1]},Q.prototype.has=function(e){return K(this.__data__,e)>-1},Q.prototype.set=function(e,t){var r=this.__data__,n=K(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var te="[object AsyncFunction]",re="[object Function]",ne="[object GeneratorFunction]",oe="[object Proxy]";function ae(e){if(!ee(e))return!1;var t=U(e);return t==re||t==ne||t==te||t==oe}var ie,ue=C["__core-js_shared__"],ce=(ie=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"";var le=Function.prototype.toString;function se(e){if(null!=e){try{return le.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var fe=/^\[object .+?Constructor\]$/,pe=Function.prototype,de=Object.prototype,he=pe.toString,ve=de.hasOwnProperty,ge=RegExp("^"+he.call(ve).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function me(e){return!(!ee(e)||(t=e,ce&&ce in t))&&(ae(e)?ge:fe).test(se(e));var t}function be(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return me(r)?r:void 0}var ye=be(C,"Map"),xe=be(Object,"create");var _e="__lodash_hash_undefined__",ze=Object.prototype.hasOwnProperty;var je=Object.prototype.hasOwnProperty;var we="__lodash_hash_undefined__";function Ce(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ee(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Oe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=function(){this.__data__=xe?xe(null):{},this.size=0},Ce.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ce.prototype.get=function(e){var t=this.__data__;if(xe){var r=t[e];return r===_e?void 0:r}return ze.call(t,e)?t[e]:void 0},Ce.prototype.has=function(e){var t=this.__data__;return xe?void 0!==t[e]:je.call(t,e)},Ce.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xe&&void 0===t?we:t,this},Oe.prototype.clear=function(){this.size=0,this.__data__={hash:new Ce,map:new(ye||Q),string:new Ce}},Oe.prototype.delete=function(e){var t=Ee(this,e).delete(e);return this.size-=t?1:0,t},Oe.prototype.get=function(e){return Ee(this,e).get(e)},Oe.prototype.has=function(e){return Ee(this,e).has(e)},Oe.prototype.set=function(e,t){var r=Ee(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var ke=200;function Le(e){var t=this.__data__=new Q(e);this.size=t.size}Le.prototype.clear=function(){this.__data__=new Q,this.size=0},Le.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Le.prototype.get=function(e){return this.__data__.get(e)},Le.prototype.has=function(e){return this.__data__.has(e)},Le.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Q){var n=r.__data__;if(!ye||n.length<ke-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Oe(n)}return r.set(e,t),this.size=r.size,this};var Se="__lodash_hash_undefined__";function Ae(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Oe;++t<r;)this.add(e[t])}function Me(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Te(e,t){return e.has(t)}Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,Se),this},Ae.prototype.has=function(e){return this.__data__.has(e)};var Re=1,Ue=2;function Ie(e,t,r,n,o,a){var i=r&Re,u=e.length,c=t.length;if(u!=c&&!(i&&c>u))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var s=-1,f=!0,p=r&Ue?new Ae:void 0;for(a.set(e,t),a.set(t,e);++s<u;){var d=e[s],h=t[s];if(n)var v=i?n(h,d,s,t,e,a):n(d,h,s,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(p){if(!Me(t,function(e,t){if(!Te(p,t)&&(d===e||o(d,e,r,n,a)))return p.push(t)})){f=!1;break}}else if(d!==h&&!o(d,h,r,n,a)){f=!1;break}}return a.delete(e),a.delete(t),f}var De=C.Uint8Array;function Pe(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Fe(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var Ne=1,He=2,Ve="[object Boolean]",qe="[object Date]",Be="[object Error]",$e="[object Map]",Ze="[object Number]",We="[object RegExp]",Ge="[object Set]",Ye="[object String]",Je="[object Symbol]",Ke="[object ArrayBuffer]",Xe="[object DataView]",Qe=E?E.prototype:void 0,et=Qe?Qe.valueOf:void 0;var tt=Object.prototype.propertyIsEnumerable,rt=Object.getOwnPropertySymbols,nt=rt?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}(rt(e),function(t){return tt.call(e,t)}))}:function(){return[]};var ot="object"==typeof exports&&exports&&!exports.nodeType&&exports,at=ot&&"object"==typeof module&&module&&!module.nodeType&&module,it=at&&at.exports===ot?C.Buffer:void 0,ut=(it?it.isBuffer:void 0)||function(){return!1},ct=9007199254740991,lt=/^(?:0|[1-9]\d*)$/;function st(e,t){var r=typeof e;return!!(t=null==t?ct:t)&&("number"==r||"symbol"!=r&&lt.test(e))&&e>-1&&e%1==0&&e<t}var ft=9007199254740991;function pt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=ft}var dt={};function ht(e){return function(t){return e(t)}}dt["[object Float32Array]"]=dt["[object Float64Array]"]=dt["[object Int8Array]"]=dt["[object Int16Array]"]=dt["[object Int32Array]"]=dt["[object Uint8Array]"]=dt["[object Uint8ClampedArray]"]=dt["[object Uint16Array]"]=dt["[object Uint32Array]"]=!0,dt["[object Arguments]"]=dt["[object Array]"]=dt["[object ArrayBuffer]"]=dt["[object Boolean]"]=dt["[object DataView]"]=dt["[object Date]"]=dt["[object Error]"]=dt["[object Function]"]=dt["[object Map]"]=dt["[object Number]"]=dt["[object Object]"]=dt["[object RegExp]"]=dt["[object Set]"]=dt["[object String]"]=dt["[object WeakMap]"]=!1;var vt="object"==typeof exports&&exports&&!exports.nodeType&&exports,gt=vt&&"object"==typeof module&&module&&!module.nodeType&&module,mt=gt&&gt.exports===vt&&j.process,bt=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),yt=bt&&bt.isTypedArray,xt=yt?ht(yt):function(e){return I(e)&&pt(e.length)&&!!dt[U(e)]},_t=Object.prototype.hasOwnProperty;function zt(e,t){var r=q(e),n=!r&&V(e),o=!r&&!n&&ut(e),a=!r&&!n&&!o&&xt(e),i=r||n||o||a,u=i?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var l in e)!t&&!_t.call(e,l)||i&&("length"==l||o&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||st(l,c))||u.push(l);return u}var jt=Object.prototype;var wt,Ct,Et=(wt=Object.keys,Ct=Object,function(e){return wt(Ct(e))}),Ot=Object.prototype.hasOwnProperty;function kt(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||jt))return Et(e);var t,r,n=[];for(var o in Object(e))Ot.call(e,o)&&"constructor"!=o&&n.push(o);return n}function Lt(e){return null!=e&&pt(e.length)&&!ae(e)}function St(e){return Lt(e)?zt(e):kt(e)}function At(e){return function(e,t,r){var n=t(e);return q(e)?n:z(n,r(e))}(e,St,nt)}var Mt=1,Tt=Object.prototype.hasOwnProperty;var Rt=be(C,"DataView"),Ut=be(C,"Promise"),It=be(C,"Set"),Dt=be(C,"WeakMap"),Pt=se(Rt),Ft=se(ye),Nt=se(Ut),Ht=se(It),Vt=se(Dt),qt=U;(Rt&&"[object DataView]"!=qt(new Rt(new ArrayBuffer(1)))||ye&&"[object Map]"!=qt(new ye)||Ut&&"[object Promise]"!=qt(Ut.resolve())||It&&"[object Set]"!=qt(new It)||Dt&&"[object WeakMap]"!=qt(new Dt))&&(qt=function(e){var t=U(e),r="[object Object]"==t?e.constructor:void 0,n=r?se(r):"";if(n)switch(n){case Pt:return"[object DataView]";case Ft:return"[object Map]";case Nt:return"[object Promise]";case Ht:return"[object Set]";case Vt:return"[object WeakMap]"}return t});var Bt=qt,$t=1,Zt="[object Arguments]",Wt="[object Array]",Gt="[object Object]",Yt=Object.prototype.hasOwnProperty;function Jt(e,t,r,n,o,a){var i=q(e),u=q(t),c=i?Wt:Bt(e),l=u?Wt:Bt(t),s=(c=c==Zt?Gt:c)==Gt,f=(l=l==Zt?Gt:l)==Gt,p=c==l;if(p&&ut(e)){if(!ut(t))return!1;i=!0,s=!1}if(p&&!s)return a||(a=new Le),i||xt(e)?Ie(e,t,r,n,o,a):function(e,t,r,n,o,a,i){switch(r){case Xe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ke:return!(e.byteLength!=t.byteLength||!a(new De(e),new De(t)));case Ve:case qe:case Ze:return J(+e,+t);case Be:return e.name==t.name&&e.message==t.message;case We:case Ye:return e==t+"";case $e:var u=Pe;case Ge:var c=n&Ne;if(u||(u=Fe),e.size!=t.size&&!c)return!1;var l=i.get(e);if(l)return l==t;n|=He,i.set(e,t);var s=Ie(u(e),u(t),n,o,a,i);return i.delete(e),s;case Je:if(et)return et.call(e)==et.call(t)}return!1}(e,t,c,r,n,o,a);if(!(r&$t)){var d=s&&Yt.call(e,"__wrapped__"),h=f&&Yt.call(t,"__wrapped__");if(d||h){var v=d?e.value():e,g=h?t.value():t;return a||(a=new Le),o(v,g,r,n,a)}}return!!p&&(a||(a=new Le),function(e,t,r,n,o,a){var i=r&Mt,u=At(e),c=u.length;if(c!=At(t).length&&!i)return!1;for(var l=c;l--;){var s=u[l];if(!(i?s in t:Tt.call(t,s)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var p=!0;a.set(e,t),a.set(t,e);for(var d=i;++l<c;){var h=e[s=u[l]],v=t[s];if(n)var g=i?n(v,h,s,t,e,a):n(h,v,s,e,t,a);if(!(void 0===g?h===v||o(h,v,r,n,a):g)){p=!1;break}d||(d="constructor"==s)}if(p&&!d){var m=e.constructor,b=t.constructor;m!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b)&&(p=!1)}return a.delete(e),a.delete(t),p}(e,t,r,n,o,a))}function Kt(e,t,r,n,o){return e===t||(null==e||null==t||!I(e)&&!I(t)?e!=e&&t!=t:Jt(e,t,r,n,Kt,o))}var Xt=1,Qt=2;function er(e){return e==e&&!ee(e)}function tr(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}function rr(e){var t=function(e){for(var t=St(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,er(o)]}return t}(e);return 1==t.length&&t[0][2]?tr(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var o=r.length,a=o,i=!n;if(null==e)return!a;for(e=Object(e);o--;){var u=r[o];if(i&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=r[o])[0],l=e[c],s=u[1];if(i&&u[2]){if(void 0===l&&!(c in e))return!1}else{var f=new Le;if(n)var p=n(l,s,c,e,t,f);if(!(void 0===p?Kt(s,l,Xt|Qt,n,f):p))return!1}}return!0}(r,e,t)}}var nr="[object Symbol]";function or(e){return"symbol"==typeof e||I(e)&&U(e)==nr}var ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/;function ur(e,t){if(q(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!or(e))||(ir.test(e)||!ar.test(e)||null!=t&&e in Object(t))}var cr="Expected a function";function lr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(cr);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(lr.Cache||Oe),r}lr.Cache=Oe;var sr=500;var fr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pr=/\\(\\)?/g,dr=function(e){var t=lr(e,function(e){return r.size===sr&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(fr,function(e,r,n,o){t.push(n?o.replace(pr,"$1"):r||e)}),t}),hr=1/0,vr=E?E.prototype:void 0,gr=vr?vr.toString:void 0;function mr(e){if("string"==typeof e)return e;if(q(e))return Y(e,mr)+"";if(or(e))return gr?gr.call(e):"";var t=e+"";return"0"==t&&1/e==-hr?"-0":t}function br(e){return null==e?"":mr(e)}function yr(e,t){return q(e)?e:ur(e,t)?[e]:dr(br(e))}var xr=1/0;function _r(e){if("string"==typeof e||or(e))return e;var t=e+"";return"0"==t&&1/e==-xr?"-0":t}function zr(e,t){for(var r=0,n=(t=yr(t,e)).length;null!=e&&r<n;)e=e[_r(t[r++])];return r&&r==n?e:void 0}function jr(e,t,r){var n=null==e?void 0:zr(e,t);return void 0===n?r:n}function wr(e,t){return null!=e&&t in Object(e)}function Cr(e,t){return null!=e&&function(e,t,r){for(var n=-1,o=(t=yr(t,e)).length,a=!1;++n<o;){var i=_r(t[n]);if(!(a=null!=e&&r(e,i)))break;e=e[i]}return a||++n!=o?a:!!(o=null==e?0:e.length)&&pt(o)&&st(i,o)&&(q(e)||V(e))}(e,t,wr)}var Er=1,Or=2;function kr(e){return e}function Lr(e){return ur(e)?(t=_r(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return zr(t,e)}}(e);var t}function Sr(e){return"function"==typeof e?e:null==e?kr:"object"==typeof e?q(e)?(t=e[0],r=e[1],ur(t)&&er(r)?tr(_r(t),r):function(e){var n=jr(e,t);return void 0===n&&n===r?Cr(e,t):Kt(r,n,Er|Or)}):rr(e):Lr(e);var t,r}var Ar,Mr=function(e,t,r){for(var n=-1,o=Object(e),a=r(e),i=a.length;i--;){var u=a[Ar?i:++n];if(!1===t(o[u],u,o))break}return e};var Tr=function(e,t){return function(r,n){if(null==r)return r;if(!Lt(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&!1!==n(i[a],a,i););return r}}(function(e,t){return e&&Mr(e,t,St)});function Rr(e,t){var r=-1,n=Lt(e)?Array(e.length):[];return Tr(e,function(e,o,a){n[++r]=t(e,o,a)}),n}var Ur=NaN,Ir=/^\s+|\s+$/g,Dr=/^[-+]0x[0-9a-f]+$/i,Pr=/^0b[01]+$/i,Fr=/^0o[0-7]+$/i,Nr=parseInt;function Hr(e){if("number"==typeof e)return e;if(or(e))return Ur;if(ee(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ee(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ir,"");var r=Pr.test(e);return r||Fr.test(e)?Nr(e.slice(2),r?2:8):Dr.test(e)?Ur:+e}var Vr=1/0,qr=1.7976931348623157e308;function Br(e){var t=function(e){return e?(e=Hr(e))===Vr||e===-Vr?(e<0?-1:1)*qr:e==e?e:0:0===e?e:0}(e),r=t%1;return t==t?r?t-r:t:0}var $r=Math.min;var Zr=function(e){var t=Math[e];return function(e,r){if(e=Hr(e),r=null==r?0:$r(Br(r),292)){var n=(br(e)+"e").split("e");return+((n=(br(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}("round");function Wr(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a}(e,t,r)}var Gr=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Yr(e){return Gr.test(e)}var Jr="[object RegExp]";var Kr=bt&&bt.isRegExp,Xr=Kr?ht(Kr):function(e){return I(e)&&U(e)==Jr};var Qr="[\\ud800-\\udfff]",en="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",tn="\\ud83c[\\udffb-\\udfff]",rn="[^\\ud800-\\udfff]",nn="(?:\\ud83c[\\udde6-\\uddff]){2}",on="[\\ud800-\\udbff][\\udc00-\\udfff]",an="(?:"+en+"|"+tn+")"+"?",un="[\\ufe0e\\ufe0f]?"+an+("(?:\\u200d(?:"+[rn,nn,on].join("|")+")[\\ufe0e\\ufe0f]?"+an+")*"),cn="(?:"+[rn+en+"?",en,nn,on,Qr].join("|")+")",ln=RegExp(tn+"(?="+tn+")|"+cn+un,"g");function sn(e){return Yr(e)?function(e){return e.match(ln)||[]}(e):function(e){return e.split("")}(e)}var fn=4294967295;function pn(e,t,r){return r&&"number"!=typeof r&&function(e,t,r){if(!ee(r))return!1;var n=typeof t;return!!("number"==n?Lt(r)&&st(t,r.length):"string"==n&&t in r)&&J(r[t],e)}(e,t,r)&&(t=r=void 0),(r=void 0===r?fn:r>>>0)?(e=br(e))&&("string"==typeof t||null!=t&&!Xr(t))&&!(t=mr(t))&&Yr(e)?Wr(sn(e),0,r):e.split(t,r):[]}var dn,hn=(dn={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},function(e){return null==dn?void 0:dn[e]}),vn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gn=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");var mn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;var bn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;var yn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xn="["+yn+"]",_n="\\d+",zn="[\\u2700-\\u27bf]",jn="[a-z\\xdf-\\xf6\\xf8-\\xff]",wn="[^\\ud800-\\udfff"+yn+_n+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Cn="(?:\\ud83c[\\udde6-\\uddff]){2}",En="[\\ud800-\\udbff][\\udc00-\\udfff]",On="[A-Z\\xc0-\\xd6\\xd8-\\xde]",kn="(?:"+jn+"|"+wn+")",Ln="(?:"+On+"|"+wn+")",Sn="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",An="[\\ufe0e\\ufe0f]?"+Sn+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",Cn,En].join("|")+")[\\ufe0e\\ufe0f]?"+Sn+")*"),Mn="(?:"+[zn,Cn,En].join("|")+")"+An,Tn=RegExp([On+"?"+jn+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[xn,On,"$"].join("|")+")",Ln+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[xn,On+kn,"$"].join("|")+")",On+"?"+kn+"+(?:['’](?:d|ll|m|re|s|t|ve))?",On+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_n,Mn].join("|"),"g");function Rn(e,t,r){return e=br(e),void 0===(t=r?void 0:t)?function(e){return bn.test(e)}(e)?function(e){return e.match(Tn)||[]}(e):function(e){return e.match(mn)||[]}(e):e.match(t)||[]}var Un=RegExp("['’]","g");function In(e){return function(t){return function(e,t,r,n){var o=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}(Rn(function(e){return(e=br(e))&&e.replace(vn,hn).replace(gn,"")}(t).replace(Un,"")),e,"")}}var Dn=In(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Pn={},Fn={concat:function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return z(q(r)?function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(r):[r],Z(t,1))},isString:function(e){return"string"==typeof e||!q(e)&&I(e)&&U(e)==W},last:G,map:function(e,t){return(q(e)?Y:Rr)(e,Sr(t))},round:Zr,split:pn,upperCase:Dn};Pn.initializeDrag=function(){window.addEventListener("dragover",function(e){(e=e||event).preventDefault()},!1),window.addEventListener("drop",function(e){(e=e||event).preventDefault()},!1)},Pn.base64MimeType=function(e){var t=null;if("string"!=typeof e)return t;var r=e.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);return r&&r.length&&(t=r[1]),t},Pn.isBase64=function(e){return null!==Pn.base64MimeType(e)},Pn.extension=function(e){return e=Fn.isString(e)?e:e.name,Fn.last(Fn.split(e,"."))},Pn.fileType=function(e){if(!e.match(/\//)){var t={video:_.video.extensions,image:_.image.extensions,compressedFile:_.compressedFile.extensions};for(var r in t){if(-1!==Fn.concat(t[r],Fn.map(t[r],function(e){return Fn.upperCase(e)})).indexOf(e))return r}}else{var n={video:_.video.mimeTypes,image:_.image.mimeTypes,compressedFile:_.compressedFile.mimeTypes};for(var o in n){if(-1!==n[o].indexOf(e))return o}}return null},Pn.guessFileType=function(e){return Pn.fileType(Pn.base64MimeType(e)||Pn.extension(e))},Pn.humanSize=function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=["B","KB","MB","GB","TB"],n=r.length-1;n>=0;n--){var o=1*e/Math.pow(1e3,n);if(o>=1)return t&&(o=Fn.round(o)),"".concat(o," ").concat(r[n])}};var Nn,Hn=(Nn="toUpperCase",function(e){var t=Yr(e=br(e))?sn(e):void 0,r=t?t[0]:e.charAt(0),n=t?Wr(t,1).join(""):e.slice(1);return r[Nn]()+n});var Vn=In(function(e,t,r){return t=t.toLowerCase(),e+(r?Hn(br(t).toLowerCase()):t)});function qn(e){return e!=e}function Bn(e,t){return!!(null==e?0:e.length)&&function(e,t,r){return t==t?function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):function(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}(e,qn,r)}(e,t,0)>-1}function $n(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}var Zn=200;var Wn=Math.max;var Gn=function(){try{var e=be(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Yn=Gn?function(e,t){return Gn(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:kr,Jn=800,Kn=16,Xn=Date.now;var Qn=function(e){var t=0,r=0;return function(){var n=Xn(),o=Kn-(n-r);if(r=n,o>0){if(++t>=Jn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Yn);function eo(e){return I(e)&&Lt(e)}var to=function(e,t){return Qn(function(e,t,r){return t=Wn(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Wn(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=n[o];return u[t]=r(i),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,u)}}(e,t,kr),e+"")}(function(e,t){return eo(e)?function(e,t,r,n){var o=-1,a=Bn,i=!0,u=e.length,c=[],l=t.length;if(!u)return c;r&&(t=Y(t,ht(r))),n?(a=$n,i=!1):t.length>=Zn&&(a=Te,i=!1,t=new Ae(t));e:for(;++o<u;){var s=e[o],f=null==r?s:r(s);if(s=n||0!==s?s:0,i&&f==f){for(var p=l;p--;)if(t[p]===f)continue e;c.push(s)}else a(t,f,n)||c.push(s)}return c}(e,Z(t,1,eo,!0)):[]}),ro={isURL:h},no={camelCase:Vn,difference:to,get:jr,last:G,upperFirst:Hn,split:pn},oo=function(t){function r(e){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=this,(t=!(o=a(r).call(this,e))||"object"!=typeof o&&"function"!=typeof o?u(n):o).state={beingDropTarget:!1,height:null,file:null,loaded:!0,mounted:!1,url:"",width:null},t.change=t.change.bind(u(t)),t.handleChange=t.handleChange.bind(u(t)),t.handleClick=t.handleClick.bind(u(t)),t.handleCropClick=t.handleCropClick.bind(u(t)),t.handleDragLeave=t.handleDragLeave.bind(u(t)),t.handleDragOver=t.handleDragOver.bind(u(t)),t.handleDrop=t.handleDrop.bind(u(t)),t.handleInjectURLClick=t.handleInjectURLClick.bind(u(t)),t.handleLoad=t.handleLoad.bind(u(t)),t.handleRemoveClick=t.handleRemoveClick.bind(u(t)),t.handleURLChange=t.handleURLChange.bind(u(t)),t.get=t.get.bind(u(t)),t.injectURL=t.injectURL.bind(u(t)),t.change=t.change.bind(u(t)),t}var c,l,s;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&&i(e,t)}(r,e.Component),c=r,(l=[{key:"componentDidMount",value:function(){this.setState({mounted:!0}),Pn.initializeDrag()}},{key:"change",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return null},r=this.props.maxSize;Pn.guessFileType(e)!==this.props.fileType?this.props.onInvalidFileExtensionError():r&&e.size>=r?this.props.onFileTooLargeError():this.props.onChange(e),t(e),this.refs.input.value=null}},{key:"handleChange",value:function(e){var t=no.get(e,"target.files.0");t&&this.change(t)}},{key:"handleClick",value:function(e){this.refs.input.click()}},{key:"handleCropClick",value:function(e){e.stopPropagation(),this.props.onCropClick()}},{key:"handleDragLeave",value:function(){this.setState({beingDropTarget:!1})}},{key:"handleDragOver",value:function(){this.setState({beingDropTarget:!0})}},{key:"handleDrop",value:function(e){e.preventDefault(),this.setState({beingDropTarget:!1});var t=no.get(e,"dataTransfer.files.0");t&&this.change(t)}},{key:"handleInjectURLClick",value:function(){this.injectURL(this.state.url,!0)}},{key:"handleLoad",value:function(){void 0===this.firstLoadDone&&(this.firstLoadDone=!0,this.props.onFirstLoad(),this.setState({loaded:!0})),this.props.onLoad()}},{key:"handleRemoveClick",value:function(e){e.stopPropagation(),this.props.onRemoveClick()}},{key:"handleURLChange",value:function(e){var t=e.target.value;this.setState({url:t})}},{key:"get",value:function(e){return new Promise(function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.open("GET",e,!0),n.onload=function(){200===n.status?t(n.response):r(Error(n.statusText))},n.onerror=function(){return r(Error("Network Error"))},n.send()})}},{key:"injectURL",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return null};!r||ro.isURL(e)?this.get(e).then(function(r){var o=no.last(no.split(e,"/")),a=new File([r],o,{type:r.type});t.change(a,n)}).catch(function(e){t.props.onURLInjectionError()}):this.props.onInvalidURLError()}},{key:"render",value:function(){var t=this,r=null,n=null,a=this.props.src&&(this.props.removable||this.props.croppable);if(this.props.src&&this.refs.zone&&this.refs.img)switch(this.props.fileType||Pn.guessFileType(this.props.src)){case"image":if(this.state.loaded&&this.state.mounted&&this.props.imageCrop){var i=this.refs.zone.offsetWidth,u=this.refs.zone.offsetHeight,c=this.refs.img.offsetWidth,l=this.refs.img.offsetHeight,s=this.refs.img.naturalWidth,f=this.refs.img.naturalHeight,p=c*this.props.imageCrop.x/s,d=l*this.props.imageCrop.y/f,h=c*this.props.imageCrop.width/s,_=l*this.props.imageCrop.height/f,z=h/_,j=null;j="contain"===this.props.backgroundSize?u*z>i?i/h:u/_:u*z>i?u/_:i/h,r=e.createElement("img",{alt:"",ref:"img",src:this.props.src,onLoad:this.handleLoad,style:{position:"absolute",top:"50%",left:"50%",transformOrigin:"".concat(p+h/2,"px ").concat(d+_/2,"px"),transform:"\n translateX(-".concat(p+h/2,"px)\n translateY(-").concat(d+_/2,"px)\n scale(").concat(j,")\n "),clip:"rect(\n ".concat(d,"px\n ").concat(p+h,"px\n ").concat(d+_,"px\n ").concat(p,"px)\n ")}})}else r=e.createElement("div",{style:{backgroundColor:this.props.backgroundColor,backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:this.props.backgroundSize,backgroundImage:"url(".concat(this.props.src,")"),position:"relative",width:"100%",height:"100%"}},e.createElement("img",{alt:"",ref:"img",src:this.props.src,onLoad:this.handleLoad,style:{position:"fixed",top:"-9999px",left:"-9999px"}}));break;case"video":r=e.createElement("video",{autoPlay:!0,loop:!0,muted:!0,src:this.props.src,onLoadedData:this.handleLoad,style:"cover"===this.props.backgroundSize?{height:"100%"}:{maxHeight:"100%",maxWidth:"100%"}})}switch(this.props.fileType){case"image":n=e.createElement(y,{className:"uploader-zone-fog-img"});break;case"video":n=e.createElement(x,{className:"uploader-zone-fog-img"})}return e.createElement("div",o({"data-attr":"root"},no.get(this.props.customAttributes,"root",{}),{className:"\n uploader\n ".concat(no.get(this.props.customAttributes,"root.className",""),"\n ").concat(this.props.fetching?"uploader/fetching":"","\n ").concat(this.props.withURLInput?"uploader/withUrl":"","\n ").concat(a?"uploader/withControls":"","\n ")}),e.createElement("input",{"data-attr":"input",ref:"input",type:"file",className:"uploader-input",onChange:this.handleChange}),e.createElement("div",{ref:"zone",className:"\n uploader-zone\n ".concat(this.props.withURLInput?"uploader-zone/withUrl":"","\n "),onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},r,e.createElement("div",{className:"uploader-zone-fog",onClick:this.handleClick},this.props.compact&&(this.props.removable||this.props.croppable)&&this.props.src?null:e.createElement(e.Fragment,null,this.state.beingDropTarget?e.createElement(v,{className:"uploader-zone-fog-img"}):n,e.createElement("div",{className:"uploader-zone-fog-caption"},this.props.fetching?this.props.catalogue.loading:"".concat(this.props.catalogue.click).concat(this.props.catalogue.drop?"/".concat(this.props.catalogue.drop):"").concat(this.props.withURLInput?"/".concat(this.props.catalogue.typeURL):""))),!0===a&&e.createElement(e.Fragment,null,this.props.compact?null:e.createElement("div",{className:"uploader-zone-fog-or"},e.createElement("div",{className:"uploader-zone-fog-or-wing"}),e.createElement("div",{className:"uploader-zone-fog-or-body"},this.props.catalogue.or),e.createElement("div",{className:"uploader-zone-fog-or-wing"})),e.createElement("div",{className:"uploader-zone-fog-controls"},!0===this.props.croppable&&e.createElement("span",{className:"uploader-zone-fog-controls-control",onClick:this.handleCropClick},this.props.cropIcon||e.createElement(g,null)),!0===this.props.removable&&e.createElement("span",{className:"uploader-zone-fog-controls-control",onClick:this.handleRemoveClick},this.props.removeIcon||e.createElement(m,null)))))),!0===this.props.withURLInput&&e.createElement("div",{className:"uploader-url"},e.createElement("input",{className:"uploader-url-input",name:"url",value:this.state.url,placeholder:this.props.catalogue.urlInputPlaceholder,type:"text",onChange:this.handleURLChange,onKeyPress:function(e){13===e.which&&(e.preventDefault(),t.handleInjectURLClick())}}),e.createElement("span",{className:"uploader-url-addon",onClick:this.handleInjectURLClick},e.createElement(b,{className:"uploader-url-addon-icon"}),this.props.catalogue.urlSubmitText)))}}])&&n(c.prototype,l),s&&n(c,s),r}();oo.propTypes={backgroundColor:t.string,backgroundSize:t.oneOf(["contain","cover"]),catalogue:function(e,t,n){var o=e[t],a=Object.keys(e[t]),i=Object.keys(oo.defaultProps[t]);if(!o||"object"!==r(o))throw new Error("Catalogue must be an object.");var u=no.difference(i,a);if(u.length)throw new Error("Given catalogue is insufficient. Missing keys: "+JSON.stringify(u))},compact:t.bool,croppable:t.bool,customAttributes:t.object,fetching:t.bool,fileType:t.oneOf(["image","video"]),imageCrop:t.object,maxSize:t.number,onChange:t.func,onCropClick:t.func,onFileTooLargeError:t.func,onFirstLoad:t.func,onInvalidFileExtensionError:t.func,onInvalidURLError:t.func,onLoad:t.func,onRemoveClick:t.func,onURLInjectionError:t.func,removable:t.bool,src:t.string,withURLInput:t.bool},oo.defaultProps={backgroundColor:"transparent",backgroundSize:"cover",catalogue:{click:null,drop:null,typeURL:null,loading:null,or:null,urlInputPlaceholder:null,urlSubmitText:null},compact:!0,croppable:!1,cropIcon:null,customAttributes:{},fetching:!1,fileType:"image",imageCrop:null,maxSize:1e7,onChange:function(e){return null},onCropClick:function(){return null},onFileTooLargeError:function(){return null},onFirstLoad:function(){return null},onInvalidFileExtensionError:function(){return null},onInvalidURLError:function(){return null},onLoad:function(){return null},onRemoveClick:function(){return null},onURLInjectionError:function(){return null},removable:!1,removeIcon:null,src:null,withURLInput:!1};return function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("@keyframes pulse {\r\n from {\r\n transform: scale(0.7);\r\n }\r\n 50% {\r\n transform: scale(1);\r\n }\r\n to {\r\n transform: scale(0.7);\r\n }\r\n}\r\n.uploader {\r\n position: relative;\r\n}\r\n.uploader\\/fetching .uploader-zone-fog-img {\r\n animation: pulse 2s linear infinite;\r\n}\r\n.uploader\\/withUrl .uploader-zone {\r\n border-top-left-radius: 0.25rem !important;\r\n border-top-right-radius: 0.25rem !important;\r\n border-bottom-left-radius: 0 !important;\r\n border-bottom-right-radius: 0 !important;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-caption {\r\n margin-top: 0;\r\n bottom: 0;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-img {\r\n width: 2.6rem;\r\n top: 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row wrap;\r\n position: relative;\r\n bottom: 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row;\r\n font-size: 80%;\r\n width: 100%;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or-wing {\r\n flex-grow: 1;\r\n height: 0;\r\n border-style: solid;\r\n border-width: .06rem 0 0 0;\r\n border-color: white;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-or-body {\r\n padding: 0.5rem 0.7rem;\r\n user-select: none;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls > * {\r\n margin: 0 0.3rem;\r\n}\r\n.uploader\\/withControls .uploader-zone-fog-controls-control {\r\n height: 1.6rem;\r\n width: 1.6rem;\r\n fill: white;\r\n}\r\n.uploader img {\r\n max-height: 100%;\r\n max-width: 100%;\r\n height: auto;\r\n width: auto;\r\n}\r\n.uploader-url-addon {\r\n display: flex;\r\n align-items: center;\r\n padding: .375rem .75rem;\r\n margin-bottom: 0;\r\n font-weight: 400;\r\n line-height: 1.5;\r\n color: #495057;\r\n text-align: center;\r\n white-space: nowrap;\r\n background-color: #e9ecef;\r\n border: 1px solid #ced4da;\r\n border-left-width: 0;\r\n border-top-right-radius: 0;\r\n border-top-left-radius: 0;\r\n border-bottom-left-radius: 0;\r\n border-bottom-right-radius: .25rem;\r\n}\r\n.uploader-url-addon svg {\r\n margin-right: 0.6rem;\r\n fill: #495057;\r\n height: 1.4rem;\r\n}\r\n.uploader-url-input {\r\n display: block;\r\n height: calc(1.5em + .75rem + 2px);\r\n padding: .375rem .75rem;\r\n font-weight: 400;\r\n font-size: 1rem;\r\n line-height: 1.5;\r\n color: #495057;\r\n background-color: #fff;\r\n background-clip: padding-box;\r\n border: 1px solid #ced4da;\r\n border-radius: .25rem;\r\n border-top-left-radius: 0;\r\n border-top-right-radius: 0;\r\n border-bottom-right-radius: 0;\r\n position: relative;\r\n flex-grow: 1;\r\n margin-bottom: 0;\r\n}\r\n.uploader-url-input:focus {\r\n outline: none;\r\n}\r\n.uploader-url {\r\n width: 100%;\r\n display: flex;\r\n justify-content: center;\r\n align-items: stretch;\r\n flex-flow: row;\r\n cursor: pointer;\r\n}\r\n.uploader-zone {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n flex-flow: row wrap;\r\n width: 100%;\r\n height: 14rem;\r\n overflow: hidden;\r\n position: relative;\r\n border-radius: 500rem;\r\n color: white;\r\n}\r\n.uploader-zone-fog {\r\n display: flex;\r\n justify-content: space-evenly;\r\n align-items: center;\r\n flex-flow: column;\r\n background: rgba(0, 0, 0, 0.2);\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n width: 100%;\r\n height: 100%;\r\n cursor: pointer;\r\n}\r\n.uploader-zone-fog:hover {\r\n background: rgba(0, 0, 0, 0.5);\r\n}\r\n.uploader-zone-fog-caption {\r\n width: 80%;\r\n text-align: center;\r\n position: relative;\r\n bottom: 1rem;\r\n margin-top: 1rem;\r\n text-shadow: 0 0 0.5rem black;\r\n}\r\n.uploader-zone-fog-img {\r\n width: 5rem;\r\n fill: white;\r\n position: relative;\r\n top: 1rem;\r\n}\r\n.uploader-input {\r\n position: fixed;\r\n top: -9999px;\r\n left: -9999px;\r\n}"),oo});
{
"name": "dnm-react-uploader",
"version": "1.2.2",
"version": "1.2.3",
"description": "React file uploader",

@@ -5,0 +5,0 @@ "main": "dist/dnm-react-uploader.umd.min.js",

@@ -166,3 +166,3 @@ import React from 'react';

if (this.props.src) {
if (this.props.src && this.refs.zone && this.refs.img) {
const fileType = this.props.fileType || FileManager.guessFileType(this.props.src);

@@ -169,0 +169,0 @@ switch (fileType) {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc