@daoyi/nmtl-ui 1.1.23 → 1.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/Autocomplete.js +1 -1
- package/lib/components/Avatar.js +1 -1
- package/lib/components/BackTop.js +1 -1
- package/lib/components/Backdrop-3c472376.js +1 -0
- package/lib/components/Button-6271d361.js +1 -0
- package/lib/components/Button.js +1 -1
- package/lib/components/ButtonBase-cfca0fe1.js +1 -0
- package/lib/components/Carousel.js +1 -1
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CircularProgress-537ad812.js +1 -0
- package/lib/components/ContactModal.js +3 -0
- package/lib/components/DialogTitle-e0e78621.js +1 -0
- package/lib/components/Drawer-da2ddeed.js +1 -0
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Empty.js +1 -1
- package/lib/components/Fade-4a3713bb.js +1 -0
- package/lib/components/FormControlLabel-6578b588.js +1 -0
- package/lib/components/Grow-f6a8f6bf.js +1 -0
- package/lib/components/Header.js +1 -1
- package/lib/components/IconButton-19970f38.js +1 -0
- package/lib/components/InputMethod.js +3 -3
- package/lib/components/Loading.js +1 -0
- package/lib/components/MUITheme.js +1 -1
- package/lib/components/Modal-2e8b3262.js +1 -0
- package/lib/components/Modal.js +1 -1
- package/lib/components/Paper-f4cc750c.js +1 -0
- package/lib/components/{Popper-c6919a40.js → Popper-31c1ad7c.js} +2 -2
- package/lib/components/Portal-edb523c5.js +1 -0
- package/lib/components/Radio.js +1 -1
- package/lib/components/RadioGroup-ebfc5e6d.js +1 -0
- package/lib/components/Select-3cea2ac2.js +1 -0
- package/lib/components/Select-812280cf.js +1 -0
- package/lib/components/Select.js +1 -1
- package/lib/components/Slide-ef2f2933.js +1 -0
- package/lib/components/Spin.js +1 -1
- package/lib/components/SvgIcon-ae419ec7.js +1 -0
- package/lib/components/Table.js +1 -1
- package/lib/components/TextField-62bea25d.js +1 -0
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/Typography-8814c5aa.js +1 -0
- package/lib/components/_rollupPluginBabelHelpers-9a98782c.js +1 -0
- package/lib/components/capitalize-e92d0507.js +8 -0
- package/lib/components/createSvgIcon-ba256905.js +1 -0
- package/lib/components/createSvgIcon-c92a409c.js +1 -0
- package/lib/components/debounce-65582d84.js +1 -0
- package/lib/components/{debounce-7df508de.js → debounce-a740abfa.js} +1 -1
- package/lib/components/index-767b2843.js +7 -0
- package/lib/components/isMuiElement-64ad493a.js +1 -0
- package/lib/components/isObjectLike-4a391d5d.js +1 -0
- package/lib/components/muiNotifcationReducer-75669c4f.js +15 -0
- package/lib/components/ownerDocument-e276d08d.js +1 -0
- package/lib/components/ownerWindow-19cabe15.js +1 -0
- package/lib/components/react-router-dom-6469c1df.js +1 -0
- package/lib/components/useForkRef-58783e4b.js +1 -0
- package/lib/components/utils-256c7d92.js +1 -0
- package/lib/index.d.ts +4 -1
- package/lib/index.js +4 -1
- package/lib/utils/notification.js +1 -0
- package/package.json +15 -3
- package/lib/components/Backdrop-0c72d47e.js +0 -1
- package/lib/components/ButtonBase-54fbcc3c.js +0 -1
- package/lib/components/CircularProgress-8332110b.js +0 -1
- package/lib/components/Drawer-f0659547.js +0 -1
- package/lib/components/Fade-edb8e7af.js +0 -1
- package/lib/components/FormControlLabel-b4f37c46.js +0 -1
- package/lib/components/Grow-e28280cd.js +0 -1
- package/lib/components/IconButton-f380331f.js +0 -1
- package/lib/components/Modal-03889d3e.js +0 -1
- package/lib/components/Paper-8eaa8df4.js +0 -1
- package/lib/components/Portal-1b30ccbc.js +0 -1
- package/lib/components/Select-51559a92.js +0 -1
- package/lib/components/Select-5609df88.js +0 -1
- package/lib/components/TransitionGroupContext-2cd2fcd6.js +0 -1
- package/lib/components/Typography-fe7cdaf3.js +0 -1
- package/lib/components/_commonjsHelpers-97e6d7b1.js +0 -1
- package/lib/components/_rollupPluginBabelHelpers-4234c275.js +0 -1
- package/lib/components/capitalize-017d2500.js +0 -1
- package/lib/components/createSvgIcon-3b1a21b0.js +0 -1
- package/lib/components/index-ec2d0bbb.js +0 -7
- package/lib/components/isMuiElement-3726d123.js +0 -1
- package/lib/components/isObjectLike-ec3f35a3.js +0 -1
- package/lib/components/ownerWindow-ba2c31bc.js +0 -1
- package/lib/components/utils-7954d1aa.js +0 -1
- package/lib/components/withStyles-43125883.js +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"react";import{a as r}from"./index-767b2843.js";import a from"prop-types";import{s}from"./style-inject.es-1f59c1d0.js";import{C as t}from"./CircularProgress-537ad812.js";import"./capitalize-e92d0507.js";import"react-is";s(".loadingPage {\n padding: 4rem 0;\n color: #0087dc;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center; }\n");var i=function(a){var s=a.className;return e.createElement("div",{className:r("loadingPage",s)},e.createElement(t,{size:80}))};i.defaultProps={className:void 0},i.propTypes={className:a.string};export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as t from"react";import r from"react";import e from"prop-types";import{i as n,_ as o,a,b as i,c as u}from"./isObjectLike-ec3f35a3.js";import{c}from"./_commonjsHelpers-97e6d7b1.js";import{u as s,n as f,T as l,_ as p,g as d,w as v,c as h}from"./withStyles-43125883.js";import"react-is";var y=function(){this.__data__=[],this.size=0};var b=function(t,r){return t===r||t!=t&&r!=r};var _=function(t,r){for(var e=t.length;e--;)if(b(t[e][0],r))return e;return-1},g=Array.prototype.splice;var m=function(t){var r=this.__data__,e=_(r,t);return!(e<0)&&(e==r.length-1?r.pop():g.call(r,e,1),--this.size,!0)};var j=function(t){var r=this.__data__,e=_(r,t);return e<0?void 0:r[e][1]};var O=function(t){return _(this.__data__,t)>-1};var w=function(t,r){var e=this.__data__,n=_(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};function M(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}M.prototype.clear=y,M.prototype.delete=m,M.prototype.get=j,M.prototype.has=O,M.prototype.set=w;var x=M;var A=function(){this.__data__=new x,this.size=0};var z=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e};var k=function(t){return this.__data__.get(t)};var S=function(t){return this.__data__.has(t)};var P,T=function(t){if(!n(t))return!1;var r=o(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},C=a["__core-js_shared__"],F=(P=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"";var E=function(t){return!!F&&F in t},B=Function.prototype.toString;var I=function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""},R=/^\[object .+?Constructor\]$/,$=Function.prototype,U=Object.prototype,D=$.toString,W=U.hasOwnProperty,L=RegExp("^"+D.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var q=function(t){return!(!n(t)||E(t))&&(T(t)?L:R).test(I(t))};var H=function(t,r){return null==t?void 0:t[r]};var G=function(t,r){var e=H(t,r);return q(e)?e:void 0},N=G(a,"Map"),Q=G(Object,"create");var V=function(){this.__data__=Q?Q(null):{},this.size=0};var J=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},K=Object.prototype.hasOwnProperty;var X=function(t){var r=this.__data__;if(Q){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return K.call(r,t)?r[t]:void 0},Y=Object.prototype.hasOwnProperty;var Z=function(t){var r=this.__data__;return Q?void 0!==r[t]:Y.call(r,t)};var tt=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=Q&&void 0===r?"__lodash_hash_undefined__":r,this};function rt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}rt.prototype.clear=V,rt.prototype.delete=J,rt.prototype.get=X,rt.prototype.has=Z,rt.prototype.set=tt;var et=rt;var nt=function(){this.size=0,this.__data__={hash:new et,map:new(N||x),string:new et}};var ot=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var at=function(t,r){var e=t.__data__;return ot(r)?e["string"==typeof r?"string":"hash"]:e.map};var it=function(t){var r=at(this,t).delete(t);return this.size-=r?1:0,r};var ut=function(t){return at(this,t).get(t)};var ct=function(t){return at(this,t).has(t)};var st=function(t,r){var e=at(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function ft(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}ft.prototype.clear=nt,ft.prototype.delete=it,ft.prototype.get=ut,ft.prototype.has=ct,ft.prototype.set=st;var lt=ft;var pt=function(t,r){var e=this.__data__;if(e instanceof x){var n=e.__data__;if(!N||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new lt(n)}return e.set(t,r),this.size=e.size,this};function dt(t){var r=this.__data__=new x(t);this.size=r.size}dt.prototype.clear=A,dt.prototype.delete=z,dt.prototype.get=k,dt.prototype.has=S,dt.prototype.set=pt;var vt=dt,ht=function(){try{var t=G(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var yt=function(t,r,e){"__proto__"==r&&ht?ht(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e};var bt=function(t,r,e){(void 0!==e&&!b(t[r],e)||void 0===e&&!(r in t))&&yt(t,r,e)};var _t=function(t){return function(r,e,n){for(var o=-1,a=Object(r),i=n(r),u=i.length;u--;){var c=i[t?u:++o];if(!1===e(a[c],c,a))break}return r}}(),gt=c((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?a.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,r){if(r)return t.slice();var e=t.length,n=i?i(e):new t.constructor(e);return t.copy(n),n}})),mt=a.Uint8Array;var jt=function(t){var r=new t.constructor(t.byteLength);return new mt(r).set(new mt(t)),r};var Ot=function(t,r){var e=r?jt(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)};var wt=function(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r},Mt=Object.create,xt=function(){function t(){}return function(r){if(!n(r))return{};if(Mt)return Mt(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();var At=function(t,r){return function(e){return t(r(e))}}(Object.getPrototypeOf,Object),zt=Object.prototype;var kt=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||zt)};var St=function(t){return"function"!=typeof t.constructor||kt(t)?{}:xt(At(t))};var Pt=function(t){return i(t)&&"[object Arguments]"==o(t)},Tt=Object.prototype,Ct=Tt.hasOwnProperty,Ft=Tt.propertyIsEnumerable,Et=Pt(function(){return arguments}())?Pt:function(t){return i(t)&&Ct.call(t,"callee")&&!Ft.call(t,"callee")},Bt=Array.isArray;var It=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Rt=function(t){return null!=t&&It(t.length)&&!T(t)};var $t=function(t){return i(t)&&Rt(t)};var Ut=function(){return!1},Dt=c((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e?a.Buffer:void 0,i=(o?o.isBuffer:void 0)||Ut;t.exports=i})),Wt=Function.prototype,Lt=Object.prototype,qt=Wt.toString,Ht=Lt.hasOwnProperty,Gt=qt.call(Object);var Nt=function(t){if(!i(t)||"[object Object]"!=o(t))return!1;var r=At(t);if(null===r)return!0;var e=Ht.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&qt.call(e)==Gt},Qt={};Qt["[object Float32Array]"]=Qt["[object Float64Array]"]=Qt["[object Int8Array]"]=Qt["[object Int16Array]"]=Qt["[object Int32Array]"]=Qt["[object Uint8Array]"]=Qt["[object Uint8ClampedArray]"]=Qt["[object Uint16Array]"]=Qt["[object Uint32Array]"]=!0,Qt["[object Arguments]"]=Qt["[object Array]"]=Qt["[object ArrayBuffer]"]=Qt["[object Boolean]"]=Qt["[object DataView]"]=Qt["[object Date]"]=Qt["[object Error]"]=Qt["[object Function]"]=Qt["[object Map]"]=Qt["[object Number]"]=Qt["[object Object]"]=Qt["[object RegExp]"]=Qt["[object Set]"]=Qt["[object String]"]=Qt["[object WeakMap]"]=!1;var Vt=function(t){return i(t)&&It(t.length)&&!!Qt[o(t)]};var Jt=function(t){return function(r){return t(r)}},Kt=c((function(t,r){var e=r&&!r.nodeType&&r,n=e&&t&&!t.nodeType&&t,o=n&&n.exports===e&&u.process,a=function(){try{var t=n&&n.require&&n.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a})),Xt=Kt&&Kt.isTypedArray,Yt=Xt?Jt(Xt):Vt;var Zt=function(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]},tr=Object.prototype.hasOwnProperty;var rr=function(t,r,e){var n=t[r];tr.call(t,r)&&b(n,e)&&(void 0!==e||r in t)||yt(t,r,e)};var er=function(t,r,e,n){var o=!e;e||(e={});for(var a=-1,i=r.length;++a<i;){var u=r[a],c=n?n(e[u],t[u],u,e,t):void 0;void 0===c&&(c=t[u]),o?yt(e,u,c):rr(e,u,c)}return e};var nr=function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n},or=/^(?:0|[1-9]\d*)$/;var ar=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&or.test(t))&&t>-1&&t%1==0&&t<r},ir=Object.prototype.hasOwnProperty;var ur=function(t,r){var e=Bt(t),n=!e&&Et(t),o=!e&&!n&&Dt(t),a=!e&&!n&&!o&&Yt(t),i=e||n||o||a,u=i?nr(t.length,String):[],c=u.length;for(var s in t)!r&&!ir.call(t,s)||i&&("length"==s||o&&("offset"==s||"parent"==s)||a&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ar(s,c))||u.push(s);return u};var cr=function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r},sr=Object.prototype.hasOwnProperty;var fr=function(t){if(!n(t))return cr(t);var r=kt(t),e=[];for(var o in t)("constructor"!=o||!r&&sr.call(t,o))&&e.push(o);return e};var lr=function(t){return Rt(t)?ur(t,!0):fr(t)};var pr=function(t){return er(t,lr(t))};var dr=function(t,r,e,o,a,i,u){var c=Zt(t,e),s=Zt(r,e),f=u.get(s);if(f)bt(t,e,f);else{var l=i?i(c,s,e+"",t,r,u):void 0,p=void 0===l;if(p){var d=Bt(s),v=!d&&Dt(s),h=!d&&!v&&Yt(s);l=s,d||v||h?Bt(c)?l=c:$t(c)?l=wt(c):v?(p=!1,l=gt(s,!0)):h?(p=!1,l=Ot(s,!0)):l=[]:Nt(s)||Et(s)?(l=c,Et(c)?l=pr(c):n(c)&&!T(c)||(l=St(s))):p=!1}p&&(u.set(s,l),a(l,s,o,i,u),u.delete(s)),bt(t,e,l)}};var vr=function t(r,e,o,a,i){r!==e&&_t(e,(function(u,c){if(i||(i=new vt),n(u))dr(r,e,c,o,t,a,i);else{var s=a?a(Zt(r,c),u,c+"",r,e,i):void 0;void 0===s&&(s=u),bt(r,c,s)}}),lr)};var hr=function(t){return t};var yr=function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)},br=Math.max;var _r=function(t,r,e){return r=br(void 0===r?t.length-1:r,0),function(){for(var n=arguments,o=-1,a=br(n.length-r,0),i=Array(a);++o<a;)i[o]=n[r+o];o=-1;for(var u=Array(r+1);++o<r;)u[o]=n[o];return u[r]=e(i),yr(t,this,u)}};var gr=function(t){return function(){return t}},mr=ht?function(t,r){return ht(t,"toString",{configurable:!0,enumerable:!1,value:gr(r),writable:!0})}:hr,jr=Date.now;var Or=function(t){var r=0,e=0;return function(){var n=jr(),o=16-(n-e);if(e=n,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}(mr);var wr=function(t,r){return Or(_r(t,r,hr),t+"")};var Mr=function(t,r,e){if(!n(e))return!1;var o=typeof r;return!!("number"==o?Rt(e)&&ar(r,e.length):"string"==o&&r in e)&&b(e[r],t)};var xr=function(t){return wr((function(r,e){var n=-1,o=e.length,a=o>1?e[o-1]:void 0,i=o>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,i&&Mr(e[0],e[1],i)&&(a=o<3?void 0:a,o=1),r=Object(r);++n<o;){var u=e[n];u&&t(r,u,n,a)}return r}))}((function(t,r,e){vr(t,r,e)}));function Ar(t){var e=t.children,n=t.theme,o=s(),a=r.useMemo((function(){var t=null===o?n:function(t,r){return"function"==typeof r?r(t):p({},t,r)}(o,n);return null!=t&&(t[f]=null!==o),t}),[n,o]);return r.createElement(l.Provider,{value:a},e)}function zr(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=s(),o=d({theme:n,name:"MuiUseMediaQuery",props:{}}),a="function"==typeof r?r(n):r;a=a.replace(/^@media( ?)/m,"");var i="undefined"!=typeof window&&void 0!==window.matchMedia,u=p({},o,e),c=u.defaultMatches,f=void 0!==c&&c,l=u.matchMedia,v=void 0===l?i?window.matchMedia:null:l,h=u.noSsr,y=void 0!==h&&h,b=u.ssrMatchMedia,_=void 0===b?null:b,g=t.useState((function(){return y&&i?v(a).matches:_?_(a).matches:f})),m=g[0],j=g[1];return t.useEffect((function(){var t=!0;if(i){var r=v(a),e=function(){t&&j(r.matches)};return e(),r.addListener(e),function(){t=!1,r.removeListener(e)}}}),[a,v,i]),m}var kr={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},Sr=function(t){return p({color:t.palette.text.primary},t.typography.body2,{backgroundColor:t.palette.background.default,"@media print":{backgroundColor:t.palette.common.white}})};var Pr=v((function(t){return{"@global":{html:kr,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:p({margin:0},Sr(t),{"&::backdrop":{backgroundColor:t.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(r){var e=r.children,n=void 0===e?null:e;return r.classes,t.createElement(t.Fragment,null,n)})),Tr="#0087dc",Cr="#ffc400",Fr="#d9d9d9",Er=function(t){var e=t.children,n=t.theme,o=t.darkMode,a=xr(function(t){var r=t.darkMode;return h({typography:{button:{textTransform:"none"}},palette:r?{type:"dark",primary:{main:Tr},secondary:{main:Cr}}:{type:"light",primary:{main:Tr},secondary:{main:Cr}},shape:{borderRadius:3},props:{MuiButton:{variant:"contained",color:"primary"},MuiSelect:{MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null}}},overrides:{MuiPaper:{root:{background:"white",minWidth:300}},MuiSelect:{root:{padding:8}},MuiButton:{root:{padding:"4px 8px","&$outlined":{padding:"4px 8px"}}},MuiAutocomplete:{inputRoot:{paddingRight:"4px !important",backgroundColor:r?"#303030":"#fff","&:hover .MuiOutlinedInput-notchedOutline":{borderColor:Tr}},endAdornment:{display:"none"}},MuiChip:{root:{height:"28px",borderRadius:"2px",backgroundColor:r?"#595959":"#f5f5f5",border:"1px solid",borderColor:r?"#8c8c8c":Fr}},MuiOutlinedInput:{root:{borderColor:Fr,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",boxShadow:"0 0 0 2px rgb(24 144 255 / 20%)"}}},MuiRadio:{colorSecondary:{"&.Mui-checked":{color:Tr}}},MuiTypography:{root:{color:r?"#fff":"#595959"}},MuiTableHead:{root:{background:"#fafafa"}},MuiTableContainer:{root:{boxShadow:"initial",border:"1px solid #e0e0e0",borderBottom:0}},MuiDialogTitle:{root:{padding:"0 0 0 12px",background:Tr,color:"white"}},MuiDialogContent:{root:{padding:12,"&:first-child":"initial"}},MuiDialogActions:{root:{padding:12,borderTop:"1px solid ".concat(Fr)}}}})}({darkMode:void 0===o?zr("(prefers-color-scheme: light)"):o}),n);return r.createElement(Ar,{theme:a},r.createElement(Pr,null),e)};Er.defaultProps={children:void 0,theme:void 0,darkMode:void 0},Er.propTypes={children:e.node,theme:e.objectOf(e.any),darkMode:e.bool};export{Er as default};
|
|
1
|
+
import*as e from"react";import t,{Component as r,useRef as n,useState as o,useEffect as a,forwardRef as i,useCallback as s,createElement as c,useLayoutEffect as u,useMemo as l}from"react";import f from"prop-types";import{B as m}from"./react-router-dom-6469c1df.js";import{i as d,_ as p,a as h,b as v,c as g}from"./isObjectLike-4a391d5d.js";import{c as y,g as b}from"./index-767b2843.js";import*as E from"react-dom";import{createPortal as w}from"react-dom";import{u as _,n as x,T as O,_ as k,g as j,m as R,d as C,w as S,a as T,b as A,c as L,e as M,f as D,h as N}from"./capitalize-e92d0507.js";import{S as P}from"./Slide-ef2f2933.js";import{u as I,T as B,g as q}from"./utils-256c7d92.js";import{u as U}from"./useForkRef-58783e4b.js";import{o as F}from"./ownerDocument-e276d08d.js";import{u as z}from"./useEventCallback-8817ed1c.js";import{S as H}from"./SvgIcon-ae419ec7.js";import{i as $,T as W,_ as V,M as G,a as Z,I as X,b as K,c as Y,f as J,g as Q,F as ee,E as te,d as re,D as ne,e as oe,h as ae,j as ie,k as se,P as ce,l as ue,o as le,s as fe,m as me,n as de,p as pe,R as he,q as ve,u as ge,L as ye}from"./muiNotifcationReducer-75669c4f.js";import be from"http";import Ee from"https";import we from"url";import _e from"stream";import xe from"assert";import Oe from"tty";import ke from"util";import je from"fs";import Re from"net";import Ce from"zlib";import Se from"./Loading.js";import"react-is";import{useRouteMatch as Te,useHistory as Ae,Switch as Le,Route as Me}from"react-router";import"./debounce-65582d84.js";import"./style-inject.es-1f59c1d0.js";import"./CircularProgress-537ad812.js";var De=function(){this.__data__=[],this.size=0};var Ne=function(e,t){return e===t||e!=e&&t!=t};var Pe=function(e,t){for(var r=e.length;r--;)if(Ne(e[r][0],t))return r;return-1},Ie=Array.prototype.splice;var Be=function(e){var t=this.__data__,r=Pe(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ie.call(t,r,1),--this.size,!0)};var qe=function(e){var t=this.__data__,r=Pe(t,e);return r<0?void 0:t[r][1]};var Ue=function(e){return Pe(this.__data__,e)>-1};var Fe=function(e,t){var r=this.__data__,n=Pe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function ze(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])}}ze.prototype.clear=De,ze.prototype.delete=Be,ze.prototype.get=qe,ze.prototype.has=Ue,ze.prototype.set=Fe;var He=ze;var $e=function(){this.__data__=new He,this.size=0};var We=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var Ve=function(e){return this.__data__.get(e)};var Ge=function(e){return this.__data__.has(e)};var Ze,Xe=function(e){if(!d(e))return!1;var t=p(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ke=h["__core-js_shared__"],Ye=(Ze=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||""))?"Symbol(src)_1."+Ze:"";var Je=function(e){return!!Ye&&Ye in e},Qe=Function.prototype.toString;var et=function(e){if(null!=e){try{return Qe.call(e)}catch(e){}try{return e+""}catch(e){}}return""},tt=/^\[object .+?Constructor\]$/,rt=Function.prototype,nt=Object.prototype,ot=rt.toString,at=nt.hasOwnProperty,it=RegExp("^"+ot.call(at).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var st=function(e){return!(!d(e)||Je(e))&&(Xe(e)?it:tt).test(et(e))};var ct=function(e,t){return null==e?void 0:e[t]};var ut=function(e,t){var r=ct(e,t);return st(r)?r:void 0},lt=ut(h,"Map"),ft=ut(Object,"create");var mt=function(){this.__data__=ft?ft(null):{},this.size=0};var dt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pt=Object.prototype.hasOwnProperty;var ht=function(e){var t=this.__data__;if(ft){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return pt.call(t,e)?t[e]:void 0},vt=Object.prototype.hasOwnProperty;var gt=function(e){var t=this.__data__;return ft?void 0!==t[e]:vt.call(t,e)};var yt=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ft&&void 0===t?"__lodash_hash_undefined__":t,this};function bt(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])}}bt.prototype.clear=mt,bt.prototype.delete=dt,bt.prototype.get=ht,bt.prototype.has=gt,bt.prototype.set=yt;var Et=bt;var wt=function(){this.size=0,this.__data__={hash:new Et,map:new(lt||He),string:new Et}};var _t=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var xt=function(e,t){var r=e.__data__;return _t(t)?r["string"==typeof t?"string":"hash"]:r.map};var Ot=function(e){var t=xt(this,e).delete(e);return this.size-=t?1:0,t};var kt=function(e){return xt(this,e).get(e)};var jt=function(e){return xt(this,e).has(e)};var Rt=function(e,t){var r=xt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function Ct(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])}}Ct.prototype.clear=wt,Ct.prototype.delete=Ot,Ct.prototype.get=kt,Ct.prototype.has=jt,Ct.prototype.set=Rt;var St=Ct;var Tt=function(e,t){var r=this.__data__;if(r instanceof He){var n=r.__data__;if(!lt||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new St(n)}return r.set(e,t),this.size=r.size,this};function At(e){var t=this.__data__=new He(e);this.size=t.size}At.prototype.clear=$e,At.prototype.delete=We,At.prototype.get=Ve,At.prototype.has=Ge,At.prototype.set=Tt;var Lt=At,Mt=function(){try{var e=ut(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Dt=function(e,t,r){"__proto__"==t&&Mt?Mt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r};var Nt=function(e,t,r){(void 0!==r&&!Ne(e[t],r)||void 0===r&&!(t in e))&&Dt(e,t,r)};var Pt=function(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),s=i.length;s--;){var c=i[e?s:++o];if(!1===r(a[c],c,a))break}return t}}(),It=y((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?h.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=a?a(r):new e.constructor(r);return e.copy(n),n}})),Bt=h.Uint8Array;var qt=function(e){var t=new e.constructor(e.byteLength);return new Bt(t).set(new Bt(e)),t};var Ut=function(e,t){var r=t?qt(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)};var Ft=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},zt=Object.create,Ht=function(){function e(){}return function(t){if(!d(t))return{};if(zt)return zt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();var $t=function(e,t){return function(r){return e(t(r))}}(Object.getPrototypeOf,Object),Wt=Object.prototype;var Vt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Wt)};var Gt=function(e){return"function"!=typeof e.constructor||Vt(e)?{}:Ht($t(e))};var Zt=function(e){return v(e)&&"[object Arguments]"==p(e)},Xt=Object.prototype,Kt=Xt.hasOwnProperty,Yt=Xt.propertyIsEnumerable,Jt=Zt(function(){return arguments}())?Zt:function(e){return v(e)&&Kt.call(e,"callee")&&!Yt.call(e,"callee")},Qt=Array.isArray;var er=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var tr=function(e){return null!=e&&er(e.length)&&!Xe(e)};var rr=function(e){return v(e)&&tr(e)};var nr=function(){return!1},or=y((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r?h.Buffer:void 0,a=(o?o.isBuffer:void 0)||nr;e.exports=a})),ar=Function.prototype,ir=Object.prototype,sr=ar.toString,cr=ir.hasOwnProperty,ur=sr.call(Object);var lr=function(e){if(!v(e)||"[object Object]"!=p(e))return!1;var t=$t(e);if(null===t)return!0;var r=cr.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&sr.call(r)==ur},fr={};fr["[object Float32Array]"]=fr["[object Float64Array]"]=fr["[object Int8Array]"]=fr["[object Int16Array]"]=fr["[object Int32Array]"]=fr["[object Uint8Array]"]=fr["[object Uint8ClampedArray]"]=fr["[object Uint16Array]"]=fr["[object Uint32Array]"]=!0,fr["[object Arguments]"]=fr["[object Array]"]=fr["[object ArrayBuffer]"]=fr["[object Boolean]"]=fr["[object DataView]"]=fr["[object Date]"]=fr["[object Error]"]=fr["[object Function]"]=fr["[object Map]"]=fr["[object Number]"]=fr["[object Object]"]=fr["[object RegExp]"]=fr["[object Set]"]=fr["[object String]"]=fr["[object WeakMap]"]=!1;var mr=function(e){return v(e)&&er(e.length)&&!!fr[p(e)]};var dr=function(e){return function(t){return e(t)}},pr=y((function(e,t){var r=t&&!t.nodeType&&t,n=r&&e&&!e.nodeType&&e,o=n&&n.exports===r&&g.process,a=function(){try{var e=n&&n.require&&n.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a})),hr=pr&&pr.isTypedArray,vr=hr?dr(hr):mr;var gr=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},yr=Object.prototype.hasOwnProperty;var br=function(e,t,r){var n=e[t];yr.call(e,t)&&Ne(n,r)&&(void 0!==r||t in e)||Dt(e,t,r)};var Er=function(e,t,r,n){var o=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var s=t[a],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),o?Dt(r,s,c):br(r,s,c)}return r};var wr=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},_r=/^(?:0|[1-9]\d*)$/;var xr=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&_r.test(e))&&e>-1&&e%1==0&&e<t},Or=Object.prototype.hasOwnProperty;var kr=function(e,t){var r=Qt(e),n=!r&&Jt(e),o=!r&&!n&&or(e),a=!r&&!n&&!o&&vr(e),i=r||n||o||a,s=i?wr(e.length,String):[],c=s.length;for(var u in e)!t&&!Or.call(e,u)||i&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||xr(u,c))||s.push(u);return s};var jr=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},Rr=Object.prototype.hasOwnProperty;var Cr=function(e){if(!d(e))return jr(e);var t=Vt(e),r=[];for(var n in e)("constructor"!=n||!t&&Rr.call(e,n))&&r.push(n);return r};var Sr=function(e){return tr(e)?kr(e,!0):Cr(e)};var Tr=function(e){return Er(e,Sr(e))};var Ar=function(e,t,r,n,o,a,i){var s=gr(e,r),c=gr(t,r),u=i.get(c);if(u)Nt(e,r,u);else{var l=a?a(s,c,r+"",e,t,i):void 0,f=void 0===l;if(f){var m=Qt(c),p=!m&&or(c),h=!m&&!p&&vr(c);l=c,m||p||h?Qt(s)?l=s:rr(s)?l=Ft(s):p?(f=!1,l=It(c,!0)):h?(f=!1,l=Ut(c,!0)):l=[]:lr(c)||Jt(c)?(l=s,Jt(s)?l=Tr(s):d(s)&&!Xe(s)||(l=Gt(c))):f=!1}f&&(i.set(c,l),o(l,c,n,a,i),i.delete(c)),Nt(e,r,l)}};var Lr=function e(t,r,n,o,a){t!==r&&Pt(r,(function(i,s){if(a||(a=new Lt),d(i))Ar(t,r,s,n,e,o,a);else{var c=o?o(gr(t,s),i,s+"",t,r,a):void 0;void 0===c&&(c=i),Nt(t,s,c)}}),Sr)};var Mr=function(e){return e};var Dr=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)},Nr=Math.max;var Pr=function(e,t,r){return t=Nr(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Nr(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),Dr(e,this,s)}};var Ir=function(e){return function(){return e}},Br=Mt?function(e,t){return Mt(e,"toString",{configurable:!0,enumerable:!1,value:Ir(t),writable:!0})}:Mr,qr=Date.now;var Ur=function(e){var t=0,r=0;return function(){var n=qr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Br);var Fr=function(e,t){return Ur(Pr(e,t,Mr),e+"")};var zr=function(e,t,r){if(!d(r))return!1;var n=typeof t;return!!("number"==n?tr(r)&&xr(t,r.length):"string"==n&&t in r)&&Ne(r[t],e)};var Hr=function(e){return Fr((function(t,r){var n=-1,o=r.length,a=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&zr(r[0],r[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,a)}return t}))}((function(e,t,r){Lr(e,t,r)}));function $r(e){var r=e.children,n=e.theme,o=_(),a=t.useMemo((function(){var e=null===o?n:function(e,t){return"function"==typeof t?t(e):k({},e,t)}(o,n);return null!=e&&(e[x]=null!==o),e}),[n,o]);return t.createElement(O.Provider,{value:a},r)}function Wr(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=_(),o=j({theme:n,name:"MuiUseMediaQuery",props:{}}),a="function"==typeof t?t(n):t;a=a.replace(/^@media( ?)/m,"");var i="undefined"!=typeof window&&void 0!==window.matchMedia,s=k({},o,r),c=s.defaultMatches,u=void 0!==c&&c,l=s.matchMedia,f=void 0===l?i?window.matchMedia:null:l,m=s.noSsr,d=void 0!==m&&m,p=s.ssrMatchMedia,h=void 0===p?null:p,v=e.useState((function(){return d&&i?f(a).matches:h?h(a).matches:u})),g=v[0],y=v[1];return e.useEffect((function(){var e=!0;if(i){var t=f(a),r=function(){e&&y(t.matches)};return r(),t.addListener(r),function(){e=!1,t.removeListener(r)}}}),[a,f,i]),g}function Vr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R(e,k({defaultTheme:C},t))}var Gr={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},Zr=function(e){return k({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};var Xr=S((function(e){return{"@global":{html:Gr,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:k({margin:0},Zr(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(t){var r=t.children,n=void 0===r?null:r;return t.classes,e.createElement(e.Fragment,null,n)})),Kr=e.forwardRef((function(t,r){var n=t.children,o=t.classes,a=t.className,i=t.collapsedHeight,s=t.collapsedSize,c=void 0===s?"0px":s,u=t.component,l=void 0===u?"div":u,f=t.disableStrictModeCompat,m=void 0!==f&&f,d=t.in,p=t.onEnter,h=t.onEntered,v=t.onEntering,g=t.onExit,y=t.onExited,b=t.onExiting,E=t.style,w=t.timeout,_=void 0===w?T.standard:w,x=t.TransitionComponent,O=void 0===x?B:x,j=A(t,["children","classes","className","collapsedHeight","collapsedSize","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),R=I(),C=e.useRef(),S=e.useRef(null),D=e.useRef(),N="number"==typeof(i||c)?"".concat(i||c,"px"):i||c;e.useEffect((function(){return function(){clearTimeout(C.current)}}),[]);var P=R.unstable_strictMode&&!m,F=e.useRef(null),z=U(r,P?F:void 0),H=function(e){return function(t,r){if(e){var n=P?[F.current,t]:[t,r],o=M(n,2),a=o[0],i=o[1];void 0===i?e(a):e(a,i)}}},$=H((function(e,t){e.style.height=N,p&&p(e,t)})),W=H((function(e,t){var r=S.current?S.current.clientHeight:0,n=q({style:E,timeout:_},{mode:"enter"}).duration;if("auto"===_){var o=R.transitions.getAutoHeightDuration(r);e.style.transitionDuration="".concat(o,"ms"),D.current=o}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height="".concat(r,"px"),v&&v(e,t)})),V=H((function(e,t){e.style.height="auto",h&&h(e,t)})),G=H((function(e){var t=S.current?S.current.clientHeight:0;e.style.height="".concat(t,"px"),g&&g(e)})),Z=H(y),X=H((function(e){var t=S.current?S.current.clientHeight:0,r=q({style:E,timeout:_},{mode:"exit"}).duration;if("auto"===_){var n=R.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),D.current=n}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style.height=N,b&&b(e)}));return e.createElement(O,k({in:d,onEnter:$,onEntered:V,onEntering:W,onExit:G,onExited:Z,onExiting:X,addEndListener:function(e,t){var r=P?e:t;"auto"===_&&(C.current=setTimeout(r,D.current||0))},nodeRef:P?F:void 0,timeout:"auto"===_?null:_},j),(function(t,r){return e.createElement(l,k({className:L(o.root,o.container,a,{entered:o.entered,exited:!d&&"0px"===N&&o.hidden}[t]),style:k({minHeight:N},E),ref:z},r),e.createElement("div",{className:o.wrapper,ref:S},e.createElement("div",{className:o.wrapperInner},n)))}))}));Kr.muiSupportAuto=!0;var Yr=S((function(e){return{root:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(Kr);function Jr(e){return e.substring(2).toLowerCase()}function Qr(t){var r=t.children,n=t.disableReactTree,o=void 0!==n&&n,a=t.mouseEvent,i=void 0===a?"onClick":a,s=t.onClickAway,c=t.touchEvent,u=void 0===c?"onTouchEnd":c,l=e.useRef(!1),f=e.useRef(null),m=e.useRef(!1),d=e.useRef(!1);e.useEffect((function(){return setTimeout((function(){m.current=!0}),0),function(){m.current=!1}}),[]);var p=e.useCallback((function(e){f.current=E.findDOMNode(e)}),[]),h=U(r.ref,p),v=z((function(e){var t=d.current;if(d.current=!1,m.current&&f.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(l.current)l.current=!1;else{var r;if(e.composedPath)r=e.composedPath().indexOf(f.current)>-1;else r=!F(f.current).documentElement.contains(e.target)||f.current.contains(e.target);r||!o&&t||s(e)}})),g=function(e){return function(t){d.current=!0;var n=r.props[e];n&&n(t)}},y={ref:h};return!1!==u&&(y[u]=g(u)),e.useEffect((function(){if(!1!==u){var e=Jr(u),t=F(f.current),r=function(){l.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",r),function(){t.removeEventListener(e,v),t.removeEventListener("touchmove",r)}}}),[v,u]),!1!==i&&(y[i]=g(i)),e.useEffect((function(){if(!1!==i){var e=Jr(i),t=F(f.current);return t.addEventListener(e,v),function(){t.removeEventListener(e,v)}}}),[v,i]),e.createElement(e.Fragment,null,e.cloneElement(r,y))}function en(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 tn(){return tn=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},tn.apply(this,arguments)}function rn(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var nn=t.createContext(),on={root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},an={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},sn={default:20,dense:4},cn={default:6,dense:2},un={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:P,transitionDuration:{enter:225,exit:195}},ln=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},fn=function(e){return Object.keys(e).filter((function(e){return!an[e]})).reduce((function(t,r){var n;return tn({},t,((n={})[r]=e[r],n))}),{})},mn={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},dn=function(e){return"containerAnchorOrigin"+e},pn=function(e){var t=e.vertical,r=e.horizontal;return"anchorOrigin"+ln(t)+ln(r)},hn=function(e){return"variant"+ln(e)},vn=function(e){return!!e||0===e},gn=function(e){return"number"==typeof e||null===e};function yn(e,t,r){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===r&&(r={}),tn({},r,{},t,{},e)}var bn=function(e){var t;return{root:(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[e.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t)}},En=i((function(e,r){var n=e.classes,o=e.className,a=rn(e,["classes","className"]);return t.createElement("div",Object.assign({ref:r,className:L(n.root,o)},a))})),wn=S(bn)(En),_n={right:"left",left:"right",bottom:"up",top:"down"},xn=function(e){return"center"!==e.horizontal?_n[e.horizontal]:_n[e.vertical]},On=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},kn=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},jn=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},Rn=function(e){return t.createElement(H,Object.assign({},e),t.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},Cn={fontSize:20,marginInlineEnd:8},Sn={default:void 0,success:t.createElement(On,{style:Cn}),warning:t.createElement(kn,{style:Cn}),error:t.createElement(jn,{style:Cn}),info:t.createElement(Rn,{style:Cn})};function Tn(e,t){return e.reduce((function(e,r){return null==r?e:function(){for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var i=[].concat(o);t&&-1===i.indexOf(t)&&i.push(t),e.apply(this,i),r.apply(this,i)}}),(function(){}))}var An="undefined"!=typeof window?u:a;function Ln(e){var t=n(e);return An((function(){t.current=e})),s((function(){return t.current.apply(void 0,arguments)}),[])}var Mn=i((function(e,t){var r=e.children,o=e.autoHideDuration,i=e.ClickAwayListenerProps,u=e.disableWindowBlurListener,l=void 0!==u&&u,f=e.onClose,m=e.onMouseEnter,d=e.onMouseLeave,p=e.open,h=e.resumeHideDuration,v=rn(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),g=n(),y=Ln((function(){f&&f.apply(void 0,arguments)})),b=Ln((function(e){f&&null!=e&&(clearTimeout(g.current),g.current=setTimeout((function(){y(null,mn.TIMEOUT)}),e))}));a((function(){return p&&b(o),function(){clearTimeout(g.current)}}),[p,o,b]);var E=function(){clearTimeout(g.current)},w=s((function(){null!=o&&b(null!=h?h:.5*o)}),[o,h,b]);return a((function(){if(!l&&p)return window.addEventListener("focus",w),window.addEventListener("blur",E),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",E)}}),[l,w,p]),c(Qr,tn({onClickAway:function(e){f&&f(e,mn.CLICKAWAY)}},i),c("div",tn({onMouseEnter:function(e){m&&m(e),E()},onMouseLeave:function(e){d&&d(e),w()},ref:t},v),r))})),Dn=function(e){var r=e.classes,i=rn(e,["classes"]),s=n(),c=o(!0),u=c[0],l=c[1];a((function(){return function(){s.current&&clearTimeout(s.current)}}),[]);var f=Tn([i.snack.onClose,i.onClose],i.snack.key),m=i.style,d=i.ariaAttributes,p=i.className,h=i.hideIconVariant,v=i.iconVariant,g=i.snack,y=i.action,b=i.content,E=i.TransitionComponent,w=i.TransitionProps,_=i.transitionDuration,x=rn(i,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),O=g.key,k=g.open,j=g.className,R=g.variant,C=g.content,S=g.action,T=g.ariaAttributes,A=g.anchorOrigin,M=g.message,D=g.TransitionComponent,N=g.TransitionProps,P=g.transitionDuration,I=rn(g,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),B=tn({},Sn,{},v)[R],q=tn({"aria-describedby":"notistack-snackbar"},yn(T,d)),U=D||E||un.TransitionComponent,F=yn(P,_,un.transitionDuration),z=tn({direction:xn(A)},yn(N,w)),H=S||y;"function"==typeof H&&(H=H(O));var $=C||b;"function"==typeof $&&($=$(O,g.message));var W=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce((function(e,t){var r;return tn({},e,((r={})[t]=Tn([i.snack[t],i[t]],i.snack.key),r))}),{});return t.createElement(Yr,{unmountOnExit:!0,timeout:175,in:u,onExited:W.onExited},t.createElement(Mn,Object.assign({},x,I,{open:k,className:L(r.root,r.wrappedRoot,r[pn(A)]),onClose:f}),t.createElement(U,Object.assign({appear:!0,in:k,timeout:F},z,{onExit:W.onExit,onExiting:W.onExiting,onExited:function(){s.current=setTimeout((function(){l(!u)}),125)},onEnter:W.onEnter,onEntering:W.onEntering,onEntered:Tn([W.onEntered,function(){i.snack.requestClose&&f(null,mn.INSTRCUTED)}])}),$||t.createElement(wn,Object.assign({},q,{role:"alert",style:m,className:L(r.contentRoot,r[hn(R)],p,j,!h&&B&&r.lessPadding)}),t.createElement("div",{id:q["aria-describedby"],className:r.message},h?null:B,M),H&&t.createElement("div",{className:r.action},H)))))},Nn=S((function(e){var t=e.palette.mode||e.palette.type,r=D(e.palette.background.default,"light"===t?.8:.98);return tn({},on,{contentRoot:tn({},e.typography.body2,{backgroundColor:r,color:e.palette.getContrastText(r),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),lessPadding:{paddingLeft:20},variantSuccess:{backgroundColor:"#43a047",color:"#fff"},variantError:{backgroundColor:"#d32f2f",color:"#fff"},variantInfo:{backgroundColor:"#2196f3",color:"#fff"},variantWarning:{backgroundColor:"#ff9800",color:"#fff"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},wrappedRoot:{position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0}})}))(Dn),Pn="& > .MuiCollapse-container, & > .MuiCollapse-root",In="& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper",Bn=Vr((function(e){var t,r,n,o,a;return{root:(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:e.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[Pn]={pointerEvents:"all"},t[In]={padding:cn.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+2*sn.default+"px)",t[e.breakpoints.down("xs")]={width:"100%",maxWidth:"calc(100% - 32px)"},t),rootDense:(r={},r[In]={padding:cn.dense+"px 0px"},r),top:{top:sn.default-cn.default,flexDirection:"column"},bottom:{bottom:sn.default-cn.default,flexDirection:"column-reverse"},left:(n={left:sn.default},n[e.breakpoints.up("sm")]={alignItems:"flex-start"},n[e.breakpoints.down("xs")]={left:"16px"},n),right:(o={right:sn.default},o[e.breakpoints.up("sm")]={alignItems:"flex-end"},o[e.breakpoints.down("xs")]={right:"16px"},o),center:(a={left:"50%",transform:"translateX(-50%)"},a[e.breakpoints.up("sm")]={alignItems:"center"},a)}})),qn=function(e){var r=Bn(),n=e.className,o=e.anchorOrigin,a=e.dense,i=rn(e,["className","anchorOrigin","dense"]),s=L(r[o.vertical],r[o.horizontal],r.root,n,a&&r.rootDense);return t.createElement("div",Object.assign({className:s},i))},Un=t.memo(qn),Fn=function(e){var r,n,o,a,i;function s(t){var r;return(r=e.call(this,t)||this).enqueueSnackbar=function(e,t){void 0===t&&(t={});var n=t,o=n.key,a=n.preventDuplicate,i=rn(n,["key","preventDuplicate"]),s=vn(o),c=s?o:(new Date).getTime()+Math.random(),u=function(e,t,r){return function(n){return"autoHideDuration"===n?gn(e.autoHideDuration)?e.autoHideDuration:gn(t.autoHideDuration)?t.autoHideDuration:un.autoHideDuration:e[n]||t[n]||r[n]}}(i,r.props,un),l=tn({key:c},i,{message:e,open:!0,entered:!1,requestClose:!1,variant:u("variant"),anchorOrigin:u("anchorOrigin"),autoHideDuration:u("autoHideDuration")});return i.persist&&(l.autoHideDuration=void 0),r.setState((function(t){if(void 0===a&&r.props.preventDuplicate||a){var n=function(t){return s?t.key===o:t.message===e},i=t.queue.findIndex(n)>-1,c=t.snacks.findIndex(n)>-1;if(i||c)return t}return r.handleDisplaySnack(tn({},t,{queue:[].concat(t.queue,[l])}))})),c},r.handleDisplaySnack=function(e){return e.snacks.length>=r.maxSnack?r.handleDismissOldest(e):r.processQueue(e)},r.processQueue=function(e){var t=e.queue,r=e.snacks;return t.length>0?tn({},e,{snacks:[].concat(r,[t[0]]),queue:t.slice(1,t.length)}):e},r.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,n=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===r.maxSnack&&(n=!0);var o=e.snacks.map((function(e){return t||e.persist&&!n?tn({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,mn.MAXSNACK,e.key),r.props.onClose&&r.props.onClose(null,mn.MAXSNACK,e.key),tn({},e,{open:!1})):tn({},e,{requestClose:!0}))}));return tn({},e,{snacks:o})},r.handleEnteredSnack=function(e,t,n){if(!vn(n))throw new Error("handleEnteredSnack Cannot be called with undefined key");r.setState((function(e){return{snacks:e.snacks.map((function(e){return e.key===n?tn({},e,{entered:!0}):tn({},e)}))}}))},r.handleCloseSnack=function(e,t,n){if(r.props.onClose&&r.props.onClose(e,t,n),t!==mn.CLICKAWAY){var o=void 0===n;r.setState((function(e){var t=e.snacks,r=e.queue;return{snacks:t.map((function(e){return o||e.key===n?e.entered?tn({},e,{open:!1}):tn({},e,{requestClose:!0}):tn({},e)})),queue:r.filter((function(e){return e.key!==n}))}}))}},r.closeSnackbar=function(e){var t=r.state.snacks.find((function(t){return t.key===e}));vn(e)&&t&&t.onClose&&t.onClose(null,mn.INSTRUCTED,e),r.handleCloseSnack(null,mn.INSTRUCTED,e)},r.handleExitedSnack=function(e,t,n){var o=t||n;if(!vn(o))throw new Error("handleExitedSnack Cannot be called with undefined key");r.setState((function(e){var t=r.processQueue(tn({},e,{snacks:e.snacks.filter((function(e){return e.key!==o}))}));return 0===t.queue.length?t:r.handleDismissOldest(t)}))},r.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:r.enqueueSnackbar,closeSnackbar:r.closeSnackbar}},r}return n=e,(r=s).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,s.prototype.render=function(){var e=this,r=this.state.contextValue,n=this.props,o=n.iconVariant,a=n.dense,i=void 0===a?un.dense:a,s=n.hideIconVariant,c=void 0===s?un.hideIconVariant:s,u=n.domRoot,l=n.children,f=n.classes,m=void 0===f?{}:f,d=rn(n,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),p=this.state.snacks.reduce((function(e,t){var r,n,o=(n=t.anchorOrigin,""+ln(n.vertical)+ln(n.horizontal)),a=e[o]||[];return tn({},e,((r={})[o]=[].concat(a,[t]),r))}),{}),h=Object.keys(p).map((function(r){var n=p[r];return t.createElement(Un,{key:r,dense:i,anchorOrigin:n[0].anchorOrigin,className:L(m.containerRoot,m[dn(r)])},n.map((function(r){return t.createElement(Nn,Object.assign({},d,{key:r.key,snack:r,dense:i,iconVariant:o,hideIconVariant:c,classes:fn(m),onClose:e.handleCloseSnack,onExited:Tn([e.handleExitedSnack,e.props.onExited]),onEntered:Tn([e.handleEnteredSnack,e.props.onEntered])}))})))}));return t.createElement(nn.Provider,{value:r},l,u?w(h,u):h)},o=s,(a=[{key:"maxSnack",get:function(){return this.props.maxSnack||un.maxSnack}}])&&en(o.prototype,a),i&&en(o,i),s}(r);const zn={primaryColor:"#0087dc",primaryColorFocus:"#339fe3",secondaryColor:"#ffc400"};function Hn(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=V({timeZone:t},e[n]),r}),{})}function $n(e,t){return Object.keys(V(V({},e),t)).reduce((function(r,n){return r[n]=V(V({},e[n]||{}),t[n]||{}),r}),{})}function Wn(e,t){if(!t)return e;var r=X.formats;return V(V(V({},r),e),{date:$n(Hn(r.date,t),Hn(e.date||{},t)),time:$n(Hn(r.time,t),Hn(e.time||{},t))})}function Vn(e,t,r,n,o){var a=e.locale,i=e.formats,s=e.messages,c=e.defaultLocale,u=e.defaultFormats,l=e.onError,f=e.timeZone,m=e.defaultRichTextElements;void 0===r&&(r={id:""});var d=r.id,p=r.defaultMessage;$(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var h=String(d),v=s&&Object.prototype.hasOwnProperty.call(s,h)&&s[h];if(Array.isArray(v)&&1===v.length&&v[0].type===W.literal)return v[0].value;if(!n&&v&&"string"==typeof v&&!m)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=V(V({},m),n||{}),i=Wn(i,f),u=Wn(u,f),!v){if((!p||a&&a.toLowerCase()!==c.toLowerCase())&&l(new G(r,a)),p)try{return t.getMessageFormat(p,c,u,o).format(n)}catch(e){return l(new Z('Error formatting default message for: "'+h+'", rendering default message verbatim',a,r,e)),"string"==typeof p?p:h}return h}try{return t.getMessageFormat(v,a,i,V({formatters:t},o||{})).format(n)}catch(e){l(new Z('Error formatting message: "'+h+'", using '+(p?"default message":"id")+" as fallback.",a,r,e))}if(p)try{return t.getMessageFormat(p,c,u,o).format(n)}catch(e){l(new Z('Error formatting the default message for: "'+h+'", rendering message verbatim',a,r,e))}return"string"==typeof v?v:"string"==typeof p?p:h}var Gn=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem"];function Zn(e,t,r,n){var o=e.locale,a=e.formats,i=e.onError,s=e.timeZone;void 0===n&&(n={});var c=n.format,u=V(V({},s&&{timeZone:s}),c&&Q(a,t,c,i)),l=J(n,Gn,u);return"time"!==t||l.hour||l.minute||l.second||l.timeStyle||l.dateStyle||(l=V(V({},l),{hour:"numeric",minute:"numeric"})),r(o,l)}function Xn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"date",t,i).format(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting date.",t))}return String(s)}function Kn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"time",t,i).format(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting time.",t))}return String(s)}function Yn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=r[2],s=void 0===i?{}:i,c=e.timeZone,u=e.locale,l=e.onError,f=J(s,Gn,c?{timeZone:c}:{});try{return t(u,f).formatRange(o,a)}catch(e){l(new K(Y.FORMAT_ERROR,"Error formatting date time range.",e))}return String(o)}function Jn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"date",t,i).formatToParts(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting date.",t))}return[]}function Qn(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=r[0],a=r[1],i=void 0===a?{}:a,s="string"==typeof o?new Date(o||0):o;try{return Zn(e,"time",t,i).formatToParts(s)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting time.",t))}return[]}var eo=["localeMatcher","style","type","fallback"];function to(e,t,r,n){var o=e.locale,a=e.onError;Intl.DisplayNames||a(new ee('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',te.MISSING_INTL_API));var i=J(n,eo);try{return t(o,i).of(r)}catch(e){a(new K(Y.FORMAT_ERROR,"Error formatting display name.",e))}}var ro=["localeMatcher","type","style"],no=Date.now();function oo(e,t,r,n){void 0===n&&(n={});var o=ao(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===o.length?o[0]:o}function ao(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.ListFormat||a(new ee('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',te.MISSING_INTL_API));var i=J(n,ro);try{var s={},c=r.map((function(e,t){if("object"==typeof e){var r=function(e){return no+"_"+e+"_"+no}(t);return s[r]=e,r}return String(e)}));return t(o,i).formatToParts(c).map((function(e){return"literal"===e.type?e:V(V({},e),{value:s[e.value]||e.value})}))}catch(e){a(new K(Y.FORMAT_ERROR,"Error formatting list.",e))}return r}var io=["localeMatcher","type"];function so(e,t,r,n){var o=e.locale,a=e.onError;void 0===n&&(n={}),Intl.PluralRules||a(new ee('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',te.MISSING_INTL_API));var i=J(n,io);try{return t(o,i).select(r)}catch(e){a(new Z("Error formatting plural.",e))}return"other"}var co=["numeric","style"];function uo(e,t,r,n,o){void 0===o&&(o={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new ee('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',te.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,s=!!i&&Q(o,"relative",i,a)||{};return t(n,J(r,co,s))}(e,t,o).format(r,n)}catch(t){e.onError(new Z("Error formatting relative time.",t))}return String(r)}var lo=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function fo(e,t,r){var n=e.locale,o=e.formats,a=e.onError;void 0===r&&(r={});var i=r.format,s=i&&Q(o,"number",i,a)||{};return t(n,J(r,lo,s))}function mo(e,t,r,n){void 0===n&&(n={});try{return fo(e,t,n).format(r)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting number.",t))}return String(r)}function po(e,t,r,n){void 0===n&&(n={});try{return fo(e,t,n).formatToParts(r)}catch(t){e.onError(new K(Y.FORMAT_ERROR,"Error formatting number.",t))}return[]}function ho(e){var t;e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&console.warn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.io/docs/getting-started/message-distribution')}var vo,go=(vo=function(e,t){return vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},vo(e,t)},function(e,t){function r(){this.constructor=e}vo(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),yo=function(){return yo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yo.apply(this,arguments)},bo=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r},Eo=le||fe;function wo(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function _o(e){return e?Object.keys(e).reduce((function(t,r){var n=e[r];return t[r]=me(n)?de(n):n,t}),{}):e}var xo=function(t,r,n,o){var a=Vn(t,r,n,_o(o));return Array.isArray(a)?e.Children.toArray(a):a},Oo=function(e,t){var r=e.defaultRichTextElements,n=bo(e,["defaultRichTextElements"]),o=_o(r),a=function(e,t){var r=re(t),n=V(V({},ne),e),o=n.locale,a=n.defaultLocale,i=n.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&i?i(new ae('Missing locale data for locale: "'+o+'" in Intl.NumberFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&i&&i(new ae('Missing locale data for locale: "'+o+'" in Intl.DateTimeFormat. Using default locale: "'+a+'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details')):(i&&i(new oe('"locale" was not configured, using "'+a+'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details')),n.locale=n.defaultLocale||"en"),ho(n),V(V({},n),{formatters:r,formatNumber:mo.bind(null,n,r.getNumberFormat),formatNumberToParts:po.bind(null,n,r.getNumberFormat),formatRelativeTime:uo.bind(null,n,r.getRelativeTimeFormat),formatDate:Xn.bind(null,n,r.getDateTimeFormat),formatDateToParts:Jn.bind(null,n,r.getDateTimeFormat),formatTime:Kn.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:Yn.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Qn.bind(null,n,r.getDateTimeFormat),formatPlural:so.bind(null,n,r.getPluralRules),formatMessage:Vn.bind(null,n,r),formatList:oo.bind(null,n,r.getListFormat),formatListToParts:ao.bind(null,n,r.getListFormat),formatDisplayName:to.bind(null,n,r.getDisplayNames)})}(yo(yo({},ue),n),t);return yo(yo({},a),{formatMessage:xo.bind(null,{locale:a.locale,timeZone:a.timeZone,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o},a.formatters)})},ko=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache=ie(),e.state={cache:e.cache,intl:Oo(wo(e.props),e.cache),prevConfig:wo(e.props)},e}return go(r,t),r.getDerivedStateFromProps=function(e,t){var r=t.prevConfig,n=t.cache,o=wo(e);return Eo(r,o)?null:{intl:Oo(o,n),prevConfig:o}},r.prototype.render=function(){return se(this.state.intl),e.createElement(ce,{value:this.state.intl},this.props.children)},r.displayName="IntlProvider",r.defaultProps=ue,r}(e.PureComponent);function jo(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Ro="function"==typeof Symbol&&Symbol.observable||"@@observable",Co=function(){return Math.random().toString(36).substring(7).split("").join(".")},So={INIT:"@@redux/INIT"+Co(),REPLACE:"@@redux/REPLACE"+Co(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Co()}};function To(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ao(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(jo(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(jo(1));return r(Ao)(e,t)}if("function"!=typeof e)throw new Error(jo(2));var o=e,a=t,i=[],s=i,c=!1;function u(){s===i&&(s=i.slice())}function l(){if(c)throw new Error(jo(3));return a}function f(e){if("function"!=typeof e)throw new Error(jo(4));if(c)throw new Error(jo(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(jo(6));t=!1,u();var r=s.indexOf(e);s.splice(r,1),i=null}}}function m(e){if(!To(e))throw new Error(jo(7));if(void 0===e.type)throw new Error(jo(8));if(c)throw new Error(jo(9));try{c=!0,a=o(a,e)}finally{c=!1}for(var t=i=s,r=0;r<t.length;r++){(0,t[r])()}return e}function d(e){if("function"!=typeof e)throw new Error(jo(10));o=e,m({type:So.REPLACE})}function p(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(jo(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[Ro]=function(){return this},e}return m({type:So.INIT}),(n={dispatch:m,subscribe:f,getState:l,replaceReducer:d})[Ro]=p,n}function Lo(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];"function"==typeof e[o]&&(r[o]=e[o])}var a,i=Object.keys(r);try{!function(e){Object.keys(e).forEach((function(t){var r=e[t];if(void 0===r(void 0,{type:So.INIT}))throw new Error(jo(12));if(void 0===r(void 0,{type:So.PROBE_UNKNOWN_ACTION()}))throw new Error(jo(13))}))}(r)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var n=!1,o={},s=0;s<i.length;s++){var c=i[s],u=r[c],l=e[c],f=u(l,t);if(void 0===f)throw t&&t.type,new Error(jo(14));o[c]=f,n=n||f!==l}return(n=n||i.length!==Object.keys(e).length)?o:e}}var Mo={notify:function(){},get:function(){return[]}};function Do(e,t){var r,n=Mo;function o(){i.onStateChange&&i.onStateChange()}function a(){var a,i,s;r||(r=t?t.addNestedSub(o):e.subscribe(o),a=pe(),i=null,s=null,n={clear:function(){i=null,s=null},notify:function(){a((function(){for(var e=i;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=i;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,r=s={callback:e,next:null,prev:s};return r.prev?r.prev.next=r:i=r,function(){t&&null!==i&&(t=!1,r.next?r.next.prev=r.prev:s=r.prev,r.prev?r.prev.next=r.next:i=r.next)}}})}var i={addNestedSub:function(e){return a(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:a,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=Mo)},getListeners:function(){return n}};return i}var No="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u:a;function Po(e){var r=e.store,n=e.context,o=e.children,a=l((function(){var e=Do(r);return e.onStateChange=e.notifyNestedSubs,{store:r,subscription:e}}),[r]),i=l((function(){return r.getState()}),[r]);No((function(){var e=a.subscription;return e.trySubscribe(),i!==r.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,i]);var s=n||he;return t.createElement(s.Provider,{value:a},o)}var Io=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}},Bo=Object.prototype.toString;function qo(e){return"[object Array]"===Bo.call(e)}function Uo(e){return void 0===e}function Fo(e){return null!==e&&"object"==typeof e}function zo(e){if("[object Object]"!==Bo.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function Ho(e){return"[object Function]"===Bo.call(e)}function $o(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),qo(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var Wo={isArray:qo,isArrayBuffer:function(e){return"[object ArrayBuffer]"===Bo.call(e)},isBuffer:function(e){return null!==e&&!Uo(e)&&null!==e.constructor&&!Uo(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Fo,isPlainObject:zo,isUndefined:Uo,isDate:function(e){return"[object Date]"===Bo.call(e)},isFile:function(e){return"[object File]"===Bo.call(e)},isBlob:function(e){return"[object Blob]"===Bo.call(e)},isFunction:Ho,isStream:function(e){return Fo(e)&&Ho(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:$o,merge:function e(){var t={};function r(r,n){zo(t[n])&&zo(r)?t[n]=e(t[n],r):zo(r)?t[n]=e({},r):qo(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)$o(arguments[n],r);return t},extend:function(e,t,r){return $o(t,(function(t,n){e[n]=r&&"function"==typeof t?Io(t,r):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}};function Vo(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Go=function(e,t,r){if(!t)return e;var n;if(r)n=r(t);else if(Wo.isURLSearchParams(t))n=t.toString();else{var o=[];Wo.forEach(t,(function(e,t){null!=e&&(Wo.isArray(e)?t+="[]":e=[e],Wo.forEach(e,(function(e){Wo.isDate(e)?e=e.toISOString():Wo.isObject(e)&&(e=JSON.stringify(e)),o.push(Vo(t)+"="+Vo(e))})))})),n=o.join("&")}if(n){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e};function Zo(){this.handlers=[]}Zo.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Zo.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Zo.prototype.forEach=function(e){Wo.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Xo=Zo,Ko=function(e,t,r){return Wo.forEach(r,(function(r){e=r(e,t)})),e},Yo=function(e){return!(!e||!e.__CANCEL__)},Jo=function(e,t){Wo.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))},Qo=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e},ea=function(e,t,r,n,o){var a=new Error(e);return Qo(a,t,r,n,o)},ta=function(e,t,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(ea("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)},ra=Wo.isStandardBrowserEnv()?{write:function(e,t,r,n,o,a){var i=[];i.push(e+"="+encodeURIComponent(t)),Wo.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),Wo.isString(n)&&i.push("path="+n),Wo.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},na=function(e,t){return e&&!function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t},oa=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],aa=Wo.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){var r=Wo.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},ia=function(e){return new Promise((function(t,r){var n=e.data,o=e.headers;Wo.isFormData(n)&&delete o["Content-Type"];var a=new XMLHttpRequest;if(e.auth){var i=e.auth.username||"",s=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(i+":"+s)}var c=na(e.baseURL,e.url);if(a.open(e.method.toUpperCase(),Go(c,e.params,e.paramsSerializer),!0),a.timeout=e.timeout,a.onreadystatechange=function(){if(a&&4===a.readyState&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))){var n,o,i,s,c,u="getAllResponseHeaders"in a?(n=a.getAllResponseHeaders(),c={},n?(Wo.forEach(n.split("\n"),(function(e){if(s=e.indexOf(":"),o=Wo.trim(e.substr(0,s)).toLowerCase(),i=Wo.trim(e.substr(s+1)),o){if(c[o]&&oa.indexOf(o)>=0)return;c[o]="set-cookie"===o?(c[o]?c[o]:[]).concat([i]):c[o]?c[o]+", "+i:i}})),c):c):null,l={data:e.responseType&&"text"!==e.responseType?a.response:a.responseText,status:a.status,statusText:a.statusText,headers:u,config:e,request:a};ta(t,r,l),a=null}},a.onabort=function(){a&&(r(ea("Request aborted",e,"ECONNABORTED",a)),a=null)},a.onerror=function(){r(ea("Network Error",e,null,a)),a=null},a.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(ea(t,e,"ECONNABORTED",a)),a=null},Wo.isStandardBrowserEnv()){var u=(e.withCredentials||aa(c))&&e.xsrfCookieName?ra.read(e.xsrfCookieName):void 0;u&&(o[e.xsrfHeaderName]=u)}if("setRequestHeader"in a&&Wo.forEach(o,(function(e,t){void 0===n&&"content-type"===t.toLowerCase()?delete o[t]:a.setRequestHeader(t,e)})),Wo.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),e.responseType)try{a.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&a.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){a&&(a.abort(),r(e),a=null)})),n||(n=null),a.send(n)}))},sa=1e3,ca=60*sa,ua=60*ca,la=24*ua,fa=365.25*la,ma=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*fa;case"days":case"day":case"d":return r*la;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ua;case"minutes":case"minute":case"mins":case"min":case"m":return r*ca;case"seconds":case"second":case"secs":case"sec":case"s":return r*sa;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===r&&!1===isNaN(e))return t.long?function(e){return da(e,la,"day")||da(e,ua,"hour")||da(e,ca,"minute")||da(e,sa,"second")||e+" ms"}(e):function(e){if(e>=la)return Math.round(e/la)+"d";if(e>=ua)return Math.round(e/ua)+"h";if(e>=ca)return Math.round(e/ca)+"m";if(e>=sa)return Math.round(e/sa)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function da(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}var pa=y((function(e,t){var r;function n(e){function n(){if(n.enabled){var e=n,o=+new Date,a=o-(r||o);e.diff=a,e.prev=r,e.curr=o,r=o;for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var c=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;c++;var o=t.formatters[n];if("function"==typeof o){var a=i[c];r=o.call(e,a),i.splice(c,1),c--}return r})),t.formatArgs.call(e,i);var u=n.log||t.log||console.log.bind(console);u.apply(e,i)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,o=0;o<n;o++)r[o]&&("-"===(e=r[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=ma,t.names=[],t.skips=[],t.formatters={}}));pa.coerce,pa.disable,pa.enable,pa.enabled,pa.humanize,pa.names,pa.skips,pa.formatters;var ha=y((function(e,t){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=pa).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))})),e.splice(a,0,n)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())}));ha.log,ha.formatArgs,ha.save,ha.load,ha.useColors,ha.storage,ha.colors;var va=y((function(e,t){(t=e.exports=pa).init=function(e){e.inspectOpts={};for(var r=Object.keys(t.inspectOpts),n=0;n<r.length;n++)e.inspectOpts[r[n]]=t.inspectOpts[r[n]]},t.log=function(){return n.write(ke.format.apply(ke,arguments)+"\n")},t.formatArgs=function(e){var r=this.namespace;if(this.useColors){var n=this.color,o=" [3"+n+";1m"+r+" [0m";e[0]=o+e[0].split("\n").join("\n"+o),e.push("[3"+n+"m+"+t.humanize(this.diff)+"[0m")}else e[0]=(new Date).toUTCString()+" "+r+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=o,t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):Oe.isatty(r)},t.colors=[6,2,3,4,5,1],t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),n=process.env[t];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),e[r]=n,e}),{});var r=parseInt(process.env.DEBUG_FD,10)||2;1!==r&&2!==r&&ke.deprecate((function(){}),"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var n=1===r?process.stdout:2===r?process.stderr:function(e){var t;switch(process.binding("tty_wrap").guessHandleType(e)){case"TTY":(t=new Oe.WriteStream(e))._type="tty",t._handle&&t._handle.unref&&t._handle.unref();break;case"FILE":(t=new je.SyncWriteStream(e,{autoClose:!1}))._type="fs";break;case"PIPE":case"TCP":(t=new Re.Socket({fd:e,readable:!1,writable:!0})).readable=!1,t.read=null,t._type="pipe",t._handle&&t._handle.unref&&t._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return t.fd=e,t._isStdio=!0,t}(r);function o(){return process.env.DEBUG}t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,ke.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,ke.inspect(e,this.inspectOpts)},t.enable(o())}));va.init,va.log,va.formatArgs,va.save,va.load,va.useColors,va.colors,va.inspectOpts;var ga,ya=y((function(e){"undefined"!=typeof process&&"renderer"===process.type?e.exports=ha:e.exports=va})),ba=function(){if(!ga){try{ga=ya("follow-redirects")}catch(e){}"function"!=typeof ga&&(ga=function(){})}ga.apply(null,arguments)},Ea=we.URL,wa=_e.Writable,_a=["abort","aborted","connect","error","socket","timeout"],xa=Object.create(null);_a.forEach((function(e){xa[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var Oa=Ma("ERR_FR_REDIRECTION_FAILURE",""),ka=Ma("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),ja=Ma("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Ra=Ma("ERR_STREAM_WRITE_AFTER_END","write after end");function Ca(e,t){wa.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(e){r._processResponse(e)},this._performRequest()}function Sa(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach((function(n){var o=n+":",a=r[o]=e[n],i=t[n]=Object.create(a);Object.defineProperties(i,{request:{value:function(e,n,a){if("string"==typeof e){var i=e;try{e=Aa(new Ea(i))}catch(t){e=we.parse(i)}}else Ea&&e instanceof Ea?e=Aa(e):(a=n,n=e,e={protocol:o});return"function"==typeof n&&(a=n,n=null),(n=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,n)).nativeProtocols=r,xe.equal(n.protocol,o,"protocol mismatch"),ba("options",n),new Ca(n,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,r){var n=i.request(e,t,r);return n.end(),n},configurable:!0,enumerable:!0,writable:!0}})})),t}function Ta(){}function Aa(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function La(e,t){var r;for(var n in t)e.test(n)&&(r=t[n],delete t[n]);return r}function Ma(e,t){function r(e){Error.captureStackTrace(this,this.constructor),this.message=e||t}return r.prototype=new Error,r.prototype.constructor=r,r.prototype.name="Error ["+e+"]",r.prototype.code=e,r}function Da(e){for(var t=0;t<_a.length;t++)e.removeListener(_a[t],xa[_a[t]]);e.on("error",Ta),e.abort()}Ca.prototype=Object.create(wa.prototype),Ca.prototype.abort=function(){Da(this._currentRequest),this.emit("abort")},Ca.prototype.write=function(e,t,r){if(this._ending)throw new Ra;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");"function"==typeof t&&(r=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new ja),this.abort()):r&&r()},Ca.prototype.end=function(e,t,r){if("function"==typeof e?(r=e,e=t=null):"function"==typeof t&&(r=t,t=null),e){var n=this,o=this._currentRequest;this.write(e,t,(function(){n._ended=!0,o.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},Ca.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},Ca.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},Ca.prototype.setTimeout=function(e,t){var r=this;function n(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function o(t){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),a()}),e),n(t)}function a(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",o)}return t&&this.on("timeout",t),this.socket?o(this.socket):this._currentRequest.once("socket",o),this.on("socket",n),this.once("response",a),this.once("error",a),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){Ca.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(Ca.prototype,e,{get:function(){return this._currentRequest[e]}})})),Ca.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},Ca.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var r=e.substr(0,e.length-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=t.request(this._options,this._onNativeResponse);this._currentUrl=we.format(this._options),n._redirectable=this;for(var o=0;o<_a.length;o++)n.on(_a[o],xa[_a[o]]);if(this._isRedirect){var a=0,i=this,s=this._requestBodyBuffers;!function e(t){if(n===i._currentRequest)if(t)i.emit("error",t);else if(a<s.length){var r=s[a++];n.finished||n.write(r.data,r.encoding,e)}else i._ended&&n.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},Ca.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(r&&!1!==this._options.followRedirects&&t>=300&&t<400){if(Da(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new ka);((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],La(/^content-/i,this._options.headers));var n=La(/^host$/i,this._options.headers)||we.parse(this._currentUrl).hostname,o=we.resolve(this._currentUrl,r);ba("redirecting to",o),this._isRedirect=!0;var a=we.parse(o);if(Object.assign(this._options,a),a.hostname!==n&&La(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var i={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,i)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var s=new Oa("Redirected request failed: "+e.message);s.cause=e,this.emit("error",s)}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]};var Na=Sa({http:be,https:Ee}),Pa=Sa;Na.wrap=Pa;var Ia="Promise based HTTP client for the browser and node.js",Ba={test:"grunt test && bundlesize",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},qa={type:"git",url:"https://github.com/axios/axios.git"},Ua=["xhr","http","ajax","promise","node"],Fa={url:"https://github.com/axios/axios/issues"},za="https://github.com/axios/axios",Ha={bundlesize:"^0.17.0",coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^5.2.0",sinon:"^4.5.0",typescript:"^2.8.1","url-search-params":"^0.10.0",webpack:"^1.13.1","webpack-dev-server":"^1.14.1"},$a={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},Wa="dist/axios.min.js",Va={"follow-redirects":"^1.10.0"},Ga=[{path:"./dist/axios.min.js",threshold:"5kB"}],Za={name:"axios",version:"0.21.1",description:Ia,main:"index.js",scripts:Ba,repository:qa,keywords:Ua,author:"Matt Zabriskie",license:"MIT",bugs:Fa,homepage:za,devDependencies:Ha,browser:$a,jsdelivr:"dist/axios.min.js",unpkg:Wa,typings:"./index.d.ts",dependencies:Va,bundlesize:Ga},Xa=b(Object.freeze({__proto__:null,name:"axios",version:"0.21.1",description:Ia,main:"index.js",scripts:Ba,repository:qa,keywords:Ua,author:"Matt Zabriskie",license:"MIT",bugs:Fa,homepage:za,devDependencies:Ha,browser:$a,jsdelivr:"dist/axios.min.js",unpkg:Wa,typings:"./index.d.ts",dependencies:Va,bundlesize:Ga,default:Za})),Ka=Na.http,Ya=Na.https,Ja=/https:?/;function Qa(e,t,r){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=r,t.auth){var n=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+n}e.beforeRedirect=function(e){e.headers.host=e.host,Qa(e,t,e.href)}}var ei=function(e){return new Promise((function(t,r){var n=function(e){t(e)},o=function(e){r(e)},a=e.data,i=e.headers;if(i["User-Agent"]||i["user-agent"]||(i["User-Agent"]="axios/"+Xa.version),a&&!Wo.isStream(a)){if(Buffer.isBuffer(a));else if(Wo.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!Wo.isString(a))return o(ea("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));a=Buffer.from(a,"utf-8")}i["Content-Length"]=a.length}var s=void 0;e.auth&&(s=(e.auth.username||"")+":"+(e.auth.password||""));var c=na(e.baseURL,e.url),u=we.parse(c),l=u.protocol||"http:";if(!s&&u.auth){var f=u.auth.split(":");s=(f[0]||"")+":"+(f[1]||"")}s&&delete i.Authorization;var m=Ja.test(l),d=m?e.httpsAgent:e.httpAgent,p={path:Go(u.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:i,agent:d,agents:{http:e.httpAgent,https:e.httpsAgent},auth:s};e.socketPath?p.socketPath=e.socketPath:(p.hostname=u.hostname,p.port=u.port);var h,v=e.proxy;if(!v&&!1!==v){var g=l.slice(0,-1)+"_proxy",y=process.env[g]||process.env[g.toUpperCase()];if(y){var b=we.parse(y),E=process.env.no_proxy||process.env.NO_PROXY,w=!0;if(E){var _=E.split(",").map((function(e){return e.trim()}));w=!_.some((function(e){return!!e&&("*"===e||("."===e[0]&&u.hostname.substr(u.hostname.length-e.length)===e||u.hostname===e))}))}if(w&&(v={host:b.hostname,port:b.port,protocol:b.protocol},b.auth)){var x=b.auth.split(":");v.auth={username:x[0],password:x[1]}}}}v&&(p.headers.host=u.hostname+(u.port?":"+u.port:""),Qa(p,v,l+"//"+u.hostname+(u.port?":"+u.port:"")+p.path));var O=m&&(!v||Ja.test(v.protocol));e.transport?h=e.transport:0===e.maxRedirects?h=O?Ee:be:(e.maxRedirects&&(p.maxRedirects=e.maxRedirects),h=O?Ya:Ka),e.maxBodyLength>-1&&(p.maxBodyLength=e.maxBodyLength);var k=h.request(p,(function(t){if(!k.aborted){var r=t,a=t.req||k;if(204!==t.statusCode&&"HEAD"!==a.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(Ce.createUnzip()),delete t.headers["content-encoding"]}var i={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:a};if("stream"===e.responseType)i.data=r,ta(n,o,i);else{var s=[];r.on("data",(function(t){s.push(t),e.maxContentLength>-1&&Buffer.concat(s).length>e.maxContentLength&&(r.destroy(),o(ea("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,a)))})),r.on("error",(function(t){k.aborted||o(Qo(t,e,null,a))})),r.on("end",(function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),e.responseEncoding&&"utf8"!==e.responseEncoding||(t=Wo.stripBOM(t))),i.data=t,ta(n,o,i)}))}}}));k.on("error",(function(t){k.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||o(Qo(t,e,null,k))})),e.timeout&&k.setTimeout(e.timeout,(function(){k.abort(),o(ea("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",k))})),e.cancelToken&&e.cancelToken.promise.then((function(e){k.aborted||(k.abort(),o(e))})),Wo.isStream(a)?a.on("error",(function(t){o(Qo(t,e,null,k))})).pipe(k):k.end(a)}))},ti={"Content-Type":"application/x-www-form-urlencoded"};function ri(e,t){!Wo.isUndefined(e)&&Wo.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var ni,oi={adapter:("undefined"!=typeof XMLHttpRequest?ni=ia:"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(ni=ei),ni),transformRequest:[function(e,t){return Jo(t,"Accept"),Jo(t,"Content-Type"),Wo.isFormData(e)||Wo.isArrayBuffer(e)||Wo.isBuffer(e)||Wo.isStream(e)||Wo.isFile(e)||Wo.isBlob(e)?e:Wo.isArrayBufferView(e)?e.buffer:Wo.isURLSearchParams(e)?(ri(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Wo.isObject(e)?(ri(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};oi.headers={common:{Accept:"application/json, text/plain, */*"}},Wo.forEach(["delete","get","head"],(function(e){oi.headers[e]={}})),Wo.forEach(["post","put","patch"],(function(e){oi.headers[e]=Wo.merge(ti)}));var ai=oi;function ii(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var si=function(e){return ii(e),e.headers=e.headers||{},e.data=Ko(e.data,e.headers,e.transformRequest),e.headers=Wo.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),Wo.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||ai.adapter)(e).then((function(t){return ii(e),t.data=Ko(t.data,t.headers,e.transformResponse),t}),(function(t){return Yo(t)||(ii(e),t&&t.response&&(t.response.data=Ko(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},ci=function(e,t){t=t||{};var r={},n=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],i=["validateStatus"];function s(e,t){return Wo.isPlainObject(e)&&Wo.isPlainObject(t)?Wo.merge(e,t):Wo.isPlainObject(t)?Wo.merge({},t):Wo.isArray(t)?t.slice():t}function c(n){Wo.isUndefined(t[n])?Wo.isUndefined(e[n])||(r[n]=s(void 0,e[n])):r[n]=s(e[n],t[n])}Wo.forEach(n,(function(e){Wo.isUndefined(t[e])||(r[e]=s(void 0,t[e]))})),Wo.forEach(o,c),Wo.forEach(a,(function(n){Wo.isUndefined(t[n])?Wo.isUndefined(e[n])||(r[n]=s(void 0,e[n])):r[n]=s(void 0,t[n])})),Wo.forEach(i,(function(n){n in t?r[n]=s(e[n],t[n]):n in e&&(r[n]=s(void 0,e[n]))}));var u=n.concat(o).concat(a).concat(i),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return Wo.forEach(l,c),r};function ui(e){this.defaults=e,this.interceptors={request:new Xo,response:new Xo}}ui.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=ci(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[si,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)r=r.then(t.shift(),t.shift());return r},ui.prototype.getUri=function(e){return e=ci(this.defaults,e),Go(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},Wo.forEach(["delete","get","head","options"],(function(e){ui.prototype[e]=function(t,r){return this.request(ci(r||{},{method:e,url:t,data:(r||{}).data}))}})),Wo.forEach(["post","put","patch"],(function(e){ui.prototype[e]=function(t,r,n){return this.request(ci(n||{},{method:e,url:t,data:r}))}}));var li=ui;function fi(e){this.message=e}fi.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},fi.prototype.__CANCEL__=!0;var mi=fi;function di(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new mi(e),t(r.reason))}))}di.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},di.source=function(){var e;return{token:new di((function(t){e=t})),cancel:e}};var pi=di;function hi(e){var t=new li(e),r=Io(li.prototype.request,t);return Wo.extend(r,li.prototype,t),Wo.extend(r,t),r}var vi=hi(ai);vi.Axios=li,vi.create=function(e){return hi(ci(vi.defaults,e))},vi.Cancel=mi,vi.CancelToken=pi,vi.isCancel=Yo,vi.all=function(e){return Promise.all(e)},vi.spread=function(e){return function(t){return e.apply(null,t)}},vi.isAxiosError=function(e){return"object"==typeof e&&!0===e.isAxiosError};var gi=vi,yi=vi;gi.default=yi;var bi=gi;const Ei=[{value:"zh-tw",label:"繁體中文"}],wi=e=>Ei.some((({value:t})=>t===e))?e:Ei[0].value;var _i={"common.action.failed":"操作失敗","common.action.error":"操作錯誤","common.action.success":"操作成功","common.confirm":"確認","common.enter":"請輸入","common.submit":"送出","common.cancel":"取消","common.export":"匯出","common.export.type":"匯出種類","common.has.problem":"我有問題","common.sex":"性別","common.other":"其他","common.content":"內容","common.click.refresh":"點擊刷新","common.provide.information":"我有資料要提供","common.form.name":"姓名","common.form.phone":"電話","common.form.age":"年齡","common.form.job":"職業","common.form.author":"作者","common.form.dataname":"資料名稱","common.form.datadate":"資料日期","common.form.providername":"提供者名稱","common.form.subject":"主旨","common.form.selectQuetionType":"請選擇一個問題類型","common.form.dataProvide":"資料提供","common.form.valid.error.email":"您輸入無效的 e-mail!","common.form.male":"男","common.form.female":"女","common.form.dataname.placeholder":"可填書名、期刊名等","common.form.provider.notice":"(此名稱將會顯示於此網站上)","common.form.code":"驗證碼","common.form.code.error":"驗證碼錯誤","common.form.attachment":"附件上傳","common.form.attachment.valid.error":"附件上傳上限為2MB","common.form.attachment.hint":"上傳附件大小限制:2MB","common.form.contactUs":"聯繫我們","common.form.error":"表單尚未完成 請檢察必填項目"},xi={"common.action.failed":"操作失敗","common.action.error":"操作錯誤","common.action.success":"操作成功","common.confirm":"確認","common.enter":"請輸入","common.submit":"送出","common.cancel":"取消","common.export":"匯出","common.export.type":"匯出種類","common.has.problem":"我有問題","common.sex":"性別","common.other":"其他","common.content":"內容","common.click.refresh":"點擊刷新","common.provide.information":"我有資料要提供","common.form.name":"姓名","common.form.phone":"電話","common.form.age":"年齡","common.form.job":"職業","common.form.author":"作者","common.form.dataname":"資料名稱","common.form.datadate":"資料日期","common.form.providername":"提供者名稱","common.form.subject":"主旨","common.form.selectQuetionType":"請選擇一個問題類型","common.form.dataProvide":"資料提供","common.form.valid.error.email":"您輸入無效的 e-mail!","common.form.male":"男","common.form.female":"女","common.form.dataname.placeholder":"可填書名、期刊名等","common.form.provider.notice":"(此名稱將會顯示於此網站上)","common.form.code":"驗證碼","common.form.code.error":"驗證碼錯誤","common.form.attachment":"附件上傳","common.form.attachment.hint":"上傳附件大小限制:2MB","common.form.attachment.valid.error":"附件上傳上限為2MB","common.form.contactUs":"聯繫我們","common.form.error":"表單尚未完成 請檢察必填項目"},Oi={"common.action.failed":"操作失敗","common.action.error":"操作錯誤","common.action.success":"操作成功","common.confirm":"確認","common.enter":"請輸入","common.submit":"送出","common.cancel":"取消","common.export":"匯出","common.export.type":"匯出種類","common.has.problem":"我有問題","common.sex":"性別","common.other":"其他","common.content":"內容","common.click.refresh":"點擊刷新","common.provide.information":"我有資料要提供","common.form.name":"姓名","common.form.phone":"電話","common.form.age":"年齡","common.form.job":"職業","common.form.author":"作者","common.form.dataname":"資料名稱","common.form.datadate":"資料日期","common.form.providername":"提供者名稱","common.form.subject":"主旨","common.form.selectQuetionType":"請選擇一個問題類型","common.form.dataProvide":"資料提供","common.form.valid.error.email":"您輸入無效的 e-mail!","common.form.male":"男","common.form.female":"女","common.form.dataname.placeholder":"可填書名、期刊名等","common.form.provider.notice":"(此名稱將會顯示於此網站上)","common.form.code":"驗證碼","common.form.code.error":"驗證碼錯誤","common.form.attachment":"附件上傳","common.form.attachment.valid.error":"附件上傳上限為2MB","common.form.attachment.hint":"上傳附件大小限制:2MB","common.form.contactUs":"聯繫我們","common.form.error":"表單尚未完成 請檢察必填項目"};const ki=e=>Ao(Lo({muiNotifcation:ve,...e}),window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__()),ji=({children:e,reducers:r})=>{const[n,i]=o(),{params:{locale:s}}=Te(),c=Ae();return a((()=>{if(s&&s.length<9&&Ei.some((({value:e})=>e===s))){const e={en:_i,zhtw:xi,zhcn:Oi}[s.replace("-","")];bi.get(`/locales/${s}.json`).then((t=>i({locale:s,messages:{...e,...t.data}}))).catch((()=>{bi.get("/locales/en.json").then((e=>i({locale:"en",messages:{..._i,...e.data}}))).catch((()=>i({locale:s,messages:e})))}))}else(({history:e,currentLanguage:t,nextLanguage:r})=>{const{location:{pathname:n,search:o}}=e;if(t&&n.startsWith(`/${t}`))e.push({pathname:n.replace(`/${t}`,`/${wi(r)}`),search:o});else{const t=(navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage).toLowerCase();e.push({pathname:`/${wi(t)}`})}})({history:c})}),[s]),n?t.createElement(Po,{store:ki(r)},t.createElement(ko,{locale:n.locale,messages:n.messages},e)):t.createElement(Se,null)};ji.defaultProps={reducers:{}},ji.propTypes={children:f.objectOf(f.any).isRequired,reducers:f.objectOf(f.any)};const Ri=({children:e,enqueueSnackbar:r,closeSnackbar:n})=>{const o=ge();return a((()=>{r&&n&&o({type:ye,enqueueSnackbar:r,closeSnackbar:n})}),[r,n]),t.createElement(t.Fragment,null,e)};Ri.defaultProps={children:void 0,enqueueSnackbar:void 0,closeSnackbar:void 0},Ri.propTypes={children:f.node,enqueueSnackbar:f.func,closeSnackbar:f.func};var Ci=function(e){var r=e.children,n=e.reducers,o=e.theme,a=e.darkMode,i=Hr((({darkMode:e})=>{const{primaryColor:t,secondaryColor:r}=zn,n=e?"#8c8c8c":"#d9d9d9";return N({typography:{button:{textTransform:"none"}},palette:e?{type:"dark",primary:{main:t},secondary:{main:r}}:{type:"light",primary:{main:t},secondary:{main:r}},shape:{borderRadius:3},props:{MuiButton:{variant:"contained",color:"primary"},MuiSelect:{MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},getContentAnchorEl:null}}},overrides:{MuiPaper:{root:{background:"white",minWidth:300}},MuiSelect:{root:{padding:8}},MuiButton:{root:{padding:"4px 8px","&$outlined":{padding:"4px 8px"}}},MuiInput:{root:{width:"100%",border:`1px solid ${n}`,borderRadius:3,padding:"2px 8px 0"},underline:{"&::before":{display:"none"},"&::after":{display:"none"}}},MuiAutocomplete:{inputRoot:{paddingRight:"4px !important",backgroundColor:e?"#303030":"#fff","&:hover .MuiOutlinedInput-notchedOutline":{borderColor:t}},endAdornment:{display:"none"}},MuiChip:{root:{height:"28px",borderRadius:"2px",backgroundColor:e?"#595959":"#f5f5f5",border:"1px solid",borderColor:n}},MuiOutlinedInput:{root:{borderColor:n,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",boxShadow:"0 0 0 2px rgb(24 144 255 / 20%)"}}},MuiRadio:{colorSecondary:{"&.Mui-checked":{color:t}}},MuiTypography:{root:{color:e?"#fff":"#595959"}},MuiTableHead:{root:{background:"#fafafa"}},MuiTableContainer:{root:{boxShadow:"initial",border:"1px solid #e0e0e0",borderBottom:0}},MuiDialogTitle:{root:{padding:"0 0 0 12px",background:t,color:"white"}},MuiDialogContent:{root:{padding:12,"&:first-child":"initial"}},MuiDialogActions:{root:{padding:12,borderTop:`1px solid ${n}`}}}})})({darkMode:void 0===a?Wr("(prefers-color-scheme: light)"):a}),o),s=t.createRef();return t.createElement(Fn,{ref:s,maxSnack:3},t.createElement(m,null,t.createElement(Le,null,t.createElement(Me,{path:"/:locale?",render:function(){return t.createElement(ji,{test:!0,reducers:n},t.createElement(Ri,{enqueueSnackbar:s.current&&s.current.enqueueSnackbar,closeSnackbar:s.current&&s.current.closeSnackbar},t.createElement($r,{theme:i},t.createElement(Xr,null),r)))}}))))};Ci.defaultProps={children:void 0,reducers:void 0,theme:void 0,darkMode:void 0},Ci.propTypes={children:f.node,reducers:f.objectOf(f.any),theme:f.objectOf(f.any),darkMode:f.bool};export{Ci as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as e,p as n,b as t,_ as o,u as r,g as i,z as a}from"./capitalize-e92d0507.js";import*as c from"react";import*as s from"react-dom";import"prop-types";import{o as l}from"./ownerDocument-e276d08d.js";import{c as d}from"./createChainedFunction-8d6683d4.js";import{u}from"./useForkRef-58783e4b.js";import{u as f}from"./useEventCallback-8817ed1c.js";import{o as p}from"./ownerWindow-19cabe15.js";import{P as m}from"./Portal-edb523c5.js";function v(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),n}function h(e,n){n?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function b(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function y(e,t,o){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,a=[t,o].concat(n(r)),c=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===a.indexOf(e)&&-1===c.indexOf(e.tagName)&&h(e,i)}))}function E(e,n){var t=-1;return e.some((function(e,o){return!!n(e)&&(t=o,!0)})),t}function g(e,n){var t,o=[],r=[],i=e.container;if(!n.disableScrollLock){if(function(e){var n=l(e);return n.body===e?p(n).innerWidth>n.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=v();o.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(b(i)+a,"px"),t=l(i).querySelectorAll(".mui-fixed"),[].forEach.call(t,(function(e){r.push(e.style.paddingRight),e.style.paddingRight="".concat(b(e)+a,"px")}))}var c=i.parentElement,s="HTML"===c.nodeName&&"scroll"===window.getComputedStyle(c)["overflow-y"]?c:i;o.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){t&&[].forEach.call(t,(function(e,n){r[n]?e.style.paddingRight=r[n]:e.style.removeProperty("padding-right")})),o.forEach((function(e){var n=e.value,t=e.el,o=e.key;n?t.style.setProperty(o,n):t.style.removeProperty(o)}))}}var k=function(){function n(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),this.modals=[],this.containers=[]}return e(n,[{key:"add",value:function(e,n){var t=this.modals.indexOf(e);if(-1!==t)return t;t=this.modals.length,this.modals.push(e),e.modalRef&&h(e.modalRef,!1);var o=function(e){var n=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&n.push(e)})),n}(n);y(n,e.mountNode,e.modalRef,o,!0);var r=E(this.containers,(function(e){return e.container===n}));return-1!==r?(this.containers[r].modals.push(e),t):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblingNodes:o}),t)}},{key:"mount",value:function(e,n){var t=E(this.containers,(function(n){return-1!==n.modals.indexOf(e)})),o=this.containers[t];o.restore||(o.restore=g(o,n))}},{key:"remove",value:function(e){var n=this.modals.indexOf(e);if(-1===n)return n;var t=E(this.containers,(function(n){return-1!==n.modals.indexOf(e)})),o=this.containers[t];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&h(e.modalRef,!0),y(o.container,e.mountNode,e.modalRef,o.hiddenSiblingNodes,!1),this.containers.splice(t,1);else{var r=o.modals[o.modals.length-1];r.modalRef&&h(r.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),n}();function R(e){var n=e.children,t=e.disableAutoFocus,o=void 0!==t&&t,r=e.disableEnforceFocus,i=void 0!==r&&r,a=e.disableRestoreFocus,d=void 0!==a&&a,f=e.getDoc,p=e.isEnabled,m=e.open,v=c.useRef(),h=c.useRef(null),b=c.useRef(null),y=c.useRef(),E=c.useRef(null),g=c.useCallback((function(e){E.current=s.findDOMNode(e)}),[]),k=u(n.ref,g),R=c.useRef();return c.useEffect((function(){R.current=m}),[m]),!R.current&&m&&"undefined"!=typeof window&&(y.current=f().activeElement),c.useEffect((function(){if(m){var e=l(E.current);o||!E.current||E.current.contains(e.activeElement)||(E.current.hasAttribute("tabIndex")||E.current.setAttribute("tabIndex",-1),E.current.focus());var n=function(){null!==E.current&&(e.hasFocus()&&!i&&p()&&!v.current?E.current&&!E.current.contains(e.activeElement)&&E.current.focus():v.current=!1)},t=function(n){!i&&p()&&9===n.keyCode&&e.activeElement===E.current&&(v.current=!0,n.shiftKey?b.current.focus():h.current.focus())};e.addEventListener("focus",n,!0),e.addEventListener("keydown",t,!0);var r=setInterval((function(){n()}),50);return function(){clearInterval(r),e.removeEventListener("focus",n,!0),e.removeEventListener("keydown",t,!0),d||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[o,i,d,p,m]),c.createElement(c.Fragment,null,c.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),c.cloneElement(n,{ref:k}),c.createElement("div",{tabIndex:0,ref:b,"data-test":"sentinelEnd"}))}var w={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},x=c.forwardRef((function(e,n){var r=e.invisible,i=void 0!==r&&r,a=e.open,s=t(e,["invisible","open"]);return a?c.createElement("div",o({"aria-hidden":!0,ref:n},s,{style:o({},w.root,i?w.invisible:{},s.style)})):null}));var C=new k,F=c.forwardRef((function(e,n){var p=r(),v=i({name:"MuiModal",props:o({},e),theme:p}),b=v.BackdropComponent,y=void 0===b?x:b,E=v.BackdropProps,g=v.children,k=v.closeAfterTransition,w=void 0!==k&&k,F=v.container,I=v.disableAutoFocus,A=void 0!==I&&I,P=v.disableBackdropClick,T=void 0!==P&&P,S=v.disableEnforceFocus,D=void 0!==S&&S,L=v.disableEscapeKeyDown,M=void 0!==L&&L,B=v.disablePortal,O=void 0!==B&&B,N=v.disableRestoreFocus,j=void 0!==N&&N,K=v.disableScrollLock,z=void 0!==K&&K,W=v.hideBackdrop,H=void 0!==W&&W,q=v.keepMounted,Y=void 0!==q&&q,_=v.manager,G=void 0===_?C:_,J=v.onBackdropClick,Q=v.onClose,U=v.onEscapeKeyDown,V=v.onRendered,X=v.open,Z=t(v,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),$=c.useState(!0),ee=$[0],ne=$[1],te=c.useRef({}),oe=c.useRef(null),re=c.useRef(null),ie=u(re,n),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(v),ce=function(){return l(oe.current)},se=function(){return te.current.modalRef=re.current,te.current.mountNode=oe.current,te.current},le=function(){G.mount(se(),{disableScrollLock:z}),re.current.scrollTop=0},de=f((function(){var e=function(e){return e="function"==typeof e?e():e,s.findDOMNode(e)}(F)||ce().body;G.add(se(),e),re.current&&le()})),ue=c.useCallback((function(){return G.isTopModal(se())}),[G]),fe=f((function(e){oe.current=e,e&&(V&&V(),X&&ue()?le():h(re.current,!0))})),pe=c.useCallback((function(){G.remove(se())}),[G]);if(c.useEffect((function(){return function(){pe()}}),[pe]),c.useEffect((function(){X?de():ae&&w||pe()}),[X,pe,ae,w,de]),!Y&&!X&&(!ae||ee))return null;var me=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(p||{zIndex:a}),ve={};return void 0===g.props.tabIndex&&(ve.tabIndex=g.props.tabIndex||"-1"),ae&&(ve.onEnter=d((function(){ne(!1)}),g.props.onEnter),ve.onExited=d((function(){ne(!0),w&&pe()}),g.props.onExited)),c.createElement(m,{ref:fe,container:F,disablePortal:O},c.createElement("div",o({ref:ie,onKeyDown:function(e){"Escape"===e.key&&ue()&&(U&&U(e),M||(e.stopPropagation(),Q&&Q(e,"escapeKeyDown")))},role:"presentation"},Z,{style:o({},me.root,!X&&ee?me.hidden:{},Z.style)}),H?null:c.createElement(y,o({open:X,onClick:function(e){e.target===e.currentTarget&&(J&&J(e),!T&&Q&&Q(e,"backdropClick"))}},E)),c.createElement(R,{disableEnforceFocus:D,disableAutoFocus:A,disableRestoreFocus:j,getDoc:ce,isEnabled:ue,open:X},c.cloneElement(g,ve))))}));export{F as M,v as g};
|
package/lib/components/Modal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import
|
|
1
|
+
import*as e from"react";import t from"react";import{a as o}from"./index-767b2843.js";import a from"prop-types";import r from"./Button.js";import{s as l}from"./style-inject.es-1f59c1d0.js";import{D as n,a as c,b as i,c as s}from"./DialogTitle-e0e78621.js";import{I as m}from"./IconButton-19970f38.js";import{c as p}from"./createSvgIcon-c92a409c.js";import"./Button-6271d361.js";import"./capitalize-e92d0507.js";import"react-is";import"./ButtonBase-cfca0fe1.js";import"react-dom";import"./useForkRef-58783e4b.js";import"./useEventCallback-8817ed1c.js";import"./useIsFocusVisible-217260c3.js";import"./CircularProgress-537ad812.js";import"./Modal-2e8b3262.js";import"./ownerDocument-e276d08d.js";import"./createChainedFunction-8d6683d4.js";import"./ownerWindow-19cabe15.js";import"./Portal-edb523c5.js";import"./Backdrop-3c472376.js";import"./Fade-4a3713bb.js";import"./utils-256c7d92.js";import"./Paper-f4cc750c.js";import"./Typography-8814c5aa.js";import"./SvgIcon-ae419ec7.js";var d=p(e.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}));l(".modal__title h2 {\n display: flex;\n align-items: center; }\n\n.modal__title__text {\n flex: 1;\n font-size: 16px;\n padding: 8px 0; }\n\n.modal__title__close {\n cursor: pointer;\n color: white; }\n");var f=function(e){var a=e.className,l=e.closable,p=e.title,f=e.children,u=e.footer,j=e.cancelText,_=e.okText,b=e.visible,v=e.onOk,x=e.onCancel;return t.createElement(n,{className:o("modal",a),open:b||!1,onClose:function(){return l&&x()}},p&&t.createElement(c,{className:"modal__title"},t.createElement("span",{className:"modal__title__text"},p),l&&t.createElement(m,{onClick:x},t.createElement(d,{className:"modal__title__close"}))),t.createElement(i,null,f),null!==u&&t.createElement(s,null,void 0===u?t.createElement(t.Fragment,null,t.createElement(r,{onClick:x,color:"default"},j),t.createElement(r,{onClick:v,color:"primary",autoFocus:!0},_)):u))};f.defaultProps={className:void 0,closable:!0,title:void 0,children:void 0,footer:void 0,cancelText:"Cancel",okText:"Ok",visible:void 0,onOk:function(){},onCancel:function(){}},f.propTypes={className:a.string,closable:a.bool,title:a.node,children:a.node,footer:a.node,cancelText:a.string,okText:a.string,visible:a.bool,onOk:a.func,onCancel:a.func};export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as a,_ as e,b as o,c as r}from"./capitalize-e92d0507.js";import*as t from"react";import"prop-types";var n=t.forwardRef((function(a,n){var i=a.classes,s=a.className,d=a.component,c=void 0===d?"div":d,l=a.square,p=void 0!==l&&l,u=a.elevation,v=void 0===u?1:u,m=a.variant,f=void 0===m?"elevation":m,b=o(a,["classes","className","component","square","elevation","variant"]);return t.createElement(c,e({className:r(i.root,s,"outlined"===f?i.outlined:i["elevation".concat(v)],!p&&i.rounded),ref:n},b))})),i=a((function(a){var o={};return a.shadows.forEach((function(a,e){o["elevation".concat(e)]={boxShadow:a}})),e({root:{backgroundColor:a.palette.background.paper,color:a.palette.text.primary,transition:a.transitions.create("box-shadow")},rounded:{borderRadius:a.shape.borderRadius},outlined:{border:"1px solid ".concat(a.palette.divider)}},o)}),{name:"MuiPaper"})(n);export{i as P};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as e,u as t,_ as n}from"./
|
|
1
|
+
import{b as e,u as t,_ as n}from"./capitalize-e92d0507.js";import*as r from"react";import"prop-types";import{c as o}from"./createChainedFunction-8d6683d4.js";import{u as i,s as a}from"./useForkRef-58783e4b.js";import{P as s}from"./Portal-edb523c5.js";
|
|
2
2
|
/**!
|
|
3
3
|
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
|
4
4
|
* @version 1.16.1-lts
|
|
@@ -22,4 +22,4 @@ import{b as e,u as t,_ as n}from"./withStyles-43125883.js";import*as r from"reac
|
|
|
22
22
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
23
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
24
|
* SOFTWARE.
|
|
25
|
-
*/var f="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,p=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(f&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var l=f&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),p))}};function u(e){return e&&"[object Function]"==={}.toString.call(e)}function c(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function d(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function h(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=c(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:h(d(e))}function m(e){return e&&e.referenceNode?e.referenceNode:e}var v=f&&!(!window.MSInputMethodContext||!document.documentMode),g=f&&/MSIE 10/.test(navigator.userAgent);function b(e){return 11===e?v:10===e?g:v||g}function w(e){if(!e)return document.documentElement;for(var t=b(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===c(n,"position")?w(n):n:e?e.ownerDocument.documentElement:document.documentElement}function y(e){return null!==e.parentNode?y(e.parentNode):e}function E(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,f=i.commonAncestorContainer;if(e!==f&&t!==f||r.contains(o))return"BODY"===(s=(a=f).nodeName)||"HTML"!==s&&w(a.firstElementChild)!==a?w(f):f;var p=y(e);return p.host?E(p.host,t):E(e,y(t).host)}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=x(t,"top"),o=x(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function L(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function T(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],b(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function M(e){var t=e.body,n=e.documentElement,r=b(10)&&getComputedStyle(n);return{height:T("Height",t,n,r),width:T("Width",t,n,r)}}var D=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},N=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),F=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function k(e){return C({},e,{right:e.left+e.width,bottom:e.top+e.height})}function P(e){var t={};try{if(b(10)){t=e.getBoundingClientRect();var n=x(e,"top"),r=x(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?M(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,f=e.offsetWidth-a,p=e.offsetHeight-s;if(f||p){var l=c(e);f-=L(l,"x"),p-=L(l,"y"),o.width-=f,o.height-=p}return k(o)}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=b(10),o="HTML"===t.nodeName,i=P(e),a=P(t),s=h(e),f=c(t),p=parseFloat(f.borderTopWidth),l=parseFloat(f.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var u=k({top:i.top-a.top-p,left:i.left-a.left-l,width:i.width,height:i.height});if(u.marginTop=0,u.marginLeft=0,!r&&o){var d=parseFloat(f.marginTop),m=parseFloat(f.marginLeft);u.top-=p-d,u.bottom-=p-d,u.left-=l-m,u.right-=l-m,u.marginTop=d,u.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(u=O(u,t)),u}function S(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=H(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:x(n),s=t?0:x(n,"left"),f={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return k(f)}function B(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===c(e,"position"))return!0;var n=d(e);return!!n&&B(n)}function A(e){if(!e||!e.parentElement||b())return document.documentElement;for(var t=e.parentElement;t&&"none"===c(t,"transform");)t=t.parentElement;return t||document.documentElement}function W(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?A(e):E(e,m(t));if("viewport"===r)i=S(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=h(d(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var f=H(s,a,o);if("HTML"!==s.nodeName||B(a))i=f;else{var p=M(e.ownerDocument),l=p.height,u=p.width;i.top+=f.top-f.marginTop,i.bottom=l+f.top,i.left+=f.left-f.marginLeft,i.right=u+f.left}}var c="number"==typeof(n=n||0);return i.left+=c?n:n.left||0,i.top+=c?n:n.top||0,i.right-=c?n:n.right||0,i.bottom-=c?n:n.bottom||0,i}function j(e){return e.width*e.height}function R(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=W(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},f=Object.keys(s).map((function(e){return C({key:e},s[e],{area:j(s[e])})})).sort((function(e,t){return t.area-e.area})),p=f.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=p.length>0?p[0].key:f[0].key,u=e.split("-")[1];return l+(u?"-"+u:"")}function I(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?A(t):E(t,m(n));return H(n,o,r)}function U(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Y(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function V(e,t,n){n=n.split("-")[0];var r=U(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",f=i?"height":"width",p=i?"width":"height";return o[a]=t[a]+t[f]/2-r[f]/2,o[s]=n===s?t[s]-r[p]:t[Y(s)],o}function q(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function G(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=q(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&u(n)&&(t.offsets.popper=k(t.offsets.popper),t.offsets.reference=k(t.offsets.reference),t=n(t,e))})),t}function z(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=I(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=R(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=V(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=G(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function _(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function X(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function J(){return this.state.isDestroyed=!0,_(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[X("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function K(e){var t=e.ownerDocument;return t?t.defaultView:window}function Q(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||Q(h(i.parentNode),t,n,r),r.push(i)}function Z(e,t,n,r){n.updateBound=r,K(e).addEventListener("resize",n.updateBound,{passive:!0});var o=h(e);return Q(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function $(){this.state.eventsEnabled||(this.state=Z(this.reference,this.options,this.state,this.scheduleUpdate))}function ee(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,K(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function te(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ne(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&te(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var re=f&&/Firefox/i.test(navigator.userAgent);function oe(e,t,n){var r=q(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var ie=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ae=ie.slice(3);function se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ae.indexOf(e),r=ae.slice(n+1).concat(ae.slice(0,n));return t?r.reverse():r}var fe="flip",pe="clockwise",le="counterclockwise";function ue(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(q(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var f=/\s*,\s*|\s+/,p=-1!==s?[a.slice(0,s).concat([a[s].split(f)[0]]),[a[s].split(f)[1]].concat(a.slice(s+1))]:[a];return(p=p.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return k(s)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){te(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var ce={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),f=s?"left":"top",p=s?"width":"height",l={start:F({},f,i[f]),end:F({},f,i[f]+i[p]-a[p])};e.offsets.popper=C({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],f=void 0;return f=te(+n)?[+n,0]:ue(n,i,a,s),"left"===s?(i.top+=f[0],i.left-=f[1]):"right"===s?(i.top+=f[0],i.left+=f[1]):"top"===s?(i.left+=f[0],i.top-=f[1]):"bottom"===s&&(i.left+=f[0],i.top+=f[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||w(e.instance.popper);e.instance.reference===n&&(n=w(n));var r=X("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var f=W(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=f;var p=t.priority,l=e.offsets.popper,u={primary:function(e){var n=l[e];return l[e]<f[e]&&!t.escapeWithReference&&(n=Math.max(l[e],f[e])),F({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>f[e]&&!t.escapeWithReference&&(r=Math.min(l[n],f[e]-("right"===e?l.width:l.height))),F({},n,r)}};return p.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=C({},l,u[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",f=a?"left":"top",p=a?"width":"height";return n[s]<i(r[f])&&(e.offsets.popper[f]=i(r[f])-n[p]),n[f]>i(r[s])&&(e.offsets.popper[f]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!oe(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,f=-1!==["left","right"].indexOf(o),p=f?"height":"width",l=f?"Top":"Left",u=l.toLowerCase(),d=f?"left":"top",h=f?"bottom":"right",m=U(r)[p];s[h]-m<a[u]&&(e.offsets.popper[u]-=a[u]-(s[h]-m)),s[u]+m>a[h]&&(e.offsets.popper[u]+=s[u]+m-a[h]),e.offsets.popper=k(e.offsets.popper);var v=s[u]+s[p]/2-m/2,g=c(e.instance.popper),b=parseFloat(g["margin"+l]),w=parseFloat(g["border"+l+"Width"]),y=v-e.offsets.popper[u]-b-w;return y=Math.max(Math.min(a[p]-m,y),0),e.arrowElement=r,e.offsets.arrow=(F(n={},u,Math.round(y)),F(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(_(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=W(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Y(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case fe:a=[r,o];break;case pe:a=se(r);break;case le:a=se(r,!0);break;default:a=t.behavior}return a.forEach((function(s,f){if(r!==s||a.length===f+1)return e;r=e.placement.split("-")[0],o=Y(r);var p=e.offsets.popper,l=e.offsets.reference,u=Math.floor,c="left"===r&&u(p.right)>u(l.left)||"right"===r&&u(p.left)<u(l.right)||"top"===r&&u(p.bottom)>u(l.top)||"bottom"===r&&u(p.top)<u(l.bottom),d=u(p.left)<u(n.left),h=u(p.right)>u(n.right),m=u(p.top)<u(n.top),v=u(p.bottom)>u(n.bottom),g="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),w=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&v),y=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&d||!b&&"start"===i&&v||!b&&"end"===i&&m),E=w||y;(c||g||E)&&(e.flipped=!0,(c||g)&&(r=a[f+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=C({},e.offsets.popper,V(e.instance.popper,e.offsets.reference,e.placement)),e=G(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=Y(t),e.offsets.popper=k(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!oe(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=q(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=q(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=w(e.instance.popper),f=P(s),p={position:o.position},l=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},f=i(o.width),p=i(r.width),l=-1!==["left","right"].indexOf(e.placement),u=-1!==e.placement.indexOf("-"),c=t?l||u||f%2==p%2?i:a:s,d=t?i:s;return{left:c(f%2==1&&p%2==1&&!u&&t?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:c(r.right)}}(e,window.devicePixelRatio<2||!re),u="bottom"===n?"top":"bottom",c="right"===r?"left":"right",d=X("transform"),h=void 0,m=void 0;if(m="bottom"===u?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-f.height+l.bottom:l.top,h="right"===c?"HTML"===s.nodeName?-s.clientWidth+l.right:-f.width+l.right:l.left,a&&d)p[d]="translate3d("+h+"px, "+m+"px, 0)",p[u]=0,p[c]=0,p.willChange="transform";else{var v="bottom"===u?-1:1,g="right"===c?-1:1;p[u]=m*v,p[c]=h*g,p.willChange=u+", "+c}var b={"x-placement":e.placement};return e.attributes=C({},b,e.attributes),e.styles=C({},p,e.styles),e.arrowStyles=C({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ne(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ne(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=I(o,t,e,n.positionFixed),a=R(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),ne(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},de=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};D(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=l(this.update.bind(this)),this.options=C({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(C({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=C({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return C({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&u(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return N(e,[{key:"update",value:function(){return z.call(this)}},{key:"destroy",value:function(){return J.call(this)}},{key:"enableEventListeners",value:function(){return $.call(this)}},{key:"disableEventListeners",value:function(){return ee.call(this)}}]),e}();de.Utils=("undefined"!=typeof window?window:global).PopperUtils,de.placements=ie,de.Defaults=ce;var he=de;function me(e){return"function"==typeof e?e():e}var ve="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,ge={},be=r.forwardRef((function(f,p){var l=f.anchorEl,u=f.children,c=f.container,d=f.disablePortal,h=void 0!==d&&d,m=f.keepMounted,v=void 0!==m&&m,g=f.modifiers,b=f.open,w=f.placement,y=void 0===w?"bottom":w,E=f.popperOptions,x=void 0===E?ge:E,O=f.popperRef,L=f.style,T=f.transition,M=void 0!==T&&T,D=e(f,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),N=r.useRef(null),F=i(N,p),C=r.useRef(null),k=i(C,O),P=r.useRef(k);ve((function(){P.current=k}),[k]),r.useImperativeHandle(O,(function(){return C.current}),[]);var H=r.useState(!0),S=H[0],B=H[1],A=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(y,t()),W=r.useState(A),j=W[0],R=W[1];r.useEffect((function(){C.current&&C.current.update()}));var I=r.useCallback((function(){if(N.current&&l&&b){C.current&&(C.current.destroy(),P.current(null));var e=function(e){R(e.placement)};me(l);var t=new he(me(l),N.current,n({placement:A},x,{modifiers:n({},h?{}:{preventOverflow:{boundariesElement:"window"}},g,x.modifiers),onCreate:o(e,x.onCreate),onUpdate:o(e,x.onUpdate)}));P.current(t)}}),[l,h,g,b,A,x]),U=r.useCallback((function(e){a(F,e),I()}),[F,I]),Y=function(){C.current&&(C.current.destroy(),P.current(null))};if(r.useEffect((function(){return function(){Y()}}),[]),r.useEffect((function(){b||M||Y()}),[b,M]),!v&&!b&&(!M||S))return null;var V={placement:j};return M&&(V.TransitionProps={in:b,onEnter:function(){B(!1)},onExited:function(){B(!0),Y()}}),r.createElement(s,{disablePortal:h,container:c},r.createElement("div",n({ref:U,role:"tooltip"},D,{style:n({position:"fixed",top:0,left:0,display:b||!v||M?null:"none"},L)}),"function"==typeof u?u(V):u))}));export{be as P};
|
|
25
|
+
*/var f="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,p=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(f&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var l=f&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),p))}};function u(e){return e&&"[object Function]"==={}.toString.call(e)}function c(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function d(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function h(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=c(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:h(d(e))}function m(e){return e&&e.referenceNode?e.referenceNode:e}var v=f&&!(!window.MSInputMethodContext||!document.documentMode),g=f&&/MSIE 10/.test(navigator.userAgent);function b(e){return 11===e?v:10===e?g:v||g}function w(e){if(!e)return document.documentElement;for(var t=b(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===c(n,"position")?w(n):n:e?e.ownerDocument.documentElement:document.documentElement}function y(e){return null!==e.parentNode?y(e.parentNode):e}function E(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,f=i.commonAncestorContainer;if(e!==f&&t!==f||r.contains(o))return"BODY"===(s=(a=f).nodeName)||"HTML"!==s&&w(a.firstElementChild)!==a?w(f):f;var p=y(e);return p.host?E(p.host,t):E(e,y(t).host)}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function O(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=x(t,"top"),o=x(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function L(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function T(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],b(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function M(e){var t=e.body,n=e.documentElement,r=b(10)&&getComputedStyle(n);return{height:T("Height",t,n,r),width:T("Width",t,n,r)}}var D=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},N=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),F=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function C(e){return k({},e,{right:e.left+e.width,bottom:e.top+e.height})}function P(e){var t={};try{if(b(10)){t=e.getBoundingClientRect();var n=x(e,"top"),r=x(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?M(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,f=e.offsetWidth-a,p=e.offsetHeight-s;if(f||p){var l=c(e);f-=L(l,"x"),p-=L(l,"y"),o.width-=f,o.height-=p}return C(o)}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=b(10),o="HTML"===t.nodeName,i=P(e),a=P(t),s=h(e),f=c(t),p=parseFloat(f.borderTopWidth),l=parseFloat(f.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var u=C({top:i.top-a.top-p,left:i.left-a.left-l,width:i.width,height:i.height});if(u.marginTop=0,u.marginLeft=0,!r&&o){var d=parseFloat(f.marginTop),m=parseFloat(f.marginLeft);u.top-=p-d,u.bottom-=p-d,u.left-=l-m,u.right-=l-m,u.marginTop=d,u.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(u=O(u,t)),u}function S(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=H(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:x(n),s=t?0:x(n,"left"),f={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return C(f)}function B(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===c(e,"position"))return!0;var n=d(e);return!!n&&B(n)}function A(e){if(!e||!e.parentElement||b())return document.documentElement;for(var t=e.parentElement;t&&"none"===c(t,"transform");)t=t.parentElement;return t||document.documentElement}function W(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?A(e):E(e,m(t));if("viewport"===r)i=S(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=h(d(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var f=H(s,a,o);if("HTML"!==s.nodeName||B(a))i=f;else{var p=M(e.ownerDocument),l=p.height,u=p.width;i.top+=f.top-f.marginTop,i.bottom=l+f.top,i.left+=f.left-f.marginLeft,i.right=u+f.left}}var c="number"==typeof(n=n||0);return i.left+=c?n:n.left||0,i.top+=c?n:n.top||0,i.right-=c?n:n.right||0,i.bottom-=c?n:n.bottom||0,i}function j(e){return e.width*e.height}function R(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=W(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},f=Object.keys(s).map((function(e){return k({key:e},s[e],{area:j(s[e])})})).sort((function(e,t){return t.area-e.area})),p=f.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=p.length>0?p[0].key:f[0].key,u=e.split("-")[1];return l+(u?"-"+u:"")}function I(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?A(t):E(t,m(n));return H(n,o,r)}function U(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function Y(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function V(e,t,n){n=n.split("-")[0];var r=U(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",f=i?"height":"width",p=i?"width":"height";return o[a]=t[a]+t[f]/2-r[f]/2,o[s]=n===s?t[s]-r[p]:t[Y(s)],o}function q(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function z(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=q(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&u(n)&&(t.offsets.popper=C(t.offsets.popper),t.offsets.reference=C(t.offsets.reference),t=n(t,e))})),t}function G(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=I(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=R(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=V(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=z(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function _(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function X(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function J(){return this.state.isDestroyed=!0,_(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[X("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function K(e){var t=e.ownerDocument;return t?t.defaultView:window}function Q(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||Q(h(i.parentNode),t,n,r),r.push(i)}function Z(e,t,n,r){n.updateBound=r,K(e).addEventListener("resize",n.updateBound,{passive:!0});var o=h(e);return Q(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function $(){this.state.eventsEnabled||(this.state=Z(this.reference,this.options,this.state,this.scheduleUpdate))}function ee(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,K(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function te(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ne(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&te(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var re=f&&/Firefox/i.test(navigator.userAgent);function oe(e,t,n){var r=q(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var ie=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ae=ie.slice(3);function se(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ae.indexOf(e),r=ae.slice(n+1).concat(ae.slice(0,n));return t?r.reverse():r}var fe="flip",pe="clockwise",le="counterclockwise";function ue(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(q(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var f=/\s*,\s*|\s+/,p=-1!==s?[a.slice(0,s).concat([a[s].split(f)[0]]),[a[s].split(f)[1]].concat(a.slice(s+1))]:[a];return p=p.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){return C("%p"===a?n:r)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),p.forEach((function(e,t){e.forEach((function(n,r){te(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var ce={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),f=s?"left":"top",p=s?"width":"height",l={start:F({},f,i[f]),end:F({},f,i[f]+i[p]-a[p])};e.offsets.popper=k({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],f=void 0;return f=te(+n)?[+n,0]:ue(n,i,a,s),"left"===s?(i.top+=f[0],i.left-=f[1]):"right"===s?(i.top+=f[0],i.left+=f[1]):"top"===s?(i.left+=f[0],i.top-=f[1]):"bottom"===s&&(i.left+=f[0],i.top+=f[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||w(e.instance.popper);e.instance.reference===n&&(n=w(n));var r=X("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var f=W(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=f;var p=t.priority,l=e.offsets.popper,u={primary:function(e){var n=l[e];return l[e]<f[e]&&!t.escapeWithReference&&(n=Math.max(l[e],f[e])),F({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>f[e]&&!t.escapeWithReference&&(r=Math.min(l[n],f[e]-("right"===e?l.width:l.height))),F({},n,r)}};return p.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=k({},l,u[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",f=a?"left":"top",p=a?"width":"height";return n[s]<i(r[f])&&(e.offsets.popper[f]=i(r[f])-n[p]),n[f]>i(r[s])&&(e.offsets.popper[f]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!oe(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,f=-1!==["left","right"].indexOf(o),p=f?"height":"width",l=f?"Top":"Left",u=l.toLowerCase(),d=f?"left":"top",h=f?"bottom":"right",m=U(r)[p];s[h]-m<a[u]&&(e.offsets.popper[u]-=a[u]-(s[h]-m)),s[u]+m>a[h]&&(e.offsets.popper[u]+=s[u]+m-a[h]),e.offsets.popper=C(e.offsets.popper);var v=s[u]+s[p]/2-m/2,g=c(e.instance.popper),b=parseFloat(g["margin"+l]),w=parseFloat(g["border"+l+"Width"]),y=v-e.offsets.popper[u]-b-w;return y=Math.max(Math.min(a[p]-m,y),0),e.arrowElement=r,e.offsets.arrow=(F(n={},u,Math.round(y)),F(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(_(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=W(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=Y(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case fe:a=[r,o];break;case pe:a=se(r);break;case le:a=se(r,!0);break;default:a=t.behavior}return a.forEach((function(s,f){if(r!==s||a.length===f+1)return e;r=e.placement.split("-")[0],o=Y(r);var p=e.offsets.popper,l=e.offsets.reference,u=Math.floor,c="left"===r&&u(p.right)>u(l.left)||"right"===r&&u(p.left)<u(l.right)||"top"===r&&u(p.bottom)>u(l.top)||"bottom"===r&&u(p.top)<u(l.bottom),d=u(p.left)<u(n.left),h=u(p.right)>u(n.right),m=u(p.top)<u(n.top),v=u(p.bottom)>u(n.bottom),g="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),w=!!t.flipVariations&&(b&&"start"===i&&d||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&v),y=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&d||!b&&"start"===i&&v||!b&&"end"===i&&m),E=w||y;(c||g||E)&&(e.flipped=!0,(c||g)&&(r=a[f+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=k({},e.offsets.popper,V(e.instance.popper,e.offsets.reference,e.placement)),e=z(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=Y(t),e.offsets.popper=C(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!oe(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=q(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=q(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==i?i:t.gpuAcceleration,s=w(e.instance.popper),f=P(s),p={position:o.position},l=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},f=i(o.width),p=i(r.width),l=-1!==["left","right"].indexOf(e.placement),u=-1!==e.placement.indexOf("-"),c=t?l||u||f%2==p%2?i:a:s,d=t?i:s;return{left:c(f%2==1&&p%2==1&&!u&&t?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:c(r.right)}}(e,window.devicePixelRatio<2||!re),u="bottom"===n?"top":"bottom",c="right"===r?"left":"right",d=X("transform"),h=void 0,m=void 0;if(m="bottom"===u?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-f.height+l.bottom:l.top,h="right"===c?"HTML"===s.nodeName?-s.clientWidth+l.right:-f.width+l.right:l.left,a&&d)p[d]="translate3d("+h+"px, "+m+"px, 0)",p[u]=0,p[c]=0,p.willChange="transform";else{var v="bottom"===u?-1:1,g="right"===c?-1:1;p[u]=m*v,p[c]=h*g,p.willChange=u+", "+c}var b={"x-placement":e.placement};return e.attributes=k({},b,e.attributes),e.styles=k({},p,e.styles),e.arrowStyles=k({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ne(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ne(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=I(o,t,e,n.positionFixed),a=R(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),ne(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},de={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:ce},he=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};D(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=l(this.update.bind(this)),this.options=k({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=k({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return k({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&u(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return N(e,[{key:"update",value:function(){return G.call(this)}},{key:"destroy",value:function(){return J.call(this)}},{key:"enableEventListeners",value:function(){return $.call(this)}},{key:"disableEventListeners",value:function(){return ee.call(this)}}]),e}();he.Utils=("undefined"!=typeof window?window:global).PopperUtils,he.placements=ie,he.Defaults=de;var me=he;function ve(e){return"function"==typeof e?e():e}var ge="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,be={},we=r.forwardRef((function(f,p){var l=f.anchorEl,u=f.children,c=f.container,d=f.disablePortal,h=void 0!==d&&d,m=f.keepMounted,v=void 0!==m&&m,g=f.modifiers,b=f.open,w=f.placement,y=void 0===w?"bottom":w,E=f.popperOptions,x=void 0===E?be:E,O=f.popperRef,L=f.style,T=f.transition,M=void 0!==T&&T,D=e(f,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),N=r.useRef(null),F=i(N,p),k=r.useRef(null),C=i(k,O),P=r.useRef(C);ge((function(){P.current=C}),[C]),r.useImperativeHandle(O,(function(){return k.current}),[]);var H=r.useState(!0),S=H[0],B=H[1],A=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(y,t()),W=r.useState(A),j=W[0],R=W[1];r.useEffect((function(){k.current&&k.current.update()}));var I=r.useCallback((function(){if(N.current&&l&&b){k.current&&(k.current.destroy(),P.current(null));var e=function(e){R(e.placement)};ve(l);var t=new me(ve(l),N.current,n({placement:A},x,{modifiers:n({},h?{}:{preventOverflow:{boundariesElement:"window"}},g,x.modifiers),onCreate:o(e,x.onCreate),onUpdate:o(e,x.onUpdate)}));P.current(t)}}),[l,h,g,b,A,x]),U=r.useCallback((function(e){a(F,e),I()}),[F,I]),Y=function(){k.current&&(k.current.destroy(),P.current(null))};if(r.useEffect((function(){return function(){Y()}}),[]),r.useEffect((function(){b||M||Y()}),[b,M]),!v&&!b&&(!M||S))return null;var V={placement:j};return M&&(V.TransitionProps={in:b,onEnter:function(){B(!1)},onExited:function(){B(!0),Y()}}),r.createElement(s,{disablePortal:h,container:c},r.createElement("div",n({ref:U,role:"tooltip"},D,{style:n({position:"fixed",top:0,left:0,display:b||!v||M?null:"none"},L)}),"function"==typeof u?u(V):u))})),ye=we;export{ye as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import*as e from"react";import*as n from"react-dom";import"prop-types";import{u as t,s as o}from"./useForkRef-58783e4b.js";var r="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,f=e.forwardRef((function(f,i){var u=f.children,a=f.container,c=f.disablePortal,d=void 0!==c&&c,l=f.onRendered,s=e.useState(null),m=s[0],p=s[1],y=t(e.isValidElement(u)?u.ref:null,i);return r((function(){d||p(function(e){return e="function"==typeof e?e():e,n.findDOMNode(e)}(a)||document.body)}),[a,d]),r((function(){if(m&&!d)return o(i,m),function(){o(i,null)}}),[i,m,d]),r((function(){l&&(m||d)&&l()}),[l,m,d]),d?e.isValidElement(u)?e.cloneElement(u,{ref:y}):u:m?n.createPortal(u,m):m}));export{f as P};
|
package/lib/components/Radio.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e}from"./_rollupPluginBabelHelpers-
|
|
1
|
+
import{d as e}from"./_rollupPluginBabelHelpers-9a98782c.js";import o from"react";import t from"prop-types";import r from"./MUITheme.js";import{s as i}from"./style-inject.es-1f59c1d0.js";import{R as a,a as s}from"./RadioGroup-ebfc5e6d.js";import{F as m}from"./FormControlLabel-6578b588.js";import"./react-router-dom-6469c1df.js";import"react-router";import"./capitalize-e92d0507.js";import"react-is";import"./isObjectLike-4a391d5d.js";import"./index-767b2843.js";import"react-dom";import"./Slide-ef2f2933.js";import"./debounce-65582d84.js";import"./useForkRef-58783e4b.js";import"./utils-256c7d92.js";import"./ownerDocument-e276d08d.js";import"./useEventCallback-8817ed1c.js";import"./SvgIcon-ae419ec7.js";import"./muiNotifcationReducer-75669c4f.js";import"http";import"https";import"url";import"stream";import"assert";import"tty";import"util";import"fs";import"net";import"zlib";import"./Loading.js";import"./CircularProgress-537ad812.js";import"./createSvgIcon-c92a409c.js";import"./createChainedFunction-8d6683d4.js";import"./useControlled-b5d6fb94.js";import"./unstable_useId-45c5b1e4.js";import"./useFormControl-479b5455.js";import"./IconButton-19970f38.js";import"./ButtonBase-cfca0fe1.js";import"./useIsFocusVisible-217260c3.js";import"./Typography-8814c5aa.js";i("");var n=function(t){var i=t.darkMode,n=t.className,p=t.name,l=t.defaultValue,d=t.value,c=t.size,u=t.style,f=t.direction,j=t.options,b=t.onChange;return o.createElement(r,{darkMode:i||!1},o.createElement(a,{className:"radioGroup",style:e({flexDirection:f},u),name:p,defaultValue:l||void 0,value:d||void 0,onChange:function(e){b&&b(e.target.value)}},Array.isArray(j)&&j.map((function(e){return o.createElement(m,{value:e.value,key:e.value,control:o.createElement(s,{disabled:e.disabled||!1,size:c,className:n}),label:e.label})}))))};n.defaultProps={darkMode:void 0,className:void 0,name:void 0,defaultValue:void 0,value:void 0,size:"small",style:void 0,direction:"row",options:void 0,onChange:function(){}},n.propTypes={darkMode:t.bool,className:t.string,name:t.string,defaultValue:t.oneOfType([t.string,t.number]),value:t.oneOfType([t.string,t.number]),size:t.string,style:t.objectOf(t.any),direction:t.string,options:t.arrayOf(t.any),onChange:t.func};export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w as e,b as a,_ as o,c as r,l as t,k as n,e as c}from"./capitalize-e92d0507.js";import*as s from"react";import"prop-types";import{S as i}from"./FormControlLabel-6578b588.js";import{c as l}from"./createSvgIcon-c92a409c.js";import{c as d}from"./createChainedFunction-8d6683d4.js";import{u as m}from"./useForkRef-58783e4b.js";import{u}from"./useControlled-b5d6fb94.js";import{u as f}from"./unstable_useId-45c5b1e4.js";var p=s.forwardRef((function(e,t){var n=e.classes,c=e.className,i=e.row,l=void 0!==i&&i,d=a(e,["classes","className","row"]);return s.createElement("div",o({className:r(n.root,c,l&&n.row),ref:t},d))})),h=e({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(p),v=l(s.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),C=l(s.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}));var b=e((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var a=e.checked,o=e.classes,t=e.fontSize;return s.createElement("div",{className:r(o.root,a&&o.checked)},s.createElement(v,{fontSize:t}),s.createElement(C,{fontSize:t,className:o.layer}))})),k=s.createContext();var g=s.createElement(b,{checked:!0}),y=s.createElement(b,null),E=s.forwardRef((function(e,t){var c=e.checked,l=e.classes,m=e.color,u=void 0===m?"secondary":m,f=e.name,p=e.onChange,h=e.size,v=void 0===h?"medium":h,C=a(e,["checked","classes","color","name","onChange","size"]),b=s.useContext(k),E=c,S=d(p,b&&b.onChange),w=f;return b&&(void 0===E&&(E=b.value===e.value),void 0===w&&(w=b.name)),s.createElement(i,o({color:u,type:"radio",icon:s.cloneElement(y,{fontSize:"small"===v?"small":"medium"}),checkedIcon:s.cloneElement(g,{fontSize:"small"===v?"small":"medium"}),classes:{root:r(l.root,l["color".concat(n(u))]),checked:l.checked,disabled:l.disabled},name:w,checked:E,onChange:S,ref:t},C))})),S=e((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:t(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:t(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(E),w=s.forwardRef((function(e,r){var t=e.actions,n=e.children,i=e.name,l=e.value,d=e.onChange,p=a(e,["actions","children","name","value","onChange"]),v=s.useRef(null),C=u({controlled:l,default:e.defaultValue,name:"RadioGroup"}),b=c(C,2),g=b[0],y=b[1];s.useImperativeHandle(t,(function(){return{focus:function(){var e=v.current.querySelector("input:not(:disabled):checked");e||(e=v.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var E=m(r,v),S=f(i);return s.createElement(k.Provider,{value:{name:S,onChange:function(e){y(e.target.value),d&&d(e,e.target.value)},value:g}},s.createElement(h,o({role:"radiogroup",ref:E},p),n))}));export{w as R,S as a};
|