xmirror-components 1.0.30-alpha.10 → 1.0.30-alpha.12
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/build/dist/index.cjs +36 -57
- package/build/dist/index.mjs +3291 -6648
- package/build/es/components/ConfigProvider/index.js +6 -14
- package/build/es/components/IntlProvider/FormattedMessage/index.d.ts +7 -0
- package/build/es/components/IntlProvider/FormattedMessage/index.js +8 -0
- package/build/es/components/IntlProvider/index.d.ts +12 -0
- package/build/es/components/IntlProvider/index.js +17 -0
- package/build/es/components/IntlProvider/types.d.ts +7 -0
- package/build/es/components/IntlProvider/types.js +1 -0
- package/build/es/components/IntlProvider/useIntl/index.d.ts +14 -0
- package/build/es/components/IntlProvider/useIntl/index.js +26 -0
- package/build/es/components/SearchArea/ToggleButton/index.js +2 -2
- package/build/es/components/SearchArea/index.js +1 -1
- package/build/es/components/Table/Footer/index.js +1 -1
- package/build/es/components/Table/PopoverSetColumns/index.js +1 -1
- package/build/lib/components/ConfigProvider/index.js +6 -14
- package/build/lib/components/IntlProvider/FormattedMessage/index.js +11 -0
- package/build/lib/components/IntlProvider/index.js +25 -0
- package/build/lib/components/IntlProvider/types.js +2 -0
- package/build/lib/components/IntlProvider/useIntl/index.js +31 -0
- package/build/lib/components/SearchArea/ToggleButton/index.js +2 -2
- package/build/lib/components/SearchArea/index.js +4 -4
- package/build/lib/components/Table/Footer/index.js +2 -2
- package/build/lib/components/Table/PopoverSetColumns/index.js +2 -2
- package/build/package.json +1 -1
- package/build/types/components/IntlProvider/FormattedMessage/index.d.ts +7 -0
- package/build/types/components/IntlProvider/index.d.ts +12 -0
- package/build/types/components/IntlProvider/types.d.ts +7 -0
- package/build/types/components/IntlProvider/useIntl/index.d.ts +14 -0
- package/package.json +1 -1
package/build/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),te=require("antd"),De=require("react-dom"),Ie=require("@ant-design/icons");function Aa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const re=Aa(_);var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ut={exports:{}},Fe={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Ir;function ja(){if(Ir)return Fe;Ir=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var u in o)u!=="key"&&(a[u]=o[u])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return Fe.Fragment=t,Fe.jsx=r,Fe.jsxs=r,Fe}var qe={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,49 +14,49 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var $r;function Da(){return $r||($r=1,process.env.NODE_ENV!=="production"&&function(){function e(b){if(b==null)return null;if(typeof b=="function")return b.$$typeof===j?null:b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case x:return"Fragment";case m:return"Profiler";case S:return"StrictMode";case s:return"Suspense";case y:return"SuspenseList";case C:return"Activity"}if(typeof b=="object")switch(typeof b.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),b.$$typeof){case w:return"Portal";case h:return(b.displayName||"Context")+".Provider";case f:return(b._context.displayName||"Context")+".Consumer";case v:var P=b.render;return b=b.displayName,b||(b=P.displayName||P.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case p:return P=b.displayName||null,P!==null?P:e(b.type)||"Memo";case R:P=b._payload,b=b._init;try{return e(b(P))}catch{}}return null}function t(b){return""+b}function r(b){try{t(b);var P=!1}catch{P=!0}if(P){P=console;var M=P.error,k=typeof Symbol=="function"&&Symbol.toStringTag&&b[Symbol.toStringTag]||b.constructor.name||"Object";return M.call(P,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",k),t(b)}}function n(b){if(b===x)return"<>";if(typeof b=="object"&&b!==null&&b.$$typeof===R)return"<...>";try{var P=e(b);return P?"<"+P+">":"<...>"}catch{return"<...>"}}function o(){var b=A.A;return b===null?null:b.getOwner()}function a(){return Error("react-stack-top-frame")}function i(b){if($.call(b,"key")){var P=Object.getOwnPropertyDescriptor(b,"key").get;if(P&&P.isReactWarning)return!1}return b.key!==void 0}function u(b,P){function M(){W||(W=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",P))}M.isReactWarning=!0,Object.defineProperty(b,"key",{get:M,configurable:!0})}function c(){var b=e(this.type);return I[b]||(I[b]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),b=this.props.ref,b!==void 0?b:null}function l(b,P,M,k,z,q,Y,H){return M=q.ref,b={$$typeof:E,type:b,key:P,props:q,_owner:z},(M!==void 0?M:null)!==null?Object.defineProperty(b,"ref",{enumerable:!1,get:c}):Object.defineProperty(b,"ref",{enumerable:!1,value:null}),b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(b,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(b,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Y}),Object.defineProperty(b,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:H}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b}function g(b,P,M,k,z,q,Y,H){var F=P.children;if(F!==void 0)if(k)if(N(F)){for(k=0;k<F.length;k++)d(F[k]);Object.freeze&&Object.freeze(F)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(F);if($.call(P,"key")){F=e(b);var B=Object.keys(P).filter(function(ue){return ue!=="key"});k=0<B.length?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}",oe[F+k]||(B=0<B.length?"{"+B.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,k,F,B,F),oe[F+k]=!0)}if(F=null,M!==void 0&&(r(M),F=""+M),i(P)&&(r(P.key),F=""+P.key),"key"in P){M={};for(var V in P)V!=="key"&&(M[V]=P[V])}else M=P;return F&&u(M,typeof b=="function"?b.displayName||b.name||"Unknown":b),l(b,F,q,z,o(),M,Y,H)}function d(b){typeof b=="object"&&b!==null&&b.$$typeof===E&&b._store&&(b._store.validated=1)}var T=_,E=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),j=Symbol.for("react.client.reference"),A=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=Object.prototype.hasOwnProperty,N=Array.isArray,L=console.createTask?console.createTask:function(){return null};T={"react-stack-bottom-frame":function(b){return b()}};var W,I={},X=T["react-stack-bottom-frame"].bind(T,a)(),ne=L(n(a)),oe={};qe.Fragment=x,qe.jsx=function(b,P,M,k,z){var q=1e4>A.recentlyCreatedOwnerStacks++;return g(b,P,M,!1,k,z,q?Error("react-stack-top-frame"):X,q?L(n(b)):ne)},qe.jsxs=function(b,P,M,k,z){var q=1e4>A.recentlyCreatedOwnerStacks++;return g(b,P,M,!0,k,z,q?Error("react-stack-top-frame"):X,q?L(n(b)):ne)}}()),qe}var zr;function Na(){return zr||(zr=1,process.env.NODE_ENV==="production"?ut.exports=ja():ut.exports=Da()),ut.exports}var D=Na();function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},et.apply(null,arguments)}function Bn(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function cr(e,t){return cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},cr(e,t)}function Vn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cr(e,t)}var ct={exports:{}},lt={exports:{}},J={};/** @license React v16.13.1
|
|
23
23
|
* react-is.production.min.js
|
|
24
24
|
*
|
|
25
25
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var
|
|
29
|
+
*/var Lr;function Ma(){if(Lr)return J;Lr=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function h(s){if(typeof s=="object"&&s!==null){var y=s.$$typeof;switch(y){case t:switch(s=s.type,s){case c:case l:case n:case a:case o:case d:return s;default:switch(s=s&&s.$$typeof,s){case u:case g:case w:case E:case i:return s;default:return y}}case r:return y}}}function v(s){return h(s)===l}return J.AsyncMode=c,J.ConcurrentMode=l,J.ContextConsumer=u,J.ContextProvider=i,J.Element=t,J.ForwardRef=g,J.Fragment=n,J.Lazy=w,J.Memo=E,J.Portal=r,J.Profiler=a,J.StrictMode=o,J.Suspense=d,J.isAsyncMode=function(s){return v(s)||h(s)===c},J.isConcurrentMode=v,J.isContextConsumer=function(s){return h(s)===u},J.isContextProvider=function(s){return h(s)===i},J.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===t},J.isForwardRef=function(s){return h(s)===g},J.isFragment=function(s){return h(s)===n},J.isLazy=function(s){return h(s)===w},J.isMemo=function(s){return h(s)===E},J.isPortal=function(s){return h(s)===r},J.isProfiler=function(s){return h(s)===a},J.isStrictMode=function(s){return h(s)===o},J.isSuspense=function(s){return h(s)===d},J.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===n||s===l||s===a||s===o||s===d||s===T||typeof s=="object"&&s!==null&&(s.$$typeof===w||s.$$typeof===E||s.$$typeof===i||s.$$typeof===u||s.$$typeof===g||s.$$typeof===S||s.$$typeof===m||s.$$typeof===f||s.$$typeof===x)},J.typeOf=h,J}var Z={};/** @license React v16.13.1
|
|
30
30
|
* react-is.development.js
|
|
31
31
|
*
|
|
32
32
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var
|
|
36
|
+
*/var Fr;function ka(){return Fr||(Fr=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function h(O){return typeof O=="string"||typeof O=="function"||O===n||O===l||O===a||O===o||O===d||O===T||typeof O=="object"&&O!==null&&(O.$$typeof===w||O.$$typeof===E||O.$$typeof===i||O.$$typeof===u||O.$$typeof===g||O.$$typeof===S||O.$$typeof===m||O.$$typeof===f||O.$$typeof===x)}function v(O){if(typeof O=="object"&&O!==null){var pe=O.$$typeof;switch(pe){case t:var Ee=O.type;switch(Ee){case c:case l:case n:case a:case o:case d:return Ee;default:var Le=Ee&&Ee.$$typeof;switch(Le){case u:case g:case w:case E:case i:return Le;default:return pe}}case r:return pe}}}var s=c,y=l,p=u,R=i,C=t,j=g,A=n,$=w,N=E,L=r,W=a,I=o,X=d,ne=!1;function oe(O){return ne||(ne=!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.")),b(O)||v(O)===c}function b(O){return v(O)===l}function P(O){return v(O)===u}function M(O){return v(O)===i}function k(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function z(O){return v(O)===g}function q(O){return v(O)===n}function Y(O){return v(O)===w}function H(O){return v(O)===E}function F(O){return v(O)===r}function B(O){return v(O)===a}function V(O){return v(O)===o}function ue(O){return v(O)===d}Z.AsyncMode=s,Z.ConcurrentMode=y,Z.ContextConsumer=p,Z.ContextProvider=R,Z.Element=C,Z.ForwardRef=j,Z.Fragment=A,Z.Lazy=$,Z.Memo=N,Z.Portal=L,Z.Profiler=W,Z.StrictMode=I,Z.Suspense=X,Z.isAsyncMode=oe,Z.isConcurrentMode=b,Z.isContextConsumer=P,Z.isContextProvider=M,Z.isElement=k,Z.isForwardRef=z,Z.isFragment=q,Z.isLazy=Y,Z.isMemo=H,Z.isPortal=F,Z.isProfiler=B,Z.isStrictMode=V,Z.isSuspense=ue,Z.isValidElementType=h,Z.typeOf=v}()),Z}var qr;function Xn(){return qr||(qr=1,process.env.NODE_ENV==="production"?lt.exports=Ma():lt.exports=ka()),lt.exports}/*
|
|
37
37
|
object-assign
|
|
38
38
|
(c) Sindre Sorhus
|
|
39
39
|
@license MIT
|
|
40
|
-
*/var
|
|
41
|
-
Valid keys: `+JSON.stringify(Object.keys(S),null," "));var P=he(q,Y,B,$,G+"."+Y,r);if(P)return P}return null}return x(_)}function k(S){switch(typeof S){case"number":case"string":case"undefined":return!0;case"boolean":return!S;case"object":if(Array.isArray(S))return S.every(k);if(S===null||s(S))return!0;var _=d(S);if(_){var M=_.call(S),j;if(_!==S.entries){for(;!(j=M.next()).done;)if(!k(j.value))return!1}else for(;!(j=M.next()).done;){var B=j.value;if(B&&!k(B[1]))return!1}}else return!1;return!0;default:return!1}}function z(S,_){return S==="symbol"?!0:_?_["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&_ instanceof Symbol:!1}function H(S){var _=typeof S;return Array.isArray(S)?"array":S instanceof RegExp?"object":z(_,S)?"symbol":_}function K(S){if(typeof S>"u"||S===null)return""+S;var _=H(S);if(_==="object"){if(S instanceof Date)return"date";if(S instanceof RegExp)return"regexp"}return _}function ue(S){var _=K(S);switch(_){case"array":case"object":return"an "+_;case"boolean":case"date":case"regexp":return"a "+_;default:return _}}function ce(S){return!S.constructor||!S.constructor.name?E:S.constructor.name}return T.checkPropTypes=a,T.resetWarningCache=a.resetWarningCache,T.PropTypes=T,T},or}var sr,Pn;function ro(){if(Pn)return sr;Pn=1;var e=Jr();function t(){}function r(){}return r.resetWarningCache=t,sr=function(){function n(o,s,u,l,f,d){if(d!==e){var E=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 E.name="Invariant Violation",E}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},sr}var _n;function bt(){if(_n)return Pt.exports;if(_n=1,process.env.NODE_ENV!=="production"){var e=ka(),t=!0;Pt.exports=to()(e.isElement,t)}else Pt.exports=ro()();return Pt.exports}var no=bt();const W=Gt(no);function ao(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function io(e,t){e.classList?e.classList.add(t):ao(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function On(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function oo(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=On(e.className,t):e.setAttribute("class",On(e.className&&e.className.baseVal||"",t))}const Cn={disabled:!1};var so=process.env.NODE_ENV!=="production"?W.oneOfType([W.number,W.shape({enter:W.number,exit:W.number,appear:W.number}).isRequired]):null,uo=process.env.NODE_ENV!=="production"?W.oneOfType([W.string,W.shape({enter:W.string,exit:W.string,active:W.string}),W.shape({enter:W.string,enterDone:W.string,enterActive:W.string,exit:W.string,exitDone:W.string,exitActive:W.string})]):null;const $a=O.createContext(null);var za=function(t){return t.scrollTop},dt="unmounted",Fe="exited",Be="entering",We="entered",Mr="exiting",Ae=function(e){Ba(t,e);function t(n,a){var i;i=e.call(this,n,a)||this;var o=a,s=o&&!o.isMounting?n.enter:n.appear,u;return i.appearStatus=null,n.in?s?(u=Fe,i.appearStatus=Be):u=We:n.unmountOnExit||n.mountOnEnter?u=dt:u=Fe,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===dt?{status:Fe}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Be&&o!==We&&(i=Be):(o===Be||o===We)&&(i=Mr)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},r.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Be){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:qe.findDOMNode(this);o&&za(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fe&&this.setState({status:dt})},r.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[qe.findDOMNode(this),s],l=u[0],f=u[1],d=this.getTimeouts(),E=s?d.appear:d.enter;if(!a&&!o||Cn.disabled){this.safeSetState({status:We},function(){i.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:Be},function(){i.props.onEntering(l,f),i.onTransitionEnd(E,function(){i.safeSetState({status:We},function(){i.props.onEntered(l,f)})})})},r.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:qe.findDOMNode(this);if(!i||Cn.disabled){this.safeSetState({status:Fe},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Mr},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Fe},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},r.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:qe.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=u[0],f=u[1];this.props.addEndListener(l,f)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===dt)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Fa(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return O.createElement($a.Provider,{value:null},typeof o=="function"?o(a,s):O.cloneElement(O.Children.only(o),s))},t}(O.Component);Ae.contextType=$a;Ae.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:W.shape({current:typeof Element>"u"?W.any:function(e,t,r,n,a,i){var o=e[t];return W.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,n,a,i)}}),children:W.oneOfType([W.func.isRequired,W.element.isRequired]).isRequired,in:W.bool,mountOnEnter:W.bool,unmountOnExit:W.bool,appear:W.bool,enter:W.bool,exit:W.bool,timeout:function(t){var r=so;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return r.apply(void 0,[t].concat(a))},addEndListener:W.func,onEnter:W.func,onEntering:W.func,onEntered:W.func,onExit:W.func,onExiting:W.func,onExited:W.func}:{};function Ge(){}Ae.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ge,onEntering:Ge,onEntered:Ge,onExit:Ge,onExiting:Ge,onExited:Ge};Ae.UNMOUNTED=dt;Ae.EXITED=Fe;Ae.ENTERING=Be;Ae.ENTERED=We;Ae.EXITING=Mr;var lo=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return io(t,n)})},ur=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return oo(t,n)})},Wt=function(e){Ba(t,e);function t(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=e.call.apply(e,[this].concat(i))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,u){var l=n.resolveArguments(s,u),f=l[0],d=l[1];n.removeClasses(f,"exit"),n.addClass(f,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,u)},n.onEntering=function(s,u){var l=n.resolveArguments(s,u),f=l[0],d=l[1],E=d?"appear":"enter";n.addClass(f,E,"active"),n.props.onEntering&&n.props.onEntering(s,u)},n.onEntered=function(s,u){var l=n.resolveArguments(s,u),f=l[0],d=l[1],E=d?"appear":"enter";n.removeClasses(f,E),n.addClass(f,E,"done"),n.props.onEntered&&n.props.onEntered(s,u)},n.onExit=function(s){var u=n.resolveArguments(s),l=u[0];n.removeClasses(l,"appear"),n.removeClasses(l,"enter"),n.addClass(l,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var u=n.resolveArguments(s),l=u[0];n.addClass(l,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var u=n.resolveArguments(s),l=u[0];n.removeClasses(l,"exit"),n.addClass(l,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,u){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,u]},n.getClassNames=function(s){var u=n.props.classNames,l=typeof u=="string",f=l&&u?u+"-":"",d=l?""+f+s:u[s],E=l?d+"-active":u[s+"Active"],T=l?d+"-done":u[s+"Done"];return{baseClassName:d,activeClassName:E,doneClassName:T}},n}var r=t.prototype;return r.addClass=function(a,i,o){var s=this.getClassNames(i)[o+"ClassName"],u=this.getClassNames("enter"),l=u.doneClassName;i==="appear"&&o==="done"&&l&&(s+=" "+l),o==="active"&&a&&za(a),s&&(this.appliedClasses[i][o]=s,lo(a,s))},r.removeClasses=function(a,i){var o=this.appliedClasses[i],s=o.base,u=o.active,l=o.done;this.appliedClasses[i]={},s&&ur(a,s),u&&ur(a,u),l&&ur(a,l)},r.render=function(){var a=this.props;a.classNames;var i=Fa(a,["classNames"]);return O.createElement(Ae,mt({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(O.Component);Wt.defaultProps={classNames:""};Wt.propTypes=process.env.NODE_ENV!=="production"?mt({},Ae.propTypes,{classNames:uo,onEnter:W.func,onEntering:W.func,onEntered:W.func,onExit:W.func,onExiting:W.func,onExited:W.func}):{};function co(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]}function fo(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ho=function(){function e(r){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(fo(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=co(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),ge="-ms-",Ut="-moz-",Q="-webkit-",Ga="comm",Kr="rule",Qr="decl",po="@import",Wa="@keyframes",mo="@layer",go=Math.abs,qt=String.fromCharCode,vo=Object.assign;function yo(e,t){return pe(e,0)^45?(((t<<2^pe(e,0))<<2^pe(e,1))<<2^pe(e,2))<<2^pe(e,3):0}function qa(e){return e.trim()}function bo(e,t){return(e=t.exec(e))?e[0]:e}function ee(e,t,r){return e.replace(t,r)}function Lr(e,t){return e.indexOf(t)}function pe(e,t){return e.charCodeAt(t)|0}function gt(e,t,r){return e.slice(t,r)}function Pe(e){return e.length}function en(e){return e.length}function Ot(e,t){return t.push(e),e}function xo(e,t){return e.map(t).join("")}var Vt=1,Ye=1,Va=0,be=0,fe=0,Je="";function Yt(e,t,r,n,a,i,o){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:Vt,column:Ye,length:o,return:""}}function nt(e,t){return vo(Yt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Eo(){return fe}function So(){return fe=be>0?pe(Je,--be):0,Ye--,fe===10&&(Ye=1,Vt--),fe}function xe(){return fe=be<Va?pe(Je,be++):0,Ye++,fe===10&&(Ye=1,Vt++),fe}function Oe(){return pe(Je,be)}function Lt(){return be}function xt(e,t){return gt(Je,e,t)}function vt(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 Ya(e){return Vt=Ye=1,Va=Pe(Je=e),be=0,[]}function Xa(e){return Je="",e}function jt(e){return qa(xt(be-1,jr(e===91?e+2:e===40?e+1:e)))}function To(e){for(;(fe=Oe())&&fe<33;)xe();return vt(e)>2||vt(fe)>3?"":" "}function wo(e,t){for(;--t&&xe()&&!(fe<48||fe>102||fe>57&&fe<65||fe>70&&fe<97););return xt(e,Lt()+(t<6&&Oe()==32&&xe()==32))}function jr(e){for(;xe();)switch(fe){case e:return be;case 34:case 39:e!==34&&e!==39&&jr(fe);break;case 40:e===41&&jr(e);break;case 92:xe();break}return be}function Ro(e,t){for(;xe()&&e+fe!==57;)if(e+fe===84&&Oe()===47)break;return"/*"+xt(t,be-1)+"*"+qt(e===47?e:xe())}function Po(e){for(;!vt(Oe());)xe();return xt(e,be)}function _o(e){return Xa(Ht("",null,null,null,[""],e=Ya(e),0,[0],e))}function Ht(e,t,r,n,a,i,o,s,u){for(var l=0,f=0,d=o,E=0,T=0,w=0,b=1,x=1,p=1,h=0,m="",v=a,c=i,y=n,g=m;x;)switch(w=h,h=xe()){case 40:if(w!=108&&pe(g,d-1)==58){Lr(g+=ee(jt(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:g+=jt(h);break;case 9:case 10:case 13:case 32:g+=To(w);break;case 92:g+=wo(Lt()-1,7);continue;case 47:switch(Oe()){case 42:case 47:Ot(Oo(Ro(xe(),Lt()),t,r),u);break;default:g+="/"}break;case 123*b:s[l++]=Pe(g)*p;case 125*b:case 59:case 0:switch(h){case 0:case 125:x=0;case 59+f:p==-1&&(g=ee(g,/\f/g,"")),T>0&&Pe(g)-d&&Ot(T>32?Nn(g+";",n,r,d-1):Nn(ee(g," ","")+";",n,r,d-2),u);break;case 59:g+=";";default:if(Ot(y=An(g,t,r,l,f,a,s,m,v=[],c=[],d),i),h===123)if(f===0)Ht(g,t,y,y,v,i,d,s,c);else switch(E===99&&pe(g,3)===110?100:E){case 100:case 108:case 109:case 115:Ht(e,y,y,n&&Ot(An(e,y,y,0,0,a,s,m,a,v=[],d),c),a,c,d,s,n?v:c);break;default:Ht(g,y,y,y,[""],c,0,s,c)}}l=f=T=0,b=p=1,m=g="",d=o;break;case 58:d=1+Pe(g),T=w;default:if(b<1){if(h==123)--b;else if(h==125&&b++==0&&So()==125)continue}switch(g+=qt(h),h*b){case 38:p=f>0?1:(g+="\f",-1);break;case 44:s[l++]=(Pe(g)-1)*p,p=1;break;case 64:Oe()===45&&(g+=jt(xe())),E=Oe(),f=d=Pe(m=g+=Po(Lt())),h++;break;case 45:w===45&&Pe(g)==2&&(b=0)}}return i}function An(e,t,r,n,a,i,o,s,u,l,f){for(var d=a-1,E=a===0?i:[""],T=en(E),w=0,b=0,x=0;w<n;++w)for(var p=0,h=gt(e,d+1,d=go(b=o[w])),m=e;p<T;++p)(m=qa(b>0?E[p]+" "+h:ee(h,/&\f/g,E[p])))&&(u[x++]=m);return Yt(e,t,r,a===0?Kr:s,u,l,f)}function Oo(e,t,r){return Yt(e,t,r,Ga,qt(Eo()),gt(e,2,-2),0)}function Nn(e,t,r,n){return Yt(e,t,r,Qr,gt(e,0,n),gt(e,n+1,-1),n)}function Ve(e,t){for(var r="",n=en(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Co(e,t,r,n){switch(e.type){case mo:if(e.children.length)break;case po:case Qr:return e.return=e.return||e.value;case Ga:return"";case Wa:return e.return=e.value+"{"+Ve(e.children,n)+"}";case Kr:e.value=e.props.join(",")}return Pe(r=Ve(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ao(e){var t=en(e);return function(r,n,a,i){for(var o="",s=0;s<t;s++)o+=e[s](r,n,a,i)||"";return o}}function No(e){return function(t){t.root||(t=t.return)&&e(t)}}function Za(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Io=function(t,r,n){for(var a=0,i=0;a=i,i=Oe(),a===38&&i===12&&(r[n]=1),!vt(i);)xe();return xt(t,be)},Do=function(t,r){var n=-1,a=44;do switch(vt(a)){case 0:a===38&&Oe()===12&&(r[n]=1),t[n]+=Io(be-1,r,n);break;case 2:t[n]+=jt(a);break;case 4:if(a===44){t[++n]=Oe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=qt(a)}while(a=xe());return t},Mo=function(t,r){return Xa(Do(Ya(t),r))},In=new WeakMap,Lo=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!In.get(n))&&!a){In.set(t,!0);for(var i=[],o=Mo(r,i),s=n.props,u=0,l=0;u<o.length;u++)for(var f=0;f<s.length;f++,l++)t.props[l]=i[u]?o[u].replace(/&\f/g,s[f]):s[f]+" "+o[u]}}},jo=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ja(e,t){switch(yo(e,t)){case 5103:return Q+"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 Q+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Q+e+Ut+e+ge+e+e;case 6828:case 4268:return Q+e+ge+e+e;case 6165:return Q+e+ge+"flex-"+e+e;case 5187:return Q+e+ee(e,/(\w+).+(:[^]+)/,Q+"box-$1$2"+ge+"flex-$1$2")+e;case 5443:return Q+e+ge+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return Q+e+ge+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return Q+e+ge+ee(e,"shrink","negative")+e;case 5292:return Q+e+ge+ee(e,"basis","preferred-size")+e;case 6060:return Q+"box-"+ee(e,"-grow","")+Q+e+ge+ee(e,"grow","positive")+e;case 4554:return Q+ee(e,/([^-])(transform)/g,"$1"+Q+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,Q+"$1"),/(image-set)/,Q+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,Q+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,Q+"box-pack:$3"+ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Q+e+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,Q+"$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(Pe(e)-1-t>6)switch(pe(e,t+1)){case 109:if(pe(e,t+4)!==45)break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+Ut+(pe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Lr(e,"stretch")?Ja(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(pe(e,t+1)!==115)break;case 6444:switch(pe(e,Pe(e)-3-(~Lr(e,"!important")&&10))){case 107:return ee(e,":",":"+Q)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(pe(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+ge+"$2box$3")+e}break;case 5936:switch(pe(e,t+11)){case 114:return Q+e+ge+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+ge+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+ge+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+ge+e+e}return e}var Ho=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case Qr:t.return=Ja(t.value,t.length);break;case Wa:return Ve([nt(t,{value:ee(t.value,"@","@"+Q)})],a);case Kr:if(t.length)return xo(t.props,function(i){switch(bo(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ve([nt(t,{props:[ee(i,/:(read-\w+)/,":"+Ut+"$1")]})],a);case"::placeholder":return Ve([nt(t,{props:[ee(i,/:(plac\w+)/,":"+Q+"input-$1")]}),nt(t,{props:[ee(i,/:(plac\w+)/,":"+Ut+"$1")]}),nt(t,{props:[ee(i,/:(plac\w+)/,ge+"input-$1")]})],a)}return""})}},Fo=[Ho],Bo=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(b){var x=b.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var a=t.stylisPlugins||Fo,i={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(b){for(var x=b.getAttribute("data-emotion").split(" "),p=1;p<x.length;p++)i[x[p]]=!0;s.push(b)});var u,l=[Lo,jo];{var f,d=[Co,No(function(b){f.insert(b)})],E=Ao(l.concat(a,d)),T=function(x){return Ve(_o(x),E)};u=function(x,p,h,m){f=h,T(x?x+"{"+p.styles+"}":p.styles),m&&(w.inserted[p.name]=!0)}}var w={key:r,sheet:new ho({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return w.sheet.hydrate(s),w},Ct={exports:{}},ne={};/** @license React v16.13.1
|
|
40
|
+
*/var It,Wr;function Ia(){if(Wr)return It;Wr=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},u=0;u<10;u++)i["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(i).map(function(g){return i[g]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(g){l[g]=g}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return It=o()?Object.assign:function(a,i){for(var u,c=n(a),l,g=1;g<arguments.length;g++){u=Object(arguments[g]);for(var d in u)t.call(u,d)&&(c[d]=u[d]);if(e){l=e(u);for(var T=0;T<l.length;T++)r.call(u,l[T])&&(c[l[T]]=u[l[T]])}}return c},It}var $t,Yr;function yr(){if(Yr)return $t;Yr=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $t=e,$t}var zt,Ur;function Gn(){return Ur||(Ur=1,zt=Function.call.bind(Object.prototype.hasOwnProperty)),zt}var Lt,Hr;function $a(){if(Hr)return Lt;Hr=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=yr(),r={},n=Gn();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,u,c,l){if(process.env.NODE_ENV!=="production"){for(var g in a)if(n(a,g)){var d;try{if(typeof a[g]!="function"){var T=Error((c||"React class")+": "+u+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}d=a[g](i,g,c,u,null,t)}catch(w){d=w}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var E=l?l():"";e("Failed "+u+" type: "+d.message+(E??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Lt=o,Lt}var Ft,Br;function za(){if(Br)return Ft;Br=1;var e=Xn(),t=Ia(),r=yr(),n=Gn(),o=$a(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return Ft=function(u,c){var l=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function d(b){var P=b&&(l&&b[l]||b[g]);if(typeof P=="function")return P}var T="<<anonymous>>",E={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(),arrayOf:h,element:v(),elementType:s(),instanceOf:y,node:j(),objectOf:R,oneOf:p,oneOfType:C,shape:$,exact:N};function w(b,P){return b===P?b!==0||1/b===1/P:b!==b&&P!==P}function x(b,P){this.message=b,this.data=P&&typeof P=="object"?P:{},this.stack=""}x.prototype=Error.prototype;function S(b){if(process.env.NODE_ENV!=="production")var P={},M=0;function k(q,Y,H,F,B,V,ue){if(F=F||T,V=V||H,ue!==r){if(c){var O=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 O.name="Invariant Violation",O}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var pe=F+":"+H;!P[pe]&&M<3&&(a("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+F+"`. 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."),P[pe]=!0,M++)}}return Y[H]==null?q?Y[H]===null?new x("The "+B+" `"+V+"` is marked as required "+("in `"+F+"`, but its value is `null`.")):new x("The "+B+" `"+V+"` is marked as required in "+("`"+F+"`, but its value is `undefined`.")):null:b(Y,H,F,B,V)}var z=k.bind(null,!1);return z.isRequired=k.bind(null,!0),z}function m(b){function P(M,k,z,q,Y,H){var F=M[k],B=I(F);if(B!==b){var V=X(F);return new x("Invalid "+q+" `"+Y+"` of type "+("`"+V+"` supplied to `"+z+"`, expected ")+("`"+b+"`."),{expectedType:b})}return null}return S(P)}function f(){return S(i)}function h(b){function P(M,k,z,q,Y){if(typeof b!="function")return new x("Property `"+Y+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var H=M[k];if(!Array.isArray(H)){var F=I(H);return new x("Invalid "+q+" `"+Y+"` of type "+("`"+F+"` supplied to `"+z+"`, expected an array."))}for(var B=0;B<H.length;B++){var V=b(H,B,z,q,Y+"["+B+"]",r);if(V instanceof Error)return V}return null}return S(P)}function v(){function b(P,M,k,z,q){var Y=P[M];if(!u(Y)){var H=I(Y);return new x("Invalid "+z+" `"+q+"` of type "+("`"+H+"` supplied to `"+k+"`, expected a single ReactElement."))}return null}return S(b)}function s(){function b(P,M,k,z,q){var Y=P[M];if(!e.isValidElementType(Y)){var H=I(Y);return new x("Invalid "+z+" `"+q+"` of type "+("`"+H+"` supplied to `"+k+"`, expected a single ReactElement type."))}return null}return S(b)}function y(b){function P(M,k,z,q,Y){if(!(M[k]instanceof b)){var H=b.name||T,F=oe(M[k]);return new x("Invalid "+q+" `"+Y+"` of type "+("`"+F+"` supplied to `"+z+"`, expected ")+("instance of `"+H+"`."))}return null}return S(P)}function p(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function P(M,k,z,q,Y){for(var H=M[k],F=0;F<b.length;F++)if(w(H,b[F]))return null;var B=JSON.stringify(b,function(ue,O){var pe=X(O);return pe==="symbol"?String(O):O});return new x("Invalid "+q+" `"+Y+"` of value `"+String(H)+"` "+("supplied to `"+z+"`, expected one of "+B+"."))}return S(P)}function R(b){function P(M,k,z,q,Y){if(typeof b!="function")return new x("Property `"+Y+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var H=M[k],F=I(H);if(F!=="object")return new x("Invalid "+q+" `"+Y+"` of type "+("`"+F+"` supplied to `"+z+"`, expected an object."));for(var B in H)if(n(H,B)){var V=b(H,B,z,q,Y+"."+B,r);if(V instanceof Error)return V}return null}return S(P)}function C(b){if(!Array.isArray(b))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var P=0;P<b.length;P++){var M=b[P];if(typeof M!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ne(M)+" at index "+P+"."),i}function k(z,q,Y,H,F){for(var B=[],V=0;V<b.length;V++){var ue=b[V],O=ue(z,q,Y,H,F,r);if(O==null)return null;O.data&&n(O.data,"expectedType")&&B.push(O.data.expectedType)}var pe=B.length>0?", expected one of type ["+B.join(", ")+"]":"";return new x("Invalid "+H+" `"+F+"` supplied to "+("`"+Y+"`"+pe+"."))}return S(k)}function j(){function b(P,M,k,z,q){return L(P[M])?null:new x("Invalid "+z+" `"+q+"` supplied to "+("`"+k+"`, expected a ReactNode."))}return S(b)}function A(b,P,M,k,z){return new x((b||"React class")+": "+P+" type `"+M+"."+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function $(b){function P(M,k,z,q,Y){var H=M[k],F=I(H);if(F!=="object")return new x("Invalid "+q+" `"+Y+"` of type `"+F+"` "+("supplied to `"+z+"`, expected `object`."));for(var B in b){var V=b[B];if(typeof V!="function")return A(z,q,Y,B,X(V));var ue=V(H,B,z,q,Y+"."+B,r);if(ue)return ue}return null}return S(P)}function N(b){function P(M,k,z,q,Y){var H=M[k],F=I(H);if(F!=="object")return new x("Invalid "+q+" `"+Y+"` of type `"+F+"` "+("supplied to `"+z+"`, expected `object`."));var B=t({},M[k],b);for(var V in B){var ue=b[V];if(n(b,V)&&typeof ue!="function")return A(z,q,Y,V,X(ue));if(!ue)return new x("Invalid "+q+" `"+Y+"` key `"+V+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(M[k],null," ")+`
|
|
41
|
+
Valid keys: `+JSON.stringify(Object.keys(b),null," "));var O=ue(H,V,z,q,Y+"."+V,r);if(O)return O}return null}return S(P)}function L(b){switch(typeof b){case"number":case"string":case"undefined":return!0;case"boolean":return!b;case"object":if(Array.isArray(b))return b.every(L);if(b===null||u(b))return!0;var P=d(b);if(P){var M=P.call(b),k;if(P!==b.entries){for(;!(k=M.next()).done;)if(!L(k.value))return!1}else for(;!(k=M.next()).done;){var z=k.value;if(z&&!L(z[1]))return!1}}else return!1;return!0;default:return!1}}function W(b,P){return b==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function I(b){var P=typeof b;return Array.isArray(b)?"array":b instanceof RegExp?"object":W(P,b)?"symbol":P}function X(b){if(typeof b>"u"||b===null)return""+b;var P=I(b);if(P==="object"){if(b instanceof Date)return"date";if(b instanceof RegExp)return"regexp"}return P}function ne(b){var P=X(b);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function oe(b){return!b.constructor||!b.constructor.name?T:b.constructor.name}return E.checkPropTypes=o,E.resetWarningCache=o.resetWarningCache,E.PropTypes=E,E},Ft}var qt,Vr;function La(){if(Vr)return qt;Vr=1;var e=yr();function t(){}function r(){}return r.resetWarningCache=t,qt=function(){function n(i,u,c,l,g,d){if(d!==e){var T=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 T.name="Invariant Violation",T}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},qt}var Xr;function at(){if(Xr)return ct.exports;if(Xr=1,process.env.NODE_ENV!=="production"){var e=Xn(),t=!0;ct.exports=za()(e.isElement,t)}else ct.exports=La()();return ct.exports}var Fa=at();const U=Tt(Fa);function qa(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Wa(e,t){e.classList?e.classList.add(t):qa(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Gr(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ya(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Gr(e.className,t):e.setAttribute("class",Gr(e.className&&e.className.baseVal||"",t))}const Kr={disabled:!1};var Ua=process.env.NODE_ENV!=="production"?U.oneOfType([U.number,U.shape({enter:U.number,exit:U.number,appear:U.number}).isRequired]):null,Ha=process.env.NODE_ENV!=="production"?U.oneOfType([U.string,U.shape({enter:U.string,exit:U.string,active:U.string}),U.shape({enter:U.string,enterDone:U.string,enterActive:U.string,exit:U.string,exitDone:U.string,exitActive:U.string})]):null;const Kn=_.createContext(null);var Jn=function(t){return t.scrollTop},Je="unmounted",Oe="exited",Pe="entering",je="entered",lr="exiting",Se=function(e){Vn(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var i=o,u=i&&!i.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?u?(c=Oe,a.appearStatus=Pe):c=je:n.unmountOnExit||n.mountOnEnter?c=Je:c=Oe,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Je?{status:Oe}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Pe&&i!==je&&(a=Pe):(i===Pe||i===je)&&(a=lr)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,i,u;return a=i=u=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,u=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:u}},r.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Pe){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:De.findDOMNode(this);i&&Jn(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Oe&&this.setState({status:Je})},r.performEnter=function(o){var a=this,i=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[De.findDOMNode(this),u],l=c[0],g=c[1],d=this.getTimeouts(),T=u?d.appear:d.enter;if(!o&&!i||Kr.disabled){this.safeSetState({status:je},function(){a.props.onEntered(l)});return}this.props.onEnter(l,g),this.safeSetState({status:Pe},function(){a.props.onEntering(l,g),a.onTransitionEnd(T,function(){a.safeSetState({status:je},function(){a.props.onEntered(l,g)})})})},r.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),u=this.props.nodeRef?void 0:De.findDOMNode(this);if(!a||Kr.disabled){this.safeSetState({status:Oe},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:lr},function(){o.props.onExiting(u),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Oe},function(){o.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(u){i&&(i=!1,a.nextCallback=null,o(u))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:De.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!i||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],l=c[0],g=c[1];this.props.addEndListener(l,g)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Je)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var u=Bn(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(Kn.Provider,{value:null},typeof i=="function"?i(o,u):_.cloneElement(_.Children.only(i),u))},t}(_.Component);Se.contextType=Kn;Se.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:U.shape({current:typeof Element>"u"?U.any:function(e,t,r,n,o,a){var i=e[t];return U.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,a)}}),children:U.oneOfType([U.func.isRequired,U.element.isRequired]).isRequired,in:U.bool,mountOnEnter:U.bool,unmountOnExit:U.bool,appear:U.bool,enter:U.bool,exit:U.bool,timeout:function(t){var r=Ua;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return r.apply(void 0,[t].concat(o))},addEndListener:U.func,onEnter:U.func,onEntering:U.func,onEntered:U.func,onExit:U.func,onExiting:U.func,onExited:U.func}:{};function Ae(){}Se.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ae,onEntering:Ae,onEntered:Ae,onExit:Ae,onExiting:Ae,onExited:Ae};Se.UNMOUNTED=Je;Se.EXITED=Oe;Se.ENTERING=Pe;Se.ENTERED=je;Se.EXITING=lr;var Ba=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return Wa(t,n)})},Wt=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return Ya(t,n)})},Rt=function(e){Vn(t,e);function t(){for(var n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(u,c){var l=n.resolveArguments(u,c),g=l[0],d=l[1];n.removeClasses(g,"exit"),n.addClass(g,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(u,c)},n.onEntering=function(u,c){var l=n.resolveArguments(u,c),g=l[0],d=l[1],T=d?"appear":"enter";n.addClass(g,T,"active"),n.props.onEntering&&n.props.onEntering(u,c)},n.onEntered=function(u,c){var l=n.resolveArguments(u,c),g=l[0],d=l[1],T=d?"appear":"enter";n.removeClasses(g,T),n.addClass(g,T,"done"),n.props.onEntered&&n.props.onEntered(u,c)},n.onExit=function(u){var c=n.resolveArguments(u),l=c[0];n.removeClasses(l,"appear"),n.removeClasses(l,"enter"),n.addClass(l,"exit","base"),n.props.onExit&&n.props.onExit(u)},n.onExiting=function(u){var c=n.resolveArguments(u),l=c[0];n.addClass(l,"exit","active"),n.props.onExiting&&n.props.onExiting(u)},n.onExited=function(u){var c=n.resolveArguments(u),l=c[0];n.removeClasses(l,"exit"),n.addClass(l,"exit","done"),n.props.onExited&&n.props.onExited(u)},n.resolveArguments=function(u,c){return n.props.nodeRef?[n.props.nodeRef.current,u]:[u,c]},n.getClassNames=function(u){var c=n.props.classNames,l=typeof c=="string",g=l&&c?c+"-":"",d=l?""+g+u:c[u],T=l?d+"-active":c[u+"Active"],E=l?d+"-done":c[u+"Done"];return{baseClassName:d,activeClassName:T,doneClassName:E}},n}var r=t.prototype;return r.addClass=function(o,a,i){var u=this.getClassNames(a)[i+"ClassName"],c=this.getClassNames("enter"),l=c.doneClassName;a==="appear"&&i==="done"&&l&&(u+=" "+l),i==="active"&&o&&Jn(o),u&&(this.appliedClasses[a][i]=u,Ba(o,u))},r.removeClasses=function(o,a){var i=this.appliedClasses[a],u=i.base,c=i.active,l=i.done;this.appliedClasses[a]={},u&&Wt(o,u),c&&Wt(o,c),l&&Wt(o,l)},r.render=function(){var o=this.props;o.classNames;var a=Bn(o,["classNames"]);return _.createElement(Se,et({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(_.Component);Rt.defaultProps={classNames:""};Rt.propTypes=process.env.NODE_ENV!=="production"?et({},Se.propTypes,{classNames:Ha,onEnter:U.func,onEntering:U.func,onEntered:U.func,onExit:U.func,onExiting:U.func,onExited:U.func}):{};function Va(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]}function Xa(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ga=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Xa(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Va(o);try{a.insertRule(n,a.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),fe="-ms-",St="-moz-",G="-webkit-",Zn="comm",br="rule",xr="decl",Ka="@import",Qn="@keyframes",Ja="@layer",Za=Math.abs,Ot=String.fromCharCode,Qa=Object.assign;function eo(e,t){return ce(e,0)^45?(((t<<2^ce(e,0))<<2^ce(e,1))<<2^ce(e,2))<<2^ce(e,3):0}function ea(e){return e.trim()}function to(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function fr(e,t){return e.indexOf(t)}function ce(e,t){return e.charCodeAt(t)|0}function tt(e,t,r){return e.slice(t,r)}function ye(e){return e.length}function Sr(e){return e.length}function ft(e,t){return t.push(e),e}function ro(e,t){return e.map(t).join("")}var Pt=1,ke=1,ta=0,me=0,ie=0,$e="";function _t(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Pt,column:ke,length:i,return:""}}function We(e,t){return Qa(_t("",null,null,"",null,null,0),e,{length:-e.length},t)}function no(){return ie}function ao(){return ie=me>0?ce($e,--me):0,ke--,ie===10&&(ke=1,Pt--),ie}function ge(){return ie=me<ta?ce($e,me++):0,ke++,ie===10&&(ke=1,Pt++),ie}function xe(){return ce($e,me)}function gt(){return me}function ot(e,t){return tt($e,e,t)}function rt(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 ra(e){return Pt=ke=1,ta=ye($e=e),me=0,[]}function na(e){return $e="",e}function vt(e){return ea(ot(me-1,dr(e===91?e+2:e===40?e+1:e)))}function oo(e){for(;(ie=xe())&&ie<33;)ge();return rt(e)>2||rt(ie)>3?"":" "}function io(e,t){for(;--t&&ge()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return ot(e,gt()+(t<6&&xe()==32&&ge()==32))}function dr(e){for(;ge();)switch(ie){case e:return me;case 34:case 39:e!==34&&e!==39&&dr(ie);break;case 40:e===41&&dr(e);break;case 92:ge();break}return me}function so(e,t){for(;ge()&&e+ie!==57;)if(e+ie===84&&xe()===47)break;return"/*"+ot(t,me-1)+"*"+Ot(e===47?e:ge())}function uo(e){for(;!rt(xe());)ge();return ot(e,me)}function co(e){return na(yt("",null,null,null,[""],e=ra(e),0,[0],e))}function yt(e,t,r,n,o,a,i,u,c){for(var l=0,g=0,d=i,T=0,E=0,w=0,x=1,S=1,m=1,f=0,h="",v=o,s=a,y=n,p=h;S;)switch(w=f,f=ge()){case 40:if(w!=108&&ce(p,d-1)==58){fr(p+=K(vt(f),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:p+=vt(f);break;case 9:case 10:case 13:case 32:p+=oo(w);break;case 92:p+=io(gt()-1,7);continue;case 47:switch(xe()){case 42:case 47:ft(lo(so(ge(),gt()),t,r),c);break;default:p+="/"}break;case 123*x:u[l++]=ye(p)*m;case 125*x:case 59:case 0:switch(f){case 0:case 125:S=0;case 59+g:m==-1&&(p=K(p,/\f/g,"")),E>0&&ye(p)-d&&ft(E>32?Zr(p+";",n,r,d-1):Zr(K(p," ","")+";",n,r,d-2),c);break;case 59:p+=";";default:if(ft(y=Jr(p,t,r,l,g,o,u,h,v=[],s=[],d),a),f===123)if(g===0)yt(p,t,y,y,v,a,d,u,s);else switch(T===99&&ce(p,3)===110?100:T){case 100:case 108:case 109:case 115:yt(e,y,y,n&&ft(Jr(e,y,y,0,0,o,u,h,o,v=[],d),s),o,s,d,u,n?v:s);break;default:yt(p,y,y,y,[""],s,0,u,s)}}l=g=E=0,x=m=1,h=p="",d=i;break;case 58:d=1+ye(p),E=w;default:if(x<1){if(f==123)--x;else if(f==125&&x++==0&&ao()==125)continue}switch(p+=Ot(f),f*x){case 38:m=g>0?1:(p+="\f",-1);break;case 44:u[l++]=(ye(p)-1)*m,m=1;break;case 64:xe()===45&&(p+=vt(ge())),T=xe(),g=d=ye(h=p+=uo(gt())),f++;break;case 45:w===45&&ye(p)==2&&(x=0)}}return a}function Jr(e,t,r,n,o,a,i,u,c,l,g){for(var d=o-1,T=o===0?a:[""],E=Sr(T),w=0,x=0,S=0;w<n;++w)for(var m=0,f=tt(e,d+1,d=Za(x=i[w])),h=e;m<E;++m)(h=ea(x>0?T[m]+" "+f:K(f,/&\f/g,T[m])))&&(c[S++]=h);return _t(e,t,r,o===0?br:u,c,l,g)}function lo(e,t,r){return _t(e,t,r,Zn,Ot(no()),tt(e,2,-2),0)}function Zr(e,t,r,n){return _t(e,t,r,xr,tt(e,0,n),tt(e,n+1,-1),n)}function Ne(e,t){for(var r="",n=Sr(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function fo(e,t,r,n){switch(e.type){case Ja:if(e.children.length)break;case Ka:case xr:return e.return=e.return||e.value;case Zn:return"";case Qn:return e.return=e.value+"{"+Ne(e.children,n)+"}";case br:e.value=e.props.join(",")}return ye(r=Ne(e.children,n))?e.return=e.value+"{"+r+"}":""}function po(e){var t=Sr(e);return function(r,n,o,a){for(var i="",u=0;u<t;u++)i+=e[u](r,n,o,a)||"";return i}}function mo(e){return function(t){t.root||(t=t.return)&&e(t)}}function aa(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ho=function(t,r,n){for(var o=0,a=0;o=a,a=xe(),o===38&&a===12&&(r[n]=1),!rt(a);)ge();return ot(t,me)},go=function(t,r){var n=-1,o=44;do switch(rt(o)){case 0:o===38&&xe()===12&&(r[n]=1),t[n]+=ho(me-1,r,n);break;case 2:t[n]+=vt(o);break;case 4:if(o===44){t[++n]=xe()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Ot(o)}while(o=ge());return t},vo=function(t,r){return na(go(ra(t),r))},Qr=new WeakMap,yo=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Qr.get(n))&&!o){Qr.set(t,!0);for(var a=[],i=vo(r,a),u=n.props,c=0,l=0;c<i.length;c++)for(var g=0;g<u.length;g++,l++)t.props[l]=a[c]?i[c].replace(/&\f/g,u[g]):u[g]+" "+i[c]}}},bo=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function oa(e,t){switch(eo(e,t)){case 5103:return G+"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 G+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return G+e+St+e+fe+e+e;case 6828:case 4268:return G+e+fe+e+e;case 6165:return G+e+fe+"flex-"+e+e;case 5187:return G+e+K(e,/(\w+).+(:[^]+)/,G+"box-$1$2"+fe+"flex-$1$2")+e;case 5443:return G+e+fe+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return G+e+fe+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return G+e+fe+K(e,"shrink","negative")+e;case 5292:return G+e+fe+K(e,"basis","preferred-size")+e;case 6060:return G+"box-"+K(e,"-grow","")+G+e+fe+K(e,"grow","positive")+e;case 4554:return G+K(e,/([^-])(transform)/g,"$1"+G+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+G+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,G+"$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(ye(e)-1-t>6)switch(ce(e,t+1)){case 109:if(ce(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+St+(ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fr(e,"stretch")?oa(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ce(e,t+1)!==115)break;case 6444:switch(ce(e,ye(e)-3-(~fr(e,"!important")&&10))){case 107:return K(e,":",":"+G)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(ce(e,14)===45?"inline-":"")+"box$3$1"+G+"$2$3$1"+fe+"$2box$3")+e}break;case 5936:switch(ce(e,t+11)){case 114:return G+e+fe+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return G+e+fe+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return G+e+fe+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return G+e+fe+e+e}return e}var xo=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case xr:t.return=oa(t.value,t.length);break;case Qn:return Ne([We(t,{value:K(t.value,"@","@"+G)})],o);case br:if(t.length)return ro(t.props,function(a){switch(to(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ne([We(t,{props:[K(a,/:(read-\w+)/,":"+St+"$1")]})],o);case"::placeholder":return Ne([We(t,{props:[K(a,/:(plac\w+)/,":"+G+"input-$1")]}),We(t,{props:[K(a,/:(plac\w+)/,":"+St+"$1")]}),We(t,{props:[K(a,/:(plac\w+)/,fe+"input-$1")]})],o)}return""})}},So=[xo],Eo=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var S=x.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var o=t.stylisPlugins||So,a={},i,u=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var S=x.getAttribute("data-emotion").split(" "),m=1;m<S.length;m++)a[S[m]]=!0;u.push(x)});var c,l=[yo,bo];{var g,d=[fo,mo(function(x){g.insert(x)})],T=po(l.concat(o,d)),E=function(S){return Ne(co(S),T)};c=function(S,m,f,h){g=f,E(S?S+"{"+m.styles+"}":m.styles),h&&(w.inserted[m.name]=!0)}}var w={key:r,sheet:new Ga({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return w.sheet.hydrate(u),w},dt={exports:{}},Q={};/** @license React v16.13.1
|
|
42
42
|
* react-is.production.min.js
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var
|
|
48
|
+
*/var en;function wo(){if(en)return Q;en=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function h(s){if(typeof s=="object"&&s!==null){var y=s.$$typeof;switch(y){case t:switch(s=s.type,s){case c:case l:case n:case a:case o:case d:return s;default:switch(s=s&&s.$$typeof,s){case u:case g:case w:case E:case i:return s;default:return y}}case r:return y}}}function v(s){return h(s)===l}return Q.AsyncMode=c,Q.ConcurrentMode=l,Q.ContextConsumer=u,Q.ContextProvider=i,Q.Element=t,Q.ForwardRef=g,Q.Fragment=n,Q.Lazy=w,Q.Memo=E,Q.Portal=r,Q.Profiler=a,Q.StrictMode=o,Q.Suspense=d,Q.isAsyncMode=function(s){return v(s)||h(s)===c},Q.isConcurrentMode=v,Q.isContextConsumer=function(s){return h(s)===u},Q.isContextProvider=function(s){return h(s)===i},Q.isElement=function(s){return typeof s=="object"&&s!==null&&s.$$typeof===t},Q.isForwardRef=function(s){return h(s)===g},Q.isFragment=function(s){return h(s)===n},Q.isLazy=function(s){return h(s)===w},Q.isMemo=function(s){return h(s)===E},Q.isPortal=function(s){return h(s)===r},Q.isProfiler=function(s){return h(s)===a},Q.isStrictMode=function(s){return h(s)===o},Q.isSuspense=function(s){return h(s)===d},Q.isValidElementType=function(s){return typeof s=="string"||typeof s=="function"||s===n||s===l||s===a||s===o||s===d||s===T||typeof s=="object"&&s!==null&&(s.$$typeof===w||s.$$typeof===E||s.$$typeof===i||s.$$typeof===u||s.$$typeof===g||s.$$typeof===S||s.$$typeof===m||s.$$typeof===f||s.$$typeof===x)},Q.typeOf=h,Q}var ee={};/** @license React v16.13.1
|
|
49
49
|
* react-is.development.js
|
|
50
50
|
*
|
|
51
51
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/var Mn;function Uo(){return Mn||(Mn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=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,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,E=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,p=e?Symbol.for("react.responder"):60118,h=e?Symbol.for("react.scope"):60119;function m(P){return typeof P=="string"||typeof P=="function"||P===n||P===l||P===i||P===a||P===d||P===E||typeof P=="object"&&P!==null&&(P.$$typeof===w||P.$$typeof===T||P.$$typeof===o||P.$$typeof===s||P.$$typeof===f||P.$$typeof===x||P.$$typeof===p||P.$$typeof===h||P.$$typeof===b)}function v(P){if(typeof P=="object"&&P!==null){var ye=P.$$typeof;switch(ye){case t:var Ne=P.type;switch(Ne){case u:case l:case n:case i:case a:case d:return Ne;default:var et=Ne&&Ne.$$typeof;switch(et){case s:case f:case w:case T:case o:return et;default:return ye}}case r:return ye}}}var c=u,y=l,g=s,R=o,C=t,N=f,A=n,F=w,D=T,k=r,z=i,H=a,K=d,ue=!1;function ce(P){return ue||(ue=!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.")),S(P)||v(P)===u}function S(P){return v(P)===l}function _(P){return v(P)===s}function M(P){return v(P)===o}function j(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function B(P){return v(P)===f}function $(P){return v(P)===n}function G(P){return v(P)===w}function q(P){return v(P)===T}function U(P){return v(P)===r}function V(P){return v(P)===i}function Y(P){return v(P)===a}function he(P){return v(P)===d}ae.AsyncMode=c,ae.ConcurrentMode=y,ae.ContextConsumer=g,ae.ContextProvider=R,ae.Element=C,ae.ForwardRef=N,ae.Fragment=A,ae.Lazy=F,ae.Memo=D,ae.Portal=k,ae.Profiler=z,ae.StrictMode=H,ae.Suspense=K,ae.isAsyncMode=ce,ae.isConcurrentMode=S,ae.isContextConsumer=_,ae.isContextProvider=M,ae.isElement=j,ae.isForwardRef=B,ae.isFragment=$,ae.isLazy=G,ae.isMemo=q,ae.isPortal=U,ae.isProfiler=V,ae.isStrictMode=Y,ae.isSuspense=he,ae.isValidElementType=m,ae.typeOf=v}()),ae}var Ln;function $o(){return Ln||(Ln=1,process.env.NODE_ENV==="production"?Ct.exports=ko():Ct.exports=Uo()),Ct.exports}var lr,jn;function zo(){if(jn)return lr;jn=1;var e=$o(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=a;function o(w){return e.isMemo(w)?a:i[w.$$typeof]||t}var s=Object.defineProperty,u=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,E=Object.prototype;function T(w,b,x){if(typeof b!="string"){if(E){var p=d(b);p&&p!==E&&T(w,p,x)}var h=u(b);l&&(h=h.concat(l(b)));for(var m=o(w),v=o(b),c=0;c<h.length;++c){var y=h[c];if(!r[y]&&!(x&&x[y])&&!(v&&v[y])&&!(m&&m[y])){var g=f(b,y);try{s(w,y,g)}catch{}}}}return w}return lr=T,lr}zo();var Go=!0;function Ka(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var tn=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Go===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},rn=function(t,r,n){tn(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Wo(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var qo={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,scale: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},Vo=/[A-Z]|^ms/g,Yo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qa=function(t){return t.charCodeAt(1)===45},Hn=function(t){return t!=null&&typeof t!="boolean"},cr=Za(function(e){return Qa(e)?e:e.replace(Vo,"-$&").toLowerCase()}),Fn=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Yo,function(n,a,i){return _e={name:a,styles:i,next:_e},a})}return qo[t]!==1&&!Qa(t)&&typeof r=="number"&&r!==0?r+"px":r};function yt(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return _e={name:a.name,styles:a.styles,next:_e},a.name;var i=r;if(i.styles!==void 0){var o=i.next;if(o!==void 0)for(;o!==void 0;)_e={name:o.name,styles:o.styles,next:_e},o=o.next;var s=i.styles+";";return s}return Xo(e,t,r)}case"function":{if(e!==void 0){var u=_e,l=r(e);return _e=u,yt(e,t,l)}break}}var f=r;if(t==null)return f;var d=t[f];return d!==void 0?d:f}function Xo(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=yt(e,t,r[a])+";";else for(var i in r){var o=r[i];if(typeof o!="object"){var s=o;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":Hn(s)&&(n+=cr(i)+":"+Fn(i,s)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var u=0;u<o.length;u++)Hn(o[u])&&(n+=cr(i)+":"+Fn(i,o[u])+";");else{var l=yt(e,t,o);switch(i){case"animation":case"animationName":{n+=cr(i)+":"+l+";";break}default:n+=i+"{"+l+"}"}}}return n}var Bn=/label:\s*([^\s;{]+)\s*(;|$)/g,_e;function Xt(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";_e=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=yt(r,t,i);else{var o=i;a+=o[0]}for(var s=1;s<e.length;s++)if(a+=yt(r,t,e[s]),n){var u=i;a+=u[s]}Bn.lastIndex=0;for(var l="",f;(f=Bn.exec(a))!==null;)l+="-"+f[1];var d=Wo(a)+l;return{name:d,styles:a,next:_e}}var Zo=function(t){return t()},ei=X.useInsertionEffect?X.useInsertionEffect:!1,ti=ei||Zo,kn=ei||X.useLayoutEffect,ri=X.createContext(typeof HTMLElement<"u"?Bo({key:"css"}):null);ri.Provider;var nn=function(t){return O.forwardRef(function(r,n){var a=O.useContext(ri);return t(r,a,n)})},an=X.createContext({}),on={}.hasOwnProperty,Hr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Jo=function(t,r){var n={};for(var a in r)on.call(r,a)&&(n[a]=r[a]);return n[Hr]=t,n},Ko=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return tn(r,n,a),ti(function(){return rn(r,n,a)}),null},Qo=nn(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Hr],i=[n],o="";typeof e.className=="string"?o=Ka(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Xt(i,void 0,X.useContext(an));o+=t.key+"-"+s.name;var u={};for(var l in e)on.call(e,l)&&l!=="css"&&l!==Hr&&(u[l]=e[l]);return u.className=o,r&&(u.ref=r),X.createElement(X.Fragment,null,X.createElement(Ko,{cache:t,serialized:s,isStringTag:typeof a=="string"}),X.createElement(a,u))}),es=Qo,Un=function(t,r){var n=arguments;if(r==null||!on.call(r,"css"))return X.createElement.apply(void 0,n);var a=n.length,i=new Array(a);i[0]=es,i[1]=Jo(t,r);for(var o=2;o<a;o++)i[o]=n[o];return X.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Un||(Un={}));var ts=nn(function(e,t){var r=e.styles,n=Xt([r],void 0,X.useContext(an)),a=X.useRef();return kn(function(){var i=t.key+"-global",o=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,u=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),u!==null&&(s=!0,u.setAttribute("data-emotion",i),o.hydrate([u])),a.current=[o,s],function(){o.flush()}},[t]),kn(function(){var i=a.current,o=i[0],s=i[1];if(s){i[1]=!1;return}if(n.next!==void 0&&rn(t,n.next,!0),o.tags.length){var u=o.tags[o.tags.length-1].nextElementSibling;o.before=u,o.flush()}t.insert("",n,o,!1)},[t,n.name]),null});function rs(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Xt(t)}function sn(){var e=rs.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_"}}}var ns=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,as=Za(function(e){return ns.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),is=as,os=function(t){return t!=="theme"},$n=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?is:os},zn=function(t,r,n){var a;if(r){var i=r.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(o){return t.__emotion_forwardProp(o)&&i(o)}:i}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},ss=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return tn(r,n,a),ti(function(){return rn(r,n,a)}),null},us=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,i,o;r!==void 0&&(i=r.label,o=r.target);var s=zn(t,r,n),u=s||$n(a),l=!u("as");return function(){var f=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)d.push.apply(d,f);else{var E=f[0];d.push(E[0]);for(var T=f.length,w=1;w<T;w++)d.push(f[w],E[w])}var b=nn(function(x,p,h){var m=l&&x.as||a,v="",c=[],y=x;if(x.theme==null){y={};for(var g in x)y[g]=x[g];y.theme=X.useContext(an)}typeof x.className=="string"?v=Ka(p.registered,c,x.className):x.className!=null&&(v=x.className+" ");var R=Xt(d.concat(c),p.registered,y);v+=p.key+"-"+R.name,o!==void 0&&(v+=" "+o);var C=l&&s===void 0?$n(m):u,N={};for(var A in x)l&&A==="as"||C(A)&&(N[A]=x[A]);return N.className=v,h&&(N.ref=h),X.createElement(X.Fragment,null,X.createElement(ss,{cache:p,serialized:R,isStringTag:typeof m=="string"}),X.createElement(m,N))});return b.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=a,b.__emotion_styles=d,b.__emotion_forwardProp=s,Object.defineProperty(b,"toString",{value:function(){return"."+o}}),b.withComponent=function(x,p){var h=e(x,mt({},r,p,{shouldForwardProp:zn(b,p,!0)}));return h.apply(void 0,d)},b}},ls=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],de=us.bind(null);ls.forEach(function(e){de[e]=de(e)});exports.setGlobalLoading=e=>{console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!")};const cs=sn`
|
|
55
|
+
*/var tn;function To(){return tn||(tn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,T=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,f=e?Symbol.for("react.scope"):60119;function h(O){return typeof O=="string"||typeof O=="function"||O===n||O===l||O===a||O===o||O===d||O===T||typeof O=="object"&&O!==null&&(O.$$typeof===w||O.$$typeof===E||O.$$typeof===i||O.$$typeof===u||O.$$typeof===g||O.$$typeof===S||O.$$typeof===m||O.$$typeof===f||O.$$typeof===x)}function v(O){if(typeof O=="object"&&O!==null){var pe=O.$$typeof;switch(pe){case t:var Ee=O.type;switch(Ee){case c:case l:case n:case a:case o:case d:return Ee;default:var Le=Ee&&Ee.$$typeof;switch(Le){case u:case g:case w:case E:case i:return Le;default:return pe}}case r:return pe}}}var s=c,y=l,p=u,R=i,C=t,j=g,A=n,$=w,N=E,L=r,W=a,I=o,X=d,ne=!1;function oe(O){return ne||(ne=!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.")),b(O)||v(O)===c}function b(O){return v(O)===l}function P(O){return v(O)===u}function M(O){return v(O)===i}function k(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function z(O){return v(O)===g}function q(O){return v(O)===n}function Y(O){return v(O)===w}function H(O){return v(O)===E}function F(O){return v(O)===r}function B(O){return v(O)===a}function V(O){return v(O)===o}function ue(O){return v(O)===d}ee.AsyncMode=s,ee.ConcurrentMode=y,ee.ContextConsumer=p,ee.ContextProvider=R,ee.Element=C,ee.ForwardRef=j,ee.Fragment=A,ee.Lazy=$,ee.Memo=N,ee.Portal=L,ee.Profiler=W,ee.StrictMode=I,ee.Suspense=X,ee.isAsyncMode=oe,ee.isConcurrentMode=b,ee.isContextConsumer=P,ee.isContextProvider=M,ee.isElement=k,ee.isForwardRef=z,ee.isFragment=q,ee.isLazy=Y,ee.isMemo=H,ee.isPortal=F,ee.isProfiler=B,ee.isStrictMode=V,ee.isSuspense=ue,ee.isValidElementType=h,ee.typeOf=v}()),ee}var rn;function Ro(){return rn||(rn=1,process.env.NODE_ENV==="production"?dt.exports=wo():dt.exports=To()),dt.exports}var Yt,nn;function Oo(){if(nn)return Yt;nn=1;var e=Ro(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[e.ForwardRef]=n,a[e.Memo]=o;function i(w){return e.isMemo(w)?o:a[w.$$typeof]||t}var u=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,T=Object.prototype;function E(w,x,S){if(typeof x!="string"){if(T){var m=d(x);m&&m!==T&&E(w,m,S)}var f=c(x);l&&(f=f.concat(l(x)));for(var h=i(w),v=i(x),s=0;s<f.length;++s){var y=f[s];if(!r[y]&&!(S&&S[y])&&!(v&&v[y])&&!(h&&h[y])){var p=g(x,y);try{u(w,y,p)}catch{}}}}return w}return Yt=E,Yt}Oo();var Po=!0;function ia(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Er=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Po===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},wr=function(t,r,n){Er(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function _o(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Co={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,scale: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},Ao=/[A-Z]|^ms/g,jo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sa=function(t){return t.charCodeAt(1)===45},an=function(t){return t!=null&&typeof t!="boolean"},Ut=aa(function(e){return sa(e)?e:e.replace(Ao,"-$&").toLowerCase()}),on=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(jo,function(n,o,a){return be={name:o,styles:a,next:be},o})}return Co[t]!==1&&!sa(t)&&typeof r=="number"&&r!==0?r+"px":r};function nt(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return be={name:o.name,styles:o.styles,next:be},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)be={name:i.name,styles:i.styles,next:be},i=i.next;var u=a.styles+";";return u}return Do(e,t,r)}case"function":{if(e!==void 0){var c=be,l=r(e);return be=c,nt(e,t,l)}break}}var g=r;if(t==null)return g;var d=t[g];return d!==void 0?d:g}function Do(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=nt(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var u=i;t!=null&&t[u]!==void 0?n+=a+"{"+t[u]+"}":an(u)&&(n+=Ut(a)+":"+on(a,u)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var c=0;c<i.length;c++)an(i[c])&&(n+=Ut(a)+":"+on(a,i[c])+";");else{var l=nt(e,t,i);switch(a){case"animation":case"animationName":{n+=Ut(a)+":"+l+";";break}default:n+=a+"{"+l+"}"}}}return n}var sn=/label:\s*([^\s;{]+)\s*(;|$)/g,be;function Ct(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";be=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=nt(r,t,a);else{var i=a;o+=i[0]}for(var u=1;u<e.length;u++)if(o+=nt(r,t,e[u]),n){var c=a;o+=c[u]}sn.lastIndex=0;for(var l="",g;(g=sn.exec(o))!==null;)l+="-"+g[1];var d=_o(o)+l;return{name:d,styles:o,next:be}}var No=function(t){return t()},ua=re.useInsertionEffect?re.useInsertionEffect:!1,ca=ua||No,un=ua||re.useLayoutEffect,la=re.createContext(typeof HTMLElement<"u"?Eo({key:"css"}):null);la.Provider;var Tr=function(t){return _.forwardRef(function(r,n){var o=_.useContext(la);return t(r,o,n)})},Rr=re.createContext({}),Or={}.hasOwnProperty,pr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Mo=function(t,r){var n={};for(var o in r)Or.call(r,o)&&(n[o]=r[o]);return n[pr]=t,n},ko=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Er(r,n,o),ca(function(){return wr(r,n,o)}),null},Io=Tr(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[pr],a=[n],i="";typeof e.className=="string"?i=ia(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var u=Ct(a,void 0,re.useContext(Rr));i+=t.key+"-"+u.name;var c={};for(var l in e)Or.call(e,l)&&l!=="css"&&l!==pr&&(c[l]=e[l]);return c.className=i,r&&(c.ref=r),re.createElement(re.Fragment,null,re.createElement(ko,{cache:t,serialized:u,isStringTag:typeof o=="string"}),re.createElement(o,c))}),$o=Io,cn=function(t,r){var n=arguments;if(r==null||!Or.call(r,"css"))return re.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=$o,a[1]=Mo(t,r);for(var i=2;i<o;i++)a[i]=n[i];return re.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(cn||(cn={}));var zo=Tr(function(e,t){var r=e.styles,n=Ct([r],void 0,re.useContext(Rr)),o=re.useRef();return un(function(){var a=t.key+"-global",i=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",a),i.hydrate([c])),o.current=[i,u],function(){i.flush()}},[t]),un(function(){var a=o.current,i=a[0],u=a[1];if(u){a[1]=!1;return}if(n.next!==void 0&&wr(t,n.next,!0),i.tags.length){var c=i.tags[i.tags.length-1].nextElementSibling;i.before=c,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function Lo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ct(t)}function Pr(){var e=Lo.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_"}}}var Fo=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,qo=aa(function(e){return Fo.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Wo=qo,Yo=function(t){return t!=="theme"},ln=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Wo:Yo},fn=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},Uo=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Er(r,n,o),ca(function(){return wr(r,n,o)}),null},Ho=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var u=fn(t,r,n),c=u||ln(o),l=!c("as");return function(){var g=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push("label:"+a+";"),g[0]==null||g[0].raw===void 0)d.push.apply(d,g);else{var T=g[0];d.push(T[0]);for(var E=g.length,w=1;w<E;w++)d.push(g[w],T[w])}var x=Tr(function(S,m,f){var h=l&&S.as||o,v="",s=[],y=S;if(S.theme==null){y={};for(var p in S)y[p]=S[p];y.theme=re.useContext(Rr)}typeof S.className=="string"?v=ia(m.registered,s,S.className):S.className!=null&&(v=S.className+" ");var R=Ct(d.concat(s),m.registered,y);v+=m.key+"-"+R.name,i!==void 0&&(v+=" "+i);var C=l&&u===void 0?ln(h):c,j={};for(var A in S)l&&A==="as"||C(A)&&(j[A]=S[A]);return j.className=v,f&&(j.ref=f),re.createElement(re.Fragment,null,re.createElement(Uo,{cache:m,serialized:R,isStringTag:typeof h=="string"}),re.createElement(h,j))});return x.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=o,x.__emotion_styles=d,x.__emotion_forwardProp=u,Object.defineProperty(x,"toString",{value:function(){return"."+i}}),x.withComponent=function(S,m){var f=e(S,et({},r,m,{shouldForwardProp:fn(x,m,!0)}));return f.apply(void 0,d)},x}},Bo=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],se=Ho.bind(null);Bo.forEach(function(e){se[e]=se(e)});exports.setGlobalLoading=e=>{console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!")};const Vo=Pr`
|
|
56
56
|
0% { transform: rotate(0deg) translateX(35px) rotate(0deg); }
|
|
57
57
|
50% { transform: rotate(360deg) translateX(35px) rotate(-360deg); }
|
|
58
58
|
100% { transform: rotate(360deg) translateX(35px) rotate(-360deg); }
|
|
59
|
-
`,
|
|
59
|
+
`,Xo=se.div`
|
|
60
60
|
position: fixed;
|
|
61
61
|
top: 0;
|
|
62
62
|
left: 0;
|
|
@@ -81,7 +81,7 @@ Valid keys: `+JSON.stringify(Object.keys(S),null," "));var P=he(q,Y,B,$,G+"."+Y
|
|
|
81
81
|
&.global-loading-transition-exit-active {
|
|
82
82
|
opacity: 0;
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,Go=se.div`
|
|
85
85
|
width: 120px;
|
|
86
86
|
height: 120px;
|
|
87
87
|
position: relative;
|
|
@@ -91,36 +91,15 @@ Valid keys: `+JSON.stringify(Object.keys(S),null," "));var P=he(q,Y,B,$,G+"."+Y
|
|
|
91
91
|
display: flex;
|
|
92
92
|
justify-content: center;
|
|
93
93
|
align-items: center;
|
|
94
|
-
`,
|
|
94
|
+
`,Ye=se.div(({size:e,delay:t})=>({position:"absolute",margin:"auto",borderRadius:"50%",backgroundImage:" linear-gradient(var(--color-primary) 10%, var(--color-primary-hover) 100%)",transform:"rotate(0deg) translateX(35px) rotate(0deg)",width:e,height:e,animation:`${Vo} 4s ease-in-out infinite`,animationDelay:t||"0s"}));function fa(){const e=_.useRef(null),[t,r]=_.useState(!1);return _.useEffect(()=>{exports.setGlobalLoading=n=>{r(n)}},[]),D.jsx(Rt,{in:t,nodeRef:e,timeout:500,classNames:"global-loading-transition",unmountOnExit:!0,children:()=>D.jsxs(Xo,{ref:e,className:"global-loading",children:[D.jsxs(Go,{className:"global-loading-container",children:[D.jsx(Ye,{className:"dot dot-1",size:15,delay:"0.0s"}),D.jsx(Ye,{className:"dot dot-2",size:13,delay:"0.2s"}),D.jsx(Ye,{className:"dot dot-3",size:11,delay:"0.4s"}),D.jsx(Ye,{className:"dot dot-4",size:9,delay:"0.6s"}),D.jsx(Ye,{className:"dot dot-5",size:7,delay:"0.8s"})]}),D.jsx("svg",{style:{visibility:"hidden",position:"absolute"},children:D.jsx("defs",{children:D.jsxs("filter",{id:"goo",children:[D.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),D.jsx("feColorMatrix",{in:"blur",type:"matrix",values:`
|
|
95
95
|
1 0 0 0 0
|
|
96
96
|
0 1 0 0 0
|
|
97
97
|
0 0 1 0 0
|
|
98
|
-
0 0 0 18 -6`}),I.jsx("feComposite",{in:"SourceGraphic",in2:"goo",operator:"atop"})]})})})]})})}var Fr=function(e,t){return Fr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},Fr(e,t)};function Ee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Fr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var L=function(){return L=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},L.apply(this,arguments)};function Le(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function hs(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(f){try{l(n.next(f))}catch(d){o(d)}}function u(f){try{l(n.throw(f))}catch(d){o(d)}}function l(f){f.done?i(f.value):a(f.value).then(s,u)}l((n=n.apply(e,t||[])).next())})}function ps(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(f){return u([l,f])}}function u(l){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)try{if(n=1,a&&(i=l[0]&2?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(f){l=[6,f],a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function me(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function oe(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function we(e,t){var r=t&&t.cache?t.cache:Es,n=t&&t.serializer?t.serializer:bs,a=t&&t.strategy?t.strategy:vs;return a(e,{cache:r,serializer:n})}function ms(e){return e==null||typeof e=="number"||typeof e=="boolean"}function gs(e,t,r,n){var a=ms(n)?n:r(n),i=t.get(a);return typeof i>"u"&&(i=e.call(this,n),t.set(a,i)),i}function ai(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),i=t.get(a);return typeof i>"u"&&(i=e.apply(this,n),t.set(a,i)),i}function ii(e,t,r,n,a){return r.bind(t,e,n,a)}function vs(e,t){var r=e.length===1?gs:ai;return ii(e,this,r,t.cache.create(),t.serializer)}function ys(e,t){return ii(e,this,ai,t.cache.create(),t.serializer)}var bs=function(){return JSON.stringify(arguments)},xs=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Es={create:function(){return new xs}},Re={variadic:ys},Z;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Z||(Z={}));var se;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(se||(se={}));var Xe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Xe||(Xe={}));function Gn(e){return e.type===se.literal}function Ss(e){return e.type===se.argument}function oi(e){return e.type===se.number}function si(e){return e.type===se.date}function ui(e){return e.type===se.time}function li(e){return e.type===se.select}function ci(e){return e.type===se.plural}function Ts(e){return e.type===se.pound}function fi(e){return e.type===se.tag}function di(e){return!!(e&&typeof e=="object"&&e.type===Xe.number)}function Br(e){return!!(e&&typeof e=="object"&&e.type===Xe.dateTime)}var hi=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ws=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Rs(e){var t={};return e.replace(ws,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Ps=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function _s(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ps).filter(function(E){return E.length>0}),r=[],n=0,a=t;n<a.length;n++){var i=a[n],o=i.split("/");if(o.length===0)throw new Error("Invalid number skeleton");for(var s=o[0],u=o.slice(1),l=0,f=u;l<f.length;l++){var d=f[l];if(d.length===0)throw new Error("Invalid number skeleton")}r.push({stem:s,options:u})}return r}function Os(e){return e.replace(/^(.*?)-/,"")}var Wn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pi=/^(@+)?(\+|#+)?[rs]?$/g,Cs=/(\*)(0+)|(#+)(0+)|(0+)/g,mi=/^(0+)$/;function qn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(pi,function(r,n,a){return typeof a!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):a==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof a=="string"?a.length:0)),""}),t}function gi(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function As(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!mi.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Vn(e){var t={},r=gi(e);return r||t}function Ns(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Os(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=L(L(L({},t),{notation:"scientific"}),a.options.reduce(function(u,l){return L(L({},u),Vn(l))},{}));continue;case"engineering":t=L(L(L({},t),{notation:"engineering"}),a.options.reduce(function(u,l){return L(L({},u),Vn(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Cs,function(u,l,f,d,E,T){if(l)t.minimumIntegerDigits=f.length;else{if(d&&E)throw new Error("We currently do not support maximum integer digits");if(T)throw new Error("We currently do not support exact integer digits")}return""});continue}if(mi.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(Wn.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(Wn,function(u,l,f,d,E,T){return f==="*"?t.minimumFractionDigits=l.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:E&&T?(t.minimumFractionDigits=E.length,t.maximumFractionDigits=E.length+T.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var i=a.options[0];i==="w"?t=L(L({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=L(L({},t),qn(i)));continue}if(pi.test(a.stem)){t=L(L({},t),qn(a.stem));continue}var o=gi(a.stem);o&&(t=L(L({},t),o));var s=As(a.stem);s&&(t=L(L({},t),s))}return t}var At={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Is(e,t){for(var r="",n=0;n<e.length;n++){var a=e.charAt(n);if(a==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===a;)i++,n++;var o=1+(i&1),s=i<2?1:3+(i>>1),u="a",l=Ds(t);for((l=="H"||l=="k")&&(s=0);s-- >0;)r+=u;for(;o-- >0;)r=l+r}else a==="J"?r+="H":r+=a}return r}function Ds(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var a=At[n||""]||At[r||""]||At["".concat(r,"-001")]||At["001"];return a[0]}var fr,Ms=new RegExp("^".concat(hi.source,"*")),Ls=new RegExp("".concat(hi.source,"*$"));function J(e,t){return{start:e,end:t}}var js=!!String.prototype.startsWith&&"_a".startsWith("a",1),Hs=!!String.fromCodePoint,Fs=!!Object.fromEntries,Bs=!!String.prototype.codePointAt,ks=!!String.prototype.trimStart,Us=!!String.prototype.trimEnd,$s=!!Number.isSafeInteger,zs=$s?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},kr=!0;try{var Gs=yi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kr=((fr=Gs.exec("a"))===null||fr===void 0?void 0:fr[0])==="a"}catch{kr=!1}var Yn=js?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Ur=Hs?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",a=t.length,i=0,o;a>i;){if(o=t[i++],o>1114111)throw RangeError(o+" is not a valid code point");n+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return n},Xn=Fs?Object.fromEntries:function(t){for(var r={},n=0,a=t;n<a.length;n++){var i=a[n],o=i[0],s=i[1];r[o]=s}return r},vi=Bs?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var a=t.charCodeAt(r),i;return a<55296||a>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},Ws=ks?function(t){return t.trimStart()}:function(t){return t.replace(Ms,"")},qs=Us?function(t){return t.trimEnd()}:function(t){return t.replace(Ls,"")};function yi(e,t){return new RegExp(e,t)}var $r;if(kr){var Zn=yi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$r=function(t,r){var n;Zn.lastIndex=r;var a=Zn.exec(t);return(n=a[1])!==null&&n!==void 0?n:""}}else $r=function(t,r){for(var n=[];;){var a=vi(t,r);if(a===void 0||bi(a)||Zs(a))break;n.push(a),r+=a>=65536?2:1}return Ur.apply(void 0,n)};var Vs=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var o=this.parseArgument(t,n);if(o.err)return o;a.push(o.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var s=this.clonePosition();this.bump(),a.push({type:se.pound,location:J(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(Z.UNMATCHED_CLOSING_TAG,J(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&zr(this.peek()||0)){var o=this.parseTag(t,r);if(o.err)return o;a.push(o.val)}else{var o=this.parseLiteral(t,r);if(o.err)return o;a.push(o.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:se.literal,value:"<".concat(a,"/>"),location:J(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!zr(this.char()))return this.error(Z.INVALID_TAG,J(s,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return a!==l?this.error(Z.UNMATCHED_CLOSING_TAG,J(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:se.tag,value:a,children:o,location:J(n,this.clonePosition())},err:null}:this.error(Z.INVALID_TAG,J(s,this.clonePosition())))}else return this.error(Z.UNCLOSED_TAG,J(n,this.clonePosition()))}else return this.error(Z.INVALID_TAG,J(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Xs(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),a="";;){var i=this.tryParseQuote(r);if(i){a+=i;continue}var o=this.tryParseUnquoted(t,r);if(o){a+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){a+=s;continue}break}var u=J(n,this.clonePosition());return{val:{type:se.literal,value:a,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ys(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Ur.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Ur(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,J(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Z.EMPTY_ARGUMENT,J(n,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(Z.MALFORMED_ARGUMENT,J(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,J(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:se.argument,value:a,location:J(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,J(n,this.clonePosition())):this.parseArgumentOptions(t,r,a,n);default:return this.error(Z.MALFORMED_ARGUMENT,J(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=$r(this.message,r),a=r+n.length;this.bumpTo(a);var i=this.clonePosition(),o=J(t,i);return{value:n,location:o}},e.prototype.parseArgumentOptions=function(t,r,n,a){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(Z.EXPECT_ARGUMENT_TYPE,J(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var E=qs(d.val);if(E.length===0)return this.error(Z.EXPECT_ARGUMENT_STYLE,J(this.clonePosition(),this.clonePosition()));var T=J(f,this.clonePosition());l={style:E,styleLocation:T}}var w=this.tryParseArgumentClose(a);if(w.err)return w;var b=J(a,this.clonePosition());if(l&&Yn(l==null?void 0:l.style,"::",0)){var x=Ws(l.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(x,l.styleLocation);return d.err?d:{val:{type:se.number,value:n,location:b,style:d.val},err:null}}else{if(x.length===0)return this.error(Z.EXPECT_DATE_TIME_SKELETON,b);var p=x;this.locale&&(p=Is(x,this.locale));var E={type:Xe.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Rs(p):{}},h=s==="date"?se.date:se.time;return{val:{type:h,value:n,location:b,style:E},err:null}}}return{val:{type:s==="number"?se.number:s==="date"?se.date:se.time,value:n,location:b,style:(i=l==null?void 0:l.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Z.EXPECT_SELECT_ARGUMENT_OPTIONS,J(m,L({},m)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),c=0;if(s!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(Z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,J(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(Z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Z.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),v=this.parseIdentifierIfPossible(),c=d.val}var y=this.tryParsePluralOrSelectOptions(t,s,r,v);if(y.err)return y;var w=this.tryParseArgumentClose(a);if(w.err)return w;var g=J(a,this.clonePosition());return s==="select"?{val:{type:se.select,value:n,options:Xn(y.val),location:g},err:null}:{val:{type:se.plural,value:n,options:Xn(y.val),offset:c,pluralType:s==="plural"?"cardinal":"ordinal",location:g},err:null}}default:return this.error(Z.INVALID_ARGUMENT_TYPE,J(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(Z.EXPECT_ARGUMENT_CLOSING_BRACE,J(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Z.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,J(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=_s(t)}catch{return this.error(Z.INVALID_NUMBER_SKELETON,r)}return{val:{type:Xe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Ns(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,a){for(var i,o=!1,s=[],u=new Set,l=a.value,f=a.location;;){if(l.length===0){var d=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var E=this.tryParseDecimalInteger(Z.EXPECT_PLURAL_ARGUMENT_SELECTOR,Z.INVALID_PLURAL_ARGUMENT_SELECTOR);if(E.err)return E;f=J(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?Z.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Z.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(o=!0),this.bumpSpace();var T=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?Z.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Z.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,J(this.clonePosition(),this.clonePosition()));var w=this.parseMessage(t+1,r,n);if(w.err)return w;var b=this.tryParseArgumentClose(T);if(b.err)return b;s.push([l,{value:w.val,location:J(T,this.clonePosition())}]),u.add(l),this.bumpSpace(),i=this.parseIdentifierIfPossible(),l=i.value,f=i.location}return s.length===0?this.error(r==="select"?Z.EXPECT_SELECT_ARGUMENT_SELECTOR:Z.EXPECT_PLURAL_ARGUMENT_SELECTOR,J(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Z.MISSING_OTHER_CLAUSE,J(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,o=o*10+(s-48),this.bump();else break}var u=J(a,this.clonePosition());return i?(o*=n,zs(o)?{val:o,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=vi(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Yn(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&bi(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function zr(e){return e>=97&&e<=122||e>=65&&e<=90}function Ys(e){return zr(e)||e===47}function Xs(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function bi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Zs(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Gr(e){e.forEach(function(t){if(delete t.location,li(t)||ci(t))for(var r in t.options)delete t.options[r].location,Gr(t.options[r].value);else oi(t)&&di(t.style)||(si(t)||ui(t))&&Br(t.style)?delete t.style.location:fi(t)&&Gr(t.children)})}function Js(e,t){t===void 0&&(t={}),t=L({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Vs(e,t).parse();if(r.err){var n=SyntaxError(Z[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Gr(r.val),r.val}var Ce;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ce||(Ce={}));var je=function(e){Ee(t,e);function t(r,n,a){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Jn=function(e){Ee(t,e);function t(r,n,a,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(a).join('", "'),'"'),Ce.INVALID_VALUE,i)||this}return t}(je),Ks=function(e){Ee(t,e);function t(r,n,a){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Ce.INVALID_VALUE,a)||this}return t}(je),Qs=function(e){Ee(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Ce.MISSING_VALUE,n)||this}return t}(je),ve;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ve||(ve={}));function eu(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==ve.literal||r.type!==ve.literal?t.push(r):n.value+=r.value,t},[])}function xi(e){return typeof e=="function"}function Ft(e,t,r,n,a,i,o){if(e.length===1&&Gn(e[0]))return[{type:ve.literal,value:e[0].value}];for(var s=[],u=0,l=e;u<l.length;u++){var f=l[u];if(Gn(f)){s.push({type:ve.literal,value:f.value});continue}if(Ts(f)){typeof i=="number"&&s.push({type:ve.literal,value:r.getNumberFormat(t).format(i)});continue}var d=f.value;if(!(a&&d in a))throw new Qs(d,o);var E=a[d];if(Ss(f)){(!E||typeof E=="string"||typeof E=="number")&&(E=typeof E=="string"||typeof E=="number"?String(E):""),s.push({type:typeof E=="string"?ve.literal:ve.object,value:E});continue}if(si(f)){var T=typeof f.style=="string"?n.date[f.style]:Br(f.style)?f.style.parsedOptions:void 0;s.push({type:ve.literal,value:r.getDateTimeFormat(t,T).format(E)});continue}if(ui(f)){var T=typeof f.style=="string"?n.time[f.style]:Br(f.style)?f.style.parsedOptions:n.time.medium;s.push({type:ve.literal,value:r.getDateTimeFormat(t,T).format(E)});continue}if(oi(f)){var T=typeof f.style=="string"?n.number[f.style]:di(f.style)?f.style.parsedOptions:void 0;T&&T.scale&&(E=E*(T.scale||1)),s.push({type:ve.literal,value:r.getNumberFormat(t,T).format(E)});continue}if(fi(f)){var w=f.children,b=f.value,x=a[b];if(!xi(x))throw new Ks(b,"function",o);var p=Ft(w,t,r,n,a,i),h=x(p.map(function(c){return c.value}));Array.isArray(h)||(h=[h]),s.push.apply(s,h.map(function(c){return{type:typeof c=="string"?ve.literal:ve.object,value:c}}))}if(li(f)){var m=f.options[E]||f.options.other;if(!m)throw new Jn(f.value,E,Object.keys(f.options),o);s.push.apply(s,Ft(m.value,t,r,n,a));continue}if(ci(f)){var m=f.options["=".concat(E)];if(!m){if(!Intl.PluralRules)throw new je(`Intl.PluralRules is not available in this environment.
|
|
99
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
100
|
-
`,Ce.MISSING_INTL_API,o);var v=r.getPluralRules(t,{type:f.pluralType}).select(E-(f.offset||0));m=f.options[v]||f.options.other}if(!m)throw new Jn(f.value,E,Object.keys(f.options),o);s.push.apply(s,Ft(m.value,t,r,n,a,E-(f.offset||0)));continue}}return eu(s)}function tu(e,t){return t?L(L(L({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=L(L({},e[n]),t[n]||{}),r},{})):e}function ru(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=tu(e[n],t[n]),r},L({},e)):e}function dr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function nu(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:we(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,oe([void 0],r,!1)))},{cache:dr(e.number),strategy:Re.variadic}),getDateTimeFormat:we(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,oe([void 0],r,!1)))},{cache:dr(e.dateTime),strategy:Re.variadic}),getPluralRules:we(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,oe([void 0],r,!1)))},{cache:dr(e.pluralRules),strategy:Re.variadic})}}var Ei=function(){function e(t,r,n,a){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=i.formatToParts(u);if(l.length===1)return l[0].value;var f=l.reduce(function(d,E){return!d.length||E.type!==ve.literal||typeof d[d.length-1]!="string"?d.push(E.value):d[d.length-1]+=E.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(u){return Ft(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return{locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var o=a||{};o.formatters;var s=Le(o,["formatters"]);this.ast=e.__parse(t,L(L({},s),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ru(e.formats,n),this.formatters=a&&a.formatters||nu(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Js,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),$e;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})($e||($e={}));var Et=function(e){Ee(t,e);function t(r,n,a){var i=this,o=a?a instanceof Error?a:new Error(String(a)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,`
|
|
101
|
-
`).concat(o?`
|
|
102
|
-
`.concat(o.message,`
|
|
103
|
-
`).concat(o.stack):""))||this,i.code=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),au=function(e){Ee(t,e);function t(r,n){return e.call(this,$e.UNSUPPORTED_FORMATTER,r,n)||this}return t}(Et),iu=function(e){Ee(t,e);function t(r,n){return e.call(this,$e.INVALID_CONFIG,r,n)||this}return t}(Et),Kn=function(e){Ee(t,e);function t(r,n){return e.call(this,$e.MISSING_DATA,r,n)||this}return t}(Et),Se=function(e){Ee(t,e);function t(r,n,a){var i=e.call(this,$e.FORMAT_ERROR,"".concat(r,`
|
|
104
|
-
Locale: `).concat(n,`
|
|
105
|
-
`),a)||this;return i.locale=n,i}return t}(Et),hr=function(e){Ee(t,e);function t(r,n,a,i){var o=e.call(this,"".concat(r,`
|
|
106
|
-
MessageID: `).concat(a==null?void 0:a.id,`
|
|
107
|
-
Default Message: `).concat(a==null?void 0:a.defaultMessage,`
|
|
108
|
-
Description: `).concat(a==null?void 0:a.description,`
|
|
109
|
-
`),n,i)||this;return o.descriptor=a,o.locale=n,o}return t}(Se),ou=function(e){Ee(t,e);function t(r,n){var a=e.call(this,$e.MISSING_TRANSLATION,'Missing message: "'.concat(r.id,'" for locale "').concat(n,'", using ').concat(r.defaultMessage?"default message (".concat(typeof r.defaultMessage=="string"?r.defaultMessage:r.defaultMessage.map(function(i){var o;return(o=i.value)!==null&&o!==void 0?o:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=r,a}return t}(Et);function su(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}function Ke(e,t,r){return r===void 0&&(r={}),t.reduce(function(n,a){return a in e?n[a]=e[a]:a in r&&(n[a]=r[a]),n},{})}var uu=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},lu=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},Si={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:uu,onWarn:lu};function Ti(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function He(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function cu(e){e===void 0&&(e=Ti());var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,a=we(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.DateTimeFormat).bind.apply(s,oe([void 0],u,!1)))},{cache:He(e.dateTime),strategy:Re.variadic}),i=we(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.NumberFormat).bind.apply(s,oe([void 0],u,!1)))},{cache:He(e.number),strategy:Re.variadic}),o=we(function(){for(var s,u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new((s=Intl.PluralRules).bind.apply(s,oe([void 0],u,!1)))},{cache:He(e.pluralRules),strategy:Re.variadic});return{getDateTimeFormat:a,getNumberFormat:i,getMessageFormat:we(function(s,u,l,f){return new Ei(s,u,l,L({formatters:{getNumberFormat:i,getDateTimeFormat:a,getPluralRules:o}},f||{}))},{cache:He(e.message),strategy:Re.variadic}),getRelativeTimeFormat:we(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(t.bind.apply(t,oe([void 0],s,!1)))},{cache:He(e.relativeTime),strategy:Re.variadic}),getPluralRules:o,getListFormat:we(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(r.bind.apply(r,oe([void 0],s,!1)))},{cache:He(e.list),strategy:Re.variadic}),getDisplayNames:we(function(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return new(n.bind.apply(n,oe([void 0],s,!1)))},{cache:He(e.displayNames),strategy:Re.variadic})}}function un(e,t,r,n){var a=e&&e[t],i;if(a&&(i=a[r]),i)return i;n(new au("No ".concat(t," format named: ").concat(r)))}function Nt(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=L({timeZone:t},e[n]),r},{})}function Qn(e,t){var r=Object.keys(L(L({},e),t));return r.reduce(function(n,a){return n[a]=L(L({},e[a]||{}),t[a]||{}),n},{})}function ea(e,t){if(!t)return e;var r=Ei.formats;return L(L(L({},r),e),{date:Qn(Nt(r.date,t),Nt(e.date||{},t)),time:Qn(Nt(r.time,t),Nt(e.time||{},t))})}var Wr=function(e,t,r,n,a){var i=e.locale,o=e.formats,s=e.messages,u=e.defaultLocale,l=e.defaultFormats,f=e.fallbackOnEmptyString,d=e.onError,E=e.timeZone,T=e.defaultRichTextElements;r===void 0&&(r={id:""});var w=r.id,b=r.defaultMessage;su(!!w,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var x=String(w),p=s&&Object.prototype.hasOwnProperty.call(s,x)&&s[x];if(Array.isArray(p)&&p.length===1&&p[0].type===se.literal)return p[0].value;if(!n&&p&&typeof p=="string"&&!T)return p.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=L(L({},T),n||{}),o=ea(o,E),l=ea(l,E),!p){if(f===!1&&p==="")return p;if((!b||i&&i.toLowerCase()!==u.toLowerCase())&&d(new ou(r,i)),b)try{var h=t.getMessageFormat(b,u,l,a);return h.format(n)}catch(m){return d(new hr('Error formatting default message for: "'.concat(x,'", rendering default message verbatim'),i,r,m)),typeof b=="string"?b:x}return x}try{var h=t.getMessageFormat(p,i,o,L({formatters:t},a||{}));return h.format(n)}catch(m){d(new hr('Error formatting message: "'.concat(x,'", using ').concat(b?"default message":"id"," as fallback."),i,r,m))}if(b)try{var h=t.getMessageFormat(b,u,l,a);return h.format(n)}catch(m){d(new hr('Error formatting the default message for: "'.concat(x,'", rendering message verbatim'),i,r,m))}return typeof p=="string"?p:typeof b=="string"?b:x},fu=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function St(e,t,r,n){var a=e.locale,i=e.formats,o=e.onError,s=e.timeZone;n===void 0&&(n={});var u=n.format,l=L(L({},s&&{timeZone:s}),u&&un(i,t,u,o)),f=Ke(n,fu,l);return t==="time"&&!f.hour&&!f.minute&&!f.second&&!f.timeStyle&&!f.dateStyle&&(f=L(L({},f),{hour:"numeric",minute:"numeric"})),r(a,f)}function du(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],o=i===void 0?{}:i,s=typeof a=="string"?new Date(a||0):a;try{return St(e,"date",t,o).format(s)}catch(u){e.onError(new Se("Error formatting date.",e.locale,u))}return String(s)}function hu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],o=i===void 0?{}:i,s=typeof a=="string"?new Date(a||0):a;try{return St(e,"time",t,o).format(s)}catch(u){e.onError(new Se("Error formatting time.",e.locale,u))}return String(s)}function pu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],o=r[2],s=o===void 0?{}:o,u=typeof a=="string"?new Date(a||0):a,l=typeof i=="string"?new Date(i||0):i;try{return St(e,"dateTimeRange",t,s).formatRange(u,l)}catch(f){e.onError(new Se("Error formatting date time range.",e.locale,f))}return String(u)}function mu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],o=i===void 0?{}:i,s=typeof a=="string"?new Date(a||0):a;try{return St(e,"date",t,o).formatToParts(s)}catch(u){e.onError(new Se("Error formatting date.",e.locale,u))}return[]}function gu(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var a=r[0],i=r[1],o=i===void 0?{}:i,s=typeof a=="string"?new Date(a||0):a;try{return St(e,"time",t,o).formatToParts(s)}catch(u){e.onError(new Se("Error formatting time.",e.locale,u))}return[]}var vu=["style","type","fallback","languageDisplay"];function yu(e,t,r,n){var a=e.locale,i=e.onError,o=Intl.DisplayNames;o||i(new je(`Intl.DisplayNames is not available in this environment.
|
|
110
|
-
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
111
|
-
`,Ce.MISSING_INTL_API));var s=Ke(n,vu);try{return t(a,s).of(r)}catch(u){i(new Se("Error formatting display name.",a,u))}}var bu=["type","style"],ta=Date.now();function xu(e){return"".concat(ta,"_").concat(e,"_").concat(ta)}function Eu(e,t,r,n){n===void 0&&(n={});var a=wi(e,t,r,n).reduce(function(i,o){var s=o.value;return typeof s!="string"?i.push(s):typeof i[i.length-1]=="string"?i[i.length-1]+=s:i.push(s),i},[]);return a.length===1?a[0]:a.length===0?"":a}function wi(e,t,r,n){var a=e.locale,i=e.onError;n===void 0&&(n={});var o=Intl.ListFormat;o||i(new je(`Intl.ListFormat is not available in this environment.
|
|
112
|
-
Try polyfilling it using "@formatjs/intl-listformat"
|
|
113
|
-
`,Ce.MISSING_INTL_API));var s=Ke(n,bu);try{var u={},l=r.map(function(f,d){if(typeof f=="object"){var E=xu(d);return u[E]=f,E}return String(f)});return t(a,s).formatToParts(l).map(function(f){return f.type==="literal"?f:L(L({},f),{value:u[f.value]||f.value})})}catch(f){i(new Se("Error formatting list.",a,f))}return r}var Su=["type"];function Tu(e,t,r,n){var a=e.locale,i=e.onError;n===void 0&&(n={}),Intl.PluralRules||i(new je(`Intl.PluralRules is not available in this environment.
|
|
114
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
115
|
-
`,Ce.MISSING_INTL_API));var o=Ke(n,Su);try{return t(a,o).select(r)}catch(s){i(new Se("Error formatting plural.",a,s))}return"other"}var wu=["numeric","style"];function Ru(e,t,r){var n=e.locale,a=e.formats,i=e.onError;r===void 0&&(r={});var o=r.format,s=!!o&&un(a,"relative",o,i)||{},u=Ke(r,wu,s);return t(n,u)}function Pu(e,t,r,n,a){a===void 0&&(a={}),n||(n="second");var i=Intl.RelativeTimeFormat;i||e.onError(new je(`Intl.RelativeTimeFormat is not available in this environment.
|
|
116
|
-
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
117
|
-
`,Ce.MISSING_INTL_API));try{return Ru(e,t,a).format(r,n)}catch(o){e.onError(new Se("Error formatting relative time.",e.locale,o))}return String(r)}var _u=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Ri(e,t,r){var n=e.locale,a=e.formats,i=e.onError;r===void 0&&(r={});var o=r.format,s=o&&un(a,"number",o,i)||{},u=Ke(r,_u,s);return t(n,u)}function Ou(e,t,r,n){n===void 0&&(n={});try{return Ri(e,t,n).format(r)}catch(a){e.onError(new Se("Error formatting number.",e.locale,a))}return String(r)}function Cu(e,t,r,n){n===void 0&&(n={});try{return Ri(e,t,n).formatToParts(r)}catch(a){e.onError(new Se("Error formatting number.",e.locale,a))}return[]}function Au(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function Nu(e){e.onWarn&&e.defaultRichTextElements&&Au(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
118
|
-
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
119
|
-
For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function Iu(e,t){var r=cu(t),n=L(L({},Si),e),a=n.locale,i=n.defaultLocale,o=n.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&o?o(new Kn('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&o&&o(new Kn('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(o&&o(new iu('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),Nu(n),L(L({},n),{formatters:r,formatNumber:Ou.bind(null,n,r.getNumberFormat),formatNumberToParts:Cu.bind(null,n,r.getNumberFormat),formatRelativeTime:Pu.bind(null,n,r.getRelativeTimeFormat),formatDate:du.bind(null,n,r.getDateTimeFormat),formatDateToParts:mu.bind(null,n,r.getDateTimeFormat),formatTime:hu.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:pu.bind(null,n,r.getDateTimeFormat),formatTimeToParts:gu.bind(null,n,r.getDateTimeFormat),formatPlural:Tu.bind(null,n,r.getPluralRules),formatMessage:Wr.bind(null,n,r),$t:Wr.bind(null,n,r),formatList:Eu.bind(null,n,r.getListFormat),formatListToParts:wi.bind(null,n,r.getListFormat),formatDisplayName:yu.bind(null,n,r.getDisplayNames)})}function Du(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}function Pi(e){Du(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var _i=L(L({},Si),{textComponent:X.Fragment}),Mu={key:42},Lu=function(e){return X.isValidElement(e)?X.createElement(X.Fragment,Mu,e):e},ju=function(e){var t;return(t=X.Children.map(e,Lu))!==null&&t!==void 0?t:[]};function Hu(e){return function(t){return e(X.Children.toArray(t))}}function qr(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),a=r.length;if(n.length!==a)return!1;for(var i=0;i<a;i++){var o=r[i];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}var ln=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=X.createContext(null)):X.createContext(null);ln.Consumer;var Fu=ln.Provider,Bu=Fu,ku=ln;function Zt(){var e=X.useContext(ku);return Pi(e),e}var Vr;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Vr||(Vr={}));var Yr;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Yr||(Yr={}));function Oi(e){var t=function(r){var n=Zt(),a=r.value,i=r.children,o=Le(r,["value","children"]),s=typeof a=="string"?new Date(a||0):a,u=e==="formatDate"?n.formatDateToParts(s,o):n.formatTimeToParts(s,o);return i(u)};return t.displayName=Yr[e],t}function Tt(e){var t=function(r){var n=Zt(),a=r.value,i=r.children,o=Le(r,["value","children"]),s=n[e](a,o);if(typeof i=="function")return i(s);var u=n.textComponent||X.Fragment;return X.createElement(u,null,s)};return t.displayName=Vr[e],t}function Ci(e){return e&&Object.keys(e).reduce(function(t,r){var n=e[r];return t[r]=xi(n)?Hu(n):n,t},{})}var ra=function(e,t,r,n){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var o=Ci(n),s=Wr.apply(void 0,oe([e,t,r,o],a,!1));return Array.isArray(s)?ju(s):s},na=function(e,t){var r=e.defaultRichTextElements,n=Le(e,["defaultRichTextElements"]),a=Ci(r),i=Iu(L(L(L({},_i),n),{defaultRichTextElements:a}),t),o={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:a};return L(L({},i),{formatMessage:ra.bind(null,o,i.formatters),$t:ra.bind(null,o,i.formatters)})};function Uu(e,t){var r=e.values,n=Le(e,["values"]),a=t.values,i=Le(t,["values"]);return qr(a,r)&&qr(n,i)}function Ai(e){var t=Zt(),r=t.formatMessage,n=t.textComponent,a=n===void 0?X.Fragment:n,i=e.id,o=e.description,s=e.defaultMessage,u=e.values,l=e.children,f=e.tagName,d=f===void 0?a:f,E=e.ignoreTag,T={id:i,description:o,defaultMessage:s},w=r(T,u,{ignoreTag:E});return typeof l=="function"?l(Array.isArray(w)?w:[w]):d?X.createElement(d,null,w):X.createElement(X.Fragment,null,w)}Ai.displayName="FormattedMessage";var Ue=X.memo(Ai,Uu);Ue.displayName="MemoizedFormattedMessage";function pr(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var $u=function(e){Ee(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.cache=Ti(),r.state={cache:r.cache,intl:na(pr(r.props),r.cache),prevConfig:pr(r.props)},r}return t.getDerivedStateFromProps=function(r,n){var a=n.prevConfig,i=n.cache,o=pr(r);return qr(a,o)?null:{intl:na(o,i),prevConfig:o}},t.prototype.render=function(){return Pi(this.state.intl),X.createElement(Bu,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=_i,t}(X.PureComponent);Tt("formatDate");Tt("formatTime");Tt("formatNumber");Tt("formatList");Tt("formatDisplayName");Oi("formatDate");Oi("formatTime");const zu={"operation.add":"添加","operation.delete":"删除","operation.batchDelete":"批量删除","operation.edit":"编辑","operation.download":"下载","operation.logout":"退出登录","operation.export":"导出","operation.close":"关闭","operation.details":"详情","operation.confirm":"确认","operation.save":"保存","operation.cancel":"取消","component.table.selected":"已选{length}条","component.table.total":"共{total}条","component.table.visibleError":"列表最少保留一个字段","component.searcharea.toggle":"高级搜索","component.searcharea.submit":"筛选","component.searcharea.reset":"重置","component.searcharea.close":"收起","message.delete":"删除操作无法恢复,确认删除?","message.success":"操作成功","table.pagination.total":"共{total}条"},Gu={"operation.add":"Add","operation.delete":"Delete","operation.batchDelete":"Batch Delete","operation.edit":"Edit","operation.download":"Download","operation.logout":"Logout","operation.export":"Export","operation.close":"Close","operation.details":"Details","operation.confirm":"Confirm","operation.save":"Save","operation.cancel":"Cancel","component.table.selected":"{length} selected","component.table.total":"Total {total} items","component.table.visibleError":"At least one field must be visible","component.searcharea.toggle":"Advanced Search","component.searcharea.submit":"Submit","component.searcharea.reset":"Reset","component.searcharea.close":"Close","message.delete":"This action cannot be undone, confirm delete?","message.success":"Operation successful","table.pagination.total":"Total {total} items"},Wu={zh:zu,en:Gu};function Ni(e,t){const r={...e};for(const n in t)t[n]!==void 0&&(t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?r[n]=Ni(e[n]||{},t[n]):r[n]=t[n]);return r}const Ii={iconButton:{size:"small",render:({children:e,...t})=>e},iconFont:{},locale:"zh"},Jt=O.createContext(Ii);function Di({children:e,config:t}){const r=Ni(Ii,t);return I.jsx(Jt.Provider,{value:r,children:I.jsx($u,{locale:t.locale,messages:Wu[r.locale],children:e})})}exports.message=ie.message;exports.notification=ie.notification;exports.modal=ie.Modal;function qu({children:e}){const t=ie.App.useApp();return exports.message=t.message,exports.modal=t.modal,exports.notification=t.notification,e||""}function Vu({children:e,config:t,...r}){return I.jsx(Di,{config:t||{},children:I.jsxs(ie.App,{...r,children:[I.jsx(ni,{}),I.jsx(qu,{children:e})]})})}var mr={exports:{}};/*!
|
|
98
|
+
0 0 0 18 -6`}),D.jsx("feComposite",{in:"SourceGraphic",in2:"goo",operator:"atop"})]})})})]})})}const Ko={"operation.add":"添加","operation.delete":"删除","operation.batchDelete":"批量删除","operation.edit":"编辑","operation.download":"下载","operation.logout":"退出登录","operation.export":"导出","operation.close":"关闭","operation.details":"详情","operation.confirm":"确认","operation.save":"保存","operation.cancel":"取消","component.table.selected":"已选{length}条","component.table.total":"共{total}条","component.table.visibleError":"列表最少保留一个字段","component.searcharea.toggle":"高级搜索","component.searcharea.submit":"筛选","component.searcharea.reset":"重置","component.searcharea.close":"收起","message.delete":"删除操作无法恢复,确认删除?","message.success":"操作成功","table.pagination.total":"共{total}条"},Jo={"operation.add":"Add","operation.delete":"Delete","operation.batchDelete":"Batch Delete","operation.edit":"Edit","operation.download":"Download","operation.logout":"Logout","operation.export":"Export","operation.close":"Close","operation.details":"Details","operation.confirm":"Confirm","operation.save":"Save","operation.cancel":"Cancel","component.table.selected":"{length} selected","component.table.total":"Total {total} items","component.table.visibleError":"At least one field must be visible","component.searcharea.toggle":"Advanced Search","component.searcharea.submit":"Submit","component.searcharea.reset":"Reset","component.searcharea.close":"Close","message.delete":"This action cannot be undone, confirm delete?","message.success":"Operation successful","table.pagination.total":"Total {total} items"},_r={zh:Ko,en:Jo},Zo=({messages:e,locale:t})=>({id:r,defaultMessage:n,values:o})=>{var i;let a=((i=e==null?void 0:e[t])==null?void 0:i[r])||n;return typeof o=="object"&&Object.keys(o).forEach(u=>{a=a.replace(`{${u}}`,o[u])}),a};function Me({id:e,defaultMessage:t,values:r}){const{messages:n,locale:o}=_.useContext(da);return Zo({messages:n,locale:o})({id:e,defaultMessage:t,values:r})}const Qo={locale:"zh",messages:_r},da=_.createContext(Qo);function ei({children:e,config:t}){return D.jsx(da.Provider,{value:{locale:t.locale,messages:_r},children:e})}function pa(e,t){const r={...e};for(const n in t)t[n]!==void 0&&(t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?r[n]=pa(e[n]||{},t[n]):r[n]=t[n]);return r}const ma={iconButton:{size:"small",render:({children:e})=>e},iconFont:{},locale:"zh"},At=_.createContext(ma);function ha({children:e,config:t}){const r=pa(ma,t);return D.jsx(At.Provider,{value:r,children:D.jsx(ei,{config:{locale:t.locale,messages:_r},children:e})})}exports.message=te.message;exports.notification=te.notification;exports.modal=te.Modal;function ti({children:e}){const t=te.App.useApp();return exports.message=t.message,exports.modal=t.modal,exports.notification=t.notification,e||""}function ri({children:e,config:t,...r}){return D.jsx(ha,{config:t||{},children:D.jsxs(te.App,{...r,children:[D.jsx(fa,{}),D.jsx(ti,{children:e})]})})}var Ht={exports:{}};/*!
|
|
120
99
|
Copyright (c) 2018 Jed Watson.
|
|
121
100
|
Licensed under the MIT License (MIT), see
|
|
122
101
|
http://jedwatson.github.io/classnames
|
|
123
|
-
*/var
|
|
102
|
+
*/var dn;function ni(){return dn||(dn=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",i=0;i<arguments.length;i++){var u=arguments[i];u&&(a=o(a,n(u)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var u in a)t.call(a,u)&&a[u]&&(i=o(i,u));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Ht)),Ht.exports}var ai=ni();const mr=Tt(ai),Cr=_.forwardRef(({type:e="",className:t="",symbol:r=!1,style:n,...o},a)=>{const{iconFont:i}=_.useContext(At);return r?D.jsx("svg",{className:mr(["iconfont-symbol",i.className||"",e,t]),"aria-hidden":"true",ref:a,style:{...i.style,...n||{}},...o,children:D.jsx("use",{xlinkHref:`#${e}`})}):D.jsx("i",{className:mr(["iconfont",i.className||"",e,t]),ref:a,style:{...i.style,...n||{}},...o})}),oi=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,trueLabel:o="",falseLabel:a="",children:i,...u})=>{const c=e===r,l=g=>{t==null||t(g.target.checked?r:n,g)};return D.jsx(te.Checkbox,{checked:c,onChange:l,...u,children:i||(c?o:a)})},ii=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,...o})=>{const a=e===r,i=(u,c)=>{t==null||t(u?r:n,c)};return D.jsx(te.Switch,{checked:a,onChange:i,...o})};var si=typeof global=="object"&&global&&global.Object===Object&&global,ui=typeof self=="object"&&self&&self.Object===Object&&self,ci=si||ui||Function("return this")(),Et=ci.Symbol,ga=Object.prototype,li=ga.hasOwnProperty,fi=ga.toString,Ue=Et?Et.toStringTag:void 0;function di(e){var t=li.call(e,Ue),r=e[Ue];try{e[Ue]=void 0;var n=!0}catch{}var o=fi.call(e);return n&&(t?e[Ue]=r:delete e[Ue]),o}var pi=Object.prototype,mi=pi.toString;function hi(e){return mi.call(e)}var gi="[object Null]",vi="[object Undefined]",pn=Et?Et.toStringTag:void 0;function yi(e){return e==null?e===void 0?vi:gi:pn&&pn in Object(e)?di(e):hi(e)}function bi(e){return e!=null&&typeof e=="object"}var xi=Array.isArray;function Si(){}var Ei="[object String]";function wi(e){return typeof e=="string"||!xi(e)&&bi(e)&&yi(e)==Ei}const Ti=_.forwardRef((e,t)=>D.jsx(te.Button,{ref:t,...e})),Ri=se(Ti)`
|
|
124
103
|
&&.icon-button {
|
|
125
104
|
font-size: 18px;
|
|
126
105
|
color: var(--color-primary);
|
|
@@ -139,14 +118,14 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
139
118
|
background: var(--color-primary-bg);
|
|
140
119
|
}
|
|
141
120
|
}
|
|
142
|
-
`,vl=({children:e,tooltipDisabled:t,disabled:r,disabledReason:n,title:a,...i})=>t?e:I.jsx(ie.Tooltip,{title:r&&n||a,...i,children:e}),yl=O.forwardRef((e,t)=>{const{iconButton:r}=O.useContext(Jt),{icon:n,tooltipDisabled:a=!1,title:i,hide:o=!1,disabledReason:s,onClick:u=dl,disabled:l,size:f=r.size||"small",style:d={},className:E,loading:T=!1,...w}=e,b=()=>pl(n)?I.jsx(cn,{type:n}):n,x=r.render;return n||console.warn("Icon props not found"),I.jsx(x,{...e,children:I.jsx(vl,{tooltipDisabled:a,hide:o,disabled:l,disabledReason:s,title:i,...w,children:I.jsx(gl,{ref:t,icon:b(),size:f,className:Xr(["icon-button",r.className,E]),disabled:l,style:{...r.style,...d},loading:T,onClick:u})})})});var bl=function(e){return function(t,r){var n=O.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},ze=function(e){return typeof e=="function"},xl=function(e){return typeof e>"u"},Kt=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function Ie(e){Kt&&(ze(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=O.useRef(e);t.current=O.useMemo(function(){return e},[e]);var r=O.useRef(void 0);return r.current||(r.current=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return t.current.apply(this,n)}),r.current}const zt=bl(O.useEffect);var Li=function(e,t){var r=t.manual,n=t.ready,a=n===void 0?!0:n,i=t.defaultParams,o=i===void 0?[]:i,s=t.refreshDeps,u=s===void 0?[]:s,l=t.refreshDepsAction,f=O.useRef(!1);return f.current=!1,zt(function(){!r&&a&&(f.current=!0,e.run.apply(e,oe([],me(o),!1)))},[a]),zt(function(){f.current||r||(f.current=!0,l?l():e.refresh())},oe([],me(u),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};Li.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function Zr(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var ji=function(e,t){var r=O.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!Zr(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function fn(e){var t=O.useRef(e);return t.current=e,t}var Qt=function(e){Kt&&(ze(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=fn(e);O.useEffect(function(){return function(){t.current()}},[])},Bt=new Map,El=function(e,t,r){var n=Bt.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var a=void 0;t>-1&&(a=setTimeout(function(){Bt.delete(e)},t)),Bt.set(e,L(L({},r),{timer:a}))},Sl=function(e){return Bt.get(e)},kt=new Map,Tl=function(e){return kt.get(e)},wl=function(e,t){kt.set(e,t),t.then(function(r){return kt.delete(e),r}).catch(function(){kt.delete(e)})},ke={},Rl=function(e,t){ke[e]&&ke[e].forEach(function(r){return r(t)})},gr=function(e,t){return ke[e]||(ke[e]=[]),ke[e].push(t),function(){var n=ke[e].indexOf(t);ke[e].splice(n,1)}},Pl=function(e,t){var r=t.cacheKey,n=t.cacheTime,a=n===void 0?5*60*1e3:n,i=t.staleTime,o=i===void 0?0:i,s=t.setCache,u=t.getCache,l=O.useRef(void 0),f=O.useRef(void 0),d=function(T,w){s?s(w):El(T,a,w),Rl(T,w.data)},E=function(T,w){return w===void 0&&(w=[]),u?u(w):Sl(T)};return ji(function(){if(r){var T=E(r);T&&Object.hasOwnProperty.call(T,"data")&&(e.state.data=T.data,e.state.params=T.params,(o===-1||Date.now()-T.time<=o)&&(e.state.loading=!1)),l.current=gr(r,function(w){e.setState({data:w})})}},[]),Qt(function(){var T;(T=l.current)===null||T===void 0||T.call(l)}),r?{onBefore:function(T){var w=E(r,T);return!w||!Object.hasOwnProperty.call(w,"data")?{}:o===-1||Date.now()-w.time<=o?{loading:!1,data:w==null?void 0:w.data,error:void 0,returnNow:!0}:{data:w==null?void 0:w.data,error:void 0}},onRequest:function(T,w){var b=Tl(r);return b&&b!==f.current?{servicePromise:b}:(b=T.apply(void 0,oe([],me(w),!1)),f.current=b,wl(r,b),{servicePromise:b})},onSuccess:function(T,w){var b;r&&((b=l.current)===null||b===void 0||b.call(l),d(r,{data:T,params:w,time:Date.now()}),l.current=gr(r,function(x){e.setState({data:x})}))},onMutate:function(T){var w;r&&((w=l.current)===null||w===void 0||w.call(l),d(r,{data:T,params:e.state.params,time:Date.now()}),l.current=gr(r,function(b){e.setState({data:b})}))}}:{}},vr,oa;function dn(){if(oa)return vr;oa=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return vr=e,vr}var yr,sa;function _l(){if(sa)return yr;sa=1;var e=typeof wt=="object"&&wt&&wt.Object===Object&&wt;return yr=e,yr}var br,ua;function Hi(){if(ua)return br;ua=1;var e=_l(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return br=r,br}var xr,la;function Ol(){if(la)return xr;la=1;var e=Hi(),t=function(){return e.Date.now()};return xr=t,xr}var Er,ca;function Cl(){if(ca)return Er;ca=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Er=t,Er}var Sr,fa;function Al(){if(fa)return Sr;fa=1;var e=Cl(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Sr=r,Sr}var Tr,da;function Fi(){if(da)return Tr;da=1;var e=Hi(),t=e.Symbol;return Tr=t,Tr}var wr,ha;function Nl(){if(ha)return wr;ha=1;var e=Fi(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(o){var s=r.call(o,a),u=o[a];try{o[a]=void 0;var l=!0}catch{}var f=n.call(o);return l&&(s?o[a]=u:delete o[a]),f}return wr=i,wr}var Rr,pa;function Il(){if(pa)return Rr;pa=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Rr=r,Rr}var Pr,ma;function Dl(){if(ma)return Pr;ma=1;var e=Fi(),t=Nl(),r=Il(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?a:n:i&&i in Object(s)?t(s):r(s)}return Pr=o,Pr}var _r,ga;function Ml(){if(ga)return _r;ga=1;function e(t){return t!=null&&typeof t=="object"}return _r=e,_r}var Or,va;function Ll(){if(va)return Or;va=1;var e=Dl(),t=Ml(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return Or=n,Or}var Cr,ya;function jl(){if(ya)return Cr;ya=1;var e=Al(),t=dn(),r=Ll(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var f=typeof l.valueOf=="function"?l.valueOf():l;l=t(f)?f+"":f}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=i.test(l);return d||o.test(l)?s(l.slice(2),d?2:8):a.test(l)?n:+l}return Cr=u,Cr}var Ar,ba;function Bi(){if(ba)return Ar;ba=1;var e=dn(),t=Ol(),r=jl(),n="Expected a function",a=Math.max,i=Math.min;function o(s,u,l){var f,d,E,T,w,b,x=0,p=!1,h=!1,m=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(l)&&(p=!!l.leading,h="maxWait"in l,E=h?a(r(l.maxWait)||0,u):E,m="trailing"in l?!!l.trailing:m);function v(D){var k=f,z=d;return f=d=void 0,x=D,T=s.apply(z,k),T}function c(D){return x=D,w=setTimeout(R,u),p?v(D):T}function y(D){var k=D-b,z=D-x,H=u-k;return h?i(H,E-z):H}function g(D){var k=D-b,z=D-x;return b===void 0||k>=u||k<0||h&&z>=E}function R(){var D=t();if(g(D))return C(D);w=setTimeout(R,y(D))}function C(D){return w=void 0,m&&f?v(D):(f=d=void 0,T)}function N(){w!==void 0&&clearTimeout(w),x=0,f=b=d=w=void 0}function A(){return w===void 0?T:C(t())}function F(){var D=t(),k=g(D);if(f=arguments,d=this,b=D,k){if(w===void 0)return c(b);if(h)return clearTimeout(w),w=setTimeout(R,u),v(b)}return w===void 0&&(w=setTimeout(R,u)),T}return F.cancel=N,F.flush=A,F}return Ar=o,Ar}var Hl=Bi();const Fl=Gt(Hl);var Bl=function(e,t){var r=t.debounceWait,n=t.debounceLeading,a=t.debounceTrailing,i=t.debounceMaxWait,o=O.useRef(void 0),s=O.useMemo(function(){var u={};return n!==void 0&&(u.leading=n),a!==void 0&&(u.trailing=a),i!==void 0&&(u.maxWait=i),u},[n,a,i]);return O.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=Fl(function(l){l()},r,s),e.runAsync=function(){for(var l=[],f=0;f<arguments.length;f++)l[f]=arguments[f];return new Promise(function(d,E){var T;(T=o.current)===null||T===void 0||T.call(o,function(){u.apply(void 0,oe([],me(l),!1)).then(d).catch(E)})})},function(){var l;(l=o.current)===null||l===void 0||l.cancel(),e.runAsync=u}}},[r,s]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},kl=function(e,t){var r=t.loadingDelay,n=t.ready,a=O.useRef(void 0);if(!r)return{};var i=function(){a.current&&clearTimeout(a.current)};return{onBefore:function(){return i(),n!==!1&&(a.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){i()},onCancel:function(){i()}}},Qe=!!(typeof window<"u"&&window.document&&window.document.createElement);function hn(){return Qe?document.visibilityState!=="hidden":!0}var ht=[];function Ul(e){return ht.push(e),function(){var r=ht.indexOf(e);ht.splice(r,1)}}if(Qe){var $l=function(){if(hn())for(var e=0;e<ht.length;e++){var t=ht[e];t()}};window.addEventListener("visibilitychange",$l,!1)}var zl=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,a=n===void 0?!0:n,i=t.pollingErrorRetryCount,o=i===void 0?-1:i,s=O.useRef(void 0),u=O.useRef(void 0),l=O.useRef(0),f=function(){var d;s.current&&clearTimeout(s.current),(d=u.current)===null||d===void 0||d.call(u)};return zt(function(){r||f()},[r]),r?{onBefore:function(){f()},onError:function(){l.current+=1},onSuccess:function(){l.current=0},onFinally:function(){o===-1||o!==-1&&l.current<=o?s.current=setTimeout(function(){!a&&!hn()?u.current=Ul(function(){e.refresh()}):e.refresh()},r):l.current=0},onCancel:function(){f()}}:{}};function Gl(e,t){var r=!1;return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];r||(r=!0,e.apply(void 0,oe([],me(n),!1)),setTimeout(function(){r=!1},t))}}var Wl=function(){return Qe&&typeof navigator.onLine<"u"?navigator.onLine:!0},pt=[];function ql(e){return pt.push(e),function(){var r=pt.indexOf(e);r>-1&&pt.splice(r,1)}}if(Qe){var xa=function(){if(!(!hn()||!Wl()))for(var e=0;e<pt.length;e++){var t=pt[e];t()}};window.addEventListener("visibilitychange",xa,!1),window.addEventListener("focus",xa,!1)}var Vl=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,a=n===void 0?5e3:n,i=O.useRef(void 0),o=function(){var s;(s=i.current)===null||s===void 0||s.call(i)};return O.useEffect(function(){if(r){var s=Gl(e.refresh.bind(e),a);i.current=ql(function(){s()})}return function(){o()}},[r,a]),Qt(function(){o()}),{}},Yl=function(e,t){var r=t.retryInterval,n=t.retryCount,a=O.useRef(void 0),i=O.useRef(0),o=O.useRef(!1);return n?{onBefore:function(){o.current||(i.current=0),o.current=!1,a.current&&clearTimeout(a.current)},onSuccess:function(){i.current=0},onError:function(){if(i.current+=1,n===-1||i.current<=n){var s=r??Math.min(1e3*Math.pow(2,i.current),3e4);a.current=setTimeout(function(){o.current=!0,e.refresh()},s)}else i.current=0},onCancel:function(){i.current=0,a.current&&clearTimeout(a.current)}}:{}},Nr,Ea;function Xl(){if(Ea)return Nr;Ea=1;var e=Bi(),t=dn(),r="Expected a function";function n(a,i,o){var s=!0,u=!0;if(typeof a!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),e(a,i,{leading:s,maxWait:i,trailing:u})}return Nr=n,Nr}var Zl=Xl();const Jl=Gt(Zl);var Kl=function(e,t){var r=t.throttleWait,n=t.throttleLeading,a=t.throttleTrailing,i=O.useRef(void 0),o={};return n!==void 0&&(o.leading=n),a!==void 0&&(o.trailing=a),O.useEffect(function(){if(r){var s=e.runAsync.bind(e);return i.current=Jl(function(u){u()},r,o),e.runAsync=function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];return new Promise(function(f,d){var E;(E=i.current)===null||E===void 0||E.call(i,function(){s.apply(void 0,oe([],me(u),!1)).then(f).catch(d)})})},function(){var u;e.runAsync=s,(u=i.current)===null||u===void 0||u.cancel()}}},[r,n,a]),r?{onCancel:function(){var s;(s=i.current)===null||s===void 0||s.cancel()}}:{}},Ql=function(e){Kt&&(ze(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),O.useEffect(function(){e==null||e()},[])},ec=function(){var e=me(O.useState({}),2),t=e[1];return O.useCallback(function(){return t({})},[])},tc=function(){function e(t,r,n,a){a===void 0&&(a={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=a,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=L(L(L({},this.state),{loading:!r.manual}),a)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=L(L({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var a=this.pluginImpls.map(function(i){var o;return(o=i[t])===null||o===void 0?void 0:o.call.apply(o,oe([i],me(r),!1))}).filter(Boolean);return Object.assign.apply(Object,oe([{}],me(a),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return hs(this,void 0,void 0,function(){var n,a,i,o,s,u,l,f,d,E,T,w,b,x,p,h,m,v,c,y,g;return ps(this,function(R){switch(R.label){case 0:if(this.count+=1,n=this.count,a=this.runPluginHandler("onBefore",t),i=a.stopNow,o=i===void 0?!1:i,s=a.returnNow,u=s===void 0?!1:s,l=Le(a,["stopNow","returnNow"]),o)return[2,new Promise(function(){})];if(this.setState(L({loading:!0,params:t},l)),u)return[2,Promise.resolve(l.data)];(b=(w=this.options).onBefore)===null||b===void 0||b.call(w,t),R.label=1;case 1:return R.trys.push([1,3,,4]),f=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,f||(f=(T=this.serviceRef).current.apply(T,oe([],me(t),!1))),[4,f];case 2:return d=R.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(p=(x=this.options).onSuccess)===null||p===void 0||p.call(x,d,t),this.runPluginHandler("onSuccess",d,t),(m=(h=this.options).onFinally)===null||m===void 0||m.call(h,t,d,void 0),n===this.count&&this.runPluginHandler("onFinally",t,d,void 0),[2,d]);case 3:if(E=R.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:E,loading:!1}),(c=(v=this.options).onError)===null||c===void 0||c.call(v,E,t),this.runPluginHandler("onError",E,t),(g=(y=this.options).onFinally)===null||g===void 0||g.call(y,t,void 0,E),n===this.count&&this.runPluginHandler("onFinally",t,void 0,E),E;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,oe([],me(r),!1)).catch(function(a){t.options.onError||console.error(a)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,oe([],me(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,oe([],me(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=ze(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function rc(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,a=n===void 0?!1:n,i=t.ready,o=i===void 0?!0:i,s=Le(t,["manual","ready"]);Kt&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var u=L({manual:a,ready:o},s),l=fn(e),f=ec(),d=ji(function(){var E=r.map(function(T){var w;return(w=T==null?void 0:T.onInit)===null||w===void 0?void 0:w.call(T,u)}).filter(Boolean);return new tc(l,u,f,Object.assign.apply(Object,oe([{}],me(E),!1)))},[]);return d.options=u,d.pluginImpls=r.map(function(E){return E(d,u)}),Ql(function(){if(!a&&o){var E=d.state.params||t.defaultParams||[];d.run.apply(d,oe([],me(E),!1))}}),Qt(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:Ie(d.cancel.bind(d)),refresh:Ie(d.refresh.bind(d)),refreshAsync:Ie(d.refreshAsync.bind(d)),run:Ie(d.run.bind(d)),runAsync:Ie(d.runAsync.bind(d)),mutate:Ie(d.mutate.bind(d))}}function nc(e,t,r){return rc(e,t,oe(oe([],me(r||[]),!1),[Bl,kl,zl,Vl,Kl,Li,Pl,Yl],!1))}function ki(e,t){if(Qe){if(!e)return t;var r;return ze(e)?r=e():"current"in e?r=e.current:r=e,r}}var ac=function(e){var t=function(r,n,a){var i=O.useRef(!1),o=O.useRef([]),s=O.useRef([]),u=O.useRef(void 0);e(function(){var l,f=Array.isArray(a)?a:[a],d=f.map(function(E){return ki(E)});if(!i.current){i.current=!0,o.current=d,s.current=n,u.current=r();return}(d.length!==o.current.length||!Zr(o.current,d)||!Zr(s.current,n))&&((l=u.current)===null||l===void 0||l.call(u),o.current=d,s.current=n,u.current=r())}),Qt(function(){var l;(l=u.current)===null||l===void 0||l.call(u),i.current=!1})};return t},ic=ac(O.useEffect);function Sa(e,t,r){r===void 0&&(r={});var n=r.enable,a=n===void 0?!0:n,i=fn(t);ic(function(){if(a){var o=ki(r.target,window);if(o!=null&&o.addEventListener){var s=function(l){return i.current(l)},u=Array.isArray(e)?e:[e];return u.forEach(function(l){o.addEventListener(l,s,{capture:r.capture,once:r.once,passive:r.passive})}),function(){u.forEach(function(l){o.removeEventListener(l,s,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,a],r.target)}var Ta="AHOOKS_SYNC_STORAGE_EVENT_NAME";function oc(e){function t(r,n){n===void 0&&(n={});var a,i=n.listenStorageChange,o=i===void 0?!1:i,s=n.onError,u=s===void 0?function(h){console.error(h)}:s;try{a=e()}catch(h){u(h)}var l=function(h){return n.serializer?n.serializer(h):JSON.stringify(h)},f=function(h){return n.deserializer?n.deserializer(h):JSON.parse(h)};function d(){try{var h=a==null?void 0:a.getItem(r);if(h)return f(h)}catch(m){u(m)}return ze(n.defaultValue)?n.defaultValue():n.defaultValue}var E=me(O.useState(d),2),T=E[0],w=E[1];zt(function(){w(d())},[r]);var b=function(h){var m=ze(h)?h(T):h;o||w(m);try{var v=void 0,c=a==null?void 0:a.getItem(r);xl(m)?(v=null,a==null||a.removeItem(r)):(v=l(m),a==null||a.setItem(r,v)),dispatchEvent(new CustomEvent(Ta,{detail:{key:r,newValue:v,oldValue:c,storageArea:a}}))}catch(y){u(y)}},x=function(h){h.key!==r||h.storageArea!==a||w(d())},p=function(h){x(h.detail)};return Sa("storage",x,{enable:o}),Sa(Ta,p,{enable:o}),[T,Ie(b)]}return t}var Ui=oc(function(){return Qe?localStorage:void 0});const sc=sn`
|
|
121
|
+
`,Oi=({children:e,tooltipDisabled:t,disabled:r,disabledReason:n,title:o,...a})=>t?e:D.jsx(te.Tooltip,{title:r&&n||o,...a,children:e}),Pi=_.forwardRef((e,t)=>{const{iconButton:r}=_.useContext(At),{icon:n,tooltipDisabled:o=!1,title:a,hide:i=!1,disabledReason:u,onClick:c=Si,disabled:l,size:g=r.size||"small",style:d={},className:T,loading:E=!1,...w}=e,x=()=>wi(n)?D.jsx(Cr,{type:n}):n,S=r.render;return n||console.warn("Icon props not found"),D.jsx(S,{...e,children:D.jsx(Oi,{tooltipDisabled:o,hide:i,disabled:l,disabledReason:u,title:a,...w,children:D.jsx(Ri,{ref:t,icon:x(),size:g,className:mr(["icon-button",r.className,T]),disabled:l,style:{...r.style,...d},loading:E,onClick:c})})})});var _i=function(e){return function(t,r){var n=_.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},he=function(){return he=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},he.apply(this,arguments)};function jt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function Ci(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function u(g){try{l(n.next(g))}catch(d){i(d)}}function c(g){try{l(n.throw(g))}catch(d){i(d)}}function l(g){g.done?a(g.value):o(g.value).then(u,c)}l((n=n.apply(e,t||[])).next())})}function Ai(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(l){return function(g){return c([l,g])}}function c(l){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(r=0)),r;)try{if(n=1,o&&(a=l[0]&2?o.return:l[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,l[1])).done)return a;switch(o=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1],a=l;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(l);break}a[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(g){l=[6,g],o=0}finally{n=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function le(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(u){i={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function de(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Ce=function(e){return typeof e=="function"},ji=function(e){return typeof e>"u"},Dt=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test";function we(e){Dt&&(Ce(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=_.useRef(e);t.current=_.useMemo(function(){return e},[e]);var r=_.useRef(void 0);return r.current||(r.current=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return t.current.apply(this,n)}),r.current}const wt=_i(_.useEffect);var va=function(e,t){var r=t.manual,n=t.ready,o=n===void 0?!0:n,a=t.defaultParams,i=a===void 0?[]:a,u=t.refreshDeps,c=u===void 0?[]:u,l=t.refreshDepsAction,g=_.useRef(!1);return g.current=!1,wt(function(){!r&&o&&(g.current=!0,e.run.apply(e,de([],le(i),!1)))},[o]),wt(function(){g.current||r||(g.current=!0,l?l():e.refresh())},de([],le(c),!1)),{onBefore:function(){if(!o)return{stopNow:!0}}}};va.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function hr(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var ya=function(e,t){var r=_.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!hr(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function Ar(e){var t=_.useRef(e);return t.current=e,t}var Nt=function(e){Dt&&(Ce(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=Ar(e);_.useEffect(function(){return function(){t.current()}},[])},bt=new Map,Di=function(e,t,r){var n=bt.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var o=void 0;t>-1&&(o=setTimeout(function(){bt.delete(e)},t)),bt.set(e,he(he({},r),{timer:o}))},Ni=function(e){return bt.get(e)},xt=new Map,Mi=function(e){return xt.get(e)},ki=function(e,t){xt.set(e,t),t.then(function(r){return xt.delete(e),r}).catch(function(){xt.delete(e)})},_e={},Ii=function(e,t){_e[e]&&_e[e].forEach(function(r){return r(t)})},Bt=function(e,t){return _e[e]||(_e[e]=[]),_e[e].push(t),function(){var n=_e[e].indexOf(t);_e[e].splice(n,1)}},$i=function(e,t){var r=t.cacheKey,n=t.cacheTime,o=n===void 0?5*60*1e3:n,a=t.staleTime,i=a===void 0?0:a,u=t.setCache,c=t.getCache,l=_.useRef(void 0),g=_.useRef(void 0),d=function(E,w){u?u(w):Di(E,o,w),Ii(E,w.data)},T=function(E,w){return w===void 0&&(w=[]),c?c(w):Ni(E)};return ya(function(){if(r){var E=T(r);E&&Object.hasOwnProperty.call(E,"data")&&(e.state.data=E.data,e.state.params=E.params,(i===-1||Date.now()-E.time<=i)&&(e.state.loading=!1)),l.current=Bt(r,function(w){e.setState({data:w})})}},[]),Nt(function(){var E;(E=l.current)===null||E===void 0||E.call(l)}),r?{onBefore:function(E){var w=T(r,E);return!w||!Object.hasOwnProperty.call(w,"data")?{}:i===-1||Date.now()-w.time<=i?{loading:!1,data:w==null?void 0:w.data,error:void 0,returnNow:!0}:{data:w==null?void 0:w.data,error:void 0}},onRequest:function(E,w){var x=Mi(r);return x&&x!==g.current?{servicePromise:x}:(x=E.apply(void 0,de([],le(w),!1)),g.current=x,ki(r,x),{servicePromise:x})},onSuccess:function(E,w){var x;r&&((x=l.current)===null||x===void 0||x.call(l),d(r,{data:E,params:w,time:Date.now()}),l.current=Bt(r,function(S){e.setState({data:S})}))},onMutate:function(E){var w;r&&((w=l.current)===null||w===void 0||w.call(l),d(r,{data:E,params:e.state.params,time:Date.now()}),l.current=Bt(r,function(x){e.setState({data:x})}))}}:{}},Vt,mn;function jr(){if(mn)return Vt;mn=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Vt=e,Vt}var Xt,hn;function zi(){if(hn)return Xt;hn=1;var e=typeof st=="object"&&st&&st.Object===Object&&st;return Xt=e,Xt}var Gt,gn;function ba(){if(gn)return Gt;gn=1;var e=zi(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Gt=r,Gt}var Kt,vn;function Li(){if(vn)return Kt;vn=1;var e=ba(),t=function(){return e.Date.now()};return Kt=t,Kt}var Jt,yn;function Fi(){if(yn)return Jt;yn=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Jt=t,Jt}var Zt,bn;function qi(){if(bn)return Zt;bn=1;var e=Fi(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Zt=r,Zt}var Qt,xn;function xa(){if(xn)return Qt;xn=1;var e=ba(),t=e.Symbol;return Qt=t,Qt}var er,Sn;function Wi(){if(Sn)return er;Sn=1;var e=xa(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function a(i){var u=r.call(i,o),c=i[o];try{i[o]=void 0;var l=!0}catch{}var g=n.call(i);return l&&(u?i[o]=c:delete i[o]),g}return er=a,er}var tr,En;function Yi(){if(En)return tr;En=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return tr=r,tr}var rr,wn;function Ui(){if(wn)return rr;wn=1;var e=xa(),t=Wi(),r=Yi(),n="[object Null]",o="[object Undefined]",a=e?e.toStringTag:void 0;function i(u){return u==null?u===void 0?o:n:a&&a in Object(u)?t(u):r(u)}return rr=i,rr}var nr,Tn;function Hi(){if(Tn)return nr;Tn=1;function e(t){return t!=null&&typeof t=="object"}return nr=e,nr}var ar,Rn;function Bi(){if(Rn)return ar;Rn=1;var e=Ui(),t=Hi(),r="[object Symbol]";function n(o){return typeof o=="symbol"||t(o)&&e(o)==r}return ar=n,ar}var or,On;function Vi(){if(On)return or;On=1;var e=qi(),t=jr(),r=Bi(),n=NaN,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,u=parseInt;function c(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var g=typeof l.valueOf=="function"?l.valueOf():l;l=t(g)?g+"":g}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=a.test(l);return d||i.test(l)?u(l.slice(2),d?2:8):o.test(l)?n:+l}return or=c,or}var ir,Pn;function Sa(){if(Pn)return ir;Pn=1;var e=jr(),t=Li(),r=Vi(),n="Expected a function",o=Math.max,a=Math.min;function i(u,c,l){var g,d,T,E,w,x,S=0,m=!1,f=!1,h=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,e(l)&&(m=!!l.leading,f="maxWait"in l,T=f?o(r(l.maxWait)||0,c):T,h="trailing"in l?!!l.trailing:h);function v(N){var L=g,W=d;return g=d=void 0,S=N,E=u.apply(W,L),E}function s(N){return S=N,w=setTimeout(R,c),m?v(N):E}function y(N){var L=N-x,W=N-S,I=c-L;return f?a(I,T-W):I}function p(N){var L=N-x,W=N-S;return x===void 0||L>=c||L<0||f&&W>=T}function R(){var N=t();if(p(N))return C(N);w=setTimeout(R,y(N))}function C(N){return w=void 0,h&&g?v(N):(g=d=void 0,E)}function j(){w!==void 0&&clearTimeout(w),S=0,g=x=d=w=void 0}function A(){return w===void 0?E:C(t())}function $(){var N=t(),L=p(N);if(g=arguments,d=this,x=N,L){if(w===void 0)return s(x);if(f)return clearTimeout(w),w=setTimeout(R,c),v(x)}return w===void 0&&(w=setTimeout(R,c)),E}return $.cancel=j,$.flush=A,$}return ir=i,ir}var Xi=Sa();const Gi=Tt(Xi);var Ki=function(e,t){var r=t.debounceWait,n=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,i=_.useRef(void 0),u=_.useMemo(function(){var c={};return n!==void 0&&(c.leading=n),o!==void 0&&(c.trailing=o),a!==void 0&&(c.maxWait=a),c},[n,o,a]);return _.useEffect(function(){if(r){var c=e.runAsync.bind(e);return i.current=Gi(function(l){l()},r,u),e.runAsync=function(){for(var l=[],g=0;g<arguments.length;g++)l[g]=arguments[g];return new Promise(function(d,T){var E;(E=i.current)===null||E===void 0||E.call(i,function(){c.apply(void 0,de([],le(l),!1)).then(d).catch(T)})})},function(){var l;(l=i.current)===null||l===void 0||l.cancel(),e.runAsync=c}}},[r,u]),r?{onCancel:function(){var c;(c=i.current)===null||c===void 0||c.cancel()}}:{}},Ji=function(e,t){var r=t.loadingDelay,n=t.ready,o=_.useRef(void 0);if(!r)return{};var a=function(){o.current&&clearTimeout(o.current)};return{onBefore:function(){return a(),n!==!1&&(o.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}},ze=!!(typeof window<"u"&&window.document&&window.document.createElement);function Dr(){return ze?document.visibilityState!=="hidden":!0}var Ze=[];function Zi(e){return Ze.push(e),function(){var r=Ze.indexOf(e);Ze.splice(r,1)}}if(ze){var Qi=function(){if(Dr())for(var e=0;e<Ze.length;e++){var t=Ze[e];t()}};window.addEventListener("visibilitychange",Qi,!1)}var es=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,o=n===void 0?!0:n,a=t.pollingErrorRetryCount,i=a===void 0?-1:a,u=_.useRef(void 0),c=_.useRef(void 0),l=_.useRef(0),g=function(){var d;u.current&&clearTimeout(u.current),(d=c.current)===null||d===void 0||d.call(c)};return wt(function(){r||g()},[r]),r?{onBefore:function(){g()},onError:function(){l.current+=1},onSuccess:function(){l.current=0},onFinally:function(){i===-1||i!==-1&&l.current<=i?u.current=setTimeout(function(){!o&&!Dr()?c.current=Zi(function(){e.refresh()}):e.refresh()},r):l.current=0},onCancel:function(){g()}}:{}};function ts(e,t){var r=!1;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];r||(r=!0,e.apply(void 0,de([],le(n),!1)),setTimeout(function(){r=!1},t))}}var rs=function(){return ze&&typeof navigator.onLine<"u"?navigator.onLine:!0},Qe=[];function ns(e){return Qe.push(e),function(){var r=Qe.indexOf(e);r>-1&&Qe.splice(r,1)}}if(ze){var _n=function(){if(!(!Dr()||!rs()))for(var e=0;e<Qe.length;e++){var t=Qe[e];t()}};window.addEventListener("visibilitychange",_n,!1),window.addEventListener("focus",_n,!1)}var as=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,o=n===void 0?5e3:n,a=_.useRef(void 0),i=function(){var u;(u=a.current)===null||u===void 0||u.call(a)};return _.useEffect(function(){if(r){var u=ts(e.refresh.bind(e),o);a.current=ns(function(){u()})}return function(){i()}},[r,o]),Nt(function(){i()}),{}},os=function(e,t){var r=t.retryInterval,n=t.retryCount,o=_.useRef(void 0),a=_.useRef(0),i=_.useRef(!1);return n?{onBefore:function(){i.current||(a.current=0),i.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,n===-1||a.current<=n){var u=r??Math.min(1e3*Math.pow(2,a.current),3e4);o.current=setTimeout(function(){i.current=!0,e.refresh()},u)}else a.current=0},onCancel:function(){a.current=0,o.current&&clearTimeout(o.current)}}:{}},sr,Cn;function is(){if(Cn)return sr;Cn=1;var e=Sa(),t=jr(),r="Expected a function";function n(o,a,i){var u=!0,c=!0;if(typeof o!="function")throw new TypeError(r);return t(i)&&(u="leading"in i?!!i.leading:u,c="trailing"in i?!!i.trailing:c),e(o,a,{leading:u,maxWait:a,trailing:c})}return sr=n,sr}var ss=is();const us=Tt(ss);var cs=function(e,t){var r=t.throttleWait,n=t.throttleLeading,o=t.throttleTrailing,a=_.useRef(void 0),i={};return n!==void 0&&(i.leading=n),o!==void 0&&(i.trailing=o),_.useEffect(function(){if(r){var u=e.runAsync.bind(e);return a.current=us(function(c){c()},r,i),e.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(g,d){var T;(T=a.current)===null||T===void 0||T.call(a,function(){u.apply(void 0,de([],le(c),!1)).then(g).catch(d)})})},function(){var c;e.runAsync=u,(c=a.current)===null||c===void 0||c.cancel()}}},[r,n,o]),r?{onCancel:function(){var u;(u=a.current)===null||u===void 0||u.cancel()}}:{}},ls=function(e){Dt&&(Ce(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),_.useEffect(function(){e==null||e()},[])},fs=function(){var e=le(_.useState({}),2),t=e[1];return _.useCallback(function(){return t({})},[])},ds=function(){function e(t,r,n,o){o===void 0&&(o={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=o,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=he(he(he({},this.state),{loading:!r.manual}),o)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=he(he({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=this.pluginImpls.map(function(a){var i;return(i=a[t])===null||i===void 0?void 0:i.call.apply(i,de([a],le(r),!1))}).filter(Boolean);return Object.assign.apply(Object,de([{}],le(o),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ci(this,void 0,void 0,function(){var n,o,a,i,u,c,l,g,d,T,E,w,x,S,m,f,h,v,s,y,p;return Ai(this,function(R){switch(R.label){case 0:if(this.count+=1,n=this.count,o=this.runPluginHandler("onBefore",t),a=o.stopNow,i=a===void 0?!1:a,u=o.returnNow,c=u===void 0?!1:u,l=jt(o,["stopNow","returnNow"]),i)return[2,new Promise(function(){})];if(this.setState(he({loading:!0,params:t},l)),c)return[2,Promise.resolve(l.data)];(x=(w=this.options).onBefore)===null||x===void 0||x.call(w,t),R.label=1;case 1:return R.trys.push([1,3,,4]),g=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,g||(g=(E=this.serviceRef).current.apply(E,de([],le(t),!1))),[4,g];case 2:return d=R.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(m=(S=this.options).onSuccess)===null||m===void 0||m.call(S,d,t),this.runPluginHandler("onSuccess",d,t),(h=(f=this.options).onFinally)===null||h===void 0||h.call(f,t,d,void 0),n===this.count&&this.runPluginHandler("onFinally",t,d,void 0),[2,d]);case 3:if(T=R.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:T,loading:!1}),(s=(v=this.options).onError)===null||s===void 0||s.call(v,T,t),this.runPluginHandler("onError",T,t),(p=(y=this.options).onFinally)===null||p===void 0||p.call(y,t,void 0,T),n===this.count&&this.runPluginHandler("onFinally",t,void 0,T),T;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,de([],le(r),!1)).catch(function(o){t.options.onError||console.error(o)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,de([],le(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,de([],le(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=Ce(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function ps(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,o=n===void 0?!1:n,a=t.ready,i=a===void 0?!0:a,u=jt(t,["manual","ready"]);Dt&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var c=he({manual:o,ready:i},u),l=Ar(e),g=fs(),d=ya(function(){var T=r.map(function(E){var w;return(w=E==null?void 0:E.onInit)===null||w===void 0?void 0:w.call(E,c)}).filter(Boolean);return new ds(l,c,g,Object.assign.apply(Object,de([{}],le(T),!1)))},[]);return d.options=c,d.pluginImpls=r.map(function(T){return T(d,c)}),ls(function(){if(!o&&i){var T=d.state.params||t.defaultParams||[];d.run.apply(d,de([],le(T),!1))}}),Nt(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:we(d.cancel.bind(d)),refresh:we(d.refresh.bind(d)),refreshAsync:we(d.refreshAsync.bind(d)),run:we(d.run.bind(d)),runAsync:we(d.runAsync.bind(d)),mutate:we(d.mutate.bind(d))}}function ms(e,t,r){return ps(e,t,de(de([],le(r||[]),!1),[Ki,Ji,es,as,cs,va,$i,os],!1))}function Ea(e,t){if(ze){if(!e)return t;var r;return Ce(e)?r=e():"current"in e?r=e.current:r=e,r}}var hs=function(e){var t=function(r,n,o){var a=_.useRef(!1),i=_.useRef([]),u=_.useRef([]),c=_.useRef(void 0);e(function(){var l,g=Array.isArray(o)?o:[o],d=g.map(function(T){return Ea(T)});if(!a.current){a.current=!0,i.current=d,u.current=n,c.current=r();return}(d.length!==i.current.length||!hr(i.current,d)||!hr(u.current,n))&&((l=c.current)===null||l===void 0||l.call(c),i.current=d,u.current=n,c.current=r())}),Nt(function(){var l;(l=c.current)===null||l===void 0||l.call(c),a.current=!1})};return t},gs=hs(_.useEffect);function An(e,t,r){r===void 0&&(r={});var n=r.enable,o=n===void 0?!0:n,a=Ar(t);gs(function(){if(o){var i=Ea(r.target,window);if(i!=null&&i.addEventListener){var u=function(l){return a.current(l)},c=Array.isArray(e)?e:[e];return c.forEach(function(l){i.addEventListener(l,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){c.forEach(function(l){i.removeEventListener(l,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,o],r.target)}var jn="AHOOKS_SYNC_STORAGE_EVENT_NAME";function vs(e){function t(r,n){n===void 0&&(n={});var o,a=n.listenStorageChange,i=a===void 0?!1:a,u=n.onError,c=u===void 0?function(f){console.error(f)}:u;try{o=e()}catch(f){c(f)}var l=function(f){return n.serializer?n.serializer(f):JSON.stringify(f)},g=function(f){return n.deserializer?n.deserializer(f):JSON.parse(f)};function d(){try{var f=o==null?void 0:o.getItem(r);if(f)return g(f)}catch(h){c(h)}return Ce(n.defaultValue)?n.defaultValue():n.defaultValue}var T=le(_.useState(d),2),E=T[0],w=T[1];wt(function(){w(d())},[r]);var x=function(f){var h=Ce(f)?f(E):f;i||w(h);try{var v=void 0,s=o==null?void 0:o.getItem(r);ji(h)?(v=null,o==null||o.removeItem(r)):(v=l(h),o==null||o.setItem(r,v)),dispatchEvent(new CustomEvent(jn,{detail:{key:r,newValue:v,oldValue:s,storageArea:o}}))}catch(y){c(y)}},S=function(f){f.key!==r||f.storageArea!==o||w(d())},m=function(f){S(f.detail)};return An("storage",S,{enable:i}),An(jn,m,{enable:i}),[E,we(x)]}return t}var wa=vs(function(){return ze?localStorage:void 0});const ys=Pr`
|
|
143
122
|
from {
|
|
144
123
|
margin-top: 0;
|
|
145
124
|
}
|
|
146
125
|
to {
|
|
147
126
|
margin-top: 32px;
|
|
148
127
|
}
|
|
149
|
-
`,
|
|
128
|
+
`,bs=Pr`
|
|
150
129
|
from {
|
|
151
130
|
margin-top: 32px;
|
|
152
131
|
margin-bottom: 0;
|
|
@@ -155,24 +134,24 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
155
134
|
margin-top: 0;
|
|
156
135
|
margin-bottom: 32px;
|
|
157
136
|
}
|
|
158
|
-
`;
|
|
137
|
+
`;se.div`
|
|
159
138
|
.ant-popover-inner-content {
|
|
160
139
|
max-height: 360px;
|
|
161
140
|
padding: 0;
|
|
162
141
|
overflow-y: auto;
|
|
163
142
|
}
|
|
164
|
-
`;const
|
|
143
|
+
`;const xs=se.ul`
|
|
165
144
|
padding: 10px 0;
|
|
166
145
|
|
|
167
146
|
.drag-up {
|
|
168
147
|
border: solid 2px #ccc;
|
|
169
|
-
animation: ${
|
|
148
|
+
animation: ${ys} ease 0.2s 1;
|
|
170
149
|
animation-fill-mode: forwards;
|
|
171
150
|
}
|
|
172
151
|
|
|
173
152
|
.drag-down {
|
|
174
153
|
border: solid 2px #ccc;
|
|
175
|
-
animation: ${
|
|
154
|
+
animation: ${bs} ease 0.2s 1;
|
|
176
155
|
animation-fill-mode: forwards;
|
|
177
156
|
}
|
|
178
157
|
|
|
@@ -203,13 +182,13 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
203
182
|
background-color: #f0f0f0;
|
|
204
183
|
}
|
|
205
184
|
}
|
|
206
|
-
`;function
|
|
185
|
+
`;function Ss({order:e,visibleItems:t,columns:r=[],onChangeOrder:n,columnsVisible:o,columnsSort:a,onChangeVisible:i}){const u=_.useRef(null),c=_.useRef(null),l=x=>{u.current=x.currentTarget},g=x=>{if(!c.current||!u.current)return;u.current.style.display="block",x.currentTarget.classList.remove("drag-up"),c.current.classList.remove("drag-up"),x.currentTarget.classList.remove("drag-down"),c.current.classList.remove("drag-down");const S=[...e],m=Number(u.current.dataset.index),f=Number(c.current.dataset.index);S.splice(f,0,S.splice(m,1)[0]),n(S)},d=x=>{if(x.preventDefault(),!u.current)return;u.current.style.display="none";const S=x.target;if(S.tagName!=="LI")return;const m=u.current.dataset.index,f=S.dataset.index,h=S.dataset.id;if(!h||E.includes(h)||!m||!f)return;const v=m>f?"drag-up":"drag-down";c.current&&S.dataset.index!==c.current.dataset.index&&c.current.classList.remove("drag-up","drag-down"),S.classList.contains(v)||(S.classList.add(v),c.current=S)},T=({target:{checked:x}},{dataIndex:S})=>{if(t.length===1&&!x){exports.message.error(D.jsx(Me,{id:"component.table.visibleError",defaultMessage:"列表最少保留一个字段"}));return}const m=Array.isArray(S)?S.join(","):S,f=[...t];x?f.push(m):f.splice(f.indexOf(m),1),i(f)},E=_.useMemo(()=>{const x=[];for(const S of r)if(S.columnSortDisabled&&"dataIndex"in S){let m;Array.isArray(S.dataIndex)?m=S.dataIndex.join(","):m=S.dataIndex,x.push(m)}return x},[r]),w=_.useMemo(()=>e.map((x,S)=>{let m;for(const s of r)if("dataIndex"in s){let y;if(Array.isArray(s.dataIndex)?y=s.dataIndex.join(","):y=s.dataIndex,x===y){m=s;break}}if(!m||!("dataIndex"in m))return"";const f=a&&m&&!m.columnSortDisabled;let h;m&&Array.isArray(m.dataIndex)?h=m.dataIndex.join(","):m&&(h=m.dataIndex);const v=typeof h=="string"&&t.includes(h);return m?D.jsxs("li",{draggable:f,onDragEnd:g,onDragStart:l,"data-index":S,"data-id":Array.isArray(m.dataIndex)?m.dataIndex.join(","):String(m.dataIndex),children:[a&&D.jsx(Ie.HolderOutlined,{className:"icon-drag"}),o&&D.jsx(te.Checkbox,{style:{marginRight:"10px"},checked:!!v,disabled:m.columnVisibleDisabled,onChange:s=>{T(s,m)}}),typeof m.title=="function"?m.title({}):m.title]},Array.isArray(m.dataIndex)?m.dataIndex.join(","):String(m.dataIndex)):null}),[e,t,r,a,o]);return D.jsx(te.Popover,{overlayClassName:"table-columns-setting-popover",content:D.jsx(xs,{onDragOver:d,children:w}),trigger:"click",align:{offset:[-60,-14]},children:D.jsx(Cr,{type:"icon-setting",style:{float:"right",fontSize:"17px",lineHeight:1,marginTop:"2px",fontWeight:500}})})}const Es=se.div`
|
|
207
186
|
position: absolute;
|
|
208
187
|
left: 8px;
|
|
209
|
-
`,
|
|
188
|
+
`,ws=se.span`
|
|
210
189
|
font-size: 14px;
|
|
211
190
|
color: #666;
|
|
212
|
-
`;
|
|
191
|
+
`;se.div`
|
|
213
192
|
position: fixed;
|
|
214
193
|
right: 0;
|
|
215
194
|
bottom: 30px;
|
|
@@ -232,7 +211,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
232
211
|
border-color: #d9d9d9;
|
|
233
212
|
}
|
|
234
213
|
}
|
|
235
|
-
`;const
|
|
214
|
+
`;const Ts=se(te.Row)`
|
|
236
215
|
position: fixed;
|
|
237
216
|
right: 0;
|
|
238
217
|
bottom: 30px;
|
|
@@ -255,7 +234,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
255
234
|
border-color: #d9d9d9;
|
|
256
235
|
}
|
|
257
236
|
}
|
|
258
|
-
`,
|
|
237
|
+
`,Rs=se.span`
|
|
259
238
|
margin-left: 20px;
|
|
260
239
|
cursor: pointer;
|
|
261
240
|
opacity: 0.5;
|
|
@@ -264,7 +243,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
264
243
|
&:hover {
|
|
265
244
|
opacity: 1;
|
|
266
245
|
}
|
|
267
|
-
`,
|
|
246
|
+
`,Os={enter:"zoom-enter",enterActive:"zoom-enter-active",leaveActive:"zoom-leave-active"},Ps=`
|
|
268
247
|
.zoom-enter {
|
|
269
248
|
transform: scale(0);
|
|
270
249
|
}
|
|
@@ -276,9 +255,9 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
276
255
|
.zoom-leave-active {
|
|
277
256
|
transform: scale(0);
|
|
278
257
|
}
|
|
279
|
-
`;function
|
|
258
|
+
`;function _s(e){const t=_.useRef(null),{pagination:r,rowSelection:n={selectedRowKeys:[],onChange:()=>{}},dataSource:o=[],selectionPopover:a=!1}=e,i=({target:{checked:g}})=>{const{rowKey:d="id"}=e;if(!(!n||!n.onChange))if(g){const{getCheckboxProps:T}=n;let E=o;T&&(E=o.filter(x=>!T(x).disabled));const w=typeof d=="function"?d:x=>x[d];n.onChange(Array.from(E.map(w)),Array.from(E),{type:"none"})}else n.onChange([],[],{type:"none"})},u=_.useMemo(()=>{const{getCheckboxProps:g}=n;let d=o;return g&&(d=o.filter(T=>!g(T).disabled)),d.length},[o,n]),c=_.useMemo(()=>{const g=n.selectedRowKeys??[];return g.length>0&&g.length<u},[n.selectedRowKeys,u]),l=_.useMemo(()=>{const g=n.selectedRowKeys??[];return g.length>0&&g.length===u},[n.selectedRowKeys,u]);return D.jsxs(D.Fragment,{children:[D.jsx(zo,{styles:Ps}),D.jsxs(Es,{children:[D.jsx(Rt,{in:!!(e.rowSelection&&e.selectionPopover&&(l||c)),nodeRef:t,classNames:Os,unmountOnExit:!0,timeout:300,children:()=>{var g;return D.jsxs(Ts,{ref:t,justify:"space-between",children:[D.jsx(te.Col,{style:{display:"flex",alignItems:"center"},children:D.jsx(te.Checkbox,{checked:l,indeterminate:c,onChange:i,children:D.jsx(Me,{id:"xmirror.component.table.selected",defaultMessage:"已选{length}条",values:{length:((g=n.selectedRowKeys)==null?void 0:g.length)??0}})})}),D.jsxs(te.Col,{style:{display:"flex",alignItems:"center"},children:[a,D.jsx(Rs,{onClick:()=>{i({target:{checked:!1}})},children:D.jsx(Ie.CloseOutlined,{})})]})]})}}),r&&D.jsx(ws,{children:r.showTotal?r.showTotal(r.total??0,[0,0]):null})]})]})}var He={exports:{}},Be={},Ve={exports:{}},ur={},pt={exports:{}},Dn;function Cs(){if(Dn)return pt.exports;Dn=1;function e(r){var n,o,a="";if(typeof r=="string"||typeof r=="number")a+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(n=0;n<i;n++)r[n]&&(o=e(r[n]))&&(a&&(a+=" "),a+=o)}else for(o in r)r[o]&&(a&&(a+=" "),a+=o);return a}function t(){for(var r,n,o=0,a="",i=arguments.length;o<i;o++)(r=arguments[o])&&(n=e(r))&&(a&&(a+=" "),a+=n);return a}return pt.exports=t,pt.exports.clsx=t,pt.exports}var ae={},Te={},Nn;function Mt(){if(Nn)return Te;Nn=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.dontSetMe=o,Te.findInArray=e,Te.int=n,Te.isFunction=t,Te.isNum=r;function e(a,i){for(let u=0,c=a.length;u<c;u++)if(i.apply(i,[a[u],u,a]))return a[u]}function t(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Function]"}function r(a){return typeof a=="number"&&!isNaN(a)}function n(a){return parseInt(a,10)}function o(a,i,u){if(a[i])return new Error(`Invalid prop ${i} passed to ${u} - do not set this, set it on the child.`)}return Te}var Re={},Mn;function As(){if(Mn)return Re;Mn=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.browserPrefixToKey=r,Re.browserPrefixToStyle=n,Re.default=void 0,Re.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var u,c;let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const i=(c=(u=window.document)==null?void 0:u.documentElement)==null?void 0:c.style;if(!i||a in i)return"";for(let l=0;l<e.length;l++)if(r(a,e[l])in i)return e[l];return""}function r(a,i){return i?`${i}${o(a)}`:a}function n(a,i){return i?`-${i.toLowerCase()}-${a}`:a}function o(a){let i="",u=!0;for(let c=0;c<a.length;c++)u?(i+=a[c].toUpperCase(),u=!1):a[c]==="-"?u=!0:i+=a[c];return i}return Re.default=t(),Re}var kn;function Nr(){if(kn)return ae;kn=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.addClassName=s,ae.addEvent=i,ae.addUserSelectStyles=f,ae.createCSSTransform=E,ae.createSVGTransform=w,ae.getTouch=S,ae.getTouchIdentifier=m,ae.getTranslation=x,ae.innerHeight=g,ae.innerWidth=d,ae.matchesSelector=o,ae.matchesSelectorAndParentsTo=a,ae.offsetXYFromParent=T,ae.outerHeight=c,ae.outerWidth=l,ae.removeClassName=y,ae.removeEvent=u,ae.scheduleRemoveUserSelectStyles=h;var e=Mt(),t=r(As());function r(p,R){if(typeof WeakMap=="function")var C=new WeakMap,j=new WeakMap;return(r=function(A,$){if(!$&&A&&A.__esModule)return A;var N,L,W={__proto__:null,default:A};if(A===null||typeof A!="object"&&typeof A!="function")return W;if(N=$?j:C){if(N.has(A))return N.get(A);N.set(A,W)}for(const I in A)I!=="default"&&{}.hasOwnProperty.call(A,I)&&((L=(N=Object.defineProperty)&&Object.getOwnPropertyDescriptor(A,I))&&(L.get||L.set)?N(W,I,L):W[I]=A[I]);return W})(p,R)}let n="";function o(p,R){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(C){return(0,e.isFunction)(p[C])})),(0,e.isFunction)(p[n])?p[n](R):!1}function a(p,R,C){let j=p;do{if(o(j,R))return!0;if(j===C)return!1;j=j.parentNode}while(j);return!1}function i(p,R,C,j){if(!p)return;const A={capture:!0,...j};p.addEventListener?p.addEventListener(R,C,A):p.attachEvent?p.attachEvent("on"+R,C):p["on"+R]=C}function u(p,R,C,j){if(!p)return;const A={capture:!0,...j};p.removeEventListener?p.removeEventListener(R,C,A):p.detachEvent?p.detachEvent("on"+R,C):p["on"+R]=null}function c(p){let R=p.clientHeight;const C=p.ownerDocument.defaultView.getComputedStyle(p);return R+=(0,e.int)(C.borderTopWidth),R+=(0,e.int)(C.borderBottomWidth),R}function l(p){let R=p.clientWidth;const C=p.ownerDocument.defaultView.getComputedStyle(p);return R+=(0,e.int)(C.borderLeftWidth),R+=(0,e.int)(C.borderRightWidth),R}function g(p){let R=p.clientHeight;const C=p.ownerDocument.defaultView.getComputedStyle(p);return R-=(0,e.int)(C.paddingTop),R-=(0,e.int)(C.paddingBottom),R}function d(p){let R=p.clientWidth;const C=p.ownerDocument.defaultView.getComputedStyle(p);return R-=(0,e.int)(C.paddingLeft),R-=(0,e.int)(C.paddingRight),R}function T(p,R,C){const A=R===R.ownerDocument.body?{left:0,top:0}:R.getBoundingClientRect(),$=(p.clientX+R.scrollLeft-A.left)/C,N=(p.clientY+R.scrollTop-A.top)/C;return{x:$,y:N}}function E(p,R){const C=x(p,R,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:C}}function w(p,R){return x(p,R,"")}function x(p,R,C){let{x:j,y:A}=p,$=`translate(${j}${C},${A}${C})`;if(R){const N=`${typeof R.x=="string"?R.x:R.x+C}`,L=`${typeof R.y=="string"?R.y:R.y+C}`;$=`translate(${N}, ${L})`+$}return $}function S(p,R){return p.targetTouches&&(0,e.findInArray)(p.targetTouches,C=>R===C.identifier)||p.changedTouches&&(0,e.findInArray)(p.changedTouches,C=>R===C.identifier)}function m(p){if(p.targetTouches&&p.targetTouches[0])return p.targetTouches[0].identifier;if(p.changedTouches&&p.changedTouches[0])return p.changedTouches[0].identifier}function f(p){if(!p)return;let R=p.getElementById("react-draggable-style-el");R||(R=p.createElement("style"),R.type="text/css",R.id="react-draggable-style-el",R.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
280
259
|
`,R.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
281
|
-
`,g.getElementsByTagName("head")[0].appendChild(R)),g.body&&c(g.body,"react-draggable-transparent-selection")}function m(g){window.requestAnimationFrame?window.requestAnimationFrame(()=>{v(g)}):v(g)}function v(g){if(g)try{if(g.body&&y(g.body,"react-draggable-transparent-selection"),g.selection)g.selection.empty();else{const R=(g.defaultView||window).getSelection();R&&R.type!=="Caret"&&R.removeAllRanges()}}catch{}}function c(g,R){g.classList?g.classList.add(R):g.className.match(new RegExp(`(?:^|\\s)${R}(?!\\S)`))||(g.className+=` ${R}`)}function y(g,R){g.classList?g.classList.remove(R):g.className=g.className.replace(new RegExp(`(?:^|\\s)${R}(?!\\S)`,"g"),"")}return le}var Te={},Oa;function $i(){if(Oa)return Te;Oa=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.canDragX=a,Te.canDragY=i,Te.createCoreData=s,Te.createDraggableData=u,Te.getBoundPosition=r,Te.getControlPosition=o,Te.snapToGrid=n;var e=er(),t=pn();function r(d,E,T){if(!d.props.bounds)return[E,T];let{bounds:w}=d.props;w=typeof w=="string"?w:l(w);const b=f(d);if(typeof w=="string"){const{ownerDocument:x}=b,p=x.defaultView;let h;if(w==="parent"?h=b.parentNode:h=b.getRootNode().querySelector(w),!(h instanceof p.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');const m=h,v=p.getComputedStyle(b),c=p.getComputedStyle(m);w={left:-b.offsetLeft+(0,e.int)(c.paddingLeft)+(0,e.int)(v.marginLeft),top:-b.offsetTop+(0,e.int)(c.paddingTop)+(0,e.int)(v.marginTop),right:(0,t.innerWidth)(m)-(0,t.outerWidth)(b)-b.offsetLeft+(0,e.int)(c.paddingRight)-(0,e.int)(v.marginRight),bottom:(0,t.innerHeight)(m)-(0,t.outerHeight)(b)-b.offsetTop+(0,e.int)(c.paddingBottom)-(0,e.int)(v.marginBottom)}}return(0,e.isNum)(w.right)&&(E=Math.min(E,w.right)),(0,e.isNum)(w.bottom)&&(T=Math.min(T,w.bottom)),(0,e.isNum)(w.left)&&(E=Math.max(E,w.left)),(0,e.isNum)(w.top)&&(T=Math.max(T,w.top)),[E,T]}function n(d,E,T){const w=Math.round(E/d[0])*d[0],b=Math.round(T/d[1])*d[1];return[w,b]}function a(d){return d.props.axis==="both"||d.props.axis==="x"}function i(d){return d.props.axis==="both"||d.props.axis==="y"}function o(d,E,T){const w=typeof E=="number"?(0,t.getTouch)(d,E):null;if(typeof E=="number"&&!w)return null;const b=f(T),x=T.props.offsetParent||b.offsetParent||b.ownerDocument.body;return(0,t.offsetXYFromParent)(w||d,x,T.props.scale)}function s(d,E,T){const w=!(0,e.isNum)(d.lastX),b=f(d);return w?{node:b,deltaX:0,deltaY:0,lastX:E,lastY:T,x:E,y:T}:{node:b,deltaX:E-d.lastX,deltaY:T-d.lastY,lastX:d.lastX,lastY:d.lastY,x:E,y:T}}function u(d,E){const T=d.props.scale;return{node:E.node,x:d.state.x+E.deltaX/T,y:d.state.y+E.deltaY/T,deltaX:E.deltaX/T,deltaY:E.deltaY/T,lastX:d.state.x,lastY:d.state.y}}function l(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function f(d){const E=d.findDOMNode();if(!E)throw new Error("<DraggableCore>: Unmounted during event!");return E}return Te}var lt={},Dt={},Ca;function zi(){if(Ca)return Dt;Ca=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.default=e;function e(){}return Dt}var Aa;function xc(){if(Aa)return lt;Aa=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.default=void 0;var e=u(O),t=s(bt()),r=s(qe),n=pn(),a=$i(),i=er(),o=s(zi());function s(b){return b&&b.__esModule?b:{default:b}}function u(b,x){if(typeof WeakMap=="function")var p=new WeakMap,h=new WeakMap;return(u=function(m,v){if(!v&&m&&m.__esModule)return m;var c,y,g={__proto__:null,default:m};if(m===null||typeof m!="object"&&typeof m!="function")return g;if(c=v?h:p){if(c.has(m))return c.get(m);c.set(m,g)}for(const R in m)R!=="default"&&{}.hasOwnProperty.call(m,R)&&((y=(c=Object.defineProperty)&&Object.getOwnPropertyDescriptor(m,R))&&(y.get||y.set)?c(g,R,y):g[R]=m[R]);return g})(b,x)}function l(b,x,p){return(x=f(x))in b?Object.defineProperty(b,x,{value:p,enumerable:!0,configurable:!0,writable:!0}):b[x]=p,b}function f(b){var x=d(b,"string");return typeof x=="symbol"?x:x+""}function d(b,x){if(typeof b!="object"||!b)return b;var p=b[Symbol.toPrimitive];if(p!==void 0){var h=p.call(b,x);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(b)}const E={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let T=E.mouse,w=class extends e.Component{constructor(){super(...arguments),l(this,"dragging",!1),l(this,"lastX",NaN),l(this,"lastY",NaN),l(this,"touchIdentifier",null),l(this,"mounted",!1),l(this,"handleDragStart",x=>{if(this.props.onMouseDown(x),!this.props.allowAnyClick&&typeof x.button=="number"&&x.button!==0)return!1;const p=this.findDOMNode();if(!p||!p.ownerDocument||!p.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:h}=p;if(this.props.disabled||!(x.target instanceof h.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(x.target,this.props.handle,p)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(x.target,this.props.cancel,p))return;x.type==="touchstart"&&!this.props.allowMobileScroll&&x.preventDefault();const m=(0,n.getTouchIdentifier)(x);this.touchIdentifier=m;const v=(0,a.getControlPosition)(x,m,this);if(v==null)return;const{x:c,y}=v,g=(0,a.createCoreData)(this,c,y);(0,o.default)("DraggableCore: handleDragStart: %j",g),(0,o.default)("calling",this.props.onStart),!(this.props.onStart(x,g)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(h),this.dragging=!0,this.lastX=c,this.lastY=y,(0,n.addEvent)(h,T.move,this.handleDrag),(0,n.addEvent)(h,T.stop,this.handleDragStop))}),l(this,"handleDrag",x=>{const p=(0,a.getControlPosition)(x,this.touchIdentifier,this);if(p==null)return;let{x:h,y:m}=p;if(Array.isArray(this.props.grid)){let y=h-this.lastX,g=m-this.lastY;if([y,g]=(0,a.snapToGrid)(this.props.grid,y,g),!y&&!g)return;h=this.lastX+y,m=this.lastY+g}const v=(0,a.createCoreData)(this,h,m);if((0,o.default)("DraggableCore: handleDrag: %j",v),this.props.onDrag(x,v)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const g=document.createEvent("MouseEvents");g.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(g)}return}this.lastX=h,this.lastY=m}),l(this,"handleDragStop",x=>{if(!this.dragging)return;const p=(0,a.getControlPosition)(x,this.touchIdentifier,this);if(p==null)return;let{x:h,y:m}=p;if(Array.isArray(this.props.grid)){let g=h-this.lastX||0,R=m-this.lastY||0;[g,R]=(0,a.snapToGrid)(this.props.grid,g,R),h=this.lastX+g,m=this.lastY+R}const v=(0,a.createCoreData)(this,h,m);if(this.props.onStop(x,v)===!1||this.mounted===!1)return!1;const y=this.findDOMNode();y&&this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(y.ownerDocument),(0,o.default)("DraggableCore: handleDragStop: %j",v),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,y&&((0,o.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(y.ownerDocument,T.move,this.handleDrag),(0,n.removeEvent)(y.ownerDocument,T.stop,this.handleDragStop))}),l(this,"onMouseDown",x=>(T=E.mouse,this.handleDragStart(x))),l(this,"onMouseUp",x=>(T=E.mouse,this.handleDragStop(x))),l(this,"onTouchStart",x=>(T=E.touch,this.handleDragStart(x))),l(this,"onTouchEnd",x=>(T=E.touch,this.handleDragStop(x)))}componentDidMount(){this.mounted=!0;const x=this.findDOMNode();x&&(0,n.addEvent)(x,E.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const x=this.findDOMNode();if(x){const{ownerDocument:p}=x;(0,n.removeEvent)(p,E.mouse.move,this.handleDrag),(0,n.removeEvent)(p,E.touch.move,this.handleDrag),(0,n.removeEvent)(p,E.mouse.stop,this.handleDragStop),(0,n.removeEvent)(p,E.touch.stop,this.handleDragStop),(0,n.removeEvent)(x,E.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(p)}}findDOMNode(){var x,p,h;return(x=this.props)!=null&&x.nodeRef?(h=(p=this.props)==null?void 0:p.nodeRef)==null?void 0:h.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return lt.default=w,l(w,"displayName","DraggableCore"),l(w,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(b,x){if(b[x]&&b[x].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:i.dontSetMe,style:i.dontSetMe,transform:i.dontSetMe}),l(w,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),lt}var Na;function Ec(){return Na||(Na=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var t=d(O),r=f(bt()),n=f(qe),a=yc(),i=pn(),o=$i(),s=er(),u=f(xc()),l=f(zi());function f(p){return p&&p.__esModule?p:{default:p}}function d(p,h){if(typeof WeakMap=="function")var m=new WeakMap,v=new WeakMap;return(d=function(c,y){if(!y&&c&&c.__esModule)return c;var g,R,C={__proto__:null,default:c};if(c===null||typeof c!="object"&&typeof c!="function")return C;if(g=y?v:m){if(g.has(c))return g.get(c);g.set(c,C)}for(const N in c)N!=="default"&&{}.hasOwnProperty.call(c,N)&&((R=(g=Object.defineProperty)&&Object.getOwnPropertyDescriptor(c,N))&&(R.get||R.set)?g(C,N,R):C[N]=c[N]);return C})(p,h)}function E(){return E=Object.assign?Object.assign.bind():function(p){for(var h=1;h<arguments.length;h++){var m=arguments[h];for(var v in m)({}).hasOwnProperty.call(m,v)&&(p[v]=m[v])}return p},E.apply(null,arguments)}function T(p,h,m){return(h=w(h))in p?Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[h]=m,p}function w(p){var h=b(p,"string");return typeof h=="symbol"?h:h+""}function b(p,h){if(typeof p!="object"||!p)return p;var m=p[Symbol.toPrimitive];if(m!==void 0){var v=m.call(p,h);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(p)}class x extends t.Component{static getDerivedStateFromProps(h,m){let{position:v}=h,{prevPropsPosition:c}=m;return v&&(!c||v.x!==c.x||v.y!==c.y)?((0,l.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:c}),{x:v.x,y:v.y,prevPropsPosition:{...v}}):null}constructor(h){super(h),T(this,"onDragStart",(m,v)=>{if((0,l.default)("Draggable: onDragStart: %j",v),this.props.onStart(m,(0,o.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),T(this,"onDrag",(m,v)=>{if(!this.state.dragging)return!1;(0,l.default)("Draggable: onDrag: %j",v);const c=(0,o.createDraggableData)(this,v),y={x:c.x,y:c.y,slackX:0,slackY:0};if(this.props.bounds){const{x:R,y:C}=y;y.x+=this.state.slackX,y.y+=this.state.slackY;const[N,A]=(0,o.getBoundPosition)(this,y.x,y.y);y.x=N,y.y=A,y.slackX=this.state.slackX+(R-y.x),y.slackY=this.state.slackY+(C-y.y),c.x=y.x,c.y=y.y,c.deltaX=y.x-this.state.x,c.deltaY=y.y-this.state.y}if(this.props.onDrag(m,c)===!1)return!1;this.setState(y)}),T(this,"onDragStop",(m,v)=>{if(!this.state.dragging||this.props.onStop(m,(0,o.createDraggableData)(this,v))===!1)return!1;(0,l.default)("Draggable: onDragStop: %j",v);const y={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:R,y:C}=this.props.position;y.x=R,y.y=C}this.setState(y)}),this.state={dragging:!1,dragged:!1,x:h.position?h.position.x:h.defaultPosition.x,y:h.position?h.position.y:h.defaultPosition.y,prevPropsPosition:{...h.position},slackX:0,slackY:0,isElementSVG:!1},h.position&&!(h.onDrag||h.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var h,m;return((m=(h=this.props)==null?void 0:h.nodeRef)==null?void 0:m.current)??n.default.findDOMNode(this)}render(){const{axis:h,bounds:m,children:v,defaultPosition:c,defaultClassName:y,defaultClassNameDragging:g,defaultClassNameDragged:R,position:C,positionOffset:N,scale:A,...F}=this.props;let D={},k=null;const H=!!!C||this.state.dragging,K=C||c,ue={x:(0,o.canDragX)(this)&&H?this.state.x:K.x,y:(0,o.canDragY)(this)&&H?this.state.y:K.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(ue,N):D=(0,i.createCSSTransform)(ue,N);const ce=(0,a.clsx)(v.props.className||"",y,{[g]:this.state.dragging,[R]:this.state.dragged});return t.createElement(u.default,E({},F,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:ce,style:{...v.props.style,...D},transform:k}))}}e.default=x,T(x,"displayName","Draggable"),T(x,"propTypes",{...u.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),T(x,"defaultProps",{...u.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(Ir)),Ir}var Ia;function Gi(){if(Ia)return ut.exports;Ia=1;const{default:e,DraggableCore:t}=Ec();return ut.exports=e,ut.exports.default=e,ut.exports.DraggableCore=t,ut.exports}var Mt={},Da;function Sc(){if(Da)return Mt;Da=1,Mt.__esModule=!0,Mt.cloneElement=s;var e=t(O);function t(u){return u&&u.__esModule?u:{default:u}}function r(u,l){var f=Object.keys(u);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(u);l&&(d=d.filter(function(E){return Object.getOwnPropertyDescriptor(u,E).enumerable})),f.push.apply(f,d)}return f}function n(u){for(var l=1;l<arguments.length;l++){var f=arguments[l]!=null?arguments[l]:{};l%2?r(Object(f),!0).forEach(function(d){a(u,d,f[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(f)):r(Object(f)).forEach(function(d){Object.defineProperty(u,d,Object.getOwnPropertyDescriptor(f,d))})}return u}function a(u,l,f){return l=i(l),l in u?Object.defineProperty(u,l,{value:f,enumerable:!0,configurable:!0,writable:!0}):u[l]=f,u}function i(u){var l=o(u,"string");return typeof l=="symbol"?l:String(l)}function o(u,l){if(typeof u!="object"||u===null)return u;var f=u[Symbol.toPrimitive];if(f!==void 0){var d=f.call(u,l);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(u)}function s(u,l){return l.style&&u.props.style&&(l.style=n(n({},u.props.style),l.style)),l.className&&u.props.className&&(l.className=u.props.className+" "+l.className),e.default.cloneElement(u,l)}return Mt}var ct={},Ma;function Wi(){if(Ma)return ct;Ma=1,ct.__esModule=!0,ct.resizableProps=void 0;var e=t(bt());Gi();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="y"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var s=i[0];if(s.axis==="both"||s.axis==="x"){var u;return(u=e.default.number).isRequired.apply(u,i)}return e.default.number.apply(e.default,i)}};return ct.resizableProps=r,ct}var La;function qi(){if(La)return st;La=1,st.__esModule=!0,st.default=void 0;var e=o(O),t=Gi(),r=Sc(),n=Wi(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function i(p){if(typeof WeakMap!="function")return null;var h=new WeakMap,m=new WeakMap;return(i=function(c){return c?m:h})(p)}function o(p,h){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var m=i(h);if(m&&m.has(p))return m.get(p);var v={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in p)if(y!=="default"&&Object.prototype.hasOwnProperty.call(p,y)){var g=c?Object.getOwnPropertyDescriptor(p,y):null;g&&(g.get||g.set)?Object.defineProperty(v,y,g):v[y]=p[y]}return v.default=p,m&&m.set(p,v),v}function s(){return s=Object.assign?Object.assign.bind():function(p){for(var h=1;h<arguments.length;h++){var m=arguments[h];for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(p[v]=m[v])}return p},s.apply(this,arguments)}function u(p,h){if(p==null)return{};var m={},v=Object.keys(p),c,y;for(y=0;y<v.length;y++)c=v[y],!(h.indexOf(c)>=0)&&(m[c]=p[c]);return m}function l(p,h){var m=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);h&&(v=v.filter(function(c){return Object.getOwnPropertyDescriptor(p,c).enumerable})),m.push.apply(m,v)}return m}function f(p){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?l(Object(m),!0).forEach(function(v){d(p,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(m)):l(Object(m)).forEach(function(v){Object.defineProperty(p,v,Object.getOwnPropertyDescriptor(m,v))})}return p}function d(p,h,m){return h=E(h),h in p?Object.defineProperty(p,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):p[h]=m,p}function E(p){var h=T(p,"string");return typeof h=="symbol"?h:String(h)}function T(p,h){if(typeof p!="object"||p===null)return p;var m=p[Symbol.toPrimitive];if(m!==void 0){var v=m.call(p,h);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(p)}function w(p,h){p.prototype=Object.create(h.prototype),p.prototype.constructor=p,b(p,h)}function b(p,h){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,c){return v.__proto__=c,v},b(p,h)}var x=function(p){w(h,p);function h(){for(var v,c=arguments.length,y=new Array(c),g=0;g<c;g++)y[g]=arguments[g];return v=p.call.apply(p,[this].concat(y))||this,v.handleRefs={},v.lastHandleRect=null,v.slack=null,v}var m=h.prototype;return m.componentWillUnmount=function(){this.resetData()},m.resetData=function(){this.lastHandleRect=this.slack=null},m.runConstraints=function(c,y){var g=this.props,R=g.minConstraints,C=g.maxConstraints,N=g.lockAspectRatio;if(!R&&!C&&!N)return[c,y];if(N){var A=this.props.width/this.props.height,F=c-this.props.width,D=y-this.props.height;Math.abs(F)>Math.abs(D*A)?y=c/A:c=y*A}var k=c,z=y,H=this.slack||[0,0],K=H[0],ue=H[1];return c+=K,y+=ue,R&&(c=Math.max(R[0],c),y=Math.max(R[1],y)),C&&(c=Math.min(C[0],c),y=Math.min(C[1],y)),this.slack=[K+(k-c),ue+(z-y)],[c,y]},m.resizeHandler=function(c,y){var g=this;return function(R,C){var N=C.node,A=C.deltaX,F=C.deltaY;c==="onResizeStart"&&g.resetData();var D=(g.props.axis==="both"||g.props.axis==="x")&&y!=="n"&&y!=="s",k=(g.props.axis==="both"||g.props.axis==="y")&&y!=="e"&&y!=="w";if(!(!D&&!k)){var z=y[0],H=y[y.length-1],K=N.getBoundingClientRect();if(g.lastHandleRect!=null){if(H==="w"){var ue=K.left-g.lastHandleRect.left;A+=ue}if(z==="n"){var ce=K.top-g.lastHandleRect.top;F+=ce}}g.lastHandleRect=K,H==="w"&&(A=-A),z==="n"&&(F=-F);var S=g.props.width+(D?A/g.props.transformScale:0),_=g.props.height+(k?F/g.props.transformScale:0),M=g.runConstraints(S,_);S=M[0],_=M[1];var j=S!==g.props.width||_!==g.props.height,B=typeof g.props[c]=="function"?g.props[c]:null,$=c==="onResize"&&!j;B&&!$&&(R.persist==null||R.persist(),B(R,{node:N,size:{width:S,height:_},handle:y})),c==="onResizeStop"&&g.resetData()}}},m.renderResizeHandle=function(c,y){var g=this.props.handle;if(!g)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+c,ref:y});if(typeof g=="function")return g(c,y);var R=typeof g.type=="string",C=f({ref:y},R?{}:{handleAxis:c});return e.cloneElement(g,C)},m.render=function(){var c=this,y=this.props,g=y.children,R=y.className,C=y.draggableOpts;y.width,y.height,y.handle,y.handleSize,y.lockAspectRatio,y.axis,y.minConstraints,y.maxConstraints,y.onResize,y.onResizeStop,y.onResizeStart;var N=y.resizeHandles;y.transformScale;var A=u(y,a);return(0,r.cloneElement)(g,f(f({},A),{},{className:(R?R+" ":"")+"react-resizable",children:[].concat(g.props.children,N.map(function(F){var D,k=(D=c.handleRefs[F])!=null?D:c.handleRefs[F]=e.createRef();return e.createElement(t.DraggableCore,s({},C,{nodeRef:k,key:"resizableHandle-"+F,onStop:c.resizeHandler("onResizeStop",F),onStart:c.resizeHandler("onResizeStart",F),onDrag:c.resizeHandler("onResize",F)}),c.renderResizeHandle(F,k))}))}))},h}(e.Component);return st.default=x,x.propTypes=n.resizableProps,x.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},st}var ft={},ja;function Tc(){if(ja)return ft;ja=1,ft.__esModule=!0,ft.default=void 0;var e=s(O),t=i(bt()),r=i(qi()),n=Wi(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(h){return h&&h.__esModule?h:{default:h}}function o(h){if(typeof WeakMap!="function")return null;var m=new WeakMap,v=new WeakMap;return(o=function(y){return y?v:m})(h)}function s(h,m){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var v=o(m);if(v&&v.has(h))return v.get(h);var c={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in h)if(g!=="default"&&Object.prototype.hasOwnProperty.call(h,g)){var R=y?Object.getOwnPropertyDescriptor(h,g):null;R&&(R.get||R.set)?Object.defineProperty(c,g,R):c[g]=h[g]}return c.default=h,v&&v.set(h,c),c}function u(){return u=Object.assign?Object.assign.bind():function(h){for(var m=1;m<arguments.length;m++){var v=arguments[m];for(var c in v)Object.prototype.hasOwnProperty.call(v,c)&&(h[c]=v[c])}return h},u.apply(this,arguments)}function l(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(h);m&&(c=c.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),v.push.apply(v,c)}return v}function f(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?l(Object(v),!0).forEach(function(c){d(h,c,v[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):l(Object(v)).forEach(function(c){Object.defineProperty(h,c,Object.getOwnPropertyDescriptor(v,c))})}return h}function d(h,m,v){return m=E(m),m in h?Object.defineProperty(h,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):h[m]=v,h}function E(h){var m=T(h,"string");return typeof m=="symbol"?m:String(m)}function T(h,m){if(typeof h!="object"||h===null)return h;var v=h[Symbol.toPrimitive];if(v!==void 0){var c=v.call(h,m);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(h)}function w(h,m){if(h==null)return{};var v={},c=Object.keys(h),y,g;for(g=0;g<c.length;g++)y=c[g],!(m.indexOf(y)>=0)&&(v[y]=h[y]);return v}function b(h,m){h.prototype=Object.create(m.prototype),h.prototype.constructor=h,x(h,m)}function x(h,m){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,y){return c.__proto__=y,c},x(h,m)}var p=function(h){b(m,h);function m(){for(var c,y=arguments.length,g=new Array(y),R=0;R<y;R++)g[R]=arguments[R];return c=h.call.apply(h,[this].concat(g))||this,c.state={width:c.props.width,height:c.props.height,propsWidth:c.props.width,propsHeight:c.props.height},c.onResize=function(C,N){var A=N.size;c.props.onResize?(C.persist==null||C.persist(),c.setState(A,function(){return c.props.onResize&&c.props.onResize(C,N)})):c.setState(A)},c}m.getDerivedStateFromProps=function(y,g){return g.propsWidth!==y.width||g.propsHeight!==y.height?{width:y.width,height:y.height,propsWidth:y.width,propsHeight:y.height}:null};var v=m.prototype;return v.render=function(){var y=this.props,g=y.handle,R=y.handleSize;y.onResize;var C=y.onResizeStart,N=y.onResizeStop,A=y.draggableOpts,F=y.minConstraints,D=y.maxConstraints,k=y.lockAspectRatio,z=y.axis;y.width,y.height;var H=y.resizeHandles,K=y.style,ue=y.transformScale,ce=w(y,a);return e.createElement(r.default,{axis:z,draggableOpts:A,handle:g,handleSize:R,height:this.state.height,lockAspectRatio:k,maxConstraints:D,minConstraints:F,onResizeStart:C,onResize:this.onResize,onResizeStop:N,resizeHandles:H,transformScale:ue,width:this.state.width},e.createElement("div",u({},ce,{style:f(f({},K),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},m}(e.Component);return ft.default=p,p.propTypes=f(f({},n.resizableProps),{},{children:t.default.element}),ft}var Ha;function wc(){return Ha||(Ha=1,ot.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},ot.exports.Resizable=qi().default,ot.exports.ResizableBox=Tc().default),ot.exports}var Rc=wc();const Pc=e=>e?Array.isArray(e)?e.join("."):e:"",_c=de.span`
|
|
260
|
+
`,p.getElementsByTagName("head")[0].appendChild(R)),p.body&&s(p.body,"react-draggable-transparent-selection")}function h(p){window.requestAnimationFrame?window.requestAnimationFrame(()=>{v(p)}):v(p)}function v(p){if(p)try{if(p.body&&y(p.body,"react-draggable-transparent-selection"),p.selection)p.selection.empty();else{const R=(p.defaultView||window).getSelection();R&&R.type!=="Caret"&&R.removeAllRanges()}}catch{}}function s(p,R){p.classList?p.classList.add(R):p.className.match(new RegExp(`(?:^|\\s)${R}(?!\\S)`))||(p.className+=` ${R}`)}function y(p,R){p.classList?p.classList.remove(R):p.className=p.className.replace(new RegExp(`(?:^|\\s)${R}(?!\\S)`,"g"),"")}return ae}var ve={},In;function Ta(){if(In)return ve;In=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.canDragX=o,ve.canDragY=a,ve.createCoreData=u,ve.createDraggableData=c,ve.getBoundPosition=r,ve.getControlPosition=i,ve.snapToGrid=n;var e=Mt(),t=Nr();function r(d,T,E){if(!d.props.bounds)return[T,E];let{bounds:w}=d.props;w=typeof w=="string"?w:l(w);const x=g(d);if(typeof w=="string"){const{ownerDocument:S}=x,m=S.defaultView;let f;if(w==="parent"?f=x.parentNode:f=x.getRootNode().querySelector(w),!(f instanceof m.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');const h=f,v=m.getComputedStyle(x),s=m.getComputedStyle(h);w={left:-x.offsetLeft+(0,e.int)(s.paddingLeft)+(0,e.int)(v.marginLeft),top:-x.offsetTop+(0,e.int)(s.paddingTop)+(0,e.int)(v.marginTop),right:(0,t.innerWidth)(h)-(0,t.outerWidth)(x)-x.offsetLeft+(0,e.int)(s.paddingRight)-(0,e.int)(v.marginRight),bottom:(0,t.innerHeight)(h)-(0,t.outerHeight)(x)-x.offsetTop+(0,e.int)(s.paddingBottom)-(0,e.int)(v.marginBottom)}}return(0,e.isNum)(w.right)&&(T=Math.min(T,w.right)),(0,e.isNum)(w.bottom)&&(E=Math.min(E,w.bottom)),(0,e.isNum)(w.left)&&(T=Math.max(T,w.left)),(0,e.isNum)(w.top)&&(E=Math.max(E,w.top)),[T,E]}function n(d,T,E){const w=Math.round(T/d[0])*d[0],x=Math.round(E/d[1])*d[1];return[w,x]}function o(d){return d.props.axis==="both"||d.props.axis==="x"}function a(d){return d.props.axis==="both"||d.props.axis==="y"}function i(d,T,E){const w=typeof T=="number"?(0,t.getTouch)(d,T):null;if(typeof T=="number"&&!w)return null;const x=g(E),S=E.props.offsetParent||x.offsetParent||x.ownerDocument.body;return(0,t.offsetXYFromParent)(w||d,S,E.props.scale)}function u(d,T,E){const w=!(0,e.isNum)(d.lastX),x=g(d);return w?{node:x,deltaX:0,deltaY:0,lastX:T,lastY:E,x:T,y:E}:{node:x,deltaX:T-d.lastX,deltaY:E-d.lastY,lastX:d.lastX,lastY:d.lastY,x:T,y:E}}function c(d,T){const E=d.props.scale;return{node:T.node,x:d.state.x+T.deltaX/E,y:d.state.y+T.deltaY/E,deltaX:T.deltaX/E,deltaY:T.deltaY/E,lastX:d.state.x,lastY:d.state.y}}function l(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function g(d){const T=d.findDOMNode();if(!T)throw new Error("<DraggableCore>: Unmounted during event!");return T}return ve}var Xe={},mt={},$n;function Ra(){if($n)return mt;$n=1,Object.defineProperty(mt,"__esModule",{value:!0}),mt.default=e;function e(){}return mt}var zn;function js(){if(zn)return Xe;zn=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.default=void 0;var e=c(_),t=u(at()),r=u(De),n=Nr(),o=Ta(),a=Mt(),i=u(Ra());function u(x){return x&&x.__esModule?x:{default:x}}function c(x,S){if(typeof WeakMap=="function")var m=new WeakMap,f=new WeakMap;return(c=function(h,v){if(!v&&h&&h.__esModule)return h;var s,y,p={__proto__:null,default:h};if(h===null||typeof h!="object"&&typeof h!="function")return p;if(s=v?f:m){if(s.has(h))return s.get(h);s.set(h,p)}for(const R in h)R!=="default"&&{}.hasOwnProperty.call(h,R)&&((y=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(h,R))&&(y.get||y.set)?s(p,R,y):p[R]=h[R]);return p})(x,S)}function l(x,S,m){return(S=g(S))in x?Object.defineProperty(x,S,{value:m,enumerable:!0,configurable:!0,writable:!0}):x[S]=m,x}function g(x){var S=d(x,"string");return typeof S=="symbol"?S:S+""}function d(x,S){if(typeof x!="object"||!x)return x;var m=x[Symbol.toPrimitive];if(m!==void 0){var f=m.call(x,S);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(x)}const T={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let E=T.mouse,w=class extends e.Component{constructor(){super(...arguments),l(this,"dragging",!1),l(this,"lastX",NaN),l(this,"lastY",NaN),l(this,"touchIdentifier",null),l(this,"mounted",!1),l(this,"handleDragStart",S=>{if(this.props.onMouseDown(S),!this.props.allowAnyClick&&typeof S.button=="number"&&S.button!==0)return!1;const m=this.findDOMNode();if(!m||!m.ownerDocument||!m.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:f}=m;if(this.props.disabled||!(S.target instanceof f.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(S.target,this.props.handle,m)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(S.target,this.props.cancel,m))return;S.type==="touchstart"&&!this.props.allowMobileScroll&&S.preventDefault();const h=(0,n.getTouchIdentifier)(S);this.touchIdentifier=h;const v=(0,o.getControlPosition)(S,h,this);if(v==null)return;const{x:s,y}=v,p=(0,o.createCoreData)(this,s,y);(0,i.default)("DraggableCore: handleDragStart: %j",p),(0,i.default)("calling",this.props.onStart),!(this.props.onStart(S,p)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(f),this.dragging=!0,this.lastX=s,this.lastY=y,(0,n.addEvent)(f,E.move,this.handleDrag),(0,n.addEvent)(f,E.stop,this.handleDragStop))}),l(this,"handleDrag",S=>{const m=(0,o.getControlPosition)(S,this.touchIdentifier,this);if(m==null)return;let{x:f,y:h}=m;if(Array.isArray(this.props.grid)){let y=f-this.lastX,p=h-this.lastY;if([y,p]=(0,o.snapToGrid)(this.props.grid,y,p),!y&&!p)return;f=this.lastX+y,h=this.lastY+p}const v=(0,o.createCoreData)(this,f,h);if((0,i.default)("DraggableCore: handleDrag: %j",v),this.props.onDrag(S,v)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const p=document.createEvent("MouseEvents");p.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(p)}return}this.lastX=f,this.lastY=h}),l(this,"handleDragStop",S=>{if(!this.dragging)return;const m=(0,o.getControlPosition)(S,this.touchIdentifier,this);if(m==null)return;let{x:f,y:h}=m;if(Array.isArray(this.props.grid)){let p=f-this.lastX||0,R=h-this.lastY||0;[p,R]=(0,o.snapToGrid)(this.props.grid,p,R),f=this.lastX+p,h=this.lastY+R}const v=(0,o.createCoreData)(this,f,h);if(this.props.onStop(S,v)===!1||this.mounted===!1)return!1;const y=this.findDOMNode();y&&this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(y.ownerDocument),(0,i.default)("DraggableCore: handleDragStop: %j",v),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,y&&((0,i.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(y.ownerDocument,E.move,this.handleDrag),(0,n.removeEvent)(y.ownerDocument,E.stop,this.handleDragStop))}),l(this,"onMouseDown",S=>(E=T.mouse,this.handleDragStart(S))),l(this,"onMouseUp",S=>(E=T.mouse,this.handleDragStop(S))),l(this,"onTouchStart",S=>(E=T.touch,this.handleDragStart(S))),l(this,"onTouchEnd",S=>(E=T.touch,this.handleDragStop(S)))}componentDidMount(){this.mounted=!0;const S=this.findDOMNode();S&&(0,n.addEvent)(S,T.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const S=this.findDOMNode();if(S){const{ownerDocument:m}=S;(0,n.removeEvent)(m,T.mouse.move,this.handleDrag),(0,n.removeEvent)(m,T.touch.move,this.handleDrag),(0,n.removeEvent)(m,T.mouse.stop,this.handleDragStop),(0,n.removeEvent)(m,T.touch.stop,this.handleDragStop),(0,n.removeEvent)(S,T.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(m)}}findDOMNode(){var S,m,f;return(S=this.props)!=null&&S.nodeRef?(f=(m=this.props)==null?void 0:m.nodeRef)==null?void 0:f.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return Xe.default=w,l(w,"displayName","DraggableCore"),l(w,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(x,S){if(x[S]&&x[S].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),l(w,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),Xe}var Ln;function Ds(){return Ln||(Ln=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=d(_),r=g(at()),n=g(De),o=Cs(),a=Nr(),i=Ta(),u=Mt(),c=g(js()),l=g(Ra());function g(m){return m&&m.__esModule?m:{default:m}}function d(m,f){if(typeof WeakMap=="function")var h=new WeakMap,v=new WeakMap;return(d=function(s,y){if(!y&&s&&s.__esModule)return s;var p,R,C={__proto__:null,default:s};if(s===null||typeof s!="object"&&typeof s!="function")return C;if(p=y?v:h){if(p.has(s))return p.get(s);p.set(s,C)}for(const j in s)j!=="default"&&{}.hasOwnProperty.call(s,j)&&((R=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(s,j))&&(R.get||R.set)?p(C,j,R):C[j]=s[j]);return C})(m,f)}function T(){return T=Object.assign?Object.assign.bind():function(m){for(var f=1;f<arguments.length;f++){var h=arguments[f];for(var v in h)({}).hasOwnProperty.call(h,v)&&(m[v]=h[v])}return m},T.apply(null,arguments)}function E(m,f,h){return(f=w(f))in m?Object.defineProperty(m,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[f]=h,m}function w(m){var f=x(m,"string");return typeof f=="symbol"?f:f+""}function x(m,f){if(typeof m!="object"||!m)return m;var h=m[Symbol.toPrimitive];if(h!==void 0){var v=h.call(m,f);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(m)}class S extends t.Component{static getDerivedStateFromProps(f,h){let{position:v}=f,{prevPropsPosition:s}=h;return v&&(!s||v.x!==s.x||v.y!==s.y)?((0,l.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:s}),{x:v.x,y:v.y,prevPropsPosition:{...v}}):null}constructor(f){super(f),E(this,"onDragStart",(h,v)=>{if((0,l.default)("Draggable: onDragStart: %j",v),this.props.onStart(h,(0,i.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),E(this,"onDrag",(h,v)=>{if(!this.state.dragging)return!1;(0,l.default)("Draggable: onDrag: %j",v);const s=(0,i.createDraggableData)(this,v),y={x:s.x,y:s.y,slackX:0,slackY:0};if(this.props.bounds){const{x:R,y:C}=y;y.x+=this.state.slackX,y.y+=this.state.slackY;const[j,A]=(0,i.getBoundPosition)(this,y.x,y.y);y.x=j,y.y=A,y.slackX=this.state.slackX+(R-y.x),y.slackY=this.state.slackY+(C-y.y),s.x=y.x,s.y=y.y,s.deltaX=y.x-this.state.x,s.deltaY=y.y-this.state.y}if(this.props.onDrag(h,s)===!1)return!1;this.setState(y)}),E(this,"onDragStop",(h,v)=>{if(!this.state.dragging||this.props.onStop(h,(0,i.createDraggableData)(this,v))===!1)return!1;(0,l.default)("Draggable: onDragStop: %j",v);const y={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:R,y:C}=this.props.position;y.x=R,y.y=C}this.setState(y)}),this.state={dragging:!1,dragged:!1,x:f.position?f.position.x:f.defaultPosition.x,y:f.position?f.position.y:f.defaultPosition.y,prevPropsPosition:{...f.position},slackX:0,slackY:0,isElementSVG:!1},f.position&&!(f.onDrag||f.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var f,h;return((h=(f=this.props)==null?void 0:f.nodeRef)==null?void 0:h.current)??n.default.findDOMNode(this)}render(){const{axis:f,bounds:h,children:v,defaultPosition:s,defaultClassName:y,defaultClassNameDragging:p,defaultClassNameDragged:R,position:C,positionOffset:j,scale:A,...$}=this.props;let N={},L=null;const I=!!!C||this.state.dragging,X=C||s,ne={x:(0,i.canDragX)(this)&&I?this.state.x:X.x,y:(0,i.canDragY)(this)&&I?this.state.y:X.y};this.state.isElementSVG?L=(0,a.createSVGTransform)(ne,j):N=(0,a.createCSSTransform)(ne,j);const oe=(0,o.clsx)(v.props.className||"",y,{[p]:this.state.dragging,[R]:this.state.dragged});return t.createElement(c.default,T({},$,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:oe,style:{...v.props.style,...N},transform:L}))}}e.default=S,E(S,"displayName","Draggable"),E(S,"propTypes",{...c.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),E(S,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(ur)),ur}var Fn;function Oa(){if(Fn)return Ve.exports;Fn=1;const{default:e,DraggableCore:t}=Ds();return Ve.exports=e,Ve.exports.default=e,Ve.exports.DraggableCore=t,Ve.exports}var ht={},qn;function Ns(){if(qn)return ht;qn=1,ht.__esModule=!0,ht.cloneElement=u;var e=t(_);function t(c){return c&&c.__esModule?c:{default:c}}function r(c,l){var g=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);l&&(d=d.filter(function(T){return Object.getOwnPropertyDescriptor(c,T).enumerable})),g.push.apply(g,d)}return g}function n(c){for(var l=1;l<arguments.length;l++){var g=arguments[l]!=null?arguments[l]:{};l%2?r(Object(g),!0).forEach(function(d){o(c,d,g[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(g)):r(Object(g)).forEach(function(d){Object.defineProperty(c,d,Object.getOwnPropertyDescriptor(g,d))})}return c}function o(c,l,g){return l=a(l),l in c?Object.defineProperty(c,l,{value:g,enumerable:!0,configurable:!0,writable:!0}):c[l]=g,c}function a(c){var l=i(c,"string");return typeof l=="symbol"?l:String(l)}function i(c,l){if(typeof c!="object"||c===null)return c;var g=c[Symbol.toPrimitive];if(g!==void 0){var d=g.call(c,l);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(c)}function u(c,l){return l.style&&c.props.style&&(l.style=n(n({},c.props.style),l.style)),l.className&&c.props.className&&(l.className=c.props.className+" "+l.className),e.default.cloneElement(c,l)}return ht}var Ge={},Wn;function Pa(){if(Wn)return Ge;Wn=1,Ge.__esModule=!0,Ge.resizableProps=void 0;var e=t(at());Oa();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];var u=a[0];if(u.axis==="both"||u.axis==="y"){var c;return(c=e.default.number).isRequired.apply(c,a)}return e.default.number.apply(e.default,a)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];var u=a[0];if(u.axis==="both"||u.axis==="x"){var c;return(c=e.default.number).isRequired.apply(c,a)}return e.default.number.apply(e.default,a)}};return Ge.resizableProps=r,Ge}var Yn;function _a(){if(Yn)return Be;Yn=1,Be.__esModule=!0,Be.default=void 0;var e=i(_),t=Oa(),r=Ns(),n=Pa(),o=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(m){if(typeof WeakMap!="function")return null;var f=new WeakMap,h=new WeakMap;return(a=function(s){return s?h:f})(m)}function i(m,f){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var h=a(f);if(h&&h.has(m))return h.get(m);var v={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in m)if(y!=="default"&&Object.prototype.hasOwnProperty.call(m,y)){var p=s?Object.getOwnPropertyDescriptor(m,y):null;p&&(p.get||p.set)?Object.defineProperty(v,y,p):v[y]=m[y]}return v.default=m,h&&h.set(m,v),v}function u(){return u=Object.assign?Object.assign.bind():function(m){for(var f=1;f<arguments.length;f++){var h=arguments[f];for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(m[v]=h[v])}return m},u.apply(this,arguments)}function c(m,f){if(m==null)return{};var h={},v=Object.keys(m),s,y;for(y=0;y<v.length;y++)s=v[y],!(f.indexOf(s)>=0)&&(h[s]=m[s]);return h}function l(m,f){var h=Object.keys(m);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(m);f&&(v=v.filter(function(s){return Object.getOwnPropertyDescriptor(m,s).enumerable})),h.push.apply(h,v)}return h}function g(m){for(var f=1;f<arguments.length;f++){var h=arguments[f]!=null?arguments[f]:{};f%2?l(Object(h),!0).forEach(function(v){d(m,v,h[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(h)):l(Object(h)).forEach(function(v){Object.defineProperty(m,v,Object.getOwnPropertyDescriptor(h,v))})}return m}function d(m,f,h){return f=T(f),f in m?Object.defineProperty(m,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[f]=h,m}function T(m){var f=E(m,"string");return typeof f=="symbol"?f:String(f)}function E(m,f){if(typeof m!="object"||m===null)return m;var h=m[Symbol.toPrimitive];if(h!==void 0){var v=h.call(m,f);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(m)}function w(m,f){m.prototype=Object.create(f.prototype),m.prototype.constructor=m,x(m,f)}function x(m,f){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,s){return v.__proto__=s,v},x(m,f)}var S=function(m){w(f,m);function f(){for(var v,s=arguments.length,y=new Array(s),p=0;p<s;p++)y[p]=arguments[p];return v=m.call.apply(m,[this].concat(y))||this,v.handleRefs={},v.lastHandleRect=null,v.slack=null,v}var h=f.prototype;return h.componentWillUnmount=function(){this.resetData()},h.resetData=function(){this.lastHandleRect=this.slack=null},h.runConstraints=function(s,y){var p=this.props,R=p.minConstraints,C=p.maxConstraints,j=p.lockAspectRatio;if(!R&&!C&&!j)return[s,y];if(j){var A=this.props.width/this.props.height,$=s-this.props.width,N=y-this.props.height;Math.abs($)>Math.abs(N*A)?y=s/A:s=y*A}var L=s,W=y,I=this.slack||[0,0],X=I[0],ne=I[1];return s+=X,y+=ne,R&&(s=Math.max(R[0],s),y=Math.max(R[1],y)),C&&(s=Math.min(C[0],s),y=Math.min(C[1],y)),this.slack=[X+(L-s),ne+(W-y)],[s,y]},h.resizeHandler=function(s,y){var p=this;return function(R,C){var j=C.node,A=C.deltaX,$=C.deltaY;s==="onResizeStart"&&p.resetData();var N=(p.props.axis==="both"||p.props.axis==="x")&&y!=="n"&&y!=="s",L=(p.props.axis==="both"||p.props.axis==="y")&&y!=="e"&&y!=="w";if(!(!N&&!L)){var W=y[0],I=y[y.length-1],X=j.getBoundingClientRect();if(p.lastHandleRect!=null){if(I==="w"){var ne=X.left-p.lastHandleRect.left;A+=ne}if(W==="n"){var oe=X.top-p.lastHandleRect.top;$+=oe}}p.lastHandleRect=X,I==="w"&&(A=-A),W==="n"&&($=-$);var b=p.props.width+(N?A/p.props.transformScale:0),P=p.props.height+(L?$/p.props.transformScale:0),M=p.runConstraints(b,P);b=M[0],P=M[1];var k=b!==p.props.width||P!==p.props.height,z=typeof p.props[s]=="function"?p.props[s]:null,q=s==="onResize"&&!k;z&&!q&&(R.persist==null||R.persist(),z(R,{node:j,size:{width:b,height:P},handle:y})),s==="onResizeStop"&&p.resetData()}}},h.renderResizeHandle=function(s,y){var p=this.props.handle;if(!p)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+s,ref:y});if(typeof p=="function")return p(s,y);var R=typeof p.type=="string",C=g({ref:y},R?{}:{handleAxis:s});return e.cloneElement(p,C)},h.render=function(){var s=this,y=this.props,p=y.children,R=y.className,C=y.draggableOpts;y.width,y.height,y.handle,y.handleSize,y.lockAspectRatio,y.axis,y.minConstraints,y.maxConstraints,y.onResize,y.onResizeStop,y.onResizeStart;var j=y.resizeHandles;y.transformScale;var A=c(y,o);return(0,r.cloneElement)(p,g(g({},A),{},{className:(R?R+" ":"")+"react-resizable",children:[].concat(p.props.children,j.map(function($){var N,L=(N=s.handleRefs[$])!=null?N:s.handleRefs[$]=e.createRef();return e.createElement(t.DraggableCore,u({},C,{nodeRef:L,key:"resizableHandle-"+$,onStop:s.resizeHandler("onResizeStop",$),onStart:s.resizeHandler("onResizeStart",$),onDrag:s.resizeHandler("onResize",$)}),s.renderResizeHandle($,L))}))}))},f}(e.Component);return Be.default=S,S.propTypes=n.resizableProps,S.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},Be}var Ke={},Un;function Ms(){if(Un)return Ke;Un=1,Ke.__esModule=!0,Ke.default=void 0;var e=u(_),t=a(at()),r=a(_a()),n=Pa(),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function a(f){return f&&f.__esModule?f:{default:f}}function i(f){if(typeof WeakMap!="function")return null;var h=new WeakMap,v=new WeakMap;return(i=function(y){return y?v:h})(f)}function u(f,h){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var v=i(h);if(v&&v.has(f))return v.get(f);var s={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in f)if(p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)){var R=y?Object.getOwnPropertyDescriptor(f,p):null;R&&(R.get||R.set)?Object.defineProperty(s,p,R):s[p]=f[p]}return s.default=f,v&&v.set(f,s),s}function c(){return c=Object.assign?Object.assign.bind():function(f){for(var h=1;h<arguments.length;h++){var v=arguments[h];for(var s in v)Object.prototype.hasOwnProperty.call(v,s)&&(f[s]=v[s])}return f},c.apply(this,arguments)}function l(f,h){var v=Object.keys(f);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(f);h&&(s=s.filter(function(y){return Object.getOwnPropertyDescriptor(f,y).enumerable})),v.push.apply(v,s)}return v}function g(f){for(var h=1;h<arguments.length;h++){var v=arguments[h]!=null?arguments[h]:{};h%2?l(Object(v),!0).forEach(function(s){d(f,s,v[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(v)):l(Object(v)).forEach(function(s){Object.defineProperty(f,s,Object.getOwnPropertyDescriptor(v,s))})}return f}function d(f,h,v){return h=T(h),h in f?Object.defineProperty(f,h,{value:v,enumerable:!0,configurable:!0,writable:!0}):f[h]=v,f}function T(f){var h=E(f,"string");return typeof h=="symbol"?h:String(h)}function E(f,h){if(typeof f!="object"||f===null)return f;var v=f[Symbol.toPrimitive];if(v!==void 0){var s=v.call(f,h);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(f)}function w(f,h){if(f==null)return{};var v={},s=Object.keys(f),y,p;for(p=0;p<s.length;p++)y=s[p],!(h.indexOf(y)>=0)&&(v[y]=f[y]);return v}function x(f,h){f.prototype=Object.create(h.prototype),f.prototype.constructor=f,S(f,h)}function S(f,h){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,y){return s.__proto__=y,s},S(f,h)}var m=function(f){x(h,f);function h(){for(var s,y=arguments.length,p=new Array(y),R=0;R<y;R++)p[R]=arguments[R];return s=f.call.apply(f,[this].concat(p))||this,s.state={width:s.props.width,height:s.props.height,propsWidth:s.props.width,propsHeight:s.props.height},s.onResize=function(C,j){var A=j.size;s.props.onResize?(C.persist==null||C.persist(),s.setState(A,function(){return s.props.onResize&&s.props.onResize(C,j)})):s.setState(A)},s}h.getDerivedStateFromProps=function(y,p){return p.propsWidth!==y.width||p.propsHeight!==y.height?{width:y.width,height:y.height,propsWidth:y.width,propsHeight:y.height}:null};var v=h.prototype;return v.render=function(){var y=this.props,p=y.handle,R=y.handleSize;y.onResize;var C=y.onResizeStart,j=y.onResizeStop,A=y.draggableOpts,$=y.minConstraints,N=y.maxConstraints,L=y.lockAspectRatio,W=y.axis;y.width,y.height;var I=y.resizeHandles,X=y.style,ne=y.transformScale,oe=w(y,o);return e.createElement(r.default,{axis:W,draggableOpts:A,handle:p,handleSize:R,height:this.state.height,lockAspectRatio:L,maxConstraints:N,minConstraints:$,onResizeStart:C,onResize:this.onResize,onResizeStop:j,resizeHandles:I,transformScale:ne,width:this.state.width},e.createElement("div",c({},oe,{style:g(g({},X),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},h}(e.Component);return Ke.default=m,m.propTypes=g(g({},n.resizableProps),{},{children:t.default.element}),Ke}var Hn;function ks(){return Hn||(Hn=1,He.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},He.exports.Resizable=_a().default,He.exports.ResizableBox=Ms().default),He.exports}var Is=ks();const $s=e=>e?Array.isArray(e)?e.join("."):e:"",zs=se.span`
|
|
282
261
|
position: absolute;
|
|
283
262
|
top: 0;
|
|
284
263
|
right: 0;
|
|
@@ -307,7 +286,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
307
286
|
display: inline-block;
|
|
308
287
|
transform: rotateZ(90deg) scale(0.3);
|
|
309
288
|
}
|
|
310
|
-
`,
|
|
289
|
+
`,Ls=e=>{const{onResize:t,width:r,...n}=e,[o,a]=_.useState(!1);if(!r)return D.jsx("th",{...n});const i=c=>{a(!0)},u=c=>{a(!1)};return D.jsx(Is.Resizable,{width:r,height:0,handle:D.jsx(zs,{className:o?"resizing":"",onClick:c=>c.stopPropagation(),children:D.jsx(Ie.MenuOutlined,{className:"react-resizable-handle-icon"})}),onResize:t,onResizeStart:i,onResizeStop:u,draggableOpts:{enableUserSelectHack:!1},children:D.jsx("th",{...n})})},Fs=(e,t)=>{const[r,n]=wa("table-resizable_"+t,{}),o=a=>(i,{size:u})=>{const c=$s(a==null?void 0:a.dataIndex);n(l=>({...l,[c]:u.width}))};return _.useMemo(()=>e.map(a=>{let i=a.dataIndex;Array.isArray(a.dataIndex)?i=a.dataIndex.join("."):i=a.dataIndex;const u=(r==null?void 0:r[i])||a.width;return{...a,width:u,onHeaderCell:c=>({width:c.width,onResize:o(c)})}}),[e,r])},qs=se.div`
|
|
311
290
|
position: relative;
|
|
312
291
|
|
|
313
292
|
.ant-pagination-options {
|
|
@@ -315,7 +294,7 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
315
294
|
width: auto !important;
|
|
316
295
|
}
|
|
317
296
|
}
|
|
318
|
-
`;function
|
|
297
|
+
`;function Ws(e,t){const{columns:r=[],columnsSort:n,columnsVisible:o,tableId:a="",pagination:i,dataSource:u,columnsResizable:c}=e,g=location.pathname+a,[d,T]=wa("TABLE_"+g,{defaultValue:null}),[E,w]=_.useState([]),[x,S]=_.useState([]),m=_.useRef(null),f=j=>{w(j),v(j,x)},h=j=>{S(j),v(E,j)},v=(j,A)=>{T({order:j,visibleItems:A})},s=()=>{if(d)w(d.order),S(d.visibleItems);else{const j=[],A=[];for(const $ of r){let N;"dataIndex"in $&&(Array.isArray($.dataIndex)?N=$.dataIndex.join(","):N=$.dataIndex,j.push(N),"columnVisible"in $&&!$.columnVisible||A.push(N))}w(j),S(A)}},y=j=>{const A={...j},$=N=>D.jsxs("span",{children:[N,D.jsx(Ss,{onChangeOrder:f,onChangeVisible:h,order:E,columnsSort:n,visibleItems:x,columns:r,columnsVisible:o})]});return typeof j.title=="function"?A.title=N=>$(j.title(N)):A.title=$(j.title),A},p=j=>j!=null&&j!==""?D.jsx(te.Tooltip,{title:j,placement:"topLeft",children:D.jsx("span",{className:"column-ellipsis",children:j})}):"-",R=_.useMemo(()=>{let j=r;if(!n&&!o)j=r;else{const A=[];E.filter($=>x.includes($)).forEach(($,N,L)=>{for(const W of r)if("dataIndex"in W){let I;if(Array.isArray(W.dataIndex)?I=W.dataIndex.join(","):I=W.dataIndex,$===I){(n||o)&&N===L.length-1?A.push(y(W)):A.push(W);break}}}),j=A}return j.map(A=>{if(A.filters&&!A.filterIcon&&(A.filterIcon=D.jsx(Ie.DownOutlined,{type:"icon-xiajiantou",style:{fontWeight:500}})),A.ellipsis===!1)A.ellipsis=!1;else{const $=A.ellipsis||{};A.ellipsis={showTitle:!1,...$},A.render||(A.render=p)}return A})},[E,x,r]),C=_.useMemo(()=>e.pagination?{...i||{},showTotal:()=>u&&u.length>0&&D.jsx(_s,{...e})}:!1,[i]);return _.useEffect(()=>{s()},[]),D.jsx(qs,{ref:t,children:D.jsx(te.Table,{ref:m,scroll:{x:900},components:{header:{cell:c?Ls:void 0}},...e,pagination:C,columns:c?Fs(R,a):R})})}const Ys=_.forwardRef(Ws),Us=se(te.Form.Item)`
|
|
319
298
|
margin-bottom: 0 !important;
|
|
320
299
|
|
|
321
300
|
.search-item__label {
|
|
@@ -338,14 +317,14 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
338
317
|
.search-item__content {
|
|
339
318
|
flex: 1;
|
|
340
319
|
}
|
|
341
|
-
`;function
|
|
320
|
+
`;function Hs({children:e,...t}){return D.jsx(Us,{...t,children:e})}const Bs=se(Ie.CaretUpOutlined,{shouldForwardProp:e=>e!=="show"})`
|
|
342
321
|
transition: transform 0.3s ease-in-out;
|
|
343
322
|
transform: rotate(${e=>e.show?"0deg":"180deg"});
|
|
344
|
-
`;function
|
|
323
|
+
`;function Vs({panel:e,onChange:t}){const r=_.useMemo(()=>e==null?void 0:e.show,[e]),n=_.useCallback(()=>{e==null||e.toggle(),t==null||t(!(e!=null&&e.show))},[e]);return D.jsxs(te.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:n,children:[D.jsx(Me,{id:"comgponent.searcharea.togle",defaultMessage:"高级搜索"}),D.jsx(Bs,{show:r})]})}const Xs=se("div",{shouldForwardProp:e=>e!=="show"})`
|
|
345
324
|
overflow: hidden;
|
|
346
325
|
transition: max-height 0.4s ease-in-out;
|
|
347
326
|
max-height: ${e=>e.show?"450px":"0"};
|
|
348
|
-
`,
|
|
327
|
+
`,Gs=se(te.Form)`
|
|
349
328
|
padding: 20px;
|
|
350
329
|
padding-bottom: 0;
|
|
351
330
|
margin-bottom: 20px;
|
|
@@ -355,9 +334,9 @@ For more details see https://formatjs.github.io/docs/getting-started/message-dis
|
|
|
355
334
|
.ant-form-item {
|
|
356
335
|
margin-bottom: 20px;
|
|
357
336
|
}
|
|
358
|
-
`,
|
|
337
|
+
`,Ks=se.div`
|
|
359
338
|
gap: 10px;
|
|
360
339
|
display: flex;
|
|
361
340
|
justify-content: flex-end;
|
|
362
341
|
margin-bottom: 20px;
|
|
363
|
-
`;function
|
|
342
|
+
`;function Js({children:e,onSearch:t,onClose:r,onReset:n,resetFieldsValue:o,col:a={},row:i={},loading:u=!1,instance:c,...l}){const[g]=te.Form.useForm(),[d,T]=_.useState((c==null?void 0:c.show)??!1),E=_.useMemo(()=>(c==null?void 0:c.show)??d,[c,d]),w=_.useCallback(()=>{var f;typeof(c==null?void 0:c.toggle)=="function"?(f=c==null?void 0:c.toggle)==null||f.call(c):T(h=>!h)},[c,d]),x=()=>{const f=g.getFieldsValue();t==null||t(f)},S=()=>{o?g.setFieldsValue(o):g.resetFields(),x(),n==null||n()},m=()=>{w(),r==null||r()};return D.jsx(Xs,{show:E,children:D.jsx(Gs,{form:g,labelCol:{flex:"70px"},wrapperCol:{flex:"1",style:{maxWidth:"280px"}},...l,children:D.jsxs(te.Row,{gutter:10,justify:"space-between",...i,children:[Array.isArray(e)?e.map(f=>_.createElement(te.Col,{span:6,xxl:6,xl:8,lg:12,xs:24,key:f.props.name||f.key||f.props.label,...a},f)):e,D.jsx(te.Col,{flex:1,children:D.jsxs(Ks,{children:[D.jsx(te.Button,{loading:u,type:"primary",onClick:x,children:D.jsx(Me,{id:"component.searcharea.submit",defaultMessage:"筛选"})}),D.jsx(te.Button,{loading:u,onClick:S,children:D.jsx(Me,{id:"component.searcharea.reset",defaultMessage:"重置"})}),D.jsxs(te.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:m,children:[D.jsx(Me,{id:"component.searcharea.close",defaultMessage:"收起"}),D.jsx(Ie.UpOutlined,{})]})]})})]})})})}const kt=Js;function Zs(e){const[t,r]=_.useState(e??!1);return{show:t,toggle:()=>{r(o=>!o)}}}kt.useSearchArea=Zs;kt.Item=Hs;kt.ToggleButton=Vs;function Qs(e,t,r){const n=ms(e,{...t,onError(a,i){var u;((t==null?void 0:t.errorMessage)??!0)&&exports.message.error(a.message),(u=t==null?void 0:t.onError)==null||u.call(t,a,i)}},r),o=n.data&&typeof n.data=="object"&&"data"in n.data?n.data.data:n.data;return{...n,data:o}}var eu=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},tu=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},ru={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:eu,onWarn:tu};function nu(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}function au(e){nu(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}he(he({},ru),{textComponent:re.Fragment});var Mr=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=re.createContext(null)):re.createContext(null);Mr.Consumer;Mr.Provider;var ou=Mr;function kr(){var e=re.useContext(ou);return au(e),e}var gr;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(gr||(gr={}));var vr;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(vr||(vr={}));function Ca(e){var t=function(r){var n=kr(),o=r.value,a=r.children,i=jt(r,["value","children"]),u=typeof o=="string"?new Date(o||0):o,c=e==="formatDate"?n.formatDateToParts(u,i):n.formatTimeToParts(u,i);return a(c)};return t.displayName=vr[e],t}function it(e){var t=function(r){var n=kr(),o=r.value,a=r.children,i=jt(r,["value","children"]),u=n[e](o,i);if(typeof a=="function")return a(u);var c=n.textComponent||re.Fragment;return re.createElement(c,null,u)};return t.displayName=gr[e],t}it("formatDate");it("formatTime");it("formatNumber");it("formatList");it("formatDisplayName");Ca("formatDate");Ca("formatTime");const iu={ascend:"ASC",descend:"DESC"},su={rowKey:"id",interval:!1,immediate:!0,defaultPagination:{current:1,pageSize:10},showRowSelection:!1,multiPageSelection:!1,onBeforeRequest:async e=>{},onAfterRequest:async e=>{}};function uu(e,t={}){const r=kr(),{rowKey:n,interval:o,immediate:a,defaultPagination:i,showRowSelection:u,multiPageSelection:c,onBeforeRequest:l,onAfterRequest:g}={...su,...t},d=_.useRef(null),[T,E]=_.useState(!1),[w,x]=_.useState([]),[S,m]=_.useState({current:1,pageSize:10,total:0,...i}),[f,h]=_.useState([]),{current:v}=_.useRef({pageNum:1,pageSize:10,column:null,order:null}),s=_.useRef(S);s.current=S;const y=we(async(N=1,L=10,W)=>{if(W!=="auto")E(!0),R();else if(f.length!==0){p(N,L);return}try{const I={...v,pageNum:Number(N),pageSize:Number(L)},X=await(l==null?void 0:l(I)),oe=await e(X!==void 0?X:I),{records:b,total:P,current:M,size:k}=oe.data,z=await(g==null?void 0:g(oe)),q=Array.isArray(z)?z:b;if(x(q),(M!==S.current||L!==S.pageSize||P!==S.total)&&m({current:M,pageSize:k,total:P}),q.length===0&&M&&M>1&&P&&P>0){const Y=Math.ceil(P/k);y(Y,L,W)}else p(M,k)}catch(I){const X=I instanceof Error?I.message:"请求失败";exports.message.error(X)}finally{c||h([]),E(!1)}}),p=we((N,L)=>{o&&(R(),d.current===null&&(d.current=setTimeout(()=>{y(N,L,"auto")},o)))}),R=_.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),C=_.useCallback((N,L,W)=>{h(L)},[]),j=_.useCallback((N={})=>{const L={pageNum:1,pageSize:S.pageSize,column:v.column,order:v.order};Object.keys(v).forEach(W=>{W!=="column"&&W!=="order"&&W!=="pageNum"&&W!=="pageSize"&&Reflect.deleteProperty(v,W)}),Object.assign(v,L,N),y(1,S.pageSize)},[S.pageSize,y,v]),A=_.useCallback(()=>{y(s.current.current,s.current.pageSize)},[y]),$=_.useCallback((N,L,W)=>{var oe;Object.entries(L).forEach(([b,P])=>{P&&Array.isArray(P)&&P.length===1?v[b]=P[0]:v[b]=P});const I=Array.isArray(W)?W[0]:W;I!=null&&I.order?((oe=I==null?void 0:I.column)!=null&&oe.sort?v.column=I.column.sort:I.field&&(v.column=Array.isArray(I.field)?I.field[0]:I.field),v.order=iu[I.order]):(v.column=null,v.order=null);const X=N.current??s.current.current,ne=N.pageSize??s.current.pageSize;y(X,ne)},[y,v]);return _.useEffect(()=>(a&&y(s.current.current,s.current.pageSize),()=>{R()}),[a,y,R]),{loading:T,tableProps:{rowKey:String(n),loading:T,dataSource:w,...u?{rowSelection:{selectedRowKeys:f.map(N=>N[n]),onChange:C}}:{},onChange:$,pagination:{showQuickJumper:!0,showSizeChanger:!0,showTotal:N=>r.$t({id:"component.table.total",defaultMessage:"共{total}条"},{total:N}),...S}},search:{pagination:S,params:v,submit:j,refresh:A},rowSelection:{selectedRows:f,selectedRowKeys:f.map(N=>N[n])}}}exports.App=ri;exports.CheckboxValue=oi;exports.ConfigContext=At;exports.ConfigProvider=ha;exports.GlobalLoading=fa;exports.IconButton=Pi;exports.IconFont=Cr;exports.SearchArea=kt;exports.SwitchValue=ii;exports.Table=Ys;exports.useRequest=Qs;exports.useTable=uu;
|