ingred-ui 22.3.2 → 22.3.3
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/dist/components/index.d.ts +1 -0
- package/dist/index.es.js +245 -109
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +276 -140
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
overflow: ${({overflow:e})=>e};
|
|
47
47
|
transition: 0.3s all;
|
|
48
48
|
background-color: ${({theme:e})=>e.palette.white};
|
|
49
|
-
`,
|
|
49
|
+
`,S=e.forwardRef((function(t,n){var{title:r,expanded:a=!1,disabled:o=!1,onChange:l,children:c}=t,u=s(t,["title","expanded","disabled","onChange","children"]);const d=x(),[p,f]=e.useState(a),[m,g]=e.useState("0px"),[h,b]=e.useState("hidden"),v=e.useRef(null),y=e=>{var t,n,r,a;e?g(`${null!==(n=null===(t=v.current)||void 0===t?void 0:t.scrollHeight)&&void 0!==n?n:0}px`):(g(`${null!==(a=null===(r=v.current)||void 0===r?void 0:r.scrollHeight)&&void 0!==a?a:0}px`),b("hidden"),setTimeout((()=>g("0px")),100))},w=(e,t)=>{f(t),y(t),l&&l(e,t)};return e.useEffect((()=>{f(a),y(a)}),[a]),i.default.createElement(M,Object.assign({ref:n},u),i.default.createElement(H,{display:"flex",tabIndex:o?-1:0,role:"button","aria-expanded":p,"aria-controls":`accordion-content-${r}`,expanded:p,disabled:o,onClick:e=>{w(e,!p)},onKeyDown:e=>{"Enter"===e.key&&w(e,!p)}},i.default.createElement(N,null,r),i.default.createElement(Z,null,i.default.createElement(V,{expanded:p},i.default.createElement(I,{name:"arrow_bottom",size:"md",color:o?d.palette.text.disabled:"black"})))),i.default.createElement(D,{ref:v,height:m,overflow:h,onTransitionEnd:()=>{p&&(g("auto"),b("visible"))}},c))})),L=o.default.p`
|
|
50
50
|
color: ${({color:e})=>e};
|
|
51
51
|
text-align: ${({align:e})=>e};
|
|
52
52
|
font-size: ${({fontSize:e})=>e};
|
|
53
53
|
font-weight: ${({weight:e})=>e};
|
|
54
54
|
line-height: ${({lineHeight:e})=>e};
|
|
55
55
|
word-break: break-all;
|
|
56
|
-
`,O={xs:12,sm:13,md:14,lg:15,xl:16,xxl:18,xxxl:20,xxxxl:24,xxxxxl:28,xxxxxxl:32,xxxxxxxl:40},R=(e,t)=>{switch(e){case"initial":return t.palette.black;case"primary":return t.palette.text.primary;case"secondary":return t.palette.text.secondary;case"disabled":return t.palette.text.disabled;case"hint":return t.palette.text.hint;case"white":return t.palette.text.white;default:return e}}
|
|
56
|
+
`,O={xs:12,sm:13,md:14,lg:15,xl:16,xxl:18,xxxl:20,xxxxl:24,xxxxxl:28,xxxxxxl:32,xxxxxxxl:40},R=(e,t)=>{switch(e){case"initial":return t.palette.black;case"primary":return t.palette.text.primary;case"secondary":return t.palette.text.secondary;case"disabled":return t.palette.text.disabled;case"hint":return t.palette.text.hint;case"white":return t.palette.text.white;default:return e}},$=i.forwardRef((function({children:e,component:t="p",color:n="initial",align:r="left",size:a="md",weight:o="normal",lineHeight:l="1.4",className:s},c){const u=x();return i.createElement(L,{ref:c,as:t,color:R(n,u),align:r,fontSize:`${O[a]}px`,weight:o,lineHeight:l,className:s},e)})),T=o.default.button`
|
|
57
57
|
display: flex;
|
|
58
58
|
align-items: center;
|
|
59
59
|
gap: ${({theme:e})=>.25*e.spacing}px;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
&:disabled {
|
|
74
74
|
cursor: not-allowed;
|
|
75
75
|
}
|
|
76
|
-
`,z=i.forwardRef((function(e,t){var{children:n,icon:r,color:a="primary",disabled:o}=e,l=s(e,["children","icon","color","disabled"]);const u=x(),d=((e,t)=>t?"disabled":e)(a,o),p=(e=>({primary:e.palette.primary.light,warning:c.red[200],disabled:c.basic[400]}))(u)[d],f=(e=>({primary:e.palette.background.hint,warning:e.palette.danger.highlight,disabled:e.palette.gray.light}))(u)[d],m=(e=>({primary:e.palette.primary.highlight,warning:c.red[200],disabled:e.palette.gray.light}))(u)[d],g=(e=>({primary:e.palette.primary.main,warning:e.palette.danger.main,disabled:e.palette.text.disabled}))(u)[d];return i.createElement(
|
|
76
|
+
`,z=i.forwardRef((function(e,t){var{children:n,icon:r,color:a="primary",disabled:o}=e,l=s(e,["children","icon","color","disabled"]);const u=x(),d=((e,t)=>t?"disabled":e)(a,o),p=(e=>({primary:e.palette.primary.light,warning:c.red[200],disabled:c.basic[400]}))(u)[d],f=(e=>({primary:e.palette.background.hint,warning:e.palette.danger.highlight,disabled:e.palette.gray.light}))(u)[d],m=(e=>({primary:e.palette.primary.highlight,warning:c.red[200],disabled:e.palette.gray.light}))(u)[d],g=(e=>({primary:e.palette.primary.main,warning:e.palette.danger.main,disabled:e.palette.text.disabled}))(u)[d];return i.createElement(T,Object.assign({},l,{ref:t,borderColor:p,normalBackgroundColor:f,hoverBackgroundColor:m,disabled:o}),r&&i.createElement(I,{name:r,color:g}),n&&i.createElement($,{color:g,size:"md"},n))})),B=o.default.div`
|
|
77
77
|
position: fixed;
|
|
78
78
|
display: flex;
|
|
79
79
|
align-items: center;
|
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
*
|
|
97
97
|
* This source code is licensed under the MIT license found in the
|
|
98
98
|
* LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/"production"===process.env.NODE_ENV?J.exports=function(){if(X)return U;X=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case i:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case m:case f:case o:return e;default:return p}}case n:return p}}}function y(e){return x(e)===c}return U.AsyncMode=s,U.ConcurrentMode=c,U.ContextConsumer=l,U.ContextProvider=o,U.Element=t,U.ForwardRef=u,U.Fragment=r,U.Lazy=m,U.Memo=f,U.Portal=n,U.Profiler=i,U.StrictMode=a,U.Suspense=d,U.isAsyncMode=function(e){return y(e)||x(e)===s},U.isConcurrentMode=y,U.isContextConsumer=function(e){return x(e)===l},U.isContextProvider=function(e){return x(e)===o},U.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},U.isForwardRef=function(e){return x(e)===u},U.isFragment=function(e){return x(e)===r},U.isLazy=function(e){return x(e)===m},U.isMemo=function(e){return x(e)===f},U.isPortal=function(e){return x(e)===n},U.isProfiler=function(e){return x(e)===i},U.isStrictMode=function(e){return x(e)===a},U.isSuspense=function(e){return x(e)===d},U.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===a||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===o||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},U.typeOf=x,U}():J.exports=(Q||(Q=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case i:case a:case d:return g;default:var h=g&&g.$$typeof;switch(h){case l:case u:case m:case f:case o:return h;default:return p}}case n:return p}}}var y=s,w=c,C=l,E=o,I=t,k=u,A=r,M=m,H=f,N=n,V=i,Z=a,D=d,
|
|
99
|
+
*/"production"===process.env.NODE_ENV?J.exports=function(){if(X)return U;X=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case r:case i:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case m:case f:case o:return e;default:return p}}case n:return p}}}function y(e){return x(e)===c}return U.AsyncMode=s,U.ConcurrentMode=c,U.ContextConsumer=l,U.ContextProvider=o,U.Element=t,U.ForwardRef=u,U.Fragment=r,U.Lazy=m,U.Memo=f,U.Portal=n,U.Profiler=i,U.StrictMode=a,U.Suspense=d,U.isAsyncMode=function(e){return y(e)||x(e)===s},U.isConcurrentMode=y,U.isContextConsumer=function(e){return x(e)===l},U.isContextProvider=function(e){return x(e)===o},U.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},U.isForwardRef=function(e){return x(e)===u},U.isFragment=function(e){return x(e)===r},U.isLazy=function(e){return x(e)===m},U.isMemo=function(e){return x(e)===f},U.isPortal=function(e){return x(e)===n},U.isProfiler=function(e){return x(e)===i},U.isStrictMode=function(e){return x(e)===a},U.isSuspense=function(e){return x(e)===d},U.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===a||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===o||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},U.typeOf=x,U}():J.exports=(Q||(Q=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var g=e.type;switch(g){case s:case c:case r:case i:case a:case d:return g;default:var h=g&&g.$$typeof;switch(h){case l:case u:case m:case f:case o:return h;default:return p}}case n:return p}}}var y=s,w=c,C=l,E=o,I=t,k=u,A=r,M=m,H=f,N=n,V=i,Z=a,D=d,S=!1;function L(e){return x(e)===c}_.AsyncMode=y,_.ConcurrentMode=w,_.ContextConsumer=C,_.ContextProvider=E,_.Element=I,_.ForwardRef=k,_.Fragment=A,_.Lazy=M,_.Memo=H,_.Portal=N,_.Profiler=V,_.StrictMode=Z,_.Suspense=D,_.isAsyncMode=function(e){return S||(S=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(e)||x(e)===s},_.isConcurrentMode=L,_.isContextConsumer=function(e){return x(e)===l},_.isContextProvider=function(e){return x(e)===o},_.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_.isForwardRef=function(e){return x(e)===u},_.isFragment=function(e){return x(e)===r},_.isLazy=function(e){return x(e)===m},_.isMemo=function(e){return x(e)===f},_.isPortal=function(e){return x(e)===n},_.isProfiler=function(e){return x(e)===i},_.isStrictMode=function(e){return x(e)===a},_.isSuspense=function(e){return x(e)===d},_.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===a||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===o||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},_.typeOf=x}()),_);var q,K,ee,te,ne,re,ae,ie,oe,le,se,ce,ue=J.exports;
|
|
100
100
|
/*
|
|
101
101
|
object-assign
|
|
102
102
|
(c) Sindre Sorhus
|
|
103
103
|
@license MIT
|
|
104
|
-
*/function de(){if(K)return q;K=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return q=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var i,o,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))t.call(i,c)&&(l[c]=i[c]);if(e){o=e(i);for(var u=0;u<o.length;u++)n.call(i,o[u])&&(l[o[u]]=i[o[u]])}}return l},q}function pe(){if(te)return ee;te=1;return ee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function fe(){return re?ne:(re=1,ne=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var me=ue;Y.exports=function(){if(le)return oe;le=1;var e=ue,t=de(),n=pe(),r=fe(),a=function(){if(ie)return ae;ie=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=pe(),n={},r=fe();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,i,o,l,s){if("production"!==process.env.NODE_ENV)for(var c in a)if(r(a,c)){var u;try{if("function"!=typeof a[c]){var d=Error((l||"React class")+": "+o+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=a[c](i,c,l,o,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((l||"React class")+": type specification of "+o+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var p=s?s():"";e("Failed "+o+" type: "+u.message+(null!=p?p:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},ae=a}(),i=function(){};function o(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),oe=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",d="<<anonymous>>",p={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:g(o),arrayOf:function(e){return g((function(t,r,a,i,o){if("function"!=typeof e)return new m("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new m("Invalid "+i+" `"+o+"` of type `"+x(l)+"` supplied to `"+a+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,a,i,o+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:g((function(e,t,n,r,a){var i=e[t];return l(i)?null:new m("Invalid "+r+" `"+a+"` of type `"+x(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,a,i){var o=t[n];return e.isValidElementType(o)?null:new m("Invalid "+a+" `"+i+"` of type `"+x(o)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,a,i){if(!(t[n]instanceof e)){var o=e.name||d;return new m("Invalid "+a+" `"+i+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+o+"`.")}var l;return null}))},node:g((function(e,t,n,r,a){return v(e[t])?null:new m("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,a,i,o,l){if("function"!=typeof e)return new m("Property `"+l+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[a],c=x(s);if("object"!==c)return new m("Invalid "+o+" `"+l+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in s)if(r(s,u)){var d=e(s,u,i,o,l+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,a,i){for(var o=t[n],l=0;l<e.length;l++)if(f(o,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new m("Invalid "+a+" `"+i+"` of value `"+String(o)+"` supplied to `"+r+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),o)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(a)+" at index "+t+"."),o}return g((function(t,a,i,o,l){for(var s=[],c=0;c<e.length;c++){var u=(0,e[c])(t,a,i,o,l,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&s.push(u.data.expectedType)}return new m("Invalid "+o+" `"+l+"` supplied to `"+i+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,a,i,o){var l=t[r],s=x(l);if("object"!==s)return new m("Invalid "+i+" `"+o+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return b(a,i,o,c,y(u));var d=u(l,c,a,i,o+"."+c,n);if(d)return d}return null}))},exact:function(e){return g((function(a,i,o,l,s){var c=a[i],u=x(c);if("object"!==u)return new m("Invalid "+l+" `"+s+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");var d=t({},a[i],e);for(var p in d){var f=e[p];if(r(e,p)&&"function"!=typeof f)return b(o,l,s,p,y(f));if(!f)return new m("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(a[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,p,o,l,s+"."+p,n);if(g)return g}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function a(a,o,l,c,u,p,f){if(c=c||d,p=p||l,f!==n){if(s){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=c+":"+l;!t[h]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[h]=!0,r++)}}return null==o[l]?a?null===o[l]?new m("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(o,l,c,u,p)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function h(e){return g((function(t,n,r,a,i,o){var l=t[n];return x(l)!==e?new m("Invalid "+a+" `"+i+"` of type `"+y(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,r,a){return new m((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var a=n.value;if(a&&!v(a[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},oe}()(me.isElement,!0)}else Y.exports=function(){if(ce)return se;ce=1;var e=pe();function t(){}function n(){}return n.resetWarningCache=t,se=function(){function r(t,n,r,a,i,o){if(o!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function a(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var ge=F(Y.exports);function he(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var be=!1,ve="production"!==process.env.NODE_ENV?ge.oneOfType([ge.number,ge.shape({enter:ge.number,exit:ge.number,appear:ge.number}).isRequired]):null,xe="production"!==process.env.NODE_ENV?ge.oneOfType([ge.string,ge.shape({enter:ge.string,exit:ge.string,active:ge.string}),ge.shape({enter:ge.string,enterDone:ge.string,enterActive:ge.string,exit:ge.string,exitDone:ge.string,exitActive:ge.string})]):null,ye=i.default.createContext(null),we=function(e){return e.scrollTop},Ce="unmounted",Ee="exited",Ie="entering",ke="entered",Ae="exiting",Me=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var a,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(a=Ee,r.appearStatus=Ie):a=ke:a=t.unmountOnExit||t.mountOnEnter?Ce:Ee,r.state={status:a},r.nextCallback=null,r}j(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ce?{status:Ee}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ie&&n!==ke&&(t=Ie):n!==Ie&&n!==ke||(t=Ae)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ie){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.default.findDOMNode(this);n&&we(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ee&&this.setState({status:Ce})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[l.default.findDOMNode(this),r],i=a[0],o=a[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||be?this.safeSetState({status:ke},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,o),this.safeSetState({status:Ie},(function(){t.props.onEntering(i,o),t.onTransitionEnd(c,(function(){t.safeSetState({status:ke},(function(){t.props.onEntered(i,o)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.default.findDOMNode(this);t&&!be?(this.props.onExit(r),this.safeSetState({status:Ae},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ee},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ee},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=a[0],o=a[1];this.props.addEndListener(i,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ce)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=P(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i.default.createElement(ye.Provider,{value:null},"function"==typeof n?n(e,r):i.default.cloneElement(i.default.Children.only(n),r))},t}(i.default.Component);function He(){}Me.contextType=ye,Me.propTypes="production"!==process.env.NODE_ENV?{nodeRef:ge.shape({current:"undefined"==typeof Element?ge.any:function(e,t,n,r,a,i){var o=e[t];return ge.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:ge.oneOfType([ge.func.isRequired,ge.element.isRequired]).isRequired,in:ge.bool,mountOnEnter:ge.bool,unmountOnExit:ge.bool,appear:ge.bool,enter:ge.bool,exit:ge.bool,timeout:function(e){var t=ve;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return t.apply(void 0,[e].concat(r))},addEndListener:ge.func,onEnter:ge.func,onEntering:ge.func,onEntered:ge.func,onExit:ge.func,onExiting:ge.func,onExited:ge.func}:{},Me.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:He,onEntering:He,onEntered:He,onExit:He,onExiting:He,onExited:He},Me.UNMOUNTED=Ce,Me.EXITED=Ee,Me.ENTERING=Ie,Me.ENTERED=ke,Me.EXITING=Ae;var Ne=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},Ve=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=he(n.className,r):n.setAttribute("class",he(n.className&&n.className.baseVal||"",r)));var n,r}))},Ze=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),a=r[0],i=r[1];t.removeClasses(a,"exit"),t.addClass(a,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),a=r[0],i=r[1]?"appear":"enter";t.addClass(a,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),a=r[0],i=r[1]?"appear":"enter";t.removeClasses(a,i),t.addClass(a,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,a=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:a,activeClassName:r?a+"-active":n[e+"Active"],doneClassName:r?a+"-done":n[e+"Done"]}},t}j(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&a&&(r+=" "+a),"active"===n&&e&&we(e),r&&(this.appliedClasses[t][n]=r,Ne(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,a=n.active,i=n.done;this.appliedClasses[t]={},r&&Ve(e,r),a&&Ve(e,a),i&&Ve(e,i)},n.render=function(){var e=this.props;e.classNames;var t=P(e,["classNames"]);return i.default.createElement(Me,G({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i.default.Component);function De(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Le(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&e.isValidElement(t)?n(t):t}(t)})),r}function Se(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Oe(t,n,r){var a=Le(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,a=Object.create(null),i=[];for(var o in e)o in t?i.length&&(a[o]=i,i=[]):i.push(o);var l={};for(var s in t){if(a[s])for(r=0;r<a[s].length;r++){var c=a[s][r];l[a[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(n,a);return Object.keys(i).forEach((function(o){var l=i[o];if(e.isValidElement(l)){var s=o in n,c=o in a,u=n[o],d=e.isValidElement(u)&&!u.props.in;!c||s&&!d?c||!s||d?c&&s&&e.isValidElement(u)&&(i[o]=e.cloneElement(l,{onExited:r.bind(null,l),in:u.props.in,exit:Se(l,"exit",t),enter:Se(l,"enter",t)})):i[o]=e.cloneElement(l,{in:!1}):i[o]=e.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Se(l,"exit",t),enter:Se(l,"enter",t)})}})),i}Ze.defaultProps={classNames:""},Ze.propTypes="production"!==process.env.NODE_ENV?G({},Me.propTypes,{classNames:xe,onEnter:ge.func,onEntering:ge.func,onEntered:ge.func,onExit:ge.func,onExiting:ge.func,onExited:ge.func}):{};var Re,Te,$e=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ze=function(t){function n(e,n){var r,a=(r=t.call(this,e,n)||this).handleExited.bind(De(r));return r.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},r}j(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,a,i=n.children,o=n.handleExited;return{children:n.firstRender?(r=t,a=o,Le(r.children,(function(t){return e.cloneElement(t,{onExited:a.bind(null,t),in:!0,appear:Se(t,"appear",r),enter:Se(t,"enter",r),exit:Se(t,"exit",r)})}))):Oe(t,i,o),firstRender:!1}},r.handleExited=function(e,t){var n=Le(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=G({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=P(e,["component","childFactory"]),a=this.state.contextValue,o=$e(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.default.createElement(ye.Provider,{value:a},o):i.default.createElement(ye.Provider,{value:a},i.default.createElement(t,r,o))},n}(i.default.Component);ze.propTypes="production"!==process.env.NODE_ENV?{component:ge.any,children:ge.node,appear:ge.bool,enter:ge.bool,exit:ge.bool,childFactory:ge.func}:{},ze.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}j(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,a=this.props.children,o=i.default.Children.toArray(a)[t];if(o.props[e]&&(r=o.props)[e].apply(r,n),this.props[e]){var s=o.props.nodeRef?void 0:l.default.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=P(e,["children","in"]),a=i.default.Children.toArray(t),o=a[0],l=a[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,i.default.createElement(ze,r,n?i.default.cloneElement(o,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):i.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(i.default.Component)).propTypes="production"!==process.env.NODE_ENV?{in:ge.bool.isRequired,children:function(e,t){return 2!==i.default.Children.count(e[t])?new Error('"'+t+'" must be exactly two transition components.'):null}}:{};var Be="out-in",Ge="in-out",Pe=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},We=((Re={})[Be]=function(e){var t=e.current,n=e.changeState;return i.default.cloneElement(t,{in:!1,onExited:Pe(t,"onExited",(function(){n(Ie,null)}))})},Re[Ge]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,i.default.cloneElement(r,{in:!0,onEntered:Pe(r,"onEntered",(function(){n(Ie)}))})]},Re),je=((Te={})[Be]=function(e){var t=e.children,n=e.changeState;return i.default.cloneElement(t,{in:!0,onEntered:Pe(t,"onEntered",(function(){n(ke,i.default.cloneElement(t,{in:!0}))}))})},Te[Ge]=function(e){var t=e.current,n=e.children,r=e.changeState;return[i.default.cloneElement(t,{in:!1,onExited:Pe(t,"onExited",(function(){r(ke,i.default.cloneElement(n,{in:!0}))}))}),i.default.cloneElement(n,{in:!0})]},Te),Fe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={status:ke,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}j(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Ie&&e.mode===Ge?{status:Ie}:!t.current||(n=t.current,r=e.children,n===r||i.default.isValidElement(n)&&i.default.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:i.default.cloneElement(e.children,{in:!0})}:{status:Ae};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,a=this.state,o=a.status,l=a.current,s={children:n,current:l,changeState:this.changeState,status:o};switch(o){case Ie:e=je[r](s);break;case Ae:e=We[r](s);break;case ke:e=l}return i.default.createElement(ye.Provider,{value:{isMounting:!this.appeared}},e)},t}(i.default.Component);Fe.propTypes="production"!==process.env.NODE_ENV?{mode:ge.oneOf([Ge,Be]),children:ge.oneOfType([ge.element.isRequired])}:{},Fe.defaultProps={mode:Be};const Xe=(e,t)=>{switch(typeof e){case"number":return e;case"object":return e[t]||0;default:return 0}},Ye="fade-transition",Je=o.default(Ze)`
|
|
104
|
+
*/function de(){if(K)return q;K=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return q=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var i,o,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))t.call(i,c)&&(l[c]=i[c]);if(e){o=e(i);for(var u=0;u<o.length;u++)n.call(i,o[u])&&(l[o[u]]=i[o[u]])}}return l},q}function pe(){if(te)return ee;te=1;return ee="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function fe(){return re?ne:(re=1,ne=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var me=ue;Y.exports=function(){if(le)return oe;le=1;var e=ue,t=de(),n=pe(),r=fe(),a=function(){if(ie)return ae;ie=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=pe(),n={},r=fe();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,i,o,l,s){if("production"!==process.env.NODE_ENV)for(var c in a)if(r(a,c)){var u;try{if("function"!=typeof a[c]){var d=Error((l||"React class")+": "+o+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=a[c](i,c,l,o,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((l||"React class")+": type specification of "+o+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var p=s?s():"";e("Failed "+o+" type: "+u.message+(null!=p?p:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},ae=a}(),i=function(){};function o(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),oe=function(l,s){var c="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",d="<<anonymous>>",p={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:g(o),arrayOf:function(e){return g((function(t,r,a,i,o){if("function"!=typeof e)return new m("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=t[r];if(!Array.isArray(l))return new m("Invalid "+i+" `"+o+"` of type `"+x(l)+"` supplied to `"+a+"`, expected an array.");for(var s=0;s<l.length;s++){var c=e(l,s,a,i,o+"["+s+"]",n);if(c instanceof Error)return c}return null}))},element:g((function(e,t,n,r,a){var i=e[t];return l(i)?null:new m("Invalid "+r+" `"+a+"` of type `"+x(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:g((function(t,n,r,a,i){var o=t[n];return e.isValidElementType(o)?null:new m("Invalid "+a+" `"+i+"` of type `"+x(o)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return g((function(t,n,r,a,i){if(!(t[n]instanceof e)){var o=e.name||d;return new m("Invalid "+a+" `"+i+"` of type `"+((l=t[n]).constructor&&l.constructor.name?l.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+o+"`.")}var l;return null}))},node:g((function(e,t,n,r,a){return v(e[t])?null:new m("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,a,i,o,l){if("function"!=typeof e)return new m("Property `"+l+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var s=t[a],c=x(s);if("object"!==c)return new m("Invalid "+o+" `"+l+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in s)if(r(s,u)){var d=e(s,u,i,o,l+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,a,i){for(var o=t[n],l=0;l<e.length;l++)if(f(o,e[l]))return null;var s=JSON.stringify(e,(function(e,t){return"symbol"===y(t)?String(t):t}));return new m("Invalid "+a+" `"+i+"` of value `"+String(o)+"` supplied to `"+r+"`, expected one of "+s+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),o)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(a)+" at index "+t+"."),o}return g((function(t,a,i,o,l){for(var s=[],c=0;c<e.length;c++){var u=(0,e[c])(t,a,i,o,l,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&s.push(u.data.expectedType)}return new m("Invalid "+o+" `"+l+"` supplied to `"+i+"`"+(s.length>0?", expected one of type ["+s.join(", ")+"]":"")+".")}))},shape:function(e){return g((function(t,r,a,i,o){var l=t[r],s=x(l);if("object"!==s)return new m("Invalid "+i+" `"+o+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return b(a,i,o,c,y(u));var d=u(l,c,a,i,o+"."+c,n);if(d)return d}return null}))},exact:function(e){return g((function(a,i,o,l,s){var c=a[i],u=x(c);if("object"!==u)return new m("Invalid "+l+" `"+s+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");var d=t({},a[i],e);for(var p in d){var f=e[p];if(r(e,p)&&"function"!=typeof f)return b(o,l,s,p,y(f));if(!f)return new m("Invalid "+l+" `"+s+"` key `"+p+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(a[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var g=f(c,p,o,l,s+"."+p,n);if(g)return g}return null}))}};function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function m(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function a(a,o,l,c,u,p,f){if(c=c||d,p=p||l,f!==n){if(s){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=c+":"+l;!t[h]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[h]=!0,r++)}}return null==o[l]?a?null===o[l]?new m("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new m("The "+u+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(o,l,c,u,p)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function h(e){return g((function(t,n,r,a,i,o){var l=t[n];return x(l)!==e?new m("Invalid "+a+" `"+i+"` of type `"+y(l)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,n,r,a){return new m((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||l(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var a=n.value;if(a&&!v(a[1]))return!1}return!0;default:return!1}}function x(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function y(e){if(null==e)return""+e;var t=x(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=y(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return m.prototype=Error.prototype,p.checkPropTypes=a,p.resetWarningCache=a.resetWarningCache,p.PropTypes=p,p},oe}()(me.isElement,!0)}else Y.exports=function(){if(ce)return se;ce=1;var e=pe();function t(){}function n(){}return n.resetWarningCache=t,se=function(){function r(t,n,r,a,i,o){if(o!==e){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function a(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var ge=F(Y.exports);function he(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var be=!1,ve="production"!==process.env.NODE_ENV?ge.oneOfType([ge.number,ge.shape({enter:ge.number,exit:ge.number,appear:ge.number}).isRequired]):null,xe="production"!==process.env.NODE_ENV?ge.oneOfType([ge.string,ge.shape({enter:ge.string,exit:ge.string,active:ge.string}),ge.shape({enter:ge.string,enterDone:ge.string,enterActive:ge.string,exit:ge.string,exitDone:ge.string,exitActive:ge.string})]):null,ye=i.default.createContext(null),we=function(e){return e.scrollTop},Ce="unmounted",Ee="exited",Ie="entering",ke="entered",Ae="exiting",Me=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var a,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(a=Ee,r.appearStatus=Ie):a=ke:a=t.unmountOnExit||t.mountOnEnter?Ce:Ee,r.state={status:a},r.nextCallback=null,r}j(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ce?{status:Ee}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Ie&&n!==ke&&(t=Ie):n!==Ie&&n!==ke||(t=Ae)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Ie){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l.default.findDOMNode(this);n&&we(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ee&&this.setState({status:Ce})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,a=this.props.nodeRef?[r]:[l.default.findDOMNode(this),r],i=a[0],o=a[1],s=this.getTimeouts(),c=r?s.appear:s.enter;!e&&!n||be?this.safeSetState({status:ke},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,o),this.safeSetState({status:Ie},(function(){t.props.onEntering(i,o),t.onTransitionEnd(c,(function(){t.safeSetState({status:ke},(function(){t.props.onEntered(i,o)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l.default.findDOMNode(this);t&&!be?(this.props.onExit(r),this.safeSetState({status:Ae},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ee},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ee},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=a[0],o=a[1];this.props.addEndListener(i,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ce)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=P(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i.default.createElement(ye.Provider,{value:null},"function"==typeof n?n(e,r):i.default.cloneElement(i.default.Children.only(n),r))},t}(i.default.Component);function He(){}Me.contextType=ye,Me.propTypes="production"!==process.env.NODE_ENV?{nodeRef:ge.shape({current:"undefined"==typeof Element?ge.any:function(e,t,n,r,a,i){var o=e[t];return ge.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:ge.oneOfType([ge.func.isRequired,ge.element.isRequired]).isRequired,in:ge.bool,mountOnEnter:ge.bool,unmountOnExit:ge.bool,appear:ge.bool,enter:ge.bool,exit:ge.bool,timeout:function(e){var t=ve;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return t.apply(void 0,[e].concat(r))},addEndListener:ge.func,onEnter:ge.func,onEntering:ge.func,onEntered:ge.func,onExit:ge.func,onExiting:ge.func,onExited:ge.func}:{},Me.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:He,onEntering:He,onEntered:He,onExit:He,onExiting:He,onExited:He},Me.UNMOUNTED=Ce,Me.EXITED=Ee,Me.ENTERING=Ie,Me.ENTERED=ke,Me.EXITING=Ae;var Ne=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},Ve=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=he(n.className,r):n.setAttribute("class",he(n.className&&n.className.baseVal||"",r)));var n,r}))},Ze=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),a=r[0],i=r[1];t.removeClasses(a,"exit"),t.addClass(a,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),a=r[0],i=r[1]?"appear":"enter";t.addClass(a,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),a=r[0],i=r[1]?"appear":"enter";t.removeClasses(a,i),t.addClass(a,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,a=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:a,activeClassName:r?a+"-active":n[e+"Active"],doneClassName:r?a+"-done":n[e+"Done"]}},t}j(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&a&&(r+=" "+a),"active"===n&&e&&we(e),r&&(this.appliedClasses[t][n]=r,Ne(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,a=n.active,i=n.done;this.appliedClasses[t]={},r&&Ve(e,r),a&&Ve(e,a),i&&Ve(e,i)},n.render=function(){var e=this.props;e.classNames;var t=P(e,["classNames"]);return i.default.createElement(Me,G({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(i.default.Component);function De(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Se(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&e.isValidElement(t)?n(t):t}(t)})),r}function Le(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Oe(t,n,r){var a=Se(t.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,a=Object.create(null),i=[];for(var o in e)o in t?i.length&&(a[o]=i,i=[]):i.push(o);var l={};for(var s in t){if(a[s])for(r=0;r<a[s].length;r++){var c=a[s][r];l[a[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<i.length;r++)l[i[r]]=n(i[r]);return l}(n,a);return Object.keys(i).forEach((function(o){var l=i[o];if(e.isValidElement(l)){var s=o in n,c=o in a,u=n[o],d=e.isValidElement(u)&&!u.props.in;!c||s&&!d?c||!s||d?c&&s&&e.isValidElement(u)&&(i[o]=e.cloneElement(l,{onExited:r.bind(null,l),in:u.props.in,exit:Le(l,"exit",t),enter:Le(l,"enter",t)})):i[o]=e.cloneElement(l,{in:!1}):i[o]=e.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Le(l,"exit",t),enter:Le(l,"enter",t)})}})),i}Ze.defaultProps={classNames:""},Ze.propTypes="production"!==process.env.NODE_ENV?G({},Me.propTypes,{classNames:xe,onEnter:ge.func,onEntering:ge.func,onEntered:ge.func,onExit:ge.func,onExiting:ge.func,onExited:ge.func}):{};var Re,$e,Te=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ze=function(t){function n(e,n){var r,a=(r=t.call(this,e,n)||this).handleExited.bind(De(r));return r.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},r}j(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,a,i=n.children,o=n.handleExited;return{children:n.firstRender?(r=t,a=o,Se(r.children,(function(t){return e.cloneElement(t,{onExited:a.bind(null,t),in:!0,appear:Le(t,"appear",r),enter:Le(t,"enter",r),exit:Le(t,"exit",r)})}))):Oe(t,i,o),firstRender:!1}},r.handleExited=function(e,t){var n=Se(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=G({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=P(e,["component","childFactory"]),a=this.state.contextValue,o=Te(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.default.createElement(ye.Provider,{value:a},o):i.default.createElement(ye.Provider,{value:a},i.default.createElement(t,r,o))},n}(i.default.Component);ze.propTypes="production"!==process.env.NODE_ENV?{component:ge.any,children:ge.node,appear:ge.bool,enter:ge.bool,exit:ge.bool,childFactory:ge.func}:{},ze.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}j(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var r,a=this.props.children,o=i.default.Children.toArray(a)[t];if(o.props[e]&&(r=o.props)[e].apply(r,n),this.props[e]){var s=o.props.nodeRef?void 0:l.default.findDOMNode(this);this.props[e](s)}},n.render=function(){var e=this.props,t=e.children,n=e.in,r=P(e,["children","in"]),a=i.default.Children.toArray(t),o=a[0],l=a[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,i.default.createElement(ze,r,n?i.default.cloneElement(o,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):i.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(i.default.Component)).propTypes="production"!==process.env.NODE_ENV?{in:ge.bool.isRequired,children:function(e,t){return 2!==i.default.Children.count(e[t])?new Error('"'+t+'" must be exactly two transition components.'):null}}:{};var Be="out-in",Ge="in-out",Pe=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},We=((Re={})[Be]=function(e){var t=e.current,n=e.changeState;return i.default.cloneElement(t,{in:!1,onExited:Pe(t,"onExited",(function(){n(Ie,null)}))})},Re[Ge]=function(e){var t=e.current,n=e.changeState,r=e.children;return[t,i.default.cloneElement(r,{in:!0,onEntered:Pe(r,"onEntered",(function(){n(Ie)}))})]},Re),je=(($e={})[Be]=function(e){var t=e.children,n=e.changeState;return i.default.cloneElement(t,{in:!0,onEntered:Pe(t,"onEntered",(function(){n(ke,i.default.cloneElement(t,{in:!0}))}))})},$e[Ge]=function(e){var t=e.current,n=e.children,r=e.changeState;return[i.default.cloneElement(t,{in:!1,onExited:Pe(t,"onExited",(function(){r(ke,i.default.cloneElement(n,{in:!0}))}))}),i.default.cloneElement(n,{in:!0})]},$e),Fe=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={status:ke,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}j(t,e);var n=t.prototype;return n.componentDidMount=function(){this.appeared=!0},t.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===Ie&&e.mode===Ge?{status:Ie}:!t.current||(n=t.current,r=e.children,n===r||i.default.isValidElement(n)&&i.default.isValidElement(r)&&null!=n.key&&n.key===r.key)?{current:i.default.cloneElement(e.children,{in:!0})}:{status:Ae};var n,r},n.render=function(){var e,t=this.props,n=t.children,r=t.mode,a=this.state,o=a.status,l=a.current,s={children:n,current:l,changeState:this.changeState,status:o};switch(o){case Ie:e=je[r](s);break;case Ae:e=We[r](s);break;case ke:e=l}return i.default.createElement(ye.Provider,{value:{isMounting:!this.appeared}},e)},t}(i.default.Component);Fe.propTypes="production"!==process.env.NODE_ENV?{mode:ge.oneOf([Ge,Be]),children:ge.oneOfType([ge.element.isRequired])}:{},Fe.defaultProps={mode:Be};const Xe=(e,t)=>{switch(typeof e){case"number":return e;case"object":return e[t]||0;default:return 0}},Ye="fade-transition",Je=o.default(Ze)`
|
|
105
105
|
&.${Ye}-enter, &.${Ye}-appear {
|
|
106
106
|
opacity: 0;
|
|
107
107
|
}
|
|
@@ -252,7 +252,7 @@ object-assign
|
|
|
252
252
|
padding: ${({theme:e})=>e.spacing}px 0;
|
|
253
253
|
text-align: center;
|
|
254
254
|
color: ${({theme:e})=>e.palette.gray.deepDark};
|
|
255
|
-
`,yt=o.default(
|
|
255
|
+
`,yt=o.default($)`
|
|
256
256
|
color: ${({theme:e,expanded:t})=>t?"transparent":e.palette.black};
|
|
257
257
|
transition: color 300ms;
|
|
258
258
|
`,wt=o.default.div`
|
|
@@ -332,7 +332,7 @@ object-assign
|
|
|
332
332
|
position: absolute;
|
|
333
333
|
z-index: 100;
|
|
334
334
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
335
|
-
`,
|
|
335
|
+
`,St=o.default.div`
|
|
336
336
|
top: 0;
|
|
337
337
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
338
338
|
display: flex;
|
|
@@ -340,7 +340,7 @@ object-assign
|
|
|
340
340
|
padding: ${({theme:e})=>2*e.spacing}px 0;
|
|
341
341
|
padding-right: ${({theme:e})=>3*e.spacing}px;
|
|
342
342
|
align-items: center;
|
|
343
|
-
`,
|
|
343
|
+
`,Lt=o.default($)`
|
|
344
344
|
padding-bottom: ${({theme:e})=>e.spacing}px;
|
|
345
345
|
`,Ot=o.default(A)`
|
|
346
346
|
display: grid;
|
|
@@ -357,7 +357,7 @@ object-assign
|
|
|
357
357
|
background-color: ${({theme:e})=>e.palette.primary.highlight};
|
|
358
358
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
359
359
|
}
|
|
360
|
-
|
|
360
|
+
`,$t=t.keyframes`
|
|
361
361
|
0%,
|
|
362
362
|
99.99% {
|
|
363
363
|
visibility: visible;
|
|
@@ -367,13 +367,13 @@ object-assign
|
|
|
367
367
|
visibility: hidden;
|
|
368
368
|
opacity: 1;
|
|
369
369
|
}
|
|
370
|
-
|
|
370
|
+
`,Tt=o.default.div`
|
|
371
371
|
padding: 0px ${({theme:e})=>e.spacing}px;
|
|
372
372
|
display: ${({expanded:e})=>e?"block":"none"};
|
|
373
373
|
transform: rotate(180deg);
|
|
374
|
-
animation: ${({expanded:e})=>e
|
|
374
|
+
animation: ${({expanded:e})=>e?$t:""} 0.3s;
|
|
375
375
|
cursor: pointer;
|
|
376
|
-
`,zt=({date:t,current:n,yearIsOpen:r,onYearIsOpen:a,onClick:o})=>{const l=x(),s=i.default.useRef(null),{years:c}=((t,n)=>{const[r,a]=e.useState(Array.from(new Array(5),((e,n)=>t.year()+n-5)).concat(Array.from(new Array(5),((e,n)=>t.year()+n))));return e.useEffect((()=>{const e=document.getElementsByClassName(t.format("YYYY"));for(const t of Array.from(e))t.scrollIntoView({block:"center"})}),[t]),e.useEffect((()=>{const e=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=parseInt(e.target.className);if(t===r[0]){const e=Array.from(new Array(5),((e,n)=>t+n-5)).concat(Array.from(new Array(5),((e,n)=>t+n)));a(e)}else if(t===r[r.length-1]){const e=Array.from(new Array(5),((e,n)=>t+n-5)).concat(Array.from(new Array(5),((e,n)=>t+n)));a(e)}}}))}),{root:n.current,threshold:.1}),t=[document.getElementsByClassName(r[0].toString()),document.getElementsByClassName(r[r.length-1].toString())];for(const n of Array.from(t))for(const t of Array.from(n))e.observe(t);return()=>{for(const n of Array.from(t))for(const t of Array.from(n))e.unobserve(t)}}),[r,t,n]),{ref:n,years:r}})(n,s),u=(e,t)=>()=>{const n=Zt(`${e}-${t}-01`);o(n)};return i.default.createElement(Dt,{id:"year"},i.default.createElement(
|
|
376
|
+
`,zt=({date:t,current:n,yearIsOpen:r,onYearIsOpen:a,onClick:o})=>{const l=x(),s=i.default.useRef(null),{years:c}=((t,n)=>{const[r,a]=e.useState(Array.from(new Array(5),((e,n)=>t.year()+n-5)).concat(Array.from(new Array(5),((e,n)=>t.year()+n))));return e.useEffect((()=>{const e=document.getElementsByClassName(t.format("YYYY"));for(const t of Array.from(e))t.scrollIntoView({block:"center"})}),[t]),e.useEffect((()=>{const e=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=parseInt(e.target.className);if(t===r[0]){const e=Array.from(new Array(5),((e,n)=>t+n-5)).concat(Array.from(new Array(5),((e,n)=>t+n)));a(e)}else if(t===r[r.length-1]){const e=Array.from(new Array(5),((e,n)=>t+n-5)).concat(Array.from(new Array(5),((e,n)=>t+n)));a(e)}}}))}),{root:n.current,threshold:.1}),t=[document.getElementsByClassName(r[0].toString()),document.getElementsByClassName(r[r.length-1].toString())];for(const n of Array.from(t))for(const t of Array.from(n))e.observe(t);return()=>{for(const n of Array.from(t))for(const t of Array.from(n))e.unobserve(t)}}),[r,t,n]),{ref:n,years:r}})(n,s),u=(e,t)=>()=>{const n=Zt(`${e}-${t}-01`);o(n)};return i.default.createElement(Dt,{id:"year"},i.default.createElement(St,null,i.default.createElement($,{color:"transparent",size:"xl"},t.format("YYYY年MM月")),i.default.createElement(Tt,{expanded:r,onClick:()=>{a(!r)}},i.default.createElement(I,{name:"arrow_bottom",size:"lg",color:l.palette.black}))),i.default.createElement(At,{ref:s,maxHeight:"400px",minHeight:"400px",id:"year-months"},i.default.createElement("div",{style:{width:"250px"}},c.map((e=>{const t=Array.from(new Array(12),((e,t)=>t+1));return i.default.createElement("div",{key:e,className:`${e}`},i.default.createElement(Lt,{weight:"bold",size:"xl"},e,"年"),i.default.createElement(Ot,null,t.map((t=>i.default.createElement(Rt,{key:t,onClick:u(e,t)},t,"月")))))})))))},Bt=e=>Array.from(new Array(4)).map(((t,n)=>e.add(n,"month"))),Gt=e=>Array.from(new Array(4)).map(((t,n)=>e.subtract(4-n,"month"))),Pt=(t,n)=>{const[r,a]=e.useState({prev:t.subtract(4,"month"),next:t.add(4,"month")}),[i,o]=e.useState([...Gt(t),...Bt(t)]);return e.useEffect((()=>{if(null===n.current)return;const e=document.getElementsByClassName(t.format("YYYY-MM"));for(const t of Array.from(e)){const e=n.current.clientHeight,r=t,a=r.offsetTop-e/2+r.offsetHeight/2;n.current.scrollTop=a}}),[t,n]),e.useEffect((()=>{a({prev:t.subtract(4,"month"),next:t.add(4,"month")}),o([...Gt(t),...Bt(t)])}),[t]),e.useEffect((()=>{const e=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const e=r.next.add(4,"month"),t=r.prev.add(4,"month"),n=Gt(r.next),i=Bt(r.next);a({next:e,prev:t}),o([...n,...i])}}))}),{root:n.current,threshold:.1}),t=document.getElementsByClassName(r.next.subtract(1,"month").format("YYYY-MM"));for(const n of Array.from(t))e.observe(n);return()=>{for(const n of Array.from(t))e.unobserve(n)}}),[r,n]),e.useEffect((()=>{const e=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const e=r.next.subtract(4,"month"),t=r.prev.subtract(4,"month"),n=Gt(r.prev),i=Bt(r.prev);a({next:e,prev:t}),o([...n,...i])}}))}),{root:n.current,threshold:.1}),t=document.getElementsByClassName(r.prev.add(1,"month").format("YYYY-MM"));for(const n of Array.from(t))e.observe(n);return()=>{for(const n of Array.from(t))e.unobserve(n)}}),[r,n]),{monthList:i}},Wt="400px",jt=o.default.button`
|
|
377
377
|
background-color: ${({selected:e,theme:t})=>e?t.palette.primary.main:"transparent"};
|
|
378
378
|
color: ${({selected:e,theme:t})=>e?t.palette.white:t.palette.black};
|
|
379
379
|
border: none;
|
|
@@ -392,7 +392,7 @@ object-assign
|
|
|
392
392
|
background-color: transparent;
|
|
393
393
|
color: ${({theme:e})=>e.palette.gray.main};
|
|
394
394
|
}
|
|
395
|
-
`,Yt=e.memo((function({selected:e,value:t,selectable:n,onClickDate:r,children:a}){return n?i.default.createElement(Ft,{type:"button",selected:e,onClick:()=>{null==r||r(t)}},a):i.default.createElement(Xt,{type:"button"},a)})),Jt=({date:n,weekList:r,monthFormat:a,current:o,yearIsOpen:l,onYearIsOpen:s,isOutsideRange:c,onDateChange:u})=>{const d=t.useTheme(),p=e.useRef(null),{monthList:f}=Pt(o,p);return i.default.createElement(At,{ref:p,minHeight:Wt,maxHeight:Wt,id:"calendar"},i.default.createElement("div",null,f.map((e=>i.default.createElement(bt,{key:e.format("YYYY-MM"),id:e.format("YYYY-MM"),className:e.format("YYYY-MM")},i.default.createElement(wt,{expanded:l},i.default.createElement(yt,{expanded:l,weight:"bold",size:"xl"},e.format(a)),i.default.createElement(Et,{expanded:l,onClick:()=>s(!l)},i.default.createElement(I,{name:"arrow_bottom",size:"lg",color:d.palette.black}))),i.default.createElement(vt,null,null==r?void 0:r.map((e=>i.default.createElement(xt,{key:e},e))),Array.from(new Array(e.startOf("month").day()),((e,t)=>i.default.createElement(xt,{key:t}))),Array.from(new Array(e.daysInMonth()),((e,t)=>t+1)).map((t=>{const r=n.format("YYYY-MM-DD")===Zt(new Date(e.year(),e.month(),t)).format("YYYY-MM-DD"),a=!c(Zt(new Date(e.year(),e.month(),t)));return i.default.createElement(Yt,{key:t,value:Zt(new Date(e.year(),e.month(),t)),selectable:a,selected:r,onClickDate:u},t)}))))))))},Ut=e.forwardRef((function(t,n){var{date:r,monthFormat:a="YYYY年M月",weekList:o=["日","月","火","水","木","金","土"],defaultClickAction:l,actions:c,onClickAction:u,onClickCloseButton:d,isOutsideRange:p=(()=>!1),onDateChange:f}=t,m=s(t,["date","monthFormat","weekList","defaultClickAction","actions","onClickAction","onClickCloseButton","isOutsideRange","onDateChange"]);const g=x(),[h,b]=i.default.useState(r),[v,y]=i.default.useState(!1);return e.useEffect((()=>{b(r)}),[r]),i.default.createElement(gt,Object.assign({ref:n},m),i.default.createElement(Nt,{defaultClickAction:l,actions:c,onClickAction:u}),i.default.createElement(ht,null,i.default.createElement(
|
|
395
|
+
`,Yt=e.memo((function({selected:e,value:t,selectable:n,onClickDate:r,children:a}){return n?i.default.createElement(Ft,{type:"button",selected:e,onClick:()=>{null==r||r(t)}},a):i.default.createElement(Xt,{type:"button"},a)})),Jt=({date:n,weekList:r,monthFormat:a,current:o,yearIsOpen:l,onYearIsOpen:s,isOutsideRange:c,onDateChange:u})=>{const d=t.useTheme(),p=e.useRef(null),{monthList:f}=Pt(o,p);return i.default.createElement(At,{ref:p,minHeight:Wt,maxHeight:Wt,id:"calendar"},i.default.createElement("div",null,f.map((e=>i.default.createElement(bt,{key:e.format("YYYY-MM"),id:e.format("YYYY-MM"),className:e.format("YYYY-MM")},i.default.createElement(wt,{expanded:l},i.default.createElement(yt,{expanded:l,weight:"bold",size:"xl"},e.format(a)),i.default.createElement(Et,{expanded:l,onClick:()=>s(!l)},i.default.createElement(I,{name:"arrow_bottom",size:"lg",color:d.palette.black}))),i.default.createElement(vt,null,null==r?void 0:r.map((e=>i.default.createElement(xt,{key:e},e))),Array.from(new Array(e.startOf("month").day()),((e,t)=>i.default.createElement(xt,{key:t}))),Array.from(new Array(e.daysInMonth()),((e,t)=>t+1)).map((t=>{const r=n.format("YYYY-MM-DD")===Zt(new Date(e.year(),e.month(),t)).format("YYYY-MM-DD"),a=!c(Zt(new Date(e.year(),e.month(),t)));return i.default.createElement(Yt,{key:t,value:Zt(new Date(e.year(),e.month(),t)),selectable:a,selected:r,onClickDate:u},t)}))))))))},Ut=e.forwardRef((function(t,n){var{date:r,monthFormat:a="YYYY年M月",weekList:o=["日","月","火","水","木","金","土"],defaultClickAction:l,actions:c,onClickAction:u,onClickCloseButton:d,isOutsideRange:p=(()=>!1),onDateChange:f}=t,m=s(t,["date","monthFormat","weekList","defaultClickAction","actions","onClickAction","onClickCloseButton","isOutsideRange","onDateChange"]);const g=x(),[h,b]=i.default.useState(r),[v,y]=i.default.useState(!1);return e.useEffect((()=>{b(r)}),[r]),i.default.createElement(gt,Object.assign({ref:n},m),i.default.createElement(Nt,{defaultClickAction:l,actions:c,onClickAction:u}),i.default.createElement(ht,null,i.default.createElement(Ew,{unmountOnExit:!0,in:v,direction:"up"},i.default.createElement(zt,{date:r,current:r,yearIsOpen:v,onYearIsOpen:y,onClick:e=>{y(!1),b(e)}})),i.default.createElement(Jt,{date:r,current:h,monthFormat:a,weekList:o,yearIsOpen:v,isOutsideRange:p,onYearIsOpen:y,onDateChange:f})),d&&i.default.createElement(Ct,{expanded:v,onClick:d},i.default.createElement(I,{name:"close",color:g.palette.black})))}));var Qt=e.memo(Ut);const _t="none",qt="start",Kt="end",en="between",tn="start",nn="end",rn=(e,t,n,r)=>{switch(!0){case((e,t,n)=>(null==e?void 0:e.format("YYYY-MM-DD"))===Zt(new Date(t.year(),t.month(),n)).format("YYYY-MM-DD"))(e,n,r):return qt;case((e,t,n)=>(null==e?void 0:e.format("YYYY-MM-DD"))===Zt(new Date(t.year(),t.month(),n)).format("YYYY-MM-DD"))(t,n,r):return Kt;case((e,t,n,r)=>{var a;return null!==(a=e&&t&&Zt(new Date(n.year(),n.month(),r)).isAfter(e.format("YYYY-MM-DD"),"day")&&Zt(new Date(n.year(),n.month(),r)).isBefore(t.format("YYYY-MM-DD"),"day"))&&void 0!==a&&a})(e,t,n,r):return en;default:return _t}},an=o.default.div`
|
|
396
396
|
position: relative;
|
|
397
397
|
z-index: 1;
|
|
398
398
|
`,on=o.default.button`
|
|
@@ -448,7 +448,7 @@ object-assign
|
|
|
448
448
|
background-color: transparent;
|
|
449
449
|
color: ${({theme:e})=>e.palette.gray.main};
|
|
450
450
|
}
|
|
451
|
-
`,fn=e.memo((function({state:e,value:t,selectable:n,onClickDate:r,children:a}){return i.default.createElement(an,null,(({state:e,value:t,selectable:n,onClickDate:r,children:a})=>{const o=()=>{null==r||r(t)};if(!n)return i.default.createElement(pn,{type:"button"},a);switch(e){case qt:return i.default.createElement(cn,{type:"button",onClick:o},a);case Kt:return i.default.createElement(un,{type:"button",onClick:o},a);case en:return i.default.createElement(dn,{type:"button",onClick:o},a);default:return i.default.createElement(on,{type:"button",onClick:o},a)}})({state:e,value:t,selectable:n,onClickDate:r,children:a}))})),mn=({startDate:t,endDate:n,monthFormat:r,weekList:a,current:o,yearIsOpen:l,onYearIsOpen:s,isOutsideRange:c,onDateChange:u})=>{const d=x(),p=e.useRef(null),{monthList:f}=Pt(o,p);return i.default.createElement(At,{ref:p,minHeight:Wt,maxHeight:Wt,id:"calendar"},i.default.createElement("div",null,f.map((e=>i.default.createElement(bt,{key:e.format("YYYY-MM"),id:e.format("YYYY-MM"),className:e.format("YYYY-MM")},i.default.createElement(wt,{expanded:l},i.default.createElement(yt,{expanded:l,weight:"bold",size:"xl"},e.format(r)),i.default.createElement(Et,{expanded:l,onClick:()=>s(!l)},i.default.createElement(I,{name:"arrow_bottom",size:"lg",color:d.palette.black}))),i.default.createElement(vt,null,null==a?void 0:a.map((e=>i.default.createElement(xt,{key:e},e))),Array.from(new Array(e.startOf("month").day()),((e,t)=>i.default.createElement(xt,{key:t}))),Array.from(new Array(e.daysInMonth()),((e,t)=>t+1)).map((r=>{const a=!c(Zt(new Date(e.year(),e.month(),r)));return i.default.createElement(fn,{key:r,value:Zt(new Date(e.year(),e.month(),r)),state:rn(t,n,e,r),selectable:a,onClickDate:u},r)}))))))))},gn=e.forwardRef((function(t,n){var{startDate:r,endDate:a,monthFormat:o="YYYY年M月",weekList:l=["日","月","火","水","木","金","土"],defaultClickAction:c,actions:u,onClickAction:d,onClose:p,isOutsideRange:f=(()=>!1),onClickCloseButton:m,onDatesChange:g}=t,h=s(t,["startDate","endDate","monthFormat","weekList","defaultClickAction","actions","onClickAction","onClose","isOutsideRange","onClickCloseButton","onDatesChange"]);const b=x(),[v,y]=i.default.useState(r),[w,C]=i.default.useState(!1);e.useEffect((()=>{y(r)}),[r]);const[E,k]=e.useState(tn),A=e.useCallback((e=>{switch(p&&p(E),E){case tn:null==g||g({startDate:e,endDate:a}),k(nn);break;case nn:null==g||g({startDate:r,endDate:e}),k(tn)}}),[p,E,g,a,r]);return i.default.createElement(gt,Object.assign({ref:n},h),i.default.createElement(Nt,{defaultClickAction:c,actions:u,onClickAction:d}),i.default.createElement(ht,null,i.default.createElement("div",{style:{position:"relative",zIndex:1}},i.default.createElement(
|
|
451
|
+
`,fn=e.memo((function({state:e,value:t,selectable:n,onClickDate:r,children:a}){return i.default.createElement(an,null,(({state:e,value:t,selectable:n,onClickDate:r,children:a})=>{const o=()=>{null==r||r(t)};if(!n)return i.default.createElement(pn,{type:"button"},a);switch(e){case qt:return i.default.createElement(cn,{type:"button",onClick:o},a);case Kt:return i.default.createElement(un,{type:"button",onClick:o},a);case en:return i.default.createElement(dn,{type:"button",onClick:o},a);default:return i.default.createElement(on,{type:"button",onClick:o},a)}})({state:e,value:t,selectable:n,onClickDate:r,children:a}))})),mn=({startDate:t,endDate:n,monthFormat:r,weekList:a,current:o,yearIsOpen:l,onYearIsOpen:s,isOutsideRange:c,onDateChange:u})=>{const d=x(),p=e.useRef(null),{monthList:f}=Pt(o,p);return i.default.createElement(At,{ref:p,minHeight:Wt,maxHeight:Wt,id:"calendar"},i.default.createElement("div",null,f.map((e=>i.default.createElement(bt,{key:e.format("YYYY-MM"),id:e.format("YYYY-MM"),className:e.format("YYYY-MM")},i.default.createElement(wt,{expanded:l},i.default.createElement(yt,{expanded:l,weight:"bold",size:"xl"},e.format(r)),i.default.createElement(Et,{expanded:l,onClick:()=>s(!l)},i.default.createElement(I,{name:"arrow_bottom",size:"lg",color:d.palette.black}))),i.default.createElement(vt,null,null==a?void 0:a.map((e=>i.default.createElement(xt,{key:e},e))),Array.from(new Array(e.startOf("month").day()),((e,t)=>i.default.createElement(xt,{key:t}))),Array.from(new Array(e.daysInMonth()),((e,t)=>t+1)).map((r=>{const a=!c(Zt(new Date(e.year(),e.month(),r)));return i.default.createElement(fn,{key:r,value:Zt(new Date(e.year(),e.month(),r)),state:rn(t,n,e,r),selectable:a,onClickDate:u},r)}))))))))},gn=e.forwardRef((function(t,n){var{startDate:r,endDate:a,monthFormat:o="YYYY年M月",weekList:l=["日","月","火","水","木","金","土"],defaultClickAction:c,actions:u,onClickAction:d,onClose:p,isOutsideRange:f=(()=>!1),onClickCloseButton:m,onDatesChange:g}=t,h=s(t,["startDate","endDate","monthFormat","weekList","defaultClickAction","actions","onClickAction","onClose","isOutsideRange","onClickCloseButton","onDatesChange"]);const b=x(),[v,y]=i.default.useState(r),[w,C]=i.default.useState(!1);e.useEffect((()=>{y(r)}),[r]);const[E,k]=e.useState(tn),A=e.useCallback((e=>{switch(p&&p(E),E){case tn:null==g||g({startDate:e,endDate:a}),k(nn);break;case nn:null==g||g({startDate:r,endDate:e}),k(tn)}}),[p,E,g,a,r]);return i.default.createElement(gt,Object.assign({ref:n},h),i.default.createElement(Nt,{defaultClickAction:c,actions:u,onClickAction:d}),i.default.createElement(ht,null,i.default.createElement("div",{style:{position:"relative",zIndex:1}},i.default.createElement(Ew,{unmountOnExit:!0,in:w,direction:"up"},i.default.createElement(zt,{date:r,current:r,yearIsOpen:w,onYearIsOpen:C,onClick:e=>{C(!1),y(e)}}))),i.default.createElement("div",{style:{position:"relative",zIndex:0}},i.default.createElement(mn,{startDate:r,endDate:a,monthFormat:o,weekList:l,current:v,yearIsOpen:w,isOutsideRange:f,onYearIsOpen:C,onDateChange:A}))),m&&i.default.createElement(Ct,{expanded:w,onClick:m},i.default.createElement(I,{name:"close",color:b.palette.black})))}));var hn=e.memo(gn);const bn=o.default.div`
|
|
452
452
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
453
453
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
454
454
|
width: ${({width:e})=>e||"auto"};
|
|
@@ -575,7 +575,7 @@ object-assign
|
|
|
575
575
|
100% {
|
|
576
576
|
transform: rotate(360deg);
|
|
577
577
|
}
|
|
578
|
-
`,
|
|
578
|
+
`,Sn=t.keyframes`
|
|
579
579
|
0% {
|
|
580
580
|
stroke-dasharray: 1, 200;
|
|
581
581
|
stroke-dashoffset: 0;
|
|
@@ -588,7 +588,7 @@ object-assign
|
|
|
588
588
|
stroke-dasharray: 89, 200;
|
|
589
589
|
stroke-dashoffset: -124px;
|
|
590
590
|
}
|
|
591
|
-
`,
|
|
591
|
+
`,Ln=o.default.div`
|
|
592
592
|
width: ${({width:e})=>e};
|
|
593
593
|
height: ${({width:e})=>e};
|
|
594
594
|
background-color: transparent;
|
|
@@ -600,13 +600,13 @@ object-assign
|
|
|
600
600
|
`,Rn=o.default.circle`
|
|
601
601
|
stroke-width: 3;
|
|
602
602
|
fill: none;
|
|
603
|
-
|
|
603
|
+
`,$n=o.default(Rn)`
|
|
604
604
|
stroke-dasharray: 1, 200;
|
|
605
605
|
stroke-dashoffset: 0;
|
|
606
|
-
animation: ${
|
|
606
|
+
animation: ${Sn} 1.5s ease-in-out infinite;
|
|
607
607
|
stroke-linecap: round;
|
|
608
608
|
stroke-miterlimit: 10;
|
|
609
|
-
|
|
609
|
+
`,Tn=i.forwardRef((function({width:e="50px"},t){const n=x();return i.createElement(Ln,{ref:t,width:e},i.createElement(On,{viewBox:"25 25 50 50"},i.createElement(Rn,{cx:"50",cy:"50",r:"20",stroke:n.palette.gray.light}),i.createElement($n,{cx:"50",cy:"50",r:"20",stroke:n.palette.primary.main})))})),zn=o.default.div`
|
|
610
610
|
position: fixed;
|
|
611
611
|
right: 0;
|
|
612
612
|
bottom: 0;
|
|
@@ -615,7 +615,7 @@ object-assign
|
|
|
615
615
|
z-index: ${({theme:e})=>e.depth.modal};
|
|
616
616
|
|
|
617
617
|
visibility: ${({isHidden:e})=>e?"hidden":"visible"};
|
|
618
|
-
`,Bn=({disablePortal:e=!1,container:t,children:n})=>{const[r,a]=i.useState(null);return i.useEffect((()=>{a(t||document.body)}),[t]),e?n||null:r?l.createPortal(n,r):null},Gn=(...e)=>function(...t){e.forEach((e=>{e&&e.apply(this,t)}))},Pn=i.forwardRef((function({isOpen:e=!0,hasBackground:t=!0,backdropProps:n,enableTransition:r=!0,onClose:a,children:o},l){const[s,c]=i.useState(!0),u=()=>{c(!1)},d=()=>{c(!0)},p={};return r&&o.props.hasOwnProperty("in")&&(p.onEnter=Gn(u,o.props.onEnter),p.onExited=Gn(d,o.props.onExited)),i.createElement(Bn,null,i.createElement(zn,{ref:l,isHidden:!e&&s},t&&i.createElement(Qe,Object.assign({},n,{isOpen:!r||e,onClick:e=>{a&&a(e,"backdropClick")}})),i.cloneElement(o,p)))})),Wn={components:{DatePicker:{defaultProps:{monthFormat:"MMM YYYY",weekList:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}},DateRangePicker:{defaultProps:{monthFormat:"MMM YYYY",weekList:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}},WeekTime:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},WeekTimeSelector:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},DualListBox:{defaultProps:{selectedItemTitle:"selected"}}}},jn=i.createContext({locale:Wn});function Fn(e){var t,n;const{name:r,props:a}=e,o=i.default.useContext(jn).locale,l=Object.assign({},a);if(!o||!o.components)return l;const s=null===(n=null===(t=o.components)||void 0===t?void 0:t[r])||void 0===n?void 0:n.defaultProps;for(const e in s)void 0===l[e]&&(l[e]=s[e]);return l}const Xn=i.forwardRef((function(e,t){const n=Fn({props:e,name:"ConfirmModal"}),{title:r,confirmText:a="Confirm",cancelText:o="Cancel",children:l,onClose:s,onSubmit:c,buttonColor:u="primary",isOpen:d=!0,disabled:p,loading:f,overflowYScroll:m=!0,disableHorizontalPadding:g=!1,subActions:h,modalProps:b,fadeProps:v}=n,y=x(),w=!!c,C=e=>t=>{s&&s(t,e)};return i.createElement(Pn,Object.assign({isOpen:d,onClose:s},b),i.createElement(Ue,Object.assign({in:d,unmountOnExit:!0},v),i.createElement(kn,{ref:t},i.createElement("form",{onSubmit:c},i.createElement(An,null,i.createElement(Mn,null,i.createElement(
|
|
618
|
+
`,Bn=({disablePortal:e=!1,container:t,children:n})=>{const[r,a]=i.useState(null);return i.useEffect((()=>{a(t||document.body)}),[t]),e?n||null:r?l.createPortal(n,r):null},Gn=(...e)=>function(...t){e.forEach((e=>{e&&e.apply(this,t)}))},Pn=i.forwardRef((function({isOpen:e=!0,hasBackground:t=!0,backdropProps:n,enableTransition:r=!0,onClose:a,children:o},l){const[s,c]=i.useState(!0),u=()=>{c(!1)},d=()=>{c(!0)},p={};return r&&o.props.hasOwnProperty("in")&&(p.onEnter=Gn(u,o.props.onEnter),p.onExited=Gn(d,o.props.onExited)),i.createElement(Bn,null,i.createElement(zn,{ref:l,isHidden:!e&&s},t&&i.createElement(Qe,Object.assign({},n,{isOpen:!r||e,onClick:e=>{a&&a(e,"backdropClick")}})),i.cloneElement(o,p)))})),Wn={components:{DatePicker:{defaultProps:{monthFormat:"MMM YYYY",weekList:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}},DateRangePicker:{defaultProps:{monthFormat:"MMM YYYY",weekList:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}},WeekTime:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},WeekTimeSelector:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},DualListBox:{defaultProps:{selectedItemTitle:"selected"}}}},jn=i.createContext({locale:Wn});function Fn(e){var t,n;const{name:r,props:a}=e,o=i.default.useContext(jn).locale,l=Object.assign({},a);if(!o||!o.components)return l;const s=null===(n=null===(t=o.components)||void 0===t?void 0:t[r])||void 0===n?void 0:n.defaultProps;for(const e in s)void 0===l[e]&&(l[e]=s[e]);return l}const Xn=i.forwardRef((function(e,t){const n=Fn({props:e,name:"ConfirmModal"}),{title:r,confirmText:a="Confirm",cancelText:o="Cancel",children:l,onClose:s,onSubmit:c,buttonColor:u="primary",isOpen:d=!0,disabled:p,loading:f,overflowYScroll:m=!0,disableHorizontalPadding:g=!1,subActions:h,modalProps:b,fadeProps:v}=n,y=x(),w=!!c,C=e=>t=>{s&&s(t,e)};return i.createElement(Pn,Object.assign({isOpen:d,onClose:s},b),i.createElement(Ue,Object.assign({in:d,unmountOnExit:!0},v),i.createElement(kn,{ref:t},i.createElement("form",{onSubmit:c},i.createElement(An,null,i.createElement(Mn,null,i.createElement($,{weight:"bold",size:"xxxl"},r),h&&i.createElement(rt,{pl:2},i.createElement(A,{display:"flex",alignItems:"center",gap:1},h.map(((e,t)=>i.createElement(i.Fragment,{key:t},e)))))),i.createElement(Vn,{onClick:C("clickCloseIcon")},i.createElement(I,{name:"close",size:"lg",color:y.palette.black}))),i.createElement(Hn,{overflowYScroll:m,showFooter:w},g?l:i.createElement(rt,{px:3,pb:3},l)),w&&i.createElement(Nn,null,i.createElement(A,{display:"flex",alignItems:"center"},i.createElement(st,{type:"button",color:"clear",inline:!0,onClick:C("clickCancelButton")},o),i.createElement(rt,{pr:2}),i.createElement(st,{type:"submit",color:u,disabled:p,inline:!0},a)))),f&&i.createElement(Zn,null,i.createElement(Tn,null)))))})),Yn=o.default.div`
|
|
619
619
|
display: ${({inline:e})=>e?"inline-block":"block"};
|
|
620
620
|
padding: ${({theme:e})=>e.spacing}px 0;
|
|
621
621
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
@@ -630,7 +630,7 @@ object-assign
|
|
|
630
630
|
padding: ${({theme:e})=>e.spacing}px;
|
|
631
631
|
`,Un=o.default.div`
|
|
632
632
|
opacity: ${({disabled:e})=>e?.5:1};
|
|
633
|
-
`,Qn=o.default(
|
|
633
|
+
`,Qn=o.default($)``,_n=o.default.div`
|
|
634
634
|
cursor: ${({disabled:e})=>e?"default":"pointer"};
|
|
635
635
|
display: flex;
|
|
636
636
|
align-items: center;
|
|
@@ -677,16 +677,16 @@ object-assign
|
|
|
677
677
|
/* MEMO: adjust to FlexItem */
|
|
678
678
|
align-self: stretch;
|
|
679
679
|
justify-self: stretch;
|
|
680
|
-
`,Kn=i.default.forwardRef((function(e,t){var{color:n,orientation:r="horizontal"}=e,a=s(e,["color","orientation"]);const o=x(),l=n||o.palette.divider;return i.default.createElement(qn,Object.assign({ref:t,color:l,orientation:r},a))})),er=(e,t)=>{const n={default:{normal:{background:e.palette.background.default,color:e.palette.black},hover:{background:e.palette.gray.light,color:e.palette.black},active:{background:e.palette.gray.main,color:e.palette.black}},warning:{normal:{background:e.palette.gray.highlight,color:e.palette.danger.main},hover:{background:e.palette.danger.main,color:e.palette.text.white},active:{background:e.palette.danger.dark,color:e.palette.text.white}},disabled:{normal:{background:"auto",color:"disabled"},hover:{background:"auto",color:"disabled"},active:{background:"auto",color:"disabled"}}};return t?n[t]:n.default},tr=i.default.forwardRef((function(e,t){var{inline:n=!1,contents:r,maxHeight:a="none"}=e,o=s(e,["inline","contents","maxHeight"]);const l=x(),c=(e,t)=>"disabled"===e||!0===t,u=(e,t,n)=>c(t,n)?er(e,"disabled"):er(e,t),d=(e,t)=>()=>{c(e.type,t)||e.onClick()},p=e=>i.default.createElement(i.default.Fragment,{key:e.text},e.divideTop&&i.default.createElement(Kn,{my:1,mx:2,color:l.palette.gray.light}),i.default.createElement(_n,{disabled:c(e.type,e.disabled),normal:u(l,e.type,e.disabled).normal,hover:u(l,e.type,e.disabled).hover,active:u(l,e.type,e.disabled).active,onClick:d(e,e.disabled)},e.iconName&&i.default.createElement(rt,{mr:1},i.default.createElement(Un,{disabled:c(e.type,e.disabled)},i.default.createElement(I,{name:e.iconName,color:u(l,e.type,e.disabled).normal.color}))),i.default.createElement(Qn,{size:"sm",color:u(l,e.type,e.disabled).normal.color},e.text)));return i.default.createElement(Yn,Object.assign({inline:n,maxHeight:a},o,{ref:t}),r.map((e=>(e=>""===e.title||!!e.title)(e)?i.default.createElement(i.default.Fragment,{key:e.title},e.title&&i.default.createElement(Jn,null,i.default.createElement(
|
|
680
|
+
`,Kn=i.default.forwardRef((function(e,t){var{color:n,orientation:r="horizontal"}=e,a=s(e,["color","orientation"]);const o=x(),l=n||o.palette.divider;return i.default.createElement(qn,Object.assign({ref:t,color:l,orientation:r},a))})),er=(e,t)=>{const n={default:{normal:{background:e.palette.background.default,color:e.palette.black},hover:{background:e.palette.gray.light,color:e.palette.black},active:{background:e.palette.gray.main,color:e.palette.black}},warning:{normal:{background:e.palette.gray.highlight,color:e.palette.danger.main},hover:{background:e.palette.danger.main,color:e.palette.text.white},active:{background:e.palette.danger.dark,color:e.palette.text.white}},disabled:{normal:{background:"auto",color:"disabled"},hover:{background:"auto",color:"disabled"},active:{background:"auto",color:"disabled"}}};return t?n[t]:n.default},tr=i.default.forwardRef((function(e,t){var{inline:n=!1,contents:r,maxHeight:a="none"}=e,o=s(e,["inline","contents","maxHeight"]);const l=x(),c=(e,t)=>"disabled"===e||!0===t,u=(e,t,n)=>c(t,n)?er(e,"disabled"):er(e,t),d=(e,t)=>()=>{c(e.type,t)||e.onClick()},p=e=>i.default.createElement(i.default.Fragment,{key:e.text},e.divideTop&&i.default.createElement(Kn,{my:1,mx:2,color:l.palette.gray.light}),i.default.createElement(_n,{disabled:c(e.type,e.disabled),normal:u(l,e.type,e.disabled).normal,hover:u(l,e.type,e.disabled).hover,active:u(l,e.type,e.disabled).active,onClick:d(e,e.disabled)},e.iconName&&i.default.createElement(rt,{mr:1},i.default.createElement(Un,{disabled:c(e.type,e.disabled)},i.default.createElement(I,{name:e.iconName,color:u(l,e.type,e.disabled).normal.color}))),i.default.createElement(Qn,{size:"sm",color:u(l,e.type,e.disabled).normal.color},e.text)));return i.default.createElement(Yn,Object.assign({inline:n,maxHeight:a},o,{ref:t}),r.map((e=>(e=>""===e.title||!!e.title)(e)?i.default.createElement(i.default.Fragment,{key:e.title},e.title&&i.default.createElement(Jn,null,i.default.createElement($,{size:"xs",color:l.palette.text.secondary,weight:"bold"},e.title)),e.contents.map(p)):p(e))))})),nr=o.default.div`
|
|
681
681
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
682
682
|
box-shadow: ${({theme:e})=>mt(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase)};
|
|
683
683
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
684
|
-
`;function rr(e){return or(e)?(e.nodeName||"").toLowerCase():"#document"}function ar(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ir(e){var t;return null==(t=(or(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function or(e){return e instanceof Node||e instanceof ar(e).Node}function lr(e){return e instanceof Element||e instanceof ar(e).Element}function sr(e){return e instanceof HTMLElement||e instanceof ar(e).HTMLElement}function cr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ar(e).ShadowRoot)}function ur(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=gr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function dr(e){return["table","td","th"].includes(rr(e))}function pr(e){const t=fr(),n=gr(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function fr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function mr(e){return["html","body","#document"].includes(rr(e))}function gr(e){return ar(e).getComputedStyle(e)}function hr(e){return lr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function br(e){if("html"===rr(e))return e;const t=e.assignedSlot||e.parentNode||cr(e)&&e.host||ir(e);return cr(t)?t.host:t}function vr(e){const t=br(e);return mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:sr(t)&&ur(t)?t:vr(t)}function xr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=vr(e),i=a===(null==(r=e.ownerDocument)?void 0:r.body),o=ar(a);return i?t.concat(o,o.visualViewport||[],ur(a)?a:[],o.frameElement&&n?xr(o.frameElement):[]):t.concat(a,xr(a,[],n))}function yr(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(r=n.shadowRoot)?void 0:r.activeElement);){var n,r;t=t.shadowRoot.activeElement}return t}function wr(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&cr(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Cr(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Er(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ar()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Ir(e){return!Ar()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function kr(){return/apple/i.test(navigator.vendor)}function Ar(){const e=/android/i;return e.test(Cr())||e.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())}function Mr(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Hr(e){return(null==e?void 0:e.ownerDocument)||document}function Nr(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Vr(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Zr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Dr(e){return sr(e)&&e.matches(Zr)}function Lr(e){e.preventDefault(),e.stopPropagation()}const Sr=["start","end"],Or=["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-"+Sr[0],t+"-"+Sr[1])),[]),Rr=Math.min,Tr=Math.max,$r=Math.round,zr=Math.floor,Br=e=>({x:e,y:e}),Gr={left:"right",right:"left",bottom:"top",top:"bottom"},Pr={start:"end",end:"start"};function Wr(e,t,n){return Tr(e,Rr(t,n))}function jr(e,t){return"function"==typeof e?e(t):e}function Fr(e){return e.split("-")[0]}function Xr(e){return e.split("-")[1]}function Yr(e){return"x"===e?"y":"x"}function Jr(e){return"y"===e?"height":"width"}function Ur(e){return["top","bottom"].includes(Fr(e))?"y":"x"}function Qr(e){return Yr(Ur(e))}function _r(e,t,n){void 0===n&&(n=!1);const r=Xr(e),a=Qr(e),i=Jr(a);let o="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Kr(o)),[o,Kr(o)]}function qr(e){return e.replace(/start|end/g,(e=>Pr[e]))}function Kr(e){return e.replace(/left|right|bottom|top/g,(e=>Gr[e]))}function ea(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ta(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function na(e,t,n){let{reference:r,floating:a}=e;const i=Ur(t),o=Qr(t),l=Jr(o),s=Fr(t),c="y"===i,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[l]/2-a[l]/2;let f;switch(s){case"top":f={x:u,y:r.y-a.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-a.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Xr(t)){case"start":f[o]-=p*(n&&c?-1:1);break;case"end":f[o]+=p*(n&&c?-1:1)}return f}async function ra(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:i,rects:o,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=jr(t,e),m=ea(f),g=l[p?"floating"===d?"reference":"floating":d],h=ta(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{...o.floating,x:r,y:a}:o.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),x=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},y=ta(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:s}):b);return{top:(h.top-y.top+m.top)/x.y,bottom:(y.bottom-h.bottom+m.bottom)/x.y,left:(h.left-y.left+m.left)/x.x,right:(y.right-h.right+m.right)/x.x}}const aa=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=jr(e,t)||{};if(null==c)return{};const d=ea(u),p={x:n,y:r},f=Qr(a),m=Jr(f),g=await o.getDimensions(c),h="y"===f,b=h?"top":"left",v=h?"bottom":"right",x=h?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[f]-p[f]-i.floating[m],w=p[f]-i.reference[f],C=await(null==o.getOffsetParent?void 0:o.getOffsetParent(c));let E=C?C[x]:0;E&&await(null==o.isElement?void 0:o.isElement(C))||(E=l.floating[x]||i.floating[m]);const I=y/2-w/2,k=E/2-g[m]/2-1,A=Rr(d[b],k),M=Rr(d[v],k),H=A,N=E-g[m]-M,V=E/2-g[m]/2+I,Z=Wr(H,V,N),D=!s.arrow&&null!=Xr(a)&&V!=Z&&i.reference[m]/2-(V<H?A:M)-g[m]/2<0,L=D?V<H?V-H:V-N:0;return{[f]:p[f]+L,data:{[f]:Z,centerOffset:V-Z-L,...D&&{alignmentOffset:L}},reset:D}}});const ia=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,a;const{rects:i,middlewareData:o,placement:l,platform:s,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Or,autoAlignment:f=!0,...m}=jr(e,t),g=void 0!==d||p===Or?function(e,t,n){return(e?[...n.filter((t=>Xr(t)===e)),...n.filter((t=>Xr(t)!==e))]:n.filter((e=>Fr(e)===e))).filter((n=>!e||Xr(n)===e||!!t&&qr(n)!==n))}(d||null,f,p):p,h=await ra(t,m),b=(null==(n=o.autoPlacement)?void 0:n.index)||0,v=g[b];if(null==v)return{};const x=_r(v,i,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==v)return{reset:{placement:g[0]}};const y=[h[Fr(v)],h[x[0]],h[x[1]]],w=[...(null==(r=o.autoPlacement)?void 0:r.overflows)||[],{placement:v,overflows:y}],C=g[b+1];if(C)return{data:{index:b+1,overflows:w},reset:{placement:C}};const E=w.map((e=>{const t=Xr(e.placement);return[e.placement,t&&u?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),I=(null==(a=E.filter((e=>e[2].slice(0,Xr(e[0])?2:3).every((e=>e<=0))))[0])?void 0:a[0])||E[0][0];return I!==l?{data:{index:b+1,overflows:w},reset:{placement:I}}:{}}}},oa=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=jr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=Fr(a),v=Fr(l)===l,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),y=p||(v||!g?[Kr(l)]:function(e){const t=Kr(e);return[qr(e),t,qr(t)]}(l));p||"none"===m||y.push(...function(e,t,n,r){const a=Xr(e);let i=function(e,t,n){const r=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?i:o;default:return[]}}(Fr(e),"start"===n,r);return a&&(i=i.map((e=>e+"-"+a)),t&&(i=i.concat(i.map(qr)))),i}(l,g,m,x));const w=[l,...y],C=await ra(t,h),E=[];let I=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(C[b]),d){const e=_r(a,o,x);E.push(C[e[0]],C[e[1]])}if(I=[...I,{placement:a,overflows:E}],!E.every((e=>e<=0))){var k,A;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(A=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(f){case"bestFit":{var M;const e=null==(M=I.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=l}if(a!==n)return{reset:{placement:n}}}return{}}}};const la=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await async function(e,t){const{placement:n,platform:r,elements:a}=e,i=await(null==r.isRTL?void 0:r.isRTL(a.floating)),o=Fr(n),l=Xr(n),s="y"===Ur(n),c=["left","top"].includes(o)?-1:1,u=i&&s?-1:1,d=jr(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof m&&(f="end"===l?-1*m:m),s?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return{x:n+a.x,y:r+a.y,data:a}}}},sa=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=jr(e,t),c={x:n,y:r},u=await ra(t,s),d=Ur(Fr(a)),p=Yr(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=Wr(f+u["y"===p?"top":"left"],f,f-u[e])}if(o){const e="y"===d?"bottom":"right";m=Wr(m+u["y"===d?"top":"left"],m,m-u[e])}const g=l.fn({...t,[p]:f,[d]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}},ca=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:a,elements:i}=t,{apply:o=(()=>{}),...l}=jr(e,t),s=await ra(t,l),c=Fr(n),u=Xr(n),d="y"===Ur(n),{width:p,height:f}=r.floating;let m,g;"top"===c||"bottom"===c?(m=c,g=u===(await(null==a.isRTL?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,m="end"===u?"top":"bottom");const h=f-s[m],b=p-s[g],v=!t.middlewareData.shift;let x=h,y=b;if(d){const e=p-s.left-s.right;y=u||v?Rr(b,e):e}else{const e=f-s.top-s.bottom;x=u||v?Rr(h,e):e}if(v&&!u){const e=Tr(s.left,0),t=Tr(s.right,0),n=Tr(s.top,0),r=Tr(s.bottom,0);d?y=p-2*(0!==e||0!==t?e+t:Tr(s.left,s.right)):x=f-2*(0!==n||0!==r?n+r:Tr(s.top,s.bottom))}await o({...t,availableWidth:y,availableHeight:x});const w=await a.getDimensions(i.floating);return p!==w.width||f!==w.height?{reset:{rects:!0}}:{}}}};function ua(e){const t=gr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=sr(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,l=$r(n)!==i||$r(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function da(e){return lr(e)?e:e.contextElement}function pa(e){const t=da(e);if(!sr(t))return Br(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=ua(t);let o=(i?$r(n.width):n.width)/r,l=(i?$r(n.height):n.height)/a;return o&&Number.isFinite(o)||(o=1),l&&Number.isFinite(l)||(l=1),{x:o,y:l}}const fa=Br(0);function ma(e){const t=ar(e);return fr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:fa}function ga(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),i=da(e);let o=Br(1);t&&(r?lr(r)&&(o=pa(r)):o=pa(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ar(e))&&t}(i,n,r)?ma(i):Br(0);let s=(a.left+l.x)/o.x,c=(a.top+l.y)/o.y,u=a.width/o.x,d=a.height/o.y;if(i){const e=ar(i),t=r&&lr(r)?ar(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=pa(n),t=n.getBoundingClientRect(),r=gr(n),a=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=a,c+=i,n=ar(n).frameElement}}return ta({width:u,height:d,x:s,y:c})}function ha(e){return ga(ir(e)).left+hr(e).scrollLeft}function ba(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ar(e),r=ir(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,s=0;if(a){i=a.width,o=a.height;const e=fr();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,s=a.offsetTop)}return{width:i,height:o,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=ir(e),n=hr(e),r=e.ownerDocument.body,a=Tr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Tr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+ha(e);const l=-n.scrollTop;return"rtl"===gr(r).direction&&(o+=Tr(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:l}}(ir(e));else if(lr(t))r=function(e,t){const n=ga(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=sr(e)?pa(e):Br(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:a*i.x,y:r*i.y}}(t,n);else{const n=ma(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return ta(r)}function va(e,t){const n=br(e);return!(n===t||!lr(n)||mr(n))&&("fixed"===gr(n).position||va(n,t))}function xa(e,t,n){const r=sr(t),a=ir(t),i="fixed"===n,o=ga(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Br(0);if(r||!r&&!i)if(("body"!==rr(t)||ur(a))&&(l=hr(t)),r){const e=ga(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=ha(a));return{x:o.left+l.scrollLeft-s.x,y:o.top+l.scrollTop-s.y,width:o.width,height:o.height}}function ya(e,t){return sr(e)&&"fixed"!==gr(e).position?t?t(e):e.offsetParent:null}function wa(e,t){const n=ar(e);if(!sr(e))return n;let r=ya(e,t);for(;r&&dr(r)&&"static"===gr(r).position;)r=ya(r,t);return r&&("html"===rr(r)||"body"===rr(r)&&"static"===gr(r).position&&!pr(r))?n:r||function(e){let t=br(e);for(;sr(t)&&!mr(t);){if(pr(t))return t;t=br(t)}return null}(e)||n}const Ca={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=sr(n),i=ir(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},l=Br(1);const s=Br(0);if((a||!a&&"fixed"!==r)&&(("body"!==rr(n)||ur(i))&&(o=hr(n)),sr(n))){const e=ga(n);l=pa(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-o.scrollLeft*l.x+s.x,y:t.y*l.y-o.scrollTop*l.y+s.y}},getDocumentElement:ir,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=xr(e,[],!1).filter((e=>lr(e)&&"body"!==rr(e))),a=null;const i="fixed"===gr(e).position;let o=i?br(e):e;for(;lr(o)&&!mr(o);){const t=gr(o),n=pr(o);n||"fixed"!==t.position||(a=null),(i?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||ur(o)&&!n&&va(e,o))?r=r.filter((e=>e!==o)):a=t,o=br(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=i[0],l=i.reduce(((e,n)=>{const r=ba(t,n,a);return e.top=Tr(r.top,e.top),e.right=Rr(r.right,e.right),e.bottom=Rr(r.bottom,e.bottom),e.left=Tr(r.left,e.left),e}),ba(t,o,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:wa,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const a=this.getOffsetParent||wa,i=this.getDimensions;return{reference:xa(t,await a(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return ua(e)},getScale:pa,isElement:lr,isRTL:function(e){return"rtl"===gr(e).direction}};function Ea(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=da(e),u=a||i?[...c?xr(c):[],...xr(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const a=ir(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function o(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;const f={rootMargin:-zr(u)+"px "+-zr(a.clientWidth-(c+d))+"px "+-zr(a.clientHeight-(u+p))+"px "+-zr(c)+"px",threshold:Tr(0,Rr(1,s))||1};let m=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return o();t?o(!1,t):n=setTimeout((()=>{o(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,m=null;o&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{m&&m.observe(t)}))),n()})),c&&!s&&m.observe(c),m.observe(t));let g=s?ga(e):null;return s&&function t(){const r=ga(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,p=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),m&&m.disconnect(),m=null,s&&cancelAnimationFrame(p)}}const Ia=(e,t,n)=>{const r=new Map,a={platform:Ca,...n},i={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),s=await(null==o.isRTL?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=na(c,r,s),p=r,f={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:g}=l[n],{x:h,y:b,data:v,reset:x}=await g({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=null!=h?h:u,d=null!=b?b:d,f={...f,[i]:{...f[i],...v}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await o.getElementRects({reference:e,floating:t,strategy:a}):x.rects),({x:u,y:d}=na(c,p,s))),n=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:f}})(e,t,{...a,platform:i})},ka=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?aa({element:n.current,padding:r}).fn(t):{}:n?aa({element:n,padding:r}).fn(t):{};var a}});var Aa="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Ma(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Ma(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!Ma(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ha(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Na(e,t){const n=Ha(e);return Math.round(t*n)/n}function Va(e){const t=i.useRef(e);return Aa((()=>{t.current=e})),t}
|
|
684
|
+
`;function rr(e){return or(e)?(e.nodeName||"").toLowerCase():"#document"}function ar(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ir(e){var t;return null==(t=(or(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function or(e){return e instanceof Node||e instanceof ar(e).Node}function lr(e){return e instanceof Element||e instanceof ar(e).Element}function sr(e){return e instanceof HTMLElement||e instanceof ar(e).HTMLElement}function cr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof ar(e).ShadowRoot)}function ur(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=gr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function dr(e){return["table","td","th"].includes(rr(e))}function pr(e){const t=fr(),n=gr(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function fr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function mr(e){return["html","body","#document"].includes(rr(e))}function gr(e){return ar(e).getComputedStyle(e)}function hr(e){return lr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function br(e){if("html"===rr(e))return e;const t=e.assignedSlot||e.parentNode||cr(e)&&e.host||ir(e);return cr(t)?t.host:t}function vr(e){const t=br(e);return mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:sr(t)&&ur(t)?t:vr(t)}function xr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=vr(e),i=a===(null==(r=e.ownerDocument)?void 0:r.body),o=ar(a);return i?t.concat(o,o.visualViewport||[],ur(a)?a:[],o.frameElement&&n?xr(o.frameElement):[]):t.concat(a,xr(a,[],n))}function yr(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(r=n.shadowRoot)?void 0:r.activeElement);){var n,r;t=t.shadowRoot.activeElement}return t}function wr(e,t){if(!e||!t)return!1;const n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&cr(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Cr(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Er(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Ar()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Ir(e){return!Ar()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail}function kr(){return/apple/i.test(navigator.vendor)}function Ar(){const e=/android/i;return e.test(Cr())||e.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())}function Mr(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Hr(e){return(null==e?void 0:e.ownerDocument)||document}function Nr(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Vr(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Zr="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Dr(e){return sr(e)&&e.matches(Zr)}function Sr(e){e.preventDefault(),e.stopPropagation()}const Lr=["start","end"],Or=["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-"+Lr[0],t+"-"+Lr[1])),[]),Rr=Math.min,$r=Math.max,Tr=Math.round,zr=Math.floor,Br=e=>({x:e,y:e}),Gr={left:"right",right:"left",bottom:"top",top:"bottom"},Pr={start:"end",end:"start"};function Wr(e,t,n){return $r(e,Rr(t,n))}function jr(e,t){return"function"==typeof e?e(t):e}function Fr(e){return e.split("-")[0]}function Xr(e){return e.split("-")[1]}function Yr(e){return"x"===e?"y":"x"}function Jr(e){return"y"===e?"height":"width"}function Ur(e){return["top","bottom"].includes(Fr(e))?"y":"x"}function Qr(e){return Yr(Ur(e))}function _r(e,t,n){void 0===n&&(n=!1);const r=Xr(e),a=Qr(e),i=Jr(a);let o="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Kr(o)),[o,Kr(o)]}function qr(e){return e.replace(/start|end/g,(e=>Pr[e]))}function Kr(e){return e.replace(/left|right|bottom|top/g,(e=>Gr[e]))}function ea(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ta(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function na(e,t,n){let{reference:r,floating:a}=e;const i=Ur(t),o=Qr(t),l=Jr(o),s=Fr(t),c="y"===i,u=r.x+r.width/2-a.width/2,d=r.y+r.height/2-a.height/2,p=r[l]/2-a[l]/2;let f;switch(s){case"top":f={x:u,y:r.y-a.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-a.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Xr(t)){case"start":f[o]-=p*(n&&c?-1:1);break;case"end":f[o]+=p*(n&&c?-1:1)}return f}async function ra(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:i,rects:o,elements:l,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=jr(t,e),m=ea(f),g=l[p?"floating"===d?"reference":"floating":d],h=ta(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{...o.floating,x:r,y:a}:o.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),x=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},y=ta(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:s}):b);return{top:(h.top-y.top+m.top)/x.y,bottom:(y.bottom-h.bottom+m.bottom)/x.y,left:(h.left-y.left+m.left)/x.x,right:(y.right-h.right+m.right)/x.x}}const aa=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:l,middlewareData:s}=t,{element:c,padding:u=0}=jr(e,t)||{};if(null==c)return{};const d=ea(u),p={x:n,y:r},f=Qr(a),m=Jr(f),g=await o.getDimensions(c),h="y"===f,b=h?"top":"left",v=h?"bottom":"right",x=h?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[f]-p[f]-i.floating[m],w=p[f]-i.reference[f],C=await(null==o.getOffsetParent?void 0:o.getOffsetParent(c));let E=C?C[x]:0;E&&await(null==o.isElement?void 0:o.isElement(C))||(E=l.floating[x]||i.floating[m]);const I=y/2-w/2,k=E/2-g[m]/2-1,A=Rr(d[b],k),M=Rr(d[v],k),H=A,N=E-g[m]-M,V=E/2-g[m]/2+I,Z=Wr(H,V,N),D=!s.arrow&&null!=Xr(a)&&V!=Z&&i.reference[m]/2-(V<H?A:M)-g[m]/2<0,S=D?V<H?V-H:V-N:0;return{[f]:p[f]+S,data:{[f]:Z,centerOffset:V-Z-S,...D&&{alignmentOffset:S}},reset:D}}});const ia=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,a;const{rects:i,middlewareData:o,placement:l,platform:s,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Or,autoAlignment:f=!0,...m}=jr(e,t),g=void 0!==d||p===Or?function(e,t,n){return(e?[...n.filter((t=>Xr(t)===e)),...n.filter((t=>Xr(t)!==e))]:n.filter((e=>Fr(e)===e))).filter((n=>!e||Xr(n)===e||!!t&&qr(n)!==n))}(d||null,f,p):p,h=await ra(t,m),b=(null==(n=o.autoPlacement)?void 0:n.index)||0,v=g[b];if(null==v)return{};const x=_r(v,i,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==v)return{reset:{placement:g[0]}};const y=[h[Fr(v)],h[x[0]],h[x[1]]],w=[...(null==(r=o.autoPlacement)?void 0:r.overflows)||[],{placement:v,overflows:y}],C=g[b+1];if(C)return{data:{index:b+1,overflows:w},reset:{placement:C}};const E=w.map((e=>{const t=Xr(e.placement);return[e.placement,t&&u?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),I=(null==(a=E.filter((e=>e[2].slice(0,Xr(e[0])?2:3).every((e=>e<=0))))[0])?void 0:a[0])||E[0][0];return I!==l?{data:{index:b+1,overflows:w},reset:{placement:I}}:{}}}},oa=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:l,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...h}=jr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=Fr(a),v=Fr(l)===l,x=await(null==s.isRTL?void 0:s.isRTL(c.floating)),y=p||(v||!g?[Kr(l)]:function(e){const t=Kr(e);return[qr(e),t,qr(t)]}(l));p||"none"===m||y.push(...function(e,t,n,r){const a=Xr(e);let i=function(e,t,n){const r=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?i:o;default:return[]}}(Fr(e),"start"===n,r);return a&&(i=i.map((e=>e+"-"+a)),t&&(i=i.concat(i.map(qr)))),i}(l,g,m,x));const w=[l,...y],C=await ra(t,h),E=[];let I=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&E.push(C[b]),d){const e=_r(a,o,x);E.push(C[e[0]],C[e[1]])}if(I=[...I,{placement:a,overflows:E}],!E.every((e=>e<=0))){var k,A;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(A=I.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(f){case"bestFit":{var M;const e=null==(M=I.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=l}if(a!==n)return{reset:{placement:n}}}return{}}}};const la=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await async function(e,t){const{placement:n,platform:r,elements:a}=e,i=await(null==r.isRTL?void 0:r.isRTL(a.floating)),o=Fr(n),l=Xr(n),s="y"===Ur(n),c=["left","top"].includes(o)?-1:1,u=i&&s?-1:1,d=jr(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof m&&(f="end"===l?-1*m:m),s?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return{x:n+a.x,y:r+a.y,data:a}}}},sa=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=jr(e,t),c={x:n,y:r},u=await ra(t,s),d=Ur(Fr(a)),p=Yr(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=Wr(f+u["y"===p?"top":"left"],f,f-u[e])}if(o){const e="y"===d?"bottom":"right";m=Wr(m+u["y"===d?"top":"left"],m,m-u[e])}const g=l.fn({...t,[p]:f,[d]:m});return{...g,data:{x:g.x-n,y:g.y-r}}}}},ca=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:a,elements:i}=t,{apply:o=(()=>{}),...l}=jr(e,t),s=await ra(t,l),c=Fr(n),u=Xr(n),d="y"===Ur(n),{width:p,height:f}=r.floating;let m,g;"top"===c||"bottom"===c?(m=c,g=u===(await(null==a.isRTL?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(g=c,m="end"===u?"top":"bottom");const h=f-s[m],b=p-s[g],v=!t.middlewareData.shift;let x=h,y=b;if(d){const e=p-s.left-s.right;y=u||v?Rr(b,e):e}else{const e=f-s.top-s.bottom;x=u||v?Rr(h,e):e}if(v&&!u){const e=$r(s.left,0),t=$r(s.right,0),n=$r(s.top,0),r=$r(s.bottom,0);d?y=p-2*(0!==e||0!==t?e+t:$r(s.left,s.right)):x=f-2*(0!==n||0!==r?n+r:$r(s.top,s.bottom))}await o({...t,availableWidth:y,availableHeight:x});const w=await a.getDimensions(i.floating);return p!==w.width||f!==w.height?{reset:{rects:!0}}:{}}}};function ua(e){const t=gr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=sr(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,l=Tr(n)!==i||Tr(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function da(e){return lr(e)?e:e.contextElement}function pa(e){const t=da(e);if(!sr(t))return Br(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=ua(t);let o=(i?Tr(n.width):n.width)/r,l=(i?Tr(n.height):n.height)/a;return o&&Number.isFinite(o)||(o=1),l&&Number.isFinite(l)||(l=1),{x:o,y:l}}const fa=Br(0);function ma(e){const t=ar(e);return fr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:fa}function ga(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),i=da(e);let o=Br(1);t&&(r?lr(r)&&(o=pa(r)):o=pa(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ar(e))&&t}(i,n,r)?ma(i):Br(0);let s=(a.left+l.x)/o.x,c=(a.top+l.y)/o.y,u=a.width/o.x,d=a.height/o.y;if(i){const e=ar(i),t=r&&lr(r)?ar(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=pa(n),t=n.getBoundingClientRect(),r=gr(n),a=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=a,c+=i,n=ar(n).frameElement}}return ta({width:u,height:d,x:s,y:c})}function ha(e){return ga(ir(e)).left+hr(e).scrollLeft}function ba(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ar(e),r=ir(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,s=0;if(a){i=a.width,o=a.height;const e=fr();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,s=a.offsetTop)}return{width:i,height:o,x:l,y:s}}(e,n);else if("document"===t)r=function(e){const t=ir(e),n=hr(e),r=e.ownerDocument.body,a=$r(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=$r(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+ha(e);const l=-n.scrollTop;return"rtl"===gr(r).direction&&(o+=$r(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:l}}(ir(e));else if(lr(t))r=function(e,t){const n=ga(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=sr(e)?pa(e):Br(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:a*i.x,y:r*i.y}}(t,n);else{const n=ma(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return ta(r)}function va(e,t){const n=br(e);return!(n===t||!lr(n)||mr(n))&&("fixed"===gr(n).position||va(n,t))}function xa(e,t,n){const r=sr(t),a=ir(t),i="fixed"===n,o=ga(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const s=Br(0);if(r||!r&&!i)if(("body"!==rr(t)||ur(a))&&(l=hr(t)),r){const e=ga(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else a&&(s.x=ha(a));return{x:o.left+l.scrollLeft-s.x,y:o.top+l.scrollTop-s.y,width:o.width,height:o.height}}function ya(e,t){return sr(e)&&"fixed"!==gr(e).position?t?t(e):e.offsetParent:null}function wa(e,t){const n=ar(e);if(!sr(e))return n;let r=ya(e,t);for(;r&&dr(r)&&"static"===gr(r).position;)r=ya(r,t);return r&&("html"===rr(r)||"body"===rr(r)&&"static"===gr(r).position&&!pr(r))?n:r||function(e){let t=br(e);for(;sr(t)&&!mr(t);){if(pr(t))return t;t=br(t)}return null}(e)||n}const Ca={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=sr(n),i=ir(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},l=Br(1);const s=Br(0);if((a||!a&&"fixed"!==r)&&(("body"!==rr(n)||ur(i))&&(o=hr(n)),sr(n))){const e=ga(n);l=pa(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-o.scrollLeft*l.x+s.x,y:t.y*l.y-o.scrollTop*l.y+s.y}},getDocumentElement:ir,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=xr(e,[],!1).filter((e=>lr(e)&&"body"!==rr(e))),a=null;const i="fixed"===gr(e).position;let o=i?br(e):e;for(;lr(o)&&!mr(o);){const t=gr(o),n=pr(o);n||"fixed"!==t.position||(a=null),(i?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||ur(o)&&!n&&va(e,o))?r=r.filter((e=>e!==o)):a=t,o=br(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=i[0],l=i.reduce(((e,n)=>{const r=ba(t,n,a);return e.top=$r(r.top,e.top),e.right=Rr(r.right,e.right),e.bottom=Rr(r.bottom,e.bottom),e.left=$r(r.left,e.left),e}),ba(t,o,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:wa,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const a=this.getOffsetParent||wa,i=this.getDimensions;return{reference:xa(t,await a(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return ua(e)},getScale:pa,isElement:lr,isRTL:function(e){return"rtl"===gr(e).direction}};function Ea(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=da(e),u=a||i?[...c?xr(c):[],...xr(t)]:[];u.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&l?function(e,t){let n,r=null;const a=ir(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function o(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(l||t(),!d||!p)return;const f={rootMargin:-zr(u)+"px "+-zr(a.clientWidth-(c+d))+"px "+-zr(a.clientHeight-(u+p))+"px "+-zr(c)+"px",threshold:$r(0,Rr(1,s))||1};let m=!0;function g(e){const t=e[0].intersectionRatio;if(t!==s){if(!m)return o();t?o(!1,t):n=setTimeout((()=>{o(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(g,{...f,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(g,f)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,m=null;o&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{m&&m.observe(t)}))),n()})),c&&!s&&m.observe(c),m.observe(t));let g=s?ga(e):null;return s&&function t(){const r=ga(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n();g=r,p=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),m&&m.disconnect(),m=null,s&&cancelAnimationFrame(p)}}const Ia=(e,t,n)=>{const r=new Map,a={platform:Ca,...n},i={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),s=await(null==o.isRTL?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=na(c,r,s),p=r,f={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:g}=l[n],{x:h,y:b,data:v,reset:x}=await g({x:u,y:d,initialPlacement:r,placement:p,strategy:a,middlewareData:f,rects:c,platform:o,elements:{reference:e,floating:t}});u=null!=h?h:u,d=null!=b?b:d,f={...f,[i]:{...f[i],...v}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await o.getElementRects({reference:e,floating:t,strategy:a}):x.rects),({x:u,y:d}=na(c,p,s))),n=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:f}})(e,t,{...a,platform:i})},ka=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(a=n,{}.hasOwnProperty.call(a,"current"))?null!=n.current?aa({element:n.current,padding:r}).fn(t):{}:n?aa({element:n,padding:r}).fn(t):{};var a}});var Aa="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function Ma(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Ma(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;0!=r--;){const n=a[r];if(("_owner"!==n||!e.$$typeof)&&!Ma(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ha(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Na(e,t){const n=Ha(e);return Math.round(t*n)/n}function Va(e){const t=i.useRef(e);return Aa((()=>{t.current=e})),t}
|
|
685
685
|
/*!
|
|
686
686
|
* tabbable 6.2.0
|
|
687
687
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
688
688
|
*/
|
|
689
|
-
var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Da="undefined"==typeof Element,La=Da?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Sa=!Da&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Oa=function e(t,n){var r;void 0===n&&(n=!0);var a=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===a||"true"===a||n&&t&&e(t.parentNode)},Ra=function e(t,n,r){for(var a=[],i=Array.from(t);i.length;){var o=i.shift();if(!Oa(o,!1))if("SLOT"===o.tagName){var l=o.assignedElements(),s=e(l.length?l:o.children,!0,r);r.flatten?a.push.apply(a,s):a.push({scopeParent:o,candidates:s})}else{La.call(o,Za)&&r.filter(o)&&(n||!t.includes(o))&&a.push(o);var c=o.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(o),u=!Oa(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(c&&u){var d=e(!0===c?o.children:c.children,!0,r);r.flatten?a.push.apply(a,d):a.push({scopeParent:o,candidates:d})}else i.unshift.apply(i,o.children)}}return a},Ta=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},$a=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Ta(e)?0:e.tabIndex},za=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ba=function(e){return"INPUT"===e.tagName},Ga=function(e){return function(e){return Ba(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Sa(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var a=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!a||a===e}(e)},Pa=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Wa=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var a=La.call(e,"details>summary:first-of-type")?e.parentElement:e;if(La.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Pa(e)}else{if("function"==typeof r){for(var i=e;e;){var o=e.parentElement,l=Sa(e);if(o&&!o.shadowRoot&&!0===r(o))return Pa(e);e=e.assignedSlot?e.assignedSlot:o||l===e.ownerDocument?o:l.host}e=i}if(function(e){var t,n,r,a,i=e&&Sa(e),o=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=o)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(o)||null!=e&&null!==(a=e.ownerDocument)&&void 0!==a&&a.contains(e));!l&&o;){var s,c,u;l=!(null===(c=o=null===(s=i=Sa(o))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(o))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},ja=function(e,t){return!(t.disabled||Oa(t)||function(e){return Ba(e)&&"hidden"===e.type}(t)||Wa(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!La.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Fa=function(e,t){return!(Ga(t)||$a(t)<0||!ja(e,t))},Xa=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ya=function e(t){var n=[],r=[];return t.forEach((function(t,a){var i=!!t.scopeParent,o=i?t.scopeParent:t,l=function(e,t){var n=$a(e);return n<0&&t&&!Ta(e)?0:n}(o,i),s=i?e(t.candidates):o;0===l?i?n.push.apply(n,s):n.push(o):r.push({documentOrder:a,tabIndex:l,item:t,isScope:i,content:s})})),r.sort(za).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Ja=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Ra([e],t.includeContainer,{filter:Fa.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Xa}):function(e,t,n){if(Oa(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Za));return t&&La.call(e,Za)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Fa.bind(null,t)),Ya(n)};const Ua=i["useInsertionEffect".toString()]||(e=>e());function Qa(e){const t=i.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Ua((()=>{t.current=e})),i.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const _a="ArrowUp",qa="ArrowDown",Ka="ArrowLeft",ei="ArrowRight";function ti(e,t,n){return Math.floor(e/t)!==n}function ni(e,t){return t<0||t>=e.current.length}function ri(e,t){return ii(e,{disabledIndices:t})}function ai(e,t){return ii(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ii(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:a,amount:i=1}=void 0===t?{}:t;const o=e.current,l=a?e=>a.includes(e):e=>{const t=o[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")};let s=n;do{s+=r?-i:i}while(s>=0&&s<=o.length-1&&l(s));return s}let oi=0;function li(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:a=!1}=t;r&&cancelAnimationFrame(oi);const i=()=>null==e?void 0:e.focus({preventScroll:n});a?i():oi=requestAnimationFrame(i)}var si="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function ci(){return ci=Object.assign?Object.assign.bind():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},ci.apply(this,arguments)}let ui=!1,di=0;const pi=()=>"floating-ui-"+di++;const fi=i["useId".toString()]||function(){const[e,t]=i.useState((()=>ui?pi():void 0));return si((()=>{null==e&&t(pi())}),[]),i.useEffect((()=>{ui||(ui=!0)}),[]),e},mi=i.forwardRef((function(e,t){let{context:{placement:n,elements:{floating:r},middlewareData:{arrow:a}},width:o=14,height:l=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:u,stroke:d,d:p,style:{transform:f,...m}={},...g}=e;"production"!==process.env.NODE_ENV&&(t||console.warn("Floating UI: The `ref` prop is required for the `FloatingArrow`","component."));const h=fi();if(!r)return null;c*=2;const b=c/2,v=o/2*(s/-8+1),x=l/2*s/4,[y,w]=n.split("-"),C=Ca.isRTL(r),E=!!p,I="top"===y||"bottom"===y,k=u&&"end"===w?"bottom":"top";let A=u&&"end"===w?"right":"left";u&&C&&(A="end"===w?"left":"right");const M=null!=(null==a?void 0:a.x)?u||a.x:"",H=null!=(null==a?void 0:a.y)?u||a.y:"",N=p||"M0,0 H"+o+" L"+(o-v)+","+(l-x)+" Q"+o/2+","+l+" "+v+","+(l-x)+" Z",V={top:E?"rotate(180deg)":"",left:E?"rotate(90deg)":"rotate(-90deg)",bottom:E?"":"rotate(180deg)",right:E?"rotate(-90deg)":"rotate(90deg)"}[y];return i.createElement("svg",ci({},g,{"aria-hidden":!0,ref:t,width:E?o:o+c,height:o,viewBox:"0 0 "+o+" "+(l>o?l:o),style:{position:"absolute",pointerEvents:"none",[A]:M,[k]:H,[y]:I||E?"100%":"calc(100% - "+c/2+"px)",transform:""+V+(null!=f?f:""),...m}}),c>0&&i.createElement("path",{clipPath:"url(#"+h+")",fill:"none",stroke:d,strokeWidth:c+(p?0:1),d:N}),i.createElement("path",{stroke:c&&!p?g.fill:"none",d:N}),i.createElement("clipPath",{id:h},i.createElement("rect",{x:-b,y:b*(E?-1:1),width:o+c,height:o})))}));function gi(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const hi=i.createContext(null),bi=i.createContext(null),xi=()=>{var e;return(null==(e=i.useContext(hi))?void 0:e.id)||null},yi=()=>i.useContext(bi);function wi(e){let{children:t,id:n}=e;const r=xi();return i.createElement(hi.Provider,{value:i.useMemo((()=>({id:n,parentId:r})),[n,r])},t)}function Ci(e){let{children:t}=e;const n=i.useRef([]),r=i.useCallback((e=>{n.current=[...n.current,e]}),[]),a=i.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),o=i.useState((()=>gi()))[0];return i.createElement(bi.Provider,{value:i.useMemo((()=>({nodesRef:n,addNode:r,removeNode:a,events:o})),[n,r,a,o])},t)}function Ei(e){return"data-floating-ui-"+e}function Ii(t){const n=e.useRef(t);return si((()=>{n.current=t})),n}const ki=Ei("safe-polygon");function Ai(e,t,n){return n&&!Mr(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Mi(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:a,events:o,elements:{domReference:l,floating:s},refs:c}=e,{enabled:u=!0,delay:d=0,handleClose:p=null,mouseOnly:f=!1,restMs:m=0,move:g=!0}=t,h=yi(),b=xi(),v=Ii(p),x=Ii(d),y=i.useRef(),w=i.useRef(),C=i.useRef(),E=i.useRef(),I=i.useRef(!0),k=i.useRef(!1),A=i.useRef((()=>{})),M=i.useCallback((()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[a]);i.useEffect((()=>{if(u)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(E.current),I.current=!0)}}),[u,o]),i.useEffect((()=>{if(!u||!v.current||!n)return;function e(e){M()&&r(!1,e,"hover")}const t=Hr(s).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s,n,r,u,v,a,M]);const H=i.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const a=Ai(x.current,"close",y.current);a&&!C.current?(clearTimeout(w.current),w.current=setTimeout((()=>r(!1,e,n)),a)):t&&(clearTimeout(w.current),r(!1,e,n))}),[x,r]),N=i.useCallback((()=>{A.current(),C.current=void 0}),[]),V=i.useCallback((()=>{if(k.current){const e=Hr(c.floating.current).body;e.style.pointerEvents="",e.removeAttribute(ki),k.current=!1}}),[c]);return i.useEffect((()=>{if(u&&lr(l)){const e=l;return n&&e.addEventListener("mouseleave",c),null==s||s.addEventListener("mouseleave",c),g&&e.addEventListener("mousemove",i,{once:!0}),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",o),()=>{n&&e.removeEventListener("mouseleave",c),null==s||s.removeEventListener("mouseleave",c),g&&e.removeEventListener("mousemove",i),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",o)}}function t(){return!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)}function i(e){if(clearTimeout(w.current),I.current=!1,f&&!Mr(y.current)||m>0&&0===Ai(x.current,"open"))return;const t=Ai(x.current,"open",y.current);t?w.current=setTimeout((()=>{r(!0,e,"hover")}),t):r(!0,e,"hover")}function o(r){if(t())return;A.current();const a=Hr(s);if(clearTimeout(E.current),v.current){n||clearTimeout(w.current),C.current=v.current({...e,tree:h,x:r.clientX,y:r.clientY,onClose(){V(),N(),H(r,!0,"safe-polygon")}});const t=C.current;return a.addEventListener("mousemove",t),void(A.current=()=>{a.removeEventListener("mousemove",t)})}("touch"!==y.current||!wr(s,r.relatedTarget))&&H(r)}function c(n){t()||null==v.current||v.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){V(),N(),H(n)}})(n)}}),[l,s,u,e,f,m,g,H,N,V,r,n,h,x,v,a]),si((()=>{var e;if(u&&n&&null!=(e=v.current)&&e.__options.blockPointerEvents&&M()){const e=Hr(s).body;if(e.setAttribute(ki,""),e.style.pointerEvents="none",k.current=!0,lr(l)&&s){var t,r;const e=l,n=null==h||null==(t=h.nodesRef.current.find((e=>e.id===b)))||null==(r=t.context)?void 0:r.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{e.style.pointerEvents="",s.style.pointerEvents=""}}}}),[u,n,b,s,l,h,v,a,M]),si((()=>{n||(y.current=void 0,N(),V())}),[n,N,V]),i.useEffect((()=>()=>{N(),clearTimeout(w.current),clearTimeout(E.current),V()}),[u,l,N,V]),i.useMemo((()=>{if(!u)return{};function e(e){y.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){n||0===m||(clearTimeout(E.current),E.current=setTimeout((()=>{I.current||r(!0,e.nativeEvent,"hover")}),m))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){H(e.nativeEvent,!1)}}}}),[u,m,n,r,H])}const Hi=i.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),Ni=e=>{let{children:t,delay:n,timeoutMs:r=0}=e;const[a,o]=i.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),l=i.useRef(null),s=i.useCallback((e=>{o({currentId:e})}),[]);return si((()=>{a.currentId?null===l.current?l.current=a.currentId:o({isInstantPhase:!0}):(o({isInstantPhase:!1}),l.current=null)}),[a.currentId]),i.createElement(Hi.Provider,{value:i.useMemo((()=>({...a,setState:o,setCurrentId:s})),[a,o,s])},t)};function Vi(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let Zi=new WeakMap,Di=new WeakSet,Li={},Si=0;const Oi=e=>e&&(e.host||Oi(e.parentNode)),Ri=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=Oi(t);return e.contains(n)?n:null})).filter((e=>null!=e));function Ti(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Hr(e[0]).body;return function(e,t,n,r){const a="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,o=Ri(t,e),l=new Set,s=new Set(o),c=[];Li[a]||(Li[a]=new WeakMap);const u=Li[a];return o.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!s.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(Zi.get(t)||0)+1,o=(u.get(t)||0)+1;Zi.set(t,r),u.set(t,o),c.push(t),1===r&&n&&Di.add(t),1===o&&t.setAttribute(a,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),l.clear(),Si++,()=>{c.forEach((e=>{const t=(Zi.get(e)||0)-1,n=(u.get(e)||0)-1;Zi.set(e,t),u.set(e,n),t||(!Di.has(e)&&i&&e.removeAttribute(i),Di.delete(e)),n||e.removeAttribute(a)})),Si--,Si||(Zi=new WeakMap,Zi=new WeakMap,Di=new WeakSet,Li={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const $i=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function zi(e,t){const n=Ja(e,$i());"prev"===t&&n.reverse();const r=n.indexOf(yr(Hr(e)));return n.slice(r+1)[0]}function Bi(){return zi(document.body,"next")}function Gi(){return zi(document.body,"prev")}function Pi(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!wr(n,r)}function Wi(e){Ja(e,$i()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function ji(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Fi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Xi(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Yi=i.forwardRef((function(e,t){const[n,r]=i.useState();si((()=>(kr()&&r("button"),document.addEventListener("keydown",Xi),()=>{document.removeEventListener("keydown",Xi)})),[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Ei("focus-guard")]:"",style:Fi};return i.createElement("span",ci({},e,a))})),Ji=i.createContext(null);function Ui(e){let{children:t,id:r,root:a=null,preserveTabOrder:o=!0}=e;const l=function(e){let{id:t,root:n}=void 0===e?{}:e;const[r,a]=i.useState(null),o=fi(),l=Qi(),s=i.useMemo((()=>({id:t,root:n,portalContext:l,uniqueId:o})),[t,n,l,o]),c=i.useRef();return si((()=>()=>{null==r||r.remove()}),[r,s]),si((()=>{if(c.current===s)return;c.current=s;const{id:e,root:t,portalContext:n,uniqueId:r}=s,i=e?document.getElementById(e):null,o=Ei("portal");if(i){const e=document.createElement("div");e.id=r,e.setAttribute(o,""),i.appendChild(e),a(e)}else{let i=t||(null==n?void 0:n.portalNode);i&&!lr(i)&&(i=i.current),i=i||document.body;let l=null;e&&(l=document.createElement("div"),l.id=e,i.appendChild(l));const s=document.createElement("div");s.id=r,s.setAttribute(o,""),i=l||i,i.appendChild(s),a(s)}}),[s]),r}({id:r,root:a}),[s,c]=i.useState(null),u=i.useRef(null),d=i.useRef(null),p=i.useRef(null),f=i.useRef(null),m=!!s&&!s.modal&&s.open&&o&&!(!a&&!l);return i.useEffect((()=>{if(l&&o&&(null==s||!s.modal))return l.addEventListener("focusin",e,!0),l.addEventListener("focusout",e,!0),()=>{l.removeEventListener("focusin",e,!0),l.removeEventListener("focusout",e,!0)};function e(e){if(l&&Pi(e)){("focusin"===e.type?ji:Wi)(l)}}}),[l,o,null==s?void 0:s.modal]),i.createElement(Ji.Provider,{value:i.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:p,afterInsideRef:f,portalNode:l,setFocusManagerState:c})),[o,l])},m&&l&&i.createElement(Yi,{"data-type":"outside",ref:u,onFocus:e=>{if(Pi(e,l)){var t;null==(t=p.current)||t.focus()}else{const e=Gi()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),m&&l&&i.createElement("span",{"aria-owns":l.id,style:Fi}),l&&n.createPortal(t,l),m&&l&&i.createElement(Yi,{"data-type":"outside",ref:d,onFocus:e=>{if(Pi(e,l)){var t;null==(t=f.current)||t.focus()}else{const t=Bi()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent))}}}))}const Qi=()=>i.useContext(Ji),_i=i.forwardRef((function(e,t){return i.createElement("button",ci({},e,{type:"button",ref:t,tabIndex:-1,style:Fi}))}));function qi(e){const{context:t,children:n,disabled:r=!1,order:a=["content"],guards:o=!0,initialFocus:l=0,returnFocus:s=!0,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0}=e,{open:p,refs:f,nodeId:m,onOpenChange:g,events:h,dataRef:b,elements:{domReference:v,floating:x}}=t,y="number"==typeof l&&l<0,w="combobox"===(null==v?void 0:v.getAttribute("role"))&&Dr(v)&&y,C=!w&&c,E="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||o,I=Ii(a),k=Ii(l),A=Ii(s),M=yi(),H=Qi(),N=i.useRef(null),V=i.useRef(null),Z=i.useRef(!1),D=i.useRef(null),L=i.useRef(!1),S=null!=H,O=i.useCallback((function(e){return void 0===e&&(e=x),e?Ja(e,$i()):[]}),[x]),R=i.useCallback((e=>{const t=O(e);return I.current.map((e=>v&&"reference"===e?v:x&&"floating"===e?x:t)).filter(Boolean).flat()}),[v,x,I,O]);function T(e){return!r&&u&&C?i.createElement(_i,{ref:"start"===e?N:V,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}i.useEffect((()=>{if(r||!C)return;function e(e){if("Tab"===e.key){wr(x,yr(Hr(x)))&&0===O().length&&!w&&Lr(e);const t=R(),n=Vr(e);"reference"===I.current[0]&&n===v&&(Lr(e),e.shiftKey?li(t[t.length-1]):li(t[1])),"floating"===I.current[1]&&n===x&&e.shiftKey&&(Lr(e),li(t[0]))}}const t=Hr(x);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,v,x,C,I,f,w,O,R]),i.useEffect((()=>{if(!r&&d)return x&&sr(v)?(v.addEventListener("focusout",t),v.addEventListener("pointerdown",e),!C&&x.addEventListener("focusout",t),()=>{v.removeEventListener("focusout",t),v.removeEventListener("pointerdown",e),!C&&x.removeEventListener("focusout",t)}):void 0;function e(){L.current=!0,setTimeout((()=>{L.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(wr(v,t)||wr(x,t)||wr(t,x)||wr(null==H?void 0:H.portalNode,t)||null!=t&&t.hasAttribute(Ei("focus-guard"))||M&&(Vi(M.nodesRef.current,m).find((e=>{var n,r;return wr(null==(n=e.context)?void 0:n.elements.floating,t)||wr(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],a=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;a;){const t=e.find((e=>e.id===a));a=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(M.nodesRef.current,m).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));t&&n&&!L.current&&t!==D.current&&(Z.current=!0,g(!1,e))}))}}),[r,v,x,C,m,M,H,g,d]),i.useEffect((()=>{var e;if(r)return;const t=Array.from((null==H||null==(e=H.portalNode)?void 0:e.querySelectorAll("["+Ei("portal")+"]"))||[]);if(x){const e=[x,...t,N.current,V.current,I.current.includes("reference")||w?v:null].filter((e=>null!=e)),n=c||w?Ti(e,E,!E):Ti(e);return()=>{n()}}}),[r,v,x,c,I,H,w,E]),si((()=>{if(r||!x)return;const e=yr(Hr(x));queueMicrotask((()=>{const t=R(x),n=k.current,r=("number"==typeof n?t[n]:n.current)||x,a=wr(x,e);y||a||!p||li(r,{preventScroll:r===x})}))}),[r,p,x,y,R,k]),si((()=>{if(r||!x)return;let e=!1;const t=Hr(x),n=yr(t),a=b.current;function i(t){let{reason:n,event:r,nested:a}=t;"escape-key"===n&&f.domReference.current&&(D.current=f.domReference.current),"hover"===n&&"mouseleave"===r.type&&(Z.current=!0),"outside-press"===n&&(a?(Z.current=!1,e=!0):Z.current=!(Er(r)||Ir(r)))}return D.current=n,h.on("openchange",i),()=>{h.off("openchange",i);const r=yr(t),o=wr(x,r)||M&&Vi(M.nodesRef.current,m).some((e=>{var t;return wr(null==(t=e.context)?void 0:t.elements.floating,r)}));(o||a.openEvent&&["click","mousedown"].includes(a.openEvent.type))&&f.domReference.current&&(D.current=f.domReference.current),A.current&&sr(D.current)&&!Z.current&&(n===r||r===t.body||o)&&li(D.current,{cancelPrevious:!1,preventScroll:e})}}),[r,x,A,b,f,h,M,m]),si((()=>{if(!r&&H)return H.setFocusManagerState({modal:C,closeOnFocusOut:d,open:p,onOpenChange:g,refs:f}),()=>{H.setFocusManagerState(null)}}),[r,H,C,p,g,f,d]),si((()=>{if(r||!x||"function"!=typeof MutationObserver||y)return;const e=()=>{const e=x.getAttribute("tabindex");I.current.includes("floating")||yr(Hr(x))!==f.domReference.current&&0===O().length?"0"!==e&&x.setAttribute("tabindex","0"):"-1"!==e&&x.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(x,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,x,f,I,O,y]);const $=!r&&E&&(S||C);return i.createElement(i.Fragment,null,$&&i.createElement(Yi,{"data-type":"inside",ref:null==H?void 0:H.beforeInsideRef,onFocus:e=>{if(C){const e=R();li("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=H&&H.preserveTabOrder&&H.portalNode)if(Z.current=!1,Pi(e,H.portalNode)){const e=Bi()||v;null==e||e.focus()}else{var t;null==(t=H.beforeOutsideRef.current)||t.focus()}}}),!w&&T("start"),n,T("end"),$&&i.createElement(Yi,{"data-type":"inside",ref:null==H?void 0:H.afterInsideRef,onFocus:e=>{if(C)li(R()[0]);else if(null!=H&&H.preserveTabOrder&&H.portalNode)if(d&&(Z.current=!0),Pi(e,H.portalNode)){const e=Gi()||v;null==e||e.focus()}else{var t;null==(t=H.afterOutsideRef.current)||t.focus()}}}))}function Ki(e){return sr(e.target)&&"BUTTON"===e.target.tagName}function eo(e){return Dr(e)}const to={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},no={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ro=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function ao(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,nodeId:a,elements:{reference:o,domReference:l,floating:s},dataRef:c}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:p=!0,outsidePressEvent:f="pointerdown",referencePress:m=!1,referencePressEvent:g="pointerdown",ancestorScroll:h=!1,bubbles:b,capture:v}=t,x=yi(),y=Qa("function"==typeof p?p:()=>!1),w="function"==typeof p?y:p,C=i.useRef(!1),E=i.useRef(!1),{escapeKey:I,outsidePress:k}=ro(b),{escapeKey:A,outsidePress:M}=ro(v),H=Qa((e=>{if(!n||!u||!d||"Escape"!==e.key)return;const t=x?Vi(x.nodesRef.current,a):[];if(!I&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),N=Qa((e=>{var t;const n=()=>{var t;H(e),null==(t=Vr(e))||t.removeEventListener("keydown",n)};null==(t=Vr(e))||t.addEventListener("keydown",n)})),V=Qa((e=>{const t=C.current;C.current=!1;const n=E.current;if(E.current=!1,"click"===f&&n)return;if(t)return;if("function"==typeof w&&!w(e))return;const i=Vr(e),o="["+Ei("inert")+"]",c=Hr(s).querySelectorAll(o);let u=lr(i)?i:null;for(;u&&!mr(u);){const e=br(u);if(e===Hr(s).body||!lr(e))break;u=e}if(c.length&&lr(i)&&!i.matches("html,body")&&!wr(i,s)&&Array.from(c).every((e=>!wr(u,e))))return;if(sr(i)&&s){const t=i.clientWidth>0&&i.scrollWidth>i.clientWidth,n=i.clientHeight>0&&i.scrollHeight>i.clientHeight;let r=n&&e.offsetX>i.clientWidth;if(n){"rtl"===gr(i).direction&&(r=e.offsetX<=i.offsetWidth-i.clientWidth)}if(r||t&&e.offsetY>i.clientHeight)return}const d=x&&Vi(x.nodesRef.current,a).some((t=>{var n;return Nr(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Nr(e,s)||Nr(e,l)||d)return;const p=x?Vi(x.nodesRef.current,a):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),Z=Qa((e=>{var t;const n=()=>{var t;V(e),null==(t=Vr(e))||t.removeEventListener(f,n)};null==(t=Vr(e))||t.addEventListener(f,n)}));return i.useEffect((()=>{if(!n||!u)return;function e(e){r(!1,e,"ancestor-scroll")}c.current.__escapeKeyBubbles=I,c.current.__outsidePressBubbles=k;const t=Hr(s);d&&t.addEventListener("keydown",A?N:H,A),w&&t.addEventListener(f,M?Z:V,M);let a=[];return h&&(lr(l)&&(a=xr(l)),lr(s)&&(a=a.concat(xr(s))),!lr(o)&&o&&o.contextElement&&(a=a.concat(xr(o.contextElement)))),a=a.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),a.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{d&&t.removeEventListener("keydown",A?N:H,A),w&&t.removeEventListener(f,M?Z:V,M),a.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[c,s,l,o,d,w,f,n,r,h,u,I,k,H,A,N,V,M,Z]),i.useEffect((()=>{C.current=!1}),[w,f]),i.useMemo((()=>u?{reference:{onKeyDown:H,[to[g]]:e=>{m&&r(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:H,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[no[f]]:()=>{C.current=!0}}}:{}),[u,m,f,g,r,H])}let io;function oo(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:r,nodeId:a}=e;if("production"!==process.env.NODE_ENV){var o;const t="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";var s,c;if(null!=(o=e.elements)&&o.reference&&!lr(e.elements.reference))if(null==(s=io)||!s.has(t))null==(c=io)||c.add(t),console.error(t)}const[u,d]=i.useState(null),p=(null==(t=e.elements)?void 0:t.reference)||u,f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[p,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=i.useState(r);Ma(m,r)||g(r);const[h,b]=i.useState(null),[v,x]=i.useState(null),y=i.useCallback((e=>{e!=I.current&&(I.current=e,b(e))}),[b]),w=i.useCallback((e=>{e!==k.current&&(k.current=e,x(e))}),[x]),C=o||h,E=s||v,I=i.useRef(null),k=i.useRef(null),A=i.useRef(p),M=Va(u),H=Va(a),N=i.useCallback((()=>{if(!I.current||!k.current)return;const e={placement:t,strategy:n,middleware:m};H.current&&(e.platform=H.current),Ia(I.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};V.current&&!Ma(A.current,t)&&(A.current=t,l.flushSync((()=>{f(t)})))}))}),[m,t,n,H]);Aa((()=>{!1===d&&A.current.isPositioned&&(A.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[d]);const V=i.useRef(!1);Aa((()=>(V.current=!0,()=>{V.current=!1})),[]),Aa((()=>{if(C&&(I.current=C),E&&(k.current=E),C&&E){if(M.current)return M.current(C,E,N);N()}}),[C,E,N,M]);const Z=i.useMemo((()=>({reference:I,floating:k,setReference:y,setFloating:w})),[y,w]),D=i.useMemo((()=>({reference:C,floating:E})),[C,E]),L=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=Na(D.floating,p.x),r=Na(D.floating,p.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Ha(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,D.floating,p.x,p.y]);return i.useMemo((()=>({...p,update:N,refs:Z,elements:D,floatingStyles:L})),[p,N,Z,D,L])}(e),m=yi(),g=null!=xi(),h=Qa(((e,t,n)=>{e&&(v.current.openEvent=t),x.emit("openchange",{open:e,event:t,reason:n,nested:g}),null==r||r(e,t,n)})),b=i.useRef(null),v=i.useRef({}),x=i.useState((()=>gi()))[0],y=fi(),w=i.useCallback((e=>{const t=lr(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;f.refs.setReference(t)}),[f.refs]),C=i.useCallback((e=>{(lr(e)||null===e)&&(b.current=e,d(e)),(lr(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!lr(e))&&f.refs.setReference(e)}),[f.refs]),E=i.useMemo((()=>({...f.refs,setReference:C,setPositionReference:w,domReference:b})),[f.refs,C,w]),I=i.useMemo((()=>({...f.elements,domReference:p})),[f.elements,p]),k=i.useMemo((()=>({...f,refs:E,elements:I,dataRef:v,nodeId:a,floatingId:y,events:x,open:n,onOpenChange:h})),[f,a,y,x,n,h,E,I]);return si((()=>{const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===a));e&&(e.context=k)})),i.useMemo((()=>({...f,context:k,refs:E,elements:I})),[f,E,I,k])}function lo(e,t,n){const r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...a))).find((e=>void 0!==e))})):e[n]=a})),e):e),{})}}function so(e){void 0===e&&(e=[]);const t=e,n=i.useCallback((t=>lo(t,e,"reference")),t),r=i.useCallback((t=>lo(t,e,"floating")),t),a=i.useCallback((t=>lo(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return i.useMemo((()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:a})),[n,r,a])}"production"!==process.env.NODE_ENV&&(io=new Set);let co=!1;function uo(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function po(e,t){return uo(t,e===_a||e===qa,e===Ka||e===ei)}function fo(e,t,n){return uo(t,e===qa,n?e===Ka:e===ei)||"Enter"===e||" "==e||""===e}function mo(e,t,n){return uo(t,n?e===ei:e===Ka,e===_a)}function go(e,t){const{open:n,onOpenChange:r,refs:a,elements:{domReference:o,floating:l}}=e,{listRef:s,activeIndex:c,onNavigate:u=(()=>{}),enabled:d=!0,selectedIndex:p=null,allowEscape:f=!1,loop:m=!1,nested:g=!1,rtl:h=!1,virtual:b=!1,focusItemOnOpen:v="auto",focusItemOnHover:x=!0,openOnArrowKeyDown:y=!0,disabledIndices:w,orientation:C="vertical",cols:E=1,scrollItemIntoView:I=!0,virtualItemRef:k}=t;"production"!==process.env.NODE_ENV&&(f&&(m||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),"vertical"===C&&E>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const A=xi(),M=yi(),H=Qa(u),N=i.useRef(v),V=i.useRef(null!=p?p:-1),Z=i.useRef(null),D=i.useRef(!0),L=i.useRef(H),S=i.useRef(!!l),O=i.useRef(!1),R=i.useRef(!1),T=Ii(w),$=Ii(n),z=Ii(I),[B,G]=i.useState(),[P,W]=i.useState(),j=Qa((function(e,t,n){void 0===n&&(n=!1);const r=e.current[t.current];r&&(b?(G(r.id),null==M||M.events.emit("virtualfocus",r),k&&(k.current=r)):li(r,{preventScroll:!0,sync:!(!Cr().toLowerCase().startsWith("mac")||navigator.maxTouchPoints||!kr())&&(co||O.current)}),requestAnimationFrame((()=>{const e=z.current;e&&r&&(n||!D.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));si((()=>{document.createElement("div").focus({get preventScroll(){return co=!0,!1}})}),[]),si((()=>{d&&(n&&l?N.current&&null!=p&&(R.current=!0,H(p)):S.current&&(V.current=-1,L.current(null)))}),[d,n,l,p,H]),si((()=>{if(d&&n&&l)if(null==c){if(O.current=!1,null!=p)return;if(S.current&&(V.current=-1,j(s,V)),!S.current&&N.current&&(null!=Z.current||!0===N.current&&null==Z.current)){let e=0;const t=()=>{if(null==s.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else V.current=null==Z.current||fo(Z.current,C,h)||g?ri(s,T.current):ai(s,T.current),Z.current=null,H(V.current)};t()}}else ni(s,c)||(V.current=c,j(s,V,R.current),R.current=!1)}),[d,n,l,c,p,g,s,C,h,H,j,T]),si((()=>{var e,t;if(!d||l||!M||b||!S.current)return;const n=M.nodesRef.current,r=null==(e=n.find((e=>e.id===A)))||null==(t=e.context)?void 0:t.elements.floating,a=yr(Hr(l)),i=n.some((e=>e.context&&wr(e.context.elements.floating,a)));r&&!i&&D.current&&r.focus({preventScroll:!0})}),[d,l,M,A,b]),si((()=>{if(d&&M&&b&&!A)return M.events.on("virtualfocus",e),()=>{M.events.off("virtualfocus",e)};function e(e){W(e.id),k&&(k.current=e)}}),[d,M,b,A,k]),si((()=>{L.current=H,S.current=!!l})),si((()=>{n||(Z.current=null)}),[n]);const F=null!=c,X=i.useMemo((()=>{function e(e){if(!n)return;const t=s.current.indexOf(e);-1!==t&&H(t)}const t={onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...x&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;D.current&&"touch"!==t&&(V.current=-1,j(s,V),H(null),b||li(a.floating.current,{preventScroll:!0}))}}};return t}),[n,a,j,x,s,H,b]);return i.useMemo((()=>{if(!d)return{};const e=T.current;function t(t){if(D.current=!1,O.current=!0,!$.current&&t.currentTarget===a.floating.current)return;if(g&&mo(t.key,C,h))return Lr(t),r(!1,t.nativeEvent,"list-navigation"),void(sr(o)&&!b&&o.focus());const i=V.current,l=ri(s,e),c=ai(s,e);if("Home"===t.key&&(Lr(t),V.current=l,H(V.current)),"End"===t.key&&(Lr(t),V.current=c,H(V.current)),!(E>1&&(V.current=function(e,t){let{event:n,orientation:r,loop:a,cols:i,disabledIndices:o,minIndex:l,maxIndex:s,prevIndex:c,stopEvent:u=!1}=t,d=c;if(n.key===_a){if(u&&Lr(n),-1===c)d=s;else if(d=ii(e,{startingIndex:d,amount:i,decrement:!0,disabledIndices:o}),a&&(c-i<l||d<0)){const e=c%i,t=s%i,n=s-(t-e);d=t===e?s:t>e?n:n-i}ni(e,d)&&(d=c)}if(n.key===qa&&(u&&Lr(n),-1===c?d=l:(d=ii(e,{startingIndex:c,amount:i,disabledIndices:o}),a&&c+i>s&&(d=ii(e,{startingIndex:c%i-i,amount:i,disabledIndices:o}))),ni(e,d)&&(d=c)),"both"===r){const t=zr(c/i);n.key===ei&&(u&&Lr(n),c%i!=i-1?(d=ii(e,{startingIndex:c,disabledIndices:o}),a&&ti(d,i,t)&&(d=ii(e,{startingIndex:c-c%i-1,disabledIndices:o}))):a&&(d=ii(e,{startingIndex:c-c%i-1,disabledIndices:o})),ti(d,i,t)&&(d=c)),n.key===Ka&&(u&&Lr(n),c%i!=0?(d=ii(e,{startingIndex:c,disabledIndices:o,decrement:!0}),a&&ti(d,i,t)&&(d=ii(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:o}))):a&&(d=ii(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:o})),ti(d,i,t)&&(d=c));const r=zr(s/i)===t;ni(e,d)&&(d=a&&r?n.key===Ka?s:ii(e,{startingIndex:c-c%i-1,disabledIndices:o}):c)}return d}(s,{event:t,orientation:C,loop:m,cols:E,disabledIndices:e,minIndex:l,maxIndex:c,prevIndex:V.current,stopEvent:!0}),H(V.current),"both"===C))&&po(t.key,C)){if(Lr(t),n&&!b&&yr(t.currentTarget.ownerDocument)===t.currentTarget)return V.current=fo(t.key,C,h)?l:c,void H(V.current);fo(t.key,C,h)?V.current=m?i>=c?f&&i!==s.current.length?-1:l:ii(s,{startingIndex:i,disabledIndices:e}):Math.min(c,ii(s,{startingIndex:i,disabledIndices:e})):V.current=m?i<=l?f&&-1!==i?s.current.length:c:ii(s,{startingIndex:i,decrement:!0,disabledIndices:e}):Math.max(l,ii(s,{startingIndex:i,decrement:!0,disabledIndices:e})),ni(s,V.current)?H(null):H(V.current)}}function i(e){"auto"===v&&Er(e.nativeEvent)&&(N.current=!0)}const l=b&&n&&F&&{"aria-activedescendant":P||B},c=s.current.find((e=>(null==e?void 0:e.id)===B));return{reference:{...l,onKeyDown(a){D.current=!1;const i=0===a.key.indexOf("Arrow"),o=function(e,t,n){return uo(t,n?e===Ka:e===ei,e===qa)}(a.key,C,h),l=mo(a.key,C,h),u=po(a.key,C),d=(g?o:u)||"Enter"===a.key||""===a.key.trim();if(b&&n){const e=null==M?void 0:M.nodesRef.current.find((e=>null==e.parentId)),n=M&&e?function(e,t){let n,r=-1;return function t(a,i){i>r&&(n=a,r=i),Vi(e,a).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(M.nodesRef.current,e.id):null;if(i&&n&&k){const e=new KeyboardEvent("keydown",{key:a.key,bubbles:!0});if(o||l){var f,m;const t=(null==(f=n.context)?void 0:f.elements.domReference)===a.currentTarget,r=l&&!t?null==(m=n.context)?void 0:m.elements.domReference:o?c:null;r&&(Lr(a),r.dispatchEvent(e),W(void 0))}var v;if(u&&n.context)if(n.context.open&&n.parentId&&a.currentTarget!==n.context.elements.domReference)return Lr(a),void(null==(v=n.context.elements.domReference)||v.dispatchEvent(e))}return t(a)}(n||y||!i)&&(d&&(Z.current=g&&u?null:a.key),g?o&&(Lr(a),n?(V.current=ri(s,e),H(V.current)):r(!0,a.nativeEvent,"list-navigation")):u&&(null!=p&&(V.current=p),Lr(a),!n&&y?r(!0,a.nativeEvent,"list-navigation"):t(a),n&&H(V.current)))},onFocus(){n&&H(null)},onPointerDown:function(e){N.current=v,"auto"===v&&Ir(e.nativeEvent)&&(N.current=!0)},onMouseDown:i,onClick:i},floating:{"aria-orientation":"both"===C?void 0:C,...l,onKeyDown:t,onPointerMove(){D.current=!0}},item:X}}),[o,a,B,P,T,$,s,d,C,h,b,n,F,g,p,y,f,E,m,v,H,r,X,M,k])}function ho(e,t){void 0===t&&(t={});const{open:n,floatingId:r}=e,{enabled:a=!0,role:o="dialog"}=t,l=fi();return i.useMemo((()=>{if(!a)return{};const e={id:r,..."label"!==o&&{role:o}};return"tooltip"===o||"label"===o?{reference:{["aria-"+("label"===o?"labelledby":"describedby")]:n?r:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===o?"dialog":o,"aria-controls":n?r:void 0,..."listbox"===o&&{role:"combobox"},..."menu"===o&&{id:l}},floating:{...e,..."menu"===o&&{"aria-labelledby":l}}}}),[a,o,n,r,l])}function bo(e,t){const[n,r]=e;let a=!1;const i=t.length;for(let e=0,o=i-1;e<i;o=e++){const[i,l]=t[e]||[0,0],[s,c]=t[o]||[0,0];l>=r!=c>=r&&n<=(s-i)*(r-l)/(c-l)+i&&(a=!a)}return a}function vo(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let a,i=!1,o=null,l=null,s=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:p,nodeId:f,tree:m}=e;return function(e){function g(){clearTimeout(a),p()}if(clearTimeout(a),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:h,clientY:b}=e,v=[h,b],x=Vr(e),y="mouseleave"===e.type,w=wr(d.floating,x),C=wr(d.domReference,x),E=d.domReference.getBoundingClientRect(),I=d.floating.getBoundingClientRect(),k=u.split("-")[0],A=n>I.right-I.width/2,M=c>I.bottom-I.height/2,H=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,E),N=I.width>E.width,V=I.height>E.height,Z=(N?E:I).left,D=(N?E:I).right,L=(V?E:I).top,S=(V?E:I).bottom;if(w&&(i=!0,!y))return;if(C&&(i=!1),C&&!y)return void(i=!0);if(y&&lr(e.relatedTarget)&&wr(d.floating,e.relatedTarget))return;if(m&&Vi(m.nodesRef.current,f).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&c>=E.bottom-1||"bottom"===k&&c<=E.top+1||"left"===k&&n>=E.right-1||"right"===k&&n<=E.left+1)return g();let O=[];switch(k){case"top":O=[[Z,E.top+1],[Z,I.bottom-1],[D,I.bottom-1],[D,E.top+1]];break;case"bottom":O=[[Z,I.top+1],[Z,E.bottom-1],[D,E.bottom-1],[D,I.top+1]];break;case"left":O=[[I.right-1,S],[I.right-1,L],[E.left+1,L],[E.left+1,S]];break;case"right":O=[[E.right-1,S],[E.right-1,L],[I.left+1,L],[I.left+1,S]]}if(!bo([h,b],O)){if(i&&!H)return g();if(!y&&r){const t=function(e,t){const n=performance.now(),r=n-s;if(null===o||null===l||0===r)return o=e,l=t,s=n,null;const a=e-o,i=t-l,c=Math.sqrt(a*a+i*i);return o=e,l=t,s=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}bo([h,b],function(e){let[n,r]=e;switch(k){case"top":return[[N?n+t/2:A?n+4*t:n-4*t,r+t+1],[N?n-t/2:A?n+4*t:n-4*t,r+t+1],...[[I.left,A||N?I.bottom-t:I.top],[I.right,A?N?I.bottom-t:I.top:I.bottom-t]]];case"bottom":return[[N?n+t/2:A?n+4*t:n-4*t,r-t],[N?n-t/2:A?n+4*t:n-4*t,r-t],...[[I.left,A||N?I.top+t:I.bottom],[I.right,A?N?I.top+t:I.bottom:I.top+t]]];case"left":{const e=[n+t+1,V?r+t/2:M?r+4*t:r-4*t],a=[n+t+1,V?r-t/2:M?r+4*t:r-4*t];return[...[[M||V?I.right-t:I.left,I.top],[M?V?I.right-t:I.left:I.right-t,I.bottom]],e,a]}case"right":return[[n-t,V?r+t/2:M?r+4*t:r-4*t],[n-t,V?r-t/2:M?r+4*t:r-4*t],...[[M||V?I.left+t:I.right,I.top],[M?V?I.left+t:I.right:I.left+t,I.bottom]]]}}([n,c]))?!i&&r&&(a=window.setTimeout(g,40)):g()}}};return c.__options={blockPointerEvents:n},c}const xo=["auto","auto-start","auto-end"],yo=t=>({placements:e.useMemo((()=>t.filter((e=>!xo.includes(e)))),[t]),isAuto:e.useMemo((()=>t.some((e=>xo.includes(e)))),[t])}),wo=i.forwardRef((function(e,t){var{isOpen:n=!0,onClose:r,baseElement:a,offset:o=[0,0],positionPriority:l=["auto"],modalProps:c,children:u}=e,d=s(e,["isOpen","onClose","baseElement","offset","positionPriority","modalProps","children"]);const{placements:p,isAuto:f}=yo(l),{x:m,y:g,refs:h,strategy:b,context:v}=oo({elements:{reference:a},placement:p[0],open:n,middleware:[l.length>0&&!f?oa({padding:24,fallbackPlacements:p}):ia(),la({mainAxis:o[1],crossAxis:o[0]}),sa({mainAxis:!1})],whileElementsMounted:Ea}),x=ho(v),{getFloatingProps:y}=so([x]),w=En(t,h.setFloating);return i.createElement(Pn,Object.assign({isOpen:n,backdropProps:{invisible:!0}},c,{onClose:r}),i.createElement(qi,{context:v,modal:!1,initialFocus:-1},i.createElement(nr,Object.assign({ref:w,style:{position:b,top:g,left:m}},y(),d),u)))})),Co=i.forwardRef((function(e,t){var{isOpen:n=!0,baseElement:r=null,contents:a,positionPriority:o=["bottom-start","bottom-end","top-start","top-end"],onClose:l,maxHeight:c="none",menuListProps:u,popoverProps:d}=e,p=s(e,["isOpen","baseElement","contents","positionPriority","onClose","maxHeight","menuListProps","popoverProps"]);return i.createElement(wo,Object.assign({isOpen:n,baseElement:r,positionPriority:o,onClose:l},d),i.createElement(tr,Object.assign({ref:t,contents:a,maxHeight:c},p,u,{onClick:Gn((e=>{l&&l(e,"clickMenuList")}),null==u?void 0:u.onClick)})))})),Eo=o.default(z)`
|
|
689
|
+
var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Da="undefined"==typeof Element,Sa=Da?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,La=!Da&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},Oa=function e(t,n){var r;void 0===n&&(n=!0);var a=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===a||"true"===a||n&&t&&e(t.parentNode)},Ra=function e(t,n,r){for(var a=[],i=Array.from(t);i.length;){var o=i.shift();if(!Oa(o,!1))if("SLOT"===o.tagName){var l=o.assignedElements(),s=e(l.length?l:o.children,!0,r);r.flatten?a.push.apply(a,s):a.push({scopeParent:o,candidates:s})}else{Sa.call(o,Za)&&r.filter(o)&&(n||!t.includes(o))&&a.push(o);var c=o.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(o),u=!Oa(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(c&&u){var d=e(!0===c?o.children:c.children,!0,r);r.flatten?a.push.apply(a,d):a.push({scopeParent:o,candidates:d})}else i.unshift.apply(i,o.children)}}return a},$a=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ta=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!$a(e)?0:e.tabIndex},za=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ba=function(e){return"INPUT"===e.tagName},Ga=function(e){return function(e){return Ba(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||La(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var a=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!a||a===e}(e)},Pa=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Wa=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var a=Sa.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Sa.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Pa(e)}else{if("function"==typeof r){for(var i=e;e;){var o=e.parentElement,l=La(e);if(o&&!o.shadowRoot&&!0===r(o))return Pa(e);e=e.assignedSlot?e.assignedSlot:o||l===e.ownerDocument?o:l.host}e=i}if(function(e){var t,n,r,a,i=e&&La(e),o=null===(t=i)||void 0===t?void 0:t.host,l=!1;if(i&&i!==e)for(l=!!(null!==(n=o)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(o)||null!=e&&null!==(a=e.ownerDocument)&&void 0!==a&&a.contains(e));!l&&o;){var s,c,u;l=!(null===(c=o=null===(s=i=La(o))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(o))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},ja=function(e,t){return!(t.disabled||Oa(t)||function(e){return Ba(e)&&"hidden"===e.type}(t)||Wa(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Sa.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Fa=function(e,t){return!(Ga(t)||Ta(t)<0||!ja(e,t))},Xa=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ya=function e(t){var n=[],r=[];return t.forEach((function(t,a){var i=!!t.scopeParent,o=i?t.scopeParent:t,l=function(e,t){var n=Ta(e);return n<0&&t&&!$a(e)?0:n}(o,i),s=i?e(t.candidates):o;0===l?i?n.push.apply(n,s):n.push(o):r.push({documentOrder:a,tabIndex:l,item:t,isScope:i,content:s})})),r.sort(za).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Ja=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Ra([e],t.includeContainer,{filter:Fa.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Xa}):function(e,t,n){if(Oa(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Za));return t&&Sa.call(e,Za)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,Fa.bind(null,t)),Ya(n)};const Ua=i["useInsertionEffect".toString()]||(e=>e());function Qa(e){const t=i.useRef((()=>{if("production"!==process.env.NODE_ENV)throw new Error("Cannot call an event handler while rendering.")}));return Ua((()=>{t.current=e})),i.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const _a="ArrowUp",qa="ArrowDown",Ka="ArrowLeft",ei="ArrowRight";function ti(e,t,n){return Math.floor(e/t)!==n}function ni(e,t){return t<0||t>=e.current.length}function ri(e,t){return ii(e,{disabledIndices:t})}function ai(e,t){return ii(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ii(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:a,amount:i=1}=void 0===t?{}:t;const o=e.current,l=a?e=>a.includes(e):e=>{const t=o[e];return null==t||t.hasAttribute("disabled")||"true"===t.getAttribute("aria-disabled")};let s=n;do{s+=r?-i:i}while(s>=0&&s<=o.length-1&&l(s));return s}let oi=0;function li(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:a=!1}=t;r&&cancelAnimationFrame(oi);const i=()=>null==e?void 0:e.focus({preventScroll:n});a?i():oi=requestAnimationFrame(i)}var si="undefined"!=typeof document?e.useLayoutEffect:e.useEffect;function ci(){return ci=Object.assign?Object.assign.bind():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},ci.apply(this,arguments)}let ui=!1,di=0;const pi=()=>"floating-ui-"+di++;const fi=i["useId".toString()]||function(){const[e,t]=i.useState((()=>ui?pi():void 0));return si((()=>{null==e&&t(pi())}),[]),i.useEffect((()=>{ui||(ui=!0)}),[]),e},mi=i.forwardRef((function(e,t){let{context:{placement:n,elements:{floating:r},middlewareData:{arrow:a}},width:o=14,height:l=7,tipRadius:s=0,strokeWidth:c=0,staticOffset:u,stroke:d,d:p,style:{transform:f,...m}={},...g}=e;"production"!==process.env.NODE_ENV&&(t||console.warn("Floating UI: The `ref` prop is required for the `FloatingArrow`","component."));const h=fi();if(!r)return null;c*=2;const b=c/2,v=o/2*(s/-8+1),x=l/2*s/4,[y,w]=n.split("-"),C=Ca.isRTL(r),E=!!p,I="top"===y||"bottom"===y,k=u&&"end"===w?"bottom":"top";let A=u&&"end"===w?"right":"left";u&&C&&(A="end"===w?"left":"right");const M=null!=(null==a?void 0:a.x)?u||a.x:"",H=null!=(null==a?void 0:a.y)?u||a.y:"",N=p||"M0,0 H"+o+" L"+(o-v)+","+(l-x)+" Q"+o/2+","+l+" "+v+","+(l-x)+" Z",V={top:E?"rotate(180deg)":"",left:E?"rotate(90deg)":"rotate(-90deg)",bottom:E?"":"rotate(180deg)",right:E?"rotate(-90deg)":"rotate(90deg)"}[y];return i.createElement("svg",ci({},g,{"aria-hidden":!0,ref:t,width:E?o:o+c,height:o,viewBox:"0 0 "+o+" "+(l>o?l:o),style:{position:"absolute",pointerEvents:"none",[A]:M,[k]:H,[y]:I||E?"100%":"calc(100% - "+c/2+"px)",transform:""+V+(null!=f?f:""),...m}}),c>0&&i.createElement("path",{clipPath:"url(#"+h+")",fill:"none",stroke:d,strokeWidth:c+(p?0:1),d:N}),i.createElement("path",{stroke:c&&!p?g.fill:"none",d:N}),i.createElement("clipPath",{id:h},i.createElement("rect",{x:-b,y:b*(E?-1:1),width:o+c,height:o})))}));function gi(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const hi=i.createContext(null),bi=i.createContext(null),xi=()=>{var e;return(null==(e=i.useContext(hi))?void 0:e.id)||null},yi=()=>i.useContext(bi);function wi(e){let{children:t,id:n}=e;const r=xi();return i.createElement(hi.Provider,{value:i.useMemo((()=>({id:n,parentId:r})),[n,r])},t)}function Ci(e){let{children:t}=e;const n=i.useRef([]),r=i.useCallback((e=>{n.current=[...n.current,e]}),[]),a=i.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),o=i.useState((()=>gi()))[0];return i.createElement(bi.Provider,{value:i.useMemo((()=>({nodesRef:n,addNode:r,removeNode:a,events:o})),[n,r,a,o])},t)}function Ei(e){return"data-floating-ui-"+e}function Ii(t){const n=e.useRef(t);return si((()=>{n.current=t})),n}const ki=Ei("safe-polygon");function Ai(e,t,n){return n&&!Mr(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Mi(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:a,events:o,elements:{domReference:l,floating:s},refs:c}=e,{enabled:u=!0,delay:d=0,handleClose:p=null,mouseOnly:f=!1,restMs:m=0,move:g=!0}=t,h=yi(),b=xi(),v=Ii(p),x=Ii(d),y=i.useRef(),w=i.useRef(),C=i.useRef(),E=i.useRef(),I=i.useRef(!0),k=i.useRef(!1),A=i.useRef((()=>{})),M=i.useCallback((()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[a]);i.useEffect((()=>{if(u)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(w.current),clearTimeout(E.current),I.current=!0)}}),[u,o]),i.useEffect((()=>{if(!u||!v.current||!n)return;function e(e){M()&&r(!1,e,"hover")}const t=Hr(s).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[s,n,r,u,v,a,M]);const H=i.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const a=Ai(x.current,"close",y.current);a&&!C.current?(clearTimeout(w.current),w.current=setTimeout((()=>r(!1,e,n)),a)):t&&(clearTimeout(w.current),r(!1,e,n))}),[x,r]),N=i.useCallback((()=>{A.current(),C.current=void 0}),[]),V=i.useCallback((()=>{if(k.current){const e=Hr(c.floating.current).body;e.style.pointerEvents="",e.removeAttribute(ki),k.current=!1}}),[c]);return i.useEffect((()=>{if(u&&lr(l)){const e=l;return n&&e.addEventListener("mouseleave",c),null==s||s.addEventListener("mouseleave",c),g&&e.addEventListener("mousemove",i,{once:!0}),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",o),()=>{n&&e.removeEventListener("mouseleave",c),null==s||s.removeEventListener("mouseleave",c),g&&e.removeEventListener("mousemove",i),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",o)}}function t(){return!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)}function i(e){if(clearTimeout(w.current),I.current=!1,f&&!Mr(y.current)||m>0&&0===Ai(x.current,"open"))return;const t=Ai(x.current,"open",y.current);t?w.current=setTimeout((()=>{r(!0,e,"hover")}),t):r(!0,e,"hover")}function o(r){if(t())return;A.current();const a=Hr(s);if(clearTimeout(E.current),v.current){n||clearTimeout(w.current),C.current=v.current({...e,tree:h,x:r.clientX,y:r.clientY,onClose(){V(),N(),H(r,!0,"safe-polygon")}});const t=C.current;return a.addEventListener("mousemove",t),void(A.current=()=>{a.removeEventListener("mousemove",t)})}("touch"!==y.current||!wr(s,r.relatedTarget))&&H(r)}function c(n){t()||null==v.current||v.current({...e,tree:h,x:n.clientX,y:n.clientY,onClose(){V(),N(),H(n)}})(n)}}),[l,s,u,e,f,m,g,H,N,V,r,n,h,x,v,a]),si((()=>{var e;if(u&&n&&null!=(e=v.current)&&e.__options.blockPointerEvents&&M()){const e=Hr(s).body;if(e.setAttribute(ki,""),e.style.pointerEvents="none",k.current=!0,lr(l)&&s){var t,r;const e=l,n=null==h||null==(t=h.nodesRef.current.find((e=>e.id===b)))||null==(r=t.context)?void 0:r.elements.floating;return n&&(n.style.pointerEvents=""),e.style.pointerEvents="auto",s.style.pointerEvents="auto",()=>{e.style.pointerEvents="",s.style.pointerEvents=""}}}}),[u,n,b,s,l,h,v,a,M]),si((()=>{n||(y.current=void 0,N(),V())}),[n,N,V]),i.useEffect((()=>()=>{N(),clearTimeout(w.current),clearTimeout(E.current),V()}),[u,l,N,V]),i.useMemo((()=>{if(!u)return{};function e(e){y.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){n||0===m||(clearTimeout(E.current),E.current=setTimeout((()=>{I.current||r(!0,e.nativeEvent,"hover")}),m))}},floating:{onMouseEnter(){clearTimeout(w.current)},onMouseLeave(e){H(e.nativeEvent,!1)}}}}),[u,m,n,r,H])}const Hi=i.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:()=>{},setState:()=>{},isInstantPhase:!1}),Ni=e=>{let{children:t,delay:n,timeoutMs:r=0}=e;const[a,o]=i.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),l=i.useRef(null),s=i.useCallback((e=>{o({currentId:e})}),[]);return si((()=>{a.currentId?null===l.current?l.current=a.currentId:o({isInstantPhase:!0}):(o({isInstantPhase:!1}),l.current=null)}),[a.currentId]),i.createElement(Hi.Provider,{value:i.useMemo((()=>({...a,setState:o,setCurrentId:s})),[a,o,s])},t)};function Vi(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let Zi=new WeakMap,Di=new WeakSet,Si={},Li=0;const Oi=e=>e&&(e.host||Oi(e.parentNode)),Ri=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=Oi(t);return e.contains(n)?n:null})).filter((e=>null!=e));function $i(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Hr(e[0]).body;return function(e,t,n,r){const a="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,o=Ri(t,e),l=new Set,s=new Set(o),c=[];Si[a]||(Si[a]=new WeakMap);const u=Si[a];return o.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!s.has(t)&&Array.prototype.forEach.call(t.children,(t=>{if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(Zi.get(t)||0)+1,o=(u.get(t)||0)+1;Zi.set(t,r),u.set(t,o),c.push(t),1===r&&n&&Di.add(t),1===o&&t.setAttribute(a,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),l.clear(),Li++,()=>{c.forEach((e=>{const t=(Zi.get(e)||0)-1,n=(u.get(e)||0)-1;Zi.set(e,t),u.set(e,n),t||(!Di.has(e)&&i&&e.removeAttribute(i),Di.delete(e)),n||e.removeAttribute(a)})),Li--,Li||(Zi=new WeakMap,Zi=new WeakMap,Di=new WeakSet,Si={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Ti=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function zi(e,t){const n=Ja(e,Ti());"prev"===t&&n.reverse();const r=n.indexOf(yr(Hr(e)));return n.slice(r+1)[0]}function Bi(){return zi(document.body,"next")}function Gi(){return zi(document.body,"prev")}function Pi(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!wr(n,r)}function Wi(e){Ja(e,Ti()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function ji(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Fi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Xi(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Yi=i.forwardRef((function(e,t){const[n,r]=i.useState();si((()=>(kr()&&r("button"),document.addEventListener("keydown",Xi),()=>{document.removeEventListener("keydown",Xi)})),[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[Ei("focus-guard")]:"",style:Fi};return i.createElement("span",ci({},e,a))})),Ji=i.createContext(null);function Ui(e){let{children:t,id:r,root:a=null,preserveTabOrder:o=!0}=e;const l=function(e){let{id:t,root:n}=void 0===e?{}:e;const[r,a]=i.useState(null),o=fi(),l=Qi(),s=i.useMemo((()=>({id:t,root:n,portalContext:l,uniqueId:o})),[t,n,l,o]),c=i.useRef();return si((()=>()=>{null==r||r.remove()}),[r,s]),si((()=>{if(c.current===s)return;c.current=s;const{id:e,root:t,portalContext:n,uniqueId:r}=s,i=e?document.getElementById(e):null,o=Ei("portal");if(i){const e=document.createElement("div");e.id=r,e.setAttribute(o,""),i.appendChild(e),a(e)}else{let i=t||(null==n?void 0:n.portalNode);i&&!lr(i)&&(i=i.current),i=i||document.body;let l=null;e&&(l=document.createElement("div"),l.id=e,i.appendChild(l));const s=document.createElement("div");s.id=r,s.setAttribute(o,""),i=l||i,i.appendChild(s),a(s)}}),[s]),r}({id:r,root:a}),[s,c]=i.useState(null),u=i.useRef(null),d=i.useRef(null),p=i.useRef(null),f=i.useRef(null),m=!!s&&!s.modal&&s.open&&o&&!(!a&&!l);return i.useEffect((()=>{if(l&&o&&(null==s||!s.modal))return l.addEventListener("focusin",e,!0),l.addEventListener("focusout",e,!0),()=>{l.removeEventListener("focusin",e,!0),l.removeEventListener("focusout",e,!0)};function e(e){if(l&&Pi(e)){("focusin"===e.type?ji:Wi)(l)}}}),[l,o,null==s?void 0:s.modal]),i.createElement(Ji.Provider,{value:i.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:p,afterInsideRef:f,portalNode:l,setFocusManagerState:c})),[o,l])},m&&l&&i.createElement(Yi,{"data-type":"outside",ref:u,onFocus:e=>{if(Pi(e,l)){var t;null==(t=p.current)||t.focus()}else{const e=Gi()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),m&&l&&i.createElement("span",{"aria-owns":l.id,style:Fi}),l&&n.createPortal(t,l),m&&l&&i.createElement(Yi,{"data-type":"outside",ref:d,onFocus:e=>{if(Pi(e,l)){var t;null==(t=f.current)||t.focus()}else{const t=Bi()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent))}}}))}const Qi=()=>i.useContext(Ji),_i=i.forwardRef((function(e,t){return i.createElement("button",ci({},e,{type:"button",ref:t,tabIndex:-1,style:Fi}))}));function qi(e){const{context:t,children:n,disabled:r=!1,order:a=["content"],guards:o=!0,initialFocus:l=0,returnFocus:s=!0,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0}=e,{open:p,refs:f,nodeId:m,onOpenChange:g,events:h,dataRef:b,elements:{domReference:v,floating:x}}=t,y="number"==typeof l&&l<0,w="combobox"===(null==v?void 0:v.getAttribute("role"))&&Dr(v)&&y,C=!w&&c,E="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||o,I=Ii(a),k=Ii(l),A=Ii(s),M=yi(),H=Qi(),N=i.useRef(null),V=i.useRef(null),Z=i.useRef(!1),D=i.useRef(null),S=i.useRef(!1),L=null!=H,O=i.useCallback((function(e){return void 0===e&&(e=x),e?Ja(e,Ti()):[]}),[x]),R=i.useCallback((e=>{const t=O(e);return I.current.map((e=>v&&"reference"===e?v:x&&"floating"===e?x:t)).filter(Boolean).flat()}),[v,x,I,O]);function $(e){return!r&&u&&C?i.createElement(_i,{ref:"start"===e?N:V,onClick:e=>g(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}i.useEffect((()=>{if(r||!C)return;function e(e){if("Tab"===e.key){wr(x,yr(Hr(x)))&&0===O().length&&!w&&Sr(e);const t=R(),n=Vr(e);"reference"===I.current[0]&&n===v&&(Sr(e),e.shiftKey?li(t[t.length-1]):li(t[1])),"floating"===I.current[1]&&n===x&&e.shiftKey&&(Sr(e),li(t[0]))}}const t=Hr(x);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,v,x,C,I,f,w,O,R]),i.useEffect((()=>{if(!r&&d)return x&&sr(v)?(v.addEventListener("focusout",t),v.addEventListener("pointerdown",e),!C&&x.addEventListener("focusout",t),()=>{v.removeEventListener("focusout",t),v.removeEventListener("pointerdown",e),!C&&x.removeEventListener("focusout",t)}):void 0;function e(){S.current=!0,setTimeout((()=>{S.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(wr(v,t)||wr(x,t)||wr(t,x)||wr(null==H?void 0:H.portalNode,t)||null!=t&&t.hasAttribute(Ei("focus-guard"))||M&&(Vi(M.nodesRef.current,m).find((e=>{var n,r;return wr(null==(n=e.context)?void 0:n.elements.floating,t)||wr(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],a=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;a;){const t=e.find((e=>e.id===a));a=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(M.nodesRef.current,m).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));t&&n&&!S.current&&t!==D.current&&(Z.current=!0,g(!1,e))}))}}),[r,v,x,C,m,M,H,g,d]),i.useEffect((()=>{var e;if(r)return;const t=Array.from((null==H||null==(e=H.portalNode)?void 0:e.querySelectorAll("["+Ei("portal")+"]"))||[]);if(x){const e=[x,...t,N.current,V.current,I.current.includes("reference")||w?v:null].filter((e=>null!=e)),n=c||w?$i(e,E,!E):$i(e);return()=>{n()}}}),[r,v,x,c,I,H,w,E]),si((()=>{if(r||!x)return;const e=yr(Hr(x));queueMicrotask((()=>{const t=R(x),n=k.current,r=("number"==typeof n?t[n]:n.current)||x,a=wr(x,e);y||a||!p||li(r,{preventScroll:r===x})}))}),[r,p,x,y,R,k]),si((()=>{if(r||!x)return;let e=!1;const t=Hr(x),n=yr(t),a=b.current;function i(t){let{reason:n,event:r,nested:a}=t;"escape-key"===n&&f.domReference.current&&(D.current=f.domReference.current),"hover"===n&&"mouseleave"===r.type&&(Z.current=!0),"outside-press"===n&&(a?(Z.current=!1,e=!0):Z.current=!(Er(r)||Ir(r)))}return D.current=n,h.on("openchange",i),()=>{h.off("openchange",i);const r=yr(t),o=wr(x,r)||M&&Vi(M.nodesRef.current,m).some((e=>{var t;return wr(null==(t=e.context)?void 0:t.elements.floating,r)}));(o||a.openEvent&&["click","mousedown"].includes(a.openEvent.type))&&f.domReference.current&&(D.current=f.domReference.current),A.current&&sr(D.current)&&!Z.current&&(n===r||r===t.body||o)&&li(D.current,{cancelPrevious:!1,preventScroll:e})}}),[r,x,A,b,f,h,M,m]),si((()=>{if(!r&&H)return H.setFocusManagerState({modal:C,closeOnFocusOut:d,open:p,onOpenChange:g,refs:f}),()=>{H.setFocusManagerState(null)}}),[r,H,C,p,g,f,d]),si((()=>{if(r||!x||"function"!=typeof MutationObserver||y)return;const e=()=>{const e=x.getAttribute("tabindex");I.current.includes("floating")||yr(Hr(x))!==f.domReference.current&&0===O().length?"0"!==e&&x.setAttribute("tabindex","0"):"-1"!==e&&x.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(x,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,x,f,I,O,y]);const T=!r&&E&&(L||C);return i.createElement(i.Fragment,null,T&&i.createElement(Yi,{"data-type":"inside",ref:null==H?void 0:H.beforeInsideRef,onFocus:e=>{if(C){const e=R();li("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=H&&H.preserveTabOrder&&H.portalNode)if(Z.current=!1,Pi(e,H.portalNode)){const e=Bi()||v;null==e||e.focus()}else{var t;null==(t=H.beforeOutsideRef.current)||t.focus()}}}),!w&&$("start"),n,$("end"),T&&i.createElement(Yi,{"data-type":"inside",ref:null==H?void 0:H.afterInsideRef,onFocus:e=>{if(C)li(R()[0]);else if(null!=H&&H.preserveTabOrder&&H.portalNode)if(d&&(Z.current=!0),Pi(e,H.portalNode)){const e=Gi()||v;null==e||e.focus()}else{var t;null==(t=H.afterOutsideRef.current)||t.focus()}}}))}function Ki(e){return sr(e.target)&&"BUTTON"===e.target.tagName}function eo(e){return Dr(e)}const to={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},no={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ro=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function ao(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,nodeId:a,elements:{reference:o,domReference:l,floating:s},dataRef:c}=e,{enabled:u=!0,escapeKey:d=!0,outsidePress:p=!0,outsidePressEvent:f="pointerdown",referencePress:m=!1,referencePressEvent:g="pointerdown",ancestorScroll:h=!1,bubbles:b,capture:v}=t,x=yi(),y=Qa("function"==typeof p?p:()=>!1),w="function"==typeof p?y:p,C=i.useRef(!1),E=i.useRef(!1),{escapeKey:I,outsidePress:k}=ro(b),{escapeKey:A,outsidePress:M}=ro(v),H=Qa((e=>{if(!n||!u||!d||"Escape"!==e.key)return;const t=x?Vi(x.nodesRef.current,a):[];if(!I&&(e.stopPropagation(),t.length>0)){let e=!0;if(t.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),N=Qa((e=>{var t;const n=()=>{var t;H(e),null==(t=Vr(e))||t.removeEventListener("keydown",n)};null==(t=Vr(e))||t.addEventListener("keydown",n)})),V=Qa((e=>{const t=C.current;C.current=!1;const n=E.current;if(E.current=!1,"click"===f&&n)return;if(t)return;if("function"==typeof w&&!w(e))return;const i=Vr(e),o="["+Ei("inert")+"]",c=Hr(s).querySelectorAll(o);let u=lr(i)?i:null;for(;u&&!mr(u);){const e=br(u);if(e===Hr(s).body||!lr(e))break;u=e}if(c.length&&lr(i)&&!i.matches("html,body")&&!wr(i,s)&&Array.from(c).every((e=>!wr(u,e))))return;if(sr(i)&&s){const t=i.clientWidth>0&&i.scrollWidth>i.clientWidth,n=i.clientHeight>0&&i.scrollHeight>i.clientHeight;let r=n&&e.offsetX>i.clientWidth;if(n){"rtl"===gr(i).direction&&(r=e.offsetX<=i.offsetWidth-i.clientWidth)}if(r||t&&e.offsetY>i.clientHeight)return}const d=x&&Vi(x.nodesRef.current,a).some((t=>{var n;return Nr(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Nr(e,s)||Nr(e,l)||d)return;const p=x?Vi(x.nodesRef.current,a):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),Z=Qa((e=>{var t;const n=()=>{var t;V(e),null==(t=Vr(e))||t.removeEventListener(f,n)};null==(t=Vr(e))||t.addEventListener(f,n)}));return i.useEffect((()=>{if(!n||!u)return;function e(e){r(!1,e,"ancestor-scroll")}c.current.__escapeKeyBubbles=I,c.current.__outsidePressBubbles=k;const t=Hr(s);d&&t.addEventListener("keydown",A?N:H,A),w&&t.addEventListener(f,M?Z:V,M);let a=[];return h&&(lr(l)&&(a=xr(l)),lr(s)&&(a=a.concat(xr(s))),!lr(o)&&o&&o.contextElement&&(a=a.concat(xr(o.contextElement)))),a=a.filter((e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)})),a.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{d&&t.removeEventListener("keydown",A?N:H,A),w&&t.removeEventListener(f,M?Z:V,M),a.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[c,s,l,o,d,w,f,n,r,h,u,I,k,H,A,N,V,M,Z]),i.useEffect((()=>{C.current=!1}),[w,f]),i.useMemo((()=>u?{reference:{onKeyDown:H,[to[g]]:e=>{m&&r(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:H,onMouseDown(){E.current=!0},onMouseUp(){E.current=!0},[no[f]]:()=>{C.current=!0}}}:{}),[u,m,f,g,r,H])}let io;function oo(e){var t;void 0===e&&(e={});const{open:n=!1,onOpenChange:r,nodeId:a}=e;if("production"!==process.env.NODE_ENV){var o;const t="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";var s,c;if(null!=(o=e.elements)&&o.reference&&!lr(e.elements.reference))if(null==(s=io)||!s.has(t))null==(c=io)||c.add(t),console.error(t)}const[u,d]=i.useState(null),p=(null==(t=e.elements)?void 0:t.reference)||u,f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[p,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=i.useState(r);Ma(m,r)||g(r);const[h,b]=i.useState(null),[v,x]=i.useState(null),y=i.useCallback((e=>{e!=I.current&&(I.current=e,b(e))}),[b]),w=i.useCallback((e=>{e!==k.current&&(k.current=e,x(e))}),[x]),C=o||h,E=s||v,I=i.useRef(null),k=i.useRef(null),A=i.useRef(p),M=Va(u),H=Va(a),N=i.useCallback((()=>{if(!I.current||!k.current)return;const e={placement:t,strategy:n,middleware:m};H.current&&(e.platform=H.current),Ia(I.current,k.current,e).then((e=>{const t={...e,isPositioned:!0};V.current&&!Ma(A.current,t)&&(A.current=t,l.flushSync((()=>{f(t)})))}))}),[m,t,n,H]);Aa((()=>{!1===d&&A.current.isPositioned&&(A.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[d]);const V=i.useRef(!1);Aa((()=>(V.current=!0,()=>{V.current=!1})),[]),Aa((()=>{if(C&&(I.current=C),E&&(k.current=E),C&&E){if(M.current)return M.current(C,E,N);N()}}),[C,E,N,M]);const Z=i.useMemo((()=>({reference:I,floating:k,setReference:y,setFloating:w})),[y,w]),D=i.useMemo((()=>({reference:C,floating:E})),[C,E]),S=i.useMemo((()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=Na(D.floating,p.x),r=Na(D.floating,p.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...Ha(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,D.floating,p.x,p.y]);return i.useMemo((()=>({...p,update:N,refs:Z,elements:D,floatingStyles:S})),[p,N,Z,D,S])}(e),m=yi(),g=null!=xi(),h=Qa(((e,t,n)=>{e&&(v.current.openEvent=t),x.emit("openchange",{open:e,event:t,reason:n,nested:g}),null==r||r(e,t,n)})),b=i.useRef(null),v=i.useRef({}),x=i.useState((()=>gi()))[0],y=fi(),w=i.useCallback((e=>{const t=lr(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;f.refs.setReference(t)}),[f.refs]),C=i.useCallback((e=>{(lr(e)||null===e)&&(b.current=e,d(e)),(lr(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!lr(e))&&f.refs.setReference(e)}),[f.refs]),E=i.useMemo((()=>({...f.refs,setReference:C,setPositionReference:w,domReference:b})),[f.refs,C,w]),I=i.useMemo((()=>({...f.elements,domReference:p})),[f.elements,p]),k=i.useMemo((()=>({...f,refs:E,elements:I,dataRef:v,nodeId:a,floatingId:y,events:x,open:n,onOpenChange:h})),[f,a,y,x,n,h,E,I]);return si((()=>{const e=null==m?void 0:m.nodesRef.current.find((e=>e.id===a));e&&(e.context=k)})),i.useMemo((()=>({...f,context:k,refs:E,elements:I})),[f,E,I,k])}function lo(e,t,n){const r=new Map;return{..."floating"===n&&{tabIndex:-1},...e,...t.map((e=>e?e[n]:null)).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var i;0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof a&&(null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...a))).find((e=>void 0!==e))})):e[n]=a})),e):e),{})}}function so(e){void 0===e&&(e=[]);const t=e,n=i.useCallback((t=>lo(t,e,"reference")),t),r=i.useCallback((t=>lo(t,e,"floating")),t),a=i.useCallback((t=>lo(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return i.useMemo((()=>({getReferenceProps:n,getFloatingProps:r,getItemProps:a})),[n,r,a])}"production"!==process.env.NODE_ENV&&(io=new Set);let co=!1;function uo(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function po(e,t){return uo(t,e===_a||e===qa,e===Ka||e===ei)}function fo(e,t,n){return uo(t,e===qa,n?e===Ka:e===ei)||"Enter"===e||" "==e||""===e}function mo(e,t,n){return uo(t,n?e===ei:e===Ka,e===_a)}function go(e,t){const{open:n,onOpenChange:r,refs:a,elements:{domReference:o,floating:l}}=e,{listRef:s,activeIndex:c,onNavigate:u=(()=>{}),enabled:d=!0,selectedIndex:p=null,allowEscape:f=!1,loop:m=!1,nested:g=!1,rtl:h=!1,virtual:b=!1,focusItemOnOpen:v="auto",focusItemOnHover:x=!0,openOnArrowKeyDown:y=!0,disabledIndices:w,orientation:C="vertical",cols:E=1,scrollItemIntoView:I=!0,virtualItemRef:k}=t;"production"!==process.env.NODE_ENV&&(f&&(m||console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow","escaping."].join(" ")),b||console.warn(["Floating UI: `useListNavigation` must be virtual to allow","escaping."].join(" "))),"vertical"===C&&E>1&&console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the",'`orientation` should be either "horizontal" or "both".'].join(" ")));const A=xi(),M=yi(),H=Qa(u),N=i.useRef(v),V=i.useRef(null!=p?p:-1),Z=i.useRef(null),D=i.useRef(!0),S=i.useRef(H),L=i.useRef(!!l),O=i.useRef(!1),R=i.useRef(!1),$=Ii(w),T=Ii(n),z=Ii(I),[B,G]=i.useState(),[P,W]=i.useState(),j=Qa((function(e,t,n){void 0===n&&(n=!1);const r=e.current[t.current];r&&(b?(G(r.id),null==M||M.events.emit("virtualfocus",r),k&&(k.current=r)):li(r,{preventScroll:!0,sync:!(!Cr().toLowerCase().startsWith("mac")||navigator.maxTouchPoints||!kr())&&(co||O.current)}),requestAnimationFrame((()=>{const e=z.current;e&&r&&(n||!D.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof e?{block:"nearest",inline:"nearest"}:e))})))}));si((()=>{document.createElement("div").focus({get preventScroll(){return co=!0,!1}})}),[]),si((()=>{d&&(n&&l?N.current&&null!=p&&(R.current=!0,H(p)):L.current&&(V.current=-1,S.current(null)))}),[d,n,l,p,H]),si((()=>{if(d&&n&&l)if(null==c){if(O.current=!1,null!=p)return;if(L.current&&(V.current=-1,j(s,V)),!L.current&&N.current&&(null!=Z.current||!0===N.current&&null==Z.current)){let e=0;const t=()=>{if(null==s.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else V.current=null==Z.current||fo(Z.current,C,h)||g?ri(s,$.current):ai(s,$.current),Z.current=null,H(V.current)};t()}}else ni(s,c)||(V.current=c,j(s,V,R.current),R.current=!1)}),[d,n,l,c,p,g,s,C,h,H,j,$]),si((()=>{var e,t;if(!d||l||!M||b||!L.current)return;const n=M.nodesRef.current,r=null==(e=n.find((e=>e.id===A)))||null==(t=e.context)?void 0:t.elements.floating,a=yr(Hr(l)),i=n.some((e=>e.context&&wr(e.context.elements.floating,a)));r&&!i&&D.current&&r.focus({preventScroll:!0})}),[d,l,M,A,b]),si((()=>{if(d&&M&&b&&!A)return M.events.on("virtualfocus",e),()=>{M.events.off("virtualfocus",e)};function e(e){W(e.id),k&&(k.current=e)}}),[d,M,b,A,k]),si((()=>{S.current=H,L.current=!!l})),si((()=>{n||(Z.current=null)}),[n]);const F=null!=c,X=i.useMemo((()=>{function e(e){if(!n)return;const t=s.current.indexOf(e);-1!==t&&H(t)}const t={onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...x&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;D.current&&"touch"!==t&&(V.current=-1,j(s,V),H(null),b||li(a.floating.current,{preventScroll:!0}))}}};return t}),[n,a,j,x,s,H,b]);return i.useMemo((()=>{if(!d)return{};const e=$.current;function t(t){if(D.current=!1,O.current=!0,!T.current&&t.currentTarget===a.floating.current)return;if(g&&mo(t.key,C,h))return Sr(t),r(!1,t.nativeEvent,"list-navigation"),void(sr(o)&&!b&&o.focus());const i=V.current,l=ri(s,e),c=ai(s,e);if("Home"===t.key&&(Sr(t),V.current=l,H(V.current)),"End"===t.key&&(Sr(t),V.current=c,H(V.current)),!(E>1&&(V.current=function(e,t){let{event:n,orientation:r,loop:a,cols:i,disabledIndices:o,minIndex:l,maxIndex:s,prevIndex:c,stopEvent:u=!1}=t,d=c;if(n.key===_a){if(u&&Sr(n),-1===c)d=s;else if(d=ii(e,{startingIndex:d,amount:i,decrement:!0,disabledIndices:o}),a&&(c-i<l||d<0)){const e=c%i,t=s%i,n=s-(t-e);d=t===e?s:t>e?n:n-i}ni(e,d)&&(d=c)}if(n.key===qa&&(u&&Sr(n),-1===c?d=l:(d=ii(e,{startingIndex:c,amount:i,disabledIndices:o}),a&&c+i>s&&(d=ii(e,{startingIndex:c%i-i,amount:i,disabledIndices:o}))),ni(e,d)&&(d=c)),"both"===r){const t=zr(c/i);n.key===ei&&(u&&Sr(n),c%i!=i-1?(d=ii(e,{startingIndex:c,disabledIndices:o}),a&&ti(d,i,t)&&(d=ii(e,{startingIndex:c-c%i-1,disabledIndices:o}))):a&&(d=ii(e,{startingIndex:c-c%i-1,disabledIndices:o})),ti(d,i,t)&&(d=c)),n.key===Ka&&(u&&Sr(n),c%i!=0?(d=ii(e,{startingIndex:c,disabledIndices:o,decrement:!0}),a&&ti(d,i,t)&&(d=ii(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:o}))):a&&(d=ii(e,{startingIndex:c+(i-c%i),decrement:!0,disabledIndices:o})),ti(d,i,t)&&(d=c));const r=zr(s/i)===t;ni(e,d)&&(d=a&&r?n.key===Ka?s:ii(e,{startingIndex:c-c%i-1,disabledIndices:o}):c)}return d}(s,{event:t,orientation:C,loop:m,cols:E,disabledIndices:e,minIndex:l,maxIndex:c,prevIndex:V.current,stopEvent:!0}),H(V.current),"both"===C))&&po(t.key,C)){if(Sr(t),n&&!b&&yr(t.currentTarget.ownerDocument)===t.currentTarget)return V.current=fo(t.key,C,h)?l:c,void H(V.current);fo(t.key,C,h)?V.current=m?i>=c?f&&i!==s.current.length?-1:l:ii(s,{startingIndex:i,disabledIndices:e}):Math.min(c,ii(s,{startingIndex:i,disabledIndices:e})):V.current=m?i<=l?f&&-1!==i?s.current.length:c:ii(s,{startingIndex:i,decrement:!0,disabledIndices:e}):Math.max(l,ii(s,{startingIndex:i,decrement:!0,disabledIndices:e})),ni(s,V.current)?H(null):H(V.current)}}function i(e){"auto"===v&&Er(e.nativeEvent)&&(N.current=!0)}const l=b&&n&&F&&{"aria-activedescendant":P||B},c=s.current.find((e=>(null==e?void 0:e.id)===B));return{reference:{...l,onKeyDown(a){D.current=!1;const i=0===a.key.indexOf("Arrow"),o=function(e,t,n){return uo(t,n?e===Ka:e===ei,e===qa)}(a.key,C,h),l=mo(a.key,C,h),u=po(a.key,C),d=(g?o:u)||"Enter"===a.key||""===a.key.trim();if(b&&n){const e=null==M?void 0:M.nodesRef.current.find((e=>null==e.parentId)),n=M&&e?function(e,t){let n,r=-1;return function t(a,i){i>r&&(n=a,r=i),Vi(e,a).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(M.nodesRef.current,e.id):null;if(i&&n&&k){const e=new KeyboardEvent("keydown",{key:a.key,bubbles:!0});if(o||l){var f,m;const t=(null==(f=n.context)?void 0:f.elements.domReference)===a.currentTarget,r=l&&!t?null==(m=n.context)?void 0:m.elements.domReference:o?c:null;r&&(Sr(a),r.dispatchEvent(e),W(void 0))}var v;if(u&&n.context)if(n.context.open&&n.parentId&&a.currentTarget!==n.context.elements.domReference)return Sr(a),void(null==(v=n.context.elements.domReference)||v.dispatchEvent(e))}return t(a)}(n||y||!i)&&(d&&(Z.current=g&&u?null:a.key),g?o&&(Sr(a),n?(V.current=ri(s,e),H(V.current)):r(!0,a.nativeEvent,"list-navigation")):u&&(null!=p&&(V.current=p),Sr(a),!n&&y?r(!0,a.nativeEvent,"list-navigation"):t(a),n&&H(V.current)))},onFocus(){n&&H(null)},onPointerDown:function(e){N.current=v,"auto"===v&&Ir(e.nativeEvent)&&(N.current=!0)},onMouseDown:i,onClick:i},floating:{"aria-orientation":"both"===C?void 0:C,...l,onKeyDown:t,onPointerMove(){D.current=!0}},item:X}}),[o,a,B,P,$,T,s,d,C,h,b,n,F,g,p,y,f,E,m,v,H,r,X,M,k])}function ho(e,t){void 0===t&&(t={});const{open:n,floatingId:r}=e,{enabled:a=!0,role:o="dialog"}=t,l=fi();return i.useMemo((()=>{if(!a)return{};const e={id:r,..."label"!==o&&{role:o}};return"tooltip"===o||"label"===o?{reference:{["aria-"+("label"===o?"labelledby":"describedby")]:n?r:void 0},floating:e}:{reference:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===o?"dialog":o,"aria-controls":n?r:void 0,..."listbox"===o&&{role:"combobox"},..."menu"===o&&{id:l}},floating:{...e,..."menu"===o&&{"aria-labelledby":l}}}}),[a,o,n,r,l])}function bo(e,t){const[n,r]=e;let a=!1;const i=t.length;for(let e=0,o=i-1;e<i;o=e++){const[i,l]=t[e]||[0,0],[s,c]=t[o]||[0,0];l>=r!=c>=r&&n<=(s-i)*(r-l)/(c-l)+i&&(a=!a)}return a}function vo(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let a,i=!1,o=null,l=null,s=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:p,nodeId:f,tree:m}=e;return function(e){function g(){clearTimeout(a),p()}if(clearTimeout(a),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:h,clientY:b}=e,v=[h,b],x=Vr(e),y="mouseleave"===e.type,w=wr(d.floating,x),C=wr(d.domReference,x),E=d.domReference.getBoundingClientRect(),I=d.floating.getBoundingClientRect(),k=u.split("-")[0],A=n>I.right-I.width/2,M=c>I.bottom-I.height/2,H=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(v,E),N=I.width>E.width,V=I.height>E.height,Z=(N?E:I).left,D=(N?E:I).right,S=(V?E:I).top,L=(V?E:I).bottom;if(w&&(i=!0,!y))return;if(C&&(i=!1),C&&!y)return void(i=!0);if(y&&lr(e.relatedTarget)&&wr(d.floating,e.relatedTarget))return;if(m&&Vi(m.nodesRef.current,f).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&c>=E.bottom-1||"bottom"===k&&c<=E.top+1||"left"===k&&n>=E.right-1||"right"===k&&n<=E.left+1)return g();let O=[];switch(k){case"top":O=[[Z,E.top+1],[Z,I.bottom-1],[D,I.bottom-1],[D,E.top+1]];break;case"bottom":O=[[Z,I.top+1],[Z,E.bottom-1],[D,E.bottom-1],[D,I.top+1]];break;case"left":O=[[I.right-1,L],[I.right-1,S],[E.left+1,S],[E.left+1,L]];break;case"right":O=[[E.right-1,L],[E.right-1,S],[I.left+1,S],[I.left+1,L]]}if(!bo([h,b],O)){if(i&&!H)return g();if(!y&&r){const t=function(e,t){const n=performance.now(),r=n-s;if(null===o||null===l||0===r)return o=e,l=t,s=n,null;const a=e-o,i=t-l,c=Math.sqrt(a*a+i*i);return o=e,l=t,s=n,c/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}bo([h,b],function(e){let[n,r]=e;switch(k){case"top":return[[N?n+t/2:A?n+4*t:n-4*t,r+t+1],[N?n-t/2:A?n+4*t:n-4*t,r+t+1],...[[I.left,A||N?I.bottom-t:I.top],[I.right,A?N?I.bottom-t:I.top:I.bottom-t]]];case"bottom":return[[N?n+t/2:A?n+4*t:n-4*t,r-t],[N?n-t/2:A?n+4*t:n-4*t,r-t],...[[I.left,A||N?I.top+t:I.bottom],[I.right,A?N?I.top+t:I.bottom:I.top+t]]];case"left":{const e=[n+t+1,V?r+t/2:M?r+4*t:r-4*t],a=[n+t+1,V?r-t/2:M?r+4*t:r-4*t];return[...[[M||V?I.right-t:I.left,I.top],[M?V?I.right-t:I.left:I.right-t,I.bottom]],e,a]}case"right":return[[n-t,V?r+t/2:M?r+4*t:r-4*t],[n-t,V?r-t/2:M?r+4*t:r-4*t],...[[M||V?I.left+t:I.right,I.top],[M?V?I.left+t:I.right:I.left+t,I.bottom]]]}}([n,c]))?!i&&r&&(a=window.setTimeout(g,40)):g()}}};return c.__options={blockPointerEvents:n},c}const xo=["auto","auto-start","auto-end"],yo=t=>({placements:e.useMemo((()=>t.filter((e=>!xo.includes(e)))),[t]),isAuto:e.useMemo((()=>t.some((e=>xo.includes(e)))),[t])}),wo=i.forwardRef((function(e,t){var{isOpen:n=!0,onClose:r,baseElement:a,offset:o=[0,0],positionPriority:l=["auto"],modalProps:c,children:u}=e,d=s(e,["isOpen","onClose","baseElement","offset","positionPriority","modalProps","children"]);const{placements:p,isAuto:f}=yo(l),{x:m,y:g,refs:h,strategy:b,context:v}=oo({elements:{reference:a},placement:p[0],open:n,middleware:[l.length>0&&!f?oa({padding:24,fallbackPlacements:p}):ia(),la({mainAxis:o[1],crossAxis:o[0]}),sa({mainAxis:!1})],whileElementsMounted:Ea}),x=ho(v),{getFloatingProps:y}=so([x]),w=En(t,h.setFloating);return i.createElement(Pn,Object.assign({isOpen:n,backdropProps:{invisible:!0}},c,{onClose:r}),i.createElement(qi,{context:v,modal:!1,initialFocus:-1},i.createElement(nr,Object.assign({ref:w,style:{position:b,top:g,left:m}},y(),d),u)))})),Co=i.forwardRef((function(e,t){var{isOpen:n=!0,baseElement:r=null,contents:a,positionPriority:o=["bottom-start","bottom-end","top-start","top-end"],onClose:l,maxHeight:c="none",menuListProps:u,popoverProps:d}=e,p=s(e,["isOpen","baseElement","contents","positionPriority","onClose","maxHeight","menuListProps","popoverProps"]);return i.createElement(wo,Object.assign({isOpen:n,baseElement:r,positionPriority:o,onClose:l},d),i.createElement(tr,Object.assign({ref:t,contents:a,maxHeight:c},p,u,{onClick:Gn((e=>{l&&l(e,"clickMenuList")}),null==u?void 0:u.onClick)})))})),Eo=o.default(z)`
|
|
690
690
|
width: 34px;
|
|
691
691
|
height: 34px;
|
|
692
692
|
`,Io=i.forwardRef((function({contents:e,positionPriority:t=["bottom-start","bottom-end","top-start","top-end"],menuMaxHeight:n="none",menuProps:r,actionButtonProps:a},o){const[l,s]=i.useState(null),[c,u]=i.useState(!1),d=e=>()=>{u(e)},p=En(s,o);return i.createElement(i.Fragment,null,i.createElement(Eo,Object.assign({ref:p,"data-testid":"icon-wrapper",icon:"more_vert",onClick:d(!c)},a)),i.createElement(Co,Object.assign({isOpen:c,baseElement:l,contents:e,positionPriority:t,maxHeight:n},r,{onClose:Gn(d(!1),null==r?void 0:r.onClose)})))}));function ko(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}function Ao(e,t){return function(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:a=1}={}){const i=e.current;let o=t;do{o+=n?-a:a}while(o>=0&&o<=i.length-1&&ko(i,o,r));return o}(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}const Mo=e.createContext({isRoot:!1,activeIndex:null,maxActiveIndex:-1,setActiveIndex:()=>{},close:()=>{}}),Ho=o.default.span`
|
|
@@ -727,7 +727,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
727
727
|
color: ${c.basic[900]};
|
|
728
728
|
`,Do=o.default.span`
|
|
729
729
|
margin-left: auto;
|
|
730
|
-
`,
|
|
730
|
+
`,So=e.forwardRef(((t,n)=>{var{checked:r,closeOnChange:a,prepend:o,children:l,onChange:u}=t,d=s(t,["checked","closeOnChange","prepend","children","onChange"]);const{close:p}=e.useContext(Mo),f=e.useCallback((()=>{u&&u(!r),a&&p()}),[r,p,a,u]);return i.default.createElement("button",Object.assign({type:"button"},d,{ref:n,onClick:f}),o&&i.default.createElement(Zo,null,o),l,i.default.createElement(Do,null,r&&i.default.createElement(I,{name:"check_thin",color:c.blue[500]})))}));So.displayName="ContextMenu2CheckItem";const Lo=o.default(So)`
|
|
731
731
|
display: flex;
|
|
732
732
|
align-items: center;
|
|
733
733
|
gap: 4px;
|
|
@@ -790,7 +790,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
790
790
|
${({checked:e,disabled:t})=>t&&!e?c.basic[400]:e?c.blue[600]:c.basic[400]};
|
|
791
791
|
box-shadow: ${({theme:e})=>mt(3,e.palette.action.shadowOpacity,e.palette.action.shadowBase)};
|
|
792
792
|
transition: all 0.3s ease-in-out;
|
|
793
|
-
|
|
793
|
+
`,$o=e.forwardRef(((e,t)=>{var{checked:n=!1,disabled:r=!1,children:a,onChange:o}=e,l=s(e,["checked","disabled","children","onChange"]);return i.default.createElement("button",Object.assign({type:"button"},l,{ref:t,disabled:r,onClick:()=>{null==o||o(!n)}}),a,i.default.createElement(Oo,{checked:n,disabled:r},i.default.createElement(Ro,{checked:n,disabled:r})))}));$o.displayName="ContextMenu2SwitchItem";const To=o.default($o)`
|
|
794
794
|
display: flex;
|
|
795
795
|
align-items: center;
|
|
796
796
|
justify-content: space-between;
|
|
@@ -851,7 +851,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
851
851
|
&[aria-expanded="true"] {
|
|
852
852
|
background: ${c.basic[200]};
|
|
853
853
|
}
|
|
854
|
-
`;Po.displayName="ContextMenu2TriggerItem";const Wo="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function jo(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Fo(e){return"nodeType"in e}function Xo(e){var t,n;return e?jo(e)?e:Fo(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Yo(e){const{Document:t}=Xo(e);return e instanceof t}function Jo(e){return!jo(e)&&e instanceof Xo(e).HTMLElement}function Uo(e){return e instanceof Xo(e).SVGElement}function Qo(e){return e?jo(e)?e.document:Fo(e)?Yo(e)?e:Jo(e)||Uo(e)?e.ownerDocument:document:document:document}const _o=Wo?e.useLayoutEffect:e.useEffect;function qo(t){const n=e.useRef(t);return _o((()=>{n.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function Ko(t,n){void 0===n&&(n=[t]);const r=e.useRef(t);return _o((()=>{r.current!==t&&(r.current=t)}),n),r}function el(t,n){const r=e.useRef();return e.useMemo((()=>{const e=t(r.current);return r.current=e,e}),[...n])}function tl(t){const n=qo(t),r=e.useRef(null),a=e.useCallback((e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,a]}function nl(t){const n=e.useRef();return e.useEffect((()=>{n.current=t}),[t]),n.current}let rl={};function al(t,n){return e.useMemo((()=>{if(n)return n;const e=null==rl[t]?0:rl[t]+1;return rl[t]=e,t+"-"+e}),[t,n])}function il(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,a]of r){const r=t[n];null!=r&&(t[n]=r+e*a)}return t}),{...t})}}const ol=il(1),ll=il(-1);function sl(e){if(!e)return!1;const{KeyboardEvent:t}=Xo(e.target);return t&&e instanceof t}function cl(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Xo(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const ul=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[ul.Translate.toString(e),ul.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),dl="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function pl(e){return e.matches(dl)?e:e.querySelector(dl)}const fl={display:"none"};function ml(e){let{id:t,value:n}=e;return i.default.createElement("div",{id:t,style:fl},n)}function gl(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return i.default.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const hl=e.createContext(null);const bl={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},vl={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function xl(t){let{announcements:r=vl,container:a,hiddenTextDescribedById:o,screenReaderInstructions:l=bl}=t;const{announce:s,announcement:c}=function(){const[t,n]=e.useState("");return{announce:e.useCallback((e=>{null!=e&&n(e)}),[]),announcement:t}}(),u=al("DndLiveRegion"),[d,p]=e.useState(!1);if(e.useEffect((()=>{p(!0)}),[]),function(t){const n=e.useContext(hl);e.useEffect((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(t)}),[t,n])}(e.useMemo((()=>({onDragStart(e){let{active:t}=e;s(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&s(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;s(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;s(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;s(r.onDragCancel({active:t,over:n}))}})),[s,r])),!d)return null;const f=i.default.createElement(i.default.Fragment,null,i.default.createElement(ml,{id:o,value:l.draggable}),i.default.createElement(gl,{id:u,announcement:c}));return a?n.createPortal(f,a):f}var yl;function wl(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(yl||(yl={}));const Cl=Object.freeze({x:0,y:0});function El(e,t){const n=cl(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function Il(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function kl(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),o=a-r,l=i-n;if(r<a&&n<i){const n=t.width*t.height,r=e.width*e.height,a=o*l;return Number((a/(n+r-a)).toFixed(4))}return 0}const Al=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=kl(i,t);n>0&&a.push({id:r,data:{droppableContainer:e,value:n}})}}return a.sort(Il)};function Ml(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Cl}function Hl(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const Nl=Hl(1);function Vl(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const Zl={ignoreTransform:!1};function Dl(e,t){void 0===t&&(t=Zl);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=Xo(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=Vl(t);if(!r)return e;const{scaleX:a,scaleY:i,x:o,y:l}=r,s=e.left-o-(1-a)*parseFloat(n),c=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=a?e.width/a:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,t,r))}const{top:r,left:a,width:i,height:o,bottom:l,right:s}=n;return{top:r,left:a,width:i,height:o,bottom:l,right:s}}function Ll(e){return Dl(e,{ignoreTransform:!0})}function Sl(e,t){const n=[];return e?function r(a){if(null!=t&&n.length>=t)return n;if(!a)return n;if(Yo(a)&&null!=a.scrollingElement&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Jo(a)||Uo(a))return n;if(n.includes(a))return n;const i=Xo(e).getComputedStyle(a);return a!==e&&function(e,t){void 0===t&&(t=Xo(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(a,i)&&n.push(a),function(e,t){return void 0===t&&(t=Xo(e).getComputedStyle(e)),"fixed"===t.position}(a,i)?n:r(a.parentNode)}(e):n}function Ol(e){const[t]=Sl(e,1);return null!=t?t:null}function Rl(e){return Wo&&e?jo(e)?e:Fo(e)?Yo(e)||e===Qo(e).scrollingElement?window:Jo(e)?e:null:null:null}function Tl(e){return jo(e)?e.scrollX:e.scrollLeft}function $l(e){return jo(e)?e.scrollY:e.scrollTop}function zl(e){return{x:Tl(e),y:$l(e)}}var Bl;function Gl(e){return!(!Wo||!e)&&e===document.scrollingElement}function Pl(e){const t={x:0,y:0},n=Gl(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Bl||(Bl={}));const Wl={x:.2,y:.2};function jl(e,t,n,r,a){let{top:i,left:o,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===a&&(a=Wl);const{isTop:c,isBottom:u,isLeft:d,isRight:p}=Pl(e),f={x:0,y:0},m={x:0,y:0},g=t.height*a.y,h=t.width*a.x;return!c&&i<=t.top+g?(f.y=Bl.Backward,m.y=r*Math.abs((t.top+g-i)/g)):!u&&s>=t.bottom-g&&(f.y=Bl.Forward,m.y=r*Math.abs((t.bottom-g-s)/g)),!p&&l>=t.right-h?(f.x=Bl.Forward,m.x=r*Math.abs((t.right-h-l)/h)):!d&&o<=t.left+h&&(f.x=Bl.Backward,m.x=r*Math.abs((t.left+h-o)/h)),{direction:f,speed:m}}function Fl(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function Xl(e){return e.reduce(((e,t)=>ol(e,zl(t))),Cl)}function Yl(e,t){if(void 0===t&&(t=Dl),!e)return;const{top:n,left:r,bottom:a,right:i}=t(e);Ol(e)&&(a<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Jl=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Tl(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+$l(t)),0)}]];class Ul{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=Sl(t),r=Xl(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,a]of Jl)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=a(n),o=r[e]-t;return this.rect[i]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ql{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function _l(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var ql,Kl;function es(e){e.preventDefault()}function ts(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ql||(ql={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(Kl||(Kl={}));const ns={start:[Kl.Space,Kl.Enter],cancel:[Kl.Esc],end:[Kl.Space,Kl.Enter,Kl.Tab]},rs=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Kl.Right:return{...n,x:n.x+25};case Kl.Left:return{...n,x:n.x-25};case Kl.Down:return{...n,y:n.y+25};case Kl.Up:return{...n,y:n.y-25}}};class as{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Ql(Qo(t)),this.windowListeners=new Ql(Xo(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ql.Resize,this.handleCancel),this.windowListeners.add(ql.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ql.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Yl(n),t(Cl)}handleKeyDown(e){if(sl(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:a=ns,coordinateGetter:i=rs,scrollBehavior:o="smooth"}=r,{code:l}=e;if(a.end.includes(l))return void this.handleEnd(e);if(a.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:Cl;this.referenceCoordinates||(this.referenceCoordinates=c);const u=i(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=ll(u,c),r={x:0,y:0},{scrollableAncestors:a}=n.current;for(const n of a){const a=e.code,{isTop:i,isRight:l,isLeft:s,isBottom:c,maxScroll:d,minScroll:p}=Pl(n),f=Fl(n),m={x:Math.min(a===Kl.Right?f.right-f.width/2:f.right,Math.max(a===Kl.Right?f.left:f.left+f.width/2,u.x)),y:Math.min(a===Kl.Down?f.bottom-f.height/2:f.bottom,Math.max(a===Kl.Down?f.top:f.top+f.height/2,u.y))},g=a===Kl.Right&&!l||a===Kl.Left&&!s,h=a===Kl.Down&&!c||a===Kl.Up&&!i;if(g&&m.x!==u.x){const e=n.scrollLeft+t.x,i=a===Kl.Right&&e<=d.x||a===Kl.Left&&e>=p.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:o});r.x=i?n.scrollLeft-e:a===Kl.Right?n.scrollLeft-d.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(h&&m.y!==u.y){const e=n.scrollTop+t.y,i=a===Kl.Down&&e<=d.y||a===Kl.Up&&e>=p.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:o});r.y=i?n.scrollTop-e:a===Kl.Down?n.scrollTop-d.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,ol(ll(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function is(e){return Boolean(e&&"distance"in e)}function os(e){return Boolean(e&&"delay"in e)}as.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ns,onActivation:a}=t,{active:i}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==a||a({event:e.nativeEvent}),!0)}return!1}}];class ls{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Xo(e);return e instanceof t?e:Qo(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:a}=e,{target:i}=a;this.props=e,this.events=t,this.document=Qo(i),this.documentListeners=new Ql(this.document),this.listeners=new Ql(n),this.windowListeners=new Ql(Xo(i)),this.initialCoordinates=null!=(r=cl(a))?r:Cl,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ql.Resize,this.handleCancel),this.windowListeners.add(ql.DragStart,es),this.windowListeners.add(ql.VisibilityChange,this.handleCancel),this.windowListeners.add(ql.ContextMenu,es),this.documentListeners.add(ql.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(os(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(is(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ql.Click,ts,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ql.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:a}=this,{onMove:i,options:{activationConstraint:o}}=a;if(!r)return;const l=null!=(t=cl(e))?t:Cl,s=ll(r,l);if(!n&&o){if(is(o)){if(null!=o.tolerance&&_l(s,o.tolerance))return this.handleCancel();if(_l(s,o.distance))return this.handleStart()}return os(o)&&_l(s,o.tolerance)?this.handleCancel():void this.handlePending(o,s)}e.cancelable&&e.preventDefault(),i(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Kl.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ss={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class cs extends ls{constructor(e){const{event:t}=e,n=Qo(t.target);super(e,ss,n)}}cs.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const us={move:{name:"mousemove"},end:{name:"mouseup"}};var ds;!function(e){e[e.RightClick=2]="RightClick"}(ds||(ds={}));(class extends ls{constructor(e){super(e,us,Qo(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ds.RightClick&&(null==r||r({event:n}),!0)}}];const ps={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var fs,ms;function gs(t){let{acceleration:n,activator:r=fs.Pointer,canScroll:a,draggingRect:i,enabled:o,interval:l=5,order:s=ms.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:p,threshold:f}=t;const m=function(e){let{delta:t,disabled:n}=e;const r=nl(t);return el((e=>{if(n||!r||!e)return hs;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Bl.Backward]:e.x[Bl.Backward]||-1===a.x,[Bl.Forward]:e.x[Bl.Forward]||1===a.x},y:{[Bl.Backward]:e.y[Bl.Backward]||-1===a.y,[Bl.Forward]:e.y[Bl.Forward]||1===a.y}}}),[n,t,r])}({delta:p,disabled:!o}),[g,h]=function(){const t=e.useRef(null);return[e.useCallback(((e,n)=>{t.current=setInterval(e,n)}),[]),e.useCallback((()=>{null!==t.current&&(clearInterval(t.current),t.current=null)}),[])]}(),b=e.useRef({x:0,y:0}),v=e.useRef({x:0,y:0}),x=e.useMemo((()=>{switch(r){case fs.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case fs.DraggableRect:return i}}),[r,i,c]),y=e.useRef(null),w=e.useCallback((()=>{const e=y.current;if(!e)return;const t=b.current.x*v.current.x,n=b.current.y*v.current.y;e.scrollBy(t,n)}),[]),C=e.useMemo((()=>s===ms.TreeOrder?[...u].reverse():u),[s,u]);e.useEffect((()=>{if(o&&u.length&&x){for(const e of C){if(!1===(null==a?void 0:a(e)))continue;const t=u.indexOf(e),r=d[t];if(!r)continue;const{direction:i,speed:o}=jl(e,r,x,n,f);for(const e of["x","y"])m[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0)return h(),y.current=e,g(w,l),b.current=o,void(v.current=i)}b.current={x:0,y:0},v.current={x:0,y:0},h()}else h()}),[n,w,a,h,o,l,JSON.stringify(x),JSON.stringify(m),g,u,C,d,JSON.stringify(f)])}(class extends ls{constructor(e){super(e,ps)}static setup(){return window.addEventListener(ps.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ps.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return!(a.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(fs||(fs={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ms||(ms={}));const hs={x:{[Bl.Backward]:!1,[Bl.Forward]:!1},y:{[Bl.Backward]:!1,[Bl.Forward]:!1}};var bs,vs;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(bs||(bs={})),function(e){e.Optimized="optimized"}(vs||(vs={}));const xs=new Map;function ys(e,t){return el((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function ws(t){let{callback:n,disabled:r}=t;const a=qo(n),i=e.useMemo((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(a)}),[r]);return e.useEffect((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function Cs(e){return new Ul(Dl(e),e)}function Es(t,n,r){void 0===n&&(n=Cs);const[a,i]=e.useState(null);function o(){i((e=>{if(!t)return null;var a;if(!1===t.isConnected)return null!=(a=null!=e?e:r)?a:null;const i=n(t);return JSON.stringify(e)===JSON.stringify(i)?e:i}))}const l=function(t){let{callback:n,disabled:r}=t;const a=qo(n),i=e.useMemo((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(a)}),[a,r]);return e.useEffect((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(e){if(t)for(const n of e){const{type:e,target:r}=n;if("childList"===e&&r instanceof HTMLElement&&r.contains(t)){o();break}}}}),s=ws({callback:o});return _o((()=>{o(),t?(null==s||s.observe(t),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==l||l.disconnect())}),[t]),a}const Is=[];function ks(t,n){void 0===n&&(n=[]);const r=e.useRef(null);return e.useEffect((()=>{r.current=null}),n),e.useEffect((()=>{const e=t!==Cl;e&&!r.current&&(r.current=t),!e&&r.current&&(r.current=null)}),[t]),r.current?ll(t,r.current):Cl}function As(t){return e.useMemo((()=>t?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(t):null),[t])}const Ms=[];function Hs(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Jo(t)?t:e}const Ns=[{sensor:cs,options:{}},{sensor:as,options:{}}],Vs={current:{}},Zs={draggable:{measure:Ll},droppable:{measure:Ll,strategy:bs.WhileDragging,frequency:vs.Optimized},dragOverlay:{measure:Dl}};class Ds extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Ls={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ds,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:wl},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Zs,measureDroppableContainers:wl,windowRect:null,measuringScheduled:!1},Ss={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:wl,draggableNodes:new Map,over:null,measureDroppableContainers:wl},Os=e.createContext(Ss),Rs=e.createContext(Ls);function Ts(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ds}}}function $s(e,t){switch(t.type){case yl.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case yl.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case yl.DragEnd:case yl.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case yl.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new Ds(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case yl.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Ds(e.droppable.containers);return o.set(n,{...i,disabled:a}),{...e,droppable:{...e.droppable,containers:o}}}case yl.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const i=new Ds(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function zs(t){let{disabled:n}=t;const{active:r,activatorEvent:a,draggableNodes:i}=e.useContext(Os),o=nl(a),l=nl(null==r?void 0:r.id);return e.useEffect((()=>{if(!n&&!a&&o&&null!=l){if(!sl(o))return;if(document.activeElement===o.target)return;const e=i.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=pl(e);if(t){t.focus();break}}}))}}),[a,n,i,l,o]),null}function Bs(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Gs=e.createContext({...Cl,scaleX:1,scaleY:1});var Ps;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ps||(Ps={}));const Ws=e.memo((function(t){var r,a,o,l;let{id:s,accessibility:c,autoScroll:u=!0,children:d,sensors:p=Ns,collisionDetection:f=Al,measuring:m,modifiers:g,...h}=t;const b=e.useReducer($s,void 0,Ts),[v,x]=b,[y,w]=function(){const[t]=e.useState((()=>new Set)),n=e.useCallback((e=>(t.add(e),()=>t.delete(e))),[t]),r=e.useCallback((e=>{let{type:n,event:r}=e;t.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[t]);return[r,n]}(),[C,E]=e.useState(Ps.Uninitialized),I=C===Ps.Initialized,{draggable:{active:k,nodes:A,translate:M},droppable:{containers:H}}=v,N=null!=k?A.get(k):null,V=e.useRef({initial:null,translated:null}),Z=e.useMemo((()=>{var e;return null!=k?{id:k,data:null!=(e=null==N?void 0:N.data)?e:Vs,rect:V}:null}),[k,N]),D=e.useRef(null),[L,S]=e.useState(null),[O,R]=e.useState(null),T=Ko(h,Object.values(h)),$=al("DndDescribedBy",s),z=e.useMemo((()=>H.getEnabled()),[H]),B=function(t){return e.useMemo((()=>({draggable:{...Zs.draggable,...null==t?void 0:t.draggable},droppable:{...Zs.droppable,...null==t?void 0:t.droppable},dragOverlay:{...Zs.dragOverlay,...null==t?void 0:t.dragOverlay}})),[null==t?void 0:t.draggable,null==t?void 0:t.droppable,null==t?void 0:t.dragOverlay])}(m),{droppableRects:G,measureDroppableContainers:P,measuringScheduled:W}=function(t,n){let{dragging:r,dependencies:a,config:i}=n;const[o,l]=e.useState(null),{frequency:s,measure:c,strategy:u}=i,d=e.useRef(t),p=function(){switch(u){case bs.Always:return!1;case bs.BeforeDragging:return r;default:return!r}}(),f=Ko(p),m=e.useCallback((function(e){void 0===e&&(e=[]),f.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[f]),g=e.useRef(null),h=el((e=>{if(p&&!r)return xs;if(!e||e===xs||d.current!==t||null!=o){const e=new Map;for(let n of t){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){e.set(n.id,n.rect.current);continue}const t=n.node.current,r=t?new Ul(c(t),t):null;n.rect.current=r,r&&e.set(n.id,r)}return e}return e}),[t,o,r,p,c]);return e.useEffect((()=>{d.current=t}),[t]),e.useEffect((()=>{p||m()}),[r,p]),e.useEffect((()=>{o&&o.length>0&&l(null)}),[JSON.stringify(o)]),e.useEffect((()=>{p||"number"!=typeof s||null!==g.current||(g.current=setTimeout((()=>{m(),g.current=null}),s))}),[s,p,m,...a]),{droppableRects:h,measureDroppableContainers:m,measuringScheduled:null!=o}}(z,{dragging:I,dependencies:[M.x,M.y],config:B.droppable}),j=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return el((e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(A,k),F=e.useMemo((()=>O?cl(O):null),[O]),X=function(){const e=!1===(null==L?void 0:L.autoScrollEnabled),t="object"==typeof u?!1===u.enabled:!1===u,n=I&&!e&&!t;if("object"==typeof u)return{...u,enabled:n};return{enabled:n}}(),Y=function(e,t){return ys(e,t)}(j,B.draggable.measure);!function(t){let{activeNode:n,measure:r,initialRect:a,config:i=!0}=t;const o=e.useRef(!1),{x:l,y:s}="boolean"==typeof i?{x:i,y:i}:i;_o((()=>{if(!l&&!s||!n)return void(o.current=!1);if(o.current||!a)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=Ml(r(e),a);if(l||(t.x=0),s||(t.y=0),o.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=Ol(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,l,s,a,r])}({activeNode:null!=k?A.get(k):null,config:X.layoutShiftCompensation,initialRect:Y,measure:B.draggable.measure});const J=Es(j,B.draggable.measure,Y),U=Es(j?j.parentElement:null),Q=e.useRef({activatorEvent:null,active:null,activeNode:j,collisionRect:null,collisions:null,droppableRects:G,draggableNodes:A,draggingNode:null,draggingNodeRect:null,droppableContainers:H,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),_=H.getNodeFor(null==(r=Q.current.over)?void 0:r.id),q=function(t){let{measure:n}=t;const[r,a]=e.useState(null),i=ws({callback:e.useCallback((e=>{for(const{target:t}of e)if(Jo(t)){a((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),o=e.useCallback((e=>{const t=Hs(e);null==i||i.disconnect(),t&&(null==i||i.observe(t)),a(t?n(t):null)}),[n,i]),[l,s]=tl(o);return e.useMemo((()=>({nodeRef:l,rect:r,setRef:s})),[r,l,s])}({measure:B.dragOverlay.measure}),K=null!=(a=q.nodeRef.current)?a:j,ee=I?null!=(o=q.rect)?o:J:null,te=Boolean(q.nodeRef.current&&q.rect),ne=Ml(re=te?null:J,ys(re));var re;const ae=As(K?Xo(K):null),ie=function(t){const n=e.useRef(t),r=el((e=>t?e&&e!==Is&&t&&n.current&&t.parentNode===n.current.parentNode?e:Sl(t):Is),[t]);return e.useEffect((()=>{n.current=t}),[t]),r}(I?null!=_?_:j:null),oe=function(t,n){void 0===n&&(n=Dl);const[r]=t,a=As(r?Xo(r):null),[i,o]=e.useState(Ms);function l(){o((()=>t.length?t.map((e=>Gl(e)?a:new Ul(n(e),e))):Ms))}const s=ws({callback:l});return _o((()=>{null==s||s.disconnect(),l(),t.forEach((e=>null==s?void 0:s.observe(e)))}),[t]),i}(ie),le=Bs(g,{transform:{x:M.x-ne.x,y:M.y-ne.y,scaleX:1,scaleY:1},activatorEvent:O,active:Z,activeNodeRect:J,containerNodeRect:U,draggingNodeRect:ee,over:Q.current.over,overlayNodeRect:q.rect,scrollableAncestors:ie,scrollableAncestorRects:oe,windowRect:ae}),se=F?ol(F,M):null,ce=function(t){const[n,r]=e.useState(null),a=e.useRef(t),i=e.useCallback((e=>{const t=Rl(e.target);t&&r((e=>e?(e.set(t,zl(t)),new Map(e)):null))}),[]);return e.useEffect((()=>{const e=a.current;if(t!==e){n(e);const o=t.map((e=>{const t=Rl(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,zl(t)]):null})).filter((e=>null!=e));r(o.length?new Map(o):null),a.current=t}return()=>{n(t),n(e)};function n(e){e.forEach((e=>{const t=Rl(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,t]),e.useMemo((()=>t.length?n?Array.from(n.values()).reduce(((e,t)=>ol(e,t)),Cl):Xl(t):Cl),[t,n])}(ie),ue=ks(ce),de=ks(ce,[J]),pe=ol(le,ue),fe=ee?Nl(ee,le):null,me=Z&&fe?f({active:Z,collisionRect:fe,droppableRects:G,droppableContainers:z,pointerCoordinates:se}):null,ge=function(e,t){if(!e||0===e.length)return null;const[n]=e;return n[t]}(me,"id"),[he,be]=e.useState(null),ve=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?le:ol(le,de),null!=(l=null==he?void 0:he.rect)?l:null,J),xe=e.useRef(null),ye=e.useCallback(((e,t)=>{let{sensor:r,options:a}=t;if(null==D.current)return;const i=A.get(D.current);if(!i)return;const o=e.nativeEvent,l=new r({active:D.current,activeNode:i,event:o,options:a,context:Q,onAbort(e){if(!A.get(e))return;const{onDragAbort:t}=T.current,n={id:e};null==t||t(n),y({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!A.get(e))return;const{onDragPending:a}=T.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==a||a(i),y({type:"onDragPending",event:i})},onStart(e){const t=D.current;if(null==t)return;const r=A.get(t);if(!r)return;const{onDragStart:a}=T.current,i={activatorEvent:o,active:{id:t,data:r.data,rect:V}};n.unstable_batchedUpdates((()=>{null==a||a(i),E(Ps.Initializing),x({type:yl.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i}),S(xe.current),R(o)}))},onMove(e){x({type:yl.DragMove,coordinates:e})},onEnd:s(yl.DragEnd),onCancel:s(yl.DragCancel)});function s(e){return async function(){const{active:t,collisions:r,over:a,scrollAdjustedTranslate:i}=Q.current;let l=null;if(t&&i){const{cancelDrop:n}=T.current;if(l={activatorEvent:o,active:t,collisions:r,delta:i,over:a},e===yl.DragEnd&&"function"==typeof n){await Promise.resolve(n(l))&&(e=yl.DragCancel)}}D.current=null,n.unstable_batchedUpdates((()=>{x({type:e}),E(Ps.Uninitialized),be(null),S(null),R(null),xe.current=null;const t=e===yl.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=T.current[t];null==e||e(l),y({type:t,event:l})}}))}}xe.current=l}),[A]),we=e.useCallback(((e,t)=>(n,r)=>{const a=n.nativeEvent,i=A.get(r);if(null!==D.current||!i||a.dndKit||a.defaultPrevented)return;const o={active:i};!0===e(n,t.options,o)&&(a.dndKit={capturedBy:t.sensor},D.current=r,ye(n,t))}),[A,ye]),Ce=function(t,n){return e.useMemo((()=>t.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[t,n])}(p,we);!function(t){e.useEffect((()=>{if(!Wo)return;const e=t.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const t of e)null==t||t()}}),t.map((e=>{let{sensor:t}=e;return t})))}(p),_o((()=>{J&&C===Ps.Initializing&&E(Ps.Initialized)}),[J,C]),e.useEffect((()=>{const{onDragMove:e}=T.current,{active:t,activatorEvent:r,collisions:a,over:i}=Q.current;if(!t||!r)return;const o={active:t,activatorEvent:r,collisions:a,delta:{x:pe.x,y:pe.y},over:i};n.unstable_batchedUpdates((()=>{null==e||e(o),y({type:"onDragMove",event:o})}))}),[pe.x,pe.y]),e.useEffect((()=>{const{active:e,activatorEvent:t,collisions:r,droppableContainers:a,scrollAdjustedTranslate:i}=Q.current;if(!e||null==D.current||!t||!i)return;const{onDragOver:o}=T.current,l=a.get(ge),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:r,delta:{x:i.x,y:i.y},over:s};n.unstable_batchedUpdates((()=>{be(s),null==o||o(c),y({type:"onDragOver",event:c})}))}),[ge]),_o((()=>{Q.current={activatorEvent:O,active:Z,activeNode:j,collisionRect:fe,collisions:me,droppableRects:G,draggableNodes:A,draggingNode:K,draggingNodeRect:ee,droppableContainers:H,over:he,scrollableAncestors:ie,scrollAdjustedTranslate:pe},V.current={initial:ee,translated:fe}}),[Z,j,me,fe,A,K,ee,G,H,he,ie,pe]),gs({...X,delta:M,draggingRect:fe,pointerCoordinates:se,scrollableAncestors:ie,scrollableAncestorRects:oe});const Ee=e.useMemo((()=>({active:Z,activeNode:j,activeNodeRect:J,activatorEvent:O,collisions:me,containerNodeRect:U,dragOverlay:q,draggableNodes:A,droppableContainers:H,droppableRects:G,over:he,measureDroppableContainers:P,scrollableAncestors:ie,scrollableAncestorRects:oe,measuringConfiguration:B,measuringScheduled:W,windowRect:ae})),[Z,j,J,O,me,U,q,A,H,G,he,P,ie,oe,B,W,ae]),Ie=e.useMemo((()=>({activatorEvent:O,activators:Ce,active:Z,activeNodeRect:J,ariaDescribedById:{draggable:$},dispatch:x,draggableNodes:A,over:he,measureDroppableContainers:P})),[O,Ce,Z,J,x,$,A,he,P]);return i.default.createElement(hl.Provider,{value:w},i.default.createElement(Os.Provider,{value:Ie},i.default.createElement(Rs.Provider,{value:Ee},i.default.createElement(Gs.Provider,{value:ve},d)),i.default.createElement(zs,{disabled:!1===(null==c?void 0:c.restoreFocus)})),i.default.createElement(xl,{...c,hiddenTextDescribedById:$}))})),js=e.createContext(null),Fs="button",Xs="Draggable";function Ys(t){let{id:n,data:r,disabled:a=!1,attributes:i}=t;const o=al(Xs),{activators:l,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:p,over:f}=e.useContext(Os),{role:m=Fs,roleDescription:g="draggable",tabIndex:h=0}=null!=i?i:{},b=(null==c?void 0:c.id)===n,v=e.useContext(b?Gs:js),[x,y]=tl(),[w,C]=tl(),E=function(t,n){return e.useMemo((()=>t.reduce(((e,t)=>{let{eventName:r,handler:a}=t;return e[r]=e=>{a(e,n)},e}),{})),[t,n])}(l,n),I=Ko(r);_o((()=>(p.set(n,{id:n,key:o,node:x,activatorNode:w,data:I}),()=>{const e=p.get(n);e&&e.key===o&&p.delete(n)})),[p,n]);return{active:c,activatorEvent:s,activeNodeRect:u,attributes:e.useMemo((()=>({role:m,tabIndex:h,"aria-disabled":a,"aria-pressed":!(!b||m!==Fs)||void 0,"aria-roledescription":g,"aria-describedby":d.draggable})),[a,m,h,b,g,d.draggable]),isDragging:b,listeners:a?void 0:E,node:x,over:f,setNodeRef:y,setActivatorNodeRef:C,transform:v}}function Js(){return e.useContext(Rs)}const Us="Droppable",Qs={timeout:25};function _s(t){let{animation:n,children:r}=t;const[a,o]=e.useState(null),[l,s]=e.useState(null),c=nl(r);return r||a||!c||o(c),_o((()=>{if(!l)return;const e=null==a?void 0:a.key,t=null==a?void 0:a.props.id;null!=e&&null!=t?Promise.resolve(n(t,l)).then((()=>{o(null)})):o(null)}),[n,a,l]),i.default.createElement(i.default.Fragment,null,r,a?e.cloneElement(a,{ref:s}):null)}const qs={x:0,y:0,scaleX:1,scaleY:1};function Ks(e){let{children:t}=e;return i.default.createElement(Os.Provider,{value:Ss},i.default.createElement(Gs.Provider,{value:qs},t))}const ec={position:"fixed",touchAction:"none"},tc=e=>sl(e)?"transform 250ms ease":void 0,nc=e.forwardRef(((e,t)=>{let{as:n,activatorEvent:r,adjustScale:a,children:o,className:l,rect:s,style:c,transform:u,transition:d=tc}=e;if(!s)return null;const p=a?u:{...u,scaleX:1,scaleY:1},f={...ec,width:s.width,height:s.height,top:s.top,left:s.left,transform:ul.Transform.toString(p),transformOrigin:a&&r?El(r,s):void 0,transition:"function"==typeof d?d(r):d,...c};return i.default.createElement(n,{className:l,style:f,ref:t},o)})),rc=e=>t=>{let{active:n,dragOverlay:r}=t;const a={},{styles:i,className:o}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(a[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=o&&o.active&&n.node.classList.add(o.active),null!=o&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[e,t]of Object.entries(a))n.node.style.setProperty(e,t);null!=o&&o.active&&n.node.classList.remove(o.active)}},ac={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:ul.Transform.toString(t)},{transform:ul.Transform.toString(n)}]},sideEffects:rc({styles:{active:{opacity:"0"}}})};function ic(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:a}=e;return qo(((e,i)=>{if(null===t)return;const o=n.get(e);if(!o)return;const l=o.node.current;if(!l)return;const s=Hs(i);if(!s)return;const{transform:c}=Xo(i).getComputedStyle(i),u=Vl(c);if(!u)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:a}={...ac,...e};return e=>{let{active:i,dragOverlay:o,transform:l,...s}=e;if(!t)return;const c={x:o.rect.left-i.rect.left,y:o.rect.top-i.rect.top},u={scaleX:1!==l.scaleX?i.rect.width*l.scaleX/o.rect.width:1,scaleY:1!==l.scaleY?i.rect.height*l.scaleY/o.rect.height:1},d={x:l.x-c.x,y:l.y-c.y,...u},p=a({...s,active:i,dragOverlay:o,transform:{initial:l,final:d}}),[f]=p,m=p[p.length-1];if(JSON.stringify(f)===JSON.stringify(m))return;const g=null==r?void 0:r({active:i,dragOverlay:o,...s}),h=o.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{h.onfinish=()=>{null==g||g(),e()}}))}}(t);return Yl(l,a.draggable.measure),d({active:{id:e,data:o.data,node:l,rect:a.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:i,rect:a.dragOverlay.measure(s)},droppableContainers:r,measuringConfiguration:a,transform:u})}))}let oc=0;function lc(t){return e.useMemo((()=>{if(null!=t)return oc++,oc}),[t])}const sc=i.default.memo((t=>{let{adjustScale:n=!1,children:r,dropAnimation:a,style:o,transition:l,modifiers:s,wrapperElement:c="div",className:u,zIndex:d=999}=t;const{activatorEvent:p,active:f,activeNodeRect:m,containerNodeRect:g,draggableNodes:h,droppableContainers:b,dragOverlay:v,over:x,measuringConfiguration:y,scrollableAncestors:w,scrollableAncestorRects:C,windowRect:E}=Js(),I=e.useContext(Gs),k=lc(null==f?void 0:f.id),A=Bs(s,{activatorEvent:p,active:f,activeNodeRect:m,containerNodeRect:g,draggingNodeRect:v.rect,over:x,overlayNodeRect:v.rect,scrollableAncestors:w,scrollableAncestorRects:C,transform:I,windowRect:E}),M=ys(m),H=ic({config:a,draggableNodes:h,droppableContainers:b,measuringConfiguration:y}),N=M?v.setRef:void 0;return i.default.createElement(Ks,null,i.default.createElement(_s,{animation:H},f&&k?i.default.createElement(nc,{key:k,id:f.id,ref:N,as:c,activatorEvent:p,adjustScale:n,className:u,transition:l,rect:M,style:{zIndex:d,...o},transform:A},r):null))}));function cc(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function uc(e,t){return e.reduce(((e,n,r)=>{const a=t.get(n);return a&&(e[r]=a),e}),Array(e.length))}function dc(e){return null!==e&&e>=0}const pc=e=>{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const i=cc(t,r,n),o=t[a],l=i[a];return l&&o?{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}:null},fc="Sortable",mc=i.default.createContext({activeIndex:-1,containerId:fc,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:pc,disabled:{draggable:!1,droppable:!1}});function gc(t){let{children:n,id:r,items:a,strategy:o=pc,disabled:l=!1}=t;const{active:s,dragOverlay:c,droppableRects:u,over:d,measureDroppableContainers:p}=Js(),f=al(fc,r),m=Boolean(null!==c.rect),g=e.useMemo((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),h=null!=s,b=s?g.indexOf(s.id):-1,v=d?g.indexOf(d.id):-1,x=e.useRef(g),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(g,x.current),w=-1!==v&&-1===b||y,C=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(l);_o((()=>{y&&h&&p(g)}),[y,g,h,p]),e.useEffect((()=>{x.current=g}),[g]);const E=e.useMemo((()=>({activeIndex:b,containerId:f,disabled:C,disableTransforms:w,items:g,overIndex:v,useDragOverlay:m,sortedRects:uc(g,u),strategy:o})),[b,f,C.draggable,C.droppable,w,g,v,u,m,o]);return i.default.createElement(mc.Provider,{value:E},n)}const hc=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return cc(n,r,a).indexOf(t)},bc=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:i,newIndex:o,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r)&&((l===i||a!==o)&&(!!n||o!==a&&t===s))},vc={duration:200,easing:"ease"},xc="transform",yc=ul.Transition.toString({property:xc,duration:0,easing:"linear"}),wc={roleDescription:"sortable"};function Cc(t){let{animateLayoutChanges:n=bc,attributes:r,disabled:a,data:i,getNewIndex:o=hc,id:l,strategy:s,resizeObserverConfig:c,transition:u=vc}=t;const{items:d,containerId:p,activeIndex:f,disabled:m,disableTransforms:g,sortedRects:h,overIndex:b,useDragOverlay:v,strategy:x}=e.useContext(mc),y=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,m),w=d.indexOf(l),C=e.useMemo((()=>({sortable:{containerId:p,index:w,items:d},...i})),[p,i,w,d]),E=e.useMemo((()=>d.slice(d.indexOf(l))),[d,l]),{rect:I,node:k,isOver:A,setNodeRef:M}=function(t){let{data:n,disabled:r=!1,id:a,resizeObserverConfig:i}=t;const o=al(Us),{active:l,dispatch:s,over:c,measureDroppableContainers:u}=e.useContext(Os),d=e.useRef({disabled:r}),p=e.useRef(!1),f=e.useRef(null),m=e.useRef(null),{disabled:g,updateMeasurementsFor:h,timeout:b}={...Qs,...i},v=Ko(null!=h?h:a),x=ws({callback:e.useCallback((()=>{p.current?(null!=m.current&&clearTimeout(m.current),m.current=setTimeout((()=>{u(Array.isArray(v.current)?v.current:[v.current]),m.current=null}),b)):p.current=!0}),[b]),disabled:g||!l}),y=e.useCallback(((e,t)=>{x&&(t&&(x.unobserve(t),p.current=!1),e&&x.observe(e))}),[x]),[w,C]=tl(y),E=Ko(n);return e.useEffect((()=>{x&&w.current&&(x.disconnect(),p.current=!1,x.observe(w.current))}),[w,x]),e.useEffect((()=>(s({type:yl.RegisterDroppable,element:{id:a,key:o,disabled:r,node:w,rect:f,data:E}}),()=>s({type:yl.UnregisterDroppable,key:o,id:a}))),[a]),e.useEffect((()=>{r!==d.current.disabled&&(s({type:yl.SetDroppableDisabled,id:a,key:o,disabled:r}),d.current.disabled=r)}),[a,o,r,s]),{active:l,rect:f,isOver:(null==c?void 0:c.id)===a,node:w,over:c,setNodeRef:C}}({id:l,data:C,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:H,activatorEvent:N,activeNodeRect:V,attributes:Z,setNodeRef:D,listeners:L,isDragging:S,over:O,setActivatorNodeRef:R,transform:T}=Ys({id:l,data:C,attributes:{...wc,...r},disabled:y.draggable}),$=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.useMemo((()=>e=>{n.forEach((t=>t(e)))}),n)}(M,D),z=Boolean(H),B=z&&!g&&dc(f)&&dc(b),G=!v&&S,P=G&&B?T:null,W=B?null!=P?P:(null!=s?s:x)({rects:h,activeNodeRect:V,activeIndex:f,overIndex:b,index:w}):null,j=dc(f)&&dc(b)?o({id:l,items:d,activeIndex:f,overIndex:b}):w,F=null==H?void 0:H.id,X=e.useRef({activeId:F,items:d,newIndex:j,containerId:p}),Y=d!==X.current.items,J=n({active:H,containerId:p,isDragging:S,isSorting:z,id:l,index:w,items:d,newIndex:X.current.newIndex,previousItems:X.current.items,previousContainerId:X.current.containerId,transition:u,wasDragging:null!=X.current.activeId}),U=function(t){let{disabled:n,index:r,node:a,rect:i}=t;const[o,l]=e.useState(null),s=e.useRef(r);return _o((()=>{if(!n&&r!==s.current&&a.current){const e=i.current;if(e){const t=Dl(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}r!==s.current&&(s.current=r)}),[n,r,a,i]),e.useEffect((()=>{o&&l(null)}),[o]),o}({disabled:!J,index:w,node:k,rect:I});return e.useEffect((()=>{z&&X.current.newIndex!==j&&(X.current.newIndex=j),p!==X.current.containerId&&(X.current.containerId=p),d!==X.current.items&&(X.current.items=d)}),[z,j,p,d]),e.useEffect((()=>{if(F===X.current.activeId)return;if(null!=F&&null==X.current.activeId)return void(X.current.activeId=F);const e=setTimeout((()=>{X.current.activeId=F}),50);return()=>clearTimeout(e)}),[F]),{active:H,activeIndex:f,attributes:Z,data:C,rect:I,index:w,newIndex:j,items:d,isOver:A,isSorting:z,isDragging:S,listeners:L,node:k,overIndex:b,over:O,setNodeRef:$,setActivatorNodeRef:R,setDroppableNodeRef:M,setDraggableNodeRef:D,transform:null!=U?U:W,transition:function(){if(U||Y&&X.current.newIndex===w)return yc;if(G&&!sl(N)||!u)return;if(z||J)return ul.Transition.toString({...u,property:xc});return}()}}Kl.Down,Kl.Right,Kl.Up,Kl.Left;const Ec=e=>{let{transform:t}=e;return{...t,x:0}},Ic=e.createContext({isSorting:!1,setIsSorting:e=>{}}),kc=e.createContext({isGhost:!1}),Ac=o.default.div`
|
|
854
|
+
`;Po.displayName="ContextMenu2TriggerItem";const Wo="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function jo(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Fo(e){return"nodeType"in e}function Xo(e){var t,n;return e?jo(e)?e:Fo(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function Yo(e){const{Document:t}=Xo(e);return e instanceof t}function Jo(e){return!jo(e)&&e instanceof Xo(e).HTMLElement}function Uo(e){return e instanceof Xo(e).SVGElement}function Qo(e){return e?jo(e)?e.document:Fo(e)?Yo(e)?e:Jo(e)||Uo(e)?e.ownerDocument:document:document:document}const _o=Wo?e.useLayoutEffect:e.useEffect;function qo(t){const n=e.useRef(t);return _o((()=>{n.current=t})),e.useCallback((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function Ko(t,n){void 0===n&&(n=[t]);const r=e.useRef(t);return _o((()=>{r.current!==t&&(r.current=t)}),n),r}function el(t,n){const r=e.useRef();return e.useMemo((()=>{const e=t(r.current);return r.current=e,e}),[...n])}function tl(t){const n=qo(t),r=e.useRef(null),a=e.useCallback((e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,a]}function nl(t){const n=e.useRef();return e.useEffect((()=>{n.current=t}),[t]),n.current}let rl={};function al(t,n){return e.useMemo((()=>{if(n)return n;const e=null==rl[t]?0:rl[t]+1;return rl[t]=e,t+"-"+e}),[t,n])}function il(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,a]of r){const r=t[n];null!=r&&(t[n]=r+e*a)}return t}),{...t})}}const ol=il(1),ll=il(-1);function sl(e){if(!e)return!1;const{KeyboardEvent:t}=Xo(e.target);return t&&e instanceof t}function cl(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=Xo(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const ul=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[ul.Translate.toString(e),ul.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),dl="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function pl(e){return e.matches(dl)?e:e.querySelector(dl)}const fl={display:"none"};function ml(e){let{id:t,value:n}=e;return i.default.createElement("div",{id:t,style:fl},n)}function gl(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return i.default.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const hl=e.createContext(null);const bl={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},vl={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function xl(t){let{announcements:r=vl,container:a,hiddenTextDescribedById:o,screenReaderInstructions:l=bl}=t;const{announce:s,announcement:c}=function(){const[t,n]=e.useState("");return{announce:e.useCallback((e=>{null!=e&&n(e)}),[]),announcement:t}}(),u=al("DndLiveRegion"),[d,p]=e.useState(!1);if(e.useEffect((()=>{p(!0)}),[]),function(t){const n=e.useContext(hl);e.useEffect((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(t)}),[t,n])}(e.useMemo((()=>({onDragStart(e){let{active:t}=e;s(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&s(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;s(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;s(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;s(r.onDragCancel({active:t,over:n}))}})),[s,r])),!d)return null;const f=i.default.createElement(i.default.Fragment,null,i.default.createElement(ml,{id:o,value:l.draggable}),i.default.createElement(gl,{id:u,announcement:c}));return a?n.createPortal(f,a):f}var yl;function wl(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(yl||(yl={}));const Cl=Object.freeze({x:0,y:0});function El(e,t){const n=cl(e);if(!n)return"0 0";return(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%"}function Il(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function kl(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),o=a-r,l=i-n;if(r<a&&n<i){const n=t.width*t.height,r=e.width*e.height,a=o*l;return Number((a/(n+r-a)).toFixed(4))}return 0}const Al=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=kl(i,t);n>0&&a.push({id:r,data:{droppableContainer:e,value:n}})}}return a.sort(Il)};function Ml(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Cl}function Hl(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const Nl=Hl(1);function Vl(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const Zl={ignoreTransform:!1};function Dl(e,t){void 0===t&&(t=Zl);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=Xo(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=Vl(t);if(!r)return e;const{scaleX:a,scaleY:i,x:o,y:l}=r,s=e.left-o-(1-a)*parseFloat(n),c=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=a?e.width/a:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,t,r))}const{top:r,left:a,width:i,height:o,bottom:l,right:s}=n;return{top:r,left:a,width:i,height:o,bottom:l,right:s}}function Sl(e){return Dl(e,{ignoreTransform:!0})}function Ll(e,t){const n=[];return e?function r(a){if(null!=t&&n.length>=t)return n;if(!a)return n;if(Yo(a)&&null!=a.scrollingElement&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Jo(a)||Uo(a))return n;if(n.includes(a))return n;const i=Xo(e).getComputedStyle(a);return a!==e&&function(e,t){void 0===t&&(t=Xo(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(a,i)&&n.push(a),function(e,t){return void 0===t&&(t=Xo(e).getComputedStyle(e)),"fixed"===t.position}(a,i)?n:r(a.parentNode)}(e):n}function Ol(e){const[t]=Ll(e,1);return null!=t?t:null}function Rl(e){return Wo&&e?jo(e)?e:Fo(e)?Yo(e)||e===Qo(e).scrollingElement?window:Jo(e)?e:null:null:null}function $l(e){return jo(e)?e.scrollX:e.scrollLeft}function Tl(e){return jo(e)?e.scrollY:e.scrollTop}function zl(e){return{x:$l(e),y:Tl(e)}}var Bl;function Gl(e){return!(!Wo||!e)&&e===document.scrollingElement}function Pl(e){const t={x:0,y:0},n=Gl(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Bl||(Bl={}));const Wl={x:.2,y:.2};function jl(e,t,n,r,a){let{top:i,left:o,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===a&&(a=Wl);const{isTop:c,isBottom:u,isLeft:d,isRight:p}=Pl(e),f={x:0,y:0},m={x:0,y:0},g=t.height*a.y,h=t.width*a.x;return!c&&i<=t.top+g?(f.y=Bl.Backward,m.y=r*Math.abs((t.top+g-i)/g)):!u&&s>=t.bottom-g&&(f.y=Bl.Forward,m.y=r*Math.abs((t.bottom-g-s)/g)),!p&&l>=t.right-h?(f.x=Bl.Forward,m.x=r*Math.abs((t.right-h-l)/h)):!d&&o<=t.left+h&&(f.x=Bl.Backward,m.x=r*Math.abs((t.left+h-o)/h)),{direction:f,speed:m}}function Fl(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function Xl(e){return e.reduce(((e,t)=>ol(e,zl(t))),Cl)}function Yl(e,t){if(void 0===t&&(t=Dl),!e)return;const{top:n,left:r,bottom:a,right:i}=t(e);Ol(e)&&(a<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Jl=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+$l(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Tl(t)),0)}]];class Ul{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=Ll(t),r=Xl(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,a]of Jl)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=a(n),o=r[e]-t;return this.rect[i]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ql{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function _l(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var ql,Kl;function es(e){e.preventDefault()}function ts(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ql||(ql={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(Kl||(Kl={}));const ns={start:[Kl.Space,Kl.Enter],cancel:[Kl.Esc],end:[Kl.Space,Kl.Enter,Kl.Tab]},rs=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Kl.Right:return{...n,x:n.x+25};case Kl.Left:return{...n,x:n.x-25};case Kl.Down:return{...n,y:n.y+25};case Kl.Up:return{...n,y:n.y-25}}};class as{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Ql(Qo(t)),this.windowListeners=new Ql(Xo(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ql.Resize,this.handleCancel),this.windowListeners.add(ql.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ql.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Yl(n),t(Cl)}handleKeyDown(e){if(sl(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:a=ns,coordinateGetter:i=rs,scrollBehavior:o="smooth"}=r,{code:l}=e;if(a.end.includes(l))return void this.handleEnd(e);if(a.cancel.includes(l))return void this.handleCancel(e);const{collisionRect:s}=n.current,c=s?{x:s.left,y:s.top}:Cl;this.referenceCoordinates||(this.referenceCoordinates=c);const u=i(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=ll(u,c),r={x:0,y:0},{scrollableAncestors:a}=n.current;for(const n of a){const a=e.code,{isTop:i,isRight:l,isLeft:s,isBottom:c,maxScroll:d,minScroll:p}=Pl(n),f=Fl(n),m={x:Math.min(a===Kl.Right?f.right-f.width/2:f.right,Math.max(a===Kl.Right?f.left:f.left+f.width/2,u.x)),y:Math.min(a===Kl.Down?f.bottom-f.height/2:f.bottom,Math.max(a===Kl.Down?f.top:f.top+f.height/2,u.y))},g=a===Kl.Right&&!l||a===Kl.Left&&!s,h=a===Kl.Down&&!c||a===Kl.Up&&!i;if(g&&m.x!==u.x){const e=n.scrollLeft+t.x,i=a===Kl.Right&&e<=d.x||a===Kl.Left&&e>=p.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:o});r.x=i?n.scrollLeft-e:a===Kl.Right?n.scrollLeft-d.x:n.scrollLeft-p.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(h&&m.y!==u.y){const e=n.scrollTop+t.y,i=a===Kl.Down&&e<=d.y||a===Kl.Up&&e>=p.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:o});r.y=i?n.scrollTop-e:a===Kl.Down?n.scrollTop-d.y:n.scrollTop-p.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,ol(ll(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function is(e){return Boolean(e&&"distance"in e)}function os(e){return Boolean(e&&"delay"in e)}as.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ns,onActivation:a}=t,{active:i}=n;const{code:o}=e.nativeEvent;if(r.start.includes(o)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==a||a({event:e.nativeEvent}),!0)}return!1}}];class ls{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=Xo(e);return e instanceof t?e:Qo(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:a}=e,{target:i}=a;this.props=e,this.events=t,this.document=Qo(i),this.documentListeners=new Ql(this.document),this.listeners=new Ql(n),this.windowListeners=new Ql(Xo(i)),this.initialCoordinates=null!=(r=cl(a))?r:Cl,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(ql.Resize,this.handleCancel),this.windowListeners.add(ql.DragStart,es),this.windowListeners.add(ql.VisibilityChange,this.handleCancel),this.windowListeners.add(ql.ContextMenu,es),this.documentListeners.add(ql.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(os(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(is(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ql.Click,ts,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ql.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:a}=this,{onMove:i,options:{activationConstraint:o}}=a;if(!r)return;const l=null!=(t=cl(e))?t:Cl,s=ll(r,l);if(!n&&o){if(is(o)){if(null!=o.tolerance&&_l(s,o.tolerance))return this.handleCancel();if(_l(s,o.distance))return this.handleStart()}return os(o)&&_l(s,o.tolerance)?this.handleCancel():void this.handlePending(o,s)}e.cancelable&&e.preventDefault(),i(l)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Kl.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ss={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class cs extends ls{constructor(e){const{event:t}=e,n=Qo(t.target);super(e,ss,n)}}cs.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const us={move:{name:"mousemove"},end:{name:"mouseup"}};var ds;!function(e){e[e.RightClick=2]="RightClick"}(ds||(ds={}));(class extends ls{constructor(e){super(e,us,Qo(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ds.RightClick&&(null==r||r({event:n}),!0)}}];const ps={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var fs,ms;function gs(t){let{acceleration:n,activator:r=fs.Pointer,canScroll:a,draggingRect:i,enabled:o,interval:l=5,order:s=ms.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:p,threshold:f}=t;const m=function(e){let{delta:t,disabled:n}=e;const r=nl(t);return el((e=>{if(n||!r||!e)return hs;const a={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Bl.Backward]:e.x[Bl.Backward]||-1===a.x,[Bl.Forward]:e.x[Bl.Forward]||1===a.x},y:{[Bl.Backward]:e.y[Bl.Backward]||-1===a.y,[Bl.Forward]:e.y[Bl.Forward]||1===a.y}}}),[n,t,r])}({delta:p,disabled:!o}),[g,h]=function(){const t=e.useRef(null);return[e.useCallback(((e,n)=>{t.current=setInterval(e,n)}),[]),e.useCallback((()=>{null!==t.current&&(clearInterval(t.current),t.current=null)}),[])]}(),b=e.useRef({x:0,y:0}),v=e.useRef({x:0,y:0}),x=e.useMemo((()=>{switch(r){case fs.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case fs.DraggableRect:return i}}),[r,i,c]),y=e.useRef(null),w=e.useCallback((()=>{const e=y.current;if(!e)return;const t=b.current.x*v.current.x,n=b.current.y*v.current.y;e.scrollBy(t,n)}),[]),C=e.useMemo((()=>s===ms.TreeOrder?[...u].reverse():u),[s,u]);e.useEffect((()=>{if(o&&u.length&&x){for(const e of C){if(!1===(null==a?void 0:a(e)))continue;const t=u.indexOf(e),r=d[t];if(!r)continue;const{direction:i,speed:o}=jl(e,r,x,n,f);for(const e of["x","y"])m[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0)return h(),y.current=e,g(w,l),b.current=o,void(v.current=i)}b.current={x:0,y:0},v.current={x:0,y:0},h()}else h()}),[n,w,a,h,o,l,JSON.stringify(x),JSON.stringify(m),g,u,C,d,JSON.stringify(f)])}(class extends ls{constructor(e){super(e,ps)}static setup(){return window.addEventListener(ps.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ps.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return!(a.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(fs||(fs={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ms||(ms={}));const hs={x:{[Bl.Backward]:!1,[Bl.Forward]:!1},y:{[Bl.Backward]:!1,[Bl.Forward]:!1}};var bs,vs;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(bs||(bs={})),function(e){e.Optimized="optimized"}(vs||(vs={}));const xs=new Map;function ys(e,t){return el((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function ws(t){let{callback:n,disabled:r}=t;const a=qo(n),i=e.useMemo((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(a)}),[r]);return e.useEffect((()=>()=>null==i?void 0:i.disconnect()),[i]),i}function Cs(e){return new Ul(Dl(e),e)}function Es(t,n,r){void 0===n&&(n=Cs);const[a,i]=e.useState(null);function o(){i((e=>{if(!t)return null;var a;if(!1===t.isConnected)return null!=(a=null!=e?e:r)?a:null;const i=n(t);return JSON.stringify(e)===JSON.stringify(i)?e:i}))}const l=function(t){let{callback:n,disabled:r}=t;const a=qo(n),i=e.useMemo((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(a)}),[a,r]);return e.useEffect((()=>()=>null==i?void 0:i.disconnect()),[i]),i}({callback(e){if(t)for(const n of e){const{type:e,target:r}=n;if("childList"===e&&r instanceof HTMLElement&&r.contains(t)){o();break}}}}),s=ws({callback:o});return _o((()=>{o(),t?(null==s||s.observe(t),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==l||l.disconnect())}),[t]),a}const Is=[];function ks(t,n){void 0===n&&(n=[]);const r=e.useRef(null);return e.useEffect((()=>{r.current=null}),n),e.useEffect((()=>{const e=t!==Cl;e&&!r.current&&(r.current=t),!e&&r.current&&(r.current=null)}),[t]),r.current?ll(t,r.current):Cl}function As(t){return e.useMemo((()=>t?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(t):null),[t])}const Ms=[];function Hs(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Jo(t)?t:e}const Ns=[{sensor:cs,options:{}},{sensor:as,options:{}}],Vs={current:{}},Zs={draggable:{measure:Sl},droppable:{measure:Sl,strategy:bs.WhileDragging,frequency:vs.Optimized},dragOverlay:{measure:Dl}};class Ds extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Ss={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ds,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:wl},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Zs,measureDroppableContainers:wl,windowRect:null,measuringScheduled:!1},Ls={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:wl,draggableNodes:new Map,over:null,measureDroppableContainers:wl},Os=e.createContext(Ls),Rs=e.createContext(Ss);function $s(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ds}}}function Ts(e,t){switch(t.type){case yl.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case yl.DragMove:return null==e.draggable.active?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case yl.DragEnd:case yl.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case yl.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new Ds(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case yl.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Ds(e.droppable.containers);return o.set(n,{...i,disabled:a}),{...e,droppable:{...e.droppable,containers:o}}}case yl.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const i=new Ds(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function zs(t){let{disabled:n}=t;const{active:r,activatorEvent:a,draggableNodes:i}=e.useContext(Os),o=nl(a),l=nl(null==r?void 0:r.id);return e.useEffect((()=>{if(!n&&!a&&o&&null!=l){if(!sl(o))return;if(document.activeElement===o.target)return;const e=i.get(l);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=pl(e);if(t){t.focus();break}}}))}}),[a,n,i,l,o]),null}function Bs(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Gs=e.createContext({...Cl,scaleX:1,scaleY:1});var Ps;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ps||(Ps={}));const Ws=e.memo((function(t){var r,a,o,l;let{id:s,accessibility:c,autoScroll:u=!0,children:d,sensors:p=Ns,collisionDetection:f=Al,measuring:m,modifiers:g,...h}=t;const b=e.useReducer(Ts,void 0,$s),[v,x]=b,[y,w]=function(){const[t]=e.useState((()=>new Set)),n=e.useCallback((e=>(t.add(e),()=>t.delete(e))),[t]),r=e.useCallback((e=>{let{type:n,event:r}=e;t.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[t]);return[r,n]}(),[C,E]=e.useState(Ps.Uninitialized),I=C===Ps.Initialized,{draggable:{active:k,nodes:A,translate:M},droppable:{containers:H}}=v,N=null!=k?A.get(k):null,V=e.useRef({initial:null,translated:null}),Z=e.useMemo((()=>{var e;return null!=k?{id:k,data:null!=(e=null==N?void 0:N.data)?e:Vs,rect:V}:null}),[k,N]),D=e.useRef(null),[S,L]=e.useState(null),[O,R]=e.useState(null),$=Ko(h,Object.values(h)),T=al("DndDescribedBy",s),z=e.useMemo((()=>H.getEnabled()),[H]),B=function(t){return e.useMemo((()=>({draggable:{...Zs.draggable,...null==t?void 0:t.draggable},droppable:{...Zs.droppable,...null==t?void 0:t.droppable},dragOverlay:{...Zs.dragOverlay,...null==t?void 0:t.dragOverlay}})),[null==t?void 0:t.draggable,null==t?void 0:t.droppable,null==t?void 0:t.dragOverlay])}(m),{droppableRects:G,measureDroppableContainers:P,measuringScheduled:W}=function(t,n){let{dragging:r,dependencies:a,config:i}=n;const[o,l]=e.useState(null),{frequency:s,measure:c,strategy:u}=i,d=e.useRef(t),p=function(){switch(u){case bs.Always:return!1;case bs.BeforeDragging:return r;default:return!r}}(),f=Ko(p),m=e.useCallback((function(e){void 0===e&&(e=[]),f.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[f]),g=e.useRef(null),h=el((e=>{if(p&&!r)return xs;if(!e||e===xs||d.current!==t||null!=o){const e=new Map;for(let n of t){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){e.set(n.id,n.rect.current);continue}const t=n.node.current,r=t?new Ul(c(t),t):null;n.rect.current=r,r&&e.set(n.id,r)}return e}return e}),[t,o,r,p,c]);return e.useEffect((()=>{d.current=t}),[t]),e.useEffect((()=>{p||m()}),[r,p]),e.useEffect((()=>{o&&o.length>0&&l(null)}),[JSON.stringify(o)]),e.useEffect((()=>{p||"number"!=typeof s||null!==g.current||(g.current=setTimeout((()=>{m(),g.current=null}),s))}),[s,p,m,...a]),{droppableRects:h,measureDroppableContainers:m,measuringScheduled:null!=o}}(z,{dragging:I,dependencies:[M.x,M.y],config:B.droppable}),j=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return el((e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(A,k),F=e.useMemo((()=>O?cl(O):null),[O]),X=function(){const e=!1===(null==S?void 0:S.autoScrollEnabled),t="object"==typeof u?!1===u.enabled:!1===u,n=I&&!e&&!t;if("object"==typeof u)return{...u,enabled:n};return{enabled:n}}(),Y=function(e,t){return ys(e,t)}(j,B.draggable.measure);!function(t){let{activeNode:n,measure:r,initialRect:a,config:i=!0}=t;const o=e.useRef(!1),{x:l,y:s}="boolean"==typeof i?{x:i,y:i}:i;_o((()=>{if(!l&&!s||!n)return void(o.current=!1);if(o.current||!a)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=Ml(r(e),a);if(l||(t.x=0),s||(t.y=0),o.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=Ol(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,l,s,a,r])}({activeNode:null!=k?A.get(k):null,config:X.layoutShiftCompensation,initialRect:Y,measure:B.draggable.measure});const J=Es(j,B.draggable.measure,Y),U=Es(j?j.parentElement:null),Q=e.useRef({activatorEvent:null,active:null,activeNode:j,collisionRect:null,collisions:null,droppableRects:G,draggableNodes:A,draggingNode:null,draggingNodeRect:null,droppableContainers:H,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),_=H.getNodeFor(null==(r=Q.current.over)?void 0:r.id),q=function(t){let{measure:n}=t;const[r,a]=e.useState(null),i=ws({callback:e.useCallback((e=>{for(const{target:t}of e)if(Jo(t)){a((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),o=e.useCallback((e=>{const t=Hs(e);null==i||i.disconnect(),t&&(null==i||i.observe(t)),a(t?n(t):null)}),[n,i]),[l,s]=tl(o);return e.useMemo((()=>({nodeRef:l,rect:r,setRef:s})),[r,l,s])}({measure:B.dragOverlay.measure}),K=null!=(a=q.nodeRef.current)?a:j,ee=I?null!=(o=q.rect)?o:J:null,te=Boolean(q.nodeRef.current&&q.rect),ne=Ml(re=te?null:J,ys(re));var re;const ae=As(K?Xo(K):null),ie=function(t){const n=e.useRef(t),r=el((e=>t?e&&e!==Is&&t&&n.current&&t.parentNode===n.current.parentNode?e:Ll(t):Is),[t]);return e.useEffect((()=>{n.current=t}),[t]),r}(I?null!=_?_:j:null),oe=function(t,n){void 0===n&&(n=Dl);const[r]=t,a=As(r?Xo(r):null),[i,o]=e.useState(Ms);function l(){o((()=>t.length?t.map((e=>Gl(e)?a:new Ul(n(e),e))):Ms))}const s=ws({callback:l});return _o((()=>{null==s||s.disconnect(),l(),t.forEach((e=>null==s?void 0:s.observe(e)))}),[t]),i}(ie),le=Bs(g,{transform:{x:M.x-ne.x,y:M.y-ne.y,scaleX:1,scaleY:1},activatorEvent:O,active:Z,activeNodeRect:J,containerNodeRect:U,draggingNodeRect:ee,over:Q.current.over,overlayNodeRect:q.rect,scrollableAncestors:ie,scrollableAncestorRects:oe,windowRect:ae}),se=F?ol(F,M):null,ce=function(t){const[n,r]=e.useState(null),a=e.useRef(t),i=e.useCallback((e=>{const t=Rl(e.target);t&&r((e=>e?(e.set(t,zl(t)),new Map(e)):null))}),[]);return e.useEffect((()=>{const e=a.current;if(t!==e){n(e);const o=t.map((e=>{const t=Rl(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,zl(t)]):null})).filter((e=>null!=e));r(o.length?new Map(o):null),a.current=t}return()=>{n(t),n(e)};function n(e){e.forEach((e=>{const t=Rl(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,t]),e.useMemo((()=>t.length?n?Array.from(n.values()).reduce(((e,t)=>ol(e,t)),Cl):Xl(t):Cl),[t,n])}(ie),ue=ks(ce),de=ks(ce,[J]),pe=ol(le,ue),fe=ee?Nl(ee,le):null,me=Z&&fe?f({active:Z,collisionRect:fe,droppableRects:G,droppableContainers:z,pointerCoordinates:se}):null,ge=function(e,t){if(!e||0===e.length)return null;const[n]=e;return n[t]}(me,"id"),[he,be]=e.useState(null),ve=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?le:ol(le,de),null!=(l=null==he?void 0:he.rect)?l:null,J),xe=e.useRef(null),ye=e.useCallback(((e,t)=>{let{sensor:r,options:a}=t;if(null==D.current)return;const i=A.get(D.current);if(!i)return;const o=e.nativeEvent,l=new r({active:D.current,activeNode:i,event:o,options:a,context:Q,onAbort(e){if(!A.get(e))return;const{onDragAbort:t}=$.current,n={id:e};null==t||t(n),y({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!A.get(e))return;const{onDragPending:a}=$.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==a||a(i),y({type:"onDragPending",event:i})},onStart(e){const t=D.current;if(null==t)return;const r=A.get(t);if(!r)return;const{onDragStart:a}=$.current,i={activatorEvent:o,active:{id:t,data:r.data,rect:V}};n.unstable_batchedUpdates((()=>{null==a||a(i),E(Ps.Initializing),x({type:yl.DragStart,initialCoordinates:e,active:t}),y({type:"onDragStart",event:i}),L(xe.current),R(o)}))},onMove(e){x({type:yl.DragMove,coordinates:e})},onEnd:s(yl.DragEnd),onCancel:s(yl.DragCancel)});function s(e){return async function(){const{active:t,collisions:r,over:a,scrollAdjustedTranslate:i}=Q.current;let l=null;if(t&&i){const{cancelDrop:n}=$.current;if(l={activatorEvent:o,active:t,collisions:r,delta:i,over:a},e===yl.DragEnd&&"function"==typeof n){await Promise.resolve(n(l))&&(e=yl.DragCancel)}}D.current=null,n.unstable_batchedUpdates((()=>{x({type:e}),E(Ps.Uninitialized),be(null),L(null),R(null),xe.current=null;const t=e===yl.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=$.current[t];null==e||e(l),y({type:t,event:l})}}))}}xe.current=l}),[A]),we=e.useCallback(((e,t)=>(n,r)=>{const a=n.nativeEvent,i=A.get(r);if(null!==D.current||!i||a.dndKit||a.defaultPrevented)return;const o={active:i};!0===e(n,t.options,o)&&(a.dndKit={capturedBy:t.sensor},D.current=r,ye(n,t))}),[A,ye]),Ce=function(t,n){return e.useMemo((()=>t.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[t,n])}(p,we);!function(t){e.useEffect((()=>{if(!Wo)return;const e=t.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const t of e)null==t||t()}}),t.map((e=>{let{sensor:t}=e;return t})))}(p),_o((()=>{J&&C===Ps.Initializing&&E(Ps.Initialized)}),[J,C]),e.useEffect((()=>{const{onDragMove:e}=$.current,{active:t,activatorEvent:r,collisions:a,over:i}=Q.current;if(!t||!r)return;const o={active:t,activatorEvent:r,collisions:a,delta:{x:pe.x,y:pe.y},over:i};n.unstable_batchedUpdates((()=>{null==e||e(o),y({type:"onDragMove",event:o})}))}),[pe.x,pe.y]),e.useEffect((()=>{const{active:e,activatorEvent:t,collisions:r,droppableContainers:a,scrollAdjustedTranslate:i}=Q.current;if(!e||null==D.current||!t||!i)return;const{onDragOver:o}=$.current,l=a.get(ge),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:r,delta:{x:i.x,y:i.y},over:s};n.unstable_batchedUpdates((()=>{be(s),null==o||o(c),y({type:"onDragOver",event:c})}))}),[ge]),_o((()=>{Q.current={activatorEvent:O,active:Z,activeNode:j,collisionRect:fe,collisions:me,droppableRects:G,draggableNodes:A,draggingNode:K,draggingNodeRect:ee,droppableContainers:H,over:he,scrollableAncestors:ie,scrollAdjustedTranslate:pe},V.current={initial:ee,translated:fe}}),[Z,j,me,fe,A,K,ee,G,H,he,ie,pe]),gs({...X,delta:M,draggingRect:fe,pointerCoordinates:se,scrollableAncestors:ie,scrollableAncestorRects:oe});const Ee=e.useMemo((()=>({active:Z,activeNode:j,activeNodeRect:J,activatorEvent:O,collisions:me,containerNodeRect:U,dragOverlay:q,draggableNodes:A,droppableContainers:H,droppableRects:G,over:he,measureDroppableContainers:P,scrollableAncestors:ie,scrollableAncestorRects:oe,measuringConfiguration:B,measuringScheduled:W,windowRect:ae})),[Z,j,J,O,me,U,q,A,H,G,he,P,ie,oe,B,W,ae]),Ie=e.useMemo((()=>({activatorEvent:O,activators:Ce,active:Z,activeNodeRect:J,ariaDescribedById:{draggable:T},dispatch:x,draggableNodes:A,over:he,measureDroppableContainers:P})),[O,Ce,Z,J,x,T,A,he,P]);return i.default.createElement(hl.Provider,{value:w},i.default.createElement(Os.Provider,{value:Ie},i.default.createElement(Rs.Provider,{value:Ee},i.default.createElement(Gs.Provider,{value:ve},d)),i.default.createElement(zs,{disabled:!1===(null==c?void 0:c.restoreFocus)})),i.default.createElement(xl,{...c,hiddenTextDescribedById:T}))})),js=e.createContext(null),Fs="button",Xs="Draggable";function Ys(t){let{id:n,data:r,disabled:a=!1,attributes:i}=t;const o=al(Xs),{activators:l,activatorEvent:s,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:p,over:f}=e.useContext(Os),{role:m=Fs,roleDescription:g="draggable",tabIndex:h=0}=null!=i?i:{},b=(null==c?void 0:c.id)===n,v=e.useContext(b?Gs:js),[x,y]=tl(),[w,C]=tl(),E=function(t,n){return e.useMemo((()=>t.reduce(((e,t)=>{let{eventName:r,handler:a}=t;return e[r]=e=>{a(e,n)},e}),{})),[t,n])}(l,n),I=Ko(r);_o((()=>(p.set(n,{id:n,key:o,node:x,activatorNode:w,data:I}),()=>{const e=p.get(n);e&&e.key===o&&p.delete(n)})),[p,n]);return{active:c,activatorEvent:s,activeNodeRect:u,attributes:e.useMemo((()=>({role:m,tabIndex:h,"aria-disabled":a,"aria-pressed":!(!b||m!==Fs)||void 0,"aria-roledescription":g,"aria-describedby":d.draggable})),[a,m,h,b,g,d.draggable]),isDragging:b,listeners:a?void 0:E,node:x,over:f,setNodeRef:y,setActivatorNodeRef:C,transform:v}}function Js(){return e.useContext(Rs)}const Us="Droppable",Qs={timeout:25};function _s(t){let{animation:n,children:r}=t;const[a,o]=e.useState(null),[l,s]=e.useState(null),c=nl(r);return r||a||!c||o(c),_o((()=>{if(!l)return;const e=null==a?void 0:a.key,t=null==a?void 0:a.props.id;null!=e&&null!=t?Promise.resolve(n(t,l)).then((()=>{o(null)})):o(null)}),[n,a,l]),i.default.createElement(i.default.Fragment,null,r,a?e.cloneElement(a,{ref:s}):null)}const qs={x:0,y:0,scaleX:1,scaleY:1};function Ks(e){let{children:t}=e;return i.default.createElement(Os.Provider,{value:Ls},i.default.createElement(Gs.Provider,{value:qs},t))}const ec={position:"fixed",touchAction:"none"},tc=e=>sl(e)?"transform 250ms ease":void 0,nc=e.forwardRef(((e,t)=>{let{as:n,activatorEvent:r,adjustScale:a,children:o,className:l,rect:s,style:c,transform:u,transition:d=tc}=e;if(!s)return null;const p=a?u:{...u,scaleX:1,scaleY:1},f={...ec,width:s.width,height:s.height,top:s.top,left:s.left,transform:ul.Transform.toString(p),transformOrigin:a&&r?El(r,s):void 0,transition:"function"==typeof d?d(r):d,...c};return i.default.createElement(n,{className:l,style:f,ref:t},o)})),rc=e=>t=>{let{active:n,dragOverlay:r}=t;const a={},{styles:i,className:o}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(a[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=o&&o.active&&n.node.classList.add(o.active),null!=o&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[e,t]of Object.entries(a))n.node.style.setProperty(e,t);null!=o&&o.active&&n.node.classList.remove(o.active)}},ac={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:ul.Transform.toString(t)},{transform:ul.Transform.toString(n)}]},sideEffects:rc({styles:{active:{opacity:"0"}}})};function ic(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:a}=e;return qo(((e,i)=>{if(null===t)return;const o=n.get(e);if(!o)return;const l=o.node.current;if(!l)return;const s=Hs(i);if(!s)return;const{transform:c}=Xo(i).getComputedStyle(i),u=Vl(c);if(!u)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:a}={...ac,...e};return e=>{let{active:i,dragOverlay:o,transform:l,...s}=e;if(!t)return;const c={x:o.rect.left-i.rect.left,y:o.rect.top-i.rect.top},u={scaleX:1!==l.scaleX?i.rect.width*l.scaleX/o.rect.width:1,scaleY:1!==l.scaleY?i.rect.height*l.scaleY/o.rect.height:1},d={x:l.x-c.x,y:l.y-c.y,...u},p=a({...s,active:i,dragOverlay:o,transform:{initial:l,final:d}}),[f]=p,m=p[p.length-1];if(JSON.stringify(f)===JSON.stringify(m))return;const g=null==r?void 0:r({active:i,dragOverlay:o,...s}),h=o.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{h.onfinish=()=>{null==g||g(),e()}}))}}(t);return Yl(l,a.draggable.measure),d({active:{id:e,data:o.data,node:l,rect:a.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:i,rect:a.dragOverlay.measure(s)},droppableContainers:r,measuringConfiguration:a,transform:u})}))}let oc=0;function lc(t){return e.useMemo((()=>{if(null!=t)return oc++,oc}),[t])}const sc=i.default.memo((t=>{let{adjustScale:n=!1,children:r,dropAnimation:a,style:o,transition:l,modifiers:s,wrapperElement:c="div",className:u,zIndex:d=999}=t;const{activatorEvent:p,active:f,activeNodeRect:m,containerNodeRect:g,draggableNodes:h,droppableContainers:b,dragOverlay:v,over:x,measuringConfiguration:y,scrollableAncestors:w,scrollableAncestorRects:C,windowRect:E}=Js(),I=e.useContext(Gs),k=lc(null==f?void 0:f.id),A=Bs(s,{activatorEvent:p,active:f,activeNodeRect:m,containerNodeRect:g,draggingNodeRect:v.rect,over:x,overlayNodeRect:v.rect,scrollableAncestors:w,scrollableAncestorRects:C,transform:I,windowRect:E}),M=ys(m),H=ic({config:a,draggableNodes:h,droppableContainers:b,measuringConfiguration:y}),N=M?v.setRef:void 0;return i.default.createElement(Ks,null,i.default.createElement(_s,{animation:H},f&&k?i.default.createElement(nc,{key:k,id:f.id,ref:N,as:c,activatorEvent:p,adjustScale:n,className:u,transition:l,rect:M,style:{zIndex:d,...o},transform:A},r):null))}));function cc(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function uc(e,t){return e.reduce(((e,n,r)=>{const a=t.get(n);return a&&(e[r]=a),e}),Array(e.length))}function dc(e){return null!==e&&e>=0}const pc=e=>{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const i=cc(t,r,n),o=t[a],l=i[a];return l&&o?{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}:null},fc="Sortable",mc=i.default.createContext({activeIndex:-1,containerId:fc,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:pc,disabled:{draggable:!1,droppable:!1}});function gc(t){let{children:n,id:r,items:a,strategy:o=pc,disabled:l=!1}=t;const{active:s,dragOverlay:c,droppableRects:u,over:d,measureDroppableContainers:p}=Js(),f=al(fc,r),m=Boolean(null!==c.rect),g=e.useMemo((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),h=null!=s,b=s?g.indexOf(s.id):-1,v=d?g.indexOf(d.id):-1,x=e.useRef(g),y=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(g,x.current),w=-1!==v&&-1===b||y,C=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(l);_o((()=>{y&&h&&p(g)}),[y,g,h,p]),e.useEffect((()=>{x.current=g}),[g]);const E=e.useMemo((()=>({activeIndex:b,containerId:f,disabled:C,disableTransforms:w,items:g,overIndex:v,useDragOverlay:m,sortedRects:uc(g,u),strategy:o})),[b,f,C.draggable,C.droppable,w,g,v,u,m,o]);return i.default.createElement(mc.Provider,{value:E},n)}const hc=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return cc(n,r,a).indexOf(t)},bc=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:i,newIndex:o,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r)&&((l===i||a!==o)&&(!!n||o!==a&&t===s))},vc={duration:200,easing:"ease"},xc="transform",yc=ul.Transition.toString({property:xc,duration:0,easing:"linear"}),wc={roleDescription:"sortable"};function Cc(t){let{animateLayoutChanges:n=bc,attributes:r,disabled:a,data:i,getNewIndex:o=hc,id:l,strategy:s,resizeObserverConfig:c,transition:u=vc}=t;const{items:d,containerId:p,activeIndex:f,disabled:m,disableTransforms:g,sortedRects:h,overIndex:b,useDragOverlay:v,strategy:x}=e.useContext(mc),y=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,m),w=d.indexOf(l),C=e.useMemo((()=>({sortable:{containerId:p,index:w,items:d},...i})),[p,i,w,d]),E=e.useMemo((()=>d.slice(d.indexOf(l))),[d,l]),{rect:I,node:k,isOver:A,setNodeRef:M}=function(t){let{data:n,disabled:r=!1,id:a,resizeObserverConfig:i}=t;const o=al(Us),{active:l,dispatch:s,over:c,measureDroppableContainers:u}=e.useContext(Os),d=e.useRef({disabled:r}),p=e.useRef(!1),f=e.useRef(null),m=e.useRef(null),{disabled:g,updateMeasurementsFor:h,timeout:b}={...Qs,...i},v=Ko(null!=h?h:a),x=ws({callback:e.useCallback((()=>{p.current?(null!=m.current&&clearTimeout(m.current),m.current=setTimeout((()=>{u(Array.isArray(v.current)?v.current:[v.current]),m.current=null}),b)):p.current=!0}),[b]),disabled:g||!l}),y=e.useCallback(((e,t)=>{x&&(t&&(x.unobserve(t),p.current=!1),e&&x.observe(e))}),[x]),[w,C]=tl(y),E=Ko(n);return e.useEffect((()=>{x&&w.current&&(x.disconnect(),p.current=!1,x.observe(w.current))}),[w,x]),e.useEffect((()=>(s({type:yl.RegisterDroppable,element:{id:a,key:o,disabled:r,node:w,rect:f,data:E}}),()=>s({type:yl.UnregisterDroppable,key:o,id:a}))),[a]),e.useEffect((()=>{r!==d.current.disabled&&(s({type:yl.SetDroppableDisabled,id:a,key:o,disabled:r}),d.current.disabled=r)}),[a,o,r,s]),{active:l,rect:f,isOver:(null==c?void 0:c.id)===a,node:w,over:c,setNodeRef:C}}({id:l,data:C,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:E,...c}}),{active:H,activatorEvent:N,activeNodeRect:V,attributes:Z,setNodeRef:D,listeners:S,isDragging:L,over:O,setActivatorNodeRef:R,transform:$}=Ys({id:l,data:C,attributes:{...wc,...r},disabled:y.draggable}),T=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.useMemo((()=>e=>{n.forEach((t=>t(e)))}),n)}(M,D),z=Boolean(H),B=z&&!g&&dc(f)&&dc(b),G=!v&&L,P=G&&B?$:null,W=B?null!=P?P:(null!=s?s:x)({rects:h,activeNodeRect:V,activeIndex:f,overIndex:b,index:w}):null,j=dc(f)&&dc(b)?o({id:l,items:d,activeIndex:f,overIndex:b}):w,F=null==H?void 0:H.id,X=e.useRef({activeId:F,items:d,newIndex:j,containerId:p}),Y=d!==X.current.items,J=n({active:H,containerId:p,isDragging:L,isSorting:z,id:l,index:w,items:d,newIndex:X.current.newIndex,previousItems:X.current.items,previousContainerId:X.current.containerId,transition:u,wasDragging:null!=X.current.activeId}),U=function(t){let{disabled:n,index:r,node:a,rect:i}=t;const[o,l]=e.useState(null),s=e.useRef(r);return _o((()=>{if(!n&&r!==s.current&&a.current){const e=i.current;if(e){const t=Dl(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}r!==s.current&&(s.current=r)}),[n,r,a,i]),e.useEffect((()=>{o&&l(null)}),[o]),o}({disabled:!J,index:w,node:k,rect:I});return e.useEffect((()=>{z&&X.current.newIndex!==j&&(X.current.newIndex=j),p!==X.current.containerId&&(X.current.containerId=p),d!==X.current.items&&(X.current.items=d)}),[z,j,p,d]),e.useEffect((()=>{if(F===X.current.activeId)return;if(null!=F&&null==X.current.activeId)return void(X.current.activeId=F);const e=setTimeout((()=>{X.current.activeId=F}),50);return()=>clearTimeout(e)}),[F]),{active:H,activeIndex:f,attributes:Z,data:C,rect:I,index:w,newIndex:j,items:d,isOver:A,isSorting:z,isDragging:L,listeners:S,node:k,overIndex:b,over:O,setNodeRef:T,setActivatorNodeRef:R,setDroppableNodeRef:M,setDraggableNodeRef:D,transform:null!=U?U:W,transition:function(){if(U||Y&&X.current.newIndex===w)return yc;if(G&&!sl(N)||!u)return;if(z||J)return ul.Transition.toString({...u,property:xc});return}()}}Kl.Down,Kl.Right,Kl.Up,Kl.Left;const Ec=e=>{let{transform:t}=e;return{...t,x:0}},Ic=e.createContext({isSorting:!1,setIsSorting:e=>{}}),kc=e.createContext({isGhost:!1}),Ac=o.default.div`
|
|
855
855
|
overflow: hidden;
|
|
856
856
|
`,Mc=({order:t,children:r,onOrderChange:a})=>{const[o,l]=e.useState(null),{setIsSorting:s}=e.useContext(Ic),c=e.useMemo((()=>e.Children.toArray(r).sort(((n,r)=>e.isValidElement(n)&&e.isValidElement(r)?t.indexOf(n.props.id)-t.indexOf(r.props.id):0))),[r,t]),u=e.useMemo((()=>e.Children.toArray(r).find((t=>!!e.isValidElement(t)&&t.props.id===o))),[r,o]),d=()=>{l(null),s(!1)};return i.default.createElement(Ws,{modifiers:[Ec],onDragStart:e=>{const{active:t}=e;l(t.id),s(!0)},onDragEnd:e=>{const{active:n,over:r}=e;if(l(null),s(!1),null==r)return;if(n.id===r.id)return;const i=t.indexOf(n.id),o=t.indexOf(r.id),c=cc(t,i,o);a(c)},onDragCancel:d,onDragAbort:d},i.default.createElement(Ac,null,i.default.createElement(gc,{items:t},e.Children.map(c,(t=>{var n;if(!e.isValidElement(t)||"string"==typeof t.type||!("displayName"in t.type)||"ContextMenu2SortableItem"!==(null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.displayName))throw new Error("ContextMenu2SortableContainer には ContextMenu2SortableItem しか入れられません");return t})))),n.createPortal(i.default.createElement(sc,{zIndex:h.modal+1},i.default.createElement(kc.Provider,{value:{isGhost:!0}},u)),document.body))},Hc=o.default.div`
|
|
857
857
|
display: flex;
|
|
@@ -868,7 +868,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
868
868
|
`,Vc=o.default.div`
|
|
869
869
|
flex-grow: 1;
|
|
870
870
|
pointer-events: ${({isGhost:e})=>e?"none":"auto"};
|
|
871
|
-
`,Zc=({id:t,disabled:n,children:r})=>{const{setNodeRef:a,setActivatorNodeRef:o,attributes:l,listeners:s,transform:u,transition:d,isDragging:p}=Cc({id:t}),{isGhost:f}=e.useContext(kc);return i.default.createElement(Hc,{ref:a,isGhost:f,style:{transform:ul.Transform.toString(u),transition:d,opacity:p?.25:1}},i.default.createElement(Nc,Object.assign({ref:o,isGhost:f,isDragging:p,disabled:n},l,s),i.default.createElement(I,{name:"braille",size:"lg",color:c.basic[900]})),i.default.createElement(Vc,{isGhost:f},r))};Zc.displayName="ContextMenu2SortableItem";const Dc=e.forwardRef(((t,n)=>{var{className:r,onEnter:a,onKeyDown:o,onCompositionStart:l,onCompositionEnd:c}=t,u=s(t,["className","onEnter","onKeyDown","onCompositionStart","onCompositionEnd"]);const{activeIndex:d,maxActiveIndex:p,setActiveIndex:f}=e.useContext(Mo),[m,g]=e.useState(!1),[h,b]=e.useState(!1),v=e.useCallback((e=>{if((e=>{e.stopPropagation()})(e),null==o||o(e),!h)if("Enter"!==e.key)if("ArrowDown"!==e.key)if("ArrowUp"!==e.key);else{e.preventDefault();const t=null===d?1:d-1;f(t<0?p:t)}else{e.preventDefault();const t=null===d?1:d+1;f(t>p?null:t)}else null==a||a()}),[h,d,p,a,o,f]),x=e.useCallback((e=>{null==l||l(e),b(!0)}),[l]),y=e.useCallback((e=>{null==c||c(e),b(!1)}),[c]);return e.useEffect((()=>{g(/iPad|iPhone/.test(navigator.userAgent))}),[]),i.default.createElement("div",{className:r},i.default.createElement("input",Object.assign({},u,{ref:n,"data-ios":m,onKeyDown:v,onCompositionStart:x,onCompositionEnd:y})))}));Dc.displayName="ContextMenu2TextInputItem";const
|
|
871
|
+
`,Zc=({id:t,disabled:n,children:r})=>{const{setNodeRef:a,setActivatorNodeRef:o,attributes:l,listeners:s,transform:u,transition:d,isDragging:p}=Cc({id:t}),{isGhost:f}=e.useContext(kc);return i.default.createElement(Hc,{ref:a,isGhost:f,style:{transform:ul.Transform.toString(u),transition:d,opacity:p?.25:1}},i.default.createElement(Nc,Object.assign({ref:o,isGhost:f,isDragging:p,disabled:n},l,s),i.default.createElement(I,{name:"braille",size:"lg",color:c.basic[900]})),i.default.createElement(Vc,{isGhost:f},r))};Zc.displayName="ContextMenu2SortableItem";const Dc=e.forwardRef(((t,n)=>{var{className:r,onEnter:a,onKeyDown:o,onCompositionStart:l,onCompositionEnd:c}=t,u=s(t,["className","onEnter","onKeyDown","onCompositionStart","onCompositionEnd"]);const{activeIndex:d,maxActiveIndex:p,setActiveIndex:f}=e.useContext(Mo),[m,g]=e.useState(!1),[h,b]=e.useState(!1),v=e.useCallback((e=>{if((e=>{e.stopPropagation()})(e),null==o||o(e),!h)if("Enter"!==e.key)if("ArrowDown"!==e.key)if("ArrowUp"!==e.key);else{e.preventDefault();const t=null===d?1:d-1;f(t<0?p:t)}else{e.preventDefault();const t=null===d?1:d+1;f(t>p?null:t)}else null==a||a()}),[h,d,p,a,o,f]),x=e.useCallback((e=>{null==l||l(e),b(!0)}),[l]),y=e.useCallback((e=>{null==c||c(e),b(!1)}),[c]);return e.useEffect((()=>{g(/iPad|iPhone/.test(navigator.userAgent))}),[]),i.default.createElement("div",{className:r},i.default.createElement("input",Object.assign({},u,{ref:n,"data-ios":m,onKeyDown:v,onCompositionStart:x,onCompositionEnd:y})))}));Dc.displayName="ContextMenu2TextInputItem";const Sc=o.default(Dc)`
|
|
872
872
|
input {
|
|
873
873
|
display: block;
|
|
874
874
|
box-sizing: border-box;
|
|
@@ -886,12 +886,12 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
886
886
|
font-size: 16px;
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
|
-
`,
|
|
889
|
+
`,Lc=o.default.p`
|
|
890
890
|
margin: 16px 0;
|
|
891
891
|
font-size: 13px;
|
|
892
892
|
color: ${c.basic[700]};
|
|
893
893
|
text-align: center;
|
|
894
|
-
`,Oc=({message:e})=>i.default.createElement(
|
|
894
|
+
`,Oc=({message:e})=>i.default.createElement(Lc,null,e);Oc.displayName="ContextMenu2NoResultsMessage";const Rc=e=>"object"==typeof e&&"x"in e&&"y"in e,$c=o.default.div`
|
|
895
895
|
z-index: ${h.dropdown};
|
|
896
896
|
padding: 8px;
|
|
897
897
|
border: 1px solid ${c.basic[200]};
|
|
@@ -906,7 +906,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
906
906
|
&:focus {
|
|
907
907
|
outline: none;
|
|
908
908
|
}
|
|
909
|
-
|
|
909
|
+
`,Tc=o.default.div`
|
|
910
910
|
position: sticky;
|
|
911
911
|
top: 0;
|
|
912
912
|
background: #ffffff;
|
|
@@ -926,7 +926,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
926
926
|
flex: 1;
|
|
927
927
|
overflow: auto;
|
|
928
928
|
padding: ${({$hasStickyHeader:e,$hasStickyFooter:t})=>`${e?"8px":"0"} 0 ${t?"8px":"0"}`};
|
|
929
|
-
`,Gc=e.forwardRef((({open:t,trigger:n,width:r,minWidth:a,children:o,onOpenChange:l,stickyHeader:s,stickyFooter:c},u)=>{const{isRoot:d,close:p}=e.useContext(Mo),[f,m]=e.useState(!1),[g,h]=e.useState(!1),b=e.useMemo((()=>!!g||(void 0!==t?t:f)),[t,f,g]),v=e.useCallback((()=>{p(),m(!1),h(!1),null==l||l(!1)}),[p,m,h,l]),x=function(e){const t=fi(),n=yi(),r=xi();return si((()=>{const e={id:t,parentId:r};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,r]),t}(),{refs:y,floatingStyles:w,context:C}=oo({nodeId:x,open:b,onOpenChange:e=>{m(e),null==l||l(e)},middleware:[la({mainAxis:5,crossAxis:0}),ca({apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{maxWidth:`${Math.max(0,e)}px`,maxHeight:`${Math.max(0,t)}px`})}}),ia((()=>{if(d)return{allowedPlacements:["bottom-start","bottom-end","top-start","top-end"]};return{allowedPlacements:window.matchMedia("(max-width: 480px)").matches?["bottom-start"]:["right-start","left-start"],autoAlignment:!1}}))],whileElementsMounted:Ea}),E=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:a,elements:{domReference:o}}=e,{enabled:l=!0,event:s="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0}=t,p=i.useRef(),f=i.useRef(!1);return i.useMemo((()=>l?{reference:{onPointerDown(e){p.current=e.pointerType},onMouseDown(e){0===e.button&&(Mr(p.current,!0)&&u||"click"!==s&&(!n||!c||a.current.openEvent&&"mousedown"!==a.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===s&&p.current?p.current=void 0:Mr(p.current,!0)&&u||(!n||!c||a.current.openEvent&&"click"!==a.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||Ki(e)||(" "!==e.key||eo(o)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Ki(e)||eo(o)||" "===e.key&&f.current&&(f.current=!1,r(!n||!c,e.nativeEvent,"click"))}}}:{}),[l,a,s,u,d,o,c,n,r])}(C),I=Mi(C,{enabled:!d,mouseOnly:!0,delay:{open:100,close:g?999999:100},restMs:100,handleClose:vo()}),k=ao(C),[A,M]=e.useState(null),H=ho(C),N=e.useRef([]),V=go(C,{listRef:N,activeIndex:A,onNavigate:M,loop:!0,nested:!d}),Z=Ao(N,[]),{getReferenceProps:D,getFloatingProps:
|
|
929
|
+
`,Gc=e.forwardRef((({open:t,trigger:n,width:r,minWidth:a,children:o,onOpenChange:l,stickyHeader:s,stickyFooter:c},u)=>{const{isRoot:d,close:p}=e.useContext(Mo),[f,m]=e.useState(!1),[g,h]=e.useState(!1),b=e.useMemo((()=>!!g||(void 0!==t?t:f)),[t,f,g]),v=e.useCallback((()=>{p(),m(!1),h(!1),null==l||l(!1)}),[p,m,h,l]),x=function(e){const t=fi(),n=yi(),r=xi();return si((()=>{const e={id:t,parentId:r};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,r]),t}(),{refs:y,floatingStyles:w,context:C}=oo({nodeId:x,open:b,onOpenChange:e=>{m(e),null==l||l(e)},middleware:[la({mainAxis:5,crossAxis:0}),ca({apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{maxWidth:`${Math.max(0,e)}px`,maxHeight:`${Math.max(0,t)}px`})}}),ia((()=>{if(d)return{allowedPlacements:["bottom-start","bottom-end","top-start","top-end"]};return{allowedPlacements:window.matchMedia("(max-width: 480px)").matches?["bottom-start"]:["right-start","left-start"],autoAlignment:!1}}))],whileElementsMounted:Ea}),E=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:a,elements:{domReference:o}}=e,{enabled:l=!0,event:s="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0}=t,p=i.useRef(),f=i.useRef(!1);return i.useMemo((()=>l?{reference:{onPointerDown(e){p.current=e.pointerType},onMouseDown(e){0===e.button&&(Mr(p.current,!0)&&u||"click"!==s&&(!n||!c||a.current.openEvent&&"mousedown"!==a.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===s&&p.current?p.current=void 0:Mr(p.current,!0)&&u||(!n||!c||a.current.openEvent&&"click"!==a.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||Ki(e)||(" "!==e.key||eo(o)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Ki(e)||eo(o)||" "===e.key&&f.current&&(f.current=!1,r(!n||!c,e.nativeEvent,"click"))}}}:{}),[l,a,s,u,d,o,c,n,r])}(C),I=Mi(C,{enabled:!d,mouseOnly:!0,delay:{open:100,close:g?999999:100},restMs:100,handleClose:vo()}),k=ao(C),[A,M]=e.useState(null),H=ho(C),N=e.useRef([]),V=go(C,{listRef:N,activeIndex:A,onNavigate:M,loop:!0,nested:!d}),Z=Ao(N,[]),{getReferenceProps:D,getFloatingProps:S,getItemProps:L}=so([E,I,k,H,V]),O=[Gc.displayName,Vo.displayName,Lo.displayName,To.displayName,Po.displayName,Sc.displayName,Oc.displayName];e.useEffect((()=>{Rc(n)&&y.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:n.x,y:n.y,top:n.y,left:n.x,right:n.x,bottom:n.y})})}),[n,u,y]);const R=function(e){return i.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}([u,y.setReference]);return i.default.createElement(i.default.Fragment,null,Rc(n)?null:e.cloneElement(n,Object.assign(Object.assign({ref:R},D()),n.props)),i.default.createElement(wi,{id:x},b&&i.default.createElement(Ui,null,i.default.createElement(qi,{context:C,modal:!1,initialFocus:-1,returnFocus:!1},i.default.createElement($c,Object.assign({ref:y.setFloating,style:Object.assign(Object.assign({},w),{width:null!=r?r:"auto",minWidth:null!=a?a:"auto"})},S()),i.default.createElement(Mo.Provider,{value:{isRoot:!1,activeIndex:A,maxActiveIndex:Z,setActiveIndex:M,close:v}},i.default.createElement(Ic.Provider,{value:{isSorting:g,setIsSorting:h}},s&&i.default.createElement(Tc,null,s),i.default.createElement(Bc,{$hasStickyHeader:!!s,$hasStickyFooter:!!c},((e,t=!0)=>i.default.Children.toArray(e).filter((e=>{if(!i.default.isValidElement(e))return!1;const n=e.type;if(n===i.default.Fragment)return!0;const r="function"==typeof n||"object"==typeof n?n.displayName:void 0;return"ContextMenu2TriggerItem"===r||"DataTable2MenuCountControl"===r||"DataTable2MenuSpaceControl"===r||"DataTable2MenuOrderControl"===r||("ContextMenu2Container"===r||(t||("function"==typeof n||"object"==typeof n)&&O.includes(n.displayName)))})).map((e=>i.default.isValidElement(e)?i.default.cloneElement(e,Object.assign(Object.assign(Object.assign({tabIndex:A===e.key?0:-1,ref:t=>{N.current[e.key]=t}},L()),e.props),{key:e.key})):e)))(o)),c&&i.default.createElement(zc,null,c))))))))}));Gc.displayName="ContextMenu2";const Pc=({children:t})=>{if(!e.isValidElement(t)||"string"==typeof t.type||"function"!=typeof t.type&&"object"!=typeof t.type||!("displayName"in t.type)||t.type.displayName!==Gc.displayName)throw new Error("ContextMenu2Container には 1 つの ContextMenu2 しか入れられません");return i.default.createElement(Mo.Provider,{value:{isRoot:!0,close:()=>{},activeIndex:null,maxActiveIndex:-1,setActiveIndex:()=>{}}},i.default.createElement(Ci,null,t))},Wc=o.default((({className:e,children:t})=>i.default.createElement("p",{className:e},t)))`
|
|
930
930
|
border-radius: 4px;
|
|
931
931
|
padding: 4px 8px;
|
|
932
932
|
margin-bottom: 8px;
|
|
@@ -968,7 +968,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
968
968
|
padding: 16px 0 8px;
|
|
969
969
|
margin: 0;
|
|
970
970
|
list-style: none;
|
|
971
|
-
`;function Uc(e){return Uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uc(e)}function Qc(e){var t=function(e,t){if("object"!=Uc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Uc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uc(t)?t:t+""}function _c(e,t,n){return(t=Qc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qc(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eu(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,Qc(r.key),r)}}function tu(e){return tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tu(e)}function nu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nu=function(){return!!e})()}function ru(e){var t=nu();return function(){var n,r=tu(e);if(t){var a=tu(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Uc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return De(e)}(this,n)}}function au(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iu(e,t){if(e){if("string"==typeof e)return au(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?au(e,t):void 0}}function ou(e){return function(e){if(Array.isArray(e))return au(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var lu=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),su="-ms-",cu="-moz-",uu="-webkit-",du="comm",pu="rule",fu="decl",mu="@keyframes",gu=Math.abs,hu=String.fromCharCode,bu=Object.assign;function vu(e){return e.trim()}function xu(e,t,n){return e.replace(t,n)}function yu(e,t){return e.indexOf(t)}function wu(e,t){return 0|e.charCodeAt(t)}function Cu(e,t,n){return e.slice(t,n)}function Eu(e){return e.length}function Iu(e){return e.length}function ku(e,t){return t.push(e),e}var Au=1,Mu=1,Hu=0,Nu=0,Vu=0,Zu="";function Du(e,t,n,r,a,i,o){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:Au,column:Mu,length:o,return:""}}function Lu(e,t){return bu(Du("",null,null,"",null,null,0),e,{length:-e.length},t)}function Su(){return Vu=Nu>0?wu(Zu,--Nu):0,Mu--,10===Vu&&(Mu=1,Au--),Vu}function Ou(){return Vu=Nu<Hu?wu(Zu,Nu++):0,Mu++,10===Vu&&(Mu=1,Au++),Vu}function Ru(){return wu(Zu,Nu)}function Tu(){return Nu}function $u(e,t){return Cu(Zu,e,t)}function zu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bu(e){return Au=Mu=1,Hu=Eu(Zu=e),Nu=0,[]}function Gu(e){return Zu="",e}function Pu(e){return vu($u(Nu-1,Fu(91===e?e+2:40===e?e+1:e)))}function Wu(e){for(;(Vu=Ru())&&Vu<33;)Ou();return zu(e)>2||zu(Vu)>3?"":" "}function ju(e,t){for(;--t&&Ou()&&!(Vu<48||Vu>102||Vu>57&&Vu<65||Vu>70&&Vu<97););return $u(e,Tu()+(t<6&&32==Ru()&&32==Ou()))}function Fu(e){for(;Ou();)switch(Vu){case e:return Nu;case 34:case 39:34!==e&&39!==e&&Fu(Vu);break;case 40:41===e&&Fu(e);break;case 92:Ou()}return Nu}function Xu(e,t){for(;Ou()&&e+Vu!==57&&(e+Vu!==84||47!==Ru()););return"/*"+$u(t,Nu-1)+"*"+hu(47===e?e:Ou())}function Yu(e){for(;!zu(Ru());)Ou();return $u(e,Nu)}function Ju(e){return Gu(Uu("",null,null,null,[""],e=Bu(e),0,[0],e))}function Uu(e,t,n,r,a,i,o,l,s){for(var c=0,u=0,d=o,p=0,f=0,m=0,g=1,h=1,b=1,v=0,x="",y=a,w=i,C=r,E=x;h;)switch(m=v,v=Ou()){case 40:if(108!=m&&58==wu(E,d-1)){-1!=yu(E+=xu(Pu(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=Pu(v);break;case 9:case 10:case 13:case 32:E+=Wu(m);break;case 92:E+=ju(Tu()-1,7);continue;case 47:switch(Ru()){case 42:case 47:ku(_u(Xu(Ou(),Tu()),t,n),s);break;default:E+="/"}break;case 123*g:l[c++]=Eu(E)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:h=0;case 59+u:-1==b&&(E=xu(E,/\f/g,"")),f>0&&Eu(E)-d&&ku(f>32?qu(E+";",r,n,d-1):qu(xu(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(ku(C=Qu(E,t,n,c,u,a,l,x,y=[],w=[],d),i),123===v)if(0===u)Uu(E,t,C,C,y,i,d,l,w);else switch(99===p&&110===wu(E,3)?100:p){case 100:case 108:case 109:case 115:Uu(e,C,C,r&&ku(Qu(e,C,C,0,0,a,l,x,a,y=[],d),w),a,w,d,l,r?y:w);break;default:Uu(E,C,C,C,[""],w,0,l,w)}}c=u=f=0,g=b=1,x=E="",d=o;break;case 58:d=1+Eu(E),f=m;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Su())continue;switch(E+=hu(v),v*g){case 38:b=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Eu(E)-1)*b,b=1;break;case 64:45===Ru()&&(E+=Pu(Ou())),p=Ru(),u=d=Eu(x=E+=Yu(Tu())),v++;break;case 45:45===m&&2==Eu(E)&&(g=0)}}return i}function Qu(e,t,n,r,a,i,o,l,s,c,u){for(var d=a-1,p=0===a?i:[""],f=Iu(p),m=0,g=0,h=0;m<r;++m)for(var b=0,v=Cu(e,d+1,d=gu(g=o[m])),x=e;b<f;++b)(x=vu(g>0?p[b]+" "+v:xu(v,/&\f/g,p[b])))&&(s[h++]=x);return Du(e,t,n,0===a?pu:l,s,c,u)}function _u(e,t,n){return Du(e,t,n,du,hu(Vu),Cu(e,2,-2),0)}function qu(e,t,n,r){return Du(e,t,n,fu,Cu(e,0,r),Cu(e,r+1,-1),r)}function Ku(e,t){for(var n="",r=Iu(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function ed(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case fu:return e.return=e.return||e.value;case du:return"";case mu:return e.return=e.value+"{"+Ku(e.children,r)+"}";case pu:e.value=e.props.join(",")}return Eu(n=Ku(e.children,r))?e.return=e.value+"{"+n+"}":""}function td(e){var t=Iu(e);return function(n,r,a,i){for(var o="",l=0;l<t;l++)o+=e[l](n,r,a,i)||"";return o}}function nd(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var rd=function(e,t,n){for(var r=0,a=0;r=a,a=Ru(),38===r&&12===a&&(t[n]=1),!zu(a);)Ou();return $u(e,Nu)},ad=function(e,t){return Gu(function(e,t){var n=-1,r=44;do{switch(zu(r)){case 0:38===r&&12===Ru()&&(t[n]=1),e[n]+=rd(Nu-1,t,n);break;case 2:e[n]+=Pu(r);break;case 4:if(44===r){e[++n]=58===Ru()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=hu(r)}}while(r=Ou());return e}(Bu(e),t))},id=new WeakMap,od=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||id.get(n))&&!r){id.set(e,!0);for(var a=[],i=ad(t,a),o=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<o.length;c++,s++)e.props[s]=a[l]?i[l].replace(/&\f/g,o[c]):o[c]+" "+i[l]}}},ld=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},sd=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},cd=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},ud=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},dd=function(e,t,n){cd(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),ud(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!cd(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ud(e)))};function pd(e,t){switch(function(e,t){return 45^wu(e,0)?(((t<<2^wu(e,0))<<2^wu(e,1))<<2^wu(e,2))<<2^wu(e,3):0}(e,t)){case 5103:return uu+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return uu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return uu+e+cu+e+su+e+e;case 6828:case 4268:return uu+e+su+e+e;case 6165:return uu+e+su+"flex-"+e+e;case 5187:return uu+e+xu(e,/(\w+).+(:[^]+)/,uu+"box-$1$2"+su+"flex-$1$2")+e;case 5443:return uu+e+su+"flex-item-"+xu(e,/flex-|-self/,"")+e;case 4675:return uu+e+su+"flex-line-pack"+xu(e,/align-content|flex-|-self/,"")+e;case 5548:return uu+e+su+xu(e,"shrink","negative")+e;case 5292:return uu+e+su+xu(e,"basis","preferred-size")+e;case 6060:return uu+"box-"+xu(e,"-grow","")+uu+e+su+xu(e,"grow","positive")+e;case 4554:return uu+xu(e,/([^-])(transform)/g,"$1"+uu+"$2")+e;case 6187:return xu(xu(xu(e,/(zoom-|grab)/,uu+"$1"),/(image-set)/,uu+"$1"),e,"")+e;case 5495:case 3959:return xu(e,/(image-set\([^]*)/,uu+"$1$`$1");case 4968:return xu(xu(e,/(.+:)(flex-)?(.*)/,uu+"box-pack:$3"+su+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+uu+e+e;case 4095:case 3583:case 4068:case 2532:return xu(e,/(.+)-inline(.+)/,uu+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Eu(e)-1-t>6)switch(wu(e,t+1)){case 109:if(45!==wu(e,t+4))break;case 102:return xu(e,/(.+:)(.+)-([^]+)/,"$1"+uu+"$2-$3$1"+cu+(108==wu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~yu(e,"stretch")?pd(xu(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==wu(e,t+1))break;case 6444:switch(wu(e,Eu(e)-3-(~yu(e,"!important")&&10))){case 107:return xu(e,":",":"+uu)+e;case 101:return xu(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+uu+(45===wu(e,14)?"inline-":"")+"box$3$1"+uu+"$2$3$1"+su+"$2box$3")+e}break;case 5936:switch(wu(e,t+11)){case 114:return uu+e+su+xu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return uu+e+su+xu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return uu+e+su+xu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return uu+e+su+e+e}return e}var fd,md,gd="undefined"!=typeof document,hd=gd?void 0:(fd=function(){return nd((function(){var e={};return function(t){return e[t]}}))},md=new WeakMap,function(e){if(md.has(e))return md.get(e);var t=fd(e);return md.set(e,t),t}),bd=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case fu:e.return=pd(e.value,e.length);break;case mu:return Ku([Lu(e,{value:xu(e.value,"@","@"+uu)})],r);case pu:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ku([Lu(e,{props:[xu(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ku([Lu(e,{props:[xu(t,/:(plac\w+)/,":"+uu+"input-$1")]}),Lu(e,{props:[xu(t,/:(plac\w+)/,":-moz-$1")]}),Lu(e,{props:[xu(t,/:(plac\w+)/,su+"input-$1")]})],r)}return""}))}}],vd=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(gd&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||bd;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a,i,o={},l=[];gd&&(a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)o[t[n]]=!0;l.push(e)})));var s,c=[od,ld];if("production"!==process.env.NODE_ENV&&c.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var i=t.parent?t.parent.children:r,o=i.length-1;o>=0;o--){var l=i[o];if(l.line<t.line)break;if(l.column<t.column){if(sd(l))return;break}}a.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return b.compat}}),dd),gd){var u,d=[ed,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==du&&u.insert(e.value+"{}"))}:(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=td(c.concat(r,d));i=function(e,t,n,r){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),Ku(Ju(e?e+"{"+t.styles+"}":t.styles),p),r&&(b.inserted[t.name]=!0)}}else{var f=[ed],m=td(c.concat(r,f)),g=hd(r)(t),h=function(e,t){var n=t.name;return void 0===g[n]&&(g[n]=Ku(Ju(e?e+"{"+t.styles+"}":t.styles),m)),g[n]};i=function(e,t,n,r){var a=t.name,i=h(e,t);return void 0===b.compat?(r&&(b.inserted[a]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?i+t.map:i):r?void(b.inserted[a]=i):i}}var b={key:t,sheet:new lu({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:i};return b.sheet.hydrate(l),b},xd=ue,yd={};yd[xd.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yd[xd.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var wd="undefined"!=typeof document;function Cd(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ed=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===wd&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Id=function(e,t,n){Ed(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a="",i=t;do{var o=e.insert(t===i?"."+r:"",i,e.sheet,!0);wd||void 0===o||(a+=o),i=i.next}while(void 0!==i);if(!wd&&0!==a.length)return a}};var kd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ad="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Md="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Hd=/[A-Z]|^ms/g,Nd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vd=function(e){return 45===e.charCodeAt(1)},Zd=function(e){return null!=e&&"boolean"!=typeof e},Dd=nd((function(e){return Vd(e)?e:e.replace(Hd,"-$&").toLowerCase()})),Ld=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Nd,(function(e,t,n){return Wd={name:t,styles:n,next:Wd},t}))}return 1===kd[e]||Vd(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Sd=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Od=["normal","none","initial","inherit","unset"],Rd=Ld,Td=/^-ms-/,$d=/-(.)/g,zd={};Ld=function(e,t){if("content"===e&&("string"!=typeof t||-1===Od.indexOf(t)&&!Sd.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Rd(e,t);return""===n||Vd(e)||-1===e.indexOf("-")||void 0!==zd[e]||(zd[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(Td,"ms-").replace($d,(function(e,t){return t.toUpperCase()}))+"?")),n}}var Bd="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Gd(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(Bd);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Wd={name:n.name,styles:n.styles,next:Wd},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Wd={name:r.name,styles:r.styles,next:Wd},r=r.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Gd(e,t,n[a])+";";else for(var i in n){var o=n[i];if("object"!=typeof o)null!=t&&void 0!==t[o]?r+=i+"{"+t[o]+"}":Zd(o)&&(r+=Dd(i)+":"+Ld(i,o)+";");else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error(Bd);if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=Gd(e,t,o);switch(i){case"animation":case"animationName":r+=Dd(i)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(Md),r+=i+"{"+l+"}"}}else for(var s=0;s<o.length;s++)Zd(o[s])&&(r+=Dd(i)+":"+Ld(i,o[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var i=Wd,o=n(e);return Wd=i,Gd(e,t,o)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],s=n.replace(Nd,(function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var Pd,Wd,jd=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Pd=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Fd=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";Wd=void 0;var i,o=e[0];null==o||void 0===o.raw?(r=!1,a+=Gd(n,t,o)):("production"!==process.env.NODE_ENV&&void 0===o[0]&&console.error(Ad),a+=o[0]);for(var l=1;l<e.length;l++)a+=Gd(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===o[l]&&console.error(Ad),a+=o[l]);"production"!==process.env.NODE_ENV&&(a=a.replace(Pd,(function(e){return i=e,""}))),jd.lastIndex=0;for(var s,c="";null!==(s=jd.exec(a));)c+="-"+s[1];var u=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:a,map:i,next:Wd,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:a,next:Wd}},Xd="undefined"!=typeof document,Yd=function(e){return e()},Jd=!!i.useInsertionEffect&&i.useInsertionEffect,Ud=Xd&&Jd||Yd,Qd=Jd||i.useLayoutEffect,_d="undefined"!=typeof document,qd={}.hasOwnProperty,Kd=i.createContext("undefined"!=typeof HTMLElement?vd({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Kd.displayName="EmotionCacheContext"),Kd.Provider;var ep=function(t){return e.forwardRef((function(n,r){var a=e.useContext(Kd);return t(n,a,r)}))};_d||(ep=function(t){return function(n){var r=e.useContext(Kd);return null===r?(r=vd({key:"css"}),i.createElement(Kd.Provider,{value:r},t(n,r))):t(n,r)}});var tp=i.createContext({});"production"!==process.env.NODE_ENV&&(tp.displayName="EmotionThemeContext");var np=function(e){var t=e.split(".");return t[t.length-1]},rp=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?np(t[1]):void 0},ap=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),ip=function(e){return e.replace(/\$/g,"-")},op="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",sp=function(e,t){if("production"!==process.env.NODE_ENV&&"string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)qd.call(t,r)&&(n[r]=t[r]);if(n[op]=e,"production"!==process.env.NODE_ENV&&t.css&&("object"!=typeof t.css||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var a=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=rp(t[n]);if(r){if(ap.has(r))break;if(/^[A-Z]/.test(r))return ip(r)}}}((new Error).stack);a&&(n[lp]=a)}return n},cp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ed(t,n,r);var a=Ud((function(){return Id(t,n,r)}));if(!_d&&void 0!==a){for(var o,l=n.name,s=n.next;void 0!==s;)l+=" "+s.name,s=s.next;return i.createElement("style",((o={})["data-emotion"]=t.key+" "+l,o.dangerouslySetInnerHTML={__html:a},o.nonce=t.sheet.nonce,o))}return null},up=ep((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var a=e[op],o=[r],l="";"string"==typeof e.className?l=Cd(t.registered,o,e.className):null!=e.className&&(l=e.className+" ");var s=Fd(o,void 0,i.useContext(tp));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var c=e[lp];c&&(s=Fd([s,"label:"+c+";"]))}l+=t.key+"-"+s.name;var u={};for(var d in e)!qd.call(e,d)||"css"===d||d===op||"production"!==process.env.NODE_ENV&&d===lp||(u[d]=e[d]);return u.ref=n,u.className=l,i.createElement(i.Fragment,null,i.createElement(cp,{cache:t,serialized:s,isStringTag:"string"==typeof a}),i.createElement(a,u))}));"production"!==process.env.NODE_ENV&&(up.displayName="EmotionCssPropInternal");var dp=up,pp=function(e,t){var n=arguments;if(null==t||!qd.call(t,"css"))return i.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=dp,a[1]=sp(e,t);for(var o=2;o<r;o++)a[o]=n[o];return i.createElement.apply(null,a)},fp=!1,mp=ep((function(e,t){"production"===process.env.NODE_ENV||fp||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),fp=!0);var n=e.styles,r=Fd([n],void 0,i.useContext(tp));if(!_d){for(var a,o=r.name,l=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,l+=s.styles,s=s.next;var c=!0===t.compat,u=t.insert("",{name:o,styles:l},t.sheet,c);return c?null:i.createElement("style",((a={})["data-emotion"]=t.key+"-global "+o,a.dangerouslySetInnerHTML={__html:u},a.nonce=t.sheet.nonce,a))}var d=i.useRef();return Qd((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),d.current=[n,a],function(){n.flush()}}),[t]),Qd((function(){var e=d.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Id(t,r.next,!0),n.tags.length){var a=n.tags[n.tags.length-1].nextElementSibling;n.before=a,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function gp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fd(t)}"production"!==process.env.NODE_ENV&&(mp.displayName="EmotionGlobal");var hp=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var i=t[r];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))o=e(i);else for(var l in"production"!==process.env.NODE_ENV&&void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),o="",i)i[l]&&l&&(o&&(o+=" "),o+=l);break;default:o=i}o&&(a&&(a+=" "),a+=o)}}return a};var bp=function(e){var t,n=e.cache,r=e.serializedArr,a=Ud((function(){for(var e="",t=0;t<r.length;t++){var a=Id(n,r[t],!1);_d||void 0===a||(e+=a)}if(!_d)return e}));return _d||0===a.length?null:i.createElement("style",((t={})["data-emotion"]=n.key+" "+r.map((function(e){return e.name})).join(" "),t.dangerouslySetInnerHTML={__html:a},t.nonce=n.sheet.nonce,t))},vp=ep((function(e,t){var n=!1,r=[],a=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];var o=Fd(a,t.registered);return r.push(o),Ed(t,o,!1),t.key+"-"+o.name},o={css:a,cx:function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],a=Cd(e,r,n);return r.length<2?n:a+t(r)}(t.registered,a,hp(r))},theme:i.useContext(tp)},l=e.children(o);return n=!0,i.createElement(i.Fragment,null,i.createElement(bp,{cache:t,serializedArr:r}),l)}));if("production"!==process.env.NODE_ENV&&(vp.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var xp="undefined"!=typeof document,yp="undefined"!=typeof jest||"undefined"!=typeof vi;if(xp&&!yp){var wp="undefined"!=typeof globalThis?globalThis:xp?window:global,Cp="__EMOTION_REACT_"+"11.11.1".split(".")[0]+"__";wp[Cp]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),wp[Cp]=!0}}function Ep(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||iu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ip(e,t){if(null==e)return{};var n,r,a=P(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var kp="undefined"!=typeof document?e.useLayoutEffect:e.useEffect,Ap=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Mp=function(){};function Hp(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Np(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(Hp(e,o)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Vp=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Uc(e)&&null!==e?[e]:[];var t},Zp=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Kc({},Ip(e,Ap))},Dp=function(e,t,n){var r=e.cx,a=e.getStyles,i=e.getClassNames,o=e.className;return{css:a(t,e),className:r(null!=n?n:{},i(t,e),o)}};function Lp(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Sp(e){return Lp(e)?window.pageYOffset:e.scrollTop}function Op(e,t){Lp(e)?window.scrollTo(0,t):e.scrollTop=t}function Rp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mp,a=Sp(e),i=t-a,o=0;!function t(){var l,s=i*((l=(l=o+=10)/n-1)*l*l+1)+a;Op(e,s),o<n?window.requestAnimationFrame(t):r(e)}()}function Tp(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=t.offsetHeight/3;r.bottom+a>n.bottom?Op(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):r.top-a<n.top&&Op(e,Math.max(t.offsetTop-a,0))}function $p(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var zp=!1,Bp={get passive(){return zp=!0}},Gp="undefined"!=typeof window?window:{};Gp.addEventListener&&Gp.removeEventListener&&(Gp.addEventListener("p",Mp,Bp),Gp.removeEventListener("p",Mp,!1));var Pp=zp;function Wp(e){return null!=e}function jp(e,t,n){return e?t:n}var Fp=["children","innerProps"],Xp=["children","innerProps"];function Yp(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,i=e.shouldScroll,o=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,m=p.height,g=p.top,h=n.offsetParent.getBoundingClientRect().top,b=o?window.innerHeight:Lp(u=s)?window.innerHeight:u.clientHeight,v=Sp(s),x=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=h-y,C=b-g,E=w+v,I=d-v-g,k=f-b+v+x,A=v+g-y,M=160;switch(a){case"auto":case"bottom":if(C>=m)return{placement:"bottom",maxHeight:t};if(I>=m&&!o)return i&&Rp(s,k,M),{placement:"bottom",maxHeight:t};if(!o&&I>=r||o&&C>=r)return i&&Rp(s,k,M),{placement:"bottom",maxHeight:o?C-x:I-x};if("auto"===a||o){var H=t,N=o?w:E;return N>=r&&(H=Math.min(N-x-l,t)),{placement:"top",maxHeight:H}}if("bottom"===a)return i&&Op(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(E>=m&&!o)return i&&Rp(s,A,M),{placement:"top",maxHeight:t};if(!o&&E>=r||o&&w>=r){var V=t;return(!o&&E>=r||o&&w>=r)&&(V=o?w-y:E-y),i&&Rp(s,A,M),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}var Jp,Up=function(e){return"auto"===e?"bottom":e},Qp=e.createContext(null),_p=function(t){var n=t.children,r=t.minMenuHeight,a=t.maxMenuHeight,i=t.menuPlacement,o=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,c=(e.useContext(Qp)||{}).setPortalPlacement,u=e.useRef(null),d=Ep(e.useState(a),2),p=d[0],f=d[1],m=Ep(e.useState(null),2),g=m[0],h=m[1],b=s.spacing.controlHeight;return kp((function(){var e=u.current;if(e){var t="fixed"===o,n=Yp({maxHeight:a,menuEl:e,minHeight:r,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:b});f(n.maxHeight),h(n.placement),null==c||c(n.placement)}}),[a,i,o,l,r,c,b]),n({ref:u,placerProps:Kc(Kc({},t),{},{placement:g||Up(i),maxHeight:p})})},qp=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return pp("div",G({},Dp(e,"menu",{menu:!0}),{ref:n},r),t)},Kp=function(e,t){var n=e.theme,r=n.spacing.baseUnit,a=n.colors;return Kc({textAlign:"center"},t?{}:{color:a.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ef=Kp,tf=Kp,nf=["size"],rf=["innerProps","isRtl","size"];var af,of,lf="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnL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xlY3QuICovXG4gIGlzRm9jdXNlZDogYm9vbGVhbjtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgLyoqIFNldCBzaXplIG9mIHRoZSBjb250YWluZXIuICovXG4gIHNpemU6IG51bWJlcjtcbn1cbmV4cG9ydCBjb25zdCBMb2FkaW5nSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KHtcbiAgaW5uZXJQcm9wcyxcbiAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},sf=function(e){var t=e.size,n=Ip(e,nf);return pp("svg",G({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:lf},n))},cf=function(e){return pp(sf,G({size:20},e),pp("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},uf=function(e){return pp(sf,G({size:20},e),pp("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},df=function(e,t){var n=e.isFocused,r=e.theme,a=r.spacing.baseUnit,i=r.colors;return Kc({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a,":hover":{color:n?i.neutral80:i.neutral40}})},pf=df,ff=df,mf=function(){var e=gp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Jp||(af=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],of||(of=af.slice(0)),Jp=Object.freeze(Object.defineProperties(af,{raw:{value:Object.freeze(of)}})))),gf=function(e){var t=e.delay,n=e.offset;return pp("span",{css:gp({animation:"".concat(mf," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgIC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9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},hf=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.innerRef,i=e.innerProps,o=e.menuIsOpen;return pp("div",G({ref:a},Dp(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":o}),i,{"aria-disabled":n||void 0}),t)},bf=["data"],vf=function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.getClassNames,i=e.Heading,o=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return pp("div",G({},Dp(e,"group",{group:!0}),l),pp(i,G({},o,{selectProps:u,theme:c,getStyles:r,getClassNames:a,cx:n}),s),pp("div",null,t))},xf=["innerRef","isDisabled","isHidden","inputClassName"],yf={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},wf={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Kc({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},yf)},Cf=function(e){return Kc({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},yf)},Ef=function(e){var t=e.cx,n=e.value,r=Zp(e),a=r.innerRef,i=r.isDisabled,o=r.isHidden,l=r.inputClassName,s=Ip(r,xf);return pp("div",G({},Dp(e,"input",{"input-container":!0}),{"data-value":n||""}),pp("input",G({className:t({input:!0},l),ref:a,style:Cf(o),disabled:i},s)))},If=function(e){var t=e.children,n=e.innerProps;return pp("div",n,t)};var kf=function(e){var t=e.children,n=e.components,r=e.data,a=e.innerProps,i=e.isDisabled,o=e.removeProps,l=e.selectProps,s=n.Container,c=n.Label,u=n.Remove;return pp(s,{data:r,innerProps:Kc(Kc({},Dp(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),a),selectProps:l},pp(c,{data:r,innerProps:Kc({},Dp(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),pp(u,{data:r,innerProps:Kc(Kc({},Dp(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:l}))},Af=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.isSelected,i=e.innerRef,o=e.innerProps;return pp("div",G({},Dp(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":a}),{ref:i,"aria-disabled":n},o),t)},Mf=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return pp("div",G({},Dp(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},Hf={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return pp("div",G({},Dp(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||pp(cf,null))},Control:hf,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return pp("div",G({},Dp(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||pp(uf,null))},DownChevron:uf,CrossIcon:cf,Group:vf,GroupHeading:function(e){var t=Zp(e);t.data;var n=Ip(t,bf);return pp("div",G({},Dp(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return pp("div",G({},Dp(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return pp("span",G({},t,Dp(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Ef,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,a=void 0===r?4:r,i=Ip(e,rf);return pp("div",G({},Dp(Kc(Kc({},i),{},{innerProps:t,isRtl:n,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),pp(gf,{delay:0,offset:n}),pp(gf,{delay:160,offset:!0}),pp(gf,{delay:320,offset:!n}))},Menu:qp,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,a=e.isMulti;return pp("div",G({},Dp(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:r},n),t)},MenuPortal:function(t){var r=t.appendTo,a=t.children,i=t.controlElement,o=t.innerProps,l=t.menuPlacement,s=t.menuPosition,c=e.useRef(null),u=e.useRef(null),d=Ep(e.useState(Up(l)),2),p=d[0],f=d[1],m=e.useMemo((function(){return{setPortalPlacement:f}}),[]),g=Ep(e.useState(null),2),h=g[0],b=g[1],v=e.useCallback((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===s?0:window.pageYOffset,n=e[p]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||b({offset:n,rect:e})}}),[i,s,p,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);kp((function(){v()}),[v]);var x=e.useCallback((function(){"function"==typeof u.current&&(u.current(),u.current=null),i&&c.current&&(u.current=Ea(i,c.current,v,{elementResize:"ResizeObserver"in window}))}),[i,v]);kp((function(){x()}),[x]);var y=e.useCallback((function(e){c.current=e,x()}),[x]);if(!r&&"fixed"!==s||!h)return null;var w=pp("div",G({ref:y},Dp(Kc(Kc({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),a);return pp(Qp.Provider,{value:m},r?n.createPortal(w,r):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,a=Ip(e,Xp);return pp("div",G({},Dp(Kc(Kc({},a),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,a=Ip(e,Fp);return pp("div",G({},Dp(Kc(Kc({},a),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:kf,MultiValueContainer:If,MultiValueLabel:If,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return pp("div",G({role:"button"},n),t||pp(cf,{size:14}))},Option:Af,Placeholder:function(e){var t=e.children,n=e.innerProps;return pp("div",G({},Dp(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,a=e.isRtl;return pp("div",G({},Dp(e,"container",{"--is-disabled":r,"--is-rtl":a}),n),t)},SingleValue:Mf,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,a=e.hasValue;return pp("div",G({},Dp(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":a}),n),t)}},Nf=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Vf(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],a=t[n],!(r===a||Nf(r)&&Nf(a)))return!1;var r,a;return!0}for(var Zf="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Df=function(e){return pp("span",G({css:Zf},e))},Lf={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,a=e.context,i=e.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,a=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,a=e.label,i=void 0===a?"":a,o=e.selectValue,l=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&o)return"value ".concat(i," focused, ").concat(u(o,n),".");if("menu"===t&&c){var d=l?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Sf=function(t){var n=t.ariaSelection,r=t.focusedOption,a=t.focusedValue,i=t.focusableOptions,o=t.isFocused,l=t.selectValue,s=t.selectProps,c=t.id,u=t.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,m=s.isMulti,g=s.isOptionDisabled,h=s.isSearchable,b=s.menuIsOpen,v=s.options,x=s.screenReaderStatus,y=s.tabSelectsValue,w=s.isLoading,C=s["aria-label"],E=s["aria-live"],I=e.useMemo((function(){return Kc(Kc({},Lf),d||{})}),[d]),k=e.useMemo((function(){var e,t="";if(n&&I.onChange){var r=n.option,a=n.options,i=n.removedValue,o=n.removedValues,s=n.value,c=i||r||(e=s,Array.isArray(e)?null:e),u=c?p(c):"",d=a||o||void 0,f=d?d.map(p):[],m=Kc({isDisabled:c&&g(c,l),label:u,labels:f},n);t=I.onChange(m)}return t}),[n,I,g,l,p]),A=e.useMemo((function(){var e="",t=r||a,n=!!(r&&l&&l.includes(r));if(t&&I.onFocus){var o={focused:t,label:p(t),isDisabled:g(t,l),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:l,isAppleDevice:u};e=I.onFocus(o)}return e}),[r,a,p,g,I,i,l,u]),M=e.useMemo((function(){var e="";if(b&&v.length&&!w&&I.onFilter){var t=x({count:i.length});e=I.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,b,I,v,x,w]),H="initial-input-focus"===(null==n?void 0:n.action),N=e.useMemo((function(){var e="";if(I.guidance){var t=a?"value":b?"menu":"input";e=I.guidance({"aria-label":C,context:t,isDisabled:r&&g(r,l),isMulti:m,isSearchable:h,tabSelectsValue:y,isInitialFocus:H})}return e}),[C,r,a,m,g,h,b,I,l,y,H]),V=pp(e.Fragment,null,pp("span",{id:"aria-selection"},k),pp("span",{id:"aria-focused"},A),pp("span",{id:"aria-results"},M),pp("span",{id:"aria-guidance"},N));return pp(e.Fragment,null,pp(Df,{id:c},H&&V),pp(Df,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!H&&V))},Of=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Rf=new RegExp("["+Of.map((function(e){return e.letters})).join("")+"]","g"),Tf={},$f=0;$f<Of.length;$f++)for(var zf=Of[$f],Bf=0;Bf<zf.letters.length;Bf++)Tf[zf.letters[Bf]]=zf.base;var Gf=function(e){return e.replace(Rf,(function(e){return Tf[e]}))},Pf=function(e,t){void 0===t&&(t=Vf);var n=null;function r(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Gf),Wf=function(e){return e.replace(/^\s+|\s+$/g,"")},jf=function(e){return"".concat(e.label," ").concat(e.value)},Ff=["innerRef"];function Xf(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=Object.entries(e).filter((function(e){var t=Ep(e,1)[0];return!n.includes(t)}));return a.reduce((function(e,t){var n=Ep(t,2),r=n[0],a=n[1];return e[r]=a,e}),{})}(Ip(e,Ff),"onExited","in","enter","exit","appear");return pp("input",G({ref:t},n,{css:gp({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVmIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgcmVtb3ZlUHJvcHMgfSBmcm9tICcuLi91dGlscyc7XG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIER1bW15SW5wdXQoe1xuICBpbm5lclJlZixcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snaW5wdXQnXSAmIHtcbiAgcmVhZG9ubHkgaW5uZXJSZWY6IFJlZjxIVE1MSW5wdXRFbGVtZW50Pjtcbn0pIHtcbiAgLy8gUmVtb3ZlIGFuaW1hdGlvbiBwcm9wcyBub3QgbWVhbnQgZm9yIEhUTUwgZWxlbWVudHNcbiAgY29uc3QgZmlsdGVyZWRQcm9wcyA9IHJlbW92ZVByb3BzKFxuICAgIHByb3BzLFxuICAgICdvbkV4aXRlZCcsXG4gICAgJ2luJyxcbiAgICAnZW50ZXInLFxuICAgICdleGl0JyxcbiAgICAnYXBwZWFyJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPGlucHV0XG4gICAgICByZWY9e2lubmVyUmVmfVxuICAgICAgey4uLmZpbHRlcmVkUHJvcHN9XG4gICAgICBjc3M9e3tcbiAgICAgICAgbGFiZWw6ICdkdW1teUlucHV0JyxcbiAgICAgICAgLy8gZ2V0IHJpZCBvZiBhbnkgZGVmYXVsdCBzdHlsZXNcbiAgICAgICAgYmFja2dyb3VuZDogMCxcbiAgICAgICAgYm9yZGVyOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHRoaXMgaGlkZXMgdGhlIGZsYXNoaW5nIGN1cnNvclxuICAgICAgICBjYXJldENvbG9yOiAndHJhbnNwYXJlbnQnLFxuICAgICAgICBmb250U2l6ZTogJ2luaGVyaXQnLFxuICAgICAgICBncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var Yf=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Jf=["boxSizing","height","overflow","paddingRight","position"],Uf={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Qf(e){e.preventDefault()}function _f(e){e.stopPropagation()}function qf(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Kf(){return"ontouchstart"in window||navigator.maxTouchPoints}var em=!("undefined"==typeof window||!window.document||!window.document.createElement),tm=0,nm={capture:!1,passive:!1};var rm=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},am="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2Z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gb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function im(t){var n=t.children,r=t.lockEnabled,a=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,a=t.onBottomLeave,i=t.onTopArrive,o=t.onTopLeave,l=e.useRef(!1),s=e.useRef(!1),c=e.useRef(0),u=e.useRef(null),d=e.useCallback((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,p=n.clientHeight,f=u.current,m=t>0,g=d-p-c,h=!1;g>t&&l.current&&(a&&a(e),l.current=!1),m&&s.current&&(o&&o(e),s.current=!1),m&&t>g?(r&&!l.current&&r(e),f.scrollTop=d,h=!0,l.current=!0):!m&&-t>c&&(i&&!s.current&&i(e),f.scrollTop=0,h=!0,s.current=!0),h&&Yf(e)}}),[r,a,i,o]),p=e.useCallback((function(e){d(e,e.deltaY)}),[d]),f=e.useCallback((function(e){c.current=e.changedTouches[0].clientY}),[]),m=e.useCallback((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),g=e.useCallback((function(e){if(e){var t=!!Pp&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}}),[m,f,p]),h=e.useCallback((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))}),[m,f,p]);return e.useEffect((function(){if(n){var e=u.current;return g(e),function(){h(e)}}}),[n,g,h]),function(e){u.current=e}}({isEnabled:void 0===a||a,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),o=function(t){var n=t.isEnabled,r=t.accountForScrollbars,a=void 0===r||r,i=e.useRef({}),o=e.useRef(null),l=e.useCallback((function(e){if(em){var t=document.body,n=t&&t.style;if(a&&Jf.forEach((function(e){var t=n&&n[e];i.current[e]=t})),a&&tm<1){var r=parseInt(i.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,l=window.innerWidth-o+r||0;Object.keys(Uf).forEach((function(e){var t=Uf[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&Kf()&&(t.addEventListener("touchmove",Qf,nm),e&&(e.addEventListener("touchstart",qf,nm),e.addEventListener("touchmove",_f,nm))),tm+=1}}),[a]),s=e.useCallback((function(e){if(em){var t=document.body,n=t&&t.style;tm=Math.max(tm-1,0),a&&tm<1&&Jf.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Kf()&&(t.removeEventListener("touchmove",Qf,nm),e&&(e.removeEventListener("touchstart",qf,nm),e.removeEventListener("touchmove",_f,nm)))}}),[a]);return e.useEffect((function(){if(n){var e=o.current;return l(e),function(){s(e)}}}),[n,l,s]),function(e){o.current=e}}({isEnabled:r});return pp(e.Fragment,null,r&&pp("div",{onClick:rm,css:am}),n((function(e){i(e),o(e)})))}var om="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},lm=function(e){var t=e.name,n=e.onFocus;return pp("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:om,value:"",onChange:function(){}})};function sm(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function cm(){return sm(/^Mac/i)}function um(){return sm(/^iPhone/i)||sm(/^iPad/i)||cm()&&navigator.maxTouchPoints>1}var dm=function(e){return e.label},pm=function(e){return e.value},fm={clearIndicator:ff,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,a=e.theme,i=a.colors,o=a.borderRadius;return Kc({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:pf,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,a=n.spacing;return Kc({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*a.baseUnit,paddingRight:3*a.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,a=r.spacing.baseUnit,i=r.colors;return Kc({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*a,marginTop:2*a})},input:function(e,t){var n=e.isDisabled,r=e.value,a=e.theme,i=a.spacing,o=a.colors;return Kc(Kc({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},wf),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:o.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,a=e.theme,i=a.colors,o=a.spacing.baseUnit;return Kc({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o})},loadingMessage:tf,menu:function(e,t){var n,r=e.placement,a=e.theme,i=a.borderRadius,o=a.spacing,l=a.colors;return Kc((_c(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),_c(n,"position","absolute"),_c(n,"width","100%"),_c(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Kc({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,a=n.borderRadius,i=n.colors;return Kc({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,a=n.colors,i=e.cropWithEllipsis;return Kc({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,a=n.borderRadius,i=n.colors,o=e.isFocused;return Kc({alignItems:"center",display:"flex"},t?{}:{borderRadius:a/2,backgroundColor:o?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:ef,option:function(e,t){var n=e.isDisabled,r=e.isFocused,a=e.isSelected,i=e.theme,o=i.spacing,l=i.colors;return Kc({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:a?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),":active":{backgroundColor:n?void 0:a?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,a=n.colors;return Kc({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:a.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,a=r.spacing,i=r.colors;return Kc({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,a=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Kc({alignItems:"center",display:r&&a&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},mm={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},gm={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:$p(),captureMenuScroll:!$p(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=Kc({ignoreCase:!0,ignoreAccents:!0,stringify:jf,trim:!0,matchFrom:"any"},e),a=r.ignoreCase,i=r.ignoreAccents,o=r.stringify,l=r.trim,s=r.matchFrom,c=l?Wf(n):n,u=l?Wf(o(t)):o(t);return a&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=Pf(c),u=Gf(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:dm,getOptionValue:pm,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function hm(e,t,n,r){return{type:"option",data:t,isDisabled:Im(e,t,n),isSelected:km(e,t,n),label:Cm(e,t),value:Em(e,t),index:r}}function bm(e,t){return e.options.map((function(n,r){if("options"in n){var a=n.options.map((function(n,r){return hm(e,n,t,r)})).filter((function(t){return ym(e,t)}));return a.length>0?{type:"group",data:n,options:a,index:r}:void 0}var i=hm(e,n,t,r);return ym(e,i)?i:void 0})).filter(Wp)}function vm(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ou(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function xm(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ou(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ym(e,t){var n=e.inputValue,r=void 0===n?"":n,a=t.data,i=t.isSelected,o=t.label,l=t.value;return(!Mm(e)||!i)&&Am(e,{label:o,value:l,data:a},r)}var wm=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Cm=function(e,t){return e.getOptionLabel(t)},Em=function(e,t){return e.getOptionValue(t)};function Im(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function km(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Em(e,t);return n.some((function(t){return Em(e,t)===r}))}function Am(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Mm=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Hm=1,Nm=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(r,e.Component);var n=ru(r);function r(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=cm()||um(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,a=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),a(e,n)},t.setValue=function(e,n,r){var a=t.props,i=a.closeMenuOnSelect,o=a.isMulti,l=a.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),i&&(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,a=n.isMulti,i=n.name,o=t.state.selectValue,l=a&&t.isOptionSelected(e,o),s=t.isOptionDisabled(e,o);if(l){var c=t.getOptionValue(e);t.setValue(o.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});a?t.setValue([].concat(ou(o),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,a=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==a})),o=jp(n,i,i[0]||null);t.onChange(o,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(jp(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],a=n.slice(0,n.length-1),i=jp(e,a,a[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return wm(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return xm(bm(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Np.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Cm(t.props,e)},t.getOptionValue=function(e){return Em(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,a=fm[e](n,r);a.boxSizing="border-box";var i=t.props.styles[e];return i?i(a,n):a},t.getClassNames=function(e,n){var r,a;return null===(r=(a=t.props.classNames)[e])||void 0===r?void 0:r.call(a,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Kc(Kc({},Hf),e.components);var e},t.buildCategorizedOptions=function(){return bm(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return vm(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Kc({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,a=n.menuIsOpen;t.focusInput(),a?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Lp(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var a=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=a>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Mm(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,a=n.backspaceRemovesValue,i=n.escapeClearsValue,o=n.inputValue,l=n.isClearable,s=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,m=f.focusedOption,g=f.focusedValue,h=f.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||o)return;t.focusValue("previous");break;case"ArrowRight":if(!r||o)return;t.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(g)t.removeValue(g);else{if(!a)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!m||p&&t.isOptionSelected(m,h))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:o}),t.onMenuClose()):l&&i&&t.clearValue();break;case" ":if(o)return;if(!c){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Hm),t.state.selectValue=Vp(e.value),e.menuIsOpen&&t.state.selectValue.length){var a=t.getFocusableOptionsWithIds(),i=t.buildFocusableOptions(),o=i.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=a,t.state.focusedOption=i[o],t.state.focusedOptionId=wm(a,i[o])}return t}return function(e,t,n){t&&eu(e.prototype,t),n&&eu(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Tp(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,a=this.state.isFocused;(a&&!n&&e.isDisabled||a&&r&&!e.menuIsOpen)&&this.focusInput(),a&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):a||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Tp(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,a=n.isFocused,i=this.buildFocusableOptions(),o="first"===e?0:i.length-1;if(!this.props.isMulti){var l=i.indexOf(r[0]);l>-1&&(o=l)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[o],focusedOptionId:this.getFocusedOptionId(i[o])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=n.indexOf(r);r||(a=-1);var i=n.length-1,o=-1;if(n.length){switch(e){case"previous":o=0===a?0:-1===a?i:a-1;break;case"next":a>-1&&a<i&&(o=a+1)}this.setState({inputIsHidden:-1!==o,focusedValue:n[o]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var a=0,i=r.indexOf(n);n||(i=-1),"up"===e?a=i>0?i-1:r.length-1:"down"===e?a=(i+1)%r.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>r.length-1&&(a=r.length-1):"last"===e&&(a=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[a])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(mm):Kc(Kc({},mm),this.props.theme):mm}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,a=this.getValue,i=this.selectOption,o=this.setValue,l=this.props,s=l.isMulti,c=l.isRtl,u=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:a,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:i,selectProps:l,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Im(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return km(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Am(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,o=e.tabIndex,l=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,m=this.commonProps,g=r||this.getElementId("input"),h=Kc(Kc(Kc({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?i.createElement(u,G({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:l,type:"text",value:a},h)):i.createElement(Xf,G({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Mp,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:l,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,o=t.MultiValueRemove,l=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,m=u.inputValue,g=u.placeholder,h=this.state,b=h.selectValue,v=h.focusedValue,x=h.isFocused;if(!this.hasValue()||!d)return m?null:i.createElement(s,G({},c,{key:"placeholder",isDisabled:p,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);if(f)return b.map((function(t,l){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return i.createElement(n,G({},c,{components:{Container:r,Label:a,Remove:o},isFocused:s,isDisabled:p,key:u,index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var y=b[0];return i.createElement(l,G({},c,{data:y,isDisabled:p}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,G({},t,{innerProps:l,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!e||!a)return null;return i.createElement(e,G({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return i.createElement(n,G({},r,{isDisabled:a,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,G({},t,{innerProps:a,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,a=t.Menu,o=t.MenuList,l=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,g=f.inputValue,h=f.isLoading,b=f.loadingMessage,v=f.minMenuHeight,x=f.maxMenuHeight,y=f.menuIsOpen,w=f.menuPlacement,C=f.menuPosition,E=f.menuPortalTarget,I=f.menuShouldBlockScroll,k=f.menuShouldScrollIntoView,A=f.noOptionsMessage,M=f.onMenuScrollToTop,H=f.onMenuScrollToBottom;if(!y)return null;var N,V=function(t,n){var r=t.type,a=t.data,o=t.isDisabled,l=t.isSelected,s=t.label,c=t.value,f=p===a,m=o?void 0:function(){return e.onOptionHover(a)},g=o?void 0:function(){return e.selectOption(a)},h="".concat(e.getElementId("option"),"-").concat(n),b={id:h,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:l};return i.createElement(u,G({},d,{innerProps:b,data:a,isDisabled:o,isSelected:l,key:h,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,o=t.options,l=t.index,s="".concat(e.getElementId("group"),"-").concat(l),c="".concat(s,"-heading");return i.createElement(n,G({},d,{key:s,data:a,options:o,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return V(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return V(t,"".concat(t.index))}));else if(h){var Z=b({inputValue:g});if(null===Z)return null;N=i.createElement(s,d,Z)}else{var D=A({inputValue:g});if(null===D)return null;N=i.createElement(c,d,D)}var L={minMenuHeight:v,maxMenuHeight:x,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:k},S=i.createElement(_p,G({},d,L),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,s=r.maxHeight;return i.createElement(a,G({},d,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:h,placement:l}),i.createElement(im,{captureEnabled:m,onTopArrive:M,onBottomArrive:H,lockEnabled:I},(function(t){return i.createElement(o,G({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:h,maxHeight:s,focusedOption:p}),N)})))}));return E||"fixed"===C?i.createElement(l,G({},d,{appendTo:E,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),S):S}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,o=t.name,l=t.required,s=this.state.selectValue;if(l&&!this.hasValue()&&!r)return i.createElement(lm,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(a){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return i.createElement("input",{name:o,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return i.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):i.createElement("input",{name:o,type:"hidden",value:""});return i.createElement("div",null,u)}var d=s[0]?this.getOptionValue(s[0]):"";return i.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,a=t.focusedValue,o=t.isFocused,l=t.selectValue,s=this.getFocusableOptions();return i.createElement(Sf,G({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:a,isFocused:o,selectValue:l,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,o=this.props,l=o.className,s=o.id,c=o.isDisabled,u=o.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return i.createElement(r,G({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),i.createElement(t,G({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),i.createElement(a,G({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),i.createElement(n,G({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,o=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,m=Vp(u),g={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var h=d?function(e,t){return vm(bm(e,t))}(e,m):[],b=d?xm(bm(e,m),"".concat(s,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,x=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,h);g={selectValue:m,focusedOption:x,focusedOptionId:wm(b,x),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=a&&e!==n?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},w=i,C=o&&l;return o&&!C&&(w={value:jp(f,m,m[0]||null),options:m,action:"initial-input-focus"},C=!l),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),Kc(Kc(Kc({},g),y),{},{prevProps:e,ariaSelection:w,prevWasFocused:C})}}]),r}();Nm.defaultProps=gm;var Vm=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Zm(t){var n=t.defaultInputValue,r=void 0===n?"":n,a=t.defaultMenuIsOpen,i=void 0!==a&&a,o=t.defaultValue,l=void 0===o?null:o,s=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,p=t.onMenuClose,f=t.onMenuOpen,m=t.value,g=Ip(t,Vm),h=Ep(e.useState(void 0!==s?s:r),2),b=h[0],v=h[1],x=Ep(e.useState(void 0!==c?c:i),2),y=x[0],w=x[1],C=Ep(e.useState(void 0!==m?m:l),2),E=C[0],I=C[1],k=e.useCallback((function(e,t){"function"==typeof u&&u(e,t),I(e)}),[u]),A=e.useCallback((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),v(void 0!==n?n:e)}),[d]),M=e.useCallback((function(){"function"==typeof f&&f(),w(!0)}),[f]),H=e.useCallback((function(){"function"==typeof p&&p(),w(!1)}),[p]),N=void 0!==s?s:b,V=void 0!==c?c:y,Z=void 0!==m?m:E;return Kc(Kc({},g),{},{inputValue:N,menuIsOpen:V,onChange:k,onInputChange:A,onMenuClose:H,onMenuOpen:M,value:Z})}var Dm=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Lm=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),a=String(t.getOptionLabel(e)).toLowerCase();return r===n||a===n},Sm={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return Lm(e,t,r)}))||n.some((function(t){return Lm(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var Om=e.forwardRef((function(t,n){var r=function(t){var n=t.allowCreateWhileLoading,r=void 0!==n&&n,a=t.createOptionPosition,i=void 0===a?"last":a,o=t.formatCreateLabel,l=void 0===o?Sm.formatCreateLabel:o,s=t.isValidNewOption,c=void 0===s?Sm.isValidNewOption:s,u=t.getNewOptionData,d=void 0===u?Sm.getNewOptionData:u,p=t.onCreateOption,f=t.options,m=void 0===f?[]:f,g=t.onChange,h=Ip(t,Dm),b=h.getOptionValue,v=void 0===b?pm:b,x=h.getOptionLabel,y=void 0===x?dm:x,w=h.inputValue,C=h.isLoading,E=h.isMulti,I=h.value,k=h.name,A=e.useMemo((function(){return c(w,Vp(I),m,{getOptionValue:v,getOptionLabel:y})?d(w,l(w)):void 0}),[l,d,y,v,w,c,m,I]),M=e.useMemo((function(){return!r&&C||!A?m:"first"===i?[A].concat(ou(m)):[].concat(ou(m),[A])}),[r,i,C,A,m]),H=e.useCallback((function(e,t){if("select-option"!==t.action)return g(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==A)g(e,t);else if(p)p(w);else{var r=d(w,w),a={action:"create-option",name:k,option:r};g(jp(E,[].concat(ou(Vp(I)),[r]),r),a)}}),[d,w,E,k,A,p,g,I]);return Kc(Kc({},h),{},{options:M,onChange:H})}(Zm(t));return i.createElement(Nm,G({ref:n},r))})),Rm=Om,Tm=e.forwardRef((function(e,t){var n=Zm(e);return i.createElement(Nm,G({ref:t},n))}));const $m=o.default.div`
|
|
971
|
+
`;function Uc(e){return Uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uc(e)}function Qc(e){var t=function(e,t){if("object"!=Uc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Uc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uc(t)?t:t+""}function _c(e,t,n){return(t=Qc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qc(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eu(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,Qc(r.key),r)}}function tu(e){return tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tu(e)}function nu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nu=function(){return!!e})()}function ru(e){var t=nu();return function(){var n,r=tu(e);if(t){var a=tu(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==Uc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return De(e)}(this,n)}}function au(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iu(e,t){if(e){if("string"==typeof e)return au(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?au(e,t):void 0}}function ou(e){return function(e){if(Array.isArray(e))return au(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iu(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var lu=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if("production"!==process.env.NODE_ENV){var n=64===e.charCodeAt(0)&&105===e.charCodeAt(1);n&&this._alreadyInsertedOrderInsensitiveRule&&console.error("You're attempting to insert the following rule:\n"+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n}if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(t){"production"===process.env.NODE_ENV||/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error('There was a problem inserting the following rule: "'+e+'"',t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,"production"!==process.env.NODE_ENV&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),su="-ms-",cu="-moz-",uu="-webkit-",du="comm",pu="rule",fu="decl",mu="@keyframes",gu=Math.abs,hu=String.fromCharCode,bu=Object.assign;function vu(e){return e.trim()}function xu(e,t,n){return e.replace(t,n)}function yu(e,t){return e.indexOf(t)}function wu(e,t){return 0|e.charCodeAt(t)}function Cu(e,t,n){return e.slice(t,n)}function Eu(e){return e.length}function Iu(e){return e.length}function ku(e,t){return t.push(e),e}var Au=1,Mu=1,Hu=0,Nu=0,Vu=0,Zu="";function Du(e,t,n,r,a,i,o){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:Au,column:Mu,length:o,return:""}}function Su(e,t){return bu(Du("",null,null,"",null,null,0),e,{length:-e.length},t)}function Lu(){return Vu=Nu>0?wu(Zu,--Nu):0,Mu--,10===Vu&&(Mu=1,Au--),Vu}function Ou(){return Vu=Nu<Hu?wu(Zu,Nu++):0,Mu++,10===Vu&&(Mu=1,Au++),Vu}function Ru(){return wu(Zu,Nu)}function $u(){return Nu}function Tu(e,t){return Cu(Zu,e,t)}function zu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bu(e){return Au=Mu=1,Hu=Eu(Zu=e),Nu=0,[]}function Gu(e){return Zu="",e}function Pu(e){return vu(Tu(Nu-1,Fu(91===e?e+2:40===e?e+1:e)))}function Wu(e){for(;(Vu=Ru())&&Vu<33;)Ou();return zu(e)>2||zu(Vu)>3?"":" "}function ju(e,t){for(;--t&&Ou()&&!(Vu<48||Vu>102||Vu>57&&Vu<65||Vu>70&&Vu<97););return Tu(e,$u()+(t<6&&32==Ru()&&32==Ou()))}function Fu(e){for(;Ou();)switch(Vu){case e:return Nu;case 34:case 39:34!==e&&39!==e&&Fu(Vu);break;case 40:41===e&&Fu(e);break;case 92:Ou()}return Nu}function Xu(e,t){for(;Ou()&&e+Vu!==57&&(e+Vu!==84||47!==Ru()););return"/*"+Tu(t,Nu-1)+"*"+hu(47===e?e:Ou())}function Yu(e){for(;!zu(Ru());)Ou();return Tu(e,Nu)}function Ju(e){return Gu(Uu("",null,null,null,[""],e=Bu(e),0,[0],e))}function Uu(e,t,n,r,a,i,o,l,s){for(var c=0,u=0,d=o,p=0,f=0,m=0,g=1,h=1,b=1,v=0,x="",y=a,w=i,C=r,E=x;h;)switch(m=v,v=Ou()){case 40:if(108!=m&&58==wu(E,d-1)){-1!=yu(E+=xu(Pu(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=Pu(v);break;case 9:case 10:case 13:case 32:E+=Wu(m);break;case 92:E+=ju($u()-1,7);continue;case 47:switch(Ru()){case 42:case 47:ku(_u(Xu(Ou(),$u()),t,n),s);break;default:E+="/"}break;case 123*g:l[c++]=Eu(E)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:h=0;case 59+u:-1==b&&(E=xu(E,/\f/g,"")),f>0&&Eu(E)-d&&ku(f>32?qu(E+";",r,n,d-1):qu(xu(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(ku(C=Qu(E,t,n,c,u,a,l,x,y=[],w=[],d),i),123===v)if(0===u)Uu(E,t,C,C,y,i,d,l,w);else switch(99===p&&110===wu(E,3)?100:p){case 100:case 108:case 109:case 115:Uu(e,C,C,r&&ku(Qu(e,C,C,0,0,a,l,x,a,y=[],d),w),a,w,d,l,r?y:w);break;default:Uu(E,C,C,C,[""],w,0,l,w)}}c=u=f=0,g=b=1,x=E="",d=o;break;case 58:d=1+Eu(E),f=m;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==Lu())continue;switch(E+=hu(v),v*g){case 38:b=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Eu(E)-1)*b,b=1;break;case 64:45===Ru()&&(E+=Pu(Ou())),p=Ru(),u=d=Eu(x=E+=Yu($u())),v++;break;case 45:45===m&&2==Eu(E)&&(g=0)}}return i}function Qu(e,t,n,r,a,i,o,l,s,c,u){for(var d=a-1,p=0===a?i:[""],f=Iu(p),m=0,g=0,h=0;m<r;++m)for(var b=0,v=Cu(e,d+1,d=gu(g=o[m])),x=e;b<f;++b)(x=vu(g>0?p[b]+" "+v:xu(v,/&\f/g,p[b])))&&(s[h++]=x);return Du(e,t,n,0===a?pu:l,s,c,u)}function _u(e,t,n){return Du(e,t,n,du,hu(Vu),Cu(e,2,-2),0)}function qu(e,t,n,r){return Du(e,t,n,fu,Cu(e,0,r),Cu(e,r+1,-1),r)}function Ku(e,t){for(var n="",r=Iu(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function ed(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case fu:return e.return=e.return||e.value;case du:return"";case mu:return e.return=e.value+"{"+Ku(e.children,r)+"}";case pu:e.value=e.props.join(",")}return Eu(n=Ku(e.children,r))?e.return=e.value+"{"+n+"}":""}function td(e){var t=Iu(e);return function(n,r,a,i){for(var o="",l=0;l<t;l++)o+=e[l](n,r,a,i)||"";return o}}function nd(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var rd=function(e,t,n){for(var r=0,a=0;r=a,a=Ru(),38===r&&12===a&&(t[n]=1),!zu(a);)Ou();return Tu(e,Nu)},ad=function(e,t){return Gu(function(e,t){var n=-1,r=44;do{switch(zu(r)){case 0:38===r&&12===Ru()&&(t[n]=1),e[n]+=rd(Nu-1,t,n);break;case 2:e[n]+=Pu(r);break;case 4:if(44===r){e[++n]=58===Ru()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=hu(r)}}while(r=Ou());return e}(Bu(e),t))},id=new WeakMap,od=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||id.get(n))&&!r){id.set(e,!0);for(var a=[],i=ad(t,a),o=n.props,l=0,s=0;l<i.length;l++)for(var c=0;c<o.length;c++,s++)e.props[s]=a[l]?i[l].replace(/&\f/g,o[c]):o[c]+" "+i[l]}}},ld=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},sd=function(e){return"comm"===e.type&&e.children.indexOf("emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason")>-1},cd=function(e){return 105===e.type.charCodeAt(1)&&64===e.type.charCodeAt(0)},ud=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},dd=function(e,t,n){cd(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),ud(e)):function(e,t){for(var n=e-1;n>=0;n--)if(!cd(t[n]))return!0;return!1}(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ud(e)))};function pd(e,t){switch(function(e,t){return 45^wu(e,0)?(((t<<2^wu(e,0))<<2^wu(e,1))<<2^wu(e,2))<<2^wu(e,3):0}(e,t)){case 5103:return uu+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return uu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return uu+e+cu+e+su+e+e;case 6828:case 4268:return uu+e+su+e+e;case 6165:return uu+e+su+"flex-"+e+e;case 5187:return uu+e+xu(e,/(\w+).+(:[^]+)/,uu+"box-$1$2"+su+"flex-$1$2")+e;case 5443:return uu+e+su+"flex-item-"+xu(e,/flex-|-self/,"")+e;case 4675:return uu+e+su+"flex-line-pack"+xu(e,/align-content|flex-|-self/,"")+e;case 5548:return uu+e+su+xu(e,"shrink","negative")+e;case 5292:return uu+e+su+xu(e,"basis","preferred-size")+e;case 6060:return uu+"box-"+xu(e,"-grow","")+uu+e+su+xu(e,"grow","positive")+e;case 4554:return uu+xu(e,/([^-])(transform)/g,"$1"+uu+"$2")+e;case 6187:return xu(xu(xu(e,/(zoom-|grab)/,uu+"$1"),/(image-set)/,uu+"$1"),e,"")+e;case 5495:case 3959:return xu(e,/(image-set\([^]*)/,uu+"$1$`$1");case 4968:return xu(xu(e,/(.+:)(flex-)?(.*)/,uu+"box-pack:$3"+su+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+uu+e+e;case 4095:case 3583:case 4068:case 2532:return xu(e,/(.+)-inline(.+)/,uu+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Eu(e)-1-t>6)switch(wu(e,t+1)){case 109:if(45!==wu(e,t+4))break;case 102:return xu(e,/(.+:)(.+)-([^]+)/,"$1"+uu+"$2-$3$1"+cu+(108==wu(e,t+3)?"$3":"$2-$3"))+e;case 115:return~yu(e,"stretch")?pd(xu(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==wu(e,t+1))break;case 6444:switch(wu(e,Eu(e)-3-(~yu(e,"!important")&&10))){case 107:return xu(e,":",":"+uu)+e;case 101:return xu(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+uu+(45===wu(e,14)?"inline-":"")+"box$3$1"+uu+"$2$3$1"+su+"$2box$3")+e}break;case 5936:switch(wu(e,t+11)){case 114:return uu+e+su+xu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return uu+e+su+xu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return uu+e+su+xu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return uu+e+su+e+e}return e}var fd,md,gd="undefined"!=typeof document,hd=gd?void 0:(fd=function(){return nd((function(){var e={};return function(t){return e[t]}}))},md=new WeakMap,function(e){if(md.has(e))return md.get(e);var t=fd(e);return md.set(e,t),t}),bd=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case fu:e.return=pd(e.value,e.length);break;case mu:return Ku([Su(e,{value:xu(e.value,"@","@"+uu)})],r);case pu:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ku([Su(e,{props:[xu(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ku([Su(e,{props:[xu(t,/:(plac\w+)/,":"+uu+"input-$1")]}),Su(e,{props:[xu(t,/:(plac\w+)/,":-moz-$1")]}),Su(e,{props:[xu(t,/:(plac\w+)/,su+"input-$1")]})],r)}return""}))}}],vd=function(e){var t=e.key;if("production"!==process.env.NODE_ENV&&!t)throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");if(gd&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||bd;if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a,i,o={},l=[];gd&&(a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)o[t[n]]=!0;l.push(e)})));var s,c=[od,ld];if("production"!==process.env.NODE_ENV&&c.push(function(e){return function(t,n,r){if("rule"===t.type&&!e.compat){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var i=t.parent?t.parent.children:r,o=i.length-1;o>=0;o--){var l=i[o];if(l.line<t.line)break;if(l.column<t.column){if(sd(l))return;break}}a.forEach((function(e){console.error('The pseudo class "'+e+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+e.split("-child")[0]+'-of-type".')}))}}}}({get compat(){return b.compat}}),dd),gd){var u,d=[ed,"production"!==process.env.NODE_ENV?function(e){e.root||(e.return?u.insert(e.return):e.value&&e.type!==du&&u.insert(e.value+"{}"))}:(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=td(c.concat(r,d));i=function(e,t,n,r){u=n,"production"!==process.env.NODE_ENV&&void 0!==t.map&&(u={insert:function(e){n.insert(e+t.map)}}),Ku(Ju(e?e+"{"+t.styles+"}":t.styles),p),r&&(b.inserted[t.name]=!0)}}else{var f=[ed],m=td(c.concat(r,f)),g=hd(r)(t),h=function(e,t){var n=t.name;return void 0===g[n]&&(g[n]=Ku(Ju(e?e+"{"+t.styles+"}":t.styles),m)),g[n]};i=function(e,t,n,r){var a=t.name,i=h(e,t);return void 0===b.compat?(r&&(b.inserted[a]=!0),"development"===process.env.NODE_ENV&&void 0!==t.map?i+t.map:i):r?void(b.inserted[a]=i):i}}var b={key:t,sheet:new lu({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:i};return b.sheet.hydrate(l),b},xd=ue,yd={};yd[xd.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yd[xd.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var wd="undefined"!=typeof document;function Cd(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Ed=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===wd&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Id=function(e,t,n){Ed(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a="",i=t;do{var o=e.insert(t===i?"."+r:"",i,e.sheet,!0);wd||void 0===o||(a+=o),i=i.next}while(void 0!==i);if(!wd&&0!==a.length)return a}};var kd={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ad="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",Md="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Hd=/[A-Z]|^ms/g,Nd=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Vd=function(e){return 45===e.charCodeAt(1)},Zd=function(e){return null!=e&&"boolean"!=typeof e},Dd=nd((function(e){return Vd(e)?e:e.replace(Hd,"-$&").toLowerCase()})),Sd=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Nd,(function(e,t,n){return Wd={name:t,styles:n,next:Wd},t}))}return 1===kd[e]||Vd(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Ld=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Od=["normal","none","initial","inherit","unset"],Rd=Sd,$d=/^-ms-/,Td=/-(.)/g,zd={};Sd=function(e,t){if("content"===e&&("string"!=typeof t||-1===Od.indexOf(t)&&!Ld.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Rd(e,t);return""===n||Vd(e)||-1===e.indexOf("-")||void 0!==zd[e]||(zd[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace($d,"ms-").replace(Td,(function(e,t){return t.toUpperCase()}))+"?")),n}}var Bd="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Gd(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===n.toString())throw new Error(Bd);return n}switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Wd={name:n.name,styles:n.styles,next:Wd},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Wd={name:r.name,styles:r.styles,next:Wd},r=r.next;var a=n.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=Gd(e,t,n[a])+";";else for(var i in n){var o=n[i];if("object"!=typeof o)null!=t&&void 0!==t[o]?r+=i+"{"+t[o]+"}":Zd(o)&&(r+=Dd(i)+":"+Sd(i,o)+";");else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error(Bd);if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=Gd(e,t,o);switch(i){case"animation":case"animationName":r+=Dd(i)+":"+l+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(Md),r+=i+"{"+l+"}"}}else for(var s=0;s<o.length;s++)Zd(o[s])&&(r+=Dd(i)+":"+Sd(i,o[s])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var i=Wd,o=n(e);return Wd=i,Gd(e,t,o)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],s=n.replace(Nd,(function(e,t,n){var r="animation"+l.length;return l.push("const "+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+r+"}"}));l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return n;var c=t[n];return void 0!==c?c:n}var Pd,Wd,jd=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(Pd=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var Fd=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";Wd=void 0;var i,o=e[0];null==o||void 0===o.raw?(r=!1,a+=Gd(n,t,o)):("production"!==process.env.NODE_ENV&&void 0===o[0]&&console.error(Ad),a+=o[0]);for(var l=1;l<e.length;l++)a+=Gd(n,t,e[l]),r&&("production"!==process.env.NODE_ENV&&void 0===o[l]&&console.error(Ad),a+=o[l]);"production"!==process.env.NODE_ENV&&(a=a.replace(Pd,(function(e){return i=e,""}))),jd.lastIndex=0;for(var s,c="";null!==(s=jd.exec(a));)c+="-"+s[1];var u=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+c;return"production"!==process.env.NODE_ENV?{name:u,styles:a,map:i,next:Wd,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:u,styles:a,next:Wd}},Xd="undefined"!=typeof document,Yd=function(e){return e()},Jd=!!i.useInsertionEffect&&i.useInsertionEffect,Ud=Xd&&Jd||Yd,Qd=Jd||i.useLayoutEffect,_d="undefined"!=typeof document,qd={}.hasOwnProperty,Kd=i.createContext("undefined"!=typeof HTMLElement?vd({key:"css"}):null);"production"!==process.env.NODE_ENV&&(Kd.displayName="EmotionCacheContext"),Kd.Provider;var ep=function(t){return e.forwardRef((function(n,r){var a=e.useContext(Kd);return t(n,a,r)}))};_d||(ep=function(t){return function(n){var r=e.useContext(Kd);return null===r?(r=vd({key:"css"}),i.createElement(Kd.Provider,{value:r},t(n,r))):t(n,r)}});var tp=i.createContext({});"production"!==process.env.NODE_ENV&&(tp.displayName="EmotionThemeContext");var np=function(e){var t=e.split(".");return t[t.length-1]},rp=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?np(t[1]):void 0},ap=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),ip=function(e){return e.replace(/\$/g,"-")},op="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",sp=function(e,t){if("production"!==process.env.NODE_ENV&&"string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)qd.call(t,r)&&(n[r]=t[r]);if(n[op]=e,"production"!==process.env.NODE_ENV&&t.css&&("object"!=typeof t.css||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var a=function(e){if(e)for(var t=e.split("\n"),n=0;n<t.length;n++){var r=rp(t[n]);if(r){if(ap.has(r))break;if(/^[A-Z]/.test(r))return ip(r)}}}((new Error).stack);a&&(n[lp]=a)}return n},cp=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Ed(t,n,r);var a=Ud((function(){return Id(t,n,r)}));if(!_d&&void 0!==a){for(var o,l=n.name,s=n.next;void 0!==s;)l+=" "+s.name,s=s.next;return i.createElement("style",((o={})["data-emotion"]=t.key+" "+l,o.dangerouslySetInnerHTML={__html:a},o.nonce=t.sheet.nonce,o))}return null},up=ep((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var a=e[op],o=[r],l="";"string"==typeof e.className?l=Cd(t.registered,o,e.className):null!=e.className&&(l=e.className+" ");var s=Fd(o,void 0,i.useContext(tp));if("production"!==process.env.NODE_ENV&&-1===s.name.indexOf("-")){var c=e[lp];c&&(s=Fd([s,"label:"+c+";"]))}l+=t.key+"-"+s.name;var u={};for(var d in e)!qd.call(e,d)||"css"===d||d===op||"production"!==process.env.NODE_ENV&&d===lp||(u[d]=e[d]);return u.ref=n,u.className=l,i.createElement(i.Fragment,null,i.createElement(cp,{cache:t,serialized:s,isStringTag:"string"==typeof a}),i.createElement(a,u))}));"production"!==process.env.NODE_ENV&&(up.displayName="EmotionCssPropInternal");var dp=up,pp=function(e,t){var n=arguments;if(null==t||!qd.call(t,"css"))return i.createElement.apply(void 0,n);var r=n.length,a=new Array(r);a[0]=dp,a[1]=sp(e,t);for(var o=2;o<r;o++)a[o]=n[o];return i.createElement.apply(null,a)},fp=!1,mp=ep((function(e,t){"production"===process.env.NODE_ENV||fp||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),fp=!0);var n=e.styles,r=Fd([n],void 0,i.useContext(tp));if(!_d){for(var a,o=r.name,l=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,l+=s.styles,s=s.next;var c=!0===t.compat,u=t.insert("",{name:o,styles:l},t.sheet,c);return c?null:i.createElement("style",((a={})["data-emotion"]=t.key+"-global "+o,a.dangerouslySetInnerHTML={__html:u},a.nonce=t.sheet.nonce,a))}var d=i.useRef();return Qd((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,i=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(a=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),d.current=[n,a],function(){n.flush()}}),[t]),Qd((function(){var e=d.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Id(t,r.next,!0),n.tags.length){var a=n.tags[n.tags.length-1].nextElementSibling;n.before=a,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function gp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Fd(t)}"production"!==process.env.NODE_ENV&&(mp.displayName="EmotionGlobal");var hp=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var i=t[r];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))o=e(i);else for(var l in"production"!==process.env.NODE_ENV&&void 0!==i.styles&&void 0!==i.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),o="",i)i[l]&&l&&(o&&(o+=" "),o+=l);break;default:o=i}o&&(a&&(a+=" "),a+=o)}}return a};var bp=function(e){var t,n=e.cache,r=e.serializedArr,a=Ud((function(){for(var e="",t=0;t<r.length;t++){var a=Id(n,r[t],!1);_d||void 0===a||(e+=a)}if(!_d)return e}));return _d||0===a.length?null:i.createElement("style",((t={})["data-emotion"]=n.key+" "+r.map((function(e){return e.name})).join(" "),t.dangerouslySetInnerHTML={__html:a},t.nonce=n.sheet.nonce,t))},vp=ep((function(e,t){var n=!1,r=[],a=function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];var o=Fd(a,t.registered);return r.push(o),Ed(t,o,!1),t.key+"-"+o.name},o={css:a,cx:function(){if(n&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(e,t,n){var r=[],a=Cd(e,r,n);return r.length<2?n:a+t(r)}(t.registered,a,hp(r))},theme:i.useContext(tp)},l=e.children(o);return n=!0,i.createElement(i.Fragment,null,i.createElement(bp,{cache:t,serializedArr:r}),l)}));if("production"!==process.env.NODE_ENV&&(vp.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var xp="undefined"!=typeof document,yp="undefined"!=typeof jest||"undefined"!=typeof vi;if(xp&&!yp){var wp="undefined"!=typeof globalThis?globalThis:xp?window:global,Cp="__EMOTION_REACT_"+"11.11.1".split(".")[0]+"__";wp[Cp]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),wp[Cp]=!0}}function Ep(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return l}}(e,t)||iu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ip(e,t){if(null==e)return{};var n,r,a=P(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var kp="undefined"!=typeof document?e.useLayoutEffect:e.useEffect,Ap=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Mp=function(){};function Hp(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Np(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(Hp(e,o)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Vp=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===Uc(e)&&null!==e?[e]:[];var t},Zp=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Kc({},Ip(e,Ap))},Dp=function(e,t,n){var r=e.cx,a=e.getStyles,i=e.getClassNames,o=e.className;return{css:a(t,e),className:r(null!=n?n:{},i(t,e),o)}};function Sp(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Lp(e){return Sp(e)?window.pageYOffset:e.scrollTop}function Op(e,t){Sp(e)?window.scrollTo(0,t):e.scrollTop=t}function Rp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Mp,a=Lp(e),i=t-a,o=0;!function t(){var l,s=i*((l=(l=o+=10)/n-1)*l*l+1)+a;Op(e,s),o<n?window.requestAnimationFrame(t):r(e)}()}function $p(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=t.offsetHeight/3;r.bottom+a>n.bottom?Op(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):r.top-a<n.top&&Op(e,Math.max(t.offsetTop-a,0))}function Tp(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var zp=!1,Bp={get passive(){return zp=!0}},Gp="undefined"!=typeof window?window:{};Gp.addEventListener&&Gp.removeEventListener&&(Gp.addEventListener("p",Mp,Bp),Gp.removeEventListener("p",Mp,!1));var Pp=zp;function Wp(e){return null!=e}function jp(e,t,n){return e?t:n}var Fp=["children","innerProps"],Xp=["children","innerProps"];function Yp(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,i=e.shouldScroll,o=e.isFixedPosition,l=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,m=p.height,g=p.top,h=n.offsetParent.getBoundingClientRect().top,b=o?window.innerHeight:Sp(u=s)?window.innerHeight:u.clientHeight,v=Lp(s),x=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=h-y,C=b-g,E=w+v,I=d-v-g,k=f-b+v+x,A=v+g-y,M=160;switch(a){case"auto":case"bottom":if(C>=m)return{placement:"bottom",maxHeight:t};if(I>=m&&!o)return i&&Rp(s,k,M),{placement:"bottom",maxHeight:t};if(!o&&I>=r||o&&C>=r)return i&&Rp(s,k,M),{placement:"bottom",maxHeight:o?C-x:I-x};if("auto"===a||o){var H=t,N=o?w:E;return N>=r&&(H=Math.min(N-x-l,t)),{placement:"top",maxHeight:H}}if("bottom"===a)return i&&Op(s,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(E>=m&&!o)return i&&Rp(s,A,M),{placement:"top",maxHeight:t};if(!o&&E>=r||o&&w>=r){var V=t;return(!o&&E>=r||o&&w>=r)&&(V=o?w-y:E-y),i&&Rp(s,A,M),{placement:"top",maxHeight:V}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}var Jp,Up=function(e){return"auto"===e?"bottom":e},Qp=e.createContext(null),_p=function(t){var n=t.children,r=t.minMenuHeight,a=t.maxMenuHeight,i=t.menuPlacement,o=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,c=(e.useContext(Qp)||{}).setPortalPlacement,u=e.useRef(null),d=Ep(e.useState(a),2),p=d[0],f=d[1],m=Ep(e.useState(null),2),g=m[0],h=m[1],b=s.spacing.controlHeight;return kp((function(){var e=u.current;if(e){var t="fixed"===o,n=Yp({maxHeight:a,menuEl:e,minHeight:r,placement:i,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:b});f(n.maxHeight),h(n.placement),null==c||c(n.placement)}}),[a,i,o,l,r,c,b]),n({ref:u,placerProps:Kc(Kc({},t),{},{placement:g||Up(i),maxHeight:p})})},qp=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return pp("div",G({},Dp(e,"menu",{menu:!0}),{ref:n},r),t)},Kp=function(e,t){var n=e.theme,r=n.spacing.baseUnit,a=n.colors;return Kc({textAlign:"center"},t?{}:{color:a.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},ef=Kp,tf=Kp,nf=["size"],rf=["innerProps","isRtl","size"];var af,of,lf="production"===process.env.NODE_ENV?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAo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biAgaXNSdGwsXG4gIHNpemUgPSA0LFxuICAuLi5yZXN0UHJvcHNcbn06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPikgPT4ge1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKFxuICAgICAgICB7IC4uLnJlc3RQcm9wcywgaW5uZXJQcm9wcywgaXNSdGwsIHNpemUgfSxcbiAgICAgICAgJ2xvYWRpbmdJbmRpY2F0b3InLFxuICAgICAgICB7XG4gICAgICAgICAgaW5kaWNhdG9yOiB0cnVlLFxuICAgICAgICAgICdsb2FkaW5nLWluZGljYXRvcic6IHRydWUsXG4gICAgICAgIH1cbiAgICAgICl9XG4gICAgICB7Li4uaW5uZXJQcm9wc31cbiAgICA+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MH0gb2Zmc2V0PXtpc1J0bH0gLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},sf=function(e){var t=e.size,n=Ip(e,nf);return pp("svg",G({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:lf},n))},cf=function(e){return pp(sf,G({size:20},e),pp("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},uf=function(e){return pp(sf,G({size:20},e),pp("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},df=function(e,t){var n=e.isFocused,r=e.theme,a=r.spacing.baseUnit,i=r.colors;return Kc({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a,":hover":{color:n?i.neutral80:i.neutral40}})},pf=df,ff=df,mf=function(){var e=gp.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Jp||(af=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],of||(of=af.slice(0)),Jp=Object.freeze(Object.defineProperties(af,{raw:{value:Object.freeze(of)}})))),gf=function(e){var t=e.delay,n=e.offset;return pp("span",{css:gp({animation:"".concat(mf," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"production"===process.env.NODE_ENV?"":";label:LoadingDot;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IH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PXsxNjB9IG9mZnNldCAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezMyMH0gb2Zmc2V0PXshaXNSdGx9IC8+XG4gICAgPC9kaXY+XG4gICk7XG59O1xuIl19 */")})},hf=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.innerRef,i=e.innerProps,o=e.menuIsOpen;return pp("div",G({ref:a},Dp(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":o}),i,{"aria-disabled":n||void 0}),t)},bf=["data"],vf=function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.getClassNames,i=e.Heading,o=e.headingProps,l=e.innerProps,s=e.label,c=e.theme,u=e.selectProps;return pp("div",G({},Dp(e,"group",{group:!0}),l),pp(i,G({},o,{selectProps:u,theme:c,getStyles:r,getClassNames:a,cx:n}),s),pp("div",null,t))},xf=["innerRef","isDisabled","isHidden","inputClassName"],yf={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},wf={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Kc({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},yf)},Cf=function(e){return Kc({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},yf)},Ef=function(e){var t=e.cx,n=e.value,r=Zp(e),a=r.innerRef,i=r.isDisabled,o=r.isHidden,l=r.inputClassName,s=Ip(r,xf);return pp("div",G({},Dp(e,"input",{"input-container":!0}),{"data-value":n||""}),pp("input",G({className:t({input:!0},l),ref:a,style:Cf(o),disabled:i},s)))},If=function(e){var t=e.children,n=e.innerProps;return pp("div",n,t)};var kf=function(e){var t=e.children,n=e.components,r=e.data,a=e.innerProps,i=e.isDisabled,o=e.removeProps,l=e.selectProps,s=n.Container,c=n.Label,u=n.Remove;return pp(s,{data:r,innerProps:Kc(Kc({},Dp(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),a),selectProps:l},pp(c,{data:r,innerProps:Kc({},Dp(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),pp(u,{data:r,innerProps:Kc(Kc({},Dp(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:l}))},Af=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.isSelected,i=e.innerRef,o=e.innerProps;return pp("div",G({},Dp(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":a}),{ref:i,"aria-disabled":n},o),t)},Mf=function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return pp("div",G({},Dp(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},Hf={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return pp("div",G({},Dp(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||pp(cf,null))},Control:hf,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return pp("div",G({},Dp(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||pp(uf,null))},DownChevron:uf,CrossIcon:cf,Group:vf,GroupHeading:function(e){var t=Zp(e);t.data;var n=Ip(t,bf);return pp("div",G({},Dp(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return pp("div",G({},Dp(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return pp("span",G({},t,Dp(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:Ef,LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,a=void 0===r?4:r,i=Ip(e,rf);return pp("div",G({},Dp(Kc(Kc({},i),{},{innerProps:t,isRtl:n,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),pp(gf,{delay:0,offset:n}),pp(gf,{delay:160,offset:!0}),pp(gf,{delay:320,offset:!n}))},Menu:qp,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,a=e.isMulti;return pp("div",G({},Dp(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:r},n),t)},MenuPortal:function(t){var r=t.appendTo,a=t.children,i=t.controlElement,o=t.innerProps,l=t.menuPlacement,s=t.menuPosition,c=e.useRef(null),u=e.useRef(null),d=Ep(e.useState(Up(l)),2),p=d[0],f=d[1],m=e.useMemo((function(){return{setPortalPlacement:f}}),[]),g=Ep(e.useState(null),2),h=g[0],b=g[1],v=e.useCallback((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===s?0:window.pageYOffset,n=e[p]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||b({offset:n,rect:e})}}),[i,s,p,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);kp((function(){v()}),[v]);var x=e.useCallback((function(){"function"==typeof u.current&&(u.current(),u.current=null),i&&c.current&&(u.current=Ea(i,c.current,v,{elementResize:"ResizeObserver"in window}))}),[i,v]);kp((function(){x()}),[x]);var y=e.useCallback((function(e){c.current=e,x()}),[x]);if(!r&&"fixed"!==s||!h)return null;var w=pp("div",G({ref:y},Dp(Kc(Kc({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),a);return pp(Qp.Provider,{value:m},r?n.createPortal(w,r):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,a=Ip(e,Xp);return pp("div",G({},Dp(Kc(Kc({},a),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,a=Ip(e,Fp);return pp("div",G({},Dp(Kc(Kc({},a),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:kf,MultiValueContainer:If,MultiValueLabel:If,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return pp("div",G({role:"button"},n),t||pp(cf,{size:14}))},Option:Af,Placeholder:function(e){var t=e.children,n=e.innerProps;return pp("div",G({},Dp(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,a=e.isRtl;return pp("div",G({},Dp(e,"container",{"--is-disabled":r,"--is-rtl":a}),n),t)},SingleValue:Mf,ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,a=e.hasValue;return pp("div",G({},Dp(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":a}),n),t)}},Nf=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Vf(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],a=t[n],!(r===a||Nf(r)&&Nf(a)))return!1;var r,a;return!0}for(var Zf="production"===process.env.NODE_ENV?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},Df=function(e){return pp("span",G({css:Zf},e))},Sf={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,a=e.context,i=e.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,a=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,a=e.label,i=void 0===a?"":a,o=e.selectValue,l=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&o)return"value ".concat(i," focused, ").concat(u(o,n),".");if("menu"===t&&c){var d=l?" disabled":"",p="".concat(s?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Lf=function(t){var n=t.ariaSelection,r=t.focusedOption,a=t.focusedValue,i=t.focusableOptions,o=t.isFocused,l=t.selectValue,s=t.selectProps,c=t.id,u=t.isAppleDevice,d=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,m=s.isMulti,g=s.isOptionDisabled,h=s.isSearchable,b=s.menuIsOpen,v=s.options,x=s.screenReaderStatus,y=s.tabSelectsValue,w=s.isLoading,C=s["aria-label"],E=s["aria-live"],I=e.useMemo((function(){return Kc(Kc({},Sf),d||{})}),[d]),k=e.useMemo((function(){var e,t="";if(n&&I.onChange){var r=n.option,a=n.options,i=n.removedValue,o=n.removedValues,s=n.value,c=i||r||(e=s,Array.isArray(e)?null:e),u=c?p(c):"",d=a||o||void 0,f=d?d.map(p):[],m=Kc({isDisabled:c&&g(c,l),label:u,labels:f},n);t=I.onChange(m)}return t}),[n,I,g,l,p]),A=e.useMemo((function(){var e="",t=r||a,n=!!(r&&l&&l.includes(r));if(t&&I.onFocus){var o={focused:t,label:p(t),isDisabled:g(t,l),isSelected:n,options:i,context:t===r?"menu":"value",selectValue:l,isAppleDevice:u};e=I.onFocus(o)}return e}),[r,a,p,g,I,i,l,u]),M=e.useMemo((function(){var e="";if(b&&v.length&&!w&&I.onFilter){var t=x({count:i.length});e=I.onFilter({inputValue:f,resultsMessage:t})}return e}),[i,f,b,I,v,x,w]),H="initial-input-focus"===(null==n?void 0:n.action),N=e.useMemo((function(){var e="";if(I.guidance){var t=a?"value":b?"menu":"input";e=I.guidance({"aria-label":C,context:t,isDisabled:r&&g(r,l),isMulti:m,isSearchable:h,tabSelectsValue:y,isInitialFocus:H})}return e}),[C,r,a,m,g,h,b,I,l,y,H]),V=pp(e.Fragment,null,pp("span",{id:"aria-selection"},k),pp("span",{id:"aria-focused"},A),pp("span",{id:"aria-results"},M),pp("span",{id:"aria-guidance"},N));return pp(e.Fragment,null,pp(Df,{id:c},H&&V),pp(Df,{"aria-live":E,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!H&&V))},Of=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Rf=new RegExp("["+Of.map((function(e){return e.letters})).join("")+"]","g"),$f={},Tf=0;Tf<Of.length;Tf++)for(var zf=Of[Tf],Bf=0;Bf<zf.letters.length;Bf++)$f[zf.letters[Bf]]=zf.base;var Gf=function(e){return e.replace(Rf,(function(e){return $f[e]}))},Pf=function(e,t){void 0===t&&(t=Vf);var n=null;function r(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(Gf),Wf=function(e){return e.replace(/^\s+|\s+$/g,"")},jf=function(e){return"".concat(e.label," ").concat(e.value)},Ff=["innerRef"];function Xf(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=Object.entries(e).filter((function(e){var t=Ep(e,1)[0];return!n.includes(t)}));return a.reduce((function(e,t){var n=Ep(t,2),r=n[0],a=n[1];return e[r]=a,e}),{})}(Ip(e,Ff),"onExited","in","enter","exit","appear");return pp("input",G({ref:t},n,{css:gp({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"production"===process.env.NODE_ENV?"":";label:DummyInput;","production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUluc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BncmlkQXJlYTogJzEgLyAxIC8gMiAvIDMnLFxuICAgICAgICBvdXRsaW5lOiAwLFxuICAgICAgICBwYWRkaW5nOiAwLFxuICAgICAgICAvLyBpbXBvcnRhbnQhIHdpdGhvdXQgYHdpZHRoYCBicm93c2VycyB3b24ndCBhbGxvdyBmb2N1c1xuICAgICAgICB3aWR0aDogMSxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIGRlc2t0b3BcbiAgICAgICAgY29sb3I6ICd0cmFuc3BhcmVudCcsXG5cbiAgICAgICAgLy8gcmVtb3ZlIGN1cnNvciBvbiBtb2JpbGUgd2hpbHN0IG1haW50YWluaW5nIFwic2Nyb2xsIGludG8gdmlld1wiIGJlaGF2aW91clxuICAgICAgICBsZWZ0OiAtMTAwLFxuICAgICAgICBvcGFjaXR5OiAwLFxuICAgICAgICBwb3NpdGlvbjogJ3JlbGF0aXZlJyxcbiAgICAgICAgdHJhbnNmb3JtOiAnc2NhbGUoLjAxKScsXG4gICAgICB9fVxuICAgIC8+XG4gICk7XG59XG4iXX0= */")}))}var Yf=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};var Jf=["boxSizing","height","overflow","paddingRight","position"],Uf={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Qf(e){e.preventDefault()}function _f(e){e.stopPropagation()}function qf(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Kf(){return"ontouchstart"in window||navigator.maxTouchPoints}var em=!("undefined"==typeof window||!window.document||!window.document.createElement),tm=0,nm={capture:!1,passive:!1};var rm=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},am="production"===process.env.NODE_ENV?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset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uICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};function im(t){var n=t.children,r=t.lockEnabled,a=t.captureEnabled,i=function(t){var n=t.isEnabled,r=t.onBottomArrive,a=t.onBottomLeave,i=t.onTopArrive,o=t.onTopLeave,l=e.useRef(!1),s=e.useRef(!1),c=e.useRef(0),u=e.useRef(null),d=e.useCallback((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,p=n.clientHeight,f=u.current,m=t>0,g=d-p-c,h=!1;g>t&&l.current&&(a&&a(e),l.current=!1),m&&s.current&&(o&&o(e),s.current=!1),m&&t>g?(r&&!l.current&&r(e),f.scrollTop=d,h=!0,l.current=!0):!m&&-t>c&&(i&&!s.current&&i(e),f.scrollTop=0,h=!0,s.current=!0),h&&Yf(e)}}),[r,a,i,o]),p=e.useCallback((function(e){d(e,e.deltaY)}),[d]),f=e.useCallback((function(e){c.current=e.changedTouches[0].clientY}),[]),m=e.useCallback((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),g=e.useCallback((function(e){if(e){var t=!!Pp&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}}),[m,f,p]),h=e.useCallback((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))}),[m,f,p]);return e.useEffect((function(){if(n){var e=u.current;return g(e),function(){h(e)}}}),[n,g,h]),function(e){u.current=e}}({isEnabled:void 0===a||a,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),o=function(t){var n=t.isEnabled,r=t.accountForScrollbars,a=void 0===r||r,i=e.useRef({}),o=e.useRef(null),l=e.useCallback((function(e){if(em){var t=document.body,n=t&&t.style;if(a&&Jf.forEach((function(e){var t=n&&n[e];i.current[e]=t})),a&&tm<1){var r=parseInt(i.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,l=window.innerWidth-o+r||0;Object.keys(Uf).forEach((function(e){var t=Uf[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(l,"px"))}t&&Kf()&&(t.addEventListener("touchmove",Qf,nm),e&&(e.addEventListener("touchstart",qf,nm),e.addEventListener("touchmove",_f,nm))),tm+=1}}),[a]),s=e.useCallback((function(e){if(em){var t=document.body,n=t&&t.style;tm=Math.max(tm-1,0),a&&tm<1&&Jf.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&Kf()&&(t.removeEventListener("touchmove",Qf,nm),e&&(e.removeEventListener("touchstart",qf,nm),e.removeEventListener("touchmove",_f,nm)))}}),[a]);return e.useEffect((function(){if(n){var e=o.current;return l(e),function(){s(e)}}}),[n,l,s]),function(e){o.current=e}}({isEnabled:r});return pp(e.Fragment,null,r&&pp("div",{onClick:rm,css:am}),n((function(e){i(e),o(e)})))}var om="production"===process.env.NODE_ENV?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# s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2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}},lm=function(e){var t=e.name,n=e.onFocus;return pp("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:om,value:"",onChange:function(){}})};function sm(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function cm(){return sm(/^Mac/i)}function um(){return sm(/^iPhone/i)||sm(/^iPad/i)||cm()&&navigator.maxTouchPoints>1}var dm=function(e){return e.label},pm=function(e){return e.value},fm={clearIndicator:ff,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,a=e.theme,i=a.colors,o=a.borderRadius;return Kc({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:pf,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,a=n.spacing;return Kc({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*a.baseUnit,paddingRight:3*a.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,a=r.spacing.baseUnit,i=r.colors;return Kc({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*a,marginTop:2*a})},input:function(e,t){var n=e.isDisabled,r=e.value,a=e.theme,i=a.spacing,o=a.colors;return Kc(Kc({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},wf),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:o.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,a=e.theme,i=a.colors,o=a.spacing.baseUnit;return Kc({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o})},loadingMessage:tf,menu:function(e,t){var n,r=e.placement,a=e.theme,i=a.borderRadius,o=a.spacing,l=a.colors;return Kc((_c(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),_c(n,"position","absolute"),_c(n,"width","100%"),_c(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Kc({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,a=n.borderRadius,i=n.colors;return Kc({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,a=n.colors,i=e.cropWithEllipsis;return Kc({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,a=n.borderRadius,i=n.colors,o=e.isFocused;return Kc({alignItems:"center",display:"flex"},t?{}:{borderRadius:a/2,backgroundColor:o?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:ef,option:function(e,t){var n=e.isDisabled,r=e.isFocused,a=e.isSelected,i=e.theme,o=i.spacing,l=i.colors;return Kc({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:a?l.primary:r?l.primary25:"transparent",color:n?l.neutral20:a?l.neutral0:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),":active":{backgroundColor:n?void 0:a?l.primary:l.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,a=n.colors;return Kc({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:a.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,a=r.spacing,i=r.colors;return Kc({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,a=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Kc({alignItems:"center",display:r&&a&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},mm={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},gm={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Tp(),captureMenuScroll:!Tp(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=Kc({ignoreCase:!0,ignoreAccents:!0,stringify:jf,trim:!0,matchFrom:"any"},e),a=r.ignoreCase,i=r.ignoreAccents,o=r.stringify,l=r.trim,s=r.matchFrom,c=l?Wf(n):n,u=l?Wf(o(t)):o(t);return a&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=Pf(c),u=Gf(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:dm,getOptionValue:pm,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function hm(e,t,n,r){return{type:"option",data:t,isDisabled:Im(e,t,n),isSelected:km(e,t,n),label:Cm(e,t),value:Em(e,t),index:r}}function bm(e,t){return e.options.map((function(n,r){if("options"in n){var a=n.options.map((function(n,r){return hm(e,n,t,r)})).filter((function(t){return ym(e,t)}));return a.length>0?{type:"group",data:n,options:a,index:r}:void 0}var i=hm(e,n,t,r);return ym(e,i)?i:void 0})).filter(Wp)}function vm(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ou(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function xm(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,ou(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ym(e,t){var n=e.inputValue,r=void 0===n?"":n,a=t.data,i=t.isSelected,o=t.label,l=t.value;return(!Mm(e)||!i)&&Am(e,{label:o,value:l,data:a},r)}var wm=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},Cm=function(e,t){return e.getOptionLabel(t)},Em=function(e,t){return e.getOptionValue(t)};function Im(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function km(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Em(e,t);return n.some((function(t){return Em(e,t)===r}))}function Am(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Mm=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Hm=1,Nm=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W(e,t)}(r,e.Component);var n=ru(r);function r(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=cm()||um(),t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,a=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),a(e,n)},t.setValue=function(e,n,r){var a=t.props,i=a.closeMenuOnSelect,o=a.isMulti,l=a.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:l}),i&&(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,a=n.isMulti,i=n.name,o=t.state.selectValue,l=a&&t.isOptionSelected(e,o),s=t.isOptionDisabled(e,o);if(l){var c=t.getOptionValue(e);t.setValue(o.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(s)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});a?t.setValue([].concat(ou(o),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,a=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==a})),o=jp(n,i,i[0]||null);t.onChange(o,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(jp(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],a=n.slice(0,n.length-1),i=jp(e,a,a[0]||null);t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return wm(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return xm(bm(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Np.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return Cm(t.props,e)},t.getOptionValue=function(e){return Em(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,a=fm[e](n,r);a.boxSizing="border-box";var i=t.props.styles[e];return i?i(a,n):a},t.getClassNames=function(e,n){var r,a;return null===(r=(a=t.props.classNames)[e])||void 0===r?void 0:r.call(a,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,Kc(Kc({},Hf),e.components);var e},t.buildCategorizedOptions=function(){return bm(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return vm(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:Kc({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,a=n.menuIsOpen;t.focusInput(),a?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Sp(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var a=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=a>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Mm(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,a=n.backspaceRemovesValue,i=n.escapeClearsValue,o=n.inputValue,l=n.isClearable,s=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,m=f.focusedOption,g=f.focusedValue,h=f.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||o)return;t.focusValue("previous");break;case"ArrowRight":if(!r||o)return;t.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(g)t.removeValue(g);else{if(!a)return;r?t.popValue():l&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!m||p&&t.isOptionSelected(m,h))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:o}),t.onMenuClose()):l&&i&&t.clearValue();break;case" ":if(o)return;if(!c){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Hm),t.state.selectValue=Vp(e.value),e.menuIsOpen&&t.state.selectValue.length){var a=t.getFocusableOptionsWithIds(),i=t.buildFocusableOptions(),o=i.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=a,t.state.focusedOption=i[o],t.state.focusedOptionId=wm(a,i[o])}return t}return function(e,t,n){t&&eu(e.prototype,t),n&&eu(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&$p(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,a=this.state.isFocused;(a&&!n&&e.isDisabled||a&&r&&!e.menuIsOpen)&&this.focusInput(),a&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):a||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&($p(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,a=n.isFocused,i=this.buildFocusableOptions(),o="first"===e?0:i.length-1;if(!this.props.isMulti){var l=i.indexOf(r[0]);l>-1&&(o=l)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[o],focusedOptionId:this.getFocusedOptionId(i[o])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=n.indexOf(r);r||(a=-1);var i=n.length-1,o=-1;if(n.length){switch(e){case"previous":o=0===a?0:-1===a?i:a-1;break;case"next":a>-1&&a<i&&(o=a+1)}this.setState({inputIsHidden:-1!==o,focusedValue:n[o]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var a=0,i=r.indexOf(n);n||(i=-1),"up"===e?a=i>0?i-1:r.length-1:"down"===e?a=(i+1)%r.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>r.length-1&&(a=r.length-1):"last"===e&&(a=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[a])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(mm):Kc(Kc({},mm),this.props.theme):mm}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,a=this.getValue,i=this.selectOption,o=this.setValue,l=this.props,s=l.isMulti,c=l.isRtl,u=l.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:a,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:u,selectOption:i,selectProps:l,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Im(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return km(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Am(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,a=e.inputValue,o=e.tabIndex,l=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,m=this.commonProps,g=r||this.getElementId("input"),h=Kc(Kc(Kc({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?i.createElement(u,G({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:l,type:"text",value:a},h)):i.createElement(Xf,G({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Mp,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:l,value:""},h))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,a=t.MultiValueLabel,o=t.MultiValueRemove,l=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,m=u.inputValue,g=u.placeholder,h=this.state,b=h.selectValue,v=h.focusedValue,x=h.isFocused;if(!this.hasValue()||!d)return m?null:i.createElement(s,G({},c,{key:"placeholder",isDisabled:p,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);if(f)return b.map((function(t,l){var s=t===v,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return i.createElement(n,G({},c,{components:{Container:r,Label:a,Remove:o},isFocused:s,isDisabled:p,key:u,index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var y=b[0];return i.createElement(l,G({},c,{data:y,isDisabled:p}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||a)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,G({},t,{innerProps:l,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!e||!a)return null;return i.createElement(e,G({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return i.createElement(n,G({},r,{isDisabled:a,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i.createElement(e,G({},t,{innerProps:a,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,a=t.Menu,o=t.MenuList,l=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,g=f.inputValue,h=f.isLoading,b=f.loadingMessage,v=f.minMenuHeight,x=f.maxMenuHeight,y=f.menuIsOpen,w=f.menuPlacement,C=f.menuPosition,E=f.menuPortalTarget,I=f.menuShouldBlockScroll,k=f.menuShouldScrollIntoView,A=f.noOptionsMessage,M=f.onMenuScrollToTop,H=f.onMenuScrollToBottom;if(!y)return null;var N,V=function(t,n){var r=t.type,a=t.data,o=t.isDisabled,l=t.isSelected,s=t.label,c=t.value,f=p===a,m=o?void 0:function(){return e.onOptionHover(a)},g=o?void 0:function(){return e.selectOption(a)},h="".concat(e.getElementId("option"),"-").concat(n),b={id:h,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:l};return i.createElement(u,G({},d,{innerProps:b,data:a,isDisabled:o,isSelected:l,key:h,label:s,type:r,value:c,isFocused:f,innerRef:f?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())N=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,o=t.options,l=t.index,s="".concat(e.getElementId("group"),"-").concat(l),c="".concat(s,"-heading");return i.createElement(n,G({},d,{key:s,data:a,options:o,Heading:r,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return V(e,"".concat(l,"-").concat(e.index))})))}if("option"===t.type)return V(t,"".concat(t.index))}));else if(h){var Z=b({inputValue:g});if(null===Z)return null;N=i.createElement(s,d,Z)}else{var D=A({inputValue:g});if(null===D)return null;N=i.createElement(c,d,D)}var S={minMenuHeight:v,maxMenuHeight:x,menuPlacement:w,menuPosition:C,menuShouldScrollIntoView:k},L=i.createElement(_p,G({},d,S),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,s=r.maxHeight;return i.createElement(a,G({},d,S,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:h,placement:l}),i.createElement(im,{captureEnabled:m,onTopArrive:M,onBottomArrive:H,lockEnabled:I},(function(t){return i.createElement(o,G({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:h,maxHeight:s,focusedOption:p}),N)})))}));return E||"fixed"===C?i.createElement(l,G({},d,{appendTo:E,controlElement:this.controlRef,menuPlacement:w,menuPosition:C}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,a=t.isMulti,o=t.name,l=t.required,s=this.state.selectValue;if(l&&!this.hasValue()&&!r)return i.createElement(lm,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(a){if(n){var c=s.map((function(t){return e.getOptionValue(t)})).join(n);return i.createElement("input",{name:o,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,n){return i.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})})):i.createElement("input",{name:o,type:"hidden",value:""});return i.createElement("div",null,u)}var d=s[0]?this.getOptionValue(s[0]):"";return i.createElement("input",{name:o,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,a=t.focusedValue,o=t.isFocused,l=t.selectValue,s=this.getFocusableOptions();return i.createElement(Lf,G({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:a,isFocused:o,selectValue:l,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,a=e.ValueContainer,o=this.props,l=o.className,s=o.id,c=o.isDisabled,u=o.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return i.createElement(r,G({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),i.createElement(t,G({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),i.createElement(a,G({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),i.createElement(n,G({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,o=t.isFocused,l=t.prevWasFocused,s=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,m=Vp(u),g={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var h=d?function(e,t){return vm(bm(e,t))}(e,m):[],b=d?xm(bm(e,m),"".concat(s,"-option")):[],v=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,x=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,h);g={selectValue:m,focusedOption:x,focusedOptionId:wm(b,x),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var y=null!=a&&e!==n?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},w=i,C=o&&l;return o&&!C&&(w={value:jp(f,m,m[0]||null),options:m,action:"initial-input-focus"},C=!l),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),Kc(Kc(Kc({},g),y),{},{prevProps:e,ariaSelection:w,prevWasFocused:C})}}]),r}();Nm.defaultProps=gm;var Vm=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Zm(t){var n=t.defaultInputValue,r=void 0===n?"":n,a=t.defaultMenuIsOpen,i=void 0!==a&&a,o=t.defaultValue,l=void 0===o?null:o,s=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,p=t.onMenuClose,f=t.onMenuOpen,m=t.value,g=Ip(t,Vm),h=Ep(e.useState(void 0!==s?s:r),2),b=h[0],v=h[1],x=Ep(e.useState(void 0!==c?c:i),2),y=x[0],w=x[1],C=Ep(e.useState(void 0!==m?m:l),2),E=C[0],I=C[1],k=e.useCallback((function(e,t){"function"==typeof u&&u(e,t),I(e)}),[u]),A=e.useCallback((function(e,t){var n;"function"==typeof d&&(n=d(e,t)),v(void 0!==n?n:e)}),[d]),M=e.useCallback((function(){"function"==typeof f&&f(),w(!0)}),[f]),H=e.useCallback((function(){"function"==typeof p&&p(),w(!1)}),[p]),N=void 0!==s?s:b,V=void 0!==c?c:y,Z=void 0!==m?m:E;return Kc(Kc({},g),{},{inputValue:N,menuIsOpen:V,onChange:k,onInputChange:A,onMenuClose:H,onMenuOpen:M,value:Z})}var Dm=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],Sm=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),r=String(t.getOptionValue(e)).toLowerCase(),a=String(t.getOptionLabel(e)).toLowerCase();return r===n||a===n},Lm={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return Sm(e,t,r)}))||n.some((function(t){return Sm(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var Om=e.forwardRef((function(t,n){var r=function(t){var n=t.allowCreateWhileLoading,r=void 0!==n&&n,a=t.createOptionPosition,i=void 0===a?"last":a,o=t.formatCreateLabel,l=void 0===o?Lm.formatCreateLabel:o,s=t.isValidNewOption,c=void 0===s?Lm.isValidNewOption:s,u=t.getNewOptionData,d=void 0===u?Lm.getNewOptionData:u,p=t.onCreateOption,f=t.options,m=void 0===f?[]:f,g=t.onChange,h=Ip(t,Dm),b=h.getOptionValue,v=void 0===b?pm:b,x=h.getOptionLabel,y=void 0===x?dm:x,w=h.inputValue,C=h.isLoading,E=h.isMulti,I=h.value,k=h.name,A=e.useMemo((function(){return c(w,Vp(I),m,{getOptionValue:v,getOptionLabel:y})?d(w,l(w)):void 0}),[l,d,y,v,w,c,m,I]),M=e.useMemo((function(){return!r&&C||!A?m:"first"===i?[A].concat(ou(m)):[].concat(ou(m),[A])}),[r,i,C,A,m]),H=e.useCallback((function(e,t){if("select-option"!==t.action)return g(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==A)g(e,t);else if(p)p(w);else{var r=d(w,w),a={action:"create-option",name:k,option:r};g(jp(E,[].concat(ou(Vp(I)),[r]),r),a)}}),[d,w,E,k,A,p,g,I]);return Kc(Kc({},h),{},{options:M,onChange:H})}(Zm(t));return i.createElement(Nm,G({ref:n},r))})),Rm=Om,$m=e.forwardRef((function(e,t){var n=Zm(e);return i.createElement(Nm,G({ref:t},n))}));const Tm=o.default.div`
|
|
972
972
|
min-width: ${({minWidth:e})=>e||"auto"};
|
|
973
973
|
cursor: ${({isDisabled:e})=>e?"not-allowed":"auto"};
|
|
974
974
|
`,zm=o.default(Hf.MenuList)`
|
|
@@ -976,7 +976,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
976
976
|
`,Bm=o.default.div``,Gm=e=>{const t=x();return i.createElement(Bm,null,i.createElement(Hf.ClearIndicator,Object.assign({},e),i.createElement(I,{name:"close_circle",color:t.palette.black,type:"fill"})))},Pm=o.default.div`
|
|
977
977
|
transition: transform 150ms;
|
|
978
978
|
transform: ${({menuIsOpen:e})=>e?"rotate(180deg)":""};
|
|
979
|
-
`,Wm=e=>{var{isDisabled:t,error:n}=e,r=s(e,["isDisabled","error"]);const a=x();let o="";return o=t?c.basic[400]:n?a.palette.danger.main:a.palette.black,Hf.DropdownIndicator&&i.createElement(Hf.DropdownIndicator,Object.assign({},r),i.createElement(Pm,{menuIsOpen:r.selectProps.menuIsOpen},i.createElement(I,{name:"arrow_bottom",size:"md",color:o})))},jm=e=>{const t=x();return i.createElement(Hf.MultiValueRemove,Object.assign({},e),i.createElement(I,{name:"close_circle",color:t.palette.black}))},Fm=(e,t)=>{const n={control:(n,{menuIsOpen:r})=>Object.assign(Object.assign({},n),{boxShadow:"none",borderTopColor:e.palette.divider,borderRightColor:e.palette.divider,borderLeftColor:e.palette.divider,borderBottomColor:r?"transparent":e.palette.divider,borderColor:t?`${e.palette.danger.main}!important`:"",borderRadius:r?`${e.radius}px ${e.radius}px 0 0`:`${e.radius}px`,"&:hover":{}}),input:e=>Object.assign(Object.assign({},e),{margin:"0 2px",paddingBottom:0,paddingTop:0}),menu:n=>Object.assign(Object.assign({},n),{marginTop:"-1px",boxShadow:"none",borderRadius:`0 0 ${e.radius}px ${e.radius}px`,borderRight:`1px solid ${t?e.palette.danger.main:e.palette.divider}`,borderBottom:`1px solid ${t?e.palette.danger.main:e.palette.divider}`,borderLeft:`1px solid ${t?e.palette.danger.main:e.palette.divider}`}),menuPortal:e=>Object.assign(Object.assign({},e),{zIndex:h.dropdown}),menuList:e=>Object.assign(Object.assign({},e),{paddingTop:"12px",paddingBottom:"8px"}),noOptionsMessage:t=>Object.assign(Object.assign({},t),{fontSize:`${O.sm}px`,color:e.palette.text.hint}),option:(t,{isSelected:n,isFocused:r,isDisabled:a})=>{let i="transparent",o=n?e.palette.white:e.palette.black;return n?i=e.palette.primary.main:a?o=e.palette.text.disabled:r&&(i=e.palette.gray.light),Object.assign(Object.assign({},t),{padding:"4px 8px 5px",color:o,fontSize:`${O.sm}px`,":active":{backgroundColor:e.palette.gray.main},backgroundColor:i})},placeholder:(n,{isDisabled:r,isFocused:a})=>{let i=e.palette.black;switch(!0){case r:i=e.palette.text.disabled;break;case t:i=e.palette.danger.main;break;case a:i=e.palette.text.hint}return Object.assign(Object.assign({},n),{transition:"color 0.2s",color:i,fontSize:`${O.sm}px`})},singleValue:(n,{isDisabled:r})=>{let a=e.palette.black;return t?a=e.palette.danger.main:r&&(a=e.palette.text.disabled),Object.assign(Object.assign({},n),{color:`${a}`,fontSize:`${O.sm}px`})},multiValue:t=>Object.assign(Object.assign({},t),{backgroundColor:e.palette.gray.highlight,padding:"2px 0px 3px 2px",margin:"0px 4px",border:`1px solid ${e.palette.divider}`,borderRadius:`${e.radius}px`}),multiValueLabel:(n,{isDisabled:r})=>{let a=e.palette.black;return t?a=e.palette.danger.main:r&&(a=e.palette.text.disabled),Object.assign(Object.assign({},n),{padding:0,color:`${a}`,fontSize:`${O.sm}px`})},multiValueRemove:e=>Object.assign(Object.assign({},e),{":hover":{backgroundColor:"transparent"},padding:"0px 8px"}),valueContainer:e=>Object.assign(Object.assign({},e),{minHeight:"40px"})};return n};var Xm=i.forwardRef(((e,t)=>{const n=Fn({props:e,name:"Select"}),{onInputChange:r,minWidth:a,isDisabled:o,error:l=!1,closeMenuOnSelect:c=!0,placeholder:u,emptyMessage:d="Not found"}=n,p=s(n,["onInputChange","minWidth","isDisabled","error","closeMenuOnSelect","placeholder","emptyMessage"]),f=x();return i.createElement(
|
|
979
|
+
`,Wm=e=>{var{isDisabled:t,error:n}=e,r=s(e,["isDisabled","error"]);const a=x();let o="";return o=t?c.basic[400]:n?a.palette.danger.main:a.palette.black,Hf.DropdownIndicator&&i.createElement(Hf.DropdownIndicator,Object.assign({},r),i.createElement(Pm,{menuIsOpen:r.selectProps.menuIsOpen},i.createElement(I,{name:"arrow_bottom",size:"md",color:o})))},jm=e=>{const t=x();return i.createElement(Hf.MultiValueRemove,Object.assign({},e),i.createElement(I,{name:"close_circle",color:t.palette.black}))},Fm=(e,t)=>{const n={control:(n,{menuIsOpen:r})=>Object.assign(Object.assign({},n),{boxShadow:"none",borderTopColor:e.palette.divider,borderRightColor:e.palette.divider,borderLeftColor:e.palette.divider,borderBottomColor:r?"transparent":e.palette.divider,borderColor:t?`${e.palette.danger.main}!important`:"",borderRadius:r?`${e.radius}px ${e.radius}px 0 0`:`${e.radius}px`,"&:hover":{}}),input:e=>Object.assign(Object.assign({},e),{margin:"0 2px",paddingBottom:0,paddingTop:0}),menu:n=>Object.assign(Object.assign({},n),{marginTop:"-1px",boxShadow:"none",borderRadius:`0 0 ${e.radius}px ${e.radius}px`,borderRight:`1px solid ${t?e.palette.danger.main:e.palette.divider}`,borderBottom:`1px solid ${t?e.palette.danger.main:e.palette.divider}`,borderLeft:`1px solid ${t?e.palette.danger.main:e.palette.divider}`}),menuPortal:e=>Object.assign(Object.assign({},e),{zIndex:h.dropdown}),menuList:e=>Object.assign(Object.assign({},e),{paddingTop:"12px",paddingBottom:"8px"}),noOptionsMessage:t=>Object.assign(Object.assign({},t),{fontSize:`${O.sm}px`,color:e.palette.text.hint}),option:(t,{isSelected:n,isFocused:r,isDisabled:a})=>{let i="transparent",o=n?e.palette.white:e.palette.black;return n?i=e.palette.primary.main:a?o=e.palette.text.disabled:r&&(i=e.palette.gray.light),Object.assign(Object.assign({},t),{padding:"4px 8px 5px",color:o,fontSize:`${O.sm}px`,":active":{backgroundColor:e.palette.gray.main},backgroundColor:i})},placeholder:(n,{isDisabled:r,isFocused:a})=>{let i=e.palette.black;switch(!0){case r:i=e.palette.text.disabled;break;case t:i=e.palette.danger.main;break;case a:i=e.palette.text.hint}return Object.assign(Object.assign({},n),{transition:"color 0.2s",color:i,fontSize:`${O.sm}px`})},singleValue:(n,{isDisabled:r})=>{let a=e.palette.black;return t?a=e.palette.danger.main:r&&(a=e.palette.text.disabled),Object.assign(Object.assign({},n),{color:`${a}`,fontSize:`${O.sm}px`})},multiValue:t=>Object.assign(Object.assign({},t),{backgroundColor:e.palette.gray.highlight,padding:"2px 0px 3px 2px",margin:"0px 4px",border:`1px solid ${e.palette.divider}`,borderRadius:`${e.radius}px`}),multiValueLabel:(n,{isDisabled:r})=>{let a=e.palette.black;return t?a=e.palette.danger.main:r&&(a=e.palette.text.disabled),Object.assign(Object.assign({},n),{padding:0,color:`${a}`,fontSize:`${O.sm}px`})},multiValueRemove:e=>Object.assign(Object.assign({},e),{":hover":{backgroundColor:"transparent"},padding:"0px 8px"}),valueContainer:e=>Object.assign(Object.assign({},e),{minHeight:"40px"})};return n};var Xm=i.forwardRef(((e,t)=>{const n=Fn({props:e,name:"Select"}),{onInputChange:r,minWidth:a,isDisabled:o,error:l=!1,closeMenuOnSelect:c=!0,placeholder:u,emptyMessage:d="Not found"}=n,p=s(n,["onInputChange","minWidth","isDisabled","error","closeMenuOnSelect","placeholder","emptyMessage"]),f=x();return i.createElement(Tm,{ref:t,minWidth:a,isDisabled:o},i.createElement($m,Object.assign({isClearable:!0,placeholder:u,closeMenuOnSelect:c,noOptionsMessage:()=>d,isDisabled:o,styles:Fm(f,l),maxMenuHeight:150,theme:e=>Object.assign(Object.assign({},e),{palette:f.palette})},p,{components:Object.assign({DropdownIndicator:e=>i.createElement(Wm,Object.assign({},e,{error:l})),ClearIndicator:Gm,IndicatorSeparator:null,MultiValueRemove:jm,MenuList:zm},p.components),menuPortalTarget:document.body,onInputChange:(e,t)=>{r&&r(e,t)}})))}));var Ym=i.forwardRef(((e,t)=>{const n=Fn({props:e,name:"CreatableSelect"}),{onInputChange:r,minWidth:a,isDisabled:o,error:l=!1,closeMenuOnSelect:c=!0,placeholder:u,emptyMessage:d="Not found",addMessage:p="Create"}=n,f=s(n,["onInputChange","minWidth","isDisabled","error","closeMenuOnSelect","placeholder","emptyMessage","addMessage"]),m=x();return i.createElement(Tm,{ref:t,minWidth:a,isDisabled:o},i.createElement(Rm,Object.assign({isClearable:!0,placeholder:u,closeMenuOnSelect:c,noOptionsMessage:()=>d,formatCreateLabel:e=>`${p} "${e}"`,isDisabled:o,styles:Fm(m,l),maxMenuHeight:150,theme:e=>Object.assign(Object.assign({},e),{palette:m.palette})},f,{components:Object.assign({DropdownIndicator:e=>i.createElement(Wm,Object.assign({},e,{error:l})),ClearIndicator:Gm,IndicatorSeparator:null,MultiValueRemove:jm,MenuList:zm},f.components),menuPortalTarget:document.body,onInputChange:(e,t)=>{r&&r(e,t)}})))}));const Jm=o.default.div`
|
|
980
980
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
981
981
|
`,Um=o.default.div`
|
|
982
982
|
border: ${({fullWidth:e,theme:t})=>e?"none":`1px solid ${t.palette.divider}`};
|
|
@@ -990,7 +990,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
990
990
|
overflow-y: visible;
|
|
991
991
|
max-height: ${e};
|
|
992
992
|
`}
|
|
993
|
-
`,_m=[{label:"10",value:10},{label:"50",value:50},{label:"100",value:100},{label:"500",value:500},{label:"1000",value:1e3}],qm=({per:e,total:t,index:n=1,onChange:r,options:a=_m,labelRowsPerPage:o,labelDisplayedRows:l})=>{const s=e*(n-1)+1,c=e*n>t?t:e*n;return i.createElement(A,{display:"flex",alignItems:"center"},i.createElement(
|
|
993
|
+
`,_m=[{label:"10",value:10},{label:"50",value:50},{label:"100",value:100},{label:"500",value:500},{label:"1000",value:1e3}],qm=({per:e,total:t,index:n=1,onChange:r,options:a=_m,labelRowsPerPage:o,labelDisplayedRows:l})=>{const s=e*(n-1)+1,c=e*n>t?t:e*n;return i.createElement(A,{display:"flex",alignItems:"center"},i.createElement($,{component:"span",color:"secondary"},l({from:s,to:c,total:t})),i.createElement(rt,{mx:1}),i.createElement($,{component:"span",color:"secondary"},o),i.createElement(rt,{pl:1}),i.createElement(Xm,{isSearchable:!1,name:"count_changer",defaultValue:{value:e,label:e.toString()},options:a,isClearable:!1,minWidth:"80px",onChange:e=>{const t=e||a[0];r(t.value)}}))},Km=o.default.th`
|
|
994
994
|
cursor: ${({isSortable:e})=>e?"pointer":"default"};
|
|
995
995
|
white-space: nowrap;
|
|
996
996
|
width: ${({width:e})=>e};
|
|
@@ -1005,7 +1005,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1005
1005
|
&:last-of-type {
|
|
1006
1006
|
border-right: none;
|
|
1007
1007
|
}
|
|
1008
|
-
`,eg=e=>{var{sortable:t=!1,order:n=null,width:r="auto",enableRuledLine:a=!1,children:o}=e,l=s(e,["sortable","order","width","enableRuledLine","children"]);let c="sort_inactive";return"desc"===n&&(c="sort_up"),"asc"===n&&(c="sort_down"),i.createElement(Km,Object.assign({width:r,isSortable:t,enableRuledLine:a},l),i.createElement(A,{display:"flex",alignItems:"center"},i.createElement(
|
|
1008
|
+
`,eg=e=>{var{sortable:t=!1,order:n=null,width:r="auto",enableRuledLine:a=!1,children:o}=e,l=s(e,["sortable","order","width","enableRuledLine","children"]);let c="sort_inactive";return"desc"===n&&(c="sort_up"),"asc"===n&&(c="sort_down"),i.createElement(Km,Object.assign({width:r,isSortable:t,enableRuledLine:a},l),i.createElement(A,{display:"flex",alignItems:"center"},i.createElement($,{weight:"bold",size:"md",component:"div"},o),t&&i.createElement(i.Fragment,null,i.createElement(rt,{pl:.5}),i.createElement(I,{name:c,size:"md"}))))},tg=o.default.td`
|
|
1009
1009
|
text-align: left;
|
|
1010
1010
|
width: ${42}px;
|
|
1011
1011
|
padding-left: ${({theme:e})=>2*e.spacing}px;
|
|
@@ -1173,7 +1173,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1173
1173
|
background-color: ${({active:e,theme:t})=>e?t.palette.primary.main:t.palette.primary.highlight};
|
|
1174
1174
|
cursor: ${({active:e})=>e?"default":"pointer"};
|
|
1175
1175
|
}
|
|
1176
|
-
`,wg=({index:e,isActiveIndex:t,onClick:n})=>i.createElement(yg,{disabled:t,active:t,type:"button",onClick:n},i.createElement(
|
|
1176
|
+
`,wg=({index:e,isActiveIndex:t,onClick:n})=>i.createElement(yg,{disabled:t,active:t,type:"button",onClick:n},i.createElement($,{component:"span",weight:"bold",size:"xs",color:t?"white":"primary"},e)),Cg=o.default.button`
|
|
1177
1177
|
width: 28px;
|
|
1178
1178
|
height: 28px;
|
|
1179
1179
|
padding: 0 5px;
|
|
@@ -1211,13 +1211,13 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1211
1211
|
`,Zg=o.default.img`
|
|
1212
1212
|
width: ${({width:e})=>e}px;
|
|
1213
1213
|
height: auto;
|
|
1214
|
-
`;const Dg=i.forwardRef((function(e,t){const n=Fn({props:e,name:"ItemEmpty"}),{title:r="Not found.",subtitle:a,emptyImage:o,imageWidth:l=80}=n;return i.createElement(Vg,{ref:t},i.createElement(Zg,{src:o||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANoAAADvCAYAAACUqsrFAAAACXBIWXMAACxKAAAsSgF3enRNAAAUg0lEQVR4nO2df4wcR5XH3+6Md5d4Z3aOc3BErKwvhphcBE5O4hIdsWNAlmIpgaAz/xxIJAjp+AfwgcQPI5REkSLdHzkCJ51AgOxE8BcBwhnEjyCyDkGXBCGvc4KLgeS8xob4+DU7s4bd9a7n9No13p7u6pmp7qo31d3fjzSyp12eqamub7+qV69ejXU6HQKjodlqN4joRvXle9Wf4Wtd+P1MQiWPRd6fUi9mnr+G3zfqtVOa/wuEgNAECAmKxbRdvW4bQVVOKBHOd18QoAwQmgOarfbekLD4z1mPq7uoRDenXiy+pgf1KhQQmgWarXZXVPx6e+5/0KXhaCC8Rr0250F9cg+ElpJmq32XEtZdnlusrLDFe1y95mDt0gGhGaAs10ElriTnRNH5JhEdadRrj5f096cCQhtAs9Vmx8Xd6lVky2VK19I93KjX5vNVdXkgtATU0PDugsy5XMPezIdZeBha6oHQQig3PAvsPlivVCwqwR3BskEvENqGwA6qV1nnXrZ5hB9YENwlSi00CEyE0guOyio0CGwklFpwpRNas9W+W80jIDB5unO4h8vmNCmN0FRYFN/kXR5Up+yw4A426rUjZWmHwgtNDRNZYO/xoDqgl2NKcIVfhyu00DBMzA33F304WUihqWiOIyPaigLSscABAkUNYh73oA5WUVZsHiLLHRwg8GSz1b6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FBZGnBI9oQ7mQcv7dUwgDa6ckxeueN6DJpQKulAJ0NmIKhIwACQGgACAChASAAhAaAABAaAAJAaAAIAKEBIACEBoAAEBoAAkBoAAgAoQEgAIQGgAAQGgACQGgACAChASAAhAaAABAaAAJgq7Bl+AiovKc5uGlbxYNaFAsIzTL//tQqzZ/156D0NDz1wSvyV2nPwdARAAEgNAAEgNAAEABzNAEO7fH3qGI+Fef0Ig55dw2EJsCh2/zN7PvUwkU6vRg/KB/YBUNHAASA0AAQAEIDQAAIDQABIDQABIDQABAAQgNAAAgNAAEgNAAEgNAAEABCA0AACA0AASA0AASA0AR4/mV/Uxv4XLciAaFZRpfYhvd8+cjRk+vUiiQSuvFqdAkXoFUtc+u1caH9x3MXvLMci8sd+tj3VmLXd+/AFkUXQGiWee2V43RVbSz2obc/uuyN2FhkXB/dzurdmgcFyA4eXw74wJ4J+uS3e60FD9H+4Qt/oXftqtIdO6vUmBpN3Y6+sB4MZaNDRubAjVW6qh5/SIDsQGgO2L2jEgwhn34pniLgKyfWgpdvvGbLOL33Zn9zm+QdDB0dcWjfRNB588DmiTH6xL4Jmp6ENXMFhOYI7rSf/cdJuv16vwcN/DA4/E9TwdwSuANDR4ew2Niy7b++QoefveBVqnB22Nxzyyba7/mDoCiglQXgtTV+vdzq0PGz68Gfo4LFz2tlsGCyQGiCsEdvfx1NXkbwWANAAAgNAAEgNAAEgNAAEABCA0AACA0AASA0AASA0AAQAEIDQAAIDQABIDQABIDQABAAQgNAAAgNAAEgNAAEgNAAEABCA0AACA0AASA0AASA0AAQAEIDQABtSqbjZ+KprAEAg1mKH9AToBXah76eUBoAkAoMHQEQAEIDQAAIDQABeI52hIjm0NgAOIKI/h/xGDgoob3NqwAAAABJRU5ErkJggg==",width:l}),i.createElement(rt,{pt:2,pb:1},i.createElement(
|
|
1214
|
+
`;const Dg=i.forwardRef((function(e,t){const n=Fn({props:e,name:"ItemEmpty"}),{title:r="Not found.",subtitle:a,emptyImage:o,imageWidth:l=80}=n;return i.createElement(Vg,{ref:t},i.createElement(Zg,{src:o||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANoAAADvCAYAAACUqsrFAAAACXBIWXMAACxKAAAsSgF3enRNAAAUg0lEQVR4nO2df4wcR5XH3+6Md5d4Z3aOc3BErKwvhphcBE5O4hIdsWNAlmIpgaAz/xxIJAjp+AfwgcQPI5REkSLdHzkCJ51AgOxE8BcBwhnEjyCyDkGXBCGvc4KLgeS8xob4+DU7s4bd9a7n9No13p7u6pmp7qo31d3fjzSyp12eqamub7+qV69ejXU6HQKjodlqN4joRvXle9Wf4Wtd+P1MQiWPRd6fUi9mnr+G3zfqtVOa/wuEgNAECAmKxbRdvW4bQVVOKBHOd18QoAwQmgOarfbekLD4z1mPq7uoRDenXiy+pgf1KhQQmgWarXZXVPx6e+5/0KXhaCC8Rr0250F9cg+ElpJmq32XEtZdnlusrLDFe1y95mDt0gGhGaAs10ElriTnRNH5JhEdadRrj5f096cCQhtAs9Vmx8Xd6lVky2VK19I93KjX5vNVdXkgtATU0PDugsy5XMPezIdZeBha6oHQQig3PAvsPlivVCwqwR3BskEvENqGwA6qV1nnXrZ5hB9YENwlSi00CEyE0guOyio0CGwklFpwpRNas9W+W80jIDB5unO4h8vmNCmN0FRYFN/kXR5Up+yw4A426rUjZWmHwgtNDRNZYO/xoDqgl2NKcIVfhyu00DBMzA33F304WUihqWiOIyPaigLSscABAkUNYh73oA5WUVZsHiLLHRwg8GSz1b6viD+uMBZNzcWOIGSqEJxQ1q0wc7dCWDQVVT8PkRUG9gzPqdFJIci9RWu22rzo/GkPqgLc8IjyTObaUZJbocFtXyp4KHlXnqNKcik0JbI5LD6XCl7k3pvXeVvu5mhqPnYKIisdvBZ6PK/ztlwJTW3GnMMCdKk5nMclgNwMHdWT7LAHVQF+8EijXsuNdcuFRYPIgIb3NFvt3AQle2/Rmq02exY/5EFVgJ/kwv3vtdDUEwvuezCIE8oj6a3YvB06QmTAgG4kScPXRvNSaCraAyIDJuxSAQxe4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DQABAAQgNAAAgNAAEgNAAEgNAAEABCA0AACA0AASA0AASA0AR4/mV/Uxv4XLciAaFZRpfYhvd8+cjRk+vUiiQSuvFqdAkXoFUtc+u1caH9x3MXvLMci8sd+tj3VmLXd+/AFkUXQGiWee2V43RVbSz2obc/uuyN2FhkXB/dzurdmgcFyA4eXw74wJ4J+uS3e60FD9H+4Qt/oXftqtIdO6vUmBpN3Y6+sB4MZaNDRubAjVW6qh5/SIDsQGgO2L2jEgwhn34pniLgKyfWgpdvvGbLOL33Zn9zm+QdDB0dcWjfRNB588DmiTH6xL4Jmp6ENXMFhOYI7rSf/cdJuv16vwcN/DA4/E9TwdwSuANDR4ew2Niy7b++QoefveBVqnB22Nxzyyba7/mDoCiglQXgtTV+vdzq0PGz68Gfo4LFz2tlsGCyQGiCsEdvfx1NXkbwWANAAAgNAAEgNAAEgNAAEABCA0AACA0AASA0AASA0AAQAEIDQAAIDQABIDQABIDQABAAQgNAAAgNAAEgNAAEgNAAEABCA0AACA0AASA0AASA0AAQAEIDQABtSqbjZ+KprAEAg1mKH9AToBXah76eUBoAkAoMHQEQAEIDQAAIDQABeI52hIjm0NgAOIKI/h/xGDgoob3NqwAAAABJRU5ErkJggg==",width:l}),i.createElement(rt,{pt:2,pb:1},i.createElement($,{weight:"bold",size:"md",align:"center"},r)),a&&i.createElement($,{size:"sm"},a))})),Sg=o.default.div`
|
|
1215
1215
|
padding-top: ${({theme:e})=>1.5*e.spacing}px;
|
|
1216
1216
|
padding-left: ${({theme:e})=>3*e.spacing}px;
|
|
1217
1217
|
background-color: ${({theme:e})=>e.palette.gray.highlight};
|
|
1218
1218
|
border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
|
|
1219
1219
|
border-radius: ${({theme:e})=>`${e.radius}px ${e.radius}px`} 0 0;
|
|
1220
|
-
`,
|
|
1220
|
+
`,Lg=o.default.ul`
|
|
1221
1221
|
list-style: none;
|
|
1222
1222
|
display: flex;
|
|
1223
1223
|
`,Og=o.default.li`
|
|
@@ -1230,7 +1230,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1230
1230
|
border-radius: ${({theme:e})=>`${e.radius}px ${e.radius}px`} 0 0;
|
|
1231
1231
|
background-color: ${({active:e,theme:t})=>e?t.palette.background.default:"none"};
|
|
1232
1232
|
cursor: pointer;
|
|
1233
|
-
`,Rg=({items:e,value:t,onChange:n})=>{const r=e=>()=>{n(e)};return i.createElement(
|
|
1233
|
+
`,Rg=({items:e,value:t,onChange:n})=>{const r=e=>()=>{n(e)};return i.createElement(Sg,null,i.createElement(Lg,null,e.map((e=>i.createElement(Og,{key:e.value,active:e.value===t,onClick:r(e.value)},i.createElement($,{size:"sm",color:e.value===t?"initial":"secondary",align:"center"},e.label))))))};function $g(t,n){const r=e.useRef(!1);e.useEffect((()=>{r.current?t():r.current=!0}),n)}function Tg(e,t){var n;return!!t&&!(null===(n=t[e])||void 0===n?void 0:n.disabledCheck)}function zg(e,t,n,r){if(0===n)return!1;const a=e[n],i=null==r?void 0:r.selector(a),o=e[n-1],l=null==r?void 0:r.selector(o);return!(r&&!r.enableMergeCell||a[t]!==o[t]||i!==l)}function Bg(e,t,n,r){if(r&&!r.enableMergeCell)return 1;const a=e[n],i=null==r?void 0:r.selector(a);let o=1;for(let l=n+1;l<e.length;l++){const n=e[l],s=null==r?void 0:r.selector(n);if(n[t]!==a[t]||s!==i)break;o++}return o}function Gg({sourceData:e,tabs:t,currentTabIndex:n}){let r=e;return t&&t[n]&&(r=t[n].filter(r)),r}function Pg({sourceData:e,sortState:t,filterState:n,enablePagination:r,tabs:a,currentTabIndex:i}){const o=Gg({sourceData:e,tabs:a,currentTabIndex:i}),l=xg(o,t);if(r){return Hg(l,n)}return l}var Wg=i.forwardRef((({data:e,dataKey:t,columns:n,enablePagination:r=!1,onSelectRowsChange:a,onRadioChange:o,tabs:l,itemEmptyProps:s,per:c,defaultSortField:u,defaultSortOrder:d="desc",selectedRows:p=[],selectedRow:f,enableRuledLine:m=!1,verticalSpacing:g="medium",fullWidth:h=!1,disableCheckWhenClickRow:b=!1,tableMaxHeight:v="none",horizontalScrollable:x=!1,labelRowsPerPage:y="Rows per page:",labelDisplayedRows:w=(({from:e,to:t,total:n})=>`${e}-${t} of ${n}`)},C)=>{const E=!!a,[I,k]=i.useState(!1),M=p.length>0&&!I,H=!!o,N=!!l,[V,Z]=i.useState(0),D=n.some((e=>e.enableMergeCell)),S=n.find((e=>e.name===u)),L=(null==S?void 0:S.sortable)?S:n.find((e=>!0===e.sortable)),[O,R]=(T={isDesc:"desc"===d,name:(null==L?void 0:L.name)||"",getValue:null==L?void 0:L.selector},i.useState(T));var T;const[z,B]=Ng(c),[G,P]=i.useState(Pg({sourceData:e,sortState:O,filterState:z,enablePagination:r,tabs:l,currentTabIndex:V})),W=i.useMemo((()=>Gg({sourceData:e,tabs:l,currentTabIndex:V}).length),[e,l,V]);$g((()=>{const t=Pg({sourceData:e,sortState:O,filterState:z,enablePagination:r,tabs:l,currentTabIndex:V});P(t)}),[e,O,z,r,N,l,V]),$g((()=>{const t={index:1,per:z.per};B(t);const n=Pg({sourceData:e,sortState:O,filterState:t,enablePagination:r,tabs:l,currentTabIndex:V});P(n)}),[e,V]);const j=(e,t)=>()=>{R(((e,t,n)=>({isDesc:e.name===n&&!e.isDesc,getValue:t,name:n}))(O,e,t))},F=e=>()=>{a&&(p.includes(e)?a(p.filter((t=>t!==e))):a([...p,e]))},X=e=>()=>{o&&o(e)};return i.createElement(Jm,{ref:C},i.createElement(Um,{fullWidth:h},!!l&&i.createElement(Rg,{value:V,items:l.map(((e,t)=>({label:e.label,value:t}))),onChange:e=>{Z(e)}}),i.createElement(Qm,{maxHeight:v,horizontalScrollable:x},i.createElement(bg,{horizontalScrollable:x},i.createElement(bg.Header,null,i.createElement(bg.Row,{isStickyHeader:"none"!==v},(!N||Tg(V,l))&&i.createElement(i.Fragment,null,E&&i.createElement(rg,{header:!0,selected:p.length>0,indeterminate:M,onClick:()=>{a&&(p.length>0?(a([]),k(!1)):(a(G.filter((e=>!e.selectDisabled)).map((e=>e[t]))),k(!0)))}}),H&&i.createElement(pg,{header:!0})),n.map((e=>{return i.createElement(eg,{key:e.name,sortable:e.sortable&&!D,order:(t=O,n=e.name,t.name===n?t.isDesc?"desc":"asc":null),width:e.width,enableRuledLine:m,onClick:e.sortable&&!D?j(e.selector,e.name):void 0},e.headerCell||e.name);var t,n})))),i.createElement(bg.Body,null,G.length>0?G.map(((e,r)=>i.createElement(i.Fragment,{key:r},E||H?i.createElement(i.Fragment,null,E&&i.createElement(bg.Row,Object.assign({verticalSpacing:g,highlighted:!e.selectDisabled&&(p.includes(e[t])||f===e[t]),disableHoverHighlight:D},!b&&{onClick:F(e[t])}),(!N||Tg(V,l))&&!zg(G,t,r)&&i.createElement(rg,Object.assign({selected:p.includes(e[t]),rowSpan:Bg(G,t,r)},b&&{onClick:F(e[t])})),n.map((n=>zg(G,t,r,n)?null:i.createElement(bg.Cell,{key:n.name,enableRuledLine:m,rowSpan:Bg(G,t,r,n)},n.renderCell?n.renderCell(e):i.createElement($,{align:n.align},n.selector(e)))))),H&&i.createElement(bg.Row,Object.assign({verticalSpacing:g,highlighted:!e.selectDisabled&&(p.includes(e[t])||f===e[t]),disableHoverHighlight:D},!b&&{onClick:X(e[t])}),(!N||Tg(V,l))&&!zg(G,t,r)&&i.createElement(pg,{selected:e[t]===f,rowSpan:Bg(G,t,r),onClick:X(e[t])}),n.map((n=>zg(G,t,r,n)?null:i.createElement(bg.Cell,{key:n.name,enableRuledLine:m,rowSpan:Bg(G,t,r,n)},n.renderCell?n.renderCell(e):i.createElement($,{align:n.align},n.selector(e))))))):i.createElement(bg.Row,{verticalSpacing:g,highlighted:!e.selectDisabled&&(p.includes(e[t])||f===e[t]),disableHoverHighlight:D},n.map((n=>zg(G,t,r,n)?null:i.createElement(bg.Cell,{key:n.name,enableRuledLine:m,rowSpan:Bg(G,t,r,n)},n.renderCell?n.renderCell(e):i.createElement($,{align:n.align},n.selector(e))))))))):i.createElement("tr",null,i.createElement("td",{colSpan:n.length+(!E&&!H||N&&!Tg(V,l)?0:1)},i.createElement(Dg,Object.assign({},s)))))))),r&&i.createElement(rt,{p:3},i.createElement(A,{display:"flex",alignItems:"center",justifyContent:"space-between"},i.createElement(Mg,{per:z.per,total:W,index:z.index,onClick:e=>{B({index:e,per:z.per})}}),i.createElement(qm,{per:z.per,total:W,index:z.index,labelRowsPerPage:y,labelDisplayedRows:w,onChange:e=>{B({index:1,per:e})}}))))}));const jg=e.createContext({rowIds:[],hasRowControls:!1,checkedRows:[],isSmallLayout:!1,totalCount:0,currentPage:0,pageSize:100,pageSizeOptions:[10,50,100,200],columns:[],columnWidths:[],rowSpacing:0,setRowIds:()=>{},setCheckedRows:()=>{},setCurrentPage:()=>{},setPageSize:()=>{},setColumns:()=>{},setColumnWidth:()=>{},setRowSpacing:()=>{}}),Fg=e.createContext({index:0}),Xg=`\n display: flex;\n gap: 4px;\n box-sizing: border-box;\n padding: 4px;\n border: 1px solid ${c.basic[400]};\n border-radius: 4px;\n background: #ffffff;\n /* UI/Text 12 */\n font-size: 12px;\n color: ${c.basic[900]};\n cursor: pointer;\n box-shadow: ${m["3dShadowBasic"]};\n &:where(:disabled) {\n color: ${c.basic[400]};\n background: ${c.basic[200]};\n box-shadow: ${m["3dShadowBasic"]};\n cursor: not-allowed;\n }\n &:where(li:not(:first-child) button) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n &:where(li:not(:last-child) button) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n &:where(:hover:not(:disabled)) {\n background: ${c.basic[100]};\n }\n &:where(:active:not(:disabled)) {\n padding-block: 6px 2px;\n background: ${p.gray.highlight};\n box-shadow: ${m["3dShadowActive"]};\n }\n`,Yg=o.default.div`
|
|
1234
1234
|
position: relative;
|
|
1235
1235
|
display: flex;
|
|
1236
1236
|
flex-direction: column;
|
|
@@ -1566,7 +1566,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1566
1566
|
visibility: visible;
|
|
1567
1567
|
}
|
|
1568
1568
|
}
|
|
1569
|
-
`,yh=()=>{const{columns:t,setColumns:n}=e.useContext(jg),[r,a]=e.useState(!1),[o,l]=e.useState(t.map((e=>e.filtered||!1))),s=e.useMemo((()=>t.filter((e=>e.filtered)).length),[t]),c=e.useCallback((()=>{l(t.map((e=>e.filtered||!1)))}),[t]),u=e.useCallback(((e,t)=>{l((n=>n.map(((n,r)=>e===r?t:n))))}),[l]),d=e.useCallback((()=>{c(),a(!1)}),[c]),p=e.useCallback((()=>{const e=structuredClone(t).map(((e,t)=>Object.assign(Object.assign({},e),{filtered:o[t]})));n(e),a(!1)}),[t,n,o]),f=e.useCallback((e=>{a(e),e||c()}),[a,c]);return e.useEffect((()=>c()),[t,c]),i.default.createElement(Pc,null,i.default.createElement(Gc,{width:360,trigger:i.default.createElement(th,{type:"button",disabled:0===s},i.default.createElement(I,{name:"filter",color:"currentColor"}),s,"列に適用中"),open:r,onOpenChange:f},i.default.createElement(Wc,null,"フィルタが適用されている列"),t.map(((e,t)=>!0===e.filtered?i.default.createElement($o,{key:e.id,checked:o[t],onChange:e=>u(t,e)},e.label):null)),i.default.createElement(Xc,{prepend:i.default.createElement(I,{name:"question"})},"リセットしたいフィルタのボタンをオフにしてください"),i.default.createElement(Yc,null),i.default.createElement(Jc,null,i.default.createElement(st,{type:"button",size:"small",color:"clear",onClick:d},"キャンセル"),i.default.createElement(st,{type:"button",size:"small",onClick:p},"適用"))))},wh=({onClose:t})=>{const{columns:n,setColumns:r}=e.useContext(jg),[a,o]=e.useState(n),l=e.useMemo((()=>[...a].sort(((e,t)=>e.order-t.order))),[a]),s=e.useMemo((()=>l.reduce(((e,t)=>t.sortable||0!==e.sortable.length?t.sortable&&0===e.endFixed.length?(e.sortable.push(t),e):(e.endFixed.push(t),e):(e.startFixed.push(t),e)),{startFixed:[],sortable:[],endFixed:[]})),[l]),c=e.useCallback((e=>{const t=structuredClone(n);t.forEach((t=>{if(s.startFixed.find((e=>e.id===t.id))||s.endFixed.find((e=>e.id===t.id)))return;const n=e.indexOf(t.id);-1!==n&&(t.order=s.startFixed.length+n)})),o(t)}),[n,s]),u=e.useCallback((()=>{o(n),t()}),[n,t]),d=e.useCallback((()=>{r(a),t()}),[r,a,t]);return i.default.createElement(Gc,{width:328,trigger:i.default.createElement(Po,null,"カラムを編集")},s.startFixed.map((e=>i.default.createElement(Zc,{key:e.id,disabled:!0,id:e.id},i.default.createElement($o,{disabled:!0,checked:e.visible},e.label)))),i.default.createElement(Mc,{order:s.sortable.map((e=>e.id)),onOrderChange:c},s.sortable.map((e=>i.default.createElement(Zc,{key:e.id,id:e.id},i.default.createElement($o,{checked:e.visible,onChange:()=>o(a.map((t=>t.id===e.id?Object.assign(Object.assign({},t),{visible:!t.visible}):t)))},e.label))))),s.endFixed.map((e=>i.default.createElement(Zc,{key:e.id,disabled:!0,id:e.id},i.default.createElement($o,{key:e.id,disabled:!0,checked:e.visible},e.label)))),i.default.createElement(Xc,{prepend:i.default.createElement(I,{name:"question"})},"カラムの並び順、表示・非表示を切り替えます。"),i.default.createElement(Yc,null),i.default.createElement(Jc,null,i.default.createElement(st,{size:"small",color:"clear",onClick:u},"キャンセル"),i.default.createElement(st,{size:"small",onClick:d},"適用")))},Ch=()=>{const{pageSize:t,pageSizeOptions:n,setPageSize:r}=e.useContext(jg);return i.default.createElement(Gc,{width:136,trigger:i.default.createElement(Po,{append:t},"件数を変更")},n.map((e=>i.default.createElement(So,{key:e,closeOnChange:!0,checked:t===e,onChange:()=>r(e)},e,"件"))))},Eh=[{value:-2,label:"より狭くする"},{value:-1,label:"狭くする"},{value:0,label:"標準"},{value:1,label:"広くする"},{value:2,label:"より広くする"}],Ih=()=>{const{rowSpacing:t,setRowSpacing:n}=e.useContext(jg),r=e.useMemo((()=>{var e;return(null===(e=Eh.find((e=>e.value===t)))||void 0===e?void 0:e.label)||"標準"}),[t]);return i.default.createElement(Gc,{width:168,trigger:i.default.createElement(Po,{append:r},"表示密度を変更")},Eh.map((({value:e,label:r})=>i.default.createElement(So,{key:e,closeOnChange:!0,checked:t===e,onChange:()=>(e=>{n(e)})(e)},r))))},kh=()=>{const{isSmallLayout:t,totalCount:n,currentPage:r,pageSize:a,pageSizeOptions:o,setCurrentPage:l,setPageSize:s}=e.useContext(jg),c=e.useCallback((e=>{l(0),s(e)}),[l,s]),u=e.useMemo((()=>Math.ceil(n/a)-1),[n,a]);return e.useEffect((()=>{r>u&&l(u)}),[r,u,l]),i.default.createElement(Kg,null,i.default.createElement("button",{type:"button","aria-label":"前のページへ",disabled:0===r,onClick:()=>l(Math.max(r-1,0))},i.default.createElement(I,{name:"arrow_left",color:"currentColor"})),!t&&i.default.createElement(Pc,null,i.default.createElement(Gc,{width:296,trigger:i.default.createElement("button",{type:"button"},Math.min(r*a+1,a*u),i.default.createElement(eh,null,"-"),Math.min((r+1)*a,n),i.default.createElement(eh,null,"/"),n,i.default.createElement(I,{name:"arrow_down",size:"sm",color:"currentColor"}))},i.default.createElement(Wc,null,"表示件数を変更"),o.map((e=>i.default.createElement(So,{key:e,checked:a===e,onChange:()=>c(e)},e))))),i.default.createElement("button",{type:"button","aria-label":"次のページへ",disabled:r===u,onClick:()=>l(Math.min(r+1,u))},i.default.createElement(I,{name:"arrow_right",color:"currentColor"})))},Ah=({children:t})=>{const{checkedRows:n}=e.useContext(jg);return i.default.createElement(Pc,null,i.default.createElement(Gc,{width:200,trigger:i.default.createElement(_g,{type:"button",disabled:0===n.length},i.default.createElement("em",null,n.length),"件選択",i.default.createElement(I,{name:"arrow_down",color:"currentColor"}))},t))},Mh=({rowControls:t,extraButtons:n})=>{const{isSmallLayout:r,columns:a,rowIds:o,checkedRows:l,setCheckedRows:s}=e.useContext(jg),c=e.useMemo((()=>l.length===o.length),[l,o]),u=e.useMemo((()=>0!==l.length&&l.length!==o.length),[l,o]),[d,p]=e.useState(!1),f=e.useMemo((()=>a.some((e=>void 0!==e.filtered))),[a]),m=e.useCallback((()=>{s(c?[]:o)}),[c,o,s]);return i.default.createElement(Qg,{isSmallLayout:r},t&&i.default.createElement(i.default.Fragment,null,i.default.createElement(Cn,{checked:c||u,indeterminate:u,onChange:m}),i.default.createElement(Ah,null,t),i.default.createElement(qg,null)),i.default.createElement(kh,null),f&&i.default.createElement(i.default.Fragment,null,i.default.createElement(qg,null),i.default.createElement(yh,null)),i.default.createElement(nh,null,!r&&n,i.default.createElement(Pc,null,i.default.createElement(Gc,{open:d,width:316,trigger:i.default.createElement(ah,null,i.default.createElement(I,{name:"more_vert"})),onOpenChange:p},r&&n,a.some((e=>e.sortable))&&i.default.createElement(wh,{onClose:()=>p(!1)}),i.default.createElement(Ch,null),i.default.createElement(Ih,null)))))},Hh=e=>{if(!e)return[];const t=[];let n=0,r=!isNaN(Number(e[0]));for(let a=1;a<=e.length;a++){const i=e[a],o=!isNaN(Number(i))&&" "!==i;o===r&&" "!==i&&a!==e.length||(t.push({start:n,end:a-1,value:e.slice(n,a),editable:r}),n=a,r=o)}return t},Nh=e=>e.map((e=>e.value)).join(""),Vh={Backspace:"Backspace",Delete:"Delete",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",Tab:"Tab",0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},Zh=Object.keys(Vh).filter((e=>!isNaN(Number(e)))),Dh=Object.values(Vh),Lh=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Sh=/\d\d/,Oh=/-?\d\d?/,Rh=/\d*[^-_:/,()\s\d]+/;let Th={},$h=function(e){return(e=+e)+(e>68?1900:2e3)};const zh=function(e){return function(t){this[e]=+t}},Bh=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;const t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],Gh=e=>{const t=Th[e];return t&&(t.indexOf?t:t.s.concat(t.f))},Ph=(e,t)=>{let n;const{meridiem:r}=Th;if(r){for(let a=1;a<=24;a+=1)if(e.indexOf(r(a,0,t))>-1){n=a>12;break}}else n=e===(t?"pm":"PM");return n},Wh={A:[Rh,function(e){this.afternoon=Ph(e,!1)}],a:[Rh,function(e){this.afternoon=Ph(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[Sh,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[Oh,zh("seconds")],ss:[Oh,zh("seconds")],m:[Oh,zh("minutes")],mm:[Oh,zh("minutes")],H:[Oh,zh("hours")],h:[Oh,zh("hours")],HH:[Oh,zh("hours")],hh:[Oh,zh("hours")],D:[Oh,zh("day")],DD:[Sh,zh("day")],Do:[Rh,function(e){const{ordinal:t}=Th;if([this.day]=e.match(/\d+/),t)for(let n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[Oh,zh("month")],MM:[Sh,zh("month")],MMM:[Rh,function(e){const t=Gh("months"),n=(Gh("monthsShort")||t.map((e=>e.slice(0,3)))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[Rh,function(e){const t=Gh("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,zh("year")],YY:[Sh,function(e){this.year=$h(e)}],YYYY:[/\d{4}/,zh("year")],Z:Bh,ZZ:Bh};const jh=(e,t,n)=>{try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);const r=function(e){const t=e.match(Lh),{length:n}=t;for(let e=0;e<n;e+=1){const n=t[e],r=Wh[n],a=r&&r[0],i=r&&r[1];t[e]=i?{regex:a,parser:i}:n.replace(/^\[|\]$/g,"")}return function(e){const r={};for(let a=0,i=0;a<n;a+=1){const n=t[a];if("string"==typeof n)i+=n.length;else{const{regex:t,parser:a}=n,o=e.slice(i),l=t.exec(o)[0];a.call(r,l),e=e.replace(l,"")}}return function(e){const{afternoon:t}=e;if(void 0!==t){const{hours:n}=e;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(r),r}}(t),{year:a,month:i,day:o,hours:l,minutes:s,seconds:c,milliseconds:u,zone:d}=r(e),p=new Date,f=a||p.getFullYear(),m=i-1,g=l||0,h=s||0,b=c||0,v=u||0;return d?new Date(Date.UTC(f,m,o,g,h,b,v+60*d.offset*1e3)):n?new Date(Date.UTC(f,m,o,g,h,b,v)):new Date(f,m,o,g,h,b,v)}catch(e){return new Date("")}};var Fh=(e,t,n)=>{n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&({parseTwoDigitYear:$h}=e);const r=t.prototype,a=r.parse;r.parse=function(e){const{date:t,utc:r,args:i}=e;this.$u=r;const o=i[1];if("string"==typeof o){const e=!0===i[2],a=!0===i[3],l=e||a;let s=i[2];a&&([,,s]=i),Th=this.$locale(),!e&&s&&(Th=n.Ls[s]),this.$d=jh(t,o,r),this.init(),s&&!0!==s&&(this.$L=this.locale(s).$L),l&&t!=this.format(o)&&(this.$d=new Date("")),Th={}}else if(o instanceof Array){const e=o.length;for(let t=1;t<=e;t+=1){i[1]=o[t-1];const r=n.apply(this,i);if(r.isValid()){this.$d=r.$d,this.$L=r.$L,this.init();break}t===e&&(this.$d=new Date(""))}}else a.call(this,e)}};const Xh=({date:t,format:n="YYYY-MM-DD",onDateChange:r})=>{Zt.extend(Fh);const a=e.useRef(null),[i,o]=e.useState(null==t?void 0:t.format(n)),[l,s]=e.useState(Hh(i)),[c,u]=e.useState({start:0,end:l.length-1,current:0}),[d,p]=e.useState(0),f=e.useCallback((()=>{setTimeout((()=>{var e,t,n;const r=null!==(t=null===(e=a.current)||void 0===e?void 0:e.selectionStart)&&void 0!==t?t:0,i=l[l.length-1].end+1,o=r>=i?i:r,s=l.findIndex((e=>o>=e.start&&o<=e.end+1));u((e=>l[s].editable?e.current===s?e:Object.assign(Object.assign({},e),{current:s}):Object.assign(Object.assign({},e),{current:s+1}))),null===(n=a.current)||void 0===n||n.setSelectionRange(l[s].start,l[s].end+1)}))}),[l]),m=e.useCallback((()=>{}),[]),g=e.useCallback((()=>{u((e=>Object.assign(Object.assign({},e),{current:0}))),p(0)}),[]),h=e.useCallback((e=>{if(Dh.includes(e.key)){if(e.key===Vh.ArrowLeft||e.key===Vh.ArrowRight){e.preventDefault();const t=e=>{const t=c.current;if(e===Vh.ArrowLeft){for(let e=t-1;e>=0;e--)if(l[e].editable)return e-t}else if(e===Vh.ArrowRight)for(let e=t+1;e<l.length;e++)if(l[e].editable)return e-t;return 0},n=e.key;u((e=>Object.assign(Object.assign({},e),{current:e.current+t(n)})))}if(e.key===Vh.ArrowUp||e.key===Vh.ArrowDown){e.preventDefault();const t=e.key===Vh.ArrowUp?1:-1,a=Number(l[c.current].value)+t,i=String(a).padStart(l[c.current].value.length,"0"),u=[...l];u[c.current].value=i,s(u);const d=Nh(u),p=Zt(d,n);o(p.format(n)),p.isValid()&&r&&r(p)}if(Zh.includes(e.key)){e.preventDefault(),0===d&&(l[c.current].value="".padStart(l[c.current].value.length,"0"));const t=`${l[c.current].value.slice(1)}${e.key}`,a=[...l];if(a[c.current].value=t,s(a),p(d+1),d+1===l[c.current].value.length){p(0);const e=Nh(l),t=Zt(e,n);o(t.format(n)),r&&r(t)}else{const e=Nh(l);if(!Zt(e,n,!0).isValid())return void o(e);const t=Zt(e,n);o(t.format(n)),r&&r(t)}}}}),[l,n,r,c]),b=e.useCallback((()=>{f()}),[f]),v=e.useCallback((e=>{e.preventDefault();const t=e.clipboardData.getData("text"),n=Zt(t);r&&r(n)}),[r]);return e.useEffect((()=>{var e;null===(e=a.current)||void 0===e||e.setSelectionRange(l[c.current].start,l[c.current].end+1)}),[c,l]),e.useEffect((()=>{o(null==t?void 0:t.format(n)),s(Hh(null==t?void 0:t.format(n)))}),[t,n]),{ref:a,value:i,onFocus:m,onBlur:g,onKeyDown:h,onMouseDown:b,onPaste:v}},Yh=o.default.div`
|
|
1569
|
+
`,yh=()=>{const{columns:t,setColumns:n}=e.useContext(jg),[r,a]=e.useState(!1),[o,l]=e.useState(t.map((e=>e.filtered||!1))),s=e.useMemo((()=>t.filter((e=>e.filtered)).length),[t]),c=e.useCallback((()=>{l(t.map((e=>e.filtered||!1)))}),[t]),u=e.useCallback(((e,t)=>{l((n=>n.map(((n,r)=>e===r?t:n))))}),[l]),d=e.useCallback((()=>{c(),a(!1)}),[c]),p=e.useCallback((()=>{const e=structuredClone(t).map(((e,t)=>Object.assign(Object.assign({},e),{filtered:o[t]})));n(e),a(!1)}),[t,n,o]),f=e.useCallback((e=>{a(e),e||c()}),[a,c]);return e.useEffect((()=>c()),[t,c]),i.default.createElement(Pc,null,i.default.createElement(Gc,{width:360,trigger:i.default.createElement(th,{type:"button",disabled:0===s},i.default.createElement(I,{name:"filter",color:"currentColor"}),s,"列に適用中"),open:r,onOpenChange:f},i.default.createElement(Wc,null,"フィルタが適用されている列"),t.map(((e,t)=>!0===e.filtered?i.default.createElement(To,{key:e.id,checked:o[t],onChange:e=>u(t,e)},e.label):null)),i.default.createElement(Xc,{prepend:i.default.createElement(I,{name:"question"})},"リセットしたいフィルタのボタンをオフにしてください"),i.default.createElement(Yc,null),i.default.createElement(Jc,null,i.default.createElement(st,{type:"button",size:"small",color:"clear",onClick:d},"キャンセル"),i.default.createElement(st,{type:"button",size:"small",onClick:p},"適用"))))},wh=({onClose:t})=>{const{columns:n,setColumns:r}=e.useContext(jg),[a,o]=e.useState(n),l=e.useMemo((()=>[...a].sort(((e,t)=>e.order-t.order))),[a]),s=e.useMemo((()=>l.reduce(((e,t)=>t.sortable||0!==e.sortable.length?t.sortable&&0===e.endFixed.length?(e.sortable.push(t),e):(e.endFixed.push(t),e):(e.startFixed.push(t),e)),{startFixed:[],sortable:[],endFixed:[]})),[l]),c=e.useCallback((e=>{const t=structuredClone(n);t.forEach((t=>{if(s.startFixed.find((e=>e.id===t.id))||s.endFixed.find((e=>e.id===t.id)))return;const n=e.indexOf(t.id);-1!==n&&(t.order=s.startFixed.length+n)})),o(t)}),[n,s]),u=e.useCallback((()=>{o(n),t()}),[n,t]),d=e.useCallback((()=>{r(a),t()}),[r,a,t]);return i.default.createElement(Gc,{width:328,trigger:i.default.createElement(Po,null,"カラムを編集")},s.startFixed.map((e=>i.default.createElement(Zc,{key:e.id,disabled:!0,id:e.id},i.default.createElement(To,{disabled:!0,checked:e.visible},e.label)))),i.default.createElement(Mc,{order:s.sortable.map((e=>e.id)),onOrderChange:c},s.sortable.map((e=>i.default.createElement(Zc,{key:e.id,id:e.id},i.default.createElement(To,{checked:e.visible,onChange:()=>o(a.map((t=>t.id===e.id?Object.assign(Object.assign({},t),{visible:!t.visible}):t)))},e.label))))),s.endFixed.map((e=>i.default.createElement(Zc,{key:e.id,disabled:!0,id:e.id},i.default.createElement(To,{key:e.id,disabled:!0,checked:e.visible},e.label)))),i.default.createElement(Xc,{prepend:i.default.createElement(I,{name:"question"})},"カラムの並び順、表示・非表示を切り替えます。"),i.default.createElement(Yc,null),i.default.createElement(Jc,null,i.default.createElement(st,{size:"small",color:"clear",onClick:u},"キャンセル"),i.default.createElement(st,{size:"small",onClick:d},"適用")))},Ch=()=>{const{pageSize:t,pageSizeOptions:n,setPageSize:r}=e.useContext(jg);return i.default.createElement(Gc,{width:136,trigger:i.default.createElement(Po,{append:t},"件数を変更")},n.map((e=>i.default.createElement(Lo,{key:e,closeOnChange:!0,checked:t===e,onChange:()=>r(e)},e,"件"))))},Eh=[{value:-2,label:"より狭くする"},{value:-1,label:"狭くする"},{value:0,label:"標準"},{value:1,label:"広くする"},{value:2,label:"より広くする"}],Ih=()=>{const{rowSpacing:t,setRowSpacing:n}=e.useContext(jg),r=e.useMemo((()=>{var e;return(null===(e=Eh.find((e=>e.value===t)))||void 0===e?void 0:e.label)||"標準"}),[t]);return i.default.createElement(Gc,{width:168,trigger:i.default.createElement(Po,{append:r},"表示密度を変更")},Eh.map((({value:e,label:r})=>i.default.createElement(Lo,{key:e,closeOnChange:!0,checked:t===e,onChange:()=>(e=>{n(e)})(e)},r))))},kh=()=>{const{isSmallLayout:t,totalCount:n,currentPage:r,pageSize:a,pageSizeOptions:o,setCurrentPage:l,setPageSize:s}=e.useContext(jg),c=e.useCallback((e=>{l(0),s(e)}),[l,s]),u=e.useMemo((()=>Math.ceil(n/a)-1),[n,a]);return e.useEffect((()=>{r>u&&l(u)}),[r,u,l]),i.default.createElement(Kg,null,i.default.createElement("button",{type:"button","aria-label":"前のページへ",disabled:0===r,onClick:()=>l(Math.max(r-1,0))},i.default.createElement(I,{name:"arrow_left",color:"currentColor"})),!t&&i.default.createElement(Pc,null,i.default.createElement(Gc,{width:296,trigger:i.default.createElement("button",{type:"button"},Math.min(r*a+1,a*u),i.default.createElement(eh,null,"-"),Math.min((r+1)*a,n),i.default.createElement(eh,null,"/"),n,i.default.createElement(I,{name:"arrow_down",size:"sm",color:"currentColor"}))},i.default.createElement(Wc,null,"表示件数を変更"),o.map((e=>i.default.createElement(Lo,{key:e,checked:a===e,onChange:()=>c(e)},e))))),i.default.createElement("button",{type:"button","aria-label":"次のページへ",disabled:r===u,onClick:()=>l(Math.min(r+1,u))},i.default.createElement(I,{name:"arrow_right",color:"currentColor"})))},Ah=({children:t})=>{const{checkedRows:n}=e.useContext(jg);return i.default.createElement(Pc,null,i.default.createElement(Gc,{width:200,trigger:i.default.createElement(_g,{type:"button",disabled:0===n.length},i.default.createElement("em",null,n.length),"件選択",i.default.createElement(I,{name:"arrow_down",color:"currentColor"}))},t))},Mh=({rowControls:t,extraButtons:n})=>{const{isSmallLayout:r,columns:a,rowIds:o,checkedRows:l,setCheckedRows:s}=e.useContext(jg),c=e.useMemo((()=>l.length===o.length),[l,o]),u=e.useMemo((()=>0!==l.length&&l.length!==o.length),[l,o]),[d,p]=e.useState(!1),f=e.useMemo((()=>a.some((e=>void 0!==e.filtered))),[a]),m=e.useCallback((()=>{s(c?[]:o)}),[c,o,s]);return i.default.createElement(Qg,{isSmallLayout:r},t&&i.default.createElement(i.default.Fragment,null,i.default.createElement(Cn,{checked:c||u,indeterminate:u,onChange:m}),i.default.createElement(Ah,null,t),i.default.createElement(qg,null)),i.default.createElement(kh,null),f&&i.default.createElement(i.default.Fragment,null,i.default.createElement(qg,null),i.default.createElement(yh,null)),i.default.createElement(nh,null,!r&&n,i.default.createElement(Pc,null,i.default.createElement(Gc,{open:d,width:316,trigger:i.default.createElement(ah,null,i.default.createElement(I,{name:"more_vert"})),onOpenChange:p},r&&n,a.some((e=>e.sortable))&&i.default.createElement(wh,{onClose:()=>p(!1)}),i.default.createElement(Ch,null),i.default.createElement(Ih,null)))))},Hh=e=>{if(!e)return[];const t=[];let n=0,r=!isNaN(Number(e[0]));for(let a=1;a<=e.length;a++){const i=e[a],o=!isNaN(Number(i))&&" "!==i;o===r&&" "!==i&&a!==e.length||(t.push({start:n,end:a-1,value:e.slice(n,a),editable:r}),n=a,r=o)}return t},Nh=e=>e.map((e=>e.value)).join(""),Vh={Backspace:"Backspace",Delete:"Delete",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",Tab:"Tab",0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},Zh=Object.keys(Vh).filter((e=>!isNaN(Number(e)))),Dh=Object.values(Vh),Sh=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,Lh=/\d\d/,Oh=/-?\d\d?/,Rh=/\d*[^-_:/,()\s\d]+/;let $h={},Th=function(e){return(e=+e)+(e>68?1900:2e3)};const zh=function(e){return function(t){this[e]=+t}},Bh=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;const t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],Gh=e=>{const t=$h[e];return t&&(t.indexOf?t:t.s.concat(t.f))},Ph=(e,t)=>{let n;const{meridiem:r}=$h;if(r){for(let a=1;a<=24;a+=1)if(e.indexOf(r(a,0,t))>-1){n=a>12;break}}else n=e===(t?"pm":"PM");return n},Wh={A:[Rh,function(e){this.afternoon=Ph(e,!1)}],a:[Rh,function(e){this.afternoon=Ph(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[Lh,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[Oh,zh("seconds")],ss:[Oh,zh("seconds")],m:[Oh,zh("minutes")],mm:[Oh,zh("minutes")],H:[Oh,zh("hours")],h:[Oh,zh("hours")],HH:[Oh,zh("hours")],hh:[Oh,zh("hours")],D:[Oh,zh("day")],DD:[Lh,zh("day")],Do:[Rh,function(e){const{ordinal:t}=$h;if([this.day]=e.match(/\d+/),t)for(let n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[Oh,zh("month")],MM:[Lh,zh("month")],MMM:[Rh,function(e){const t=Gh("months"),n=(Gh("monthsShort")||t.map((e=>e.slice(0,3)))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[Rh,function(e){const t=Gh("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,zh("year")],YY:[Lh,function(e){this.year=Th(e)}],YYYY:[/\d{4}/,zh("year")],Z:Bh,ZZ:Bh};const jh=(e,t,n)=>{try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);const r=function(e){const t=e.match(Sh),{length:n}=t;for(let e=0;e<n;e+=1){const n=t[e],r=Wh[n],a=r&&r[0],i=r&&r[1];t[e]=i?{regex:a,parser:i}:n.replace(/^\[|\]$/g,"")}return function(e){const r={};for(let a=0,i=0;a<n;a+=1){const n=t[a];if("string"==typeof n)i+=n.length;else{const{regex:t,parser:a}=n,o=e.slice(i),l=t.exec(o)[0];a.call(r,l),e=e.replace(l,"")}}return function(e){const{afternoon:t}=e;if(void 0!==t){const{hours:n}=e;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(r),r}}(t),{year:a,month:i,day:o,hours:l,minutes:s,seconds:c,milliseconds:u,zone:d}=r(e),p=new Date,f=a||p.getFullYear(),m=i-1,g=l||0,h=s||0,b=c||0,v=u||0;return d?new Date(Date.UTC(f,m,o,g,h,b,v+60*d.offset*1e3)):n?new Date(Date.UTC(f,m,o,g,h,b,v)):new Date(f,m,o,g,h,b,v)}catch(e){return new Date("")}};var Fh=(e,t,n)=>{n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&({parseTwoDigitYear:Th}=e);const r=t.prototype,a=r.parse;r.parse=function(e){const{date:t,utc:r,args:i}=e;this.$u=r;const o=i[1];if("string"==typeof o){const e=!0===i[2],a=!0===i[3],l=e||a;let s=i[2];a&&([,,s]=i),$h=this.$locale(),!e&&s&&($h=n.Ls[s]),this.$d=jh(t,o,r),this.init(),s&&!0!==s&&(this.$L=this.locale(s).$L),l&&t!=this.format(o)&&(this.$d=new Date("")),$h={}}else if(o instanceof Array){const e=o.length;for(let t=1;t<=e;t+=1){i[1]=o[t-1];const r=n.apply(this,i);if(r.isValid()){this.$d=r.$d,this.$L=r.$L,this.init();break}t===e&&(this.$d=new Date(""))}}else a.call(this,e)}};const Xh=({date:t,format:n="YYYY-MM-DD",onDateChange:r})=>{Zt.extend(Fh);const a=e.useRef(null),[i,o]=e.useState(null==t?void 0:t.format(n)),[l,s]=e.useState(Hh(i)),[c,u]=e.useState({start:0,end:l.length-1,current:0}),[d,p]=e.useState(0),f=e.useCallback((()=>{setTimeout((()=>{var e,t,n;const r=null!==(t=null===(e=a.current)||void 0===e?void 0:e.selectionStart)&&void 0!==t?t:0,i=l[l.length-1].end+1,o=r>=i?i:r,s=l.findIndex((e=>o>=e.start&&o<=e.end+1));u((e=>l[s].editable?e.current===s?e:Object.assign(Object.assign({},e),{current:s}):Object.assign(Object.assign({},e),{current:s+1}))),null===(n=a.current)||void 0===n||n.setSelectionRange(l[s].start,l[s].end+1)}))}),[l]),m=e.useCallback((()=>{}),[]),g=e.useCallback((()=>{u((e=>Object.assign(Object.assign({},e),{current:0}))),p(0)}),[]),h=e.useCallback((e=>{if(Dh.includes(e.key)){if(e.key===Vh.ArrowLeft||e.key===Vh.ArrowRight){e.preventDefault();const t=e=>{const t=c.current;if(e===Vh.ArrowLeft){for(let e=t-1;e>=0;e--)if(l[e].editable)return e-t}else if(e===Vh.ArrowRight)for(let e=t+1;e<l.length;e++)if(l[e].editable)return e-t;return 0},n=e.key;u((e=>Object.assign(Object.assign({},e),{current:e.current+t(n)})))}if(e.key===Vh.ArrowUp||e.key===Vh.ArrowDown){e.preventDefault();const t=e.key===Vh.ArrowUp?1:-1,a=Number(l[c.current].value)+t,i=String(a).padStart(l[c.current].value.length,"0"),u=[...l];u[c.current].value=i,s(u);const d=Nh(u),p=Zt(d,n);o(p.format(n)),p.isValid()&&r&&r(p)}if(Zh.includes(e.key)){e.preventDefault(),0===d&&(l[c.current].value="".padStart(l[c.current].value.length,"0"));const t=`${l[c.current].value.slice(1)}${e.key}`,a=[...l];if(a[c.current].value=t,s(a),p(d+1),d+1===l[c.current].value.length){p(0);const e=Nh(l),t=Zt(e,n);o(t.format(n)),r&&r(t)}else{const e=Nh(l);if(!Zt(e,n,!0).isValid())return void o(e);const t=Zt(e,n);o(t.format(n)),r&&r(t)}}}}),[l,n,r,c]),b=e.useCallback((()=>{f()}),[f]),v=e.useCallback((e=>{e.preventDefault();const t=e.clipboardData.getData("text"),n=Zt(t);r&&r(n)}),[r]);return e.useEffect((()=>{var e;null===(e=a.current)||void 0===e||e.setSelectionRange(l[c.current].start,l[c.current].end+1)}),[c,l]),e.useEffect((()=>{o(null==t?void 0:t.format(n)),s(Hh(null==t?void 0:t.format(n)))}),[t,n]),{ref:a,value:i,onFocus:m,onBlur:g,onKeyDown:h,onMouseDown:b,onPaste:v}},Yh=o.default.div`
|
|
1570
1570
|
display: flex;
|
|
1571
1571
|
align-items: center;
|
|
1572
1572
|
width: fit-content;
|
|
@@ -1686,7 +1686,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1686
1686
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
1687
1687
|
`,hb=o.default(mb)`
|
|
1688
1688
|
border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
|
|
1689
|
-
`,bb=o.default(
|
|
1689
|
+
`,bb=o.default(S)`
|
|
1690
1690
|
border-top: none;
|
|
1691
1691
|
`,vb=o.default.div`
|
|
1692
1692
|
padding-left: ${({theme:e})=>e.spacing/2}px;
|
|
@@ -1715,9 +1715,9 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1715
1715
|
align-items: center;
|
|
1716
1716
|
justify-content: center;
|
|
1717
1717
|
gap: ${({theme:e})=>2*e.spacing}px;
|
|
1718
|
-
`,Mb=({items:e,selectedItemTitle:t,onRemove:n})=>{const r=x();return i.default.createElement(wb,null,i.default.createElement(Cb,null,i.default.createElement(
|
|
1718
|
+
`,Mb=({items:e,selectedItemTitle:t,onRemove:n})=>{const r=x();return i.default.createElement(wb,null,i.default.createElement(Cb,null,i.default.createElement($,{size:"sm",weight:"bold"},i.default.createElement($,{color:"primary",component:"span",size:"sm",weight:"bold"},e.length," "),t)),i.default.createElement(Eb,null,e.map(((t,a)=>i.default.createElement(Ib,{key:t.id,isLastIndex:a+1===e.length},t.content,i.default.createElement(Ab,null,n&&i.default.createElement(kb,{type:"button",onClick:()=>n(t)},i.default.createElement(I,{color:r.palette.black,name:"close_circle",type:"fill"}))))))))},Hb=(e,t)=>{const n=[];return e.forEach((e=>{if(e.items)return void n.push(Object.assign(Object.assign({},e),{items:Hb(e.items,t)}));t.find((t=>t.id===e.id))?n.push(Object.assign(Object.assign({},e),{selected:!0})):n.push(e)})),n},Nb=i.forwardRef((function(e){const{candidateItems:t,selectedItems:n,selectedItemTitle:r,disableCheckbox:a,onAdd:o,onRemove:l}=Fn({props:e,name:"DualListBox"}),s=x(),c=i.useMemo((()=>Hb(t,n)),[t,n]);return i.createElement(pb,null,i.createElement(yb,{disableCheckbox:a,items:c,onAdd:o,onRemove:l}),i.createElement(Kn,{color:s.palette.divider,orientation:"vertical"}),i.createElement(Mb,{items:n,selectedItemTitle:r,onRemove:l}))})),Vb=({id:t,children:n,isIncluded:r=!1,isExcluded:a=!1,disableInclude:o,disableExclude:l})=>{const{onIncludedChange:s,onExcludedChange:u,includedIds:d,excludedIds:p}=e.useContext(Zb),f=(e,t,n)=>e?c.basic[400]:t?n:c.basic[900];return i.default.createElement(iv,null,n,i.default.createElement(av,null,i.default.createElement("li",null,i.default.createElement("button",{type:"button",disabled:o,"aria-pressed":r,"aria-label":"追加",style:{"--color":c.blue[500]},onClick:()=>{r?s(d.filter((e=>e!==t))):a?(u(p.filter((e=>e!==t))),s([...d,t])):s([...d,t])}},i.default.createElement(I,{name:"check_thin",color:f(o,r,c.blue[500])}))),i.default.createElement("li",null,i.default.createElement("button",{type:"button",disabled:l,"aria-pressed":a,"aria-label":"除外",style:{"--color":c.red[500]},onClick:()=>{a?u(p.filter((e=>e!==t))):r?(s(d.filter((e=>e!==t))),u([...p,t])):u([...p,t])}},i.default.createElement(I,{name:"forbid",color:f(l,a,c.red[500])})))))};Vb.displayName="DualListBox2Item";const Zb=e.createContext({filterWords:[],includedIds:[],excludedIds:[],activeSection:null,onIncludedChange:e=>{},onExcludedChange:e=>{},setActiveSection:e=>{}}),Db=e.createContext({groupName:""}),Sb=(t,n)=>{e.Children.forEach(t,(t=>{n(t),e.isValidElement(t)&&t.props.children&&Sb(t.props.children,n)}))},Lb=t=>{const n=[];return Sb(t,(t=>{e.isValidElement(t)&&"string"!=typeof t.type&&"displayName"in t.type&&t.type.displayName===Vb.displayName&&n.push({id:t.props.id,label:t.props.children,groupName:t.props.groupName})})),n},Ob=({label:t,disableInclude:n,disableExclude:r,children:a,onOpen:o})=>{const[l,s]=e.useState(!1),u=e.useCallback((()=>{const e=!l;s(e),e&&o&&o()}),[l,o]),{includedIds:d,excludedIds:p,onIncludedChange:f,onExcludedChange:m}=e.useContext(Zb),g=e.useMemo((()=>(e=>Lb(e).map((e=>e.id)))(a)),[a]),h=e.useCallback((()=>{g.every((e=>d.includes(e)))||(f(Array.from(new Set([...d,...g]))),m(p.filter((e=>!g.includes(e)))))}),[g,d,p,f,m]),b=e.useCallback((()=>{g.every((e=>p.includes(e)))||(m(Array.from(new Set([...p,...g]))),f(d.filter((e=>!g.includes(e)))))}),[g,d,p,f,m]);return i.default.createElement(i.default.Fragment,null,i.default.createElement(sv,null,i.default.createElement(cv,{type:"button","aria-label":`${t}を開く`,"aria-expanded":l,onClick:u},t),i.default.createElement(uv,null,i.default.createElement("li",null,i.default.createElement("button",{type:"button",disabled:n,"aria-label":"追加",onClick:h},i.default.createElement(I,{name:"check_thin",color:c.blue[500]}))),i.default.createElement("li",null,i.default.createElement("button",{type:"button",disabled:r,"aria-label":"除外",onClick:b},i.default.createElement(I,{name:"forbid",color:c.red[500]})))),i.default.createElement(dv,null,i.default.createElement(I,{name:"arrow_down",color:c.basic[900]}))),l&&a)},Rb=`\n display: flex;\n gap: 4px;\n box-sizing: border-box;\n padding: 6px;\n border: 1px solid ${c.basic[400]};\n border-radius: 4px;\n background: #ffffff;\n /* UI/Text 12 */\n font-size: 12px;\n color: ${c.basic[900]};\n cursor: pointer;\n box-shadow: ${mt(1,.04,p.action.shadowBase)};\n\n &:where(:disabled) {\n color: ${c.basic[400]};\n background: ${c.basic[200]};\n box-shadow: ${mt(1,.04,p.black)};\n cursor: not-allowed;\n }\n\n &:where(li:not(:first-child) button) {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n\n &:where(li:not(:last-child) button) {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n\n &:where(:hover:not(:disabled)) {\n background: ${c.basic[100]};\n }\n\n &:where(:active:not(:disabled)) {\n padding-block: 8px 4px;\n background: ${p.gray.highlight};\n box-shadow: ${mt(2,.04,p.black)};\n }\n`,$b=o.default.div`
|
|
1719
1719
|
container-type: inline-size;
|
|
1720
|
-
|
|
1720
|
+
`,Tb=o.default.ul`
|
|
1721
1721
|
display: none;
|
|
1722
1722
|
padding: 0;
|
|
1723
1723
|
margin: 0;
|
|
@@ -2201,7 +2201,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2201
2201
|
padding-left: 48px;
|
|
2202
2202
|
`;const hv=({label:t,children:n})=>{const{activeSection:r,setActiveSection:a}=e.useContext(Zb),o=e.useMemo((()=>r===t),[t,r]),l=e.useMemo((()=>null!==r&&r!==t),[t,r]),s=e.useCallback((()=>{a(o?null:t)}),[t,o,a]);return l?null:i.default.createElement(Db.Provider,{value:{groupName:t}},i.default.createElement(mv,{type:"button","aria-label":`${t}を開く`,"aria-expanded":o,onClick:s},i.default.createElement(pv,null,i.default.createElement(I,{name:"arrow_left",color:c.basic[900]})),i.default.createElement("div",null,t),i.default.createElement(fv,null,i.default.createElement(I,{name:"arrow_right",color:c.basic[900]}))),o&&n)};hv.displayName="DualListBox2Section";const bv=o.default(Po)`
|
|
2203
2203
|
margin-right: 16px;
|
|
2204
|
-
`,vv=({pageSize:e,pageSizeOptions:t,onPageSizeChange:n})=>i.default.createElement(Gc,{width:136,trigger:i.default.createElement(bv,{append:e},"件数を変更")},t.map((t=>i.default.createElement(
|
|
2204
|
+
`,vv=({pageSize:e,pageSizeOptions:t,onPageSizeChange:n})=>i.default.createElement(Gc,{width:136,trigger:i.default.createElement(bv,{append:e},"件数を変更")},t.map((t=>i.default.createElement(Lo,{key:t,closeOnChange:!0,checked:e===t,onChange:()=>n(t)},t,"件")))),xv=e=>e.reduce(((e,t)=>{const n=e.find((e=>e.groupName===t.groupName));return n?n.items.push({id:t.id,label:t.label}):e.push({groupName:t.groupName,items:[{id:t.id,label:t.label}]}),e}),[]),yv=i.default.memo((({id:t,children:n})=>{const{includedIds:r,excludedIds:a,onIncludedChange:o,onExcludedChange:l}=e.useContext(Zb),s=e.useMemo((()=>r.includes(t)),[r,t]),c=e.useMemo((()=>a.includes(t)),[a,t]),u=e.useCallback((()=>{s&&o(r.filter((e=>e!==t))),c&&l(a.filter((e=>e!==t)))}),[s,c,r,a,o,l,t]);return i.default.createElement(ov,null,n,i.default.createElement("button",{type:"button","aria-label":"解除",onClick:u}))}));yv.displayName="DualListBox2SelectedItem";const wv=({label:e})=>i.default.createElement(lv,null,e),Cv=e.forwardRef((({included:t,excluded:n,disableInclude:r,disableExclude:a,menuButtons:o,children:l,loading:s,onIncludedChange:u,onExcludedChange:d,onLoadMore:p,pageSize:f=50,pageSizeOptions:m=[10,50,100,200],onPageSizeChange:g,filter:h="",onFilterChange:b},v)=>{const[x,y]=e.useState(0),[w,C]=e.useState(""),[E,k]=e.useState(null),[A,M]=e.useState(!1),H=e.useRef(null),N=b?h:w,V=e.useCallback((e=>{const t=e.target.value;b?b(t):C(t)}),[b]),Z=e.useCallback((()=>{b?b(""):C("")}),[b]),D=e.useCallback((e=>{k(e),null===e&&Z()}),[Z]),S=e.useMemo((()=>{let t=!1;return Sb(l,(n=>{e.isValidElement(n)&&"string"!=typeof n.type&&"displayName"in n.type&&n.type.displayName===hv.displayName&&(t=!0)})),t}),[l]),L=e.useMemo((()=>{const e=N.trim();return e?e.split(/\s+/):[]}),[N]),O=e.useMemo((()=>Lb(l)),[l]),R=e.useCallback((t=>{if(!e.isValidElement(t))return t;if(t.type!==Vb)return t;const n=O.find((e=>e.id===t.props.id));return n&&L.every((e=>n.label.toLowerCase().includes(e.toLowerCase())))?t:null}),[L,O]),$=e.useMemo((()=>L.length?i.default.Children.map(l,(t=>{if(!e.isValidElement(t))return t;if(t.type===Vb)return R(t);if("string"!=typeof t.type&&"displayName"in t.type&&"DualListBox2Accordion"===t.type.displayName){const n=i.default.Children.toArray(t.props.children).filter(e.isValidElement).map((e=>R(e))).filter(Boolean);return 0===n.length?null:i.default.cloneElement(t,Object.assign(Object.assign({},t.props),{children:n}))}if("string"!=typeof t.type&&"displayName"in t.type&&"DualListBox2Section"===t.type.displayName){const n=i.default.Children.toArray(t.props.children).filter(e.isValidElement).map((e=>R(e))).filter(Boolean);return i.default.cloneElement(t,Object.assign(Object.assign({},t.props),{children:n}))}return t})):l),[l,L,R]),T=e.useMemo((()=>t.map((e=>e.id))),[t]),z=e.useMemo((()=>n.map((e=>e.id))),[n]),B=e.useMemo((()=>O.map((e=>e.id))),[O]),G=e.useMemo((()=>0===L.length?B:B.filter((e=>{const t=O.find((t=>t.id===e));return!!t&&L.every((e=>t.label.includes(e)))}))),[B,O,L]),P=e.useMemo((()=>{if(!S)return[];if(null===E)return[];const t=[];return Sb(l,(n=>{e.isValidElement(n)&&"string"!=typeof n.type&&"displayName"in n.type&&n.type.displayName===hv.displayName&&n.props.label===E&&Sb(n.props.children,(n=>{e.isValidElement(n)&&"string"!=typeof n.type&&"displayName"in n.type&&n.type.displayName===Vb.displayName&&t.push(n.props.id)}))})),t}),[E,l,S]),W=e.useMemo((()=>0===L.length?P:P.filter((e=>{const t=O.find((t=>t.id===e));return!!t&&L.every((e=>t.label.includes(e)))}))),[P,O,L]),j=e.useMemo((()=>{if(S){if(null===E)return!0;return!!W.every((e=>T.includes(e)))}return!!G.every((e=>T.includes(e)))}),[S,E,G,W,T]),F=e.useMemo((()=>{if(S){if(null===E)return!0;return!!W.every((e=>z.includes(e)))}return!!G.every((e=>z.includes(e)))}),[S,E,G,W,z]),X=e.useCallback((()=>{t.length&&u([]),n.length&&d([])}),[t,n,u,d]),Y=e.useCallback((()=>{if(S){if(null===E)return;return u(Array.from(new Set([...T,...W]))),void d(z.filter((e=>!W.includes(e))))}u(Array.from(new Set([...T,...G]))),d(z.filter((e=>!G.includes(e))))}),[G,u,d,S,E,T,z,W]),J=e.useCallback((()=>{if(S){if(null===E)return;return d(Array.from(new Set([...z,...W]))),void u(T.filter((e=>!W.includes(e))))}d(Array.from(new Set([...z,...G]))),u(T.filter((e=>!G.includes(e))))}),[G,u,d,S,E,T,z,W]),U=e.useCallback((async e=>{if(e[0].isIntersecting&&!A&&p){M(!0);try{await p()}finally{M(!1)}}}),[A,p]);return e.useEffect((()=>{if("undefined"==typeof IntersectionObserver)return;const e=new IntersectionObserver(U,{root:null,rootMargin:"100px",threshold:.1}),t=H.current;return t&&e.observe(t),()=>{t&&e.unobserve(t)}}),[U]),i.default.createElement($b,{ref:v,role:"region","aria-label":"デュアルリストボックス"},i.default.createElement(Tb,{role:"tablist","aria-label":"リストの表示切り替え"},i.default.createElement("li",null,i.default.createElement("button",{type:"button",role:"tab","aria-selected":0===x,"aria-expanded":0===x,"aria-controls":"list-items-panel",onClick:()=>y(0)},"リストアイテム")),i.default.createElement("li",null,i.default.createElement("button",{type:"button",role:"tab","aria-selected":1===x,"aria-expanded":1===x,"aria-controls":"selected-items-panel",onClick:()=>y(1)},"選択済みアイテム",(t.length>0||n.length>0)&&i.default.createElement(zb,null,t.length+n.length)))),i.default.createElement(Bb,null,i.default.createElement(Zb.Provider,{value:{filterWords:L,includedIds:T,excludedIds:z,activeSection:E,onIncludedChange:u,onExcludedChange:d,setActiveSection:D}},i.default.createElement(Gb,{isShow:0===x,id:"list-items-panel",role:"tabpanel","aria-labelledby":"list-items-tab"},i.default.createElement(Wb,{hasMenu:!(!o&&!g)},i.default.createElement(jb,null,i.default.createElement(I,{name:"search",size:"sm",color:c.basic[600]}),i.default.createElement("input",{"aria-label":"アイテムを検索",disabled:S&&null===E,placeholder:"検索",type:"text",value:N,onChange:V}),N&&i.default.createElement(Fb,{type:"button","aria-label":"検索をリセット",onClick:Z})),(o||g)&&i.default.createElement(Pc,null,i.default.createElement(Gc,{trigger:i.default.createElement(Xb,{type:"button"},i.default.createElement(I,{name:"more_vert",color:c.basic[900]}))},g&&i.default.createElement(vv,{pageSize:f,pageSizeOptions:m,onPageSizeChange:g}),o)),i.default.createElement(Yb,null,s?i.default.createElement(Tn,{width:"16px"}):i.default.createElement(i.default.Fragment,null,S&&null===E?"-":S?W.length.toLocaleString("en-US"):G.length.toLocaleString("en-US"),"件")),i.default.createElement(Jb,null,!r&&i.default.createElement("li",null,i.default.createElement("button",{type:"button",disabled:j,onClick:Y},i.default.createElement(I,{name:"check_thin",color:j?c.basic[400]:c.blue[500]}),"全て追加")),!a&&i.default.createElement("li",null,i.default.createElement("button",{type:"button",disabled:F,onClick:J},i.default.createElement(I,{name:"forbid",color:F?c.basic[400]:c.red[500]}),"全て除外")))),i.default.createElement(Pb,null,$,i.default.createElement("div",{ref:H,style:{height:"20px"}},s&&i.default.createElement(gv,null,"読み込み中...")))),i.default.createElement(Ub,{isShow:1===x},i.default.createElement(Qb,null,i.default.createElement(qb,null,0!==t.length&&i.default.createElement(ev,null,i.default.createElement(I,{name:"check_thin",color:c.blue[500]}),t.length),0!==n.length&&i.default.createElement(tv,null,i.default.createElement(I,{name:"forbid",color:c.red[500]}),n.length)),i.default.createElement(nv,null,i.default.createElement(st,{type:"button",color:"basicLight",size:"small",disabled:!t.length&&!n.length,onClick:X},"選択をクリア"))),i.default.createElement(_b,null,!!t.length&&i.default.createElement(rv,null,i.default.createElement(I,{name:"check_thin",color:c.blue[500]}),"追加"),xv(t).map((t=>i.default.createElement(e.Fragment,{key:t.groupName||"_"},t.groupName&&i.default.createElement(wv,{label:t.groupName}),t.items.map((e=>i.default.createElement(yv,{key:e.id,id:e.id},e.label)))))),!!n.length&&i.default.createElement(rv,null,i.default.createElement(I,{name:"forbid",color:c.red[500]}),"除外"),xv(n).map((t=>i.default.createElement(e.Fragment,{key:t.groupName||"_"},t.groupName&&i.default.createElement(wv,{label:t.groupName}),t.items.map((e=>i.default.createElement(yv,{key:e.id,id:e.id},e.label)))))))))))}));Cv.displayName="DualListBox2";const Ev=i.forwardRef((function({children:e},t){const n=x();return i.createElement(A,{ref:t,display:"flex",alignItems:"center"},i.createElement(rt,{pr:.5},i.createElement(I,{name:"alert",color:n.palette.danger.main,size:"md"})),i.createElement($,{color:n.palette.danger.main},e))})),Iv=o.default.div`
|
|
2205
2205
|
display: flex;
|
|
2206
2206
|
justify-content: center;
|
|
2207
2207
|
align-items: center;
|
|
@@ -2219,7 +2219,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2219
2219
|
border: 2px solid ${({theme:e})=>e.palette.primary.main};
|
|
2220
2220
|
background-color: ${({theme:e})=>e.palette.background.hint};
|
|
2221
2221
|
}
|
|
2222
|
-
`,kv=o.default.div``,Av=i.forwardRef((function(e,t){const n=Fn({props:e,name:"FileUploader"}),{accept:r,title:a="Click or Drag & Drop file.",width:o,description:l,onSelectFiles:s}=n,c=i.useRef(null),[u,d]=i.useState(!1),p=i.useCallback((e=>{e.preventDefault(),e.stopPropagation(),d(!1),s(e,e.dataTransfer.files)}),[d,s]),f=i.useCallback((e=>{e.preventDefault(),e.stopPropagation(),d(!0)}),[d]),m=i.useCallback((()=>{d(!1)}),[d]),g=i.useCallback((e=>{s(e,e.target.files)}),[s]);return i.createElement(Iv,{ref:t,width:o,filesDraggedOver:u,onDrop:p,onDragOver:f,onDragLeave:m,onClick:()=>{var e;null===(e=c.current)||void 0===e||e.click()}},i.createElement("input",{ref:c,multiple:!0,"aria-label":"file-uploader",type:"file",accept:r,onChange:g}),i.createElement(kv,null,i.createElement(A,{display:"flex"},i.createElement(I,{name:"folder_open",size:"md",color:"active"}),i.createElement(
|
|
2222
|
+
`,kv=o.default.div``,Av=i.forwardRef((function(e,t){const n=Fn({props:e,name:"FileUploader"}),{accept:r,title:a="Click or Drag & Drop file.",width:o,description:l,onSelectFiles:s}=n,c=i.useRef(null),[u,d]=i.useState(!1),p=i.useCallback((e=>{e.preventDefault(),e.stopPropagation(),d(!1),s(e,e.dataTransfer.files)}),[d,s]),f=i.useCallback((e=>{e.preventDefault(),e.stopPropagation(),d(!0)}),[d]),m=i.useCallback((()=>{d(!1)}),[d]),g=i.useCallback((e=>{s(e,e.target.files)}),[s]);return i.createElement(Iv,{ref:t,width:o,filesDraggedOver:u,onDrop:p,onDragOver:f,onDragLeave:m,onClick:()=>{var e;null===(e=c.current)||void 0===e||e.click()}},i.createElement("input",{ref:c,multiple:!0,"aria-label":"file-uploader",type:"file",accept:r,onChange:g}),i.createElement(kv,null,i.createElement(A,{display:"flex"},i.createElement(I,{name:"folder_open",size:"md",color:"active"}),i.createElement($,{weight:"bold",color:"primary"},a)),l&&i.createElement(i.Fragment,null,i.createElement(rt,{pt:2.5}),i.createElement($,{weight:"bold",align:"center",size:"sm",color:"secondary"},l))))})),Mv={small:{height:"28px",borderRadius:"4px",iconSize:"20px",arrowIconSize:"16px",padding:"0 2px 0 6px"},medium:{height:"32px",borderRadius:"6px",iconSize:"22px",arrowIconSize:"18px",padding:"0 2px 0 6px"},large:{height:"40px",borderRadius:"6px",iconSize:"24px",arrowIconSize:"20px",padding:"0 4px 0 8px"}},Hv={light:{background:c.basic[0]},dark:{background:c.basic[100]}},Nv=t.css`
|
|
2223
2223
|
border: 1px solid ${c.basic[400]};
|
|
2224
2224
|
background-color: ${c.basic[0]};
|
|
2225
2225
|
`,Vv=e=>t.css`
|
|
@@ -2313,7 +2313,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2313
2313
|
border-radius: 0px;
|
|
2314
2314
|
background-color: transparent;
|
|
2315
2315
|
}
|
|
2316
|
-
`,
|
|
2316
|
+
`,Sv=o.default.button`
|
|
2317
2317
|
flex-shrink: 0;
|
|
2318
2318
|
position: relative;
|
|
2319
2319
|
z-index: 1;
|
|
@@ -2393,7 +2393,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2393
2393
|
width: 100%;
|
|
2394
2394
|
height: 100%;
|
|
2395
2395
|
}
|
|
2396
|
-
`,o.default(
|
|
2396
|
+
`,o.default(Lo)`
|
|
2397
2397
|
svg {
|
|
2398
2398
|
width: 22px;
|
|
2399
2399
|
height: 22px;
|
|
@@ -2402,31 +2402,31 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2402
2402
|
width: 22px;
|
|
2403
2403
|
height: 22px;
|
|
2404
2404
|
}
|
|
2405
|
-
`;const
|
|
2405
|
+
`;const Lv={small:{height:"20px",fontSize:"11px",padding:"2px 6px",iconSize:"14px",borderRadius:"2px"},medium:{height:"22px",fontSize:"12px",padding:"2px 7px",iconSize:"16px",borderRadius:"4px"},large:{height:"26px",fontSize:"13px",padding:"3px 8px",iconSize:"18px",borderRadius:"4px"}},Ov={light:{background:c.basic[0],border:c.basic[400],text:c.basic[900],hoverIcon:c.basic[800]},dark:{background:c.basic[100],border:c.basic[400],text:c.basic[900],hoverIcon:c.basic[800]}},Rv=o.default.div`
|
|
2406
2406
|
isolation: isolate;
|
|
2407
2407
|
display: inline-flex;
|
|
2408
2408
|
align-items: center;
|
|
2409
2409
|
gap: 4px;
|
|
2410
2410
|
width: fit-content;
|
|
2411
|
-
min-height: ${({$size:e})=>
|
|
2412
|
-
padding: ${({$size:e})=>
|
|
2411
|
+
min-height: ${({$size:e})=>Lv[e].height};
|
|
2412
|
+
padding: ${({$size:e})=>Lv[e].padding};
|
|
2413
2413
|
border: 1px solid
|
|
2414
2414
|
${({$variant:e,$disabled:t})=>t?c.basic[400]:Ov[e].border};
|
|
2415
|
-
border-radius: ${({$size:e})=>
|
|
2415
|
+
border-radius: ${({$size:e})=>Lv[e].borderRadius};
|
|
2416
2416
|
font-weight: 400;
|
|
2417
|
-
font-size: ${({$size:e})=>
|
|
2417
|
+
font-size: ${({$size:e})=>Lv[e].fontSize};
|
|
2418
2418
|
line-height: 1.2;
|
|
2419
2419
|
word-break: break-all;
|
|
2420
2420
|
color: ${({$variant:e,$disabled:t})=>t?c.basic[400]:Ov[e].text};
|
|
2421
2421
|
background-color: ${({$variant:e,$disabled:t})=>t?c.basic[200]:Ov[e].background};
|
|
2422
2422
|
cursor: ${({$disabled:e})=>e?"not-allowed":"default"};
|
|
2423
|
-
|
|
2423
|
+
`,$v=o.default.div``,Tv=o.default.button`
|
|
2424
2424
|
flex-shrink: 0;
|
|
2425
2425
|
display: flex;
|
|
2426
2426
|
align-items: center;
|
|
2427
2427
|
justify-content: center;
|
|
2428
|
-
width: ${({$size:e})=>
|
|
2429
|
-
height: ${({$size:e})=>
|
|
2428
|
+
width: ${({$size:e})=>Lv[e].iconSize};
|
|
2429
|
+
height: ${({$size:e})=>Lv[e].iconSize};
|
|
2430
2430
|
padding: 0;
|
|
2431
2431
|
margin-right: -2px;
|
|
2432
2432
|
border: 0;
|
|
@@ -2442,7 +2442,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2442
2442
|
width: 100%;
|
|
2443
2443
|
height: 100%;
|
|
2444
2444
|
}
|
|
2445
|
-
`,zv=({label:e,size:t="medium",variant:n="light",onRemove:r,className:a,disabled:o=!1})=>{const l=o?void 0:r;return i.default.createElement(Rv,{$size:t,$variant:n,$disabled:o,className:a},i.default.createElement(
|
|
2445
|
+
`,zv=({label:e,size:t="medium",variant:n="light",onRemove:r,className:a,disabled:o=!1})=>{const l=o?void 0:r;return i.default.createElement(Rv,{$size:t,$variant:n,$disabled:o,className:a},i.default.createElement($v,{$size:t,$variant:n,$disabled:o},e),r&&i.default.createElement(Tv,{type:"button","aria-label":"削除",$size:t,$variant:n,$disabled:o,onClick:l},i.default.createElement(I,{name:"close_circle",type:"fill",color:"currentColor"})))},Bv=e.createContext({isSmall:!1,disabled:!1}),Gv=({label:e,size:t="medium",variant:n="dark",onRemove:r})=>{const{disabled:a}=i.default.useContext(Bv),o=a?void 0:r;return i.default.createElement(zv,{label:e,size:t,variant:n,disabled:a,onRemove:o})},Pv=({selectedIndex:t,selectOptions:n,onSelectChange:r,children:a,size:o="medium",disabled:l=!1,error:s=!1,isOpen:c=!1})=>{const[u,d]=e.useState(!1),[p,f]=e.useState(!1),m=e.useRef(null),g=e.useCallback((e=>{r(e),d(!1)}),[r,d]),h=e.useCallback((()=>{l||d(!u)}),[l,u,d]),b=e.useCallback((e=>{l||d(e)}),[l,d]);return e.useEffect((()=>{if(!window.ResizeObserver)return;if(!m.current)return;const e=new window.ResizeObserver((()=>{m.current&&f(m.current.clientWidth<130)}));return e.observe(m.current),()=>{e.disconnect()}}),[f]),i.default.createElement(Dv,{ref:m,"data-small":p,"data-size":o,"data-disabled":l,$isOpen:c,$error:s,$disabled:l},i.default.createElement(Pc,null,i.default.createElement(Gc,{open:!l&&u,trigger:i.default.createElement(Sv,{type:"button",disabled:l,"aria-label":"フィルターのタイプを選ぶ",onClick:h},n[t].icon,i.default.createElement(I,{name:"arrow_down",color:"currentColor"})),onOpenChange:b},n.map((({label:e,icon:n},r)=>i.default.createElement(Lo,{key:e,prepend:n,checked:t===r,disabled:l,onChange:()=>g(r)},e))))),i.default.createElement(Bv.Provider,{value:{isSmall:p,disabled:l}},a))},Wv=o.default.div`
|
|
2446
2446
|
position: relative;
|
|
2447
2447
|
display: flex;
|
|
2448
2448
|
align-items: center;
|
|
@@ -2512,7 +2512,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2512
2512
|
`,Xv=o.default.span`
|
|
2513
2513
|
flex-shrink: 0;
|
|
2514
2514
|
width: 18px;
|
|
2515
|
-
`,Yv=o.default(
|
|
2515
|
+
`,Yv=o.default(Sc)`
|
|
2516
2516
|
position: sticky;
|
|
2517
2517
|
top: 0;
|
|
2518
2518
|
z-index: 1;
|
|
@@ -2561,7 +2561,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2561
2561
|
`,_v=o.default.span`
|
|
2562
2562
|
flex-shrink: 0;
|
|
2563
2563
|
width: 18px;
|
|
2564
|
-
`,qv=o.default(
|
|
2564
|
+
`,qv=o.default(Sc)`
|
|
2565
2565
|
input {
|
|
2566
2566
|
&::placeholder {
|
|
2567
2567
|
color: ${({$placeholderColor:e})=>e||c.basic[600]};
|
|
@@ -2841,7 +2841,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2841
2841
|
color: ${c.basic[900]};
|
|
2842
2842
|
background: transparent;
|
|
2843
2843
|
cursor: pointer;
|
|
2844
|
-
`,yx=({isOpen:t,title:n,values:r,selectedIndex:a,selectOptions:o,onApply:l,onClose:s,menuIconSize:c})=>{const[u,d]=e.useState(""),[p,f]=e.useState(!1),[m,g]=e.useState([]),[h,b]=e.useState(0),[v,x]=e.useState(!1),y=e.useMemo((()=>o.map((e=>Object.assign(Object.assign({},e),{icon:i.default.cloneElement(e.icon,{size:c})})))),[o,c]),w=e.useMemo((()=>y.reduce(((e,t)=>t.label.length>e.label.length?t:e),y[0])),[y]),C=e.useRef(null),E=e.useCallback((e=>{b(e),x(!1)}),[]),k=e.useCallback((()=>{var e;null===(e=C.current)||void 0===e||e.focus()}),[]),A=e.useCallback((e=>{const t=[...m];t.splice(e,1),g(t)}),[m]),M=e.useCallback((e=>{if(p)return;if(!(e.target instanceof HTMLInputElement))return;if("Backspace"===e.key&&0===e.target.selectionStart)return void g(m.slice(0,-1));const t=e.target.value.trim();""===t||m.includes(t)||"Enter"===e.key&&(g([...m,t]),d(""))}),[m,g,p]),H=e.useCallback((()=>{g([]),d("")}),[]),N=e.useCallback((()=>{s()}),[s]),V=e.useCallback((()=>{l(m,h),s()}),[m,h,l,s]),Z=e.useCallback((e=>{d(e.target.value)}),[]),D=e.useCallback((()=>{f(!0)}),[]),
|
|
2844
|
+
`,yx=({isOpen:t,title:n,values:r,selectedIndex:a,selectOptions:o,onApply:l,onClose:s,menuIconSize:c})=>{const[u,d]=e.useState(""),[p,f]=e.useState(!1),[m,g]=e.useState([]),[h,b]=e.useState(0),[v,x]=e.useState(!1),y=e.useMemo((()=>o.map((e=>Object.assign(Object.assign({},e),{icon:i.default.cloneElement(e.icon,{size:c})})))),[o,c]),w=e.useMemo((()=>y.reduce(((e,t)=>t.label.length>e.label.length?t:e),y[0])),[y]),C=e.useRef(null),E=e.useCallback((e=>{b(e),x(!1)}),[]),k=e.useCallback((()=>{var e;null===(e=C.current)||void 0===e||e.focus()}),[]),A=e.useCallback((e=>{const t=[...m];t.splice(e,1),g(t)}),[m]),M=e.useCallback((e=>{if(p)return;if(!(e.target instanceof HTMLInputElement))return;if("Backspace"===e.key&&0===e.target.selectionStart)return void g(m.slice(0,-1));const t=e.target.value.trim();""===t||m.includes(t)||"Enter"===e.key&&(g([...m,t]),d(""))}),[m,g,p]),H=e.useCallback((()=>{g([]),d("")}),[]),N=e.useCallback((()=>{s()}),[s]),V=e.useCallback((()=>{l(m,h),s()}),[m,h,l,s]),Z=e.useCallback((e=>{d(e.target.value)}),[]),D=e.useCallback((()=>{f(!0)}),[]),S=e.useCallback((()=>{f(!1)}),[]),L=e.useCallback((()=>{d("")}),[]),O=e.useMemo((()=>m.map(((e,t)=>i.default.createElement(Gv,{key:e,size:"medium",variant:"light",label:e,onRemove:()=>A(t)})))),[m,A]),R=e.useMemo((()=>y.map((({label:e,icon:t},n)=>i.default.createElement(Lo,{key:e,prepend:t,checked:h===n,onChange:()=>E(n)},e)))),[y,h,E]),$=e.useMemo((()=>i.default.createElement(i.default.Fragment,null,i.default.cloneElement(y[h].icon,{size:c}),y[h].label)),[y,h,c]);return e.useEffect((()=>{t&&(g(r),b(a))}),[t,a,r]),i.default.createElement(Pn,{isOpen:t,onClose:s},i.default.createElement(Ue,{in:t},i.default.createElement(ix,null,i.default.createElement(ox,null,n),i.default.createElement(lx,null,i.default.createElement(cx,null,"条件"),i.default.createElement(Pc,null,i.default.createElement(Gc,{open:v,trigger:i.default.createElement(ux,null,i.default.createElement(dx,{role:"presentation"},w.icon,w.label),i.default.createElement(px,null,$),i.default.createElement(fx,null,i.default.createElement(I,{name:"arrow_down",color:"currentColor"}))),onOpenChange:x},R))),i.default.createElement(sx,null,i.default.createElement(cx,null,"値"),i.default.createElement(gx,null,i.default.createElement(hx,{type:"button",onClick:k}),O,i.default.createElement(bx,null,i.default.createElement("input",{ref:C,type:"text","aria-label":"フィルターする値",value:u,onChange:Z,onCompositionStart:D,onCompositionEnd:S,onKeyDown:M,onBlur:L}),i.default.createElement(vx,null,u)),i.default.createElement(xx,{type:"button",onClick:H},i.default.createElement(I,{name:"close_circle",type:"fill",color:"currentColor"})))),i.default.createElement(mx,null,i.default.createElement("li",null,i.default.createElement(st,{size:"small",color:"clear",onClick:N},"キャンセル")),i.default.createElement("li",null,i.default.createElement(st,{size:"small",onClick:V},"適用"))))))},wx=o.default.div`
|
|
2845
2845
|
position: fixed;
|
|
2846
2846
|
${({isOpen:e,height:t,offset:n,placement:r})=>`${r}: ${e?`${n}px`:""+(0!==t?`calc(${-t}px - 10px)`:"-100vh")}`};
|
|
2847
2847
|
width: 100%;
|
|
@@ -2910,9 +2910,9 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2910
2910
|
background-color: ${({theme:e})=>e.palette.gray.highlight};
|
|
2911
2911
|
border-radius: 0;
|
|
2912
2912
|
margin-bottom: 1.8vh;
|
|
2913
|
-
`,Lx=o.default.div`
|
|
2914
|
-
cursor: pointer;
|
|
2915
2913
|
`,Sx=o.default.div`
|
|
2914
|
+
cursor: pointer;
|
|
2915
|
+
`,Lx=o.default.div`
|
|
2916
2916
|
position: fixed;
|
|
2917
2917
|
top: 0;
|
|
2918
2918
|
left: 0;
|
|
@@ -2922,7 +2922,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2922
2922
|
display: flex;
|
|
2923
2923
|
justify-content: center;
|
|
2924
2924
|
align-items: center;
|
|
2925
|
-
`,Ox=i.forwardRef((function(e,t){const n=Fn({props:e,name:"FullSizeConfirmModal"}),{title:r,confirmText:a="Confirm",cancelText:o="Cancel",children:l,onClose:s,onSubmit:c,buttonColor:u="primary",isOpen:d=!0,disabled:p,loading:f,overflowYScroll:m=!0,disableHorizontalPadding:g=!1,subActions:h,modalProps:b,fadeProps:v}=n,y=x(),w=!!c,C=e=>t=>{s&&s(t,e)};return i.createElement(Pn,Object.assign({isOpen:d,onClose:s},b),i.createElement(Ue,Object.assign({in:d,unmountOnExit:!0},v),i.createElement(Hx,{ref:t},i.createElement("form",{onSubmit:c},i.createElement(Nx,null,i.createElement(Vx,null,i.createElement(
|
|
2925
|
+
`,Ox=i.forwardRef((function(e,t){const n=Fn({props:e,name:"FullSizeConfirmModal"}),{title:r,confirmText:a="Confirm",cancelText:o="Cancel",children:l,onClose:s,onSubmit:c,buttonColor:u="primary",isOpen:d=!0,disabled:p,loading:f,overflowYScroll:m=!0,disableHorizontalPadding:g=!1,subActions:h,modalProps:b,fadeProps:v}=n,y=x(),w=!!c,C=e=>t=>{s&&s(t,e)};return i.createElement(Pn,Object.assign({isOpen:d,onClose:s},b),i.createElement(Ue,Object.assign({in:d,unmountOnExit:!0},v),i.createElement(Hx,{ref:t},i.createElement("form",{onSubmit:c},i.createElement(Nx,null,i.createElement(Vx,null,i.createElement($,{weight:"bold",size:"xxxl"},r),h&&i.createElement(rt,{pl:2},i.createElement(A,{display:"flex",alignItems:"center",gap:1},h.map(((e,t)=>i.createElement(i.Fragment,{key:t},e)))))),i.createElement(Sx,{onClick:C("clickCloseIcon")},i.createElement(I,{name:"close",size:"lg",color:y.palette.black}))),i.createElement(Zx,{overflowYScroll:m,showFooter:w},g?l:i.createElement(rt,{px:3,pb:3},l)),w&&i.createElement(Dx,null,i.createElement(A,{display:"flex",alignItems:"center"},i.createElement(st,{type:"button",color:"basicLight",inline:!0,onClick:C("clickCancelButton")},o),i.createElement(rt,{pr:2}),i.createElement(st,{type:"submit",color:u,disabled:p,inline:!0},a)))),f&&i.createElement(Lx,null,i.createElement(Tn,null)))))})),Rx="grow-transition",$x=o.default(Ze)`
|
|
2926
2926
|
&.${Rx}-enter, &.${Rx}-appear {
|
|
2927
2927
|
transform: scale(0);
|
|
2928
2928
|
}
|
|
@@ -2944,7 +2944,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2944
2944
|
&.${Rx}-exit-done {
|
|
2945
2945
|
transform: scale(0);
|
|
2946
2946
|
}
|
|
2947
|
-
|
|
2947
|
+
`,Tx=o.default.input`
|
|
2948
2948
|
${({width:e})=>e?`width: ${isNaN(+e)?e:e+"px"}`:"auto"};
|
|
2949
2949
|
padding: 10px 8px;
|
|
2950
2950
|
border: 0;
|
|
@@ -2975,7 +2975,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2975
2975
|
background-color: ${({theme:e})=>e.palette.gray.light};
|
|
2976
2976
|
cursor: not-allowed;
|
|
2977
2977
|
}
|
|
2978
|
-
`,zx=i.forwardRef((function(e,t){var{error:n=!1,multiline:r=!1,resize:a="both"}=e,o=s(e,["error","multiline","resize"]);return i.createElement(
|
|
2978
|
+
`,zx=i.forwardRef((function(e,t){var{error:n=!1,multiline:r=!1,resize:a="both"}=e,o=s(e,["error","multiline","resize"]);return i.createElement(Tx,Object.assign({},o,{ref:t,as:r?"textarea":"input",isError:n,resize:a,onWheel:Gn("number"===o.type?e=>{e.currentTarget.blur()}:null,o.onWheel)}))})),Bx=t.keyframes`
|
|
2979
2979
|
0% {
|
|
2980
2980
|
right: 100%;
|
|
2981
2981
|
left: -35%;
|
|
@@ -3113,7 +3113,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3113
3113
|
left: 10px;
|
|
3114
3114
|
`,iy=o.default(ry)`
|
|
3115
3115
|
right: 10px;
|
|
3116
|
-
`,oy=i.forwardRef((function(e,t){var{errorText:n,icon:r,type:a,inputRef:o}=e,l=s(e,["errorText","icon","type","inputRef"]);const[c,u]=i.useState(!1),d=x(),p=()=>{u(!c)};return i.createElement(ty,{ref:t},i.createElement(ny,{hasLeftIcon:null!=r,hasRightIcon:"password"===a},null!=r&&i.createElement(ay,{onClick:p},i.createElement(I,{name:r,size:"md",color:d.palette.gray.dark})),i.createElement(zx,Object.assign({ref:o},l,{error:!!n,type:c?"text":a})),"password"===a&&i.createElement(iy,{onClick:p},i.createElement(I,{name:c?"eye":"eye_off",size:"md",color:d.palette.black}))),n&&i.createElement(rt,{pt:1},i.createElement(Ev,null,n)))})),ly=e=>{var n,r;const a=Fn({props:e,name:"FilterCard"}),{onClose:o,onApply:l,selectedFilterPack:s,applyButtonTitle:c="Apply",inputErrorText:u="Please input",formPlaceholder:d="search",width:p,currentReferredFilters:f,sectionTitle:m="Section",conditionTitle:g=""}=a,h=t.useTheme(),b=(null!==(r=null===(n=null==s?void 0:s.filters)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>1,[v,x]=i.useState(),[y,w]=i.useState(),[C,E]=i.useState(b||null==s?void 0:s.filters[0]),[k,A]=i.useState(""),M=null==s?void 0:s.filters.find((e=>e.filterName===(null==C?void 0:C.filterName))),H=null==s?void 0:s.filters.map((e=>({label:e.filterName,value:e.filterName}))),N=e=>{A(""),w(e.target.value)},V=e=>{e.target.value||A(u)},Z=e=>{w(null==e?void 0:e.value)};return i.createElement(Qx,{width:p},i.createElement(_x,null,i.createElement(
|
|
3116
|
+
`,oy=i.forwardRef((function(e,t){var{errorText:n,icon:r,type:a,inputRef:o}=e,l=s(e,["errorText","icon","type","inputRef"]);const[c,u]=i.useState(!1),d=x(),p=()=>{u(!c)};return i.createElement(ty,{ref:t},i.createElement(ny,{hasLeftIcon:null!=r,hasRightIcon:"password"===a},null!=r&&i.createElement(ay,{onClick:p},i.createElement(I,{name:r,size:"md",color:d.palette.gray.dark})),i.createElement(zx,Object.assign({ref:o},l,{error:!!n,type:c?"text":a})),"password"===a&&i.createElement(iy,{onClick:p},i.createElement(I,{name:c?"eye":"eye_off",size:"md",color:d.palette.black}))),n&&i.createElement(rt,{pt:1},i.createElement(Ev,null,n)))})),ly=e=>{var n,r;const a=Fn({props:e,name:"FilterCard"}),{onClose:o,onApply:l,selectedFilterPack:s,applyButtonTitle:c="Apply",inputErrorText:u="Please input",formPlaceholder:d="search",width:p,currentReferredFilters:f,sectionTitle:m="Section",conditionTitle:g=""}=a,h=t.useTheme(),b=(null!==(r=null===(n=null==s?void 0:s.filters)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>1,[v,x]=i.useState(),[y,w]=i.useState(),[C,E]=i.useState(b||null==s?void 0:s.filters[0]),[k,A]=i.useState(""),M=null==s?void 0:s.filters.find((e=>e.filterName===(null==C?void 0:C.filterName))),H=null==s?void 0:s.filters.map((e=>({label:e.filterName,value:e.filterName}))),N=e=>{A(""),w(e.target.value)},V=e=>{e.target.value||A(u)},Z=e=>{w(null==e?void 0:e.value)};return i.createElement(Qx,{width:p},i.createElement(_x,null,i.createElement($,{weight:"bold",size:"xxl"},null==s?void 0:s.categoryName),i.createElement(rt,{pr:2}),i.createElement(qx,{key:"close",onClick:o},i.createElement(I,{name:"close",size:"md",color:h.palette.black}))),i.createElement(Kx,null,b&&i.createElement(i.Fragment,null,i.createElement($,{weight:"bold",size:"lg"},(null==s?void 0:s.sectionTitle)||m),i.createElement(rt,{py:.5}),i.createElement(Xm,{maxMenuHeight:250,options:(e=>{const t=f.map((e=>e.filterName));return null==e?void 0:e.filter((e=>!t.includes(e.label)))})(H),autoFocus:!0,onChange:e=>{if(A(""),null===e)return x(void 0),w(void 0),void E(void 0);const t=null==s?void 0:s.filters.find((t=>t.filterName===e.value));x(null==t?void 0:t.filterName),E(t)}}),i.createElement(rt,{py:1})),C&&i.createElement("div",null,i.createElement($,{weight:"bold",size:"lg"},(null==M?void 0:M.conditionTitle)||g),i.createElement(rt,{py:.5}),M&&(e=>{switch(null==e?void 0:e.control.type){case"text":return i.createElement(oy,{placeholder:d,icon:"search",name:"condition",errorText:k,autoFocus:!0,onChange:N,onBlur:V});case"select":const t=null==e?void 0:e.control.options;return i.createElement(Xm,{options:t.map((e=>({label:e,value:e}))),autoFocus:!0,onChange:Z});case"boolean":return i.createElement("div",null,i.createElement(dg,{name:"condition",value:"true",autoFocus:!0,onChange:N,onBlur:V},"true"),i.createElement("br",null),i.createElement(dg,{name:"condition",value:"false",autoFocus:!0,onChange:N,onBlur:V},"false"))}})(M),i.createElement(rt,{py:1})),i.createElement(qn,{orientation:"horizontal",color:h.palette.gray.light,my:2}),i.createElement(ey,null,i.createElement(st,{size:"small",inline:!0,disabled:b&&!v||!y,onClick:()=>{const e={categoryName:null==s?void 0:s.categoryName,filterName:b?null==C?void 0:C.filterName:null==s?void 0:s.categoryName,filterType:null==C?void 0:C.control.type,filterCondition:y};l(e)}},c))))},sy=o.default(bn)`
|
|
3117
3117
|
box-shadow: 0px 0px 16px
|
|
3118
3118
|
${({theme:e})=>ft(e.palette.gray.main,.4)};
|
|
3119
3119
|
min-width: 300px;
|
|
@@ -3134,7 +3134,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3134
3134
|
${({theme:e})=>3*e.spacing}px;
|
|
3135
3135
|
`,py=o.default.div`
|
|
3136
3136
|
text-align: right;
|
|
3137
|
-
`,fy=e=>{var n,r;const a=Fn({props:e,name:"EditFilterCard"}),{onClose:o,onEdit:l,willEditFilter:s,selectedFilterPack:c,editButtonTitle:u="Edit",inputErrorText:d="Please input",formPlaceholder:p="search",sectionTitle:f="Section",conditionTitle:m="",width:g}=a,h=t.useTheme(),[b,v]=i.useState(null==s?void 0:s.filterCondition),[x,y]=i.useState(""),w=null==c?void 0:c.filters.find((e=>e.filterName===(null==s?void 0:s.filterName))),C=e=>{y(""),v(e.target.value)},E=e=>{e.target.value||y(d)},k=e=>{v(null==e?void 0:e.value)};return i.createElement(sy,{width:g},i.createElement(cy,null,i.createElement(
|
|
3137
|
+
`,fy=e=>{var n,r;const a=Fn({props:e,name:"EditFilterCard"}),{onClose:o,onEdit:l,willEditFilter:s,selectedFilterPack:c,editButtonTitle:u="Edit",inputErrorText:d="Please input",formPlaceholder:p="search",sectionTitle:f="Section",conditionTitle:m="",width:g}=a,h=t.useTheme(),[b,v]=i.useState(null==s?void 0:s.filterCondition),[x,y]=i.useState(""),w=null==c?void 0:c.filters.find((e=>e.filterName===(null==s?void 0:s.filterName))),C=e=>{y(""),v(e.target.value)},E=e=>{e.target.value||y(d)},k=e=>{v(null==e?void 0:e.value)};return i.createElement(sy,{width:g},i.createElement(cy,null,i.createElement($,{weight:"bold",size:"xxl"},null==s?void 0:s.categoryName),i.createElement(rt,{pr:2}),i.createElement(uy,{key:"close",onClick:o},i.createElement(I,{name:"close",size:"md",color:h.palette.black}))),i.createElement(dy,null,(null!==(r=null===(n=null==c?void 0:c.filters)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>1&&i.createElement(i.Fragment,null,i.createElement($,{weight:"bold",size:"lg"},(null==c?void 0:c.sectionTitle)||f),i.createElement(rt,{py:.5}),i.createElement(oy,{readOnly:!0,value:null==s?void 0:s.filterName}),i.createElement(rt,{py:1})),i.createElement($,{weight:"bold",size:"lg"},(null==w?void 0:w.conditionTitle)||m),i.createElement(rt,{py:.5}),w&&(e=>{switch(null==e?void 0:e.control.type){case"text":return i.createElement(oy,{icon:"search",placeholder:p,name:"condition",value:b,errorText:x,onChange:C,onBlur:E});case"select":const t=null==e?void 0:e.control.options;return i.createElement(Xm,{maxMenuHeight:250,options:t.map((e=>({label:e,value:e}))),defaultValue:{label:null==s?void 0:s.filterCondition,value:null==s?void 0:s.filterCondition},onChange:k});case"boolean":return i.createElement("div",null,i.createElement(dg,{name:"condition",value:"true",defaultChecked:"true"===(null==s?void 0:s.filterCondition),onChange:C},"true"),i.createElement("br",null),i.createElement(dg,{name:"condition",value:"false",defaultChecked:"false"===(null==s?void 0:s.filterCondition),onChange:C},"false"))}})(w),i.createElement(rt,{py:1}),i.createElement(qn,{orientation:"horizontal",color:h.palette.gray.light,my:2}),i.createElement(py,null,i.createElement(st,{size:"small",inline:!0,disabled:!b,onClick:()=>{const e={filterCondition:b,filterType:null==s?void 0:s.filterType,filterName:null==s?void 0:s.filterName,categoryName:null==s?void 0:s.categoryName};l(e)}},u))))},my=0,gy=1,hy=2,by=3,vy=o.default.div`
|
|
3138
3138
|
padding: 2px 8px;
|
|
3139
3139
|
width: auto;
|
|
3140
3140
|
height: auto;
|
|
@@ -3156,7 +3156,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3156
3156
|
align-items: center;
|
|
3157
3157
|
`,yy=o.default.div`
|
|
3158
3158
|
padding-left: 8px;
|
|
3159
|
-
`,wy=o.default.div``,Cy=({filter:e,onRemove:t,onClick:n})=>{const r=x();return i.createElement(vy,null,i.createElement(xy,{onClick:t=>{n(t,e)}},i.createElement(
|
|
3159
|
+
`,wy=o.default.div``,Cy=({filter:e,onRemove:t,onClick:n})=>{const r=x();return i.createElement(vy,null,i.createElement(xy,{onClick:t=>{n(t,e)}},i.createElement($,{size:"sm",component:"span"},e.filterName,": "),i.createElement($,{size:"sm",component:"span",weight:"bold"},"boolean"==typeof(a=e.filterCondition)?a?"Yes":"No":a)),i.createElement(yy,null,i.createElement(wy,{onClick:()=>{t(e)}},i.createElement(I,{name:"close_circle",color:r.palette.black,type:"fill"}))));var a},Ey=i.forwardRef((function(e,t){const n=Fn({props:e,name:"MultipleFilter"}),{filterPacks:r,onChange:a,placeholder:o="Add a new filter",editButtonTitle:l,applyButtonTitle:s,inputErrorText:c,formPlaceholder:u,width:d}=n,[p,f]=i.useState(!1),[m,g]=i.useState(null),h=x(),[b,v]=i.useState(null),[y,w]=i.useState(null),[C,E]=i.useState(null),k=((e,t,n)=>e?n?by:null===t?gy:null!==t?hy:my:my)(p,m,C),[A,M]=i.useState([]),H=()=>{g(null),f(!1),E(null)},N=e=>{const t=A.filter((t=>t.filterName!==e.filterName));M(t),void 0!==a&&a(t)},V=(e,t)=>{const n=null==r?void 0:r.find((e=>e.categoryName===t.categoryName));n&&(1===n.filters.length&&(n.filters[0].filterName=n.categoryName),w(e.currentTarget),f(!0),g(n),E(t))};return i.createElement(i.Fragment,null,i.createElement(Wx,{ref:t,isFocused:k!==my},i.createElement(Xx,null,i.createElement(I,{name:"search",size:"md",color:h.palette.gray.dark})),i.createElement(Yx,null,i.createElement(jx,null,A.map((e=>i.createElement(Fx,{key:e.filterName},i.createElement(Cy,{filter:e,onRemove:N,onClick:V})))),i.createElement(zx,{ref:v,readOnly:!0,type:"text",placeholder:o,onClick:()=>{f(!0)}})),k===gy&&i.createElement(wo,{baseElement:b},i.createElement(Co,{contents:null==r?void 0:r.filter((e=>e.filters.length!==A.filter((t=>t.categoryName===e.categoryName)).length)).map((e=>{return{onClick:(t=e,()=>{g(t)}),text:e.categoryName};var t})),baseElement:b,onClose:(e,t)=>{"backdropClick"===t&&f(!1)}}))),i.createElement(Jx,null,0!==A.length&&i.createElement(Ux,{onClick:()=>{M([]),void 0!==a&&a([])}},i.createElement(I,{name:"close_circle",color:h.palette.black,type:"fill"})))),k===hy&&i.createElement(wo,{baseElement:b,positionPriority:["bottom-start"],onClose:H},i.createElement(ly,{applyButtonTitle:s,currentReferredFilters:A,selectedFilterPack:null==r?void 0:r.find((e=>e.categoryName===(null==m?void 0:m.categoryName))),inputErrorText:c,formPlaceholder:u,width:d,onApply:e=>{const t=A.concat([e]);M(t),void 0!==a&&a(t),g(null),f(!1)},onClose:H})),k===by&&i.createElement(wo,{baseElement:y,positionPriority:["bottom-start"],onClose:H},i.createElement(fy,{editButtonTitle:l,willEditFilter:C,selectedFilterPack:null==r?void 0:r.find((e=>e.categoryName===(null==C?void 0:C.categoryName))),inputErrorText:c,formPlaceholder:u,width:d,onEdit:e=>{const t=A.findIndex((t=>t.filterName===e.filterName));A[t].filterCondition!==e.filterCondition&&M((n=>{const r=[...n];return r[t]=e,null==a||a(r),r})),f(!1),g(null),E(null)},onClose:H})))})),Iy="74px",ky="256px",Ay="72px",My="72px",Hy=.3,Ny=o.default.div`
|
|
3160
3160
|
position: fixed;
|
|
3161
3161
|
display: flex;
|
|
3162
3162
|
flex-direction: column;
|
|
@@ -3174,12 +3174,12 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3174
3174
|
display: flex;
|
|
3175
3175
|
width: 100vw;
|
|
3176
3176
|
height: 100%;
|
|
3177
|
-
`,Dy=i.default.forwardRef((function({defaultFixed:e=!1,onChangeOpen:t,onChangeFixed:n,children:r},a){const[o,l]=i.default.useState(e),[s,c]=i.default.useState(e);return i.default.createElement(Vy.Provider,{value:{isOpen:o,isFixed:s,handleOpen:()=>{s||(l(!0),t&&t(!0))},handleClose:()=>{s||(l(!1),t&&t(!1))},handleFixed:()=>{l(!0),c(!0),n&&n(!0)},handleUnFixed:()=>{l(!1),c(!1),n&&n(!1)}}},i.default.createElement(Zy,{ref:a},r))})),
|
|
3177
|
+
`,Dy=i.default.forwardRef((function({defaultFixed:e=!1,onChangeOpen:t,onChangeFixed:n,children:r},a){const[o,l]=i.default.useState(e),[s,c]=i.default.useState(e);return i.default.createElement(Vy.Provider,{value:{isOpen:o,isFixed:s,handleOpen:()=>{s||(l(!0),t&&t(!0))},handleClose:()=>{s||(l(!1),t&&t(!1))},handleFixed:()=>{l(!0),c(!0),n&&n(!0)},handleUnFixed:()=>{l(!1),c(!1),n&&n(!1)}}},i.default.createElement(Zy,{ref:a},r))})),Sy=o.default.div`
|
|
3178
3178
|
flex-shrink: 0;
|
|
3179
3179
|
flex-basis: ${Ay};
|
|
3180
3180
|
display: flex;
|
|
3181
3181
|
align-items: center;
|
|
3182
|
-
`,
|
|
3182
|
+
`,Ly=o.default.div`
|
|
3183
3183
|
flex-grow: 1;
|
|
3184
3184
|
overflow-x: hidden;
|
|
3185
3185
|
${It({maxHeight:"none"})}
|
|
@@ -3198,7 +3198,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3198
3198
|
width: 100%;
|
|
3199
3199
|
height: 100%;
|
|
3200
3200
|
transition: padding-left ${Hy}s;
|
|
3201
|
-
|
|
3201
|
+
`,$y=i.default.forwardRef((function({children:e},t){const{isFixed:n}=i.default.useContext(Vy);return i.default.createElement(Ry,{ref:t,isFixed:n},e)})),Ty=o.default.div`
|
|
3202
3202
|
cursor: pointer;
|
|
3203
3203
|
position: relative;
|
|
3204
3204
|
margin-left: ${({theme:e})=>3*e.spacing}px;
|
|
@@ -3235,7 +3235,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3235
3235
|
font-size: 12px;
|
|
3236
3236
|
box-shadow: ${({theme:e})=>mt(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase)};
|
|
3237
3237
|
z-index: ${({theme:e})=>e.depth.tooltip};
|
|
3238
|
-
`,By=i.forwardRef((function(e,t){var{content:n,open:r=!1,disableHoverListener:a=!1,enterDelay:o=0,leaveDelay:l=0,positionPriority:c=["top"],offset:u=[0,10],width:d,disabled:p=!1,fadeProps:f,children:m}=e,g=s(e,["content","open","disableHoverListener","enterDelay","leaveDelay","positionPriority","offset","width","disabled","fadeProps","children"]);const{placements:h,isAuto:b}=yo(c),v=i.useRef(null),[y,w]=i.useState(!1),C=x(),{x:E,y:I,placement:k,refs:A,strategy:M,context:H}=oo({placement:h[0],open:y,onOpenChange:w,middleware:[c.length>0&&!b?oa({fallbackPlacements:h}):ia(),la({mainAxis:u[1],crossAxis:u[0]}),sa({mainAxis:!1}),ka({element:v})],whileElementsMounted:Ea}),N=Mi(H,{enabled:!a,move:!1,delay:{open:o,close:l}}),V=ho(H,{role:"tooltip"}),{getReferenceProps:Z,getFloatingProps:D}=so([N,V]),
|
|
3238
|
+
`,By=i.forwardRef((function(e,t){var{content:n,open:r=!1,disableHoverListener:a=!1,enterDelay:o=0,leaveDelay:l=0,positionPriority:c=["top"],offset:u=[0,10],width:d,disabled:p=!1,fadeProps:f,children:m}=e,g=s(e,["content","open","disableHoverListener","enterDelay","leaveDelay","positionPriority","offset","width","disabled","fadeProps","children"]);const{placements:h,isAuto:b}=yo(c),v=i.useRef(null),[y,w]=i.useState(!1),C=x(),{x:E,y:I,placement:k,refs:A,strategy:M,context:H}=oo({placement:h[0],open:y,onOpenChange:w,middleware:[c.length>0&&!b?oa({fallbackPlacements:h}):ia(),la({mainAxis:u[1],crossAxis:u[0]}),sa({mainAxis:!1}),ka({element:v})],whileElementsMounted:Ea}),N=Mi(H,{enabled:!a,move:!1,delay:{open:o,close:l}}),V=ho(H,{role:"tooltip"}),{getReferenceProps:Z,getFloatingProps:D}=so([N,V]),S=Object.assign(Object.assign(Object.assign({},m.props),Z()),{ref:En(A.setReference,m.ref)}),L=En(t,A.setFloating);return i.createElement(i.Fragment,null,i.cloneElement(m,S),!p&&i.createElement(Ni,{delay:{open:1e4,close:200}},i.createElement(Ui,null,i.createElement(Ue,Object.assign({in:y||r,unmountOnExit:!0,mountOnEnter:!0},f),i.createElement(zy,Object.assign({ref:L,style:{position:M,top:I,left:E}},g,D(),{width:d}),n,i.createElement(mi,{ref:v,fill:C.palette.black,context:H,width:8,height:8,staticOffset:["top-start","top-end","bottom-start","bottom-end"].includes(k)?"10%":["bottom-start","bottom-end","left-start","left-end"].includes(k)?"30%":void 0}))))))})),Gy=i.default.forwardRef((function({labelFixtureTooltip:e=(e=>(e?"Unfix":"Fix")+" the side menu")},t){const n=x(),{isFixed:r,handleFixed:a,handleUnFixed:o}=i.default.useContext(Vy);return i.default.createElement(By,{content:e(r),positionPriority:["right"],offset:[0,2.5*n.spacing],enterDelay:Hy},i.default.createElement(Ty,{ref:t,isFixed:r,onClick:r?o:a},i.default.createElement(I,{name:"arrow_double_left"})))})),Py=o.default.div`
|
|
3239
3239
|
cursor: pointer;
|
|
3240
3240
|
display: flex;
|
|
3241
3241
|
align-items: center;
|
|
@@ -3258,7 +3258,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3258
3258
|
opacity: ${({isOpen:e})=>e?1:0};
|
|
3259
3259
|
transition: opacity ${Hy}s;
|
|
3260
3260
|
min-width: 0;
|
|
3261
|
-
`,jy=o.default(
|
|
3261
|
+
`,jy=o.default($)`
|
|
3262
3262
|
white-space: nowrap;
|
|
3263
3263
|
overflow: hidden;
|
|
3264
3264
|
text-overflow: ellipsis;
|
|
@@ -3332,7 +3332,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3332
3332
|
opacity: ${({isOpen:e})=>e?1:0};
|
|
3333
3333
|
transition: opacity ${Hy}s;
|
|
3334
3334
|
min-width: 0;
|
|
3335
|
-
`,ew=o.default(
|
|
3335
|
+
`,ew=o.default($)`
|
|
3336
3336
|
white-space: nowrap;
|
|
3337
3337
|
overflow: hidden;
|
|
3338
3338
|
text-overflow: ellipsis;
|
|
@@ -3361,7 +3361,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3361
3361
|
& > * {
|
|
3362
3362
|
flex-shrink: 0;
|
|
3363
3363
|
}
|
|
3364
|
-
`,iw=o.default(
|
|
3364
|
+
`,iw=o.default($)`
|
|
3365
3365
|
flex-shrink: 1;
|
|
3366
3366
|
flex-grow: 1;
|
|
3367
3367
|
display: flex;
|
|
@@ -3370,32 +3370,168 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3370
3370
|
white-space: nowrap;
|
|
3371
3371
|
overflow: hidden;
|
|
3372
3372
|
text-overflow: ellipsis;
|
|
3373
|
-
`,ow=i.forwardRef((function(e,t){var{title:n,isActive:r=!1,notificationCount:a=0}=e,o=s(e,["title","isActive","notificationCount"]);const l=x();return i.createElement(aw,Object.assign({ref:t},o),i.createElement(iw,{component:"div",weight:r?"bold":"normal",color:r?"primary":l.palette.black,size:"sm"},n),i.createElement(Qy,{notificationCount:a,invisible:0===a}))})),lw=i.default.forwardRef((function({children:e},t){const{isOpen:n,isFixed:r,handleOpen:a,handleClose:o}=i.default.useContext(Vy);return i.default.createElement(Ny,{ref:t,isOpen:n,isFixed:r,onMouseEnter:a,onMouseLeave:o},e)})),sw=lw;sw.Container=Dy,sw.Container=Dy,sw.Header=
|
|
3374
|
-
|
|
3375
|
-
|
|
3373
|
+
`,ow=i.forwardRef((function(e,t){var{title:n,isActive:r=!1,notificationCount:a=0}=e,o=s(e,["title","isActive","notificationCount"]);const l=x();return i.createElement(aw,Object.assign({ref:t},o),i.createElement(iw,{component:"div",weight:r?"bold":"normal",color:r?"primary":l.palette.black,size:"sm"},n),i.createElement(Qy,{notificationCount:a,invisible:0===a}))})),lw=i.default.forwardRef((function({children:e},t){const{isOpen:n,isFixed:r,handleOpen:a,handleClose:o}=i.default.useContext(Vy);return i.default.createElement(Ny,{ref:t,isOpen:n,isFixed:r,onMouseEnter:a,onMouseLeave:o},e)})),sw=lw;sw.Container=Dy,sw.Container=Dy,sw.Header=Sy,sw.Content=Ly,sw.Footer=Oy,sw.Menu=_y,sw.ExpansionMenu=rw,sw.ExpansionMenuItem=ow,sw.Fixture=Gy,sw.MainContent=$y;const cw={small:{fontSize:"12px",padding:"0 6px 0 6px",iconSize:"16px",borderRadius:"4px",height:"28px"},medium:{fontSize:"13px",padding:"0 8px 0 8px",iconSize:"18px",borderRadius:"6px",height:"32px"},large:{fontSize:"14px",padding:"0 10px 0 10px",iconSize:"20px",borderRadius:"6px",height:"40px"}},uw=o.default.div`
|
|
3374
|
+
display: flex;
|
|
3375
|
+
flex-direction: column;
|
|
3376
|
+
width: 100%;
|
|
3377
|
+
`,dw=o.default.div`
|
|
3378
|
+
position: relative;
|
|
3379
|
+
display: flex;
|
|
3380
|
+
align-items: center;
|
|
3381
|
+
width: 100%;
|
|
3382
|
+
height: ${({$size:e="medium"})=>cw[e].height};
|
|
3383
|
+
background-color: ${({$variant:e,$disabled:t})=>t?c.basic[200]:"light"===e?c.basic[0]:c.basic[100]};
|
|
3384
|
+
border: 1px solid
|
|
3385
|
+
${({$error:e,$disabled:t,$isOpen:n})=>e?c.red[500]:t?c.basic[400]:n?c.blue[500]:c.basic[400]};
|
|
3386
|
+
border-radius: 6px;
|
|
3387
|
+
transition:
|
|
3388
|
+
border-color 0.2s ease,
|
|
3389
|
+
box-shadow 0.2s ease;
|
|
3390
|
+
|
|
3391
|
+
/* disabled状態ではない場合のみhoverスタイルを適用 */
|
|
3392
|
+
&:hover:not([disabled]):not([data-disabled="true"]) {
|
|
3393
|
+
border-color: ${({$error:e,$disabled:t})=>t?c.basic[400]:e?c.red[500]:c.blue[500]};
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3396
|
+
${({$isOpen:e,$error:t})=>e&&`\n box-shadow: 0 0 0 3px ${t?`${c.red[200]}66`:`${c.blue[200]}66`};\n `}
|
|
3397
|
+
|
|
3398
|
+
&::before {
|
|
3399
|
+
content: "";
|
|
3400
|
+
position: absolute;
|
|
3401
|
+
z-index: 1;
|
|
3402
|
+
inset: 0 32px 0 auto;
|
|
3403
|
+
display: block;
|
|
3404
|
+
width: 4px;
|
|
3405
|
+
opacity: 0;
|
|
3406
|
+
background: linear-gradient(
|
|
3407
|
+
90deg,
|
|
3408
|
+
rgba(4, 28, 51, 0),
|
|
3409
|
+
rgba(4, 28, 51, 0.16)
|
|
3410
|
+
);
|
|
3411
|
+
transition: opacity 0.2s;
|
|
3412
|
+
pointer-events: none;
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
&:where([data-overflowing="true"])::before {
|
|
3416
|
+
opacity: 1;
|
|
3417
|
+
}
|
|
3418
|
+
`,pw=o.default.button`
|
|
3419
|
+
position: absolute;
|
|
3420
|
+
inset: 0;
|
|
3421
|
+
display: flex;
|
|
3422
|
+
justify-content: ${({$multiple:e})=>e?"flex-end":"space-between"};
|
|
3423
|
+
align-items: center;
|
|
3424
|
+
width: 100%;
|
|
3425
|
+
height: 100%;
|
|
3426
|
+
padding: 0;
|
|
3427
|
+
font-size: ${({$size:e})=>cw[e].fontSize};
|
|
3428
|
+
outline: none;
|
|
3429
|
+
border: none;
|
|
3430
|
+
background: none;
|
|
3431
|
+
cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
|
|
3432
|
+
z-index: ${({$multiple:e})=>e?0:3};
|
|
3433
|
+
transition: all 0.2s ease;
|
|
3434
|
+
`,fw=o.default.div`
|
|
3435
|
+
display: flex;
|
|
3436
|
+
flex-direction: column;
|
|
3437
|
+
flex: 1;
|
|
3438
|
+
overflow: hidden;
|
|
3439
|
+
position: relative;
|
|
3440
|
+
height: 100%;
|
|
3441
|
+
justify-content: center;
|
|
3442
|
+
align-items: flex-start;
|
|
3443
|
+
z-index: ${({$multiple:e})=>e?"auto":0};
|
|
3444
|
+
pointer-events: ${({$multiple:e})=>e?"auto":"none"};
|
|
3445
|
+
`,mw=o.default.span`
|
|
3446
|
+
display: block;
|
|
3447
|
+
overflow: hidden;
|
|
3448
|
+
text-overflow: ellipsis;
|
|
3449
|
+
white-space: nowrap;
|
|
3450
|
+
padding: 0 6px;
|
|
3451
|
+
width: 100%;
|
|
3452
|
+
text-align: left;
|
|
3453
|
+
`,gw=o.default.div`
|
|
3454
|
+
position: relative;
|
|
3455
|
+
display: flex;
|
|
3456
|
+
align-items: center;
|
|
3457
|
+
width: fit-content;
|
|
3458
|
+
gap: 4px;
|
|
3459
|
+
max-width: calc(100% - 32px);
|
|
3460
|
+
padding: 4px 6px;
|
|
3461
|
+
white-space: nowrap;
|
|
3462
|
+
overflow-x: auto;
|
|
3463
|
+
overflow-y: hidden;
|
|
3464
|
+
scrollbar-width: none;
|
|
3465
|
+
z-index: 2;
|
|
3466
|
+
pointer-events: all;
|
|
3467
|
+
|
|
3468
|
+
&::-webkit-scrollbar {
|
|
3469
|
+
display: none;
|
|
3376
3470
|
}
|
|
3377
|
-
|
|
3471
|
+
`,hw=o.default(zv)`
|
|
3472
|
+
// flex-shrink: 0;
|
|
3473
|
+
// margin: 0;
|
|
3474
|
+
// display: inline-flex;
|
|
3475
|
+
// align-self: center;
|
|
3476
|
+
// pointer-events: all;
|
|
3477
|
+
`,bw=o.default.span`
|
|
3478
|
+
color: ${({$disabled:e})=>e?c.basic[400]:c.basic[900]};
|
|
3479
|
+
padding: 0 6px;
|
|
3480
|
+
`,vw=o.default.div`
|
|
3481
|
+
display: flex;
|
|
3482
|
+
align-items: center;
|
|
3483
|
+
color: ${({$disabled:e})=>e?c.basic[400]:c.basic[900]};
|
|
3484
|
+
width: ${({$size:e})=>e?cw[e].iconSize:"18px"};
|
|
3485
|
+
aspect-ratio: 1;
|
|
3486
|
+
margin-right: 8px;
|
|
3487
|
+
position: relative;
|
|
3488
|
+
z-index: 4;
|
|
3489
|
+
svg {
|
|
3490
|
+
width: 100%;
|
|
3491
|
+
height: 100%;
|
|
3492
|
+
}
|
|
3493
|
+
span {
|
|
3494
|
+
display: flex;
|
|
3495
|
+
align-items: center;
|
|
3496
|
+
justify-content: center;
|
|
3497
|
+
width: 100%;
|
|
3498
|
+
height: 100%;
|
|
3499
|
+
}
|
|
3500
|
+
`,xw=o.default(Sc)`
|
|
3501
|
+
input {
|
|
3502
|
+
&::placeholder {
|
|
3503
|
+
color: ${c.basic[600]};
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
`;o.default.div`
|
|
3507
|
+
max-height: 180px;
|
|
3508
|
+
overflow-y: auto;
|
|
3509
|
+
`;const yw=e=>{switch(e){case"down":default:return"translateY(100vh)";case"up":return"translateY(-100vh)";case"right":return"translateX(100vw)";case"left":return"translateX(-100vw)"}},ww="slide-transition",Cw=o.default(Ze)`
|
|
3510
|
+
&.${ww}-enter, &.${ww}-appear {
|
|
3511
|
+
transform: ${({direction:e})=>yw(e)};
|
|
3512
|
+
}
|
|
3513
|
+
&.${ww}-enter-active, &.${ww}-appear-active {
|
|
3378
3514
|
transform: none;
|
|
3379
3515
|
transition: transform ${({timeout:e})=>Xe(e,"enter")}ms;
|
|
3380
3516
|
}
|
|
3381
|
-
&.${
|
|
3517
|
+
&.${ww}-exit {
|
|
3382
3518
|
transform: none;
|
|
3383
3519
|
}
|
|
3384
|
-
&.${
|
|
3385
|
-
transform: ${({direction:e})=>
|
|
3520
|
+
&.${ww}-exit-active {
|
|
3521
|
+
transform: ${({direction:e})=>yw(e)};
|
|
3386
3522
|
transition: transform ${({timeout:e})=>Xe(e,"exit")}ms;
|
|
3387
3523
|
}
|
|
3388
|
-
&.${
|
|
3389
|
-
transform: ${({direction:e})=>
|
|
3524
|
+
&.${ww}-exit-done {
|
|
3525
|
+
transform: ${({direction:e})=>yw(e)};
|
|
3390
3526
|
}
|
|
3391
|
-
`,
|
|
3527
|
+
`,Ew=e=>{var{timeout:t=300,children:n,direction:r="down"}=e,a=s(e,["timeout","children","direction"]);const o=i.useRef(null);return i.createElement(Cw,Object.assign({nodeRef:o,appear:!0,timeout:t,direction:r,classNames:ww},a),i.createElement("div",{ref:o},n))},Iw=o.default.div`
|
|
3392
3528
|
position: fixed;
|
|
3393
3529
|
left: ${({horizontal:e,theme:t})=>"left"===e?3*t.spacing+"px":"auto"};
|
|
3394
3530
|
right: ${({horizontal:e,theme:t})=>"right"===e?3*t.spacing+"px":"auto"};
|
|
3395
3531
|
top: ${({vertical:e,theme:t})=>"top"===e?3*t.spacing+"px":"auto"};
|
|
3396
3532
|
bottom: ${({vertical:e,theme:t})=>"bottom"===e?3*t.spacing+"px":"auto"};
|
|
3397
3533
|
z-index: ${({theme:e})=>e.depth.snackbar};
|
|
3398
|
-
`,
|
|
3534
|
+
`,kw=o.default.div`
|
|
3399
3535
|
position: relative;
|
|
3400
3536
|
min-width: 320px;
|
|
3401
3537
|
max-width: 400px;
|
|
@@ -3407,28 +3543,28 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3407
3543
|
box-shadow: ${({boxShadow:e})=>e};
|
|
3408
3544
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
3409
3545
|
color: ${({textColor:e})=>e||"inherit"};
|
|
3410
|
-
`,
|
|
3546
|
+
`,Aw=o.default.div`
|
|
3411
3547
|
position: absolute;
|
|
3412
3548
|
top: ${({theme:e})=>e.spacing}px;
|
|
3413
3549
|
right: ${({theme:e})=>e.spacing}px;
|
|
3414
3550
|
cursor: pointer;
|
|
3415
|
-
`,
|
|
3551
|
+
`,Mw=({color:e,onClose:t,children:n})=>{const r=(e=>({default:{iconColor:e.palette.black,boxShadow:mt(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase),background:e.palette.background.default},dark:{iconColor:e.palette.white,boxShadow:mt(5,e.palette.action.shadowOpacity,e.palette.action.shadowBase),background:e.palette.black,textColor:e.palette.text.white},warning:{iconColor:e.palette.warning.deepDark,boxShadow:mt(5,e.palette.action.shadowOpacity,e.palette.warning.highlight),background:e.palette.warning.highlight}}))(x())[e];return i.createElement(kw,Object.assign({},r),n,i.createElement(Aw,{onClick:t},i.createElement(I,{name:"close",color:r.iconColor})))},Hw=i.forwardRef((function({color:e="default",anchorOrigin:{vertical:t,horizontal:n}={vertical:"bottom",horizontal:"right"},isOpen:r,onClose:a,children:o},l){return r?i.createElement(Iw,{ref:l,vertical:t,horizontal:n},i.createElement(Mw,{color:e,onClose:a},o)):null})),Nw=o.default.div`
|
|
3416
3552
|
display: block;
|
|
3417
|
-
`,
|
|
3553
|
+
`,Vw=i.forwardRef((function(e,t){var{children:n}=e,r=s(e,["children"]);return i.createElement(A,Object.assign({ref:t,display:"flex"},r),i.createElement(rt,{pr:1}),i.createElement(Kn,{orientation:"vertical"}),i.createElement(rt,{pr:1}),i.createElement(Nw,null,n))})),Zw=o.default.div`
|
|
3418
3554
|
display: inline-flex;
|
|
3419
3555
|
height: 40px;
|
|
3420
3556
|
padding: ${({theme:e})=>e.spacing/2}px;
|
|
3421
3557
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
3422
3558
|
background-color: ${({theme:e})=>e.palette.gray.light};
|
|
3423
|
-
`,
|
|
3559
|
+
`,Dw=o.default.div`
|
|
3424
3560
|
position: relative;
|
|
3425
|
-
`,
|
|
3561
|
+
`,Sw=o.default.div`
|
|
3426
3562
|
position: relative;
|
|
3427
3563
|
width: 100%;
|
|
3428
3564
|
white-space: nowrap;
|
|
3429
3565
|
display: flex;
|
|
3430
3566
|
align-items: center;
|
|
3431
|
-
`,
|
|
3567
|
+
`,Lw=o.default.div`
|
|
3432
3568
|
padding: ${({theme:e})=>e.spacing/2}px;
|
|
3433
3569
|
height: 32px;
|
|
3434
3570
|
cursor: pointer;
|
|
@@ -3436,7 +3572,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3436
3572
|
& + & {
|
|
3437
3573
|
margin-left: ${({theme:e})=>e.spacing/2}px;
|
|
3438
3574
|
}
|
|
3439
|
-
`,
|
|
3575
|
+
`,Ow=o.default.div`
|
|
3440
3576
|
display: inline-flex;
|
|
3441
3577
|
align-items: center;
|
|
3442
3578
|
height: 32px;
|
|
@@ -3447,37 +3583,37 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3447
3583
|
& + & {
|
|
3448
3584
|
margin-left: ${({theme:e})=>e.spacing/2}px;
|
|
3449
3585
|
}
|
|
3450
|
-
`,
|
|
3586
|
+
`,Rw=o.default.div`
|
|
3451
3587
|
position: absolute;
|
|
3452
3588
|
top: 0;
|
|
3453
3589
|
height: 100%;
|
|
3454
3590
|
transition: all 0.3s ease-in-out;
|
|
3455
3591
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
3456
3592
|
border-radius: ${({theme:e})=>.5*e.radius}px;
|
|
3457
|
-
|
|
3593
|
+
`,$w="undefined"!=typeof window?i.default.useLayoutEffect:i.default.useEffect;function Tw(e){const t=i.default.useRef(e);return $w((()=>{t.current=e})),i.default.useCallback(((...e)=>t.current(...e)),[])}const zw=i.forwardRef((function({cases:e,value:t,onChange:n},r){const a=e,o=new Map,l=i.useRef(null),s=i.useRef(null),[c,u]=i.useState({}),d=e=>()=>{n&&n(e)},p=Tw((()=>{const{tabsMeta:e,tabMeta:n}=(()=>{const e=l.current;let n,r;if(e){const t=e.getBoundingClientRect();n={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(e&&!1!==t&&s.current){const e=s.current.children;if(e.length>0){const n=e[o.get(t)];r=(null==n?void 0:n.getBoundingClientRect())||null}}return{tabsMeta:n,tabMeta:r}})();let r=0;if(n&&e){const t=e.scrollLeft;r=n.left-e.left+t}const a={left:r,width:n?n.width:0};if(void 0===c.left||void 0===c.width)u(a);else{const e=Math.abs(c.left-a.left),t=Math.abs((null==c?void 0:c.width)-a.width);(e>=1||t>=1)&&u(a)}}));return i.useEffect((()=>{p()})),i.useEffect((()=>{const e=()=>{p()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[p]),i.createElement(Zw,{ref:r},i.createElement(Dw,{ref:l},i.createElement(Rw,{style:Object.assign({},c)}),i.createElement(Sw,{ref:s},a.map(((e,n)=>{const r=void 0===e.value?n:e.value;o.set(r,n);const a=r===t;return i.createElement(By,{key:e.name,content:e.name,positionPriority:["top-start","bottom-start","auto"],offset:[0,15]},null!=e.icon?i.createElement(Lw,{onClick:d(r)},i.createElement(I,{name:e.icon,size:"lg"})):i.createElement(Ow,{key:e.name,onClick:d(r)},i.createElement($,{component:"span",size:"sm",weight:a?"bold":"normal",color:"secondary"},e.name)))})))))})),Bw=i.forwardRef((function(e,t){var{children:n}=e,r=s(e,["children"]);return i.createElement("tbody",Object.assign({ref:t},r),n)})),Gw=o.default.td`
|
|
3458
3594
|
width: ${({width:e})=>e};
|
|
3459
3595
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
3460
|
-
`,
|
|
3596
|
+
`,Pw=i.forwardRef((function(e,t){var{width:n="auto",children:r}=e,a=s(e,["width","children"]);return i.createElement(Gw,Object.assign({ref:t,width:n},a),i.createElement($,{component:"div"},r))})),Ww=i.forwardRef((function({children:e},t){return i.createElement("thead",{ref:t},e)})),jw={small:"8px",medium:"12px",large:"16px"},Fw=o.default.tr`
|
|
3461
3597
|
border: 1px solid ${({theme:e})=>e.palette.divider};
|
|
3462
3598
|
|
|
3463
3599
|
& > td,
|
|
3464
3600
|
th {
|
|
3465
|
-
padding-top: ${({verticalSpacing:e})=>
|
|
3466
|
-
padding-bottom: ${({verticalSpacing:e})=>
|
|
3601
|
+
padding-top: ${({verticalSpacing:e})=>jw[e]};
|
|
3602
|
+
padding-bottom: ${({verticalSpacing:e})=>jw[e]};
|
|
3467
3603
|
}
|
|
3468
|
-
`,
|
|
3604
|
+
`,Xw=i.forwardRef((function(e,t){var{children:n,verticalSpacing:r="medium"}=e,a=s(e,["children","verticalSpacing"]);return i.createElement(Fw,Object.assign({ref:t,verticalSpacing:r},a),n)})),Yw=o.default.th`
|
|
3469
3605
|
width: ${({width:e})=>e};
|
|
3470
3606
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
3471
3607
|
background-color: ${({theme:e})=>e.palette.gray.highlight};
|
|
3472
3608
|
border: 1px solid ${({theme:e})=>e.palette.divider};
|
|
3473
|
-
`,
|
|
3609
|
+
`,Jw=i.default.forwardRef((function(e,t){var{width:n="auto",children:r}=e,a=s(e,["width","children"]);return i.default.createElement(Yw,Object.assign({ref:t,width:n},a),i.default.createElement($,{component:"div",weight:"bold",size:"md",lineHeight:"normal"},r))})),Uw=o.default.table`
|
|
3474
3610
|
width: 100%;
|
|
3475
3611
|
border-collapse: collapse;
|
|
3476
3612
|
table-layout: auto;
|
|
3477
3613
|
background-color: ${({theme:e})=>e.palette.background.default};
|
|
3478
|
-
`,
|
|
3614
|
+
`,Qw=i.forwardRef((function(e,t){var{children:n}=e,r=s(e,["children"]);return i.createElement(Uw,Object.assign({ref:t},r),n)}));Qw.Header=Ww,Qw.Body=Bw,Qw.Row=Xw,Qw.Cell=Pw,Qw.HeaderCell=Jw;const _w=o.default.div`
|
|
3479
3615
|
position: relative;
|
|
3480
|
-
`,
|
|
3616
|
+
`,qw=o.default.div``,Kw=o.default.button`
|
|
3481
3617
|
flex-irection: column;
|
|
3482
3618
|
flex-shrink: 0;
|
|
3483
3619
|
line-height: 1.25;
|
|
@@ -3498,25 +3634,25 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3498
3634
|
background-color: ${({selected:e})=>e?"":({theme:e})=>e.palette.gray.highlight};
|
|
3499
3635
|
transition: 0.5s;
|
|
3500
3636
|
}
|
|
3501
|
-
`,
|
|
3637
|
+
`,eC=o.default($)`
|
|
3502
3638
|
padding-right: 2px;
|
|
3503
3639
|
font-weight: 600;
|
|
3504
3640
|
color: ${({selected:e})=>e?({theme:e})=>e.palette.primary.main:"gray"};
|
|
3505
|
-
`,
|
|
3641
|
+
`,tC=o.default.div`
|
|
3506
3642
|
position: absolute;
|
|
3507
3643
|
top: 0;
|
|
3508
3644
|
height: 100%;
|
|
3509
3645
|
transition: all 0.3s ease-in-out;
|
|
3510
3646
|
border-bottom: ${({theme:e})=>`solid ${e.palette.primary.main} 2px`};
|
|
3511
|
-
`,
|
|
3647
|
+
`,nC=o.default.div`
|
|
3512
3648
|
height: 1px;
|
|
3513
3649
|
width: 100%;
|
|
3514
3650
|
background: ${({theme:e})=>e.palette.gray.main};
|
|
3515
|
-
`,
|
|
3651
|
+
`,rC=i.forwardRef((function({text:e,count:t,value:n,selected:r,onChange:a,onClick:o},l){const s=x(),c=r?"primary":"secondary";return i.createElement(Kw,{ref:l,key:e,value:n,tabIndex:r?0:-1,theme:s,selected:r,onClick:e=>{!r&&a&&a(n),o&&o(e)}},i.createElement(A,{display:"flex",justifyContent:"space-between",alignItems:"center"},i.createElement(eC,{selected:r},e," "),null!=t?i.createElement(Ke,{color:c,type:"pill",fontWeight:"bold"},t):""))}));var aC=i.forwardRef(((e,t)=>{const{data:n,value:r,onChange:a,onClick:o}=e,l=new Map,s=i.useRef(null),[c,u]=i.useState({}),[d,p]=i.useState(null),f=En(t,p),m=Tw((()=>{const{tabsMeta:e,tabMeta:t}=(()=>{const e=null!=d?d:void 0;let t,n;if(e){const n=e.getBoundingClientRect();t={scrollLeft:e.scrollLeft,left:n.left}}if(e&&r&&s.current){const e=s.current.children;if(e.length>0){const t=e[l.get(r)];n=(null==t?void 0:t.getBoundingClientRect())||null}}return{tabsMeta:t,tabMeta:n}})();let n=0;if(t&&e){const r=e.scrollLeft;n=t.left-e.left+r}const a={left:n,width:t?t.width:0};if(void 0===c.left||void 0===c.width)u(a);else{const e=Math.abs(c.left-a.left),t=Math.abs(c.width-a.width);(e>=1||t>=1)&&u(a)}}));return i.useEffect((()=>{m()})),i.useEffect((()=>{const e=()=>{m()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[m]),i.createElement(_w,{ref:f},i.createElement(tC,{style:Object.assign({},c)}),i.createElement(qw,{ref:s},n.map(((e,t)=>{const n=e.value,s=n===r;return l.set(n,t),i.createElement(rC,{key:t.toString(),selected:s,value:n,count:e.count,text:e.text,onChange:a,onClick:o})})),i.createElement(nC,null)))}));const iC=o.default.div`
|
|
3516
3652
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
3517
3653
|
transition: height ${({transitionDuration:e})=>e-100}ms
|
|
3518
3654
|
100ms;
|
|
3519
|
-
`,
|
|
3655
|
+
`,oC=o.default.div`
|
|
3520
3656
|
position: relative;
|
|
3521
3657
|
display: flex;
|
|
3522
3658
|
align-items: center;
|
|
@@ -3533,7 +3669,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3533
3669
|
opacity: ${({opacity:e})=>e};
|
|
3534
3670
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
3535
3671
|
overflow: hidden;
|
|
3536
|
-
`,
|
|
3672
|
+
`,lC=o.default.div`
|
|
3537
3673
|
flex-shrink: 0;
|
|
3538
3674
|
display: flex;
|
|
3539
3675
|
align-items: center;
|
|
@@ -3541,18 +3677,18 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3541
3677
|
width: 28px;
|
|
3542
3678
|
height: 28px;
|
|
3543
3679
|
margin-right: ${({theme:e})=>2*e.spacing}px;
|
|
3544
|
-
`,
|
|
3680
|
+
`,sC=o.default.div`
|
|
3545
3681
|
cursor: pointer;
|
|
3546
3682
|
margin-left: ${({theme:e})=>2*e.spacing}px;
|
|
3547
|
-
`,
|
|
3683
|
+
`,cC=t.keyframes`
|
|
3548
3684
|
from {
|
|
3549
3685
|
width: 100%;
|
|
3550
3686
|
}
|
|
3551
3687
|
to {
|
|
3552
3688
|
width: 0%
|
|
3553
3689
|
}
|
|
3554
|
-
`,
|
|
3555
|
-
animation: ${
|
|
3690
|
+
`,uC=o.default.div`
|
|
3691
|
+
animation: ${cC}
|
|
3556
3692
|
${({autoDismissTimeout:e})=>e}ms linear;
|
|
3557
3693
|
background-color: ${({backgroundColor:e})=>e};
|
|
3558
3694
|
top: 0;
|
|
@@ -3561,7 +3697,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3561
3697
|
position: absolute;
|
|
3562
3698
|
width: 0;
|
|
3563
3699
|
height: 3px;
|
|
3564
|
-
`,
|
|
3700
|
+
`,dC={right:"translate3d(120%, 0, 0)",left:"translate3d(-120%, 0, 0)",bottom:"translate3d(0, 120%, 0)",top:"translate3d(0, -120%, 0)"};function pC(e){const t=e.split("-"),n="center"===t[1]?t[0]:t[1];return dC[n]}const fC=({appearance:e,placement:t,transitionDuration:n,transitionState:r,onDismiss:a,children:o,autoDismiss:l,autoDismissTimeout:s,isRunning:c})=>{const u=x(),d=(({palette:e})=>({info:{background:e.primary.highlight,boxShadow:mt(5,e.action.shadowOpacity,e.primary.light),icon:i.createElement(I,{name:"information",type:"fill",size:"lg",color:e.primary.main}),countDownBackground:e.primary.main,titleColor:e.primary.deepDark,contentColor:e.primary.main,closeColor:e.primary.light},success:{background:e.success.highlight,boxShadow:mt(5,e.action.shadowOpacity,e.success.light),icon:i.createElement(I,{name:"checkbox_circle",type:"fill",size:"lg",color:e.success.main}),countDownBackground:e.success.main,titleColor:e.success.deepDark,contentColor:e.success.main,closeColor:e.success.light},warning:{background:e.warning.highlight,boxShadow:mt(5,e.action.shadowOpacity,e.warning.light),icon:i.createElement(I,{name:"alert",type:"fill",size:"lg",color:e.warning.main}),countDownBackground:e.warning.main,titleColor:e.warning.deepDark,contentColor:e.warning.main,closeColor:e.warning.light},error:{background:e.danger.highlight,boxShadow:mt(5,e.action.shadowOpacity,e.danger.light),icon:i.createElement(I,{name:"alert",type:"fill",size:"lg",color:e.danger.main}),countDownBackground:e.danger.main,titleColor:e.danger.deepDark,contentColor:e.danger.main,closeColor:e.danger.light}}))(u)[e],[p,f]=i.useState("auto"),m=i.useRef(null);return i.useEffect((()=>{if("entered"===r){const e=m.current;e&&f(e.offsetHeight+u.spacing)}"exiting"===r&&f(0)}),[r,u.spacing]),i.createElement(iC,{ref:m,style:{height:p},transitionDuration:n},i.createElement(oC,Object.assign({background:d.background,boxShadow:d.boxShadow,transitionDuration:n},(e=>({entering:{transform:`${pC(e)}`,opacity:0},entered:{transform:"translate3d(0,0,0)",opacity:1},exiting:{transform:"scale(0.66)",opacity:0},exited:{transform:"scale(0.66)",opacity:0}}))(t)[r]),i.createElement(A,{display:"flex",flex:1,alignItems:"center",justifyContent:"space-between"},i.createElement(A,{display:"flex",alignItems:"center"},i.createElement(lC,null,d.icon),i.createElement($,{color:d.titleColor,weight:"bold"},o)),i.createElement(sC,{onClick:()=>{a()}},i.createElement(I,{name:"close",color:d.closeColor}))),i.createElement(uC,{opacity:l?1:0,autoDismissTimeout:s,isRunning:c,backgroundColor:d.countDownBackground})))},mC=o.default.div`
|
|
3565
3701
|
border: 0;
|
|
3566
3702
|
clip: rect(1px, 1px, 1px, 1px);
|
|
3567
3703
|
height: 1;
|
|
@@ -3570,7 +3706,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3570
3706
|
position: absolute;
|
|
3571
3707
|
white-space: nowrap;
|
|
3572
3708
|
width: 1;
|
|
3573
|
-
`,
|
|
3709
|
+
`,gC=o.default.div`
|
|
3574
3710
|
cursor: pointer;
|
|
3575
3711
|
flex-shrink: 0;
|
|
3576
3712
|
opacity: 0.5;
|
|
@@ -3579,14 +3715,14 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3579
3715
|
&:hover {
|
|
3580
3716
|
opacity: 1;
|
|
3581
3717
|
}
|
|
3582
|
-
`,
|
|
3718
|
+
`,hC=o.default.div`
|
|
3583
3719
|
flex-grow: 1;
|
|
3584
3720
|
font-size: 14;
|
|
3585
3721
|
line-height: 1.4;
|
|
3586
3722
|
min-height: 40px;
|
|
3587
3723
|
padding: ${({gutter:e})=>`${e}px ${1.5*e}px`};
|
|
3588
|
-
`,
|
|
3589
|
-
animation: ${({autoDismissTimeout:e})=>`${
|
|
3724
|
+
`,bC=t.keyframes`from { height: 100%; } to { height: 0% }`,vC=o.default.div`
|
|
3725
|
+
animation: ${({autoDismissTimeout:e})=>`${bC} ${e}ms linear`};
|
|
3590
3726
|
animation-play-state: ${({isRunning:e})=>e?"running":"paused"};
|
|
3591
3727
|
background-color: rgba(0, 0, 0, 0.1);
|
|
3592
3728
|
bottom: 0;
|
|
@@ -3595,7 +3731,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3595
3731
|
opacity: ${({opacity:e})=>e};
|
|
3596
3732
|
position: absolute;
|
|
3597
3733
|
width: 100%;
|
|
3598
|
-
`,
|
|
3734
|
+
`,xC=o.default.div`
|
|
3599
3735
|
background-color: ${({backgroundColor:e})=>e};
|
|
3600
3736
|
border-top-left-radius: ${({borderRadius:e})=>e}px;
|
|
3601
3737
|
border-bottom-left-radius: ${({borderRadius:e})=>e}px;
|
|
@@ -3607,11 +3743,11 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3607
3743
|
overflow: hidden;
|
|
3608
3744
|
text-align: center;
|
|
3609
3745
|
width: 30px;
|
|
3610
|
-
`,
|
|
3746
|
+
`,yC=o.default.div`
|
|
3611
3747
|
height: ${({height:e})=>e};
|
|
3612
3748
|
transition: height
|
|
3613
3749
|
${({transitionDuration:e})=>`height ${e-100}ms 100ms`};
|
|
3614
|
-
`,
|
|
3750
|
+
`,wC=o.default.div`
|
|
3615
3751
|
background-color: ${({backgroundColor:e})=>e};
|
|
3616
3752
|
border-radius: ${({borderRadius:e})=>e}px;
|
|
3617
3753
|
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.175);
|
|
@@ -3622,7 +3758,7 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3622
3758
|
transition: ${({transitionDuration:e})=>`transform ${e}ms cubic-bezier(0.2, 0, 0, 1), opacity ${e}ms`};
|
|
3623
3759
|
width: ${({width:e})=>e}px;
|
|
3624
3760
|
${({transitionState:e,placement:n})=>{switch(e){case"entered":return t.css({transform:"translate3d(0,0,0)"});case"exiting":case"exited":return t.css({transform:"scale(0.66)",opacity:0});case"entering":return t.css((e=>{const t=e.split("-");return{right:"translate3d(120%, 0, 0)",left:"translate3d(-120%, 0, 0)",bottom:"translate3d(0, 120%, 0)",top:"translate3d(0, -120%, 0)"}["center"===t[1]?t[0]:t[1]]})(n));default:return""}}}
|
|
3625
|
-
`;function
|
|
3761
|
+
`;function CC(e){return{"aria-hidden":!0,height:16,width:e,viewBox:`0 0 ${e} 16`,style:{display:"inline-block",verticalAlign:"text-top",fill:"currentColor"}}}const EC=e=>i.default.createElement("svg",Object.assign({},CC(14),e),i.default.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})),IC=()=>{};const kC=e=>{var{tag:t="span"}=e,n=s(e,["tag"]);return i.default.createElement(mC,Object.assign({as:t},n))},AC={success:{icon:e=>i.default.createElement("svg",Object.assign({},CC(12),e),i.default.createElement("path",{fillRule:"evenodd",d:"M12 5.5l-8 8-4-4L1.5 8 4 10.5 10.5 4 12 5.5z"})),text:"#006644",fg:"#36B37E",bg:"#E3FCEF"},error:{icon:e=>i.default.createElement("svg",Object.assign({},CC(12),e),i.default.createElement("path",{fillRule:"evenodd",d:"M5.05.01c.81 2.17.41 3.38-.52 4.31C3.55 5.37 1.98 6.15.9 7.68c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.01 8.68 2.15 5.05.02L5.03 0l.02.01z"})),text:"#BF2600",fg:"#FF5630",bg:"#FFEBE6"},warning:{icon:e=>i.default.createElement("svg",Object.assign({},CC(16),e),i.default.createElement("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})),text:"#FF8B00",fg:"#FFAB00",bg:"#FFFAE6"},info:{icon:e=>i.default.createElement("svg",Object.assign({},CC(14),e),i.default.createElement("path",{fillRule:"evenodd",d:"M6.3 5.71a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 8.01c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V8v.01zM7 2.32C3.86 2.32 1.3 4.86 1.3 8c0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 1c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})),text:"#505F79",fg:"#2684FF",bg:"white"}},MC=e=>{var{children:t}=e,n=s(e,["children"]);return i.default.createElement(gC,Object.assign({role:"button",className:"react-toast-notifications__toast__dismiss-button",gutter:8},n),t)},HC=e=>i.default.createElement(hC,Object.assign({className:"react-toast-notifications__toast__content",gutter:8},e)),NC=e=>{var{autoDismissTimeout:t,opacity:n,isRunning:r}=e,a=s(e,["autoDismissTimeout","opacity","isRunning"]);return i.default.createElement(vC,Object.assign({className:"react-toast-notifications__toast__countdown",autoDismissTimeout:t,isRunning:r,opacity:n},a))},VC=({appearance:e,autoDismiss:t,autoDismissTimeout:n,isRunning:r})=>{const a=AC[e],o=a.icon;return i.default.createElement(xC,{className:"react-toast-notifications__toast__icon-wrapper",color:a.bg,backgroundColor:a.fg,borderRadius:4,gutter:8},i.default.createElement(NC,{opacity:t?1:0,autoDismissTimeout:n,isRunning:r}),i.default.createElement(o,{className:"react-toast-notifications__toast__icon",css:{position:"relative",zIndex:1}}))},ZC=t=>{var{appearance:n,placement:r,transitionDuration:a,transitionState:o}=t,l=s(t,["appearance","placement","transitionDuration","transitionState"]);const[c,u]=e.useState("auto"),d=e.useRef(null);return e.useEffect((()=>{if(d.current){if("entered"===o){const e=d.current;u(e.offsetHeight+8)}"exiting"===o&&u(0)}}),[o]),i.default.createElement(yC,{ref:d,height:c,transitionDuration:a},i.default.createElement(wC,Object.assign({className:`react-toast-notifications__toast react-toast-notifications__toast--${n}`,backgroundColor:AC[n].bg,borderRadius:4,color:AC[n].text,gutter:8,placement:r,width:360,transitionState:o,transitionDuration:a},l)))},DC=e=>{var{appearance:t="info",autoDismiss:n,autoDismissTimeout:r,children:a,isRunning:o,onDismiss:l,placement:c,transitionDuration:u,transitionState:d,onMouseEnter:p,onMouseLeave:f}=e,m=s(e,["appearance","autoDismiss","autoDismissTimeout","children","isRunning","onDismiss","placement","transitionDuration","transitionState","onMouseEnter","onMouseLeave"]);return i.default.createElement(ZC,Object.assign({appearance:t,placement:c,transitionState:d,transitionDuration:u,onMouseEnter:p,onMouseLeave:f},m),i.default.createElement(VC,{appearance:t,autoDismiss:n,autoDismissTimeout:r,isRunning:o}),i.default.createElement(HC,null,a),l?i.default.createElement(MC,{onClick:l},i.default.createElement(EC,{className:"react-toast-notifications__toast__dismiss-icon"}),i.default.createElement(kC,{className:"react-toast-notifications__toast__dismiss-text"},"Close")):null)};DC.defaultProps={onDismiss:IC};const SC=o.default.div`
|
|
3626
3762
|
box-sizing: border-box;
|
|
3627
3763
|
max-height: 100%;
|
|
3628
3764
|
max-width: 100%;
|
|
@@ -3632,13 +3768,13 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3632
3768
|
position: fixed;
|
|
3633
3769
|
z-index: 1000;
|
|
3634
3770
|
${({placement:e})=>{switch(e){case"top-left":return t.css({top:0,left:0});case"top-center":return t.css({top:0,left:"50%",transform:"translateX(-50%)"});case"top-right":return t.css({top:0,right:0});case"bottom-left":return t.css({bottom:0,left:0});case"bottom-center":return t.css({bottom:0,left:"50%",transform:"translateX(-50%)"});case"bottom-right":return t.css({bottom:0,right:0})}}}
|
|
3635
|
-
`,
|
|
3771
|
+
`,LC=e=>{var{hasToasts:t,placement:n}=e,r=s(e,["hasToasts","placement"]);return i.default.createElement(SC,Object.assign({className:"react-toast-notifications__container",hasToasts:t,placement:n},r))};class OC{constructor(e,t){this.callback=e,this.start=t,this.remaining=t,this.resume()}clear(){clearTimeout(this.timerId)}pause(){clearTimeout(this.timerId),this.remaining-=Date.now()-this.start}resume(){this.start=Date.now(),clearTimeout(this.timerId),this.timerId=setTimeout(this.callback,this.remaining)}}class RC extends e.Component{constructor(){super(...arguments),this.state={isRunning:Boolean(this.props.autoDismiss)},this.startTimer=()=>{const{autoDismiss:e,autoDismissTimeout:t,onDismiss:n}=this.props;e&&(this.setState({isRunning:!0}),this.timeout=new OC(n,t))},this.clearTimer=()=>{this.timeout&&this.timeout.clear()},this.onMouseEnter=()=>{this.setState({isRunning:!1},(()=>{this.timeout&&this.timeout.pause()}))},this.onMouseLeave=()=>{this.setState({isRunning:!0},(()=>{this.timeout&&this.timeout.resume()}))}}componentDidMount(){this.startTimer()}componentDidUpdate(e){if(e.autoDismiss!==this.props.autoDismiss){(this.props.autoDismiss?this.startTimer:this.clearTimer)()}}componentWillUnmount(){this.clearTimer()}render(){const e=this.props,{autoDismiss:t,autoDismissTimeout:n,component:r}=e,a=s(e,["autoDismiss","autoDismissTimeout","component"]),{isRunning:o}=this.state,l=t?this.onMouseEnter:IC,c=t?this.onMouseLeave:IC;return i.default.createElement(r,Object.assign({autoDismiss:t,autoDismissTimeout:n,isRunning:o,onMouseEnter:l,onMouseLeave:c},a))}}RC.defaultProps={autoDismiss:!1};const $C={Toast:DC,ToastContainer:LC},TC=i.default.createContext({add:()=>"0",remove:IC,removeAll:IC,update:IC,toasts:[]}),{Consumer:zC,Provider:BC}=TC,GC=!("undefined"==typeof window||!window.document||!window.document.createElement);let PC=class extends e.Component{constructor(e){super(e),this.state={toasts:[]},this.has=e=>!!this.state.toasts.length&&Boolean(this.state.toasts.filter((t=>t.id===e)).length),this.onDismiss=(e,t=IC)=>()=>{t(e),this.remove(e)},this.add=(e,t,n=IC)=>{const r=(null==t?void 0:t.id)?t.id:function(){let e=46656*Math.random()|0,t=46656*Math.random()|0;return e=("000"+e.toString(36)).slice(-3),t=("000"+t.toString(36)).slice(-3),e+t}();if(!this.has(r))return this.setState((n=>{const a=Object.assign({content:e,id:r},t);return{toasts:this.props.newestOnTop?[a,...n.toasts]:[...n.toasts,a]}}),(()=>n(r))),r},this.remove=(e,t=IC)=>{this.has(e)&&this.setState((t=>{const n=t.toasts.filter((t=>t.id!==e));return{toasts:n}}),(()=>t(e)))},this.removeAll=()=>{this.state.toasts.length&&this.state.toasts.forEach((e=>this.remove(e.id)))},this.update=(e,t,n=IC)=>{this.has(e)&&this.setState((n=>{const r=n.toasts,a=r.findIndex((t=>t.id===e)),i=Object.assign(Object.assign({},r[a]),t);return{toasts:[...r.slice(0,a),i,...r.slice(a+1)]}}),(()=>n(e)))},this.nodeRef=i.default.createRef()}render(){const{autoDismiss:e,autoDismissTimeout:t,children:r,components:a,placement:o,portalTargetSelector:l,transitionDuration:c}=this.props,{Toast:u,ToastContainer:d}=Object.assign(Object.assign({},$C),a),{add:p,remove:f,removeAll:m,update:g}=this,h=this.state.toasts,b=Boolean(h.length),v=GC?l?document.querySelector(l):document.body:null;return i.default.createElement(BC,{value:{add:p,remove:f,removeAll:m,update:g,toasts:h}},r,v?n.createPortal(i.default.createElement(d,{placement:o,hasToasts:b},i.default.createElement(ze,{component:null},h.map((n=>{var{appearance:r,autoDismiss:a,content:l,id:d,onDismiss:p}=n,f=s(n,["appearance","autoDismiss","content","id","onDismiss"]);return i.default.createElement(Me,{key:d,appear:!0,mountOnEnter:!0,unmountOnExit:!0,nodeRef:this.nodeRef,timeout:c},(n=>i.default.createElement(RC,Object.assign({key:d,appearance:r,autoDismiss:void 0!==a?a:e,autoDismissTimeout:t,component:u,placement:o,transitionDuration:c,transitionState:n,onDismiss:this.onDismiss(d,p)},f),l)))})))),v):i.default.createElement(d,{placement:o,hasToasts:b}))}};PC.defaultProps={autoDismiss:!1,autoDismissTimeout:5e3,components:$C,newestOnTop:!1,placement:"top-right",transitionDuration:220,nodeRef:null};const WC=o.default(LC)`
|
|
3636
3772
|
z-index: ${({theme:e})=>e.depth.toast} !important;
|
|
3637
|
-
`,
|
|
3773
|
+
`,jC=e=>{var{children:t}=e,n=s(e,["children"]);const r={pt:n.placement.includes("top")?3:0,pb:n.placement.includes("bottom")?3:0};return i.createElement(WC,Object.assign({},n),i.createElement(rt,Object.assign({},r),t))},FC={appearance:"info",autoDismiss:!1,autoDismissTimeout:0,isRunning:!0,onDismiss:()=>{},onMouseEnter:()=>{},onMouseLeave:()=>{},placement:"top-center",transitionDuration:0,transitionState:"entered",children:null},XC=e=>i.default.createElement(fC,Object.assign({},FC,e));XC.Provider=e=>{var{children:t}=e,n=s(e,["children"]);return i.createElement(PC,Object.assign({},n,{components:Object.assign({Toast:fC,ToastContainer:jC},n.components)}),t)},XC.useToasts=()=>{const t=e.useContext(TC);if(!t)throw Error("The `useToasts` hook must be called from a descendent of the `ToastProvider`.");return{addToast:t.add,removeToast:t.remove,removeAllToasts:t.removeAll,updateToast:t.update,toastStack:t.toasts}};const YC=o.default.div`
|
|
3638
3774
|
position: relative;
|
|
3639
3775
|
width: ${({width:e})=>e};
|
|
3640
3776
|
height: calc(1px * 2 + 22px);
|
|
3641
|
-
`,
|
|
3777
|
+
`,JC=o.default.span`
|
|
3642
3778
|
position: absolute;
|
|
3643
3779
|
top: 50%;
|
|
3644
3780
|
left: 4px;
|
|
@@ -3651,19 +3787,19 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3651
3787
|
${({checked:e,disabled:t,theme:n})=>e&&!t?n.palette.primary.dark:n.palette.divider};
|
|
3652
3788
|
box-shadow: ${({theme:e})=>mt(3,e.palette.action.shadowOpacity,e.palette.action.shadowBase)};
|
|
3653
3789
|
transition: all 0.3s ease-in-out;
|
|
3654
|
-
|
|
3790
|
+
`,UC=o.default.div`
|
|
3655
3791
|
position: absolute;
|
|
3656
3792
|
width: 100%;
|
|
3657
3793
|
word-break: break-all;
|
|
3658
3794
|
white-space: nowrap;
|
|
3659
3795
|
transition: all 0.3s ease-in-out;
|
|
3660
|
-
`,
|
|
3796
|
+
`,QC=o.default(UC)`
|
|
3661
3797
|
padding-left: 8px;
|
|
3662
3798
|
opacity: 0;
|
|
3663
|
-
`,
|
|
3799
|
+
`,_C=o.default(UC)`
|
|
3664
3800
|
padding-right: 8px;
|
|
3665
3801
|
opacity: 1;
|
|
3666
|
-
`,
|
|
3802
|
+
`,qC=o.default.label`
|
|
3667
3803
|
position: absolute;
|
|
3668
3804
|
top: 0;
|
|
3669
3805
|
left: 0;
|
|
@@ -3681,21 +3817,21 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3681
3817
|
transition: all 0.3s ease-in-out;
|
|
3682
3818
|
|
|
3683
3819
|
${({checked:e})=>e&&t.css`
|
|
3684
|
-
& > ${
|
|
3820
|
+
& > ${JC} {
|
|
3685
3821
|
left: calc(100% - 14px - 6px);
|
|
3686
3822
|
}
|
|
3687
|
-
& > ${
|
|
3823
|
+
& > ${QC} {
|
|
3688
3824
|
opacity: 1;
|
|
3689
3825
|
}
|
|
3690
|
-
& > ${
|
|
3826
|
+
& > ${_C} {
|
|
3691
3827
|
opacity: 0;
|
|
3692
3828
|
}
|
|
3693
3829
|
`}
|
|
3694
|
-
`,
|
|
3830
|
+
`,KC=o.default.input`
|
|
3695
3831
|
width: 0;
|
|
3696
3832
|
height: 0;
|
|
3697
3833
|
visibility: hidden;
|
|
3698
|
-
`,
|
|
3834
|
+
`,eE=i.forwardRef((function(e,t){const n=Fn({props:e,name:"ToggleButton"}),{checked:r=!1,disabled:a=!1,onChange:o,width:l="48px",checkedText:s="",unCheckedText:c="",inputRef:u}=n;return i.createElement(YC,{ref:t,width:l},i.createElement(qC,{checked:r,disabled:a,width:l},i.createElement(KC,{ref:u,checked:r,type:"checkbox",readOnly:null==o,disabled:a,onChange:o}),i.createElement(QC,null,i.createElement($,{component:"div",color:a?"disabled":"primary",align:"left",size:"xs",weight:"bold"},s)),i.createElement(_C,null,i.createElement($,{component:"div",color:a?"disabled":"secondary",align:"right",size:"xs",weight:"bold"},c)),i.createElement(JC,{checked:r,disabled:a})))})),tE=o.default.div``,nE=o.default.span`
|
|
3699
3835
|
background-color: ${({active:e,theme:t})=>e?t.palette.primary.main:t.palette.white};
|
|
3700
3836
|
border: 1px solid
|
|
3701
3837
|
${({theme:e,active:t})=>t?e.palette.primary.dark:e.palette.gray.main};
|
|
@@ -3703,26 +3839,26 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3703
3839
|
height: ${({theme:e})=>3*e.spacing}px;
|
|
3704
3840
|
width: ${({theme:e})=>3*e.spacing}px;
|
|
3705
3841
|
outline: none;
|
|
3706
|
-
`,
|
|
3842
|
+
`,rE=o.default.div`
|
|
3707
3843
|
display: grid;
|
|
3708
3844
|
grid-template-columns: 38px repeat(24, 1fr);
|
|
3709
3845
|
grid-gap: ${({theme:e})=>e.spacing/2}px;
|
|
3710
3846
|
align-items: center;
|
|
3711
3847
|
justify-items: center;
|
|
3712
3848
|
width: fit-content;
|
|
3713
|
-
`,
|
|
3849
|
+
`,aE=o.default.div`
|
|
3714
3850
|
height: 24px;
|
|
3715
3851
|
text-align: center;
|
|
3716
3852
|
background-color: ${({theme:e})=>e.palette.gray.light};
|
|
3717
3853
|
border-radius: ${({theme:e})=>e.spacing/2}px;
|
|
3718
3854
|
border: 1px solid ${({theme:e})=>e.palette.gray.main};
|
|
3719
|
-
`,
|
|
3855
|
+
`,iE=o.default(aE)`
|
|
3720
3856
|
width: 38px;
|
|
3721
|
-
`,
|
|
3857
|
+
`,oE=o.default(aE)`
|
|
3722
3858
|
width: 24px;
|
|
3723
|
-
`,
|
|
3859
|
+
`,lE=o.default(aE)`
|
|
3724
3860
|
border: none;
|
|
3725
|
-
`,
|
|
3861
|
+
`,sE=e=>{if(!e)return Array(7).fill(Array(24).fill("1"));const t=(e=>{if(!e)return Array(7).fill(Array(24).fill("1")).join("");let t="";for(const n of e)switch(n){case"0":t+="0000";break;case"1":t+="0001";break;case"2":t+="0010";break;case"3":t+="0011";break;case"4":t+="0100";break;case"5":t+="0101";break;case"6":t+="0110";break;case"7":t+="0111";break;case"8":t+="1000";break;case"9":t+="1001";break;case"a":t+="1010";break;case"b":t+="1011";break;case"c":t+="1100";break;case"d":t+="1101";break;case"e":t+="1110";break;case"f":t+="1111";break;default:return""}return t})(e),n=[];for(let e=0;e<7;e++){n[e]=[];for(let r=0;r<24;r++)n[e][r]=t.charAt(24*e+r)}return n},cE=Array.from(Array(24)).map(((e,t)=>t)),uE=({weekList:t,weekTime:n,WeekTimeItem:r,isWithinHoverRange:a,onMouseOver:o,onMouseDown:l})=>{const s=e.useMemo((()=>sE(n)),[n]),c=(e,t)=>()=>{null==o||o(e,t)},u=(e,t,n)=>()=>{null==l||l(e,t,n)};return i.default.createElement(rE,null,i.default.createElement(lE,null),cE.map((e=>i.default.createElement(oE,{key:e},e))),s.map(((n,o)=>i.default.createElement(e.Fragment,{key:o},i.default.createElement(iE,null,t[o]),n.map(((e,t)=>i.default.createElement(r,{key:`${o}-${t}`,active:"1"===e,hover:!!a&&a(o,t),onMouseOver:c(o,t),onMouseDown:u(o,t,e)})))))))},dE=i.default.forwardRef((function(e,t){const n=Fn({props:e,name:"WeekTime"}),{weekList:r,weekTime:a}=n;return i.default.createElement(tE,{ref:t},i.default.createElement(uE,{weekTime:a,weekList:r,WeekTimeItem:nE}))})),pE=o.default.div``,fE=o.default.button`
|
|
3726
3862
|
background-color: ${({active:e,hover:t,theme:n})=>t?n.palette.primary.highlight:e?n.palette.primary.main:n.palette.white};
|
|
3727
3863
|
border: 1px solid
|
|
3728
3864
|
${({theme:e,active:t,hover:n})=>n?e.palette.primary.light:t?e.palette.primary.dark:e.palette.gray.main};
|
|
@@ -3731,5 +3867,5 @@ var Za=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
3731
3867
|
height: ${({theme:e})=>3*e.spacing}px;
|
|
3732
3868
|
width: ${({theme:e})=>3*e.spacing}px;
|
|
3733
3869
|
outline: none;
|
|
3734
|
-
`,rE=i.default.forwardRef((function(t,n){const r=Fn({props:t,name:"WeekTimeSelector"}),{weekList:a,weekTime:o,errorText:l,onChange:s}=r,c=e.useMemo((()=>_C(o)),[o]),[u,d]=e.useState({weekIndex:0,timeIndex:0}),[p,f]=e.useState({weekIndex:0,timeIndex:0}),[m,g]=e.useState("none"),[h,b]=e.useState("1"),v=(e,t,n)=>{if("choosing"===m){const r=((e,t,n,r,a,i)=>{const o=[...i],l=Math.min(e,n),s=Math.max(e,n),c=Math.min(t,r),u=Math.max(t,r);for(let e=l;e<=s;e++){const t=o[e].map(((t,n)=>e>=l&&e<=s&&n>=c&&n<=u?a:t));o[e]=t}return o})(u.weekIndex,u.timeIndex,e,t,n,[...c]);g("none"),null==s||s((e=>{let t="";for(let n=0;n<7;n++)for(let r=0;r<24;r++)t+=e[n][r];return(e=>{let t="";for(let n=0;n<e.length;n+=4)switch(e.substr(n,4)){case"0000":t+="0";break;case"0001":t+="1";break;case"0010":t+="2";break;case"0011":t+="3";break;case"0100":t+="4";break;case"0101":t+="5";break;case"0110":t+="6";break;case"0111":t+="7";break;case"1000":t+="8";break;case"1001":t+="9";break;case"1010":t+="a";break;case"1011":t+="b";break;case"1100":t+="c";break;case"1101":t+="d";break;case"1110":t+="e";break;case"1111":t+="f";break;default:return""}return t})(t)})(r))}else"none"===m&&(d({weekIndex:e,timeIndex:t}),f({weekIndex:e,timeIndex:t}),g("choosing"))},x=()=>{"choosing"===m&&v(p.weekIndex,p.timeIndex,h)};return e.useEffect((()=>(addEventListener("mouseup",x),()=>{removeEventListener("mouseup",x)}))),i.default.createElement(tE,{ref:n},i.default.createElement(KC,{weekTime:o,weekList:a,WeekTimeItem:nE,isWithinHoverRange:(e,t)=>{if("choosing"===m){const n=Math.min(u.weekIndex,p.weekIndex),r=Math.max(u.weekIndex,p.weekIndex),a=Math.min(u.timeIndex,p.timeIndex),i=Math.max(u.timeIndex,p.timeIndex);return e>=n&&e<=r&&t>=a&&t<=i}return!1},onMouseOver:(e,t)=>{"none"!==m&&f({weekIndex:e,timeIndex:t})},onMouseDown:(e,t,n)=>{const r="1"===n?"0":"1";b(r),v(e,t,r)}}),l&&i.default.createElement(rt,{pt:1},i.default.createElement(Ev,null,l)))}));exports.Accordion=L,exports.ActionButton=z,exports.Backdrop=Qe,exports.Badge=Ke,exports.BreakPoint=g,exports.Button=st,exports.ButtonGroup=pt,exports.Calendar=Qt,exports.CalendarRange=hn,exports.Card=bn,exports.Checkbox=Cn,exports.ClickAwayListener=({onClickAway:e,children:t})=>{const n=i.useRef(null),r=i.useRef(!1);i.useEffect((()=>(setTimeout((()=>{r.current=!0}),0),()=>{r.current=!1})),[]),i.useEffect((()=>{const t=t=>{r.current&&(null==n.current||n.current.contains(t.target)||e&&e(t))};return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}}),[n,e]);const a=Object.assign(Object.assign({},t.props),{ref:En(n,t.ref)});return i.cloneElement(t,a)},exports.ConfirmModal=Xn,exports.ContextMenu=Io,exports.ContextMenu2=Gc,exports.ContextMenu2ButtonControlsItem=Jc,exports.ContextMenu2ButtonItem=Vo,exports.ContextMenu2CheckItem=So,exports.ContextMenu2Container=Pc,exports.ContextMenu2HeadingItem=Wc,exports.ContextMenu2HelpTextItem=Xc,exports.ContextMenu2SeparatorItem=Yc,exports.ContextMenu2SortableGroup=Mc,exports.ContextMenu2SortableItem=Zc,exports.ContextMenu2SwitchItem=$o,exports.ContextMenu2TextInputItem=Lc,exports.ContextMenu2TriggerItem=Po,exports.CreatableSelect=Ym,exports.DataTable=Wg,exports.DataTable2=({bordered:t,rowControls:n,extraButtons:r,currentPage:a,pageSize:o,pageSizeOptions:l,totalCount:s,columns:c,onPageChange:u,onPageSizeChange:d,onColumnsChange:p,onCheckedRowsChange:f,children:m})=>{const[g,h]=e.useState(!1),[b,v]=e.useState([]),[x,y]=e.useState([]),[w,C]=e.useState([]),[E,I]=e.useState(0),k=e.useRef(null),A=e.useCallback(((e,t)=>{const n=[...w];n[e]=t,C(n)}),[w,C]);e.useEffect((()=>{if(!k.current)return;const e=()=>{var e;k.current&&h((null===(e=k.current)||void 0===e?void 0:e.clientWidth)<640)},t=new ResizeObserver(e);return e(),t.observe(k.current),()=>{t.disconnect()}}),[]);const M=e.useCallback((e=>{y(e),null==f||f(e)}),[y,f]),H=e.useRef(a);return e.useEffect((()=>{H.current!==a&&M([]),H.current=a}),[a,M]),i.default.createElement(Yg,{ref:k,bordered:t},i.default.createElement(jg.Provider,{value:{isSmallLayout:g,rowIds:b,hasRowControls:!!n,checkedRows:x,totalCount:s,currentPage:a,pageSize:o,pageSizeOptions:l,columns:c,columnWidths:w,rowSpacing:E,setRowIds:v,setCheckedRows:M,setCurrentPage:u,setPageSize:d,setColumns:p,setColumnWidth:A,setRowSpacing:I}},i.default.createElement(Mh,{rowControls:n,extraButtons:r}),i.default.createElement(Ug,null,i.default.createElement("table",null,m))))},exports.DataTable2ActionButton=({prepend:t,children:n,onClick:r})=>{const{isSmallLayout:a}=e.useContext(jg);return a?i.default.createElement(Vo,{prepend:t,onClick:r},n):i.default.createElement(rh,{type:"button",onClick:r},t,n)},exports.DataTable2Body=({children:t})=>{const{rowIds:n,setRowIds:r}=e.useContext(jg);return e.useEffect((()=>{const a=[];e.Children.forEach(t,(t=>{e.isValidElement(t)&&"string"==typeof t.props.id&&a.push(t.props.id)})),0!==a.filter((e=>!n.includes(e))).length&&r(a)}),[t,n,r]),i.default.createElement("tbody",null,t)},exports.DataTable2Cell=({loading:e,children:t})=>i.default.createElement("td",null,i.default.createElement(gh,null,i.default.createElement(bh,null,t),e&&i.default.createElement(hh,null,i.default.createElement($n,{width:"20px"})))),exports.DataTable2Column=({className:t,isResizable:r,width:a,minWidth:o=32,maxWidth:l=1/0,children:s,onWidthChange:c})=>{const{isSmallLayout:u,setColumnWidth:d}=e.useContext(jg),p=e.useContext(Fg),[f,m]=e.useState(!1),g=e.useRef(null),h=e.useRef(null),b=e.useRef(0),v=e.useRef(0),x=e.useCallback((e=>{m(!0),h.current&&null===g.current&&(g.current=e.pointerId,v.current=a||h.current.clientWidth,b.current=e.clientX)}),[a]),y=e.useCallback((e=>{if(!c)return;if(g.current!==e.pointerId)return;e.cancelable&&e.preventDefault();const t=e.clientX-b.current,n=((e,t,n)=>Math.min(Math.max(e,t),n))(v.current+t,o,l);c(n),d(p.index,n)}),[c,o,l,d,p.index]),w=e.useCallback((()=>{m(!1),g.current=null}),[]);return e.useEffect((()=>{if(f)return document.addEventListener("pointermove",y),document.addEventListener("pointerup",w),()=>{document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",w)}}),[f,y,w]),i.default.createElement(oh,{ref:h,className:t,"data-dragging":f,style:{minWidth:isFinite(o)&&o<=l?o:void 0,maxWidth:isFinite(l)&&o<=l?l:void 0}},i.default.createElement(lh,{isSmallLayout:u},s,r&&i.default.createElement(sh,{type:"button","aria-label":"resize the column",onPointerDown:x}),f&&n.createPortal(i.default.createElement(ch,{"data-min":a&&o>=a,"data-max":a&&l<=a}),document.body)))},exports.DataTable2ColumnLabel=({showSortButton:t,sortButtonDirection:n,onSortChange:r,children:a})=>{const o=e.useMemo((()=>"asc"===n?"desc":"desc"!==n?"asc":void 0),[n]),l=e.useCallback((()=>{null==r||r(o)}),[r,o]);return i.default.createElement(uh,null,a,t&&i.default.createElement(dh,{type:"button","aria-label":"sort the column","data-sort-direction":n,onClick:l},i.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},i.default.createElement("path",{d:"M8.17 3.25a1 1 0 0 1 1.3-.33c.15.08.27.19.36.33l2.13 3.2c.1.15.16.33.17.51 0 .18-.03.36-.12.52s-.21.29-.37.39a1 1 0 0 1-.51.14H6.87a1 1 0 0 1-.83-1.56z"}),i.default.createElement("path",{d:"M9.83 14.75a1 1 0 0 1-1.3.33.95.95 0 0 1-.36-.33l-2.13-3.2c-.1-.15-.16-.33-.17-.51 0-.18.03-.36.12-.52s.21-.29.37-.39a1 1 0 0 1 .51-.14h4.26a1 1 0 0 1 .83 1.56z"}))))},exports.DataTable2Head=({children:t})=>{const{hasRowControls:n,columns:r}=e.useContext(jg),a=e.useMemo((()=>e.Children.toArray(t).map(((e,t)=>{const n=r[t];return{id:n.id,index:t,order:n.order,visible:n.visible,child:e}})).filter((e=>void 0!==e.id))),[t,r]),o=e.useMemo((()=>a.sort(((e,t)=>e.order-t.order)).filter((e=>e.visible))),[a]);return i.default.createElement(i.default.Fragment,null,i.default.createElement("colgroup",null,n&&i.default.createElement("col",{style:{width:34}}),o.map((({id:t,child:n})=>e.isValidElement(n)?i.default.createElement("col",{key:t,style:{width:n.props.width}}):null))),i.default.createElement(ih,null,i.default.createElement("tr",null,n&&i.default.createElement("th",{"aria-label":"empty cell"}),o.map((({id:e,index:t,child:n})=>i.default.createElement(Fg.Provider,{key:e,value:{index:t}},n))))))},exports.DataTable2InlineEditor=({label:t,value:n,children:r,onChange:a})=>{const[o,l]=e.useState(n),[s,c]=e.useState(!1),u=()=>{c(!1),a(o)};return e.useEffect((()=>{l(n)}),[n]),i.default.createElement(vh,null,r,i.default.createElement(xh,null,i.default.createElement(Pc,null,i.default.createElement(Gc,{width:252,trigger:i.default.createElement(z,{type:"button",color:"primary",icon:"pencil"}),open:s,onOpenChange:c},i.default.createElement(Wc,null,t),i.default.createElement(Lc,{value:o,onChange:e=>l(e.target.value),onEnter:u}),i.default.createElement(Yc,null),i.default.createElement(Jc,null,i.default.createElement(st,{type:"button",color:"clear",size:"small",onClick:()=>{c(!1),l(n)}},"キャンセル"),i.default.createElement(st,{type:"button",color:"primary",size:"small",onClick:u},"適用"))))))},exports.DataTable2InlineSelectEditor=({label:t,value:n,options:r,children:a,onChange:o})=>{const[l,s]=e.useState(!1);return i.default.createElement(vh,null,a,i.default.createElement(xh,null,i.default.createElement(Pc,null,i.default.createElement(Gc,{width:252,trigger:i.default.createElement(z,{type:"button",color:"primary",icon:"pencil"}),open:l,onOpenChange:s},i.default.createElement(Wc,null,t),r.map((e=>i.default.createElement(So,{key:e,closeOnChange:!0,checked:n===e,onChange:()=>o(e)},e)))))))},exports.DataTable2Row=({id:t,children:n})=>{const{isSmallLayout:r,columns:a,hasRowControls:o,checkedRows:l,setCheckedRows:s,rowSpacing:c}=e.useContext(jg),u=e.useMemo((()=>l.includes(t)),[t,l]),d=e.useCallback((()=>{const e=l.includes(t)?l.filter((e=>e!==t)):[...l,t];s(e)}),[t,l,s]),p=e.useMemo((()=>e.Children.toArray(n).map(((e,t)=>{const n=a[t];return{id:n.id,index:t,order:n.order,visible:n.visible,child:e}})).filter((e=>void 0!==e.id))),[n,a]),f=e.useMemo((()=>p.sort(((e,t)=>e.order-t.order)).filter((e=>e.visible))),[p]);return i.default.createElement(ph,{"data-highlighted":u,"data-spacing":c,isSmallLayout:r},o&&i.default.createElement(fh,null,i.default.createElement(mh,null,i.default.createElement(Cn,{checked:u,onChange:d}),i.default.createElement("input",{type:"checkbox","aria-label":"この行を選択"}))),f.map((({child:e})=>e)))},exports.DateField=_h,exports.DatePicker=rb,exports.DateRangeField=tb,exports.DateRangePicker=ib,exports.Divider=Kn,exports.DropdownButton=db,exports.DualListBox=Nb,exports.DualListBox2=Cv,exports.DualListBox2Accordion=Ob,exports.DualListBox2Item=Vb,exports.DualListBox2Section=hv,exports.ErrorText=Ev,exports.Fade=Ue,exports.FileUploader=Av,exports.FilterComboBox=({values:t,options:n,selectedIndex:r,selectOptions:a,onChange:o,onSelectChange:l,size:s="medium",variant:c="dark",tagVariant:u,searchPlaceholder:d="検索",noResultsMessage:p="見つかりませんでした",disabled:f=!1,applyButtonText:m="適用",cancelButtonText:g="キャンセル",error:h=!1})=>{const[b,v]=e.useState(""),[x,y]=e.useState(!1),[w,C]=e.useState(t),[E,k]=e.useState(!1),A=e.useMemo((()=>u||("light"===c?"dark":"light")),[c,u]),[M,H]=e.useState(!1),N=e.useRef(null),V=e.useCallback((()=>{N.current&&H(N.current.clientWidth<N.current.scrollWidth)}),[]),Z=e.useCallback((e=>{const t=e.trim();if(!t)return n.map((e=>Array.isArray(e)?e:[e]));return n.filter((e=>Array.isArray(e)?e.some((e=>e.includes(t))):e.includes(t))).map((e=>Array.isArray(e)?e:[e]))}),[n]),D=e.useMemo((()=>Z(b)),[b,Z]),L=e.useCallback((e=>{w.includes(e)?C(w.filter((t=>t!==e))):C([...w,e])}),[w]),S=e.useCallback((()=>{if(x)return;if(!b.trim())return;const e=Z(b);1===e.length&&(L(e[0][0]),v(""))}),[x,b,Z,L]),O=e.useCallback((e=>{v(e.target.value)}),[v]),R=e.useCallback((e=>{e.key}),[]),T=e.useCallback((e=>{const n=t.filter((t=>t!==e));o(n),C(n)}),[t,o]),$=e.useCallback((e=>{k(e),e&&C(t),v("")}),[t]),z=e.useCallback((()=>{o(w),k(!1)}),[o,w]),B=e.useCallback((()=>{C(t),k(!1)}),[t]),G=e.useMemo((()=>i.default.createElement(Yv,{autoFocus:!0,value:b,placeholder:d,onChange:O,onKeyDown:R,onCompositionStart:()=>y(!0),onCompositionEnd:()=>y(!1),onEnter:S})),[b,d,O,R,S]),P=e.useMemo((()=>i.default.createElement(Jc,null,i.default.createElement(st,{size:"small",color:"clear",onClick:B},g),i.default.createElement(st,{size:"small",onClick:z},m))),[B,z,m,g]);return e.useEffect((()=>{if(!window.ResizeObserver)return;if(!N.current)return;const e=new window.ResizeObserver((()=>{N.current&&V()}));return e.observe(N.current),V(),()=>{e.disconnect()}}),[V]),i.default.createElement(Pv,{size:s,selectedIndex:r,selectOptions:a,disabled:f,error:h,isOpen:E,onSelectChange:l},i.default.createElement(Wv,{$variant:c,"data-overflowing":M},i.default.createElement(Pc,null,i.default.createElement(Gc,{open:E&&!f,trigger:i.default.createElement(Fv,{type:"button",$variant:c,disabled:f,"aria-label":"タグを追加",onClick:()=>{f||k(!E)}},i.default.createElement(Xv,null,i.default.createElement(I,{name:"arrow_down",color:"currentColor"}))),stickyHeader:G,stickyFooter:P,noResultsMessage:p,onOpenChange:e=>!f&&$(e)},D.length>0?D.map((e=>i.default.createElement(So,{key:e[0],checked:w.includes(e[0]),closeOnChange:!1,onChange:()=>L(e[0])},e[0]))):i.default.createElement(Oc,{message:p}))),i.default.createElement(jv,{ref:N},t.map((e=>i.default.createElement(Gv,{key:e,label:e,size:s,variant:A,onRemove:()=>T(e)}))))))},exports.FilterSelectInput=({value:t,options:n,selectedIndex:r,selectOptions:a,onChange:o,onSelectChange:l,size:s="medium",variant:c="dark",searchPlaceholder:u="絞り込む",noResultsMessage:d="見つかりませんでした",disabled:p=!1,error:f=!1})=>{const[m,g]=e.useState(0),[h,b]=e.useState(""),[v,x]=e.useState(""),[y,w]=e.useState(!1),[C,E]=e.useState(!1),k=e.useRef(null);e.useEffect((()=>{if(!window.ResizeObserver)return;if(!k.current)return;const e=new window.ResizeObserver((()=>{k.current&&g(k.current.offsetWidth)}));return e.observe(k.current),()=>{e.disconnect()}}),[]);const A=e.useMemo((()=>{const e=v.trim();return""===e?n:n.filter((t=>t.includes(e)))}),[n,v]),M=e.useCallback((e=>{b(e.target.value),y||x(e.target.value)}),[y]),H=e.useCallback((e=>{"Enter"!==e.key||x(h)}),[h]),N=e.useCallback((e=>{E(e),e||(b(""),x(""))}),[]),V=e.useCallback((e=>{o(e),E(!1)}),[o]),Z=e.useCallback((()=>{p||E(!C)}),[p,C]),D=e.useCallback((e=>{p||N(e)}),[p,N]),L=e.useMemo((()=>i.default.createElement(qv,{autoFocus:!0,value:h,placeholder:u,disabled:p,onChange:M,onKeyDown:H,onCompositionStart:()=>w(!0),onCompositionEnd:()=>w(!1)})),[h,u,p,M,H]);return i.default.createElement(Pv,{size:s,selectedIndex:r,selectOptions:a,disabled:p,error:f,isOpen:C,onSelectChange:l},i.default.createElement(Jv,{ref:k},i.default.createElement(Pc,null,i.default.createElement(Gc,{open:C&&!p,minWidth:m,trigger:i.default.createElement(Uv,{type:"button",$size:s,$variant:c,disabled:p,onClick:Z},i.default.createElement(Qv,{$size:s},t),i.default.createElement(_v,null,i.default.createElement(I,{name:"arrow_down",color:"currentColor"}))),stickyHeader:L,onOpenChange:D},A.length>0?A.map((e=>i.default.createElement(So,{key:e,checked:e===t,disabled:p,onChange:()=>V(e)},e))):i.default.createElement(Oc,{message:d})))))},exports.FilterTagInput=({title:t,values:n,selectedIndex:r,selectOptions:a,onChange:o,onSelectChange:l,size:s="medium",variant:c="dark",tagVariant:u,menuIconSize:d=22,disabled:p=!1,error:f=!1})=>{const{isSmall:m}=e.useContext(Bv),[g,h]=e.useState(""),[b,v]=e.useState(!1),[x,y]=e.useState(!1),[w,C]=e.useState(!1),[E,k]=e.useState(!1),A=e.useRef(null),M=e.useMemo((()=>u||("light"===c?"dark":"light")),[c,u]),H=e.useRef(null),N=e.useRef(null),V=e.useCallback((()=>{H.current&&v(H.current.clientWidth<H.current.scrollWidth)}),[v]),Z=e.useCallback((()=>{if(!H.current||!A.current)return;const e=A.current.getBoundingClientRect(),t=H.current.getBoundingClientRect(),n=Number(window.getComputedStyle(H.current).paddingRight.replace("px",""));return t.right-n-e.left}),[]),D=e.useCallback((e=>{if(x)return;if(!(e.target instanceof HTMLInputElement))return;if("Backspace"===e.key&&0===e.target.selectionStart)return o(n.slice(0,-1),r),void requestAnimationFrame((()=>{V(),Z()}));const t=e.target.value.trim();""===t||n.includes(t)||"Enter"===e.key&&(o([...n,t],r),h(""),requestAnimationFrame((()=>{V(),Z()})))}),[n,o,h,x,r]),L=e.useCallback((e=>{const t=[...n];t.splice(e,1),o(t,r),requestAnimationFrame((()=>{V(),Z()}))}),[n,o,r]),S=e.useCallback(((e,t)=>{o(e,t),l(t),requestAnimationFrame((()=>{V(),Z()}))}),[o,l]),O=e.useCallback((e=>{h(e.target.value)}),[]),R=e.useCallback((()=>{y(!0)}),[]),T=e.useCallback((()=>{y(!1)}),[]),$=e.useCallback((()=>{C(!0)}),[]),z=e.useCallback((()=>{C(!1)}),[]),B=e.useCallback((()=>{p||k(!0)}),[p]),G=e.useCallback((()=>{k(!1)}),[]),P=e.useCallback((()=>{G(),h("")}),[G]);e.useEffect((()=>{if(!window.ResizeObserver)return;if(!H.current)return;const e=new window.ResizeObserver((()=>{H.current&&(V(),Z())}));return e.observe(H.current),()=>{e.disconnect()}}),[V,Z]);const W=e.useMemo((()=>n.map(((e,t)=>i.default.createElement(Gv,{key:e,size:s,variant:M,label:e,onRemove:()=>L(t)})))),[n,s,M,L]);return i.default.createElement(i.default.Fragment,null,i.default.createElement(Pv,{size:s,selectedIndex:r,selectOptions:a,disabled:p,error:f,isOpen:E,onSelectChange:l},i.default.createElement(Kv,{ref:H,$size:s,$variant:c},i.default.createElement(ex,{ref:N},W,i.default.createElement(nx,null,!g&&i.default.createElement(rx,null,i.default.createElement(I,{name:"filter",color:"currentColor"})),i.default.createElement("input",{ref:A,type:"text","aria-label":"フィルターする値",value:g,disabled:p,onChange:O,onKeyDown:D,onCompositionStart:R,onCompositionEnd:T,onFocus:B,onBlur:P})))),i.default.createElement(tx,{$size:s,"aria-label":"フィルター入力パネルを開く","data-overflowing":b,type:"button",disabled:p,onClick:$},i.default.createElement(I,{name:m?"filter":"expand_diagonal_s_fill",color:"currentColor"}))),i.default.createElement(yx,{isOpen:w,menuIconSize:d,selectOptions:a,selectedIndex:r,title:t,values:n,onApply:S,onClose:z}))},exports.FixedPanel=Cx,exports.Flex=A,exports.FloatingTip=Ax,exports.FullSizeConfirmModal=Ox,exports.Grow=e=>{var{timeout:t=300,children:n}=e,r=s(e,["timeout","children"]);const a=i.useRef(null);return i.createElement(Tx,Object.assign({nodeRef:a,appear:!0,mountOnEnter:!0,timeout:t,classNames:Rx},r),i.createElement("div",{ref:a},n))},exports.Icon=I,exports.Input=zx,exports.ItemEmpty=Dg,exports.LoadingBar=Px,exports.LocaleProvider=({locale:e,children:t})=>i.createElement(jn.Provider,{value:{locale:e}},t),exports.Menu=Co,exports.MenuList=tr,exports.Modal=Pn,exports.MultipleFilter=Ey,exports.NavigationRail=sw,exports.NavigationRailContext=Vy,exports.NotificationBadge=Jy,exports.Pager=Mg,exports.Popover=wo,exports.Portal=Bn,exports.RadioButton=dg,exports.Radius=8,exports.ScrollArea=At,exports.Select=Xm,exports.Shadow=m,exports.Slide=pw,exports.Snackbar=bw,exports.Space=8,exports.Spacer=rt,exports.Spinner=$n,exports.SplitAnnotation=xw,exports.Switch=Hw,exports.Table=zw,exports.Tabs=Yw,exports.TextField=oy,exports.ThemeProvider=({children:e,theme:n})=>i.createElement(t.ThemeContext.Provider,{value:n},e),exports.Toast=OC,exports.ToggleButton=WC,exports.Tooltip=By,exports.Typography=T,exports.WeekTime=eE,exports.WeekTimeSelector=rE,exports.colors=c,exports.createTheme=b,exports.defaultTheme=v,exports.enUS=Wn,exports.getFilteredItems=Hg,exports.jaJP={components:{ToggleButton:{defaultProps:{checkedText:"オン",unCheckedText:"オフ"}},ConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FullSizeConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FileUploader:{defaultProps:{title:"ファイルをドラッグ&ドロップ、またはここをクリック"}},ItemEmpty:{defaultProps:{title:"見つかりませんでした。"}},Select:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません"}},CreatableSelect:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません",addMessage:"次の文字列を追加する"}},MultipleFilter:{defaultProps:{placeholder:"新しいフィルターを追加してください"}},FilterCard:{defaultProps:{applyButtonTitle:"適用",inputErrorText:"入力してください",formPlaceholder:"検索",sectionTitle:"セクション"}},EditFilterCard:{defaultProps:{}},DatePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekList:["日","月","火","水","木","金","土"]}},DateRangePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekList:["日","月","火","水","木","金","土"]}},WeekTime:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},WeekTimeSelector:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},DualListBox:{defaultProps:{selectedItemTitle:"個選択済み"}}}},exports.palette=p,exports.toGroupedItems=e=>e.reduce(((e,t)=>{const n=e.find((e=>e.groupName===t.groupName));return n?n.items.push(t):e.push({groupName:t.groupName,items:[t]}),e}),[]),exports.useContextMenu2Anchor=()=>{const[t,n]=e.useState({x:0,y:0});return{position:t,setPosition:n}},exports.useFilterState=Ng,exports.useTheme=x,exports.zhCN={components:{ToggleButton:{defaultProps:{checkedText:"开",unCheckedText:"关"}},ConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FullSizeConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FileUploader:{defaultProps:{title:"把文件拖入, 同样支持点击上传。"}},ItemEmpty:{defaultProps:{title:"未找到。"}}}};
|
|
3870
|
+
`,mE=i.default.forwardRef((function(t,n){const r=Fn({props:t,name:"WeekTimeSelector"}),{weekList:a,weekTime:o,errorText:l,onChange:s}=r,c=e.useMemo((()=>sE(o)),[o]),[u,d]=e.useState({weekIndex:0,timeIndex:0}),[p,f]=e.useState({weekIndex:0,timeIndex:0}),[m,g]=e.useState("none"),[h,b]=e.useState("1"),v=(e,t,n)=>{if("choosing"===m){const r=((e,t,n,r,a,i)=>{const o=[...i],l=Math.min(e,n),s=Math.max(e,n),c=Math.min(t,r),u=Math.max(t,r);for(let e=l;e<=s;e++){const t=o[e].map(((t,n)=>e>=l&&e<=s&&n>=c&&n<=u?a:t));o[e]=t}return o})(u.weekIndex,u.timeIndex,e,t,n,[...c]);g("none"),null==s||s((e=>{let t="";for(let n=0;n<7;n++)for(let r=0;r<24;r++)t+=e[n][r];return(e=>{let t="";for(let n=0;n<e.length;n+=4)switch(e.substr(n,4)){case"0000":t+="0";break;case"0001":t+="1";break;case"0010":t+="2";break;case"0011":t+="3";break;case"0100":t+="4";break;case"0101":t+="5";break;case"0110":t+="6";break;case"0111":t+="7";break;case"1000":t+="8";break;case"1001":t+="9";break;case"1010":t+="a";break;case"1011":t+="b";break;case"1100":t+="c";break;case"1101":t+="d";break;case"1110":t+="e";break;case"1111":t+="f";break;default:return""}return t})(t)})(r))}else"none"===m&&(d({weekIndex:e,timeIndex:t}),f({weekIndex:e,timeIndex:t}),g("choosing"))},x=()=>{"choosing"===m&&v(p.weekIndex,p.timeIndex,h)};return e.useEffect((()=>(addEventListener("mouseup",x),()=>{removeEventListener("mouseup",x)}))),i.default.createElement(pE,{ref:n},i.default.createElement(uE,{weekTime:o,weekList:a,WeekTimeItem:fE,isWithinHoverRange:(e,t)=>{if("choosing"===m){const n=Math.min(u.weekIndex,p.weekIndex),r=Math.max(u.weekIndex,p.weekIndex),a=Math.min(u.timeIndex,p.timeIndex),i=Math.max(u.timeIndex,p.timeIndex);return e>=n&&e<=r&&t>=a&&t<=i}return!1},onMouseOver:(e,t)=>{"none"!==m&&f({weekIndex:e,timeIndex:t})},onMouseDown:(e,t,n)=>{const r="1"===n?"0":"1";b(r),v(e,t,r)}}),l&&i.default.createElement(rt,{pt:1},i.default.createElement(Ev,null,l)))}));exports.Accordion=S,exports.ActionButton=z,exports.Backdrop=Qe,exports.Badge=Ke,exports.BreakPoint=g,exports.Button=st,exports.ButtonGroup=pt,exports.Calendar=Qt,exports.CalendarRange=hn,exports.Card=bn,exports.Checkbox=Cn,exports.ClickAwayListener=({onClickAway:e,children:t})=>{const n=i.useRef(null),r=i.useRef(!1);i.useEffect((()=>(setTimeout((()=>{r.current=!0}),0),()=>{r.current=!1})),[]),i.useEffect((()=>{const t=t=>{r.current&&(null==n.current||n.current.contains(t.target)||e&&e(t))};return document.addEventListener("click",t),()=>{document.removeEventListener("click",t)}}),[n,e]);const a=Object.assign(Object.assign({},t.props),{ref:En(n,t.ref)});return i.cloneElement(t,a)},exports.ConfirmModal=Xn,exports.ContextMenu=Io,exports.ContextMenu2=Gc,exports.ContextMenu2ButtonControlsItem=Jc,exports.ContextMenu2ButtonItem=Vo,exports.ContextMenu2CheckItem=Lo,exports.ContextMenu2Container=Pc,exports.ContextMenu2HeadingItem=Wc,exports.ContextMenu2HelpTextItem=Xc,exports.ContextMenu2SeparatorItem=Yc,exports.ContextMenu2SortableGroup=Mc,exports.ContextMenu2SortableItem=Zc,exports.ContextMenu2SwitchItem=To,exports.ContextMenu2TextInputItem=Sc,exports.ContextMenu2TriggerItem=Po,exports.CreatableSelect=Ym,exports.DataTable=Wg,exports.DataTable2=({bordered:t,rowControls:n,extraButtons:r,currentPage:a,pageSize:o,pageSizeOptions:l,totalCount:s,columns:c,onPageChange:u,onPageSizeChange:d,onColumnsChange:p,onCheckedRowsChange:f,children:m})=>{const[g,h]=e.useState(!1),[b,v]=e.useState([]),[x,y]=e.useState([]),[w,C]=e.useState([]),[E,I]=e.useState(0),k=e.useRef(null),A=e.useCallback(((e,t)=>{const n=[...w];n[e]=t,C(n)}),[w,C]);e.useEffect((()=>{if(!k.current)return;const e=()=>{var e;k.current&&h((null===(e=k.current)||void 0===e?void 0:e.clientWidth)<640)},t=new ResizeObserver(e);return e(),t.observe(k.current),()=>{t.disconnect()}}),[]);const M=e.useCallback((e=>{y(e),null==f||f(e)}),[y,f]),H=e.useRef(a);return e.useEffect((()=>{H.current!==a&&M([]),H.current=a}),[a,M]),i.default.createElement(Yg,{ref:k,bordered:t},i.default.createElement(jg.Provider,{value:{isSmallLayout:g,rowIds:b,hasRowControls:!!n,checkedRows:x,totalCount:s,currentPage:a,pageSize:o,pageSizeOptions:l,columns:c,columnWidths:w,rowSpacing:E,setRowIds:v,setCheckedRows:M,setCurrentPage:u,setPageSize:d,setColumns:p,setColumnWidth:A,setRowSpacing:I}},i.default.createElement(Mh,{rowControls:n,extraButtons:r}),i.default.createElement(Ug,null,i.default.createElement("table",null,m))))},exports.DataTable2ActionButton=({prepend:t,children:n,onClick:r})=>{const{isSmallLayout:a}=e.useContext(jg);return a?i.default.createElement(Vo,{prepend:t,onClick:r},n):i.default.createElement(rh,{type:"button",onClick:r},t,n)},exports.DataTable2Body=({children:t})=>{const{rowIds:n,setRowIds:r}=e.useContext(jg);return e.useEffect((()=>{const a=[];e.Children.forEach(t,(t=>{e.isValidElement(t)&&"string"==typeof t.props.id&&a.push(t.props.id)})),0!==a.filter((e=>!n.includes(e))).length&&r(a)}),[t,n,r]),i.default.createElement("tbody",null,t)},exports.DataTable2Cell=({loading:e,children:t})=>i.default.createElement("td",null,i.default.createElement(gh,null,i.default.createElement(bh,null,t),e&&i.default.createElement(hh,null,i.default.createElement(Tn,{width:"20px"})))),exports.DataTable2Column=({className:t,isResizable:r,width:a,minWidth:o=32,maxWidth:l=1/0,children:s,onWidthChange:c})=>{const{isSmallLayout:u,setColumnWidth:d}=e.useContext(jg),p=e.useContext(Fg),[f,m]=e.useState(!1),g=e.useRef(null),h=e.useRef(null),b=e.useRef(0),v=e.useRef(0),x=e.useCallback((e=>{m(!0),h.current&&null===g.current&&(g.current=e.pointerId,v.current=a||h.current.clientWidth,b.current=e.clientX)}),[a]),y=e.useCallback((e=>{if(!c)return;if(g.current!==e.pointerId)return;e.cancelable&&e.preventDefault();const t=e.clientX-b.current,n=((e,t,n)=>Math.min(Math.max(e,t),n))(v.current+t,o,l);c(n),d(p.index,n)}),[c,o,l,d,p.index]),w=e.useCallback((()=>{m(!1),g.current=null}),[]);return e.useEffect((()=>{if(f)return document.addEventListener("pointermove",y),document.addEventListener("pointerup",w),()=>{document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",w)}}),[f,y,w]),i.default.createElement(oh,{ref:h,className:t,"data-dragging":f,style:{minWidth:isFinite(o)&&o<=l?o:void 0,maxWidth:isFinite(l)&&o<=l?l:void 0}},i.default.createElement(lh,{isSmallLayout:u},s,r&&i.default.createElement(sh,{type:"button","aria-label":"resize the column",onPointerDown:x}),f&&n.createPortal(i.default.createElement(ch,{"data-min":a&&o>=a,"data-max":a&&l<=a}),document.body)))},exports.DataTable2ColumnLabel=({showSortButton:t,sortButtonDirection:n,onSortChange:r,children:a})=>{const o=e.useMemo((()=>"asc"===n?"desc":"desc"!==n?"asc":void 0),[n]),l=e.useCallback((()=>{null==r||r(o)}),[r,o]);return i.default.createElement(uh,null,a,t&&i.default.createElement(dh,{type:"button","aria-label":"sort the column","data-sort-direction":n,onClick:l},i.default.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18"},i.default.createElement("path",{d:"M8.17 3.25a1 1 0 0 1 1.3-.33c.15.08.27.19.36.33l2.13 3.2c.1.15.16.33.17.51 0 .18-.03.36-.12.52s-.21.29-.37.39a1 1 0 0 1-.51.14H6.87a1 1 0 0 1-.83-1.56z"}),i.default.createElement("path",{d:"M9.83 14.75a1 1 0 0 1-1.3.33.95.95 0 0 1-.36-.33l-2.13-3.2c-.1-.15-.16-.33-.17-.51 0-.18.03-.36.12-.52s.21-.29.37-.39a1 1 0 0 1 .51-.14h4.26a1 1 0 0 1 .83 1.56z"}))))},exports.DataTable2Head=({children:t})=>{const{hasRowControls:n,columns:r}=e.useContext(jg),a=e.useMemo((()=>e.Children.toArray(t).map(((e,t)=>{const n=r[t];return{id:n.id,index:t,order:n.order,visible:n.visible,child:e}})).filter((e=>void 0!==e.id))),[t,r]),o=e.useMemo((()=>a.sort(((e,t)=>e.order-t.order)).filter((e=>e.visible))),[a]);return i.default.createElement(i.default.Fragment,null,i.default.createElement("colgroup",null,n&&i.default.createElement("col",{style:{width:34}}),o.map((({id:t,child:n})=>e.isValidElement(n)?i.default.createElement("col",{key:t,style:{width:n.props.width}}):null))),i.default.createElement(ih,null,i.default.createElement("tr",null,n&&i.default.createElement("th",{"aria-label":"empty cell"}),o.map((({id:e,index:t,child:n})=>i.default.createElement(Fg.Provider,{key:e,value:{index:t}},n))))))},exports.DataTable2InlineEditor=({label:t,value:n,children:r,onChange:a})=>{const[o,l]=e.useState(n),[s,c]=e.useState(!1),u=()=>{c(!1),a(o)};return e.useEffect((()=>{l(n)}),[n]),i.default.createElement(vh,null,r,i.default.createElement(xh,null,i.default.createElement(Pc,null,i.default.createElement(Gc,{width:252,trigger:i.default.createElement(z,{type:"button",color:"primary",icon:"pencil"}),open:s,onOpenChange:c},i.default.createElement(Wc,null,t),i.default.createElement(Sc,{value:o,onChange:e=>l(e.target.value),onEnter:u}),i.default.createElement(Yc,null),i.default.createElement(Jc,null,i.default.createElement(st,{type:"button",color:"clear",size:"small",onClick:()=>{c(!1),l(n)}},"キャンセル"),i.default.createElement(st,{type:"button",color:"primary",size:"small",onClick:u},"適用"))))))},exports.DataTable2InlineSelectEditor=({label:t,value:n,options:r,children:a,onChange:o})=>{const[l,s]=e.useState(!1);return i.default.createElement(vh,null,a,i.default.createElement(xh,null,i.default.createElement(Pc,null,i.default.createElement(Gc,{width:252,trigger:i.default.createElement(z,{type:"button",color:"primary",icon:"pencil"}),open:l,onOpenChange:s},i.default.createElement(Wc,null,t),r.map((e=>i.default.createElement(Lo,{key:e,closeOnChange:!0,checked:n===e,onChange:()=>o(e)},e)))))))},exports.DataTable2Row=({id:t,children:n})=>{const{isSmallLayout:r,columns:a,hasRowControls:o,checkedRows:l,setCheckedRows:s,rowSpacing:c}=e.useContext(jg),u=e.useMemo((()=>l.includes(t)),[t,l]),d=e.useCallback((()=>{const e=l.includes(t)?l.filter((e=>e!==t)):[...l,t];s(e)}),[t,l,s]),p=e.useMemo((()=>e.Children.toArray(n).map(((e,t)=>{const n=a[t];return{id:n.id,index:t,order:n.order,visible:n.visible,child:e}})).filter((e=>void 0!==e.id))),[n,a]),f=e.useMemo((()=>p.sort(((e,t)=>e.order-t.order)).filter((e=>e.visible))),[p]);return i.default.createElement(ph,{"data-highlighted":u,"data-spacing":c,isSmallLayout:r},o&&i.default.createElement(fh,null,i.default.createElement(mh,null,i.default.createElement(Cn,{checked:u,onChange:d}),i.default.createElement("input",{type:"checkbox","aria-label":"この行を選択"}))),f.map((({child:e})=>e)))},exports.DateField=_h,exports.DatePicker=rb,exports.DateRangeField=tb,exports.DateRangePicker=ib,exports.Divider=Kn,exports.DropdownButton=db,exports.DualListBox=Nb,exports.DualListBox2=Cv,exports.DualListBox2Accordion=Ob,exports.DualListBox2Item=Vb,exports.DualListBox2Section=hv,exports.ErrorText=Ev,exports.Fade=Ue,exports.FileUploader=Av,exports.FilterComboBox=({values:t,options:n,selectedIndex:r,selectOptions:a,onChange:o,onSelectChange:l,size:s="medium",variant:c="dark",tagVariant:u,searchPlaceholder:d="検索",noResultsMessage:p="見つかりませんでした",disabled:f=!1,applyButtonText:m="適用",cancelButtonText:g="キャンセル",error:h=!1})=>{const[b,v]=e.useState(""),[x,y]=e.useState(!1),[w,C]=e.useState(t),[E,k]=e.useState(!1),A=e.useMemo((()=>u||("light"===c?"dark":"light")),[c,u]),[M,H]=e.useState(!1),N=e.useRef(null),V=e.useCallback((()=>{N.current&&H(N.current.clientWidth<N.current.scrollWidth)}),[]),Z=e.useCallback((e=>{const t=e.trim();if(!t)return n.map((e=>Array.isArray(e)?e:[e]));return n.filter((e=>Array.isArray(e)?e.some((e=>e.includes(t))):e.includes(t))).map((e=>Array.isArray(e)?e:[e]))}),[n]),D=e.useMemo((()=>Z(b)),[b,Z]),S=e.useCallback((e=>{w.includes(e)?C(w.filter((t=>t!==e))):C([...w,e])}),[w]),L=e.useCallback((()=>{if(x)return;if(!b.trim())return;const e=Z(b);1===e.length&&(S(e[0][0]),v(""))}),[x,b,Z,S]),O=e.useCallback((e=>{v(e.target.value)}),[v]),R=e.useCallback((e=>{e.key}),[]),$=e.useCallback((e=>{const n=t.filter((t=>t!==e));o(n),C(n)}),[t,o]),T=e.useCallback((e=>{k(e),e&&C(t),v("")}),[t]),z=e.useCallback((()=>{o(w),k(!1)}),[o,w]),B=e.useCallback((()=>{C(t),k(!1)}),[t]),G=e.useMemo((()=>i.default.createElement(Yv,{autoFocus:!0,value:b,placeholder:d,onChange:O,onKeyDown:R,onCompositionStart:()=>y(!0),onCompositionEnd:()=>y(!1),onEnter:L})),[b,d,O,R,L]),P=e.useMemo((()=>i.default.createElement(Jc,null,i.default.createElement(st,{size:"small",color:"clear",onClick:B},g),i.default.createElement(st,{size:"small",onClick:z},m))),[B,z,m,g]);return e.useEffect((()=>{if(!window.ResizeObserver)return;if(!N.current)return;const e=new window.ResizeObserver((()=>{N.current&&V()}));return e.observe(N.current),V(),()=>{e.disconnect()}}),[V]),i.default.createElement(Pv,{size:s,selectedIndex:r,selectOptions:a,disabled:f,error:h,isOpen:E,onSelectChange:l},i.default.createElement(Wv,{$variant:c,"data-overflowing":M},i.default.createElement(Pc,null,i.default.createElement(Gc,{open:E&&!f,trigger:i.default.createElement(Fv,{type:"button",$variant:c,disabled:f,"aria-label":"タグを追加",onClick:()=>{f||k(!E)}},i.default.createElement(Xv,null,i.default.createElement(I,{name:"arrow_down",color:"currentColor"}))),stickyHeader:G,stickyFooter:P,noResultsMessage:p,onOpenChange:e=>!f&&T(e)},D.length>0?D.map((e=>i.default.createElement(Lo,{key:e[0],checked:w.includes(e[0]),closeOnChange:!1,onChange:()=>S(e[0])},e[0]))):i.default.createElement(Oc,{message:p}))),i.default.createElement(jv,{ref:N},t.map((e=>i.default.createElement(Gv,{key:e,label:e,size:s,variant:A,onRemove:()=>$(e)}))))))},exports.FilterSelectInput=({value:t,options:n,selectedIndex:r,selectOptions:a,onChange:o,onSelectChange:l,size:s="medium",variant:c="dark",searchPlaceholder:u="絞り込む",noResultsMessage:d="見つかりませんでした",disabled:p=!1,error:f=!1})=>{const[m,g]=e.useState(0),[h,b]=e.useState(""),[v,x]=e.useState(""),[y,w]=e.useState(!1),[C,E]=e.useState(!1),k=e.useRef(null);e.useEffect((()=>{if(!window.ResizeObserver)return;if(!k.current)return;const e=new window.ResizeObserver((()=>{k.current&&g(k.current.offsetWidth)}));return e.observe(k.current),()=>{e.disconnect()}}),[]);const A=e.useMemo((()=>{const e=v.trim();return""===e?n:n.filter((t=>t.includes(e)))}),[n,v]),M=e.useCallback((e=>{b(e.target.value),y||x(e.target.value)}),[y]),H=e.useCallback((e=>{"Enter"!==e.key||x(h)}),[h]),N=e.useCallback((e=>{E(e),e||(b(""),x(""))}),[]),V=e.useCallback((e=>{o(e),E(!1)}),[o]),Z=e.useCallback((()=>{p||E(!C)}),[p,C]),D=e.useCallback((e=>{p||N(e)}),[p,N]),S=e.useMemo((()=>i.default.createElement(qv,{autoFocus:!0,value:h,placeholder:u,disabled:p,onChange:M,onKeyDown:H,onCompositionStart:()=>w(!0),onCompositionEnd:()=>w(!1)})),[h,u,p,M,H]);return i.default.createElement(Pv,{size:s,selectedIndex:r,selectOptions:a,disabled:p,error:f,isOpen:C,onSelectChange:l},i.default.createElement(Jv,{ref:k},i.default.createElement(Pc,null,i.default.createElement(Gc,{open:C&&!p,minWidth:m,trigger:i.default.createElement(Uv,{type:"button",$size:s,$variant:c,disabled:p,onClick:Z},i.default.createElement(Qv,{$size:s},t),i.default.createElement(_v,null,i.default.createElement(I,{name:"arrow_down",color:"currentColor"}))),stickyHeader:S,onOpenChange:D},A.length>0?A.map((e=>i.default.createElement(Lo,{key:e,checked:e===t,disabled:p,onChange:()=>V(e)},e))):i.default.createElement(Oc,{message:d})))))},exports.FilterTagInput=({title:t,values:n,selectedIndex:r,selectOptions:a,onChange:o,onSelectChange:l,size:s="medium",variant:c="dark",tagVariant:u,menuIconSize:d=22,disabled:p=!1,error:f=!1})=>{const{isSmall:m}=e.useContext(Bv),[g,h]=e.useState(""),[b,v]=e.useState(!1),[x,y]=e.useState(!1),[w,C]=e.useState(!1),[E,k]=e.useState(!1),A=e.useRef(null),M=e.useMemo((()=>u||("light"===c?"dark":"light")),[c,u]),H=e.useRef(null),N=e.useRef(null),V=e.useCallback((()=>{H.current&&v(H.current.clientWidth<H.current.scrollWidth)}),[v]),Z=e.useCallback((()=>{if(!H.current||!A.current)return;const e=A.current.getBoundingClientRect(),t=H.current.getBoundingClientRect(),n=Number(window.getComputedStyle(H.current).paddingRight.replace("px",""));return t.right-n-e.left}),[]),D=e.useCallback((e=>{if(x)return;if(!(e.target instanceof HTMLInputElement))return;if("Backspace"===e.key&&0===e.target.selectionStart)return o(n.slice(0,-1),r),void requestAnimationFrame((()=>{V(),Z()}));const t=e.target.value.trim();""===t||n.includes(t)||"Enter"===e.key&&(o([...n,t],r),h(""),requestAnimationFrame((()=>{V(),Z()})))}),[n,o,h,x,r]),S=e.useCallback((e=>{const t=[...n];t.splice(e,1),o(t,r),requestAnimationFrame((()=>{V(),Z()}))}),[n,o,r]),L=e.useCallback(((e,t)=>{o(e,t),l(t),requestAnimationFrame((()=>{V(),Z()}))}),[o,l]),O=e.useCallback((e=>{h(e.target.value)}),[]),R=e.useCallback((()=>{y(!0)}),[]),$=e.useCallback((()=>{y(!1)}),[]),T=e.useCallback((()=>{C(!0)}),[]),z=e.useCallback((()=>{C(!1)}),[]),B=e.useCallback((()=>{p||k(!0)}),[p]),G=e.useCallback((()=>{k(!1)}),[]),P=e.useCallback((()=>{G(),h("")}),[G]);e.useEffect((()=>{if(!window.ResizeObserver)return;if(!H.current)return;const e=new window.ResizeObserver((()=>{H.current&&(V(),Z())}));return e.observe(H.current),()=>{e.disconnect()}}),[V,Z]);const W=e.useMemo((()=>n.map(((e,t)=>i.default.createElement(Gv,{key:e,size:s,variant:M,label:e,onRemove:()=>S(t)})))),[n,s,M,S]);return i.default.createElement(i.default.Fragment,null,i.default.createElement(Pv,{size:s,selectedIndex:r,selectOptions:a,disabled:p,error:f,isOpen:E,onSelectChange:l},i.default.createElement(Kv,{ref:H,$size:s,$variant:c},i.default.createElement(ex,{ref:N},W,i.default.createElement(nx,null,!g&&i.default.createElement(rx,null,i.default.createElement(I,{name:"filter",color:"currentColor"})),i.default.createElement("input",{ref:A,type:"text","aria-label":"フィルターする値",value:g,disabled:p,onChange:O,onKeyDown:D,onCompositionStart:R,onCompositionEnd:$,onFocus:B,onBlur:P})))),i.default.createElement(tx,{$size:s,"aria-label":"フィルター入力パネルを開く","data-overflowing":b,type:"button",disabled:p,onClick:T},i.default.createElement(I,{name:m?"filter":"expand_diagonal_s_fill",color:"currentColor"}))),i.default.createElement(yx,{isOpen:w,menuIconSize:d,selectOptions:a,selectedIndex:r,title:t,values:n,onApply:L,onClose:z}))},exports.FixedPanel=Cx,exports.Flex=A,exports.FloatingTip=Ax,exports.FullSizeConfirmModal=Ox,exports.Grow=e=>{var{timeout:t=300,children:n}=e,r=s(e,["timeout","children"]);const a=i.useRef(null);return i.createElement($x,Object.assign({nodeRef:a,appear:!0,mountOnEnter:!0,timeout:t,classNames:Rx},r),i.createElement("div",{ref:a},n))},exports.Icon=I,exports.Input=zx,exports.ItemEmpty=Dg,exports.LoadingBar=Px,exports.LocaleProvider=({locale:e,children:t})=>i.createElement(jn.Provider,{value:{locale:e}},t),exports.Menu=Co,exports.MenuList=tr,exports.Modal=Pn,exports.MultipleFilter=Ey,exports.NavigationRail=sw,exports.NavigationRailContext=Vy,exports.NotificationBadge=Jy,exports.Pager=Mg,exports.Popover=wo,exports.Portal=Bn,exports.RadioButton=dg,exports.Radius=8,exports.ScrollArea=At,exports.Select=Xm,exports.Select2=t=>{var{options:n=[],value:r,multiple:a=!1,disabled:o=!1,placeholder:l="選択してください",size:c="medium",variant:u="light",tagVariant:d,searchable:p=!1,searchPlaceholder:f="検索",noResultsMessage:m="見つかりませんでした",error:g=!1,applyButtonText:h="適用",cancelButtonText:b="キャンセル",onChange:v}=t,x=s(t,["options","value","multiple","disabled","placeholder","size","variant","tagVariant","searchable","searchPlaceholder","noResultsMessage","error","applyButtonText","cancelButtonText","onChange"]);const[y,w]=e.useState(!1),[C,E]=e.useState(""),[k,A]=e.useState([]),[M,H]=e.useState(!1),N=e.useRef(null),V=e.useMemo((()=>d||("light"===u?"dark":"light")),[u,d]),Z=e.useMemo((()=>a?Array.isArray(r)?r:[]:void 0!==r?[r]:[]),[r,a]),D=e.useCallback((e=>{null==v||v(e)}),[v]),S=e.useCallback((e=>{o||(w(e),e&&a&&A([...Z]),e||E(""))}),[o,a,Z]),L=e.useCallback((e=>{e.disabled||(D(e.value),w(!1),E(""))}),[D]),O=e.useCallback(((e,t)=>{t.disabled||A((n=>e?[...n,t.value]:n.filter((e=>e!==t.value))))}),[]),R=e.useCallback((()=>{a&&D(k),w(!1),E("")}),[D,a,k]),$=e.useCallback((()=>{w(!1),E("")}),[]),T=e.useCallback((e=>{if(a&&Array.isArray(r)){const t=r.filter((t=>t!==e));D(t)}}),[a,r,D]),z=e.useCallback((e=>{E(e.target.value)}),[]),B=e.useCallback((e=>{e.stopPropagation()}),[]),G=e.useMemo((()=>n.find((e=>e.value===r))),[n,r]),P=e.useMemo((()=>a&&Array.isArray(r)?n.filter((e=>r.includes(e.value))):[]),[a,n,r]),W=e.useMemo((()=>p&&C?n.filter((e=>e.label.toLowerCase().includes(C.toLowerCase()))):n),[n,C,p]),j=e.useCallback((()=>{N.current&&H(N.current.scrollWidth>N.current.clientWidth)}),[]);e.useEffect((()=>{if(!window.ResizeObserver)return;if(!N.current)return;j();const e=new window.ResizeObserver((()=>{N.current&&j()}));return e.observe(N.current),()=>{e.disconnect()}}),[j,P]),e.useEffect((()=>{a&&Array.isArray(r)&&A(r)}),[a,r]);const F=e.useMemo((()=>p?i.default.createElement(xw,{autoFocus:!0,placeholder:f,value:C,onChange:z}):null),[p,C,f,z]),X=e.useMemo((()=>a?i.default.createElement(Jc,null,i.default.createElement(st,{color:"clear",size:"small",onClick:$},b),i.default.createElement(st,{color:"primary",disabled:0===k.length,size:"small",onClick:R},h)):null),[a,k,R,$,h,b]),Y=i.default.createElement(pw,Object.assign({$disabled:o,$error:g,$hasValue:a?Array.isArray(r)&&r.length>0:!!G,$isOpen:y,$multiple:a,$size:c,$variant:u,"aria-expanded":y,"aria-invalid":g,disabled:o,role:"combobox",type:"button"},x),!a&&i.default.createElement(mw,null,G?G.label:i.default.createElement(bw,{$disabled:o,$variant:u},l)),i.default.createElement(vw,{$disabled:o,$size:c},i.default.createElement(I,{name:"arrow_down",color:"currentColor"})));return i.default.createElement(uw,null,i.default.createElement(dw,{$disabled:o,$error:g,$isOpen:y,$size:c,$variant:u,"data-disabled":o,"data-overflowing":M,style:{cursor:a||o?"default":"pointer"}},i.default.createElement(Pc,null,i.default.createElement(Gc,{noResultsMessage:p?m:void 0,open:y,stickyFooter:X,stickyHeader:F,trigger:Y,onOpenChange:S},W.length>0?W.map((e=>{const t=a?k.includes(e.value):e.value===r;return i.default.createElement(Lo,{key:e.value.toString(),checked:t,closeOnChange:!a,disabled:e.disabled,onChange:()=>{a?O(!t,e):L(e)}},e.label)})):i.default.createElement(Oc,{message:m}))),a&&i.default.createElement(fw,null,i.default.createElement(gw,{ref:N,onClick:B},P.map((e=>{const t=o?void 0:()=>T(e.value);return i.default.createElement(hw,{key:e.value.toString(),disabled:o,label:e.label,size:c,variant:V,onRemove:t})}))))))},exports.Shadow=m,exports.Slide=Ew,exports.Snackbar=Hw,exports.Space=8,exports.Spacer=rt,exports.Spinner=Tn,exports.SplitAnnotation=Vw,exports.Switch=zw,exports.Table=Qw,exports.Tabs=aC,exports.TextField=oy,exports.ThemeProvider=({children:e,theme:n})=>i.createElement(t.ThemeContext.Provider,{value:n},e),exports.Toast=XC,exports.ToggleButton=eE,exports.Tooltip=By,exports.Typography=$,exports.WeekTime=dE,exports.WeekTimeSelector=mE,exports.colors=c,exports.createTheme=b,exports.defaultTheme=v,exports.enUS=Wn,exports.getFilteredItems=Hg,exports.jaJP={components:{ToggleButton:{defaultProps:{checkedText:"オン",unCheckedText:"オフ"}},ConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FullSizeConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FileUploader:{defaultProps:{title:"ファイルをドラッグ&ドロップ、またはここをクリック"}},ItemEmpty:{defaultProps:{title:"見つかりませんでした。"}},Select:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません"}},CreatableSelect:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません",addMessage:"次の文字列を追加する"}},MultipleFilter:{defaultProps:{placeholder:"新しいフィルターを追加してください"}},FilterCard:{defaultProps:{applyButtonTitle:"適用",inputErrorText:"入力してください",formPlaceholder:"検索",sectionTitle:"セクション"}},EditFilterCard:{defaultProps:{}},DatePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekList:["日","月","火","水","木","金","土"]}},DateRangePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekList:["日","月","火","水","木","金","土"]}},WeekTime:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},WeekTimeSelector:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},DualListBox:{defaultProps:{selectedItemTitle:"個選択済み"}}}},exports.palette=p,exports.toGroupedItems=e=>e.reduce(((e,t)=>{const n=e.find((e=>e.groupName===t.groupName));return n?n.items.push(t):e.push({groupName:t.groupName,items:[t]}),e}),[]),exports.useContextMenu2Anchor=()=>{const[t,n]=e.useState({x:0,y:0});return{position:t,setPosition:n}},exports.useFilterState=Ng,exports.useTheme=x,exports.zhCN={components:{ToggleButton:{defaultProps:{checkedText:"开",unCheckedText:"关"}},ConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FullSizeConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FileUploader:{defaultProps:{title:"把文件拖入, 同样支持点击上传。"}},ItemEmpty:{defaultProps:{title:"未找到。"}}}};
|
|
3735
3871
|
//# sourceMappingURL=index.js.map
|