PageSourceSearch

https://connect.harpersbazaar.fr/assets/scripts/vendors-node_modul…ing_js-node_mod-623bb1.9d74abcf.0ef15b04.js

js harpersbazaar.fr collected 2026-10-02 05:44:48 UTC 36,010 bytes, 2 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([["vendors-node_modules_react-dropzone_dist_es_index_js-node_modules_warning_warning_js-node_mod-623bb1"],{499:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):i===t}))}return!0}},362:(e,t,n)=>{"use strict";var r=n(6441);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
1;return n.PropTypes=n,n}},2688:(e,t,n)=>{e.exports=n(362)()},6441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6878:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>ce});var r=n(3696),i=n(2688),o=n.n(i),a=n(4629),c=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function s(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=c.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!=typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof t?t:"string"==typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var l=[".DS_Store","Thumbs.db"];function u(e){return"object"==typeof e&&null!==e}function h(e){return g(e.target.files).map((function(e){return s(e)}))}function d(e){return(0,a.sH)(this,void 0,void 0,(function(){return(0,a.YH)(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return s(e)}))]}}))}))}function p(e,t){return(0,a.sH)(this,void 0,void 0,(function(){var n;return(0,a.YH)(this,(function(r){switch(r.label){case 0:return e.items?(n=g(e.items).filter((function(e){return"file"===e.kind}
1)),"drop"!==t?[2,n]:[4,Promise.all(n.map(m))]):[3,2];case 1:return[2,f(w(r.sent()))];case 2:return[2,f(g(e.files).map((function(e){return s(e)})))]}}))}))}function f(e){return e.filter((function(e){return-1===l.indexOf(e.name)}))}function g(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function m(e){if("function"!=typeof e.webkitGetAsEntry)return y(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?b(t):y(e)}function w(e){return e.reduce((function(e,t){return(0,a.fX)((0,a.fX)([],(0,a.zs)(e),!1),(0,a.zs)(Array.isArray(t)?w(t):[t]),!1)}),[])}function y(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=s(t);return Promise.resolve(n)}function v(e){return(0,a.sH)(this,void 0,void 0,(function(){return(0,a.YH)(this,(function(t){return[2,e.isDirectory?b(e):x(e)]}))}))}function b(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function i(){var o=this;t.readEntries((function(t){return(0,a.sH)(o,void 0,void 0,(function(){var o,c,s;return(0,a.YH)(this,(function(a){switch(a.label){case 0:if(t.length)return[3,5];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return o=a.sent(),e(o),[3,4];case 3:return c=a.sent(),n(c),[3,4];case 4:return[3,6];case 5:s=Promise.all(t.map(v)),r.push(s),i(),a.label=6;case 6:return[2]}}
vendor: 4,827 bytes, line 1
1))}))}),(function(e){n(e)}))}()}))}function x(e){return(0,a.sH)(this,void 0,void 0,(function(){return(0,a.YH)(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=s(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var D=n(499);function C(e){return function(e){if(Array.isArray(e))return P(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||R(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(e,t)||R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var j="file-invalid-type",S="file-too-large",_="file-too-small",F="too-many-files",M=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:j,message:"File type must be ".concat(t)}},z=function(e){return{code:S,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},I=function(e){return{code:_,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},H={code:F,message:"Too many files"};function Y(e,t){var n="application/x-moz-file"===e.type||(0,D.A)(e,t);return[n,n?null:M(t)]}function K(e,t,n){if(L(e.size))if(L(t)&&L(n)){if(e.size>n)return[!1,z(n)];if(e.size<t)return[!1,I(t)]}else{if(L(t)&&e.size<t)return[!1,I(t)];if(L(n)&&e.size>n)return[!1,z(n)]}return[!0,null]}function L(e){return null!=e}function T(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function $(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function B(e){e.preventDefault()}function X(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return!T(e)&&t&&t.apply(void 0,[e].concat(r)),T(e)}))}}function N(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)}function U(e){return/^.*\.[\w]+$/.test(e)}var W=["children"],q=["open"],G=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],V=["refKey","onChange","onClick"];function J(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Z(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(e,t)||Z(e,t)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z(e,t){if(e){if("string"==typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?te(Object(n),!0).forEach((function(t){re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var oe=(0,r.forwardRef)((function(e,t){var n=e.children,i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ne(ne({},ae),e),n=t.accept,i=t.disabled,o=t.getFilesFromEvent,a=t.maxSize,c=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,h=t.onDragLeave,d=t.onDragOver,p=t.onDrop,f=t.onDropAccepted,g=t.onDropRejected,m=t.onFileDialogCancel,w=t.onFileDialogOpen,y=t.useFsAccessApi,v=t.autoFocus,b=t.preventDropOnDocument,x=t.noClick,D=t.noKeyboard,O=t.noDrag,R=t.noDragEventsBubbling,P=t.onError,j=t.validator,S=(0,r.useMemo)((function(){return function(e){if(L(e))return Object.entries(e).reduce((function(e,t){var n=k(t,2),r=n[0],i=n[1];return[].concat(C(e),[r],C(i))}),[]).filter((function(e){return N(e)||U(e)})).join(",")}(n)}),[n]),_=(0,r.useMemo)((function(){return function(e){return L(e)?[{description:"Files",accept:Object.entries(e).filter((function(e){var t=k(e,2),n=t[0],r=t[1],i=!0;return N(n)||(i=!1),Array.isArray(r)&&r.every(U)||(i=!1),i})).reduce((function(e,t){var n=k(t,2),r=n[0],i=n[1];return A(A({},e),{},E({},r,i))}),{})}]:e}(n)}),[n]),F=(0,r.useMemo)((function(){return"function"==typeof w?w:ue}),[w]),M=(0,r.useMemo)((function(){return"function"==typeof m?m:ue}),[m]),z=(0,r.useRef)(null),I=(0,r.useRef)(null),W=Q((0,r.useReducer)(le,se),2),q=W[0],Z=W[1],ee=q.isFocused,te=q.isFileDialogActive,oe=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),ce=function(){!oe.current&&te&&setTimeout((function(){I.current&&(I.current.files.length||(Z({type:"closeDialog"}),M()))}),300)};(0,r.useEffect)((function(){return window.addEventListener("focus",ce,!1),function(){window.removeEventListener("focus",ce,!1)}}),[I,te,M,oe]);var he=(0,r.useRef)([]),de=function(e){z.current&&z.current.contains(e.target)||(e.preventDefault(),he.current=[])};(0,r.useEffect)((function(){return b&&(document.addEventListener("dragover",B,!1),document.addEventListener("drop",de,!1)),function(){b&&(document.removeEventListener("dragover",B),document.removeEventListener("drop",de))}}),[z,b]),(0,r.useEffect)((function(){return!i&&v&&z.current&&z.current.focus(),function(){}}),[z,v,i]);var pe=(0,r.useCallback)((function(e){P&&P(e)}),[P]),fe=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),ke(e),he.current=[].concat(J(he.current),[e.target]),$(e)&&Promise.resolve(o(e)).then((function(t){if(!T(e)||R){var n=t.length,r=n>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,c=e.validator;return!(!o&&t.length>1||o&&a>=1&&t.length>a)&&t.every((function(e){var t=k(Y(e,n),1)[0],o=k(K(e,r,i),1)[0],a=c?c(e):null;return t&&o&&!a}
1))}({files:t,accept:S,minSize:c,maxSize:a,multiple:s,maxFiles:l,validator:j});Z({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}})).catch((function(e){return pe(e)}))}),[o,u,pe,R,S,c,a,s,l,j]),ge=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),ke(e);var t=$(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,R]),me=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),ke(e);var t=he.current.filter((function(e){return z.current&&z.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),he.current=t,t.length>0||(Z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),$(e)&&h&&h(e))}),[z,h,R]),we=(0,r.useCallback)((function(e,t){var n=[],r=[];e.forEach((function(e){var t=Q(Y(e,S),2),i=t[0],o=t[1],s=Q(K(e,c,a),2),l=s[0],u=s[1],h=j?j(e):null;if(i&&l&&!h)n.push(e);else{var d=[o,u];h&&(d=d.concat(h)),r.push({file:e,errors:d.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&l>=1&&n.length>l)&&(n.forEach((function(e){r.push({file:e,errors:[H]})})),n.splice(0)),Z({acceptedFiles:n,fileRejections:r,type:"setFiles"}),p&&p(n,r,t),r.length>0&&g&&g(r,t),n.length>0&&f&&f(n,t)}),[Z,s,S,c,a,l,p,f,g,j]),ye=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),ke(e),he.current=[],$(e)&&Promise.resolve(o(e)).then((function(t){T(e)&&!R||we(t,e)})).catch((function(e){return pe(e)})),Z({type:"reset"})}),[o,we,pe,R]),ve=(0,r.useCallback)((function(){if(oe.current){Z({type:"openDialog"}),F();var e={multiple:s,types:_};window.showOpenFilePicker(e).then((function(e){return o(e)})).then((function(e){we(e,null),Z({type:"closeDialog"})})).catch((function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(M(e),Z({type:"closeDialog"})):!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?pe(e):(oe.current=!1,I.current?(I.current.value=null,I.current.click()):pe(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided.")))}))}else I.current&&(Z({type:"openDialog"}),F(),I.current.value=null,I.current.click())}),[Z,F,M,y,we,pe,_,s]),be=(0,r.useCallback)((function(e){z.current&&z.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),ve()))}),[z,ve]),xe=(0,r.useCallback)((function(){Z({type:"focus"})}),[]),De=(0,r.useCallback)((function(){Z({type:"blur"})}),[]),Ce=(0,r.useCallback)((function(){x||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?ve():setTimeout(ve,0))}),[x,ve]),Oe=function(e){return i?null:e},Ae=function(e){return D?null:Oe(e)},Ee=function(e){return O?null:Oe(e)},ke=function(e){R&&e.stopPropagation()},Re=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,o=e.onKeyDown,a=e.onFocus,c=e.onBlur,s=e.onClick,l=e.onDragEnter,u=e.onDragOver,h=e.onDragLeave,d=e.onDrop,p=ie(e,G);return ne(ne(re({onKeyDown:Ae(X(o,be)),onFocus:Ae(X(a,xe)),onBlur:Ae(X(c,De)),onClick:Oe(X(s,Ce)),onDragEnter:Ee(X(l,fe)),onDragOver:Ee(X(u,ge)),onDragLeave:Ee(X(h,me)),onDrop:Ee(X(d,ye)),role:"string"==typeof r&&""!==r?r:"presentation"},n,z),i||D?{}:{tabIndex:0}),p)}}),[z,be,xe,De,Ce,fe,ge,me,ye,D,O,i]),Pe=(0,r.useCallback)((function(e){e.stopPropagation()}),[]),je=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onChange,i=e.onClick,o=ie(e,V);return ne(ne({},re({accept:S,multiple:s,type:"file",style:{display:"none"},onChange:Oe(X(r,ye)),onClick:Oe(X(i,Pe)),tabIndex:-1},n,I)),o)}}),[I,n,s,ye,i]);return ne(ne({},q),{},{isFocused:ee&&!i,getRootProps:Re,getInputProps:je,rootRef:z,inputRef:I,open:Oe(ve)})}(ie(e,W)),o=i.open,a=ie(i,q);return(0,r.useImperativeHandle)(t,(function(){return{open:o}}),[o]),r.createElement(r.Fragment,null,n(ne(ne({},a),{},{open:o})))}));oe.displayName="Dropzone";var ae={disabled:!1,getFilesFromEvent:function(e){return(0,a.sH)(this,void 0,void 0,(function(){return(0,a.YH)(this,(function(t){return u(e)&&u(e.dataTransfer)?[2,p(e.dataTransfer,e.type)]:function(e){return u(e)&&u(e.target)}(e)?[2,h(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"==typeof e.getFile}))?[2,d(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};oe.defaultProps=ae,oe.propTypes={children:o().func,accept:o().objectOf(o().arrayOf(o().string)),multiple:o().bool,preventDropOnDocument:o().bool,noClick:o().bool,noKeyboard:o().bool,noDrag:o().bool,noDragEventsBubbling:o().bool,minSize:o().number,maxSize:o().number,maxFiles:o().number,disabled:o().bool,getFilesFromEvent:o().func,onFileDialogCancel:o().func,onFileDialogOpen:o().func,useFsAccessApi:o().bool,autoFocus:o().bool,onDragEnter:o().func,onDragLeave:o().func,onDragOver:o().func,onDrop:o().func,onDropAccepted:o().func,onDropRejected:o().func,onError:o().func,validator:o().func};const ce=oe;var se={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function le(e,t){switch(t.type){case"focus":return ne(ne({},e),{},{isFocused:!0});case"blur":return ne(ne({},e),{},{isFocused:!1});case"openDialog":return ne(ne({},se),{},{isFileDialogActive:!0});case"closeDialog":return ne(ne({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ne(ne({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ne(ne({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ne({},se);default:return e}}function ue(){}},567:e=>{"use strict";var t=function(){};e.exports=t},1307:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>g,dS:()=>c,ge:()=>s});var r=n(3696);const i={x:0,y:0,width:0,height:0,unit:"px"},o=(e,t,n)=>Math.min(Math.max(e,t),n),a=(e,t)=>e===t||e.width===t.width&&e.height===t.height&&e.x===t.x&&e.y===t.y&&e.unit===t.unit;function c(e,t,n,r){const i=u(e,n,r);return e.width&&(i.height=i.width/t),e.height&&(i.width=i.height*t),i.y+i.height>r&&(i.height=r-i.y,i.width=i.height*t),i.x+i.width>n&&(i.width=n-i.x,i.height=i.width/t),"%"===e.unit?l(i,n,r):i}function s(e,t,n){const r=u(e,t,n);return r.x=(t-r.width)/2,r.y=(n-r.height)/2,"%"===e.unit?l(r,t,n):r}function l(e,t,n){return"%"===e.unit?{...i,...e,unit:"%"}:{unit:"%",x:e.x?e.x/t*100:0,y:e.y?e.y/n*100:0,width:e.width?e.width/t*100:0,height:e.height?e.height/n*100:0}}function u(e,t,n){return e.unit?"px"===e.unit?{...i,...e,unit:"px"}:{unit:"px",x:e.x?e.x*t/100:0,y:e.y?e.y*n/100:0,width:e.width?e.width*t/100:0,height:e.height?e.height*n/100:0}:{...i,...e,unit:"px"}}function h(e,t,n,r,i,o=0,a=0,c=r,s=i){const l={...e};let u=Math.min(o,r),h=Math.min(a,i),d=Math.min(c,r),p=Math.min(s,i);t&&(t>1?(u=a?a*t:u,h=u/t,d=c*t):(h=o?o/t:h,u=h*t,p=s/t)),l.y<0&&(l.height=Math.max(l.height+l.y,h),l.y=0),l.x<0&&(l.width=Math.max(l.width+l.x,u),l.x=0);const f=r-(l.x+l.width);f<0&&(l.x=Math.min(l.x,r-u),l.width+=f);const g=i-(l.y+l.height);
1if(g<0&&(l.y=Math.min(l.y,i-h),l.height+=g),l.width<u&&(("sw"===n||"nw"==n)&&(l.x-=u-l.width),l.width=u),l.height<h&&(("nw"===n||"ne"==n)&&(l.y-=h-l.height),l.height=h),l.width>d&&(("sw"===n||"nw"==n)&&(l.x-=d-l.width),l.width=d),l.height>p&&(("nw"===n||"ne"==n)&&(l.y-=p-l.height),l.height=p),t){const e=l.width/l.height;if(e<t){const e=Math.max(l.width/t,h);("nw"===n||"ne"==n)&&(l.y-=e-l.height),l.height=e}else if(e>t){const e=Math.max(l.height*t,u);("sw"===n||"nw"==n)&&(l.x-=e-l.width),l.width=e}}return l}const d={capture:!0,passive:!1};let p=0;const f=class e extends r.PureComponent{constructor(){super(...arguments),this.docMoveBound=!1,this.mouseDownOnCrop=!1,this.dragStarted=!1,this.evData={startClientX:0,startClientY:0,startCropX:0,startCropY:0,clientX:0,clientY:0,isResize:!0},this.componentRef=(0,r.createRef)(),this.mediaRef=(0,r.createRef)(),this.initChangeCalled=!1,this.instanceId="rc-"+p++,this.state={cropIsActive:!1,newCropIsBeingDrawn:!1},this.onCropPointerDown=e=>{const{crop:t,disabled:n}=this.props,r=this.getBox();if(!t)return;const i=u(t,r.width,r.height);if(n)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const o=e.target.dataset.ord,a=!!o;let c=e.clientX,s=e.clientY,l=i.x,h=i.y;if(o){const t=e.clientX-r.x,n=e.clientY-r.y;let a=0,u=0;"ne"===o||"e"==o?(a=t-(i.x+i.width),u=n-i.y,l=i.x,h=i.y+i.height):"se"===o||"s"===o?(a=t-(i.x+i.width),u=n-(i.y+i.height),l=i.x,h=i.y):"sw"===o||"w"==o?(a=t-i.x,u=n-(i.y+i.height),l=i.x+i.width,h=i.y):("nw"===o||"n"==o)&&(a=t-i.x,u=n-i.y,l=i.x+i.width,h=i.y+i.height),c=l+r.x+a,s=h+r.y+u}this.evData={startClientX:c,startClientY:s,startCropX:l,startCropY:h,clientX:e.clientX,clientY:e.clientY,isResize:a,ord:o},this.mouseDownOnCrop=!0,this.setState({cropIsActive:!0})},this.onComponentPointerDown=e=>{const{crop:t,disabled:n,locked:r,keepSelection:i,onChange:o}=this.props,a=this.getBox();if(n||r||i&&t)return;e.cancelable&&e.preventDefault(),this.bindDocMove(),this.componentRef.current.focus({preventScroll:!0});const c=e.clientX-a.x,s=e.clientY-a.y,h={unit:"px",x:c,y:s,width:0,height:0};this.evData={startClientX:e.clientX,startClientY:e.clientY,startCropX:c,startCropY:s,clientX:e.clientX,clientY:e.clientY,isResize:!0},this.mouseDownOnCrop=!0,o(u(h,a.width,a.height),l(h,a.width,a.height)),this.setState({cropIsActive:!0,newCropIsBeingDrawn:!0})},this.onDocPointerMove=e=>{const{crop:t,disabled:n,onChange:r,onDragStart:i}=this.props,o=this.getBox();if(n||!t||!this.mouseDownOnCrop)return;e.cancelable&&e.preventDefault(),this.dragStarted||(this.dragStarted=!0,i&&i(e));const{evData:c}=this;let s;c.clientX=e.clientX,c.clientY=e.clientY,s=c.isResize?this.resizeCrop():this.dragCrop(),a(t,s)||r(u(s,o.width,o.height),l(s,o.width,o.height))},this.onComponentKeyDown=t=>{const{crop:n,disabled:r,onChange:i,onComplete:a}=this.props;if(r)return;const c=t.key;let s=!1;if(!n)return;const h=this.getBox(),d=this.makePixelCrop(h),p=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep;if("ArrowLeft"===c?(d.x-=p,s=!0):"ArrowRight"===c?(d.x+=p,s=!0):"ArrowUp"===c?(d.y-=p,s=!0):"ArrowDown"===c&&(d.y+=p,s=!0),s){t.cancelable&&t.preventDefault(),d.x=o(d.x,0,h.width-d.width),d.y=o(d.y,0,h.height-d.height);const e=u(d,h.width,h.height),n=l(d,h.width,h.height);i(e,n),a&&a(e,n)}},this.onHandlerKeyDown=(t,n)=>{const{aspect:r=0,crop:i,disabled:o,minWidth:c=0,minHeight:s=0,maxWidth:d,maxHeight:p,onChange:f,onComplete:g}=this.props,m=this.getBox();if(o||!i)return;if("ArrowUp"!==t.key&&"ArrowDown"!==t.key&&"ArrowLeft"!==t.key&&"ArrowRight"!==t.key)return;t.stopPropagation(),t.preventDefault();const w=(navigator.platform.match("Mac")?t.metaKey:t.ctrlKey)?e.nudgeStepLarge:t.shiftKey?e.nudgeStepMedium:e.nudgeStep,y=function(e,t,n,r){const i={...e};return"ArrowLeft"===t?"nw"===r?(i.x-=n,i.y-=n,i.width+=n,i.height+=n):"w"===r?(i.x-=n,i.width+=n):"sw"===r?(i.x-=n,i.width+=n,i.height+=n):"ne"===r?(i.y+=n,i.width-=n,i.height-=n):"e"===r?i.width-=n:"se"===r&&(i.width-=n,i.height-=n):"ArrowRight"===t&&("nw"===r?(i.x+=n,i.y+=n,i.width-=n,i.height-=n):"w"===r?(i.x+=n,i.width-=n):"sw"===r?(i.x+=n,i.width-=n,i.height-=n):"ne"===r?(i.y-=n,i.width+=n,i.height+=n):"e"===r?i.width+=n:"se"===r&&(i.width+=n,i.height+=n)),"ArrowUp"===t?"nw"===r?(i.x-=n,i.y-=n,i.width+=n,i.height+=n):"n"===r?(i.y-=n,i.height+=n):"ne"===r?(i.y-=n,i.width+=n,i.height+=n):"sw"===r?(i.x+=n,i.width-=n,i.height-=n):"s"===r?i.height-=n:"se"===r&&(i.width-=n,i.height-=n):"ArrowDown"===t&&("nw"===r?(i.x+=n,i.y+=n,i.width-=n,i.height-=n):"n"===r?(i.y+=n,i.height-=n):"ne"===r?(i.y+=n,i.width-=n,i.height-=n):"sw"===r?(i.x-=n,i.width+=n,i.height+=n):"s"===r?i.height+=n:"se"===r&&(i.width+=n,i.height+=n)),i}(u(i,m.width,m.height),t.key,w,n),v=h(y,r,n,m.width,m.height,c,s,d,p);if(!a(i,v)){const e=l(v,m.width,m.height);f(v,e),g&&g(v,e)}},this.onDocPointerDone=e=>{const{crop:t,disabled:n,onComplete:r,onDragEnd:i}=this.props,o=this.getBox();this.unbindDocMove(),!n&&t&&this.mouseDownOnCrop&&(this.mouseDownOnCrop=!1,this.dragStarted=!1,i&&i(e),r&&r(u(t,o.width,o.height),l(t,o.width,o.height)),this.setState({cropIsActive:!1,newCropIsBeingDrawn:!1}))},this.onDragFocus=()=>{var e;null==(e=this.componentRef.current)||e.scrollTo(0,0)}}get document(){return document}getBox(){const e=this.mediaRef.current;if(!e)return{x:0,y:0,width:0,height:0};const{x:t,y:n,width:r,height:i}=e.getBoundingClientRect();return{x:t,y:n,width:r,height:i}}componentDidUpdate(e){const{crop:t,onComplete:n}=this.props;if(n&&!e.crop&&t){const{width:e,height:r}=this.getBox();e&&r&&n(u(t,e,r),l(t,e,r))}}componentWillUnmount(){this.resizeObserver&&this.resizeObserver.disconnect()}bindDocMove(){this.docMoveBound||(this.document.addEventListener("pointermove",this.onDocPointerMove,d),this.document.addEventListener("pointerup",this.onDocPointerDone,d),this.document.addEventListener("pointercancel",this.onDocPointerDone,d),this.docMoveBound=!0)}
1unbindDocMove(){this.docMoveBound&&(this.document.removeEventListener("pointermove",this.onDocPointerMove,d),this.document.removeEventListener("pointerup",this.onDocPointerDone,d),this.document.removeEventListener("pointercancel",this.onDocPointerDone,d),this.docMoveBound=!1)}getCropStyle(){const{crop:e}=this.props;if(e)return{top:`${e.y}${e.unit}`,left:`${e.x}${e.unit}`,width:`${e.width}${e.unit}`,height:`${e.height}${e.unit}`}}dragCrop(){const{evData:e}=this,t=this.getBox(),n=this.makePixelCrop(t),r=e.clientX-e.startClientX,i=e.clientY-e.startClientY;return n.x=o(e.startCropX+r,0,t.width-n.width),n.y=o(e.startCropY+i,0,t.height-n.height),n}getPointRegion(e,t,n,r){const{evData:i}=this,o=i.clientX-e.x,a=i.clientY-e.y;let c,s;return c=r&&t?"nw"===t||"n"===t||"ne"===t:a<i.startCropY,s=n&&t?"nw"===t||"w"===t||"sw"===t:o<i.startCropX,s?c?"nw":"sw":c?"ne":"se"}resolveMinDimensions(e,t,n=0,r=0){const i=Math.min(n,e.width),o=Math.min(r,e.height);return t&&(i||o)?t>1?i?[i,i/t]:[o*t,o]:o?[o*t,o]:[i,i/t]:[i,o]}resizeCrop(){const{evData:t}=this,{aspect:n=0,maxWidth:r,maxHeight:i}=this.props,a=this.getBox(),[c,s]=this.resolveMinDimensions(a,n,this.props.minWidth,this.props.minHeight);let l=this.makePixelCrop(a);const u=this.getPointRegion(a,t.ord,c,s),d=t.ord||u;let p=t.clientX-t.startClientX,f=t.clientY-t.startClientY;(c&&"nw"===d||"w"===d||"sw"===d)&&(p=Math.min(p,-c)),(s&&"nw"===d||"n"===d||"ne"===d)&&(f=Math.min(f,-s));const g={unit:"px",x:0,y:0,width:0,height:0};"ne"===u?(g.x=t.startCropX,g.width=p,n?(g.height=g.width/n,g.y=t.startCropY-g.height):(g.height=Math.abs(f),g.y=t.startCropY-g.height)):"se"===u?(g.x=t.startCropX,g.y=t.startCropY,g.width=p,g.height=n?g.width/n:f):"sw"===u?(g.x=t.startCropX+p,g.y=t.startCropY,g.width=Math.abs(p),g.height=n?g.width/n:f):"nw"===u&&(g.x=t.startCropX+p,g.width=Math.abs(p),n?(g.height=g.width/n,g.y=t.startCropY-g.height):(g.height=Math.abs(f),g.y=t.startCropY+f));const m=h(g,n,u,a.width,a.height,c,s,r,i);return n||e.xyOrds.indexOf(d)>-1?l=m:e.xOrds.indexOf(d)>-1?(l.x=m.x,l.width=m.width):e.yOrds.indexOf(d)>-1&&(l.y=m.y,l.height=m.height),l.x=o(l.x,0,a.width-l.width),l.y=o(l.y,0,a.height-l.height),l}renderCropSelection(){const{ariaLabels:t=e.defaultProps.ariaLabels,disabled:n,locked:i,renderSelectionAddon:o,ruleOfThirds:a,crop:c}=this.props,s=this.getCropStyle();if(c)return r.createElement("div",{style:s,className:"ReactCrop__crop-selection",onPointerDown:this.onCropPointerDown,"aria-label":t.cropArea,tabIndex:0,onKeyDown:this.onComponentKeyDown,role:"group"},!n&&!i&&r.createElement("div",{className:"ReactCrop__drag-elements",onFocus:this.onDragFocus},r.createElement("div",{className:"ReactCrop__drag-bar ord-n","data-ord":"n"}),r.createElement("div",{className:"ReactCrop__drag-bar ord-e","data-ord":"e"}),r.createElement("div",{className:"ReactCrop__drag-bar ord-s","data-ord":"s"}),r.createElement("div",{className:"ReactCrop__drag-bar ord-w","data-ord":"w"}),r.createElement("div",{className:"ReactCrop__drag-handle ord-nw","data-ord":"nw",tabIndex:0,"aria-label":t.nwDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"nw"),role:"button"}),r.createElement("div",{className:"ReactCrop__drag-handle ord-n","data-ord":"n",tabIndex:0,"aria-label":t.nDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"n"),role:"button"}),r.createElement("div",{className:"ReactCrop__drag-handle ord-ne","data-ord":"ne",tabIndex:0,"aria-label":t.neDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"ne"),role:"button"}),r.createElement("div",{className:"ReactCrop__drag-handle ord-e","data-ord":"e",tabIndex:0,"aria-label":t.eDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"e"),role:"button"}),r.createElement("div",{className:"ReactCrop__drag-handle ord-se","data-ord":"se",tabIndex:0,"aria-label":t.seDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"se"),role:"button"}),r.createElement("div",{className:"ReactCrop__drag-handle ord-s","data-ord":"s",tabIndex:0,"aria-label":t.sDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"s"),role:"button"}),r.createElement("div",{className:"ReactCrop__drag-handle ord-sw","data-ord":"sw",tabIndex:0,"aria-label":t.swDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"sw"),role:"button"}),r.createElement("div",{className:"ReactCrop__drag-handle ord-w","data-ord":"w",tabIndex:0,"aria-label":t.wDragHandle,onKeyDown:e=>this.onHandlerKeyDown(e,"w"),role:"button"})),o&&r.createElement("div",{className:"ReactCrop__selection-addon",onPointerDown:e=>e.stopPropagation()},o(this.state)),a&&r.createElement(r.Fragment,null,r.createElement("div",{className:"ReactCrop__rule-of-thirds-hz"}),r.createElement("div",{className:"ReactCrop__rule-of-thirds-vt"})))}makePixelCrop(e){return u({...i,...this.props.crop||{}},e.width,e.height)}render(){const{aspect:e,children:t,circularCrop:n,className:i,crop:o,disabled:a,locked:c,style:s,ruleOfThirds:l}=this.props,{cropIsActive:u,newCropIsBeingDrawn:h}=this.state,d=o?this.renderCropSelection():null,p=((...e)=>e.filter((e=>e&&"string"==typeof e)).join(" "))("ReactCrop",i,u&&"ReactCrop--active",a&&"ReactCrop--disabled",c&&"ReactCrop--locked",h&&"ReactCrop--new-crop",o&&e&&"ReactCrop--fixed-aspect",o&&n&&"ReactCrop--circular-crop",o&&l&&"ReactCrop--rule-of-thirds",!this.dragStarted&&o&&!o.width&&!o.height&&"ReactCrop--invisible-crop",n&&"ReactCrop--no-animate");return r.createElement("div",{ref:this.componentRef,className:p,style:s},r.createElement("div",{ref:this.mediaRef,className:"ReactCrop__child-wrapper",onPointerDown:this.onComponentPointerDown},t),o?r.createElement("svg",{className:"ReactCrop__crop-mask",width:"100%",height:"100%"},r.createElement("defs",null,r.createElement("mask",{id:`hole-${this.instanceId}`},r.createElement("rect",{width:"100%",height:"100%",fill:"white"}),n?r.createElement("ellipse",{cx:`${o.x+o.width/2}${o.unit}`,cy:`${o.y+o.height/2}${o.unit}`,rx:`${o.width/2}${o.unit}`,ry:`${o.height/2}${o.unit}`,fill:"black"}):r.createElement("rect",{x:`${o.x}${o.unit}`,y:`${o.y}${o.unit}`,width:`${o.width}${o.unit}`,height:`${o.height}${o.unit}`,fill:"black"}))),r.createElement("rect",{fill:"black",fillOpacity:.5,width:"100%",height:"100%",mask:`url(#hole-${this.instanceId})`})):void 0,d)}};f.xOrds=["e","w"],f.yOrds=["n","s"],f.xyOrds=["nw","ne","se","sw"],f.nudgeStep=1,f.nudgeStepMedium=10,f.nudgeStepLarge=100,f.defaultProps={ariaLabels:{cropArea:"Use the arrow keys to move the crop selection area",nwDragHandle:"Use the arrow keys to move the north west drag handle to change the crop selection area",nDragHandle:"Use the up and down arrow keys to move the north drag handle to change the crop selection area",neDragHandle:"Use the arrow keys to move the north east drag handle to change the crop selection area",eDragHandle:"Use the up and down arrow keys to move the east drag handle to change the crop selection area",seDragHandle:"Use the arrow keys to move the south east drag handle to change the crop selection area",sDragHandle:"Use the up and down arrow keys to move the south drag handle to change the crop selection area",swDragHandle:"Use the arrow keys to move the south west drag handle to change the crop selection area",wDragHandle:"Use the up and down arrow keys to move the west drag handle to change the crop selection area"}};let g=f}}]);
2//# sourceMappingURL=vendors-node_modules_react-dropzone_dist_es_index_js-node_modules_warning_warning_js-node_mod-623bb1.9d74abcf.0ef15b04.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.