@cubejs-backend/server-core 1.7.39 → 1.7.40
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/package.json +13 -13
- package/playground/vizard/assets/abap-CRCWOmpq.js +1 -0
- package/playground/vizard/assets/apex-DnsZk_dE.js +1 -0
- package/playground/vizard/assets/azcli-1IWB1ccx.js +1 -0
- package/playground/vizard/assets/bat-DPkNLes8.js +1 -0
- package/playground/vizard/assets/{bicep-DJPqIr_M.js → bicep-Corcdgou.js} +1 -6
- package/playground/vizard/assets/cameligo-CGrWLZr3.js +1 -0
- package/playground/vizard/assets/clients-CxGQtFsu.js +1 -0
- package/playground/vizard/assets/clojure-D9WOWImG.js +1 -0
- package/playground/vizard/assets/coffee-B7EJu28W.js +1 -0
- package/playground/vizard/assets/cpp-BaF-TIV3.js +1 -0
- package/playground/vizard/assets/csharp-BoL64M5l.js +1 -0
- package/playground/vizard/assets/csp-C46ZqvIl.js +1 -0
- package/playground/vizard/assets/{css-CkCHETKw.js → css-DQU6DXDx.js} +1 -6
- package/playground/vizard/assets/{css.worker-CJ81phlL.js → css.worker-C3oFsChe.js} +23 -28
- package/playground/vizard/assets/cssMode-DtHNIdrr.js +4 -0
- package/playground/vizard/assets/cypher-D84EuPTj.js +1 -0
- package/playground/vizard/assets/dart-D8lhlL1r.js +1 -0
- package/playground/vizard/assets/dockerfile-DLk6rpji.js +1 -0
- package/playground/vizard/assets/ecl-BO6FnfXk.js +1 -0
- package/playground/vizard/assets/editor.worker-CHAQ398o.js +11 -0
- package/playground/vizard/assets/elixir-BRjLKONM.js +1 -0
- package/playground/vizard/assets/flow9-Cac8vKd7.js +1 -0
- package/playground/vizard/assets/{freemarker2-BjRjUUgK.js → freemarker2-D3hRPg66.js} +3 -8
- package/playground/vizard/assets/fsharp-fd1GTHhf.js +1 -0
- package/playground/vizard/assets/go-O9LJTZXk.js +1 -0
- package/playground/vizard/assets/graphql-LQdxqEYJ.js +1 -0
- package/playground/vizard/assets/handlebars-CmzyTLHM.js +1 -0
- package/playground/vizard/assets/hcl-DxDQ3s82.js +1 -0
- package/playground/vizard/assets/html-BQlDvTLO.js +1 -0
- package/playground/vizard/assets/htmlMode-B5vyN_yh.js +4 -0
- package/playground/vizard/assets/icons-CwVYGRlZ.js +57 -0
- package/playground/vizard/assets/{index-B0u8YO_h.css → index-9LlxgSLj.css} +1 -1
- package/playground/vizard/assets/index-DONzDWNC.js +7 -0
- package/playground/vizard/assets/ini-BvajGCUy.js +1 -0
- package/playground/vizard/assets/java-SYsfObOQ.js +1 -0
- package/playground/vizard/assets/javascript-Cqq1UmLD.js +1 -0
- package/playground/vizard/assets/json.worker-CH1C3E3z.js +37 -0
- package/playground/vizard/assets/jsonMode-CZ-xTnh0.js +6 -0
- package/playground/vizard/assets/julia-DQXNmw_w.js +1 -0
- package/playground/vizard/assets/kotlin-qQ0MG-9I.js +1 -0
- package/playground/vizard/assets/less-GGFNNJHn.js +2 -0
- package/playground/vizard/assets/lexon-Canl7DCW.js +1 -0
- package/playground/vizard/assets/liquid-BwaniY5x.js +1 -0
- package/playground/vizard/assets/lua-D28Ae8-K.js +1 -0
- package/playground/vizard/assets/m3-DPitgjJI.js +1 -0
- package/playground/vizard/assets/markdown-B811l8j2.js +1 -0
- package/playground/vizard/assets/mdx-FYEkmf7B.js +1 -0
- package/playground/vizard/assets/mips-CdjsipkG.js +1 -0
- package/playground/vizard/assets/{monaco-QpZRkR_O.js → monaco-CYdCgY0W.js} +151 -181
- package/playground/vizard/assets/msdax-CYqgjx_P.js +1 -0
- package/playground/vizard/assets/mysql-BHd6q0vd.js +1 -0
- package/playground/vizard/assets/objective-c-B1aVtJYH.js +1 -0
- package/playground/vizard/assets/other-DNLijWhD.js +2 -0
- package/playground/vizard/assets/pascal-BhNW15KB.js +1 -0
- package/playground/vizard/assets/pascaligo-5jv8CcQD.js +1 -0
- package/playground/vizard/assets/perl-DlYyT36c.js +1 -0
- package/playground/vizard/assets/pgsql-Dy0bjov7.js +1 -0
- package/playground/vizard/assets/php-120yhfDK.js +1 -0
- package/playground/vizard/assets/pla-CjnFlu4u.js +1 -0
- package/playground/vizard/assets/postiats-CQpG440k.js +1 -0
- package/playground/vizard/assets/powerquery-DdJtto1Z.js +1 -0
- package/playground/vizard/assets/powershell-Bu_VLpJB.js +1 -0
- package/playground/vizard/assets/{protobuf-Dzs34GPr.js → protobuf-IBS6jZEB.js} +1 -6
- package/playground/vizard/assets/pug-kFxLfcjb.js +1 -0
- package/playground/vizard/assets/python-CjR2h7KU.js +1 -0
- package/playground/vizard/assets/qsharp-gaqVKiJ_.js +1 -0
- package/playground/vizard/assets/r-BIFz-_sK.js +1 -0
- package/playground/vizard/assets/razor-D4Y0dbDk.js +1 -0
- package/playground/vizard/assets/react-l0sNRNKZ.js +1 -0
- package/playground/vizard/assets/redis-CHOsPHWR.js +1 -0
- package/playground/vizard/assets/redshift-CBifECDb.js +1 -0
- package/playground/vizard/assets/restructuredtext-CghPJEOS.js +1 -0
- package/playground/vizard/assets/ruby-CYWGW-b1.js +1 -0
- package/playground/vizard/assets/rust-DMDD0SHb.js +1 -0
- package/playground/vizard/assets/sb-BYAiYHFx.js +1 -0
- package/playground/vizard/assets/scala-Bqvq8jcR.js +1 -0
- package/playground/vizard/assets/scheme-Dhb-2j9p.js +1 -0
- package/playground/vizard/assets/{scss-Rf_ppwBg.js → scss-CTwUZ5N7.js} +1 -6
- package/playground/vizard/assets/shell-CsDZo4DB.js +1 -0
- package/playground/vizard/assets/solidity-CME5AdoB.js +1 -0
- package/playground/vizard/assets/sophia-RYC1BQQz.js +1 -0
- package/playground/vizard/assets/sparql-KEyrF7De.js +1 -0
- package/playground/vizard/assets/sql-BdTr02Mf.js +1 -0
- package/playground/vizard/assets/st-C7iG7M4S.js +1 -0
- package/playground/vizard/assets/swift-D7IUmUK8.js +1 -0
- package/playground/vizard/assets/systemverilog-DgMryOEJ.js +1 -0
- package/playground/vizard/assets/tcl-PloMZuKG.js +1 -0
- package/playground/vizard/assets/{ts.worker-VACfgpbU.js → ts.worker-CqkOEKjO.js} +75 -93
- package/playground/vizard/assets/{tsMode-DeCT_7_p.js → tsMode-Cvjisfey.js} +3 -8
- package/playground/vizard/assets/twig-BfRIq3la.js +1 -0
- package/playground/vizard/assets/typescript-DwgdF-Pj.js +1 -0
- package/playground/vizard/assets/uikit-Bx93IdUi.js +446 -0
- package/playground/vizard/assets/vb-BwAE3J76.js +1 -0
- package/playground/vizard/assets/{wgsl-DlxrJ_uh.js → wgsl-B_1kOXbF.js} +1 -6
- package/playground/vizard/assets/xml-xRWrYvkC.js +1 -0
- package/playground/vizard/assets/yaml-W6T5Qjhq.js +1 -0
- package/playground/vizard/download/react-typescript-antd-table.zip +0 -0
- package/playground/vizard/download/react-typescript-chartjs-area+bar+doughnut+line+pie.zip +0 -0
- package/playground/vizard/index.html +7 -8
- package/playground/vizard/preview/react-typescript-antd-table/assets/index-ChyDO9dl.js +313 -0
- package/playground/vizard/preview/react-typescript-antd-table/index.html +2 -2
- package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/assets/index-D9jKufPU.js +12 -0
- package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/index.html +2 -2
- package/playground/vizard/assets/abap-Bs-KDgo-.js +0 -6
- package/playground/vizard/assets/apex-BB8ijgrA.js +0 -6
- package/playground/vizard/assets/azcli-CM0y7Ame.js +0 -6
- package/playground/vizard/assets/bat-Bfxf8Mzl.js +0 -6
- package/playground/vizard/assets/cameligo-PnszTm2c.js +0 -6
- package/playground/vizard/assets/clients-CzhsrDwG.js +0 -1
- package/playground/vizard/assets/clojure-B3cFVYI-.js +0 -6
- package/playground/vizard/assets/coffee-D8tSzcLH.js +0 -6
- package/playground/vizard/assets/cpp-CP-cATHl.js +0 -6
- package/playground/vizard/assets/csharp-Dfj4WFqy.js +0 -6
- package/playground/vizard/assets/csp-D9HxVpWn.js +0 -6
- package/playground/vizard/assets/cssMode-EIMeoZ0D.js +0 -9
- package/playground/vizard/assets/cypher-B50w5pq9.js +0 -6
- package/playground/vizard/assets/dart-DvROnYA_.js +0 -6
- package/playground/vizard/assets/dockerfile-C4f37Dvd.js +0 -6
- package/playground/vizard/assets/ecl-DW46Dzft.js +0 -6
- package/playground/vizard/assets/editor.worker-DnhKYsI_.js +0 -11
- package/playground/vizard/assets/elixir-BIa5JtGe.js +0 -6
- package/playground/vizard/assets/flow9-ByI4Scwv.js +0 -6
- package/playground/vizard/assets/fsharp-Cgf6u04w.js +0 -6
- package/playground/vizard/assets/go-CJfxPkej.js +0 -6
- package/playground/vizard/assets/graphql-CGlhcY2-.js +0 -6
- package/playground/vizard/assets/handlebars-Cp-Otq7z.js +0 -6
- package/playground/vizard/assets/hcl-CTI7WNlW.js +0 -6
- package/playground/vizard/assets/html-9X_QuFNV.js +0 -6
- package/playground/vizard/assets/htmlMode-BVz_CiVZ.js +0 -9
- package/playground/vizard/assets/icons-D8fX1_2-.js +0 -61
- package/playground/vizard/assets/index-Cn46wccg.js +0 -4723
- package/playground/vizard/assets/ini-qJXHXiTY.js +0 -6
- package/playground/vizard/assets/java-Dnrl9822.js +0 -6
- package/playground/vizard/assets/javascript-BrlNfx48.js +0 -6
- package/playground/vizard/assets/json.worker-DY5adJme.js +0 -42
- package/playground/vizard/assets/jsonMode-CAwYRRV9.js +0 -11
- package/playground/vizard/assets/julia-pqMLycLG.js +0 -6
- package/playground/vizard/assets/kotlin-DLX697jv.js +0 -6
- package/playground/vizard/assets/less-2ExdFhZM.js +0 -7
- package/playground/vizard/assets/lexon-ABKfEwhw.js +0 -6
- package/playground/vizard/assets/liquid-B5u8u5ff.js +0 -6
- package/playground/vizard/assets/lua-CI0blgFs.js +0 -6
- package/playground/vizard/assets/m3-yVPEHiu4.js +0 -6
- package/playground/vizard/assets/markdown-CjOKAnMy.js +0 -6
- package/playground/vizard/assets/mdx-BGfI80Xw.js +0 -6
- package/playground/vizard/assets/mips-B7KWClFm.js +0 -6
- package/playground/vizard/assets/msdax-N_40gjXO.js +0 -6
- package/playground/vizard/assets/mysql-CzgTwwi2.js +0 -6
- package/playground/vizard/assets/objective-c-CwAIQX-6.js +0 -6
- package/playground/vizard/assets/other-HgnFgCOO.js +0 -2
- package/playground/vizard/assets/pascal-3SrKWnFX.js +0 -6
- package/playground/vizard/assets/pascaligo-Cv9Y0fbC.js +0 -6
- package/playground/vizard/assets/perl-DHxnJL0_.js +0 -6
- package/playground/vizard/assets/pgsql-DGJFw0qd.js +0 -6
- package/playground/vizard/assets/php-BA3Rqjpx.js +0 -6
- package/playground/vizard/assets/pla-DKf5_u7N.js +0 -6
- package/playground/vizard/assets/postiats-Bup1kUyj.js +0 -6
- package/playground/vizard/assets/powerquery-BfbPeLER.js +0 -6
- package/playground/vizard/assets/powershell-DAsS7BG8.js +0 -6
- package/playground/vizard/assets/pug-CVuUMJ1K.js +0 -6
- package/playground/vizard/assets/python-eaj7SXr6.js +0 -6
- package/playground/vizard/assets/qsharp-BgY1GbL_.js +0 -6
- package/playground/vizard/assets/r-C2Iz-cGs.js +0 -6
- package/playground/vizard/assets/razor-mSmpvSb7.js +0 -6
- package/playground/vizard/assets/react-CJahmRYQ.js +0 -32
- package/playground/vizard/assets/redis-F7UxdB6U.js +0 -6
- package/playground/vizard/assets/redshift-CDF44XVS.js +0 -6
- package/playground/vizard/assets/restructuredtext-C_dzeD_4.js +0 -6
- package/playground/vizard/assets/ruby-BdxlVRg3.js +0 -6
- package/playground/vizard/assets/rust-gU8692nP.js +0 -6
- package/playground/vizard/assets/sb-CsAkPjmq.js +0 -6
- package/playground/vizard/assets/scala-D_TH4Qyk.js +0 -6
- package/playground/vizard/assets/scheme-CTXRt_ZJ.js +0 -6
- package/playground/vizard/assets/shell-osqRiq1b.js +0 -6
- package/playground/vizard/assets/solidity-BTHmi1CB.js +0 -6
- package/playground/vizard/assets/sophia-BRe4RArb.js +0 -6
- package/playground/vizard/assets/sparql-CaSv-uNl.js +0 -6
- package/playground/vizard/assets/sql-CHiRcria.js +0 -6
- package/playground/vizard/assets/st-CCGZ7KTi.js +0 -6
- package/playground/vizard/assets/swift-DeyDsJzf.js +0 -8
- package/playground/vizard/assets/systemverilog-RSGMMa-l.js +0 -6
- package/playground/vizard/assets/tcl-B28K5YOH.js +0 -6
- package/playground/vizard/assets/twig-ChoE7Tfw.js +0 -6
- package/playground/vizard/assets/typescript-DHPJO5zk.js +0 -6
- package/playground/vizard/assets/uikit-B7SaluUF.js +0 -1352
- package/playground/vizard/assets/vb-BCnlgLOU.js +0 -6
- package/playground/vizard/assets/xml-BzVPTsY-.js +0 -6
- package/playground/vizard/assets/yaml-BQjIkRBM.js +0 -6
- package/playground/vizard/preview/react-typescript-antd-table/assets/index-BUeSoip0.js +0 -355
- package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/assets/index-CqgSyhTK.js +0 -57
- /package/playground/vizard/assets/{monaco-ZJDocGaF.css → monaco-DubZzIGg.css} +0 -0
- /package/playground/vizard/preview/react-typescript-antd-table/assets/{index-D47x4Gho.css → index-DMzrXVau.css} +0 -0
- /package/playground/vizard/preview/react-typescript-chartjs-area+bar+doughnut+line+pie/assets/{index-D47x4Gho.css → index-DMzrXVau.css} +0 -0
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import{a as Vc,g as ps,r as b,S as ev,b as vo,R as ce,t as v2}from"./other-DNLijWhD.js";import{R as m2,_ as hs,a as ao,b as g2,c as y2}from"./icons-CwVYGRlZ.js";var wu={exports:{}},Xi={};var gh;function x2(){if(gh)return Xi;gh=1;var e=Vc(),n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(d,v,h){var m,g={},y=null,w=null;h!==void 0&&(y=""+h),v.key!==void 0&&(y=""+v.key),v.ref!==void 0&&(w=v.ref);for(m in v)o.call(v,m)&&!u.hasOwnProperty(m)&&(g[m]=v[m]);if(d&&d.defaultProps)for(m in v=d.defaultProps,v)g[m]===void 0&&(g[m]=v[m]);return{$$typeof:n,type:d,key:y,ref:w,props:g,_owner:s.current}}return Xi.Fragment=i,Xi.jsx=c,Xi.jsxs=c,Xi}var yh;function b2(){return yh||(yh=1,wu.exports=x2()),wu.exports}var $=b2(),_l={},Su={exports:{}},dt={},Eu={exports:{}},$u={};var xh;function w2(){return xh||(xh=1,(function(e){function n(X,ee){var z=X.length;X.push(ee);e:for(;0<z;){var de=z-1>>>1,fe=X[de];if(0<s(fe,ee))X[de]=ee,X[z]=fe,z=de;else break e}}function i(X){return X.length===0?null:X[0]}function o(X){if(X.length===0)return null;var ee=X[0],z=X.pop();if(z!==ee){X[0]=z;e:for(var de=0,fe=X.length,Bt=fe>>>1;de<Bt;){var ht=2*(de+1)-1,Nn=X[ht],vt=ht+1,fn=X[vt];if(0>s(Nn,z))vt<fe&&0>s(fn,Nn)?(X[de]=fn,X[vt]=z,de=vt):(X[de]=Nn,X[ht]=z,de=ht);else if(vt<fe&&0>s(fn,z))X[de]=fn,X[vt]=z,de=vt;else break e}}return ee}function s(X,ee){var z=X.sortIndex-ee.sortIndex;return z!==0?z:X.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var v=[],h=[],m=1,g=null,y=3,w=!1,E=!1,S=!1,P=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(X){for(var ee=i(h);ee!==null;){if(ee.callback===null)o(h);else if(ee.startTime<=X)o(h),ee.sortIndex=ee.expirationTime,n(v,ee);else break;ee=i(h)}}function B(X){if(S=!1,R(X),!E)if(i(v)!==null)E=!0,xe(_);else{var ee=i(h);ee!==null&&Y(B,ee.startTime-X)}}function _(X,ee){E=!1,S&&(S=!1,A(T),T=-1),w=!0;var z=y;try{for(R(ee),g=i(v);g!==null&&(!(g.expirationTime>ee)||X&&!H());){var de=g.callback;if(typeof de=="function"){g.callback=null,y=g.priorityLevel;var fe=de(g.expirationTime<=ee);ee=e.unstable_now(),typeof fe=="function"?g.callback=fe:g===i(v)&&o(v),R(ee)}else o(v);g=i(v)}if(g!==null)var Bt=!0;else{var ht=i(h);ht!==null&&Y(B,ht.startTime-ee),Bt=!1}return Bt}finally{g=null,y=z,w=!1}}var V=!1,W=null,T=-1,U=5,O=-1;function H(){return!(e.unstable_now()-O<U)}function ne(){if(W!==null){var X=e.unstable_now();O=X;var ee=!0;try{ee=W(!0,X)}finally{ee?D():(V=!1,W=null)}}else V=!1}var D;if(typeof I=="function")D=function(){I(ne)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,ue=j.port2;j.port1.onmessage=ne,D=function(){ue.postMessage(null)}}else D=function(){P(ne,0)};function xe(X){W=X,V||(V=!0,D())}function Y(X,ee){T=P(function(){X(e.unstable_now())},ee)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(X){X.callback=null},e.unstable_continueExecution=function(){E||w||(E=!0,xe(_))},e.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<X?Math.floor(1e3/X):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return i(v)},e.unstable_next=function(X){switch(y){case 1:case 2:case 3:var ee=3;break;default:ee=y}var z=y;y=ee;try{return X()}finally{y=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(X,ee){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var z=y;y=X;try{return ee()}finally{y=z}},e.unstable_scheduleCallback=function(X,ee,z){var de=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?de+z:de):z=de,X){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=z+fe,X={id:m++,callback:ee,priorityLevel:X,startTime:z,expirationTime:fe,sortIndex:-1},z>de?(X.sortIndex=z,n(h,X),i(v)===null&&X===i(h)&&(S?(A(T),T=-1):S=!0,Y(B,z-de))):(X.sortIndex=fe,n(v,X),E||w||(E=!0,xe(_))),X},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(X){var ee=y;return function(){var z=y;y=ee;try{return X.apply(this,arguments)}finally{y=z}}}})($u)),$u}var bh;function S2(){return bh||(bh=1,Eu.exports=w2()),Eu.exports}var wh;function E2(){if(wh)return dt;wh=1;var e=Vc(),n=S2();function i(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,l=1;l<arguments.length;l++)r+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function u(t,r){c(t,r),c(t+"Capture",r)}function c(t,r){for(s[t]=r,t=0;t<r.length;t++)o.add(r[t])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),v=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},g={};function y(t){return v.call(g,t)?!0:v.call(m,t)?!1:h.test(t)?g[t]=!0:(m[t]=!0,!1)}function w(t,r,l,a){if(l!==null&&l.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return a?!1:l!==null?!l.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function E(t,r,l,a){if(r===null||typeof r>"u"||w(t,r,l,a))return!0;if(a)return!1;if(l!==null)switch(l.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function S(t,r,l,a,f,p,x){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=a,this.attributeNamespace=f,this.mustUseProperty=l,this.propertyName=t,this.type=r,this.sanitizeURL=p,this.removeEmptyString=x}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){P[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];P[r]=new S(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){P[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){P[t]=new S(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){P[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){P[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){P[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){P[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){P[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function I(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var r=t.replace(A,I);P[r]=new S(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(A,I);P[r]=new S(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(A,I);P[r]=new S(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){P[t]=new S(t,1,!1,t.toLowerCase(),null,!1,!1)}),P.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){P[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function R(t,r,l,a){var f=P.hasOwnProperty(r)?P[r]:null;(f!==null?f.type!==0:a||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(E(r,l,f,a)&&(l=null),a||f===null?y(r)&&(l===null?t.removeAttribute(r):t.setAttribute(r,""+l)):f.mustUseProperty?t[f.propertyName]=l===null?f.type===3?!1:"":l:(r=f.attributeName,a=f.attributeNamespace,l===null?t.removeAttribute(r):(f=f.type,l=f===3||f===4&&l===!0?"":""+l,a?t.setAttributeNS(a,r,l):t.setAttribute(r,l))))}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),V=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),H=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),X=Symbol.iterator;function ee(t){return t===null||typeof t!="object"?null:(t=X&&t[X]||t["@@iterator"],typeof t=="function"?t:null)}var z=Object.assign,de;function fe(t){if(de===void 0)try{throw Error()}catch(l){var r=l.stack.trim().match(/\n( *(at )?)/);de=r&&r[1]||""}return`
|
|
2
|
+
`+de+t}var Bt=!1;function ht(t,r){if(!t||Bt)return"";Bt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(N){var a=N}Reflect.construct(t,[],r)}else{try{r.call()}catch(N){a=N}t.call(r.prototype)}else{try{throw Error()}catch(N){a=N}t()}}catch(N){if(N&&a&&typeof N.stack=="string"){for(var f=N.stack.split(`
|
|
3
|
+
`),p=a.stack.split(`
|
|
4
|
+
`),x=f.length-1,C=p.length-1;1<=x&&0<=C&&f[x]!==p[C];)C--;for(;1<=x&&0<=C;x--,C--)if(f[x]!==p[C]){if(x!==1||C!==1)do if(x--,C--,0>C||f[x]!==p[C]){var k=`
|
|
5
|
+
`+f[x].replace(" at new "," at ");return t.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",t.displayName)),k}while(1<=x&&0<=C);break}}}finally{Bt=!1,Error.prepareStackTrace=l}return(t=t?t.displayName||t.name:"")?fe(t):""}function Nn(t){switch(t.tag){case 5:return fe(t.type);case 16:return fe("Lazy");case 13:return fe("Suspense");case 19:return fe("SuspenseList");case 0:case 2:case 15:return t=ht(t.type,!1),t;case 11:return t=ht(t.type.render,!1),t;case 1:return t=ht(t.type,!0),t;default:return""}}function vt(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case W:return"Fragment";case V:return"Portal";case U:return"Profiler";case T:return"StrictMode";case D:return"Suspense";case j:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case H:return(t.displayName||"Context")+".Consumer";case O:return(t._context.displayName||"Context")+".Provider";case ne:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ue:return r=t.displayName||null,r!==null?r:vt(t.type)||"Memo";case xe:r=t._payload,t=t._init;try{return vt(t(r))}catch{}}return null}function fn(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return vt(r);case 8:return r===T?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Ht(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function So(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Ls(t){var r=So(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),a=""+t[r];if(!t.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,p=l.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return f.call(this)},set:function(x){a=""+x,p.call(this,x)}}),Object.defineProperty(t,r,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(x){a=""+x},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function mr(t){t._valueTracker||(t._valueTracker=Ls(t))}function ci(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var l=r.getValue(),a="";return t&&(a=So(t)?t.checked?"true":"false":t.value),t=a,t!==l?(r.setValue(t),!0):!1}function gr(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function di(t,r){var l=r.checked;return z({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??t._wrapperState.initialChecked})}function Eo(t,r){var l=r.defaultValue==null?"":r.defaultValue,a=r.checked!=null?r.checked:r.defaultChecked;l=Ht(r.value!=null?r.value:l),t._wrapperState={initialChecked:a,initialValue:l,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function wt(t,r){r=r.checked,r!=null&&R(t,"checked",r,!1)}function jt(t,r){wt(t,r);var l=Ht(r.value),a=r.type;if(l!=null)a==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+l):t.value!==""+l&&(t.value=""+l);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?It(t,r.type,l):r.hasOwnProperty("defaultValue")&&It(t,r.type,Ht(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Xt(t,r,l){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var a=r.type;if(!(a!=="submit"&&a!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,l||r===t.value||(t.value=r),t.defaultValue=r}l=t.name,l!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,l!==""&&(t.name=l)}function It(t,r,l){(r!=="number"||gr(t.ownerDocument)!==t)&&(l==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+l&&(t.defaultValue=""+l))}var pn=Array.isArray;function yr(t,r,l,a){if(t=t.options,r){r={};for(var f=0;f<l.length;f++)r["$"+l[f]]=!0;for(l=0;l<t.length;l++)f=r.hasOwnProperty("$"+t[l].value),t[l].selected!==f&&(t[l].selected=f),f&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Ht(l),r=null,f=0;f<t.length;f++){if(t[f].value===l){t[f].selected=!0,a&&(t[f].defaultSelected=!0);return}r!==null||t[f].disabled||(r=t[f])}r!==null&&(r.selected=!0)}}function Rs(t,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return z({},r,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Pd(t,r){var l=r.value;if(l==null){if(l=r.children,r=r.defaultValue,l!=null){if(r!=null)throw Error(i(92));if(pn(l)){if(1<l.length)throw Error(i(93));l=l[0]}r=l}r==null&&(r=""),l=r}t._wrapperState={initialValue:Ht(l)}}function Cd(t,r){var l=Ht(r.value),a=Ht(r.defaultValue);l!=null&&(l=""+l,l!==t.value&&(t.value=l),r.defaultValue==null&&t.defaultValue!==l&&(t.defaultValue=l)),a!=null&&(t.defaultValue=""+a)}function Td(t){var r=t.textContent;r===t._wrapperState.initialValue&&r!==""&&r!==null&&(t.value=r)}function kd(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _s(t,r){return t==null||t==="http://www.w3.org/1999/xhtml"?kd(r):t==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var $o,Id=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,l,a,f){MSApp.execUnsafeLocalFunction(function(){return t(r,l,a,f)})}:t})(function(t,r){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=r;else{for($o=$o||document.createElement("div"),$o.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=$o.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function fi(t,r){if(r){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=r;return}}t.textContent=r}var pi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},x1=["Webkit","ms","Moz","O"];Object.keys(pi).forEach(function(t){x1.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),pi[r]=pi[t]})});function Ld(t,r,l){return r==null||typeof r=="boolean"||r===""?"":l||typeof r!="number"||r===0||pi.hasOwnProperty(t)&&pi[t]?(""+r).trim():r+"px"}function Rd(t,r){t=t.style;for(var l in r)if(r.hasOwnProperty(l)){var a=l.indexOf("--")===0,f=Ld(l,r[l],a);l==="float"&&(l="cssFloat"),a?t.setProperty(l,f):t[l]=f}}var b1=z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ms(t,r){if(r){if(b1[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function Fs(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var As=null;function Ns(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ds=null,xr=null,br=null;function _d(t){if(t=Ai(t)){if(typeof Ds!="function")throw Error(i(280));var r=t.stateNode;r&&(r=Go(r),Ds(t.stateNode,t.type,r))}}function Md(t){xr?br?br.push(t):br=[t]:xr=t}function Fd(){if(xr){var t=xr,r=br;if(br=xr=null,_d(t),r)for(t=0;t<r.length;t++)_d(r[t])}}function Ad(t,r){return t(r)}function Nd(){}var Os=!1;function Dd(t,r,l){if(Os)return t(r,l);Os=!0;try{return Ad(t,r,l)}finally{Os=!1,(xr!==null||br!==null)&&(Nd(),Fd())}}function hi(t,r){var l=t.stateNode;if(l===null)return null;var a=Go(l);if(a===null)return null;l=a[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(i(231,r,typeof l));return l}var Bs=!1;if(d)try{var vi={};Object.defineProperty(vi,"passive",{get:function(){Bs=!0}}),window.addEventListener("test",vi,vi),window.removeEventListener("test",vi,vi)}catch{Bs=!1}function w1(t,r,l,a,f,p,x,C,k){var N=Array.prototype.slice.call(arguments,3);try{r.apply(l,N)}catch(G){this.onError(G)}}var mi=!1,Po=null,Co=!1,Hs=null,S1={onError:function(t){mi=!0,Po=t}};function E1(t,r,l,a,f,p,x,C,k){mi=!1,Po=null,w1.apply(S1,arguments)}function $1(t,r,l,a,f,p,x,C,k){if(E1.apply(this,arguments),mi){if(mi){var N=Po;mi=!1,Po=null}else throw Error(i(198));Co||(Co=!0,Hs=N)}}function Dn(t){var r=t,l=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(l=r.return),t=r.return;while(t)}return r.tag===3?l:null}function Od(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function Bd(t){if(Dn(t)!==t)throw Error(i(188))}function P1(t){var r=t.alternate;if(!r){if(r=Dn(t),r===null)throw Error(i(188));return r!==t?null:t}for(var l=t,a=r;;){var f=l.return;if(f===null)break;var p=f.alternate;if(p===null){if(a=f.return,a!==null){l=a;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===l)return Bd(f),t;if(p===a)return Bd(f),r;p=p.sibling}throw Error(i(188))}if(l.return!==a.return)l=f,a=p;else{for(var x=!1,C=f.child;C;){if(C===l){x=!0,l=f,a=p;break}if(C===a){x=!0,a=f,l=p;break}C=C.sibling}if(!x){for(C=p.child;C;){if(C===l){x=!0,l=p,a=f;break}if(C===a){x=!0,a=p,l=f;break}C=C.sibling}if(!x)throw Error(i(189))}}if(l.alternate!==a)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?t:r}function Hd(t){return t=P1(t),t!==null?jd(t):null}function jd(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var r=jd(t);if(r!==null)return r;t=t.sibling}return null}var Vd=n.unstable_scheduleCallback,zd=n.unstable_cancelCallback,C1=n.unstable_shouldYield,T1=n.unstable_requestPaint,Ne=n.unstable_now,k1=n.unstable_getCurrentPriorityLevel,js=n.unstable_ImmediatePriority,Ud=n.unstable_UserBlockingPriority,To=n.unstable_NormalPriority,I1=n.unstable_LowPriority,Kd=n.unstable_IdlePriority,ko=null,Vt=null;function L1(t){if(Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(ko,t,void 0,(t.current.flags&128)===128)}catch{}}var Lt=Math.clz32?Math.clz32:M1,R1=Math.log,_1=Math.LN2;function M1(t){return t>>>=0,t===0?32:31-(R1(t)/_1|0)|0}var Io=64,Lo=4194304;function gi(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ro(t,r){var l=t.pendingLanes;if(l===0)return 0;var a=0,f=t.suspendedLanes,p=t.pingedLanes,x=l&268435455;if(x!==0){var C=x&~f;C!==0?a=gi(C):(p&=x,p!==0&&(a=gi(p)))}else x=l&~f,x!==0?a=gi(x):p!==0&&(a=gi(p));if(a===0)return 0;if(r!==0&&r!==a&&(r&f)===0&&(f=a&-a,p=r&-r,f>=p||f===16&&(p&4194240)!==0))return r;if((a&4)!==0&&(a|=l&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=a;0<r;)l=31-Lt(r),f=1<<l,a|=t[l],r&=~f;return a}function F1(t,r){switch(t){case 1:case 2:case 4:return r+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function A1(t,r){for(var l=t.suspendedLanes,a=t.pingedLanes,f=t.expirationTimes,p=t.pendingLanes;0<p;){var x=31-Lt(p),C=1<<x,k=f[x];k===-1?((C&l)===0||(C&a)!==0)&&(f[x]=F1(C,r)):k<=r&&(t.expiredLanes|=C),p&=~C}}function Vs(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Wd(){var t=Io;return Io<<=1,(Io&4194240)===0&&(Io=64),t}function zs(t){for(var r=[],l=0;31>l;l++)r.push(t);return r}function yi(t,r,l){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-Lt(r),t[r]=l}function N1(t,r){var l=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<l;){var f=31-Lt(l),p=1<<f;r[f]=0,a[f]=-1,t[f]=-1,l&=~p}}function Us(t,r){var l=t.entangledLanes|=r;for(t=t.entanglements;l;){var a=31-Lt(l),f=1<<a;f&r|t[a]&r&&(t[a]|=r),l&=~f}}var Se=0;function Gd(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Zd,Ks,qd,Xd,Yd,Ws=!1,_o=[],hn=null,vn=null,mn=null,xi=new Map,bi=new Map,gn=[],D1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Qd(t,r){switch(t){case"focusin":case"focusout":hn=null;break;case"dragenter":case"dragleave":vn=null;break;case"mouseover":case"mouseout":mn=null;break;case"pointerover":case"pointerout":xi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":bi.delete(r.pointerId)}}function wi(t,r,l,a,f,p){return t===null||t.nativeEvent!==p?(t={blockedOn:r,domEventName:l,eventSystemFlags:a,nativeEvent:p,targetContainers:[f]},r!==null&&(r=Ai(r),r!==null&&Ks(r)),t):(t.eventSystemFlags|=a,r=t.targetContainers,f!==null&&r.indexOf(f)===-1&&r.push(f),t)}function O1(t,r,l,a,f){switch(r){case"focusin":return hn=wi(hn,t,r,l,a,f),!0;case"dragenter":return vn=wi(vn,t,r,l,a,f),!0;case"mouseover":return mn=wi(mn,t,r,l,a,f),!0;case"pointerover":var p=f.pointerId;return xi.set(p,wi(xi.get(p)||null,t,r,l,a,f)),!0;case"gotpointercapture":return p=f.pointerId,bi.set(p,wi(bi.get(p)||null,t,r,l,a,f)),!0}return!1}function Jd(t){var r=On(t.target);if(r!==null){var l=Dn(r);if(l!==null){if(r=l.tag,r===13){if(r=Od(l),r!==null){t.blockedOn=r,Yd(t.priority,function(){qd(l)});return}}else if(r===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Mo(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var l=Zs(t.domEventName,t.eventSystemFlags,r[0],t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);As=a,l.target.dispatchEvent(a),As=null}else return r=Ai(l),r!==null&&Ks(r),t.blockedOn=l,!1;r.shift()}return!0}function ef(t,r,l){Mo(t)&&l.delete(r)}function B1(){Ws=!1,hn!==null&&Mo(hn)&&(hn=null),vn!==null&&Mo(vn)&&(vn=null),mn!==null&&Mo(mn)&&(mn=null),xi.forEach(ef),bi.forEach(ef)}function Si(t,r){t.blockedOn===r&&(t.blockedOn=null,Ws||(Ws=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,B1)))}function Ei(t){function r(f){return Si(f,t)}if(0<_o.length){Si(_o[0],t);for(var l=1;l<_o.length;l++){var a=_o[l];a.blockedOn===t&&(a.blockedOn=null)}}for(hn!==null&&Si(hn,t),vn!==null&&Si(vn,t),mn!==null&&Si(mn,t),xi.forEach(r),bi.forEach(r),l=0;l<gn.length;l++)a=gn[l],a.blockedOn===t&&(a.blockedOn=null);for(;0<gn.length&&(l=gn[0],l.blockedOn===null);)Jd(l),l.blockedOn===null&&gn.shift()}var wr=B.ReactCurrentBatchConfig,Fo=!0;function H1(t,r,l,a){var f=Se,p=wr.transition;wr.transition=null;try{Se=1,Gs(t,r,l,a)}finally{Se=f,wr.transition=p}}function j1(t,r,l,a){var f=Se,p=wr.transition;wr.transition=null;try{Se=4,Gs(t,r,l,a)}finally{Se=f,wr.transition=p}}function Gs(t,r,l,a){if(Fo){var f=Zs(t,r,l,a);if(f===null)da(t,r,a,Ao,l),Qd(t,a);else if(O1(f,t,r,l,a))a.stopPropagation();else if(Qd(t,a),r&4&&-1<D1.indexOf(t)){for(;f!==null;){var p=Ai(f);if(p!==null&&Zd(p),p=Zs(t,r,l,a),p===null&&da(t,r,a,Ao,l),p===f)break;f=p}f!==null&&a.stopPropagation()}else da(t,r,a,null,l)}}var Ao=null;function Zs(t,r,l,a){if(Ao=null,t=Ns(a),t=On(t),t!==null)if(r=Dn(t),r===null)t=null;else if(l=r.tag,l===13){if(t=Od(r),t!==null)return t;t=null}else if(l===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null);return Ao=t,null}function tf(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(k1()){case js:return 1;case Ud:return 4;case To:case I1:return 16;case Kd:return 536870912;default:return 16}default:return 16}}var yn=null,qs=null,No=null;function nf(){if(No)return No;var t,r=qs,l=r.length,a,f="value"in yn?yn.value:yn.textContent,p=f.length;for(t=0;t<l&&r[t]===f[t];t++);var x=l-t;for(a=1;a<=x&&r[l-a]===f[p-a];a++);return No=f.slice(t,1<a?1-a:void 0)}function Do(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Oo(){return!0}function rf(){return!1}function mt(t){function r(l,a,f,p,x){this._reactName=l,this._targetInst=f,this.type=a,this.nativeEvent=p,this.target=x,this.currentTarget=null;for(var C in t)t.hasOwnProperty(C)&&(l=t[C],this[C]=l?l(p):p[C]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Oo:rf,this.isPropagationStopped=rf,this}return z(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Oo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Oo)},persist:function(){},isPersistent:Oo}),r}var Sr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xs=mt(Sr),$i=z({},Sr,{view:0,detail:0}),V1=mt($i),Ys,Qs,Pi,Bo=z({},$i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ea,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Pi&&(Pi&&t.type==="mousemove"?(Ys=t.screenX-Pi.screenX,Qs=t.screenY-Pi.screenY):Qs=Ys=0,Pi=t),Ys)},movementY:function(t){return"movementY"in t?t.movementY:Qs}}),of=mt(Bo),z1=z({},Bo,{dataTransfer:0}),U1=mt(z1),K1=z({},$i,{relatedTarget:0}),Js=mt(K1),W1=z({},Sr,{animationName:0,elapsedTime:0,pseudoElement:0}),G1=mt(W1),Z1=z({},Sr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),q1=mt(Z1),X1=z({},Sr,{data:0}),lf=mt(X1),Y1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q1={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},J1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ey(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=J1[t])?!!r[t]:!1}function ea(){return ey}var ty=z({},$i,{key:function(t){if(t.key){var r=Y1[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Do(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Q1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ea,charCode:function(t){return t.type==="keypress"?Do(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Do(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ny=mt(ty),ry=z({},Bo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sf=mt(ry),iy=z({},$i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ea}),oy=mt(iy),ly=z({},Sr,{propertyName:0,elapsedTime:0,pseudoElement:0}),sy=mt(ly),ay=z({},Bo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),uy=mt(ay),cy=[9,13,27,32],ta=d&&"CompositionEvent"in window,Ci=null;d&&"documentMode"in document&&(Ci=document.documentMode);var dy=d&&"TextEvent"in window&&!Ci,af=d&&(!ta||Ci&&8<Ci&&11>=Ci),uf=" ",cf=!1;function df(t,r){switch(t){case"keyup":return cy.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ff(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Er=!1;function fy(t,r){switch(t){case"compositionend":return ff(r);case"keypress":return r.which!==32?null:(cf=!0,uf);case"textInput":return t=r.data,t===uf&&cf?null:t;default:return null}}function py(t,r){if(Er)return t==="compositionend"||!ta&&df(t,r)?(t=nf(),No=qs=yn=null,Er=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return af&&r.locale!=="ko"?null:r.data;default:return null}}var hy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pf(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!hy[t.type]:r==="textarea"}function hf(t,r,l,a){Md(a),r=Uo(r,"onChange"),0<r.length&&(l=new Xs("onChange","change",null,l,a),t.push({event:l,listeners:r}))}var Ti=null,ki=null;function vy(t){_f(t,0)}function Ho(t){var r=kr(t);if(ci(r))return t}function my(t,r){if(t==="change")return r}var vf=!1;if(d){var na;if(d){var ra="oninput"in document;if(!ra){var mf=document.createElement("div");mf.setAttribute("oninput","return;"),ra=typeof mf.oninput=="function"}na=ra}else na=!1;vf=na&&(!document.documentMode||9<document.documentMode)}function gf(){Ti&&(Ti.detachEvent("onpropertychange",yf),ki=Ti=null)}function yf(t){if(t.propertyName==="value"&&Ho(ki)){var r=[];hf(r,ki,t,Ns(t)),Dd(vy,r)}}function gy(t,r,l){t==="focusin"?(gf(),Ti=r,ki=l,Ti.attachEvent("onpropertychange",yf)):t==="focusout"&&gf()}function yy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ho(ki)}function xy(t,r){if(t==="click")return Ho(r)}function by(t,r){if(t==="input"||t==="change")return Ho(r)}function wy(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var Rt=typeof Object.is=="function"?Object.is:wy;function Ii(t,r){if(Rt(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var l=Object.keys(t),a=Object.keys(r);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var f=l[a];if(!v.call(r,f)||!Rt(t[f],r[f]))return!1}return!0}function xf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function bf(t,r){var l=xf(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=r&&a>=r)return{node:l,offset:r-t};t=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=xf(l)}}function wf(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?wf(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Sf(){for(var t=window,r=gr();r instanceof t.HTMLIFrameElement;){try{var l=typeof r.contentWindow.location.href=="string"}catch{l=!1}if(l)t=r.contentWindow;else break;r=gr(t.document)}return r}function ia(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function Sy(t){var r=Sf(),l=t.focusedElem,a=t.selectionRange;if(r!==l&&l&&l.ownerDocument&&wf(l.ownerDocument.documentElement,l)){if(a!==null&&ia(l)){if(r=a.start,t=a.end,t===void 0&&(t=r),"selectionStart"in l)l.selectionStart=r,l.selectionEnd=Math.min(t,l.value.length);else if(t=(r=l.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var f=l.textContent.length,p=Math.min(a.start,f);a=a.end===void 0?p:Math.min(a.end,f),!t.extend&&p>a&&(f=a,a=p,p=f),f=bf(l,p);var x=bf(l,a);f&&x&&(t.rangeCount!==1||t.anchorNode!==f.node||t.anchorOffset!==f.offset||t.focusNode!==x.node||t.focusOffset!==x.offset)&&(r=r.createRange(),r.setStart(f.node,f.offset),t.removeAllRanges(),p>a?(t.addRange(r),t.extend(x.node,x.offset)):(r.setEnd(x.node,x.offset),t.addRange(r)))}}for(r=[],t=l;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<r.length;l++)t=r[l],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Ey=d&&"documentMode"in document&&11>=document.documentMode,$r=null,oa=null,Li=null,la=!1;function Ef(t,r,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;la||$r==null||$r!==gr(a)||(a=$r,"selectionStart"in a&&ia(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Li&&Ii(Li,a)||(Li=a,a=Uo(oa,"onSelect"),0<a.length&&(r=new Xs("onSelect","select",null,r,l),t.push({event:r,listeners:a}),r.target=$r)))}function jo(t,r){var l={};return l[t.toLowerCase()]=r.toLowerCase(),l["Webkit"+t]="webkit"+r,l["Moz"+t]="moz"+r,l}var Pr={animationend:jo("Animation","AnimationEnd"),animationiteration:jo("Animation","AnimationIteration"),animationstart:jo("Animation","AnimationStart"),transitionend:jo("Transition","TransitionEnd")},sa={},$f={};d&&($f=document.createElement("div").style,"AnimationEvent"in window||(delete Pr.animationend.animation,delete Pr.animationiteration.animation,delete Pr.animationstart.animation),"TransitionEvent"in window||delete Pr.transitionend.transition);function Vo(t){if(sa[t])return sa[t];if(!Pr[t])return t;var r=Pr[t],l;for(l in r)if(r.hasOwnProperty(l)&&l in $f)return sa[t]=r[l];return t}var Pf=Vo("animationend"),Cf=Vo("animationiteration"),Tf=Vo("animationstart"),kf=Vo("transitionend"),If=new Map,Lf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function xn(t,r){If.set(t,r),u(r,[t])}for(var aa=0;aa<Lf.length;aa++){var ua=Lf[aa],$y=ua.toLowerCase(),Py=ua[0].toUpperCase()+ua.slice(1);xn($y,"on"+Py)}xn(Pf,"onAnimationEnd"),xn(Cf,"onAnimationIteration"),xn(Tf,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(kf,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ri="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cy=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ri));function Rf(t,r,l){var a=t.type||"unknown-event";t.currentTarget=l,$1(a,r,void 0,t),t.currentTarget=null}function _f(t,r){r=(r&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],f=a.event;a=a.listeners;e:{var p=void 0;if(r)for(var x=a.length-1;0<=x;x--){var C=a[x],k=C.instance,N=C.currentTarget;if(C=C.listener,k!==p&&f.isPropagationStopped())break e;Rf(f,C,N),p=k}else for(x=0;x<a.length;x++){if(C=a[x],k=C.instance,N=C.currentTarget,C=C.listener,k!==p&&f.isPropagationStopped())break e;Rf(f,C,N),p=k}}}if(Co)throw t=Hs,Co=!1,Hs=null,t}function Te(t,r){var l=r[ga];l===void 0&&(l=r[ga]=new Set);var a=t+"__bubble";l.has(a)||(Mf(r,t,2,!1),l.add(a))}function ca(t,r,l){var a=0;r&&(a|=4),Mf(l,t,a,r)}var zo="_reactListening"+Math.random().toString(36).slice(2);function _i(t){if(!t[zo]){t[zo]=!0,o.forEach(function(l){l!=="selectionchange"&&(Cy.has(l)||ca(l,!1,t),ca(l,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[zo]||(r[zo]=!0,ca("selectionchange",!1,r))}}function Mf(t,r,l,a){switch(tf(r)){case 1:var f=H1;break;case 4:f=j1;break;default:f=Gs}l=f.bind(null,r,l,t),f=void 0,!Bs||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(f=!0),a?f!==void 0?t.addEventListener(r,l,{capture:!0,passive:f}):t.addEventListener(r,l,!0):f!==void 0?t.addEventListener(r,l,{passive:f}):t.addEventListener(r,l,!1)}function da(t,r,l,a,f){var p=a;if((r&1)===0&&(r&2)===0&&a!==null)e:for(;;){if(a===null)return;var x=a.tag;if(x===3||x===4){var C=a.stateNode.containerInfo;if(C===f||C.nodeType===8&&C.parentNode===f)break;if(x===4)for(x=a.return;x!==null;){var k=x.tag;if((k===3||k===4)&&(k=x.stateNode.containerInfo,k===f||k.nodeType===8&&k.parentNode===f))return;x=x.return}for(;C!==null;){if(x=On(C),x===null)return;if(k=x.tag,k===5||k===6){a=p=x;continue e}C=C.parentNode}}a=a.return}Dd(function(){var N=p,G=Ns(l),Z=[];e:{var K=If.get(t);if(K!==void 0){var Q=Xs,te=t;switch(t){case"keypress":if(Do(l)===0)break e;case"keydown":case"keyup":Q=ny;break;case"focusin":te="focus",Q=Js;break;case"focusout":te="blur",Q=Js;break;case"beforeblur":case"afterblur":Q=Js;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=of;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=U1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=oy;break;case Pf:case Cf:case Tf:Q=G1;break;case kf:Q=sy;break;case"scroll":Q=V1;break;case"wheel":Q=uy;break;case"copy":case"cut":case"paste":Q=q1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=sf}var re=(r&4)!==0,De=!re&&t==="scroll",M=re?K!==null?K+"Capture":null:K;re=[];for(var L=N,F;L!==null;){F=L;var q=F.stateNode;if(F.tag===5&&q!==null&&(F=q,M!==null&&(q=hi(L,M),q!=null&&re.push(Mi(L,q,F)))),De)break;L=L.return}0<re.length&&(K=new Q(K,te,null,l,G),Z.push({event:K,listeners:re}))}}if((r&7)===0){e:{if(K=t==="mouseover"||t==="pointerover",Q=t==="mouseout"||t==="pointerout",K&&l!==As&&(te=l.relatedTarget||l.fromElement)&&(On(te)||te[Yt]))break e;if((Q||K)&&(K=G.window===G?G:(K=G.ownerDocument)?K.defaultView||K.parentWindow:window,Q?(te=l.relatedTarget||l.toElement,Q=N,te=te?On(te):null,te!==null&&(De=Dn(te),te!==De||te.tag!==5&&te.tag!==6)&&(te=null)):(Q=null,te=N),Q!==te)){if(re=of,q="onMouseLeave",M="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(re=sf,q="onPointerLeave",M="onPointerEnter",L="pointer"),De=Q==null?K:kr(Q),F=te==null?K:kr(te),K=new re(q,L+"leave",Q,l,G),K.target=De,K.relatedTarget=F,q=null,On(G)===N&&(re=new re(M,L+"enter",te,l,G),re.target=F,re.relatedTarget=De,q=re),De=q,Q&&te)t:{for(re=Q,M=te,L=0,F=re;F;F=Cr(F))L++;for(F=0,q=M;q;q=Cr(q))F++;for(;0<L-F;)re=Cr(re),L--;for(;0<F-L;)M=Cr(M),F--;for(;L--;){if(re===M||M!==null&&re===M.alternate)break t;re=Cr(re),M=Cr(M)}re=null}else re=null;Q!==null&&Ff(Z,K,Q,re,!1),te!==null&&De!==null&&Ff(Z,De,te,re,!0)}}e:{if(K=N?kr(N):window,Q=K.nodeName&&K.nodeName.toLowerCase(),Q==="select"||Q==="input"&&K.type==="file")var ie=my;else if(pf(K))if(vf)ie=by;else{ie=yy;var oe=gy}else(Q=K.nodeName)&&Q.toLowerCase()==="input"&&(K.type==="checkbox"||K.type==="radio")&&(ie=xy);if(ie&&(ie=ie(t,N))){hf(Z,ie,l,G);break e}oe&&oe(t,K,N),t==="focusout"&&(oe=K._wrapperState)&&oe.controlled&&K.type==="number"&&It(K,"number",K.value)}switch(oe=N?kr(N):window,t){case"focusin":(pf(oe)||oe.contentEditable==="true")&&($r=oe,oa=N,Li=null);break;case"focusout":Li=oa=$r=null;break;case"mousedown":la=!0;break;case"contextmenu":case"mouseup":case"dragend":la=!1,Ef(Z,l,G);break;case"selectionchange":if(Ey)break;case"keydown":case"keyup":Ef(Z,l,G)}var le;if(ta)e:{switch(t){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Er?df(t,l)&&(ae="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ae="onCompositionStart");ae&&(af&&l.locale!=="ko"&&(Er||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Er&&(le=nf()):(yn=G,qs="value"in yn?yn.value:yn.textContent,Er=!0)),oe=Uo(N,ae),0<oe.length&&(ae=new lf(ae,t,null,l,G),Z.push({event:ae,listeners:oe}),le?ae.data=le:(le=ff(l),le!==null&&(ae.data=le)))),(le=dy?fy(t,l):py(t,l))&&(N=Uo(N,"onBeforeInput"),0<N.length&&(G=new lf("onBeforeInput","beforeinput",null,l,G),Z.push({event:G,listeners:N}),G.data=le))}_f(Z,r)})}function Mi(t,r,l){return{instance:t,listener:r,currentTarget:l}}function Uo(t,r){for(var l=r+"Capture",a=[];t!==null;){var f=t,p=f.stateNode;f.tag===5&&p!==null&&(f=p,p=hi(t,l),p!=null&&a.unshift(Mi(t,p,f)),p=hi(t,r),p!=null&&a.push(Mi(t,p,f))),t=t.return}return a}function Cr(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Ff(t,r,l,a,f){for(var p=r._reactName,x=[];l!==null&&l!==a;){var C=l,k=C.alternate,N=C.stateNode;if(k!==null&&k===a)break;C.tag===5&&N!==null&&(C=N,f?(k=hi(l,p),k!=null&&x.unshift(Mi(l,k,C))):f||(k=hi(l,p),k!=null&&x.push(Mi(l,k,C)))),l=l.return}x.length!==0&&t.push({event:r,listeners:x})}var Ty=/\r\n?/g,ky=/\u0000|\uFFFD/g;function Af(t){return(typeof t=="string"?t:""+t).replace(Ty,`
|
|
6
|
+
`).replace(ky,"")}function Ko(t,r,l){if(r=Af(r),Af(t)!==r&&l)throw Error(i(425))}function Wo(){}var fa=null,pa=null;function ha(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var va=typeof setTimeout=="function"?setTimeout:void 0,Iy=typeof clearTimeout=="function"?clearTimeout:void 0,Nf=typeof Promise=="function"?Promise:void 0,Ly=typeof queueMicrotask=="function"?queueMicrotask:typeof Nf<"u"?function(t){return Nf.resolve(null).then(t).catch(Ry)}:va;function Ry(t){setTimeout(function(){throw t})}function ma(t,r){var l=r,a=0;do{var f=l.nextSibling;if(t.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"){if(a===0){t.removeChild(f),Ei(r);return}a--}else l!=="$"&&l!=="$?"&&l!=="$!"||a++;l=f}while(l);Ei(r)}function bn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return t}function Df(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(r===0)return t;r--}else l==="/$"&&r++}t=t.previousSibling}return null}var Tr=Math.random().toString(36).slice(2),zt="__reactFiber$"+Tr,Fi="__reactProps$"+Tr,Yt="__reactContainer$"+Tr,ga="__reactEvents$"+Tr,_y="__reactListeners$"+Tr,My="__reactHandles$"+Tr;function On(t){var r=t[zt];if(r)return r;for(var l=t.parentNode;l;){if(r=l[Yt]||l[zt]){if(l=r.alternate,r.child!==null||l!==null&&l.child!==null)for(t=Df(t);t!==null;){if(l=t[zt])return l;t=Df(t)}return r}t=l,l=t.parentNode}return null}function Ai(t){return t=t[zt]||t[Yt],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function kr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(i(33))}function Go(t){return t[Fi]||null}var ya=[],Ir=-1;function wn(t){return{current:t}}function ke(t){0>Ir||(t.current=ya[Ir],ya[Ir]=null,Ir--)}function Pe(t,r){Ir++,ya[Ir]=t.current,t.current=r}var Sn={},Ye=wn(Sn),lt=wn(!1),Bn=Sn;function Lr(t,r){var l=t.type.contextTypes;if(!l)return Sn;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===r)return a.__reactInternalMemoizedMaskedChildContext;var f={},p;for(p in l)f[p]=r[p];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=f),f}function st(t){return t=t.childContextTypes,t!=null}function Zo(){ke(lt),ke(Ye)}function Of(t,r,l){if(Ye.current!==Sn)throw Error(i(168));Pe(Ye,r),Pe(lt,l)}function Bf(t,r,l){var a=t.stateNode;if(r=r.childContextTypes,typeof a.getChildContext!="function")return l;a=a.getChildContext();for(var f in a)if(!(f in r))throw Error(i(108,fn(t)||"Unknown",f));return z({},l,a)}function qo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Sn,Bn=Ye.current,Pe(Ye,t),Pe(lt,lt.current),!0}function Hf(t,r,l){var a=t.stateNode;if(!a)throw Error(i(169));l?(t=Bf(t,r,Bn),a.__reactInternalMemoizedMergedChildContext=t,ke(lt),ke(Ye),Pe(Ye,t)):ke(lt),Pe(lt,l)}var Qt=null,Xo=!1,xa=!1;function jf(t){Qt===null?Qt=[t]:Qt.push(t)}function Fy(t){Xo=!0,jf(t)}function En(){if(!xa&&Qt!==null){xa=!0;var t=0,r=Se;try{var l=Qt;for(Se=1;t<l.length;t++){var a=l[t];do a=a(!0);while(a!==null)}Qt=null,Xo=!1}catch(f){throw Qt!==null&&(Qt=Qt.slice(t+1)),Vd(js,En),f}finally{Se=r,xa=!1}}return null}var Rr=[],_r=0,Yo=null,Qo=0,St=[],Et=0,Hn=null,Jt=1,en="";function jn(t,r){Rr[_r++]=Qo,Rr[_r++]=Yo,Yo=t,Qo=r}function Vf(t,r,l){St[Et++]=Jt,St[Et++]=en,St[Et++]=Hn,Hn=t;var a=Jt;t=en;var f=32-Lt(a)-1;a&=~(1<<f),l+=1;var p=32-Lt(r)+f;if(30<p){var x=f-f%5;p=(a&(1<<x)-1).toString(32),a>>=x,f-=x,Jt=1<<32-Lt(r)+f|l<<f|a,en=p+t}else Jt=1<<p|l<<f|a,en=t}function ba(t){t.return!==null&&(jn(t,1),Vf(t,1,0))}function wa(t){for(;t===Yo;)Yo=Rr[--_r],Rr[_r]=null,Qo=Rr[--_r],Rr[_r]=null;for(;t===Hn;)Hn=St[--Et],St[Et]=null,en=St[--Et],St[Et]=null,Jt=St[--Et],St[Et]=null}var gt=null,yt=null,Ie=!1,_t=null;function zf(t,r){var l=Tt(5,null,null,0);l.elementType="DELETED",l.stateNode=r,l.return=t,r=t.deletions,r===null?(t.deletions=[l],t.flags|=16):r.push(l)}function Uf(t,r){switch(t.tag){case 5:var l=t.type;return r=r.nodeType!==1||l.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(t.stateNode=r,gt=t,yt=bn(r.firstChild),!0):!1;case 6:return r=t.pendingProps===""||r.nodeType!==3?null:r,r!==null?(t.stateNode=r,gt=t,yt=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(l=Hn!==null?{id:Jt,overflow:en}:null,t.memoizedState={dehydrated:r,treeContext:l,retryLane:1073741824},l=Tt(18,null,null,0),l.stateNode=r,l.return=t,t.child=l,gt=t,yt=null,!0):!1;default:return!1}}function Sa(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Ea(t){if(Ie){var r=yt;if(r){var l=r;if(!Uf(t,r)){if(Sa(t))throw Error(i(418));r=bn(l.nextSibling);var a=gt;r&&Uf(t,r)?zf(a,l):(t.flags=t.flags&-4097|2,Ie=!1,gt=t)}}else{if(Sa(t))throw Error(i(418));t.flags=t.flags&-4097|2,Ie=!1,gt=t}}}function Kf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;gt=t}function Jo(t){if(t!==gt)return!1;if(!Ie)return Kf(t),Ie=!0,!1;var r;if((r=t.tag!==3)&&!(r=t.tag!==5)&&(r=t.type,r=r!=="head"&&r!=="body"&&!ha(t.type,t.memoizedProps)),r&&(r=yt)){if(Sa(t))throw Wf(),Error(i(418));for(;r;)zf(t,r),r=bn(r.nextSibling)}if(Kf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"){if(r===0){yt=bn(t.nextSibling);break e}r--}else l!=="$"&&l!=="$!"&&l!=="$?"||r++}t=t.nextSibling}yt=null}}else yt=gt?bn(t.stateNode.nextSibling):null;return!0}function Wf(){for(var t=yt;t;)t=bn(t.nextSibling)}function Mr(){yt=gt=null,Ie=!1}function $a(t){_t===null?_t=[t]:_t.push(t)}var Ay=B.ReactCurrentBatchConfig;function Mt(t,r){if(t&&t.defaultProps){r=z({},r),t=t.defaultProps;for(var l in t)r[l]===void 0&&(r[l]=t[l]);return r}return r}var el=wn(null),tl=null,Fr=null,Pa=null;function Ca(){Pa=Fr=tl=null}function Ta(t){var r=el.current;ke(el),t._currentValue=r}function ka(t,r,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,a!==null&&(a.childLanes|=r)):a!==null&&(a.childLanes&r)!==r&&(a.childLanes|=r),t===l)break;t=t.return}}function Ar(t,r){tl=t,Pa=Fr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(at=!0),t.firstContext=null)}function $t(t){var r=t._currentValue;if(Pa!==t)if(t={context:t,memoizedValue:r,next:null},Fr===null){if(tl===null)throw Error(i(308));Fr=t,tl.dependencies={lanes:0,firstContext:t}}else Fr=Fr.next=t;return r}var Vn=null;function Ia(t){Vn===null?Vn=[t]:Vn.push(t)}function Gf(t,r,l,a){var f=r.interleaved;return f===null?(l.next=l,Ia(r)):(l.next=f.next,f.next=l),r.interleaved=l,tn(t,a)}function tn(t,r){t.lanes|=r;var l=t.alternate;for(l!==null&&(l.lanes|=r),l=t,t=t.return;t!==null;)t.childLanes|=r,l=t.alternate,l!==null&&(l.childLanes|=r),l=t,t=t.return;return l.tag===3?l.stateNode:null}var $n=!1;function La(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zf(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function nn(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function Pn(t,r,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(me&2)!==0){var f=a.pending;return f===null?r.next=r:(r.next=f.next,f.next=r),a.pending=r,tn(t,l)}return f=a.interleaved,f===null?(r.next=r,Ia(a)):(r.next=f.next,f.next=r),a.interleaved=r,tn(t,l)}function nl(t,r,l){if(r=r.updateQueue,r!==null&&(r=r.shared,(l&4194240)!==0)){var a=r.lanes;a&=t.pendingLanes,l|=a,r.lanes=l,Us(t,l)}}function qf(t,r){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var f=null,p=null;if(l=l.firstBaseUpdate,l!==null){do{var x={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};p===null?f=p=x:p=p.next=x,l=l.next}while(l!==null);p===null?f=p=r:p=p.next=r}else f=p=r;l={baseState:a.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:a.shared,effects:a.effects},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=r:t.next=r,l.lastBaseUpdate=r}function rl(t,r,l,a){var f=t.updateQueue;$n=!1;var p=f.firstBaseUpdate,x=f.lastBaseUpdate,C=f.shared.pending;if(C!==null){f.shared.pending=null;var k=C,N=k.next;k.next=null,x===null?p=N:x.next=N,x=k;var G=t.alternate;G!==null&&(G=G.updateQueue,C=G.lastBaseUpdate,C!==x&&(C===null?G.firstBaseUpdate=N:C.next=N,G.lastBaseUpdate=k))}if(p!==null){var Z=f.baseState;x=0,G=N=k=null,C=p;do{var K=C.lane,Q=C.eventTime;if((a&K)===K){G!==null&&(G=G.next={eventTime:Q,lane:0,tag:C.tag,payload:C.payload,callback:C.callback,next:null});e:{var te=t,re=C;switch(K=r,Q=l,re.tag){case 1:if(te=re.payload,typeof te=="function"){Z=te.call(Q,Z,K);break e}Z=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=re.payload,K=typeof te=="function"?te.call(Q,Z,K):te,K==null)break e;Z=z({},Z,K);break e;case 2:$n=!0}}C.callback!==null&&C.lane!==0&&(t.flags|=64,K=f.effects,K===null?f.effects=[C]:K.push(C))}else Q={eventTime:Q,lane:K,tag:C.tag,payload:C.payload,callback:C.callback,next:null},G===null?(N=G=Q,k=Z):G=G.next=Q,x|=K;if(C=C.next,C===null){if(C=f.shared.pending,C===null)break;K=C,C=K.next,K.next=null,f.lastBaseUpdate=K,f.shared.pending=null}}while(!0);if(G===null&&(k=Z),f.baseState=k,f.firstBaseUpdate=N,f.lastBaseUpdate=G,r=f.shared.interleaved,r!==null){f=r;do x|=f.lane,f=f.next;while(f!==r)}else p===null&&(f.shared.lanes=0);Kn|=x,t.lanes=x,t.memoizedState=Z}}function Xf(t,r,l){if(t=r.effects,r.effects=null,t!==null)for(r=0;r<t.length;r++){var a=t[r],f=a.callback;if(f!==null){if(a.callback=null,a=l,typeof f!="function")throw Error(i(191,f));f.call(a)}}}var Yf=new e.Component().refs;function Ra(t,r,l,a){r=t.memoizedState,l=l(a,r),l=l==null?r:z({},r,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var il={isMounted:function(t){return(t=t._reactInternals)?Dn(t)===t:!1},enqueueSetState:function(t,r,l){t=t._reactInternals;var a=nt(),f=In(t),p=nn(a,f);p.payload=r,l!=null&&(p.callback=l),r=Pn(t,p,f),r!==null&&(Nt(r,t,f,a),nl(r,t,f))},enqueueReplaceState:function(t,r,l){t=t._reactInternals;var a=nt(),f=In(t),p=nn(a,f);p.tag=1,p.payload=r,l!=null&&(p.callback=l),r=Pn(t,p,f),r!==null&&(Nt(r,t,f,a),nl(r,t,f))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var l=nt(),a=In(t),f=nn(l,a);f.tag=2,r!=null&&(f.callback=r),r=Pn(t,f,a),r!==null&&(Nt(r,t,a,l),nl(r,t,a))}};function Qf(t,r,l,a,f,p,x){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,p,x):r.prototype&&r.prototype.isPureReactComponent?!Ii(l,a)||!Ii(f,p):!0}function Jf(t,r,l){var a=!1,f=Sn,p=r.contextType;return typeof p=="object"&&p!==null?p=$t(p):(f=st(r)?Bn:Ye.current,a=r.contextTypes,p=(a=a!=null)?Lr(t,f):Sn),r=new r(l,p),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=il,t.stateNode=r,r._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=f,t.__reactInternalMemoizedMaskedChildContext=p),r}function ep(t,r,l,a){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(l,a),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(l,a),r.state!==t&&il.enqueueReplaceState(r,r.state,null)}function _a(t,r,l,a){var f=t.stateNode;f.props=l,f.state=t.memoizedState,f.refs=Yf,La(t);var p=r.contextType;typeof p=="object"&&p!==null?f.context=$t(p):(p=st(r)?Bn:Ye.current,f.context=Lr(t,p)),f.state=t.memoizedState,p=r.getDerivedStateFromProps,typeof p=="function"&&(Ra(t,r,p,l),f.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(r=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),r!==f.state&&il.enqueueReplaceState(f,f.state,null),rl(t,l,f,a),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308)}function Ni(t,r,l){if(t=l.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(i(309));var a=l.stateNode}if(!a)throw Error(i(147,t));var f=a,p=""+t;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===p?r.ref:(r=function(x){var C=f.refs;C===Yf&&(C=f.refs={}),x===null?delete C[p]:C[p]=x},r._stringRef=p,r)}if(typeof t!="string")throw Error(i(284));if(!l._owner)throw Error(i(290,t))}return t}function ol(t,r){throw t=Object.prototype.toString.call(r),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t))}function tp(t){var r=t._init;return r(t._payload)}function np(t){function r(M,L){if(t){var F=M.deletions;F===null?(M.deletions=[L],M.flags|=16):F.push(L)}}function l(M,L){if(!t)return null;for(;L!==null;)r(M,L),L=L.sibling;return null}function a(M,L){for(M=new Map;L!==null;)L.key!==null?M.set(L.key,L):M.set(L.index,L),L=L.sibling;return M}function f(M,L){return M=Rn(M,L),M.index=0,M.sibling=null,M}function p(M,L,F){return M.index=F,t?(F=M.alternate,F!==null?(F=F.index,F<L?(M.flags|=2,L):F):(M.flags|=2,L)):(M.flags|=1048576,L)}function x(M){return t&&M.alternate===null&&(M.flags|=2),M}function C(M,L,F,q){return L===null||L.tag!==6?(L=vu(F,M.mode,q),L.return=M,L):(L=f(L,F),L.return=M,L)}function k(M,L,F,q){var ie=F.type;return ie===W?G(M,L,F.props.children,q,F.key):L!==null&&(L.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===xe&&tp(ie)===L.type)?(q=f(L,F.props),q.ref=Ni(M,L,F),q.return=M,q):(q=$l(F.type,F.key,F.props,null,M.mode,q),q.ref=Ni(M,L,F),q.return=M,q)}function N(M,L,F,q){return L===null||L.tag!==4||L.stateNode.containerInfo!==F.containerInfo||L.stateNode.implementation!==F.implementation?(L=mu(F,M.mode,q),L.return=M,L):(L=f(L,F.children||[]),L.return=M,L)}function G(M,L,F,q,ie){return L===null||L.tag!==7?(L=qn(F,M.mode,q,ie),L.return=M,L):(L=f(L,F),L.return=M,L)}function Z(M,L,F){if(typeof L=="string"&&L!==""||typeof L=="number")return L=vu(""+L,M.mode,F),L.return=M,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case _:return F=$l(L.type,L.key,L.props,null,M.mode,F),F.ref=Ni(M,null,L),F.return=M,F;case V:return L=mu(L,M.mode,F),L.return=M,L;case xe:var q=L._init;return Z(M,q(L._payload),F)}if(pn(L)||ee(L))return L=qn(L,M.mode,F,null),L.return=M,L;ol(M,L)}return null}function K(M,L,F,q){var ie=L!==null?L.key:null;if(typeof F=="string"&&F!==""||typeof F=="number")return ie!==null?null:C(M,L,""+F,q);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case _:return F.key===ie?k(M,L,F,q):null;case V:return F.key===ie?N(M,L,F,q):null;case xe:return ie=F._init,K(M,L,ie(F._payload),q)}if(pn(F)||ee(F))return ie!==null?null:G(M,L,F,q,null);ol(M,F)}return null}function Q(M,L,F,q,ie){if(typeof q=="string"&&q!==""||typeof q=="number")return M=M.get(F)||null,C(L,M,""+q,ie);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return M=M.get(q.key===null?F:q.key)||null,k(L,M,q,ie);case V:return M=M.get(q.key===null?F:q.key)||null,N(L,M,q,ie);case xe:var oe=q._init;return Q(M,L,F,oe(q._payload),ie)}if(pn(q)||ee(q))return M=M.get(F)||null,G(L,M,q,ie,null);ol(L,q)}return null}function te(M,L,F,q){for(var ie=null,oe=null,le=L,ae=L=0,We=null;le!==null&&ae<F.length;ae++){le.index>ae?(We=le,le=null):We=le.sibling;var ye=K(M,le,F[ae],q);if(ye===null){le===null&&(le=We);break}t&&le&&ye.alternate===null&&r(M,le),L=p(ye,L,ae),oe===null?ie=ye:oe.sibling=ye,oe=ye,le=We}if(ae===F.length)return l(M,le),Ie&&jn(M,ae),ie;if(le===null){for(;ae<F.length;ae++)le=Z(M,F[ae],q),le!==null&&(L=p(le,L,ae),oe===null?ie=le:oe.sibling=le,oe=le);return Ie&&jn(M,ae),ie}for(le=a(M,le);ae<F.length;ae++)We=Q(le,M,ae,F[ae],q),We!==null&&(t&&We.alternate!==null&&le.delete(We.key===null?ae:We.key),L=p(We,L,ae),oe===null?ie=We:oe.sibling=We,oe=We);return t&&le.forEach(function(_n){return r(M,_n)}),Ie&&jn(M,ae),ie}function re(M,L,F,q){var ie=ee(F);if(typeof ie!="function")throw Error(i(150));if(F=ie.call(F),F==null)throw Error(i(151));for(var oe=ie=null,le=L,ae=L=0,We=null,ye=F.next();le!==null&&!ye.done;ae++,ye=F.next()){le.index>ae?(We=le,le=null):We=le.sibling;var _n=K(M,le,ye.value,q);if(_n===null){le===null&&(le=We);break}t&&le&&_n.alternate===null&&r(M,le),L=p(_n,L,ae),oe===null?ie=_n:oe.sibling=_n,oe=_n,le=We}if(ye.done)return l(M,le),Ie&&jn(M,ae),ie;if(le===null){for(;!ye.done;ae++,ye=F.next())ye=Z(M,ye.value,q),ye!==null&&(L=p(ye,L,ae),oe===null?ie=ye:oe.sibling=ye,oe=ye);return Ie&&jn(M,ae),ie}for(le=a(M,le);!ye.done;ae++,ye=F.next())ye=Q(le,M,ae,ye.value,q),ye!==null&&(t&&ye.alternate!==null&&le.delete(ye.key===null?ae:ye.key),L=p(ye,L,ae),oe===null?ie=ye:oe.sibling=ye,oe=ye);return t&&le.forEach(function(h2){return r(M,h2)}),Ie&&jn(M,ae),ie}function De(M,L,F,q){if(typeof F=="object"&&F!==null&&F.type===W&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case _:e:{for(var ie=F.key,oe=L;oe!==null;){if(oe.key===ie){if(ie=F.type,ie===W){if(oe.tag===7){l(M,oe.sibling),L=f(oe,F.props.children),L.return=M,M=L;break e}}else if(oe.elementType===ie||typeof ie=="object"&&ie!==null&&ie.$$typeof===xe&&tp(ie)===oe.type){l(M,oe.sibling),L=f(oe,F.props),L.ref=Ni(M,oe,F),L.return=M,M=L;break e}l(M,oe);break}else r(M,oe);oe=oe.sibling}F.type===W?(L=qn(F.props.children,M.mode,q,F.key),L.return=M,M=L):(q=$l(F.type,F.key,F.props,null,M.mode,q),q.ref=Ni(M,L,F),q.return=M,M=q)}return x(M);case V:e:{for(oe=F.key;L!==null;){if(L.key===oe)if(L.tag===4&&L.stateNode.containerInfo===F.containerInfo&&L.stateNode.implementation===F.implementation){l(M,L.sibling),L=f(L,F.children||[]),L.return=M,M=L;break e}else{l(M,L);break}else r(M,L);L=L.sibling}L=mu(F,M.mode,q),L.return=M,M=L}return x(M);case xe:return oe=F._init,De(M,L,oe(F._payload),q)}if(pn(F))return te(M,L,F,q);if(ee(F))return re(M,L,F,q);ol(M,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,L!==null&&L.tag===6?(l(M,L.sibling),L=f(L,F),L.return=M,M=L):(l(M,L),L=vu(F,M.mode,q),L.return=M,M=L),x(M)):l(M,L)}return De}var Nr=np(!0),rp=np(!1),Di={},Ut=wn(Di),Oi=wn(Di),Bi=wn(Di);function zn(t){if(t===Di)throw Error(i(174));return t}function Ma(t,r){switch(Pe(Bi,r),Pe(Oi,t),Pe(Ut,Di),t=r.nodeType,t){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:_s(null,"");break;default:t=t===8?r.parentNode:r,r=t.namespaceURI||null,t=t.tagName,r=_s(r,t)}ke(Ut),Pe(Ut,r)}function Dr(){ke(Ut),ke(Oi),ke(Bi)}function ip(t){zn(Bi.current);var r=zn(Ut.current),l=_s(r,t.type);r!==l&&(Pe(Oi,t),Pe(Ut,l))}function Fa(t){Oi.current===t&&(ke(Ut),ke(Oi))}var _e=wn(0);function ll(t){for(var r=t;r!==null;){if(r.tag===13){var l=r.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Aa=[];function Na(){for(var t=0;t<Aa.length;t++)Aa[t]._workInProgressVersionPrimary=null;Aa.length=0}var sl=B.ReactCurrentDispatcher,Da=B.ReactCurrentBatchConfig,Un=0,Me=null,je=null,Ue=null,al=!1,Hi=!1,ji=0,Ny=0;function Qe(){throw Error(i(321))}function Oa(t,r){if(r===null)return!1;for(var l=0;l<r.length&&l<t.length;l++)if(!Rt(t[l],r[l]))return!1;return!0}function Ba(t,r,l,a,f,p){if(Un=p,Me=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,sl.current=t===null||t.memoizedState===null?Hy:jy,t=l(a,f),Hi){p=0;do{if(Hi=!1,ji=0,25<=p)throw Error(i(301));p+=1,Ue=je=null,r.updateQueue=null,sl.current=Vy,t=l(a,f)}while(Hi)}if(sl.current=dl,r=je!==null&&je.next!==null,Un=0,Ue=je=Me=null,al=!1,r)throw Error(i(300));return t}function Ha(){var t=ji!==0;return ji=0,t}function Kt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?Me.memoizedState=Ue=t:Ue=Ue.next=t,Ue}function Pt(){if(je===null){var t=Me.alternate;t=t!==null?t.memoizedState:null}else t=je.next;var r=Ue===null?Me.memoizedState:Ue.next;if(r!==null)Ue=r,je=t;else{if(t===null)throw Error(i(310));je=t,t={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Ue===null?Me.memoizedState=Ue=t:Ue=Ue.next=t}return Ue}function Vi(t,r){return typeof r=="function"?r(t):r}function ja(t){var r=Pt(),l=r.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var a=je,f=a.baseQueue,p=l.pending;if(p!==null){if(f!==null){var x=f.next;f.next=p.next,p.next=x}a.baseQueue=f=p,l.pending=null}if(f!==null){p=f.next,a=a.baseState;var C=x=null,k=null,N=p;do{var G=N.lane;if((Un&G)===G)k!==null&&(k=k.next={lane:0,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),a=N.hasEagerState?N.eagerState:t(a,N.action);else{var Z={lane:G,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};k===null?(C=k=Z,x=a):k=k.next=Z,Me.lanes|=G,Kn|=G}N=N.next}while(N!==null&&N!==p);k===null?x=a:k.next=C,Rt(a,r.memoizedState)||(at=!0),r.memoizedState=a,r.baseState=x,r.baseQueue=k,l.lastRenderedState=a}if(t=l.interleaved,t!==null){f=t;do p=f.lane,Me.lanes|=p,Kn|=p,f=f.next;while(f!==t)}else f===null&&(l.lanes=0);return[r.memoizedState,l.dispatch]}function Va(t){var r=Pt(),l=r.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=t;var a=l.dispatch,f=l.pending,p=r.memoizedState;if(f!==null){l.pending=null;var x=f=f.next;do p=t(p,x.action),x=x.next;while(x!==f);Rt(p,r.memoizedState)||(at=!0),r.memoizedState=p,r.baseQueue===null&&(r.baseState=p),l.lastRenderedState=p}return[p,a]}function op(){}function lp(t,r){var l=Me,a=Pt(),f=r(),p=!Rt(a.memoizedState,f);if(p&&(a.memoizedState=f,at=!0),a=a.queue,za(up.bind(null,l,a,t),[t]),a.getSnapshot!==r||p||Ue!==null&&Ue.memoizedState.tag&1){if(l.flags|=2048,zi(9,ap.bind(null,l,a,f,r),void 0,null),Ke===null)throw Error(i(349));(Un&30)!==0||sp(l,r,f)}return f}function sp(t,r,l){t.flags|=16384,t={getSnapshot:r,value:l},r=Me.updateQueue,r===null?(r={lastEffect:null,stores:null},Me.updateQueue=r,r.stores=[t]):(l=r.stores,l===null?r.stores=[t]:l.push(t))}function ap(t,r,l,a){r.value=l,r.getSnapshot=a,cp(r)&&dp(t)}function up(t,r,l){return l(function(){cp(r)&&dp(t)})}function cp(t){var r=t.getSnapshot;t=t.value;try{var l=r();return!Rt(t,l)}catch{return!0}}function dp(t){var r=tn(t,1);r!==null&&Nt(r,t,1,-1)}function fp(t){var r=Kt();return typeof t=="function"&&(t=t()),r.memoizedState=r.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vi,lastRenderedState:t},r.queue=t,t=t.dispatch=By.bind(null,Me,t),[r.memoizedState,t]}function zi(t,r,l,a){return t={tag:t,create:r,destroy:l,deps:a,next:null},r=Me.updateQueue,r===null?(r={lastEffect:null,stores:null},Me.updateQueue=r,r.lastEffect=t.next=t):(l=r.lastEffect,l===null?r.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,r.lastEffect=t)),t}function pp(){return Pt().memoizedState}function ul(t,r,l,a){var f=Kt();Me.flags|=t,f.memoizedState=zi(1|r,l,void 0,a===void 0?null:a)}function cl(t,r,l,a){var f=Pt();a=a===void 0?null:a;var p=void 0;if(je!==null){var x=je.memoizedState;if(p=x.destroy,a!==null&&Oa(a,x.deps)){f.memoizedState=zi(r,l,p,a);return}}Me.flags|=t,f.memoizedState=zi(1|r,l,p,a)}function hp(t,r){return ul(8390656,8,t,r)}function za(t,r){return cl(2048,8,t,r)}function vp(t,r){return cl(4,2,t,r)}function mp(t,r){return cl(4,4,t,r)}function gp(t,r){if(typeof r=="function")return t=t(),r(t),function(){r(null)};if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function yp(t,r,l){return l=l!=null?l.concat([t]):null,cl(4,4,gp.bind(null,r,t),l)}function Ua(){}function xp(t,r){var l=Pt();r=r===void 0?null:r;var a=l.memoizedState;return a!==null&&r!==null&&Oa(r,a[1])?a[0]:(l.memoizedState=[t,r],t)}function bp(t,r){var l=Pt();r=r===void 0?null:r;var a=l.memoizedState;return a!==null&&r!==null&&Oa(r,a[1])?a[0]:(t=t(),l.memoizedState=[t,r],t)}function wp(t,r,l){return(Un&21)===0?(t.baseState&&(t.baseState=!1,at=!0),t.memoizedState=l):(Rt(l,r)||(l=Wd(),Me.lanes|=l,Kn|=l,t.baseState=!0),r)}function Dy(t,r){var l=Se;Se=l!==0&&4>l?l:4,t(!0);var a=Da.transition;Da.transition={};try{t(!1),r()}finally{Se=l,Da.transition=a}}function Sp(){return Pt().memoizedState}function Oy(t,r,l){var a=In(t);if(l={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null},Ep(t))$p(r,l);else if(l=Gf(t,r,l,a),l!==null){var f=nt();Nt(l,t,a,f),Pp(l,r,a)}}function By(t,r,l){var a=In(t),f={lane:a,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ep(t))$p(r,f);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var x=r.lastRenderedState,C=p(x,l);if(f.hasEagerState=!0,f.eagerState=C,Rt(C,x)){var k=r.interleaved;k===null?(f.next=f,Ia(r)):(f.next=k.next,k.next=f),r.interleaved=f;return}}catch{}l=Gf(t,r,f,a),l!==null&&(f=nt(),Nt(l,t,a,f),Pp(l,r,a))}}function Ep(t){var r=t.alternate;return t===Me||r!==null&&r===Me}function $p(t,r){Hi=al=!0;var l=t.pending;l===null?r.next=r:(r.next=l.next,l.next=r),t.pending=r}function Pp(t,r,l){if((l&4194240)!==0){var a=r.lanes;a&=t.pendingLanes,l|=a,r.lanes=l,Us(t,l)}}var dl={readContext:$t,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useInsertionEffect:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useSyncExternalStore:Qe,useId:Qe,unstable_isNewReconciler:!1},Hy={readContext:$t,useCallback:function(t,r){return Kt().memoizedState=[t,r===void 0?null:r],t},useContext:$t,useEffect:hp,useImperativeHandle:function(t,r,l){return l=l!=null?l.concat([t]):null,ul(4194308,4,gp.bind(null,r,t),l)},useLayoutEffect:function(t,r){return ul(4194308,4,t,r)},useInsertionEffect:function(t,r){return ul(4,2,t,r)},useMemo:function(t,r){var l=Kt();return r=r===void 0?null:r,t=t(),l.memoizedState=[t,r],t},useReducer:function(t,r,l){var a=Kt();return r=l!==void 0?l(r):r,a.memoizedState=a.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},a.queue=t,t=t.dispatch=Oy.bind(null,Me,t),[a.memoizedState,t]},useRef:function(t){var r=Kt();return t={current:t},r.memoizedState=t},useState:fp,useDebugValue:Ua,useDeferredValue:function(t){return Kt().memoizedState=t},useTransition:function(){var t=fp(!1),r=t[0];return t=Dy.bind(null,t[1]),Kt().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,l){var a=Me,f=Kt();if(Ie){if(l===void 0)throw Error(i(407));l=l()}else{if(l=r(),Ke===null)throw Error(i(349));(Un&30)!==0||sp(a,r,l)}f.memoizedState=l;var p={value:l,getSnapshot:r};return f.queue=p,hp(up.bind(null,a,p,t),[t]),a.flags|=2048,zi(9,ap.bind(null,a,p,l,r),void 0,null),l},useId:function(){var t=Kt(),r=Ke.identifierPrefix;if(Ie){var l=en,a=Jt;l=(a&~(1<<32-Lt(a)-1)).toString(32)+l,r=":"+r+"R"+l,l=ji++,0<l&&(r+="H"+l.toString(32)),r+=":"}else l=Ny++,r=":"+r+"r"+l.toString(32)+":";return t.memoizedState=r},unstable_isNewReconciler:!1},jy={readContext:$t,useCallback:xp,useContext:$t,useEffect:za,useImperativeHandle:yp,useInsertionEffect:vp,useLayoutEffect:mp,useMemo:bp,useReducer:ja,useRef:pp,useState:function(){return ja(Vi)},useDebugValue:Ua,useDeferredValue:function(t){var r=Pt();return wp(r,je.memoizedState,t)},useTransition:function(){var t=ja(Vi)[0],r=Pt().memoizedState;return[t,r]},useMutableSource:op,useSyncExternalStore:lp,useId:Sp,unstable_isNewReconciler:!1},Vy={readContext:$t,useCallback:xp,useContext:$t,useEffect:za,useImperativeHandle:yp,useInsertionEffect:vp,useLayoutEffect:mp,useMemo:bp,useReducer:Va,useRef:pp,useState:function(){return Va(Vi)},useDebugValue:Ua,useDeferredValue:function(t){var r=Pt();return je===null?r.memoizedState=t:wp(r,je.memoizedState,t)},useTransition:function(){var t=Va(Vi)[0],r=Pt().memoizedState;return[t,r]},useMutableSource:op,useSyncExternalStore:lp,useId:Sp,unstable_isNewReconciler:!1};function Or(t,r){try{var l="",a=r;do l+=Nn(a),a=a.return;while(a);var f=l}catch(p){f=`
|
|
7
|
+
Error generating stack: `+p.message+`
|
|
8
|
+
`+p.stack}return{value:t,source:r,stack:f,digest:null}}function Ka(t,r,l){return{value:t,source:null,stack:l??null,digest:r??null}}function Wa(t,r){try{console.error(r.value)}catch(l){setTimeout(function(){throw l})}}var zy=typeof WeakMap=="function"?WeakMap:Map;function Cp(t,r,l){l=nn(-1,l),l.tag=3,l.payload={element:null};var a=r.value;return l.callback=function(){yl||(yl=!0,su=a),Wa(t,r)},l}function Tp(t,r,l){l=nn(-1,l),l.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var f=r.value;l.payload=function(){return a(f)},l.callback=function(){Wa(t,r)}}var p=t.stateNode;return p!==null&&typeof p.componentDidCatch=="function"&&(l.callback=function(){Wa(t,r),typeof a!="function"&&(Tn===null?Tn=new Set([this]):Tn.add(this));var x=r.stack;this.componentDidCatch(r.value,{componentStack:x!==null?x:""})}),l}function kp(t,r,l){var a=t.pingCache;if(a===null){a=t.pingCache=new zy;var f=new Set;a.set(r,f)}else f=a.get(r),f===void 0&&(f=new Set,a.set(r,f));f.has(l)||(f.add(l),t=r2.bind(null,t,r,l),r.then(t,t))}function Ip(t){do{var r;if((r=t.tag===13)&&(r=t.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return t;t=t.return}while(t!==null);return null}function Lp(t,r,l,a,f){return(t.mode&1)===0?(t===r?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(r=nn(-1,1),r.tag=2,Pn(l,r,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=f,t)}var Uy=B.ReactCurrentOwner,at=!1;function tt(t,r,l,a){r.child=t===null?rp(r,null,l,a):Nr(r,t.child,l,a)}function Rp(t,r,l,a,f){l=l.render;var p=r.ref;return Ar(r,f),a=Ba(t,r,l,a,p,f),l=Ha(),t!==null&&!at?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~f,rn(t,r,f)):(Ie&&l&&ba(r),r.flags|=1,tt(t,r,a,f),r.child)}function _p(t,r,l,a,f){if(t===null){var p=l.type;return typeof p=="function"&&!hu(p)&&p.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(r.tag=15,r.type=p,Mp(t,r,p,a,f)):(t=$l(l.type,null,a,r,r.mode,f),t.ref=r.ref,t.return=r,r.child=t)}if(p=t.child,(t.lanes&f)===0){var x=p.memoizedProps;if(l=l.compare,l=l!==null?l:Ii,l(x,a)&&t.ref===r.ref)return rn(t,r,f)}return r.flags|=1,t=Rn(p,a),t.ref=r.ref,t.return=r,r.child=t}function Mp(t,r,l,a,f){if(t!==null){var p=t.memoizedProps;if(Ii(p,a)&&t.ref===r.ref)if(at=!1,r.pendingProps=a=p,(t.lanes&f)!==0)(t.flags&131072)!==0&&(at=!0);else return r.lanes=t.lanes,rn(t,r,f)}return Ga(t,r,l,a,f)}function Fp(t,r,l){var a=r.pendingProps,f=a.children,p=t!==null?t.memoizedState:null;if(a.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(Hr,xt),xt|=l;else{if((l&1073741824)===0)return t=p!==null?p.baseLanes|l:l,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:t,cachePool:null,transitions:null},r.updateQueue=null,Pe(Hr,xt),xt|=t,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=p!==null?p.baseLanes:l,Pe(Hr,xt),xt|=a}else p!==null?(a=p.baseLanes|l,r.memoizedState=null):a=l,Pe(Hr,xt),xt|=a;return tt(t,r,f,l),r.child}function Ap(t,r){var l=r.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(r.flags|=512,r.flags|=2097152)}function Ga(t,r,l,a,f){var p=st(l)?Bn:Ye.current;return p=Lr(r,p),Ar(r,f),l=Ba(t,r,l,a,p,f),a=Ha(),t!==null&&!at?(r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~f,rn(t,r,f)):(Ie&&a&&ba(r),r.flags|=1,tt(t,r,l,f),r.child)}function Np(t,r,l,a,f){if(st(l)){var p=!0;qo(r)}else p=!1;if(Ar(r,f),r.stateNode===null)pl(t,r),Jf(r,l,a),_a(r,l,a,f),a=!0;else if(t===null){var x=r.stateNode,C=r.memoizedProps;x.props=C;var k=x.context,N=l.contextType;typeof N=="object"&&N!==null?N=$t(N):(N=st(l)?Bn:Ye.current,N=Lr(r,N));var G=l.getDerivedStateFromProps,Z=typeof G=="function"||typeof x.getSnapshotBeforeUpdate=="function";Z||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==a||k!==N)&&ep(r,x,a,N),$n=!1;var K=r.memoizedState;x.state=K,rl(r,a,x,f),k=r.memoizedState,C!==a||K!==k||lt.current||$n?(typeof G=="function"&&(Ra(r,l,G,a),k=r.memoizedState),(C=$n||Qf(r,l,C,a,K,k,N))?(Z||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(r.flags|=4194308)):(typeof x.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=a,r.memoizedState=k),x.props=a,x.state=k,x.context=N,a=C):(typeof x.componentDidMount=="function"&&(r.flags|=4194308),a=!1)}else{x=r.stateNode,Zf(t,r),C=r.memoizedProps,N=r.type===r.elementType?C:Mt(r.type,C),x.props=N,Z=r.pendingProps,K=x.context,k=l.contextType,typeof k=="object"&&k!==null?k=$t(k):(k=st(l)?Bn:Ye.current,k=Lr(r,k));var Q=l.getDerivedStateFromProps;(G=typeof Q=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==Z||K!==k)&&ep(r,x,a,k),$n=!1,K=r.memoizedState,x.state=K,rl(r,a,x,f);var te=r.memoizedState;C!==Z||K!==te||lt.current||$n?(typeof Q=="function"&&(Ra(r,l,Q,a),te=r.memoizedState),(N=$n||Qf(r,l,N,a,K,te,k)||!1)?(G||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(a,te,k),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(a,te,k)),typeof x.componentDidUpdate=="function"&&(r.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof x.componentDidUpdate!="function"||C===t.memoizedProps&&K===t.memoizedState||(r.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&K===t.memoizedState||(r.flags|=1024),r.memoizedProps=a,r.memoizedState=te),x.props=a,x.state=te,x.context=k,a=N):(typeof x.componentDidUpdate!="function"||C===t.memoizedProps&&K===t.memoizedState||(r.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&K===t.memoizedState||(r.flags|=1024),a=!1)}return Za(t,r,l,a,p,f)}function Za(t,r,l,a,f,p){Ap(t,r);var x=(r.flags&128)!==0;if(!a&&!x)return f&&Hf(r,l,!1),rn(t,r,p);a=r.stateNode,Uy.current=r;var C=x&&typeof l.getDerivedStateFromError!="function"?null:a.render();return r.flags|=1,t!==null&&x?(r.child=Nr(r,t.child,null,p),r.child=Nr(r,null,C,p)):tt(t,r,C,p),r.memoizedState=a.state,f&&Hf(r,l,!0),r.child}function Dp(t){var r=t.stateNode;r.pendingContext?Of(t,r.pendingContext,r.pendingContext!==r.context):r.context&&Of(t,r.context,!1),Ma(t,r.containerInfo)}function Op(t,r,l,a,f){return Mr(),$a(f),r.flags|=256,tt(t,r,l,a),r.child}var qa={dehydrated:null,treeContext:null,retryLane:0};function Xa(t){return{baseLanes:t,cachePool:null,transitions:null}}function Bp(t,r,l){var a=r.pendingProps,f=_e.current,p=!1,x=(r.flags&128)!==0,C;if((C=x)||(C=t!==null&&t.memoizedState===null?!1:(f&2)!==0),C?(p=!0,r.flags&=-129):(t===null||t.memoizedState!==null)&&(f|=1),Pe(_e,f&1),t===null)return Ea(r),t=r.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((r.mode&1)===0?r.lanes=1:t.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(x=a.children,t=a.fallback,p?(a=r.mode,p=r.child,x={mode:"hidden",children:x},(a&1)===0&&p!==null?(p.childLanes=0,p.pendingProps=x):p=Pl(x,a,0,null),t=qn(t,a,l,null),p.return=r,t.return=r,p.sibling=t,r.child=p,r.child.memoizedState=Xa(l),r.memoizedState=qa,t):Ya(r,x));if(f=t.memoizedState,f!==null&&(C=f.dehydrated,C!==null))return Ky(t,r,x,a,C,f,l);if(p){p=a.fallback,x=r.mode,f=t.child,C=f.sibling;var k={mode:"hidden",children:a.children};return(x&1)===0&&r.child!==f?(a=r.child,a.childLanes=0,a.pendingProps=k,r.deletions=null):(a=Rn(f,k),a.subtreeFlags=f.subtreeFlags&14680064),C!==null?p=Rn(C,p):(p=qn(p,x,l,null),p.flags|=2),p.return=r,a.return=r,a.sibling=p,r.child=a,a=p,p=r.child,x=t.child.memoizedState,x=x===null?Xa(l):{baseLanes:x.baseLanes|l,cachePool:null,transitions:x.transitions},p.memoizedState=x,p.childLanes=t.childLanes&~l,r.memoizedState=qa,a}return p=t.child,t=p.sibling,a=Rn(p,{mode:"visible",children:a.children}),(r.mode&1)===0&&(a.lanes=l),a.return=r,a.sibling=null,t!==null&&(l=r.deletions,l===null?(r.deletions=[t],r.flags|=16):l.push(t)),r.child=a,r.memoizedState=null,a}function Ya(t,r){return r=Pl({mode:"visible",children:r},t.mode,0,null),r.return=t,t.child=r}function fl(t,r,l,a){return a!==null&&$a(a),Nr(r,t.child,null,l),t=Ya(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Ky(t,r,l,a,f,p,x){if(l)return r.flags&256?(r.flags&=-257,a=Ka(Error(i(422))),fl(t,r,x,a)):r.memoizedState!==null?(r.child=t.child,r.flags|=128,null):(p=a.fallback,f=r.mode,a=Pl({mode:"visible",children:a.children},f,0,null),p=qn(p,f,x,null),p.flags|=2,a.return=r,p.return=r,a.sibling=p,r.child=a,(r.mode&1)!==0&&Nr(r,t.child,null,x),r.child.memoizedState=Xa(x),r.memoizedState=qa,p);if((r.mode&1)===0)return fl(t,r,x,null);if(f.data==="$!"){if(a=f.nextSibling&&f.nextSibling.dataset,a)var C=a.dgst;return a=C,p=Error(i(419)),a=Ka(p,a,void 0),fl(t,r,x,a)}if(C=(x&t.childLanes)!==0,at||C){if(a=Ke,a!==null){switch(x&-x){case 4:f=2;break;case 16:f=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:f=32;break;case 536870912:f=268435456;break;default:f=0}f=(f&(a.suspendedLanes|x))!==0?0:f,f!==0&&f!==p.retryLane&&(p.retryLane=f,tn(t,f),Nt(a,t,f,-1))}return pu(),a=Ka(Error(i(421))),fl(t,r,x,a)}return f.data==="$?"?(r.flags|=128,r.child=t.child,r=i2.bind(null,t),f._reactRetry=r,null):(t=p.treeContext,yt=bn(f.nextSibling),gt=r,Ie=!0,_t=null,t!==null&&(St[Et++]=Jt,St[Et++]=en,St[Et++]=Hn,Jt=t.id,en=t.overflow,Hn=r),r=Ya(r,a.children),r.flags|=4096,r)}function Hp(t,r,l){t.lanes|=r;var a=t.alternate;a!==null&&(a.lanes|=r),ka(t.return,r,l)}function Qa(t,r,l,a,f){var p=t.memoizedState;p===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:f}:(p.isBackwards=r,p.rendering=null,p.renderingStartTime=0,p.last=a,p.tail=l,p.tailMode=f)}function jp(t,r,l){var a=r.pendingProps,f=a.revealOrder,p=a.tail;if(tt(t,r,a.children,l),a=_e.current,(a&2)!==0)a=a&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Hp(t,l,r);else if(t.tag===19)Hp(t,l,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}a&=1}if(Pe(_e,a),(r.mode&1)===0)r.memoizedState=null;else switch(f){case"forwards":for(l=r.child,f=null;l!==null;)t=l.alternate,t!==null&&ll(t)===null&&(f=l),l=l.sibling;l=f,l===null?(f=r.child,r.child=null):(f=l.sibling,l.sibling=null),Qa(r,!1,f,l,p);break;case"backwards":for(l=null,f=r.child,r.child=null;f!==null;){if(t=f.alternate,t!==null&&ll(t)===null){r.child=f;break}t=f.sibling,f.sibling=l,l=f,f=t}Qa(r,!0,l,null,p);break;case"together":Qa(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function pl(t,r){(r.mode&1)===0&&t!==null&&(t.alternate=null,r.alternate=null,r.flags|=2)}function rn(t,r,l){if(t!==null&&(r.dependencies=t.dependencies),Kn|=r.lanes,(l&r.childLanes)===0)return null;if(t!==null&&r.child!==t.child)throw Error(i(153));if(r.child!==null){for(t=r.child,l=Rn(t,t.pendingProps),r.child=l,l.return=r;t.sibling!==null;)t=t.sibling,l=l.sibling=Rn(t,t.pendingProps),l.return=r;l.sibling=null}return r.child}function Wy(t,r,l){switch(r.tag){case 3:Dp(r),Mr();break;case 5:ip(r);break;case 1:st(r.type)&&qo(r);break;case 4:Ma(r,r.stateNode.containerInfo);break;case 10:var a=r.type._context,f=r.memoizedProps.value;Pe(el,a._currentValue),a._currentValue=f;break;case 13:if(a=r.memoizedState,a!==null)return a.dehydrated!==null?(Pe(_e,_e.current&1),r.flags|=128,null):(l&r.child.childLanes)!==0?Bp(t,r,l):(Pe(_e,_e.current&1),t=rn(t,r,l),t!==null?t.sibling:null);Pe(_e,_e.current&1);break;case 19:if(a=(l&r.childLanes)!==0,(t.flags&128)!==0){if(a)return jp(t,r,l);r.flags|=128}if(f=r.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),Pe(_e,_e.current),a)break;return null;case 22:case 23:return r.lanes=0,Fp(t,r,l)}return rn(t,r,l)}var Vp,Ja,zp,Up;Vp=function(t,r){for(var l=r.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Ja=function(){},zp=function(t,r,l,a){var f=t.memoizedProps;if(f!==a){t=r.stateNode,zn(Ut.current);var p=null;switch(l){case"input":f=di(t,f),a=di(t,a),p=[];break;case"select":f=z({},f,{value:void 0}),a=z({},a,{value:void 0}),p=[];break;case"textarea":f=Rs(t,f),a=Rs(t,a),p=[];break;default:typeof f.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=Wo)}Ms(l,a);var x;l=null;for(N in f)if(!a.hasOwnProperty(N)&&f.hasOwnProperty(N)&&f[N]!=null)if(N==="style"){var C=f[N];for(x in C)C.hasOwnProperty(x)&&(l||(l={}),l[x]="")}else N!=="dangerouslySetInnerHTML"&&N!=="children"&&N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&N!=="autoFocus"&&(s.hasOwnProperty(N)?p||(p=[]):(p=p||[]).push(N,null));for(N in a){var k=a[N];if(C=f?.[N],a.hasOwnProperty(N)&&k!==C&&(k!=null||C!=null))if(N==="style")if(C){for(x in C)!C.hasOwnProperty(x)||k&&k.hasOwnProperty(x)||(l||(l={}),l[x]="");for(x in k)k.hasOwnProperty(x)&&C[x]!==k[x]&&(l||(l={}),l[x]=k[x])}else l||(p||(p=[]),p.push(N,l)),l=k;else N==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,C=C?C.__html:void 0,k!=null&&C!==k&&(p=p||[]).push(N,k)):N==="children"?typeof k!="string"&&typeof k!="number"||(p=p||[]).push(N,""+k):N!=="suppressContentEditableWarning"&&N!=="suppressHydrationWarning"&&(s.hasOwnProperty(N)?(k!=null&&N==="onScroll"&&Te("scroll",t),p||C===k||(p=[])):(p=p||[]).push(N,k))}l&&(p=p||[]).push("style",l);var N=p;(r.updateQueue=N)&&(r.flags|=4)}},Up=function(t,r,l,a){l!==a&&(r.flags|=4)};function Ui(t,r){if(!Ie)switch(t.tailMode){case"hidden":r=t.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Je(t){var r=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(r)for(var f=t.child;f!==null;)l|=f.lanes|f.childLanes,a|=f.subtreeFlags&14680064,a|=f.flags&14680064,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)l|=f.lanes|f.childLanes,a|=f.subtreeFlags,a|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=a,t.childLanes=l,r}function Gy(t,r,l){var a=r.pendingProps;switch(wa(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(r),null;case 1:return st(r.type)&&Zo(),Je(r),null;case 3:return a=r.stateNode,Dr(),ke(lt),ke(Ye),Na(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Jo(r)?r.flags|=4:t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,_t!==null&&(cu(_t),_t=null))),Ja(t,r),Je(r),null;case 5:Fa(r);var f=zn(Bi.current);if(l=r.type,t!==null&&r.stateNode!=null)zp(t,r,l,a,f),t.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!a){if(r.stateNode===null)throw Error(i(166));return Je(r),null}if(t=zn(Ut.current),Jo(r)){a=r.stateNode,l=r.type;var p=r.memoizedProps;switch(a[zt]=r,a[Fi]=p,t=(r.mode&1)!==0,l){case"dialog":Te("cancel",a),Te("close",a);break;case"iframe":case"object":case"embed":Te("load",a);break;case"video":case"audio":for(f=0;f<Ri.length;f++)Te(Ri[f],a);break;case"source":Te("error",a);break;case"img":case"image":case"link":Te("error",a),Te("load",a);break;case"details":Te("toggle",a);break;case"input":Eo(a,p),Te("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!p.multiple},Te("invalid",a);break;case"textarea":Pd(a,p),Te("invalid",a)}Ms(l,p),f=null;for(var x in p)if(p.hasOwnProperty(x)){var C=p[x];x==="children"?typeof C=="string"?a.textContent!==C&&(p.suppressHydrationWarning!==!0&&Ko(a.textContent,C,t),f=["children",C]):typeof C=="number"&&a.textContent!==""+C&&(p.suppressHydrationWarning!==!0&&Ko(a.textContent,C,t),f=["children",""+C]):s.hasOwnProperty(x)&&C!=null&&x==="onScroll"&&Te("scroll",a)}switch(l){case"input":mr(a),Xt(a,p,!0);break;case"textarea":mr(a),Td(a);break;case"select":case"option":break;default:typeof p.onClick=="function"&&(a.onclick=Wo)}a=f,r.updateQueue=a,a!==null&&(r.flags|=4)}else{x=f.nodeType===9?f:f.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=kd(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=x.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=x.createElement(l,{is:a.is}):(t=x.createElement(l),l==="select"&&(x=t,a.multiple?x.multiple=!0:a.size&&(x.size=a.size))):t=x.createElementNS(t,l),t[zt]=r,t[Fi]=a,Vp(t,r,!1,!1),r.stateNode=t;e:{switch(x=Fs(l,a),l){case"dialog":Te("cancel",t),Te("close",t),f=a;break;case"iframe":case"object":case"embed":Te("load",t),f=a;break;case"video":case"audio":for(f=0;f<Ri.length;f++)Te(Ri[f],t);f=a;break;case"source":Te("error",t),f=a;break;case"img":case"image":case"link":Te("error",t),Te("load",t),f=a;break;case"details":Te("toggle",t),f=a;break;case"input":Eo(t,a),f=di(t,a),Te("invalid",t);break;case"option":f=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},f=z({},a,{value:void 0}),Te("invalid",t);break;case"textarea":Pd(t,a),f=Rs(t,a),Te("invalid",t);break;default:f=a}Ms(l,f),C=f;for(p in C)if(C.hasOwnProperty(p)){var k=C[p];p==="style"?Rd(t,k):p==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&Id(t,k)):p==="children"?typeof k=="string"?(l!=="textarea"||k!=="")&&fi(t,k):typeof k=="number"&&fi(t,""+k):p!=="suppressContentEditableWarning"&&p!=="suppressHydrationWarning"&&p!=="autoFocus"&&(s.hasOwnProperty(p)?k!=null&&p==="onScroll"&&Te("scroll",t):k!=null&&R(t,p,k,x))}switch(l){case"input":mr(t),Xt(t,a,!1);break;case"textarea":mr(t),Td(t);break;case"option":a.value!=null&&t.setAttribute("value",""+Ht(a.value));break;case"select":t.multiple=!!a.multiple,p=a.value,p!=null?yr(t,!!a.multiple,p,!1):a.defaultValue!=null&&yr(t,!!a.multiple,a.defaultValue,!0);break;default:typeof f.onClick=="function"&&(t.onclick=Wo)}switch(l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return Je(r),null;case 6:if(t&&r.stateNode!=null)Up(t,r,t.memoizedProps,a);else{if(typeof a!="string"&&r.stateNode===null)throw Error(i(166));if(l=zn(Bi.current),zn(Ut.current),Jo(r)){if(a=r.stateNode,l=r.memoizedProps,a[zt]=r,(p=a.nodeValue!==l)&&(t=gt,t!==null))switch(t.tag){case 3:Ko(a.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ko(a.nodeValue,l,(t.mode&1)!==0)}p&&(r.flags|=4)}else a=(l.nodeType===9?l:l.ownerDocument).createTextNode(a),a[zt]=r,r.stateNode=a}return Je(r),null;case 13:if(ke(_e),a=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Ie&&yt!==null&&(r.mode&1)!==0&&(r.flags&128)===0)Wf(),Mr(),r.flags|=98560,p=!1;else if(p=Jo(r),a!==null&&a.dehydrated!==null){if(t===null){if(!p)throw Error(i(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[zt]=r}else Mr(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Je(r),p=!1}else _t!==null&&(cu(_t),_t=null),p=!0;if(!p)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=l,r):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(r.child.flags|=8192,(r.mode&1)!==0&&(t===null||(_e.current&1)!==0?Ve===0&&(Ve=3):pu())),r.updateQueue!==null&&(r.flags|=4),Je(r),null);case 4:return Dr(),Ja(t,r),t===null&&_i(r.stateNode.containerInfo),Je(r),null;case 10:return Ta(r.type._context),Je(r),null;case 17:return st(r.type)&&Zo(),Je(r),null;case 19:if(ke(_e),p=r.memoizedState,p===null)return Je(r),null;if(a=(r.flags&128)!==0,x=p.rendering,x===null)if(a)Ui(p,!1);else{if(Ve!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(x=ll(t),x!==null){for(r.flags|=128,Ui(p,!1),a=x.updateQueue,a!==null&&(r.updateQueue=a,r.flags|=4),r.subtreeFlags=0,a=l,l=r.child;l!==null;)p=l,t=a,p.flags&=14680066,x=p.alternate,x===null?(p.childLanes=0,p.lanes=t,p.child=null,p.subtreeFlags=0,p.memoizedProps=null,p.memoizedState=null,p.updateQueue=null,p.dependencies=null,p.stateNode=null):(p.childLanes=x.childLanes,p.lanes=x.lanes,p.child=x.child,p.subtreeFlags=0,p.deletions=null,p.memoizedProps=x.memoizedProps,p.memoizedState=x.memoizedState,p.updateQueue=x.updateQueue,p.type=x.type,t=x.dependencies,p.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return Pe(_e,_e.current&1|2),r.child}t=t.sibling}p.tail!==null&&Ne()>jr&&(r.flags|=128,a=!0,Ui(p,!1),r.lanes=4194304)}else{if(!a)if(t=ll(x),t!==null){if(r.flags|=128,a=!0,l=t.updateQueue,l!==null&&(r.updateQueue=l,r.flags|=4),Ui(p,!0),p.tail===null&&p.tailMode==="hidden"&&!x.alternate&&!Ie)return Je(r),null}else 2*Ne()-p.renderingStartTime>jr&&l!==1073741824&&(r.flags|=128,a=!0,Ui(p,!1),r.lanes=4194304);p.isBackwards?(x.sibling=r.child,r.child=x):(l=p.last,l!==null?l.sibling=x:r.child=x,p.last=x)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=Ne(),r.sibling=null,l=_e.current,Pe(_e,a?l&1|2:l&1),r):(Je(r),null);case 22:case 23:return fu(),a=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(r.flags|=8192),a&&(r.mode&1)!==0?(xt&1073741824)!==0&&(Je(r),r.subtreeFlags&6&&(r.flags|=8192)):Je(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function Zy(t,r){switch(wa(r),r.tag){case 1:return st(r.type)&&Zo(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return Dr(),ke(lt),ke(Ye),Na(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return Fa(r),null;case 13:if(ke(_e),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(i(340));Mr()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return ke(_e),null;case 4:return Dr(),null;case 10:return Ta(r.type._context),null;case 22:case 23:return fu(),null;case 24:return null;default:return null}}var hl=!1,et=!1,qy=typeof WeakSet=="function"?WeakSet:Set,J=null;function Br(t,r){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(a){Fe(t,r,a)}else l.current=null}function eu(t,r,l){try{l()}catch(a){Fe(t,r,a)}}var Kp=!1;function Xy(t,r){if(fa=Fo,t=Sf(),ia(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var f=a.anchorOffset,p=a.focusNode;a=a.focusOffset;try{l.nodeType,p.nodeType}catch{l=null;break e}var x=0,C=-1,k=-1,N=0,G=0,Z=t,K=null;t:for(;;){for(var Q;Z!==l||f!==0&&Z.nodeType!==3||(C=x+f),Z!==p||a!==0&&Z.nodeType!==3||(k=x+a),Z.nodeType===3&&(x+=Z.nodeValue.length),(Q=Z.firstChild)!==null;)K=Z,Z=Q;for(;;){if(Z===t)break t;if(K===l&&++N===f&&(C=x),K===p&&++G===a&&(k=x),(Q=Z.nextSibling)!==null)break;Z=K,K=Z.parentNode}Z=Q}l=C===-1||k===-1?null:{start:C,end:k}}else l=null}l=l||{start:0,end:0}}else l=null;for(pa={focusedElem:t,selectionRange:l},Fo=!1,J=r;J!==null;)if(r=J,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,J=t;else for(;J!==null;){r=J;try{var te=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(te!==null){var re=te.memoizedProps,De=te.memoizedState,M=r.stateNode,L=M.getSnapshotBeforeUpdate(r.elementType===r.type?re:Mt(r.type,re),De);M.__reactInternalSnapshotBeforeUpdate=L}break;case 3:var F=r.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(q){Fe(r,r.return,q)}if(t=r.sibling,t!==null){t.return=r.return,J=t;break}J=r.return}return te=Kp,Kp=!1,te}function Ki(t,r,l){var a=r.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var f=a=a.next;do{if((f.tag&t)===t){var p=f.destroy;f.destroy=void 0,p!==void 0&&eu(r,l,p)}f=f.next}while(f!==a)}}function vl(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&t)===t){var a=l.create;l.destroy=a()}l=l.next}while(l!==r)}}function tu(t){var r=t.ref;if(r!==null){var l=t.stateNode;t.tag,t=l,typeof r=="function"?r(t):r.current=t}}function Wp(t){var r=t.alternate;r!==null&&(t.alternate=null,Wp(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[zt],delete r[Fi],delete r[ga],delete r[_y],delete r[My])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Gp(t){return t.tag===5||t.tag===3||t.tag===4}function Zp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Gp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function nu(t,r,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?l.nodeType===8?l.parentNode.insertBefore(t,r):l.insertBefore(t,r):(l.nodeType===8?(r=l.parentNode,r.insertBefore(t,l)):(r=l,r.appendChild(t)),l=l._reactRootContainer,l!=null||r.onclick!==null||(r.onclick=Wo));else if(a!==4&&(t=t.child,t!==null))for(nu(t,r,l),t=t.sibling;t!==null;)nu(t,r,l),t=t.sibling}function ru(t,r,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,r?l.insertBefore(t,r):l.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(ru(t,r,l),t=t.sibling;t!==null;)ru(t,r,l),t=t.sibling}var Ze=null,Ft=!1;function Cn(t,r,l){for(l=l.child;l!==null;)qp(t,r,l),l=l.sibling}function qp(t,r,l){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(ko,l)}catch{}switch(l.tag){case 5:et||Br(l,r);case 6:var a=Ze,f=Ft;Ze=null,Cn(t,r,l),Ze=a,Ft=f,Ze!==null&&(Ft?(t=Ze,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):Ze.removeChild(l.stateNode));break;case 18:Ze!==null&&(Ft?(t=Ze,l=l.stateNode,t.nodeType===8?ma(t.parentNode,l):t.nodeType===1&&ma(t,l),Ei(t)):ma(Ze,l.stateNode));break;case 4:a=Ze,f=Ft,Ze=l.stateNode.containerInfo,Ft=!0,Cn(t,r,l),Ze=a,Ft=f;break;case 0:case 11:case 14:case 15:if(!et&&(a=l.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){f=a=a.next;do{var p=f,x=p.destroy;p=p.tag,x!==void 0&&((p&2)!==0||(p&4)!==0)&&eu(l,r,x),f=f.next}while(f!==a)}Cn(t,r,l);break;case 1:if(!et&&(Br(l,r),a=l.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=l.memoizedProps,a.state=l.memoizedState,a.componentWillUnmount()}catch(C){Fe(l,r,C)}Cn(t,r,l);break;case 21:Cn(t,r,l);break;case 22:l.mode&1?(et=(a=et)||l.memoizedState!==null,Cn(t,r,l),et=a):Cn(t,r,l);break;default:Cn(t,r,l)}}function Xp(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new qy),r.forEach(function(a){var f=o2.bind(null,t,a);l.has(a)||(l.add(a),a.then(f,f))})}}function At(t,r){var l=r.deletions;if(l!==null)for(var a=0;a<l.length;a++){var f=l[a];try{var p=t,x=r,C=x;e:for(;C!==null;){switch(C.tag){case 5:Ze=C.stateNode,Ft=!1;break e;case 3:Ze=C.stateNode.containerInfo,Ft=!0;break e;case 4:Ze=C.stateNode.containerInfo,Ft=!0;break e}C=C.return}if(Ze===null)throw Error(i(160));qp(p,x,f),Ze=null,Ft=!1;var k=f.alternate;k!==null&&(k.return=null),f.return=null}catch(N){Fe(f,r,N)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)Yp(r,t),r=r.sibling}function Yp(t,r){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(At(r,t),Wt(t),a&4){try{Ki(3,t,t.return),vl(3,t)}catch(re){Fe(t,t.return,re)}try{Ki(5,t,t.return)}catch(re){Fe(t,t.return,re)}}break;case 1:At(r,t),Wt(t),a&512&&l!==null&&Br(l,l.return);break;case 5:if(At(r,t),Wt(t),a&512&&l!==null&&Br(l,l.return),t.flags&32){var f=t.stateNode;try{fi(f,"")}catch(re){Fe(t,t.return,re)}}if(a&4&&(f=t.stateNode,f!=null)){var p=t.memoizedProps,x=l!==null?l.memoizedProps:p,C=t.type,k=t.updateQueue;if(t.updateQueue=null,k!==null)try{C==="input"&&p.type==="radio"&&p.name!=null&&wt(f,p),Fs(C,x);var N=Fs(C,p);for(x=0;x<k.length;x+=2){var G=k[x],Z=k[x+1];G==="style"?Rd(f,Z):G==="dangerouslySetInnerHTML"?Id(f,Z):G==="children"?fi(f,Z):R(f,G,Z,N)}switch(C){case"input":jt(f,p);break;case"textarea":Cd(f,p);break;case"select":var K=f._wrapperState.wasMultiple;f._wrapperState.wasMultiple=!!p.multiple;var Q=p.value;Q!=null?yr(f,!!p.multiple,Q,!1):K!==!!p.multiple&&(p.defaultValue!=null?yr(f,!!p.multiple,p.defaultValue,!0):yr(f,!!p.multiple,p.multiple?[]:"",!1))}f[Fi]=p}catch(re){Fe(t,t.return,re)}}break;case 6:if(At(r,t),Wt(t),a&4){if(t.stateNode===null)throw Error(i(162));f=t.stateNode,p=t.memoizedProps;try{f.nodeValue=p}catch(re){Fe(t,t.return,re)}}break;case 3:if(At(r,t),Wt(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ei(r.containerInfo)}catch(re){Fe(t,t.return,re)}break;case 4:At(r,t),Wt(t);break;case 13:At(r,t),Wt(t),f=t.child,f.flags&8192&&(p=f.memoizedState!==null,f.stateNode.isHidden=p,!p||f.alternate!==null&&f.alternate.memoizedState!==null||(lu=Ne())),a&4&&Xp(t);break;case 22:if(G=l!==null&&l.memoizedState!==null,t.mode&1?(et=(N=et)||G,At(r,t),et=N):At(r,t),Wt(t),a&8192){if(N=t.memoizedState!==null,(t.stateNode.isHidden=N)&&!G&&(t.mode&1)!==0)for(J=t,G=t.child;G!==null;){for(Z=J=G;J!==null;){switch(K=J,Q=K.child,K.tag){case 0:case 11:case 14:case 15:Ki(4,K,K.return);break;case 1:Br(K,K.return);var te=K.stateNode;if(typeof te.componentWillUnmount=="function"){a=K,l=K.return;try{r=a,te.props=r.memoizedProps,te.state=r.memoizedState,te.componentWillUnmount()}catch(re){Fe(a,l,re)}}break;case 5:Br(K,K.return);break;case 22:if(K.memoizedState!==null){eh(Z);continue}}Q!==null?(Q.return=K,J=Q):eh(Z)}G=G.sibling}e:for(G=null,Z=t;;){if(Z.tag===5){if(G===null){G=Z;try{f=Z.stateNode,N?(p=f.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none"):(C=Z.stateNode,k=Z.memoizedProps.style,x=k!=null&&k.hasOwnProperty("display")?k.display:null,C.style.display=Ld("display",x))}catch(re){Fe(t,t.return,re)}}}else if(Z.tag===6){if(G===null)try{Z.stateNode.nodeValue=N?"":Z.memoizedProps}catch(re){Fe(t,t.return,re)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===t)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===t)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===t)break e;G===Z&&(G=null),Z=Z.return}G===Z&&(G=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:At(r,t),Wt(t),a&4&&Xp(t);break;case 21:break;default:At(r,t),Wt(t)}}function Wt(t){var r=t.flags;if(r&2){try{e:{for(var l=t.return;l!==null;){if(Gp(l)){var a=l;break e}l=l.return}throw Error(i(160))}switch(a.tag){case 5:var f=a.stateNode;a.flags&32&&(fi(f,""),a.flags&=-33);var p=Zp(t);ru(t,p,f);break;case 3:case 4:var x=a.stateNode.containerInfo,C=Zp(t);nu(t,C,x);break;default:throw Error(i(161))}}catch(k){Fe(t,t.return,k)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function Yy(t,r,l){J=t,Qp(t)}function Qp(t,r,l){for(var a=(t.mode&1)!==0;J!==null;){var f=J,p=f.child;if(f.tag===22&&a){var x=f.memoizedState!==null||hl;if(!x){var C=f.alternate,k=C!==null&&C.memoizedState!==null||et;C=hl;var N=et;if(hl=x,(et=k)&&!N)for(J=f;J!==null;)x=J,k=x.child,x.tag===22&&x.memoizedState!==null?th(f):k!==null?(k.return=x,J=k):th(f);for(;p!==null;)J=p,Qp(p),p=p.sibling;J=f,hl=C,et=N}Jp(t)}else(f.subtreeFlags&8772)!==0&&p!==null?(p.return=f,J=p):Jp(t)}}function Jp(t){for(;J!==null;){var r=J;if((r.flags&8772)!==0){var l=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:et||vl(5,r);break;case 1:var a=r.stateNode;if(r.flags&4&&!et)if(l===null)a.componentDidMount();else{var f=r.elementType===r.type?l.memoizedProps:Mt(r.type,l.memoizedProps);a.componentDidUpdate(f,l.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var p=r.updateQueue;p!==null&&Xf(r,p,a);break;case 3:var x=r.updateQueue;if(x!==null){if(l=null,r.child!==null)switch(r.child.tag){case 5:l=r.child.stateNode;break;case 1:l=r.child.stateNode}Xf(r,x,l)}break;case 5:var C=r.stateNode;if(l===null&&r.flags&4){l=C;var k=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&l.focus();break;case"img":k.src&&(l.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var N=r.alternate;if(N!==null){var G=N.memoizedState;if(G!==null){var Z=G.dehydrated;Z!==null&&Ei(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}et||r.flags&512&&tu(r)}catch(K){Fe(r,r.return,K)}}if(r===t){J=null;break}if(l=r.sibling,l!==null){l.return=r.return,J=l;break}J=r.return}}function eh(t){for(;J!==null;){var r=J;if(r===t){J=null;break}var l=r.sibling;if(l!==null){l.return=r.return,J=l;break}J=r.return}}function th(t){for(;J!==null;){var r=J;try{switch(r.tag){case 0:case 11:case 15:var l=r.return;try{vl(4,r)}catch(k){Fe(r,l,k)}break;case 1:var a=r.stateNode;if(typeof a.componentDidMount=="function"){var f=r.return;try{a.componentDidMount()}catch(k){Fe(r,f,k)}}var p=r.return;try{tu(r)}catch(k){Fe(r,p,k)}break;case 5:var x=r.return;try{tu(r)}catch(k){Fe(r,x,k)}}}catch(k){Fe(r,r.return,k)}if(r===t){J=null;break}var C=r.sibling;if(C!==null){C.return=r.return,J=C;break}J=r.return}}var Qy=Math.ceil,ml=B.ReactCurrentDispatcher,iu=B.ReactCurrentOwner,Ct=B.ReactCurrentBatchConfig,me=0,Ke=null,Be=null,qe=0,xt=0,Hr=wn(0),Ve=0,Wi=null,Kn=0,gl=0,ou=0,Gi=null,ut=null,lu=0,jr=1/0,on=null,yl=!1,su=null,Tn=null,xl=!1,kn=null,bl=0,Zi=0,au=null,wl=-1,Sl=0;function nt(){return(me&6)!==0?Ne():wl!==-1?wl:wl=Ne()}function In(t){return(t.mode&1)===0?1:(me&2)!==0&&qe!==0?qe&-qe:Ay.transition!==null?(Sl===0&&(Sl=Wd()),Sl):(t=Se,t!==0||(t=window.event,t=t===void 0?16:tf(t.type)),t)}function Nt(t,r,l,a){if(50<Zi)throw Zi=0,au=null,Error(i(185));yi(t,l,a),((me&2)===0||t!==Ke)&&(t===Ke&&((me&2)===0&&(gl|=l),Ve===4&&Ln(t,qe)),ct(t,a),l===1&&me===0&&(r.mode&1)===0&&(jr=Ne()+500,Xo&&En()))}function ct(t,r){var l=t.callbackNode;A1(t,r);var a=Ro(t,t===Ke?qe:0);if(a===0)l!==null&&zd(l),t.callbackNode=null,t.callbackPriority=0;else if(r=a&-a,t.callbackPriority!==r){if(l!=null&&zd(l),r===1)t.tag===0?Fy(rh.bind(null,t)):jf(rh.bind(null,t)),Ly(function(){(me&6)===0&&En()}),l=null;else{switch(Gd(a)){case 1:l=js;break;case 4:l=Ud;break;case 16:l=To;break;case 536870912:l=Kd;break;default:l=To}l=dh(l,nh.bind(null,t))}t.callbackPriority=r,t.callbackNode=l}}function nh(t,r){if(wl=-1,Sl=0,(me&6)!==0)throw Error(i(327));var l=t.callbackNode;if(Vr()&&t.callbackNode!==l)return null;var a=Ro(t,t===Ke?qe:0);if(a===0)return null;if((a&30)!==0||(a&t.expiredLanes)!==0||r)r=El(t,a);else{r=a;var f=me;me|=2;var p=oh();(Ke!==t||qe!==r)&&(on=null,jr=Ne()+500,Gn(t,r));do try{t2();break}catch(C){ih(t,C)}while(!0);Ca(),ml.current=p,me=f,Be!==null?r=0:(Ke=null,qe=0,r=Ve)}if(r!==0){if(r===2&&(f=Vs(t),f!==0&&(a=f,r=uu(t,f))),r===1)throw l=Wi,Gn(t,0),Ln(t,a),ct(t,Ne()),l;if(r===6)Ln(t,a);else{if(f=t.current.alternate,(a&30)===0&&!Jy(f)&&(r=El(t,a),r===2&&(p=Vs(t),p!==0&&(a=p,r=uu(t,p))),r===1))throw l=Wi,Gn(t,0),Ln(t,a),ct(t,Ne()),l;switch(t.finishedWork=f,t.finishedLanes=a,r){case 0:case 1:throw Error(i(345));case 2:Zn(t,ut,on);break;case 3:if(Ln(t,a),(a&130023424)===a&&(r=lu+500-Ne(),10<r)){if(Ro(t,0)!==0)break;if(f=t.suspendedLanes,(f&a)!==a){nt(),t.pingedLanes|=t.suspendedLanes&f;break}t.timeoutHandle=va(Zn.bind(null,t,ut,on),r);break}Zn(t,ut,on);break;case 4:if(Ln(t,a),(a&4194240)===a)break;for(r=t.eventTimes,f=-1;0<a;){var x=31-Lt(a);p=1<<x,x=r[x],x>f&&(f=x),a&=~p}if(a=f,a=Ne()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Qy(a/1960))-a,10<a){t.timeoutHandle=va(Zn.bind(null,t,ut,on),a);break}Zn(t,ut,on);break;case 5:Zn(t,ut,on);break;default:throw Error(i(329))}}}return ct(t,Ne()),t.callbackNode===l?nh.bind(null,t):null}function uu(t,r){var l=Gi;return t.current.memoizedState.isDehydrated&&(Gn(t,r).flags|=256),t=El(t,r),t!==2&&(r=ut,ut=l,r!==null&&cu(r)),t}function cu(t){ut===null?ut=t:ut.push.apply(ut,t)}function Jy(t){for(var r=t;;){if(r.flags&16384){var l=r.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var a=0;a<l.length;a++){var f=l[a],p=f.getSnapshot;f=f.value;try{if(!Rt(p(),f))return!1}catch{return!1}}}if(l=r.child,r.subtreeFlags&16384&&l!==null)l.return=r,r=l;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ln(t,r){for(r&=~ou,r&=~gl,t.suspendedLanes|=r,t.pingedLanes&=~r,t=t.expirationTimes;0<r;){var l=31-Lt(r),a=1<<l;t[l]=-1,r&=~a}}function rh(t){if((me&6)!==0)throw Error(i(327));Vr();var r=Ro(t,0);if((r&1)===0)return ct(t,Ne()),null;var l=El(t,r);if(t.tag!==0&&l===2){var a=Vs(t);a!==0&&(r=a,l=uu(t,a))}if(l===1)throw l=Wi,Gn(t,0),Ln(t,r),ct(t,Ne()),l;if(l===6)throw Error(i(345));return t.finishedWork=t.current.alternate,t.finishedLanes=r,Zn(t,ut,on),ct(t,Ne()),null}function du(t,r){var l=me;me|=1;try{return t(r)}finally{me=l,me===0&&(jr=Ne()+500,Xo&&En())}}function Wn(t){kn!==null&&kn.tag===0&&(me&6)===0&&Vr();var r=me;me|=1;var l=Ct.transition,a=Se;try{if(Ct.transition=null,Se=1,t)return t()}finally{Se=a,Ct.transition=l,me=r,(me&6)===0&&En()}}function fu(){xt=Hr.current,ke(Hr)}function Gn(t,r){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,Iy(l)),Be!==null)for(l=Be.return;l!==null;){var a=l;switch(wa(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&Zo();break;case 3:Dr(),ke(lt),ke(Ye),Na();break;case 5:Fa(a);break;case 4:Dr();break;case 13:ke(_e);break;case 19:ke(_e);break;case 10:Ta(a.type._context);break;case 22:case 23:fu()}l=l.return}if(Ke=t,Be=t=Rn(t.current,null),qe=xt=r,Ve=0,Wi=null,ou=gl=Kn=0,ut=Gi=null,Vn!==null){for(r=0;r<Vn.length;r++)if(l=Vn[r],a=l.interleaved,a!==null){l.interleaved=null;var f=a.next,p=l.pending;if(p!==null){var x=p.next;p.next=f,a.next=x}l.pending=a}Vn=null}return t}function ih(t,r){do{var l=Be;try{if(Ca(),sl.current=dl,al){for(var a=Me.memoizedState;a!==null;){var f=a.queue;f!==null&&(f.pending=null),a=a.next}al=!1}if(Un=0,Ue=je=Me=null,Hi=!1,ji=0,iu.current=null,l===null||l.return===null){Ve=1,Wi=r,Be=null;break}e:{var p=t,x=l.return,C=l,k=r;if(r=qe,C.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var N=k,G=C,Z=G.tag;if((G.mode&1)===0&&(Z===0||Z===11||Z===15)){var K=G.alternate;K?(G.updateQueue=K.updateQueue,G.memoizedState=K.memoizedState,G.lanes=K.lanes):(G.updateQueue=null,G.memoizedState=null)}var Q=Ip(x);if(Q!==null){Q.flags&=-257,Lp(Q,x,C,p,r),Q.mode&1&&kp(p,N,r),r=Q,k=N;var te=r.updateQueue;if(te===null){var re=new Set;re.add(k),r.updateQueue=re}else te.add(k);break e}else{if((r&1)===0){kp(p,N,r),pu();break e}k=Error(i(426))}}else if(Ie&&C.mode&1){var De=Ip(x);if(De!==null){(De.flags&65536)===0&&(De.flags|=256),Lp(De,x,C,p,r),$a(Or(k,C));break e}}p=k=Or(k,C),Ve!==4&&(Ve=2),Gi===null?Gi=[p]:Gi.push(p),p=x;do{switch(p.tag){case 3:p.flags|=65536,r&=-r,p.lanes|=r;var M=Cp(p,k,r);qf(p,M);break e;case 1:C=k;var L=p.type,F=p.stateNode;if((p.flags&128)===0&&(typeof L.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(Tn===null||!Tn.has(F)))){p.flags|=65536,r&=-r,p.lanes|=r;var q=Tp(p,C,r);qf(p,q);break e}}p=p.return}while(p!==null)}sh(l)}catch(ie){r=ie,Be===l&&l!==null&&(Be=l=l.return);continue}break}while(!0)}function oh(){var t=ml.current;return ml.current=dl,t===null?dl:t}function pu(){(Ve===0||Ve===3||Ve===2)&&(Ve=4),Ke===null||(Kn&268435455)===0&&(gl&268435455)===0||Ln(Ke,qe)}function El(t,r){var l=me;me|=2;var a=oh();(Ke!==t||qe!==r)&&(on=null,Gn(t,r));do try{e2();break}catch(f){ih(t,f)}while(!0);if(Ca(),me=l,ml.current=a,Be!==null)throw Error(i(261));return Ke=null,qe=0,Ve}function e2(){for(;Be!==null;)lh(Be)}function t2(){for(;Be!==null&&!C1();)lh(Be)}function lh(t){var r=ch(t.alternate,t,xt);t.memoizedProps=t.pendingProps,r===null?sh(t):Be=r,iu.current=null}function sh(t){var r=t;do{var l=r.alternate;if(t=r.return,(r.flags&32768)===0){if(l=Gy(l,r,xt),l!==null){Be=l;return}}else{if(l=Zy(l,r),l!==null){l.flags&=32767,Be=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ve=6,Be=null;return}}if(r=r.sibling,r!==null){Be=r;return}Be=r=t}while(r!==null);Ve===0&&(Ve=5)}function Zn(t,r,l){var a=Se,f=Ct.transition;try{Ct.transition=null,Se=1,n2(t,r,l,a)}finally{Ct.transition=f,Se=a}return null}function n2(t,r,l,a){do Vr();while(kn!==null);if((me&6)!==0)throw Error(i(327));l=t.finishedWork;var f=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(i(177));t.callbackNode=null,t.callbackPriority=0;var p=l.lanes|l.childLanes;if(N1(t,p),t===Ke&&(Be=Ke=null,qe=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||xl||(xl=!0,dh(To,function(){return Vr(),null})),p=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||p){p=Ct.transition,Ct.transition=null;var x=Se;Se=1;var C=me;me|=4,iu.current=null,Xy(t,l),Yp(l,t),Sy(pa),Fo=!!fa,pa=fa=null,t.current=l,Yy(l),T1(),me=C,Se=x,Ct.transition=p}else t.current=l;if(xl&&(xl=!1,kn=t,bl=f),p=t.pendingLanes,p===0&&(Tn=null),L1(l.stateNode),ct(t,Ne()),r!==null)for(a=t.onRecoverableError,l=0;l<r.length;l++)f=r[l],a(f.value,{componentStack:f.stack,digest:f.digest});if(yl)throw yl=!1,t=su,su=null,t;return(bl&1)!==0&&t.tag!==0&&Vr(),p=t.pendingLanes,(p&1)!==0?t===au?Zi++:(Zi=0,au=t):Zi=0,En(),null}function Vr(){if(kn!==null){var t=Gd(bl),r=Ct.transition,l=Se;try{if(Ct.transition=null,Se=16>t?16:t,kn===null)var a=!1;else{if(t=kn,kn=null,bl=0,(me&6)!==0)throw Error(i(331));var f=me;for(me|=4,J=t.current;J!==null;){var p=J,x=p.child;if((J.flags&16)!==0){var C=p.deletions;if(C!==null){for(var k=0;k<C.length;k++){var N=C[k];for(J=N;J!==null;){var G=J;switch(G.tag){case 0:case 11:case 15:Ki(8,G,p)}var Z=G.child;if(Z!==null)Z.return=G,J=Z;else for(;J!==null;){G=J;var K=G.sibling,Q=G.return;if(Wp(G),G===N){J=null;break}if(K!==null){K.return=Q,J=K;break}J=Q}}}var te=p.alternate;if(te!==null){var re=te.child;if(re!==null){te.child=null;do{var De=re.sibling;re.sibling=null,re=De}while(re!==null)}}J=p}}if((p.subtreeFlags&2064)!==0&&x!==null)x.return=p,J=x;else e:for(;J!==null;){if(p=J,(p.flags&2048)!==0)switch(p.tag){case 0:case 11:case 15:Ki(9,p,p.return)}var M=p.sibling;if(M!==null){M.return=p.return,J=M;break e}J=p.return}}var L=t.current;for(J=L;J!==null;){x=J;var F=x.child;if((x.subtreeFlags&2064)!==0&&F!==null)F.return=x,J=F;else e:for(x=L;J!==null;){if(C=J,(C.flags&2048)!==0)try{switch(C.tag){case 0:case 11:case 15:vl(9,C)}}catch(ie){Fe(C,C.return,ie)}if(C===x){J=null;break e}var q=C.sibling;if(q!==null){q.return=C.return,J=q;break e}J=C.return}}if(me=f,En(),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(ko,t)}catch{}a=!0}return a}finally{Se=l,Ct.transition=r}}return!1}function ah(t,r,l){r=Or(l,r),r=Cp(t,r,1),t=Pn(t,r,1),r=nt(),t!==null&&(yi(t,1,r),ct(t,r))}function Fe(t,r,l){if(t.tag===3)ah(t,t,l);else for(;r!==null;){if(r.tag===3){ah(r,t,l);break}else if(r.tag===1){var a=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Tn===null||!Tn.has(a))){t=Or(l,t),t=Tp(r,t,1),r=Pn(r,t,1),t=nt(),r!==null&&(yi(r,1,t),ct(r,t));break}}r=r.return}}function r2(t,r,l){var a=t.pingCache;a!==null&&a.delete(r),r=nt(),t.pingedLanes|=t.suspendedLanes&l,Ke===t&&(qe&l)===l&&(Ve===4||Ve===3&&(qe&130023424)===qe&&500>Ne()-lu?Gn(t,0):ou|=l),ct(t,r)}function uh(t,r){r===0&&((t.mode&1)===0?r=1:(r=Lo,Lo<<=1,(Lo&130023424)===0&&(Lo=4194304)));var l=nt();t=tn(t,r),t!==null&&(yi(t,r,l),ct(t,l))}function i2(t){var r=t.memoizedState,l=0;r!==null&&(l=r.retryLane),uh(t,l)}function o2(t,r){var l=0;switch(t.tag){case 13:var a=t.stateNode,f=t.memoizedState;f!==null&&(l=f.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(r),uh(t,l)}var ch;ch=function(t,r,l){if(t!==null)if(t.memoizedProps!==r.pendingProps||lt.current)at=!0;else{if((t.lanes&l)===0&&(r.flags&128)===0)return at=!1,Wy(t,r,l);at=(t.flags&131072)!==0}else at=!1,Ie&&(r.flags&1048576)!==0&&Vf(r,Qo,r.index);switch(r.lanes=0,r.tag){case 2:var a=r.type;pl(t,r),t=r.pendingProps;var f=Lr(r,Ye.current);Ar(r,l),f=Ba(null,r,a,t,f,l);var p=Ha();return r.flags|=1,typeof f=="object"&&f!==null&&typeof f.render=="function"&&f.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,st(a)?(p=!0,qo(r)):p=!1,r.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,La(r),f.updater=il,r.stateNode=f,f._reactInternals=r,_a(r,a,t,l),r=Za(null,r,a,!0,p,l)):(r.tag=0,Ie&&p&&ba(r),tt(null,r,f,l),r=r.child),r;case 16:a=r.elementType;e:{switch(pl(t,r),t=r.pendingProps,f=a._init,a=f(a._payload),r.type=a,f=r.tag=s2(a),t=Mt(a,t),f){case 0:r=Ga(null,r,a,t,l);break e;case 1:r=Np(null,r,a,t,l);break e;case 11:r=Rp(null,r,a,t,l);break e;case 14:r=_p(null,r,a,Mt(a.type,t),l);break e}throw Error(i(306,a,""))}return r;case 0:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:Mt(a,f),Ga(t,r,a,f,l);case 1:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:Mt(a,f),Np(t,r,a,f,l);case 3:e:{if(Dp(r),t===null)throw Error(i(387));a=r.pendingProps,p=r.memoizedState,f=p.element,Zf(t,r),rl(r,a,null,l);var x=r.memoizedState;if(a=x.element,p.isDehydrated)if(p={element:a,isDehydrated:!1,cache:x.cache,pendingSuspenseBoundaries:x.pendingSuspenseBoundaries,transitions:x.transitions},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){f=Or(Error(i(423)),r),r=Op(t,r,a,l,f);break e}else if(a!==f){f=Or(Error(i(424)),r),r=Op(t,r,a,l,f);break e}else for(yt=bn(r.stateNode.containerInfo.firstChild),gt=r,Ie=!0,_t=null,l=rp(r,null,a,l),r.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Mr(),a===f){r=rn(t,r,l);break e}tt(t,r,a,l)}r=r.child}return r;case 5:return ip(r),t===null&&Ea(r),a=r.type,f=r.pendingProps,p=t!==null?t.memoizedProps:null,x=f.children,ha(a,f)?x=null:p!==null&&ha(a,p)&&(r.flags|=32),Ap(t,r),tt(t,r,x,l),r.child;case 6:return t===null&&Ea(r),null;case 13:return Bp(t,r,l);case 4:return Ma(r,r.stateNode.containerInfo),a=r.pendingProps,t===null?r.child=Nr(r,null,a,l):tt(t,r,a,l),r.child;case 11:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:Mt(a,f),Rp(t,r,a,f,l);case 7:return tt(t,r,r.pendingProps,l),r.child;case 8:return tt(t,r,r.pendingProps.children,l),r.child;case 12:return tt(t,r,r.pendingProps.children,l),r.child;case 10:e:{if(a=r.type._context,f=r.pendingProps,p=r.memoizedProps,x=f.value,Pe(el,a._currentValue),a._currentValue=x,p!==null)if(Rt(p.value,x)){if(p.children===f.children&&!lt.current){r=rn(t,r,l);break e}}else for(p=r.child,p!==null&&(p.return=r);p!==null;){var C=p.dependencies;if(C!==null){x=p.child;for(var k=C.firstContext;k!==null;){if(k.context===a){if(p.tag===1){k=nn(-1,l&-l),k.tag=2;var N=p.updateQueue;if(N!==null){N=N.shared;var G=N.pending;G===null?k.next=k:(k.next=G.next,G.next=k),N.pending=k}}p.lanes|=l,k=p.alternate,k!==null&&(k.lanes|=l),ka(p.return,l,r),C.lanes|=l;break}k=k.next}}else if(p.tag===10)x=p.type===r.type?null:p.child;else if(p.tag===18){if(x=p.return,x===null)throw Error(i(341));x.lanes|=l,C=x.alternate,C!==null&&(C.lanes|=l),ka(x,l,r),x=p.sibling}else x=p.child;if(x!==null)x.return=p;else for(x=p;x!==null;){if(x===r){x=null;break}if(p=x.sibling,p!==null){p.return=x.return,x=p;break}x=x.return}p=x}tt(t,r,f.children,l),r=r.child}return r;case 9:return f=r.type,a=r.pendingProps.children,Ar(r,l),f=$t(f),a=a(f),r.flags|=1,tt(t,r,a,l),r.child;case 14:return a=r.type,f=Mt(a,r.pendingProps),f=Mt(a.type,f),_p(t,r,a,f,l);case 15:return Mp(t,r,r.type,r.pendingProps,l);case 17:return a=r.type,f=r.pendingProps,f=r.elementType===a?f:Mt(a,f),pl(t,r),r.tag=1,st(a)?(t=!0,qo(r)):t=!1,Ar(r,l),Jf(r,a,f),_a(r,a,f,l),Za(null,r,a,!0,t,l);case 19:return jp(t,r,l);case 22:return Fp(t,r,l)}throw Error(i(156,r.tag))};function dh(t,r){return Vd(t,r)}function l2(t,r,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tt(t,r,l,a){return new l2(t,r,l,a)}function hu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function s2(t){if(typeof t=="function")return hu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===ne)return 11;if(t===ue)return 14}return 2}function Rn(t,r){var l=t.alternate;return l===null?(l=Tt(t.tag,r,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=r,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,r=t.dependencies,l.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function $l(t,r,l,a,f,p){var x=2;if(a=t,typeof t=="function")hu(t)&&(x=1);else if(typeof t=="string")x=5;else e:switch(t){case W:return qn(l.children,f,p,r);case T:x=8,f|=8;break;case U:return t=Tt(12,l,r,f|2),t.elementType=U,t.lanes=p,t;case D:return t=Tt(13,l,r,f),t.elementType=D,t.lanes=p,t;case j:return t=Tt(19,l,r,f),t.elementType=j,t.lanes=p,t;case Y:return Pl(l,f,p,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case O:x=10;break e;case H:x=9;break e;case ne:x=11;break e;case ue:x=14;break e;case xe:x=16,a=null;break e}throw Error(i(130,t==null?t:typeof t,""))}return r=Tt(x,l,r,f),r.elementType=t,r.type=a,r.lanes=p,r}function qn(t,r,l,a){return t=Tt(7,t,a,r),t.lanes=l,t}function Pl(t,r,l,a){return t=Tt(22,t,a,r),t.elementType=Y,t.lanes=l,t.stateNode={isHidden:!1},t}function vu(t,r,l){return t=Tt(6,t,null,r),t.lanes=l,t}function mu(t,r,l){return r=Tt(4,t.children!==null?t.children:[],t.key,r),r.lanes=l,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function a2(t,r,l,a,f){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zs(0),this.expirationTimes=zs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zs(0),this.identifierPrefix=a,this.onRecoverableError=f,this.mutableSourceEagerHydrationData=null}function gu(t,r,l,a,f,p,x,C,k){return t=new a2(t,r,l,C,k),r===1?(r=1,p===!0&&(r|=8)):r=0,p=Tt(3,null,null,r),t.current=p,p.stateNode=t,p.memoizedState={element:a,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},La(p),t}function u2(t,r,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:a==null?null:""+a,children:t,containerInfo:r,implementation:l}}function fh(t){if(!t)return Sn;t=t._reactInternals;e:{if(Dn(t)!==t||t.tag!==1)throw Error(i(170));var r=t;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(st(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(i(171))}if(t.tag===1){var l=t.type;if(st(l))return Bf(t,l,r)}return r}function ph(t,r,l,a,f,p,x,C,k){return t=gu(l,a,!0,t,f,p,x,C,k),t.context=fh(null),l=t.current,a=nt(),f=In(l),p=nn(a,f),p.callback=r??null,Pn(l,p,f),t.current.lanes=f,yi(t,f,a),ct(t,a),t}function Cl(t,r,l,a){var f=r.current,p=nt(),x=In(f);return l=fh(l),r.context===null?r.context=l:r.pendingContext=l,r=nn(p,x),r.payload={element:t},a=a===void 0?null:a,a!==null&&(r.callback=a),t=Pn(f,r,x),t!==null&&(Nt(t,f,x,p),nl(t,f,x)),x}function Tl(t){return t=t.current,t.child?(t.child.tag===5,t.child.stateNode):null}function hh(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<r?l:r}}function yu(t,r){hh(t,r),(t=t.alternate)&&hh(t,r)}function c2(){return null}var vh=typeof reportError=="function"?reportError:function(t){console.error(t)};function xu(t){this._internalRoot=t}kl.prototype.render=xu.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(i(409));Cl(t,r,null,null)},kl.prototype.unmount=xu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;Wn(function(){Cl(null,t,null,null)}),r[Yt]=null}};function kl(t){this._internalRoot=t}kl.prototype.unstable_scheduleHydration=function(t){if(t){var r=Xd();t={blockedOn:null,target:t,priority:r};for(var l=0;l<gn.length&&r!==0&&r<gn[l].priority;l++);gn.splice(l,0,t),l===0&&Jd(t)}};function bu(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Il(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function mh(){}function d2(t,r,l,a,f){if(f){if(typeof a=="function"){var p=a;a=function(){var N=Tl(x);p.call(N)}}var x=ph(r,a,t,0,null,!1,!1,"",mh);return t._reactRootContainer=x,t[Yt]=x.current,_i(t.nodeType===8?t.parentNode:t),Wn(),x}for(;f=t.lastChild;)t.removeChild(f);if(typeof a=="function"){var C=a;a=function(){var N=Tl(k);C.call(N)}}var k=gu(t,0,!1,null,null,!1,!1,"",mh);return t._reactRootContainer=k,t[Yt]=k.current,_i(t.nodeType===8?t.parentNode:t),Wn(function(){Cl(r,k,l,a)}),k}function Ll(t,r,l,a,f){var p=l._reactRootContainer;if(p){var x=p;if(typeof f=="function"){var C=f;f=function(){var k=Tl(x);C.call(k)}}Cl(r,x,t,f)}else x=d2(l,r,t,f,a);return Tl(x)}Zd=function(t){switch(t.tag){case 3:var r=t.stateNode;if(r.current.memoizedState.isDehydrated){var l=gi(r.pendingLanes);l!==0&&(Us(r,l|1),ct(r,Ne()),(me&6)===0&&(jr=Ne()+500,En()))}break;case 13:Wn(function(){var a=tn(t,1);if(a!==null){var f=nt();Nt(a,t,1,f)}}),yu(t,1)}},Ks=function(t){if(t.tag===13){var r=tn(t,134217728);if(r!==null){var l=nt();Nt(r,t,134217728,l)}yu(t,134217728)}},qd=function(t){if(t.tag===13){var r=In(t),l=tn(t,r);if(l!==null){var a=nt();Nt(l,t,r,a)}yu(t,r)}},Xd=function(){return Se},Yd=function(t,r){var l=Se;try{return Se=t,r()}finally{Se=l}},Ds=function(t,r,l){switch(r){case"input":if(jt(t,l),r=l.name,l.type==="radio"&&r!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<l.length;r++){var a=l[r];if(a!==t&&a.form===t.form){var f=Go(a);if(!f)throw Error(i(90));ci(a),jt(a,f)}}}break;case"textarea":Cd(t,l);break;case"select":r=l.value,r!=null&&yr(t,!!l.multiple,r,!1)}},Ad=du,Nd=Wn;var f2={usingClientEntryPoint:!1,Events:[Ai,kr,Go,Md,Fd,du]},qi={findFiberByHostInstance:On,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},p2={bundleType:qi.bundleType,version:qi.version,rendererPackageName:qi.rendererPackageName,rendererConfig:qi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:B.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Hd(t),t===null?null:t.stateNode},findFiberByHostInstance:qi.findFiberByHostInstance||c2,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rl.isDisabled&&Rl.supportsFiber)try{ko=Rl.inject(p2),Vt=Rl}catch{}}return dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f2,dt.createPortal=function(t,r){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!bu(r))throw Error(i(200));return u2(t,r,null,l)},dt.createRoot=function(t,r){if(!bu(t))throw Error(i(299));var l=!1,a="",f=vh;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(f=r.onRecoverableError)),r=gu(t,1,!1,null,null,l,!1,a,f),t[Yt]=r.current,_i(t.nodeType===8?t.parentNode:t),new xu(r)},dt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=Hd(r),t=t===null?null:t.stateNode,t},dt.flushSync=function(t){return Wn(t)},dt.hydrate=function(t,r,l){if(!Il(r))throw Error(i(200));return Ll(null,t,r,!0,l)},dt.hydrateRoot=function(t,r,l){if(!bu(t))throw Error(i(405));var a=l!=null&&l.hydratedSources||null,f=!1,p="",x=vh;if(l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onRecoverableError!==void 0&&(x=l.onRecoverableError)),r=ph(r,null,t,1,l??null,f,!1,p,x),t[Yt]=r.current,_i(t),a)for(t=0;t<a.length;t++)l=a[t],f=l._getVersion,f=f(l._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[l,f]:r.mutableSourceEagerHydrationData.push(l,f);return new kl(r)},dt.render=function(t,r,l){if(!Il(r))throw Error(i(200));return Ll(null,t,r,!1,l)},dt.unmountComponentAtNode=function(t){if(!Il(t))throw Error(i(40));return t._reactRootContainer?(Wn(function(){Ll(null,null,t,!1,function(){t._reactRootContainer=null,t[Yt]=null})}),!0):!1},dt.unstable_batchedUpdates=du,dt.unstable_renderSubtreeIntoContainer=function(t,r,l,a){if(!Il(l))throw Error(i(200));if(t==null||t._reactInternals===void 0)throw Error(i(38));return Ll(t,r,l,!1,a)},dt.version="18.2.0-next-9e3b772b8-20220608",dt}var Sh;function tv(){if(Sh)return Su.exports;Sh=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Su.exports=E2(),Su.exports}var Eh;function $2(){if(Eh)return _l;Eh=1;var e=tv();return _l.createRoot=e.createRoot,_l.hydrateRoot=e.hydrateRoot,_l}var P2=$2();const n$=ps(P2);var Pu={exports:{}},be={};var $h;function C2(){if($h)return be;$h=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),v=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function S(P){if(typeof P=="object"&&P!==null){var A=P.$$typeof;switch(A){case e:switch(P=P.type,P){case i:case s:case o:case h:case m:return P;default:switch(P=P&&P.$$typeof,P){case d:case c:case v:case y:case g:case u:return P;default:return A}}case n:return A}}}return be.ContextConsumer=c,be.ContextProvider=u,be.Element=e,be.ForwardRef=v,be.Fragment=i,be.Lazy=y,be.Memo=g,be.Portal=n,be.Profiler=s,be.StrictMode=o,be.Suspense=h,be.SuspenseList=m,be.isAsyncMode=function(){return!1},be.isConcurrentMode=function(){return!1},be.isContextConsumer=function(P){return S(P)===c},be.isContextProvider=function(P){return S(P)===u},be.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===e},be.isForwardRef=function(P){return S(P)===v},be.isFragment=function(P){return S(P)===i},be.isLazy=function(P){return S(P)===y},be.isMemo=function(P){return S(P)===g},be.isPortal=function(P){return S(P)===n},be.isProfiler=function(P){return S(P)===s},be.isStrictMode=function(P){return S(P)===o},be.isSuspense=function(P){return S(P)===h},be.isSuspenseList=function(P){return S(P)===m},be.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===i||P===s||P===o||P===h||P===m||P===w||typeof P=="object"&&P!==null&&(P.$$typeof===y||P.$$typeof===g||P.$$typeof===u||P.$$typeof===c||P.$$typeof===v||P.$$typeof===E||P.getModuleId!==void 0)},be.typeOf=S,be}var Ph;function T2(){return Ph||(Ph=1,Pu.exports=C2()),Pu.exports}var zc=T2();const ac=b.createContext([980]);function k2({value:e,children:n}){return $.jsx(ac.Provider,{value:e,children:n})}function nv(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function uo(e,n=1e3){let i={},o=0;return((s,u)=>{const c=typeof s=="string"&&u==null?s:JSON.stringify([s,u]);return i[c]||(o>n&&(i={},o=0),o++,i[c]=u==null?e(s):e(s,u)),i[c]})}function I2(e){return e?Object.keys(e).reduce((n,i)=>(e[i]&&(n[`data-is-${nv(i)}`]=""),n),{}):null}const L2=uo(I2);function R2(e){return e.filter(n=>{const i=[];return!n.find(o=>{const s=o.match(/\[(.+?)[=\]]/);return s?i.includes(s[1])?!0:(i.push(s[1]),!1):!1})})}function _2(e,n){const i=n?[[]]:[];if(e.length===0)return[e];if(e.length<2)return i.concat([e]);const o=function(s=[],u){for(let c=0;c<u.length;c++)i.push([...s,u[c]]),o([...s,u[c]],u.slice(c+1))};return o([],e),R2(i)}const M2=typeof CSS<"u"&&typeof CSS?.supports=="function"?CSS.supports("height: 100dvh"):!1,rv={r:"var(--radius)",bw:"var(--border-width)",ow:"var(--outline-width)",x:"var(--gap)",fs:"var(--font-size)",lh:"var(--line-height)",rp:"var(--rem-pixel)",gp:"var(--column-gap)",dvh:function(n){return M2?`${n}dvh`:`calc(var(--cube-dynamic-viewport-height, 100dvh) / 100 * ${n})`},sp:function(n){return`((${n} * var(--column-width)) + (${n-1} * var(--column-gap)))`}},dn=["top","right","bottom","left"],F2=["rgb","rgba"],A2=["auto","max-content","min-content","none","subgrid","initial"],Ch=/("[^"]*")|('[^']*')|([a-z-]+\()|(#[a-z0-9.-]{2,}(?![a-f0-9[-]))|(--[a-z0-9-]+|@[a-z0-9-]+)|([a-z][a-z0-9-]*)|(([0-9]+(?![0-9.])|[0-9-.]{2,}|[0-9-]{2,}|[0-9.-]{3,})([a-z%]{0,3}))|([*/+-])|([()])|(,)/gi,N2=new Map,D2=new Map,O2=new Map,B2=1e4,H2=[D2,N2,O2],j2=/calc\((\d*)\)/gi,Cu=new Map;function Th(e){return Cu.has(e)||Cu.set(e,e.match(/^[a-z]/)?`[data-is-${nv(e)}]`:e),Cu.get(e)}function ze(e,n=0){if(typeof e=="number"&&(e=String(e)),typeof e!="string")return{values:[],mods:[],all:[],value:""};const i=H2[n];if(!i.has(e)){i.size>B2&&i.clear();const o=[],s=[],u=[],c=n!==1;let d="",v=-1,h=0,m="",g="",y="",w="",E;for(Ch.lastIndex=0,e=e.replace(/@\(/g,"var(--");E=Ch.exec(e);){let[,S,P,A,I,R,B,_,V,W,T,U,O]=E;if(P||S)d+=`${P||S} `;else if(A)y=A.slice(0,-1),d+=A,h++;else if(I)n===2?g=I:g=oo(I,!1).color;else if(B)h||A2.includes(B)?d+=`${B} `:(o.push(B),s.push(B),m+=`${B} `);else if(U)U==="("&&(~v||(v=h,d+="calc"),h++),U===")"&&h&&(d=d.trim(),h>0&&h--,h===v&&(v=-1)),U===")"&&!h&&(w=y,y=""),d+=`${U}${U===")"?" ":""}`;else if(T){if(!~v&&c){if(d){if(d.includes("(")){const H=d.lastIndexOf("(");d=`${d.slice(0,H)}(calc(${d.slice(H+1)}`,v=h,h++}}else if(u.length){m=m.slice(0,m.length-u[u.length-1].length-1);let H=u.splice(u.length-1,1)[0];s.splice(u.length-1,1),H&&(H.startsWith("calc(")&&(H=H.slice(4)),v=h,h++,d=`calc((${H}) `)}}d+=`${T} `}else if(_)if(W&&rv[W]){let H=K2(V,W);!~v&&H.startsWith("(")&&(d+="calc"),d+=`${H} `}else d+=`${_} `;else R?(R=R.replace("@","--"),y!=="var"?d+=`var(${R}) `:d+=`${R} `):O&&(~v?(v=-1,h--,d=`${d.trim()}), `):d=`${d.trim()}, `,h||s.push(","));if(d&&!h){let H=Lh(d);F2.includes(w)?g=H:H.startsWith("color(")?(H=H.slice(6,-1),g=oo(H).color):(H!==","&&(u.push(H),s.push(H)),m+=`${H} `),d=""}}if(h){let S=Lh(`${d.trim()}${")".repeat(h)}`);S.startsWith("color(")?(S=S.slice(6,-1),g=oo(S).color):(S!==","&&(u.push(S),s.push(S)),m+=S)}i.set(e,{values:u,mods:o,all:s,value:`${m} ${g}`.trim(),color:g})}return i.get(e)}function oo(e,n=!1){if(e=e.trim(),!e)return{};if(e.startsWith("#")){e=e.slice(1);const d=e.split(".");let v=100;d.length>1&&(d[1].length===1?v=Number(d[1])*10:v=Number(d[1]),Number.isNaN(v)&&(v=100));const h=d[0];let m;return h==="current"?m="currentColor":v>100?v=100:v<0&&(v=0),m||(m=v!==100?kh(h,Math.round(v)/100):V2(h,null,Wl(`#${h}`))),{color:m,name:h,opacity:v??100}}let{values:i,mods:o,color:s}=ze(e),u,c;if(s)return{color:(s.startsWith("var(")?s:Wl(s))||s};if(i.forEach(d=>{d.match(/^((var|rgb|rgba|hsl|hsla)\(|#[0-9a-f]{3,6})/)?s=d.startsWith("var")?d:Wl(d):d.endsWith("%")&&(c=parseInt(d))}),s)return{color:s};if(u=u||o[0],!u)return{};if(!c){let d;return u==="current"?d="currentColor":u==="inherit"?d="inherit":u!=="transparent"&&u!=="currentColor"?d=`var(--${u}-color, ${u})`:d=u,{name:u,color:d}}return{color:kh(u,Math.round(c)/100),name:u,opacity:c}}function kh(e,n,i,o){return`rgba(var(--${e}-color-rgb), ${n})`}function V2(e,n,i){const o=i?`, ${i}`:"";return`var(--${e}-color${o})`}function Wl(e,n=!1){if(e)return e.startsWith("rgb")?e:e.startsWith("#")?z2(e):null}function Ih(e){return e.match(/\d+/g).map(n=>parseInt(n)).slice(0,3)}function z2(e){const n=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(i,o,s,u)=>"#"+o+o+s+s+u+u).substring(1).match(/.{2}/g).map((i,o)=>parseInt(i,16)*(o===3?.00392156862745098:1));return Number.isNaN(n[0])?"rgba(0, 0, 0, 1)":n.length===3?`rgb(${n.join(", ")})`:n.length===4?`rgba(${n.join(", ")})`:null}function U2(e,n,i){e.forEach(o=>{n.includes(o)&&(i.push(o),n.splice(n.indexOf(o),1))})}function Lh(e){return e.trim().replace(j2,(n,i)=>i)}function Ql(e,n){return e.filter(i=>n.includes(i))}function K2(e,n){const i=rv[n];return typeof i=="function"?i(e):e==="1"||e===1?i:`(${e} * ${i})`}function Ce(e,n=[],i,o,s=[]){const u={...i,...e.styles};return Object.keys(e).forEach(c=>{const d=o&&o[c]||c,v=e[c];s&&s.includes(c)||n.includes(d)&&(u[d]=v)},{}),u}function iv(e,n=""){if(!e)return"";if(Array.isArray(e))return e.reduce((c,d)=>c+iv(d,n),"");const{$:i,css:o,...s}=e;let u=Object.keys(s).reduce((c,d)=>{const v=s[d];return Array.isArray(v)?c+v.reduce((h,m)=>m?h+`${d}:${m};
|
|
9
|
+
`:h,""):v?`${c}${d}:${v};
|
|
10
|
+
`:c},"");return o&&(u=o+`
|
|
11
|
+
`+u),u?Array.isArray(i)?`${n?`${n}{
|
|
12
|
+
`:""}${i.reduce((c,d)=>c+`${d?`&${d}{
|
|
13
|
+
`:""}${u}${d?`}
|
|
14
|
+
`:""}`,"")}${n?`}
|
|
15
|
+
`:""}`:`${n?`${n}{
|
|
16
|
+
`:""}${i?`&${i}{
|
|
17
|
+
`:""}${u}${i?`}
|
|
18
|
+
`:""}${n?`}
|
|
19
|
+
`:""}`:""}function W2(e,n,i=""){return n.reduce((o,s)=>{if(!s.value)return o;const u=`${(s.mods||[]).map(Th).join("")}${(s.notMods||[]).map(c=>{let d=Th(c);return d.startsWith(":not(")?d.slice(5,-1):`:not(${d})`}).join("")}`;return`${o}${e}${u}${i}{
|
|
20
|
+
${s.value.replace(/^&&/,"&")}}
|
|
21
|
+
`},"")}function ov(e,n=1e3){const i=uo(s=>iv(e(s)),n),o=uo((s,u="")=>{if(s==null||s===!1)return null;const c=Z2(s);return G2(c,i),W2("&&",c,u)},n);return Object.assign(o,{__lookupStyles:e.__lookupStyles})}function G2(e,n){const i=new Map;return e.forEach(o=>{i.get(o.value)||i.set(o.value,n(o.value)),o.value=i.get(o.value)}),e}function Z2(e,n){const i=Object.keys(e);if(!i.length)return[];const o={};let s=new Set;i.forEach(d=>{o[d]=J2(e[d]),o[d].mods.forEach(s.add,s)});const u=Array.from(s),c=[];return _2(u,!0).forEach(d=>{c.push({mods:d,notMods:u.filter(v=>!d.includes(v)),value:i.reduce((v,h)=>(v[h]=o[h].states.find(m=>uc(m.model,g=>d.includes(g))).value,v),{})})}),c}const q2=/([&|!^])|([()])|([a-z][a-z0-9-]+)|(:[a-z][a-z0-9-]+\([:a-z0-9-]+\)|:[a-z][a-z0-9-]+)|(\.[a-z][a-z0-9-]+)|(\[[^\]]+])/gi,X2=["!","&","|","^"];function Tu(e){return e.length===1?e[0]:(X2.forEach(n=>{let i;for(;(i=e.indexOf(n))!==-1;){const o=e[i];o==="!"?e[i+1]&&e[i+1].length!==1?e.splice(i,2,["!",e[i+1]]):e.splice(i,1):e[i-1]&&e[i+1]&&e[i-1].length!==1&&e[i+1].length!==1?e.splice(i-1,3,[o,e[i-1],e[i+1]]):e.splice(i,1)}}),e.length===1?e[0]:e)}function Y2(e,n){const i=e.replace(/,/g,"|").match(q2);if(!i||!i.length)return{model:void 0,mods:[],notMods:[],tokens:[],value:n};if(i.length===1)return{model:i[0],mods:i.slice(0),notMods:[],tokens:i,value:n};const o=[];let s=[[]],u=s[0],c=0;for(i.forEach(d=>{switch(d){case"(":const v=[];c++,u=s[c]=v;break;case")":c--,s[c].push(Tu(u)),u=s[c];break;default:d.length>1&&(o.includes(d)||o.push(d)),u.push(d)}});c;)c--,s[c].push(Tu(u)),u=s[c];return{tokens:i,mods:o,notMods:[],model:Tu(s[0]),value:n}}const Q2=uo(Y2);function J2(e){if(typeof e!="object"||!e)return{states:[{model:void 0,mods:[],notMods:[],value:e}],mods:[]};const n=[];Object.keys(e).forEach(s=>{const u=Q2(s,e[s]);n.push(u)}),n.reverse();let i;const o=n.reduce((s,u)=>(u.mods.length?u.mods.forEach(c=>{s.includes(c)||s.push(c)}):i=u,s),[]);return i||n.push({mods:[],notMods:o,value:!0}),{states:n,mods:o}}const ex={"!":e=>!e,"^":(e,n)=>e^n,"|":(e,n)=>e|n,"&":(e,n)=>e&n};function uc(e,n){if(!e)return!0;if(!Array.isArray(e))return typeof n=="function"?!!n(e):!!n[e];const i=ex[e[0]];i||console.warn("CubeUIKit: unexpected compute method in the model",e);let o=e[1];if(typeof o=="object"?o=!!uc(o,n):typeof n=="function"?o=!!n(o):o=!!n[o],e.length===2)return i(o);let s=e[2];return typeof s=="object"?s=!!uc(s,n):typeof n=="function"?s=!!n(s):s=!!n[s],!!i(o,s)}function lv({display:e="block",flow:n,gap:i}){if(typeof i=="number"&&(i=`${i}px`),!i)return;i===!0&&(i="1.5x");const o=e.includes("grid"),s=e.includes("flex"),u=n?n.includes("wrap")&&!n.includes("nowrap"):!1;!o&&n==null&&(n=s?"row":"column");const{values:c}=ze(i);if(i=c.join(" "),o||s)return{gap:i};const d=n.includes("row")?"right":"bottom";return u?[{"margin-right":`calc(-1 * ${c[1]||c[0]})`,"margin-bottom":`calc(-1 * ${c[0]})`},{$:"& > *","margin-right":c[1]||c[0],"margin-bottom":c[0]}]:{$:"& > *:not(:last-child)",[`margin-${d}`]:i}}lv.__lookupStyles=["display","flow","gap"];function sv({fill:e}){if(!e)return"";e.startsWith("#")&&(e=ze(e).color||e);const n=e.match(/var\(--(.+?)-color/);let i="";n&&(i=n[1]);const o=[{"background-color":e}];return i&&o.push([{$:">*","--context-fill-color":e,"--context-fill-color-rgb":`var(--${i}-color-rgb)`}]),o}sv.__lookupStyles=["fill"];function av({display:e="block",flow:n}){let i;return e.includes("grid")?i="grid-auto-flow":e.includes("flex")&&(i="flex-flow"),i?{[i]:n}:null}av.__lookupStyles=["display","flow"];const Rh={input:[{css:`
|
|
22
|
+
-webkit-appearance: none;
|
|
23
|
+
word-spacing: initial;
|
|
24
|
+
-webkit-text-fill-color: currentColor;
|
|
25
|
+
`},{$:"::-webkit-search-cancel-button",css:"display: none"},{$:[":-webkit-autofill",":-webkit-autofill:hover",":-webkit-autofill:focus"],css:`
|
|
26
|
+
caret-color: var(--purple-color);
|
|
27
|
+
-webkit-text-fill-color: var(--purple-color);
|
|
28
|
+
-webkit-box-shadow: 0 0 0px 9999rem var(--white-color) inset;
|
|
29
|
+
box-shadow: 0 0 0px 9999rem var(--white-color) inset;
|
|
30
|
+
font-family: inherit;
|
|
31
|
+
font-size: inherit;
|
|
32
|
+
line-height: inherit;
|
|
33
|
+
`},{$:"[disabled]",css:`
|
|
34
|
+
-webkit-opacity: 1;
|
|
35
|
+
`},{$:"::placeholder",css:`
|
|
36
|
+
-webkit-text-fill-color: var(--local-placeholder-color);
|
|
37
|
+
color: var(--local-placeholder-color);
|
|
38
|
+
filter: saturate(.33);
|
|
39
|
+
`},{$:"::-webkit-search-cancel-button",css:`
|
|
40
|
+
display: none;
|
|
41
|
+
-webkit-appearance: none;
|
|
42
|
+
`},{$:":not([disabled])::placeholder",css:`--local-placeholder-color: var(--placeholder-color, rgba(var(--dark-color-rgb), .3));
|
|
43
|
+
`}],button:[{css:`
|
|
44
|
+
appearance: none;
|
|
45
|
+
touch-action: manipulation;
|
|
46
|
+
-webkit-tap-highlight-color: transparent;
|
|
47
|
+
text-decoration: none;
|
|
48
|
+
`}]};function uv({reset:e}){if(!e)return;const{mods:n}=ze(e,1);return n.reduce((i,o)=>(Rh[o]&&i.push(...Rh[o]),i),[])}uv.__lookupStyles=["reset"];function cv({color:e}){if(!e)return"";e===!0&&(e="currentColor"),e.startsWith("#")&&(e=oo(e).color||e);const n=e.match(/var\(--(.+?)-color/);let i="";n&&(i=n[1]);const o=[{color:e}];return i&&o.push([{"--current-color":`var(--${i}-color, ${i})`,"--current-color-rgb":`var(--${i}-color-rgb)`}]),o}cv.__lookupStyles=["color"];const tx="var(--gap)",nx="100%";function Ml(e){return typeof CSS<"u"&&typeof CSS?.supports=="function"?CSS.supports("height",e):!1}const _h="stretch",Mh="fill-available",Fh="-webkit-fill-available",Ah="-moz-fill-available",rx=Ml(_h)?_h:Ml(Mh)?Mh:Ml(Fh)?Fh:Ml(Ah)?Ah:null,ix=["max-content","min-content","fit-content","stretch"];function dv(e){const n=`min-${e}`,i=`max-${e}`;return o=>{if(!o)return"";typeof o=="number"&&(o=`${o}px`),o=String(o);const s={[e]:"auto",[n]:"initial",[i]:"initial"},{mods:u,values:c}=ze(o);U2(ix,u,c),c.forEach((v,h)=>{v==="stretch"&&(c[h]=rx||(e==="height"?"100vh":"100vw"))});let d=!1;for(let v of u)switch(v){case"min":s[n]=c[0]||tx,d=!0;break;case"max":s[i]=c[0]||nx,d=!0;break}return(!d||!u.length)&&(c.length===2?(s[n]=c[0],s[i]=c[1]):c.length===3?(s[n]=c[0],s[e]=c[1],s[i]=c[2]):s[e]=c[0]||"auto"),s}}const ox=dv("width");function fv({width:e}){return ox(e)}fv.__lookupStyles=["width"];const lx=dv("height");function pv({height:e}){return lx(e)}pv.__lookupStyles=["height"];const Xn="var(--radius)",Fl="var(--leaf-sharp-radius)";function hv({radius:e}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1r");let{mods:n,values:i}=ze(e,1);if(n.includes("round")?i=["9999rem"]:n.includes("ellipse")?i=["50%"]:i.length||(i=[Xn]),n.includes("leaf"))i=[i[1]||Fl,i[0]||Xn,i[1]||Fl,i[0]||Xn];else if(n.includes("backleaf"))i=[i[0]||Xn,i[1]||Fl,i[0]||Xn,i[1]||Fl];else if(n.length){const o=["0","0","0","0"];let s=!1;dn.forEach((u,c)=>{n.includes(u)&&(s=!0,o[c]=i[0]||Xn,o[(c+1)%4]=i[0]||Xn)}),s&&(i=o)}return[{"--local-radius":i.join(" "),"border-radius":"var(--local-radius)"},{$:">*","--context-radius":i.join(" ")}]}hv.__lookupStyles=["radius"];const sx=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function vv({border:e}){if(!e&&e!==0)return;e===!0&&(e="1bw");const{values:n,mods:i,color:o}=ze(String(e)),s=Ql(i,dn),u=Ql(i,sx),c=n[0]||"var(--border-width)",d=u[0]||"solid",v=o||"var(--border-color)",h=[c,d,v].join(" ");if(!s.length)return{border:h};const m=[0,d,v].join(" ");return dn.reduce((g,y)=>(i.includes(y)?g[`border-${y}`]=h:g[`border-${y}`]=m,g),{})}vv.__lookupStyles=["border"];function ax(e){const{values:n,mods:i,color:o}=ze(e),s=i[0]||"",u=o||"var(--shadow-color)";return[s,...n,u].join(" ")}function mv({shadow:e}){return e?(e===!0&&(e="0 5px 15px #shadow"),{"--local-shadow-box-shadow":e.split(",").map(ax).join(",")}):""}mv.__lookupStyles=["shadow"];function gv({padding:e,paddingBlock:n,paddingInline:i,paddingTop:o,paddingRight:s,paddingBottom:u,paddingLeft:c}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:d,mods:v}=ze(e),h=Ql(v,dn);d.length||(d=["var(--gap)"]),h.length||(h=dn);const m=[o,s,u,c];return h.reduce((g,y)=>{const w=dn.indexOf(y);return(w%2&&i==null||!(w%2)&&n==null)&&m[w]==null&&(g[`padding-${y}`]=d[w]||d[w%2]||d[0]),g},{})}gv.__lookupStyles=["padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingInline"];function yv({paddingBlock:e,paddingTop:n,paddingBottom:i}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:o}=ze(e);o.length||(o=["var(--gap)"]);const s={};return n==null&&(s["padding-top"]=o[0]),i==null&&(s["padding-bottom"]=o[1]||o[0]),s}yv.__lookupStyles=["paddingBlock","paddingTop","paddingBottom"];function xv({paddingInline:e,paddingLeft:n,paddingRight:i}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:o}=ze(e);o.length||(o=["var(--gap)"]);const s={};return n==null&&(s["padding-left"]=o[0]),i==null&&(s["padding-right"]=o[1]||o[0]),s}xv.__lookupStyles=["paddingInline","paddingLeft","paddingRight"];function ln(e,n,i,o=!1){e[`--${n}`]=(()=>{if(i==="inherit")return"inherit";const s=`var(--default-${n}, ${n==="font-family"?"var(--font, NonexistentFontName)":"inherit"})`,u=n==="font-family"?", var(--font, sans-serif)":"";return i==="default"?`${s}${u}`:`var(--${i}-${n}, ${s})${u}`})(),o||(e[n]=e[`--${n}`])}function bv({preset:e,fontSize:n,lineHeight:i,textTransform:o,letterSpacing:s,fontWeight:u,fontStyle:c,font:d}){if(!e)return"";e===!0&&(e="");const{mods:v}=ze(e),h=v[0]||"default",m={};return n||ln(m,"font-size",h),i||ln(m,"line-height",h),s||ln(m,"letter-spacing",h),u||ln(m,"font-weight",h),c||ln(m,"font-style",h),o||ln(m,"text-transform",h),d||ln(m,"font-family",h),ln(m,"bold-font-weight",h,!0),ln(m,"icon-size",h,!0),m}bv.__lookupStyles=["preset","fontSize","lineHeight","letterSpacing","textTransform","fontWeight","fontStyle","font"];function wv({fontStyle:e}){return e===!0&&(e="italic"),e!=="inherit"&&(e=e?"italic":"normal"),{"font-style":e}}wv.__lookupStyles=["fontStyle"];function Sv({margin:e,marginBlock:n,marginInline:i,marginTop:o,marginRight:s,marginBottom:u,marginLeft:c}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:d,mods:v}=ze(e),h=Ql(v,dn);d.length||(d=["var(--gap)"]),h.length||(h=dn);const m=[o,s,u,c];return h.reduce((g,y)=>{const w=dn.indexOf(y);return(w%2&&i==null||!(w%2)&&n==null)&&m[w]==null&&(g[`margin-${y}`]=d[w]||d[w%2]||d[0]),g},{})}Sv.__lookupStyles=["margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginInline"];function Ev({marginBlock:e,marginTop:n,marginBottom:i}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:o}=ze(e);o.length||(o=["var(--gap)"]);const s={};return n==null&&(s["margin-top"]=o[0]),i==null&&(s["margin-bottom"]=o[1]||o[0]),s}Ev.__lookupStyles=["marginBlock","marginTop","marginBottom"];function $v({marginInline:e,marginLeft:n,marginRight:i}){if(typeof e=="number"&&(e=`${e}px`),!e)return"";e===!0&&(e="1x");let{values:o}=ze(e);o.length||(o=["var(--gap)"]);const s={};return n==null&&(s["margin-left"]=o[0]),i==null&&(s["margin-right"]=o[1]||o[0]),s}$v.__lookupStyles=["marginInline","marginLeft","marginRight"];function Pv({font:e}){if(e==null||e===!1)return null;const n=e==="monospace"?"var(--monospace-font)":e===!0?"var(--font)":`${e}, var(--font)`;return{"font-family":n,"--font-family":n}}Pv.__lookupStyles=["font"];function Cv({outline:e}){if(!e&&e!==0)return"";e===!0&&(e="1ow");const{values:n,color:i,mods:o}=ze(String(e)),s=o.includes("inset"),u=n[0]||"var(--outline-width)";return{"--local-outline-box-shadow":`${s?"inset ":""}0 0 0 ${u} ${i||"var(--outline-color)"}`}}Cv.__lookupStyles=["outline"];const ux={move:["transform"],rotate:["transform"],scale:["transform"],placeSelf:["transform","top","right","bottom","left"],fill:["background-color"],border:["border","box-shadow"],filter:["filter","backdrop-filter"],radius:["border-radius"],shadow:["box-shadow"],outline:["box-shadow"],preset:["font-size","line-height","letter-spacing","font-weight","font-style"],text:["font-weight","text-decoration-color"],theme:["color","background-color","box-shadow","border","border-radius"],inset:["box-shadow"],mark:["box-shadow"],width:["max-width","min-width","width"],height:["max-height","min-height","height"],gap:["gap","margin"],zIndex:["z-index"],image:["background-image","background-position","background-size"]},cx="linear";function dx(e){return`var(--${e}-transition, var(--transition))`}function Tv({transition:e}){if(!e)return;const n=ze(e).all;if(!n)return;let i=[];const o=[];n.forEach(c=>{c===","?i&&(o.push(i),i=[]):i.push(c)}),i&&o.push(i);const s={};return o.forEach(c=>{const d=c[0],v=c[1],h=c[2],m=c[3];(ux[d]||[d]).forEach(y=>{s[y]=[d,h,v,m]})}),{transition:Object.entries(s).map(([c,[d,v,h,m]])=>`${c} ${h||dx(d)} ${v||cx} ${m||"0s"}`).join(", ")}}Tv.__lookupStyles=["transition"];const Nh={row:["* 0 0 *","0 * * 0"],column:["* * 0 0","0 0 * *"]};function kv({groupRadius:e,flow:n}){if(!e)return"";e===!0&&(e="1r");const{values:i,mods:o}=ze(e);n=n||"row";const s=o.includes("reverse");let u=i[0];u||(o.includes("round")?u="9999rem":o.includes("ellipse")?u="50%":u="var(--radius)");const c=Nh[n][s?1:0].replace(/\*/g,u),d=Nh[n][s?0:1].replace(/\*/g,u);return[{$:">:first-child:not(:last-child)","border-radius":c,"--local-radius":c},{$:">:last-child:not(:first-child)","border-radius":d,"--local-radius":d},{$:">:last-child:first-child","border-radius":u,"--local-radius":u},{$:">:not(:last-child):not(:first-child)","border-radius":"0","--local-radius":"0"}]}kv.__lookupStyles=["groupRadius","flow"];function Uc(e){const n=Uc.__lookupStyles.reduce((i,o)=>(e[o]&&i.push(`var(--local-${o}-box-shadow)`),i),[]);return n.length?{"box-shadow":n.join(", ")}:""}Uc.__lookupStyles=["outline","shadow"];function Iv({styledScrollbar:e}){return e==null?null:e?[{$:"::-webkit-scrollbar",width:"var(--scrollbar-width)",height:"var(--scrollbar-width)"},{$:"::-webkit-scrollbar-track","background-color":"var(--scrollbar-bg-color)"},{$:"::-webkit-scrollbar-thumb","background-color":"var(--scrollbar-thumb-color)","border-radius":"var(--scrollbar-radius)",border:"var(--scrollbar-outline-width) solid var(--scrollbar-outline-color)","background-clip":"padding-box"},{$:"::-webkit-scrollbar-corner","background-color":"var(--scrollbar-corner-color)"},{"scrollbar-width":"thin","scrollbar-color":"var(--scrollbar-bg-color) var(--scrollbar-thumb-color)"}]:[{$:"::-webkit-scrollbar",display:"none"},{"scrollbar-width":"none"}]}Iv.__lookupStyles=["styledScrollbar"];function Lv({display:e,hide:n}){return{display:n?"none":e}}Lv.__lookupStyles=["display","hide"];function Rv({align:e}){if(typeof e=="string"&&e)return{"align-items":e,"align-content":e}}Rv.__lookupStyles=["align"];function _v({justify:e}){if(typeof e=="string"&&e)return{"justify-items":e,"justify-content":e}}_v.__lookupStyles=["justify"];function fx(e){return e.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}const ku={};function Mv(e,n,i){const o=`${e}.${n??""}`;if(!ku[o]){const s=u=>{let c=u[e];if(c==null||c===!1)return;const d=n||fx(e).replace(/^@/,"--");if(i&&typeof c!="string"&&(c=i(c),!c))return;if(typeof c=="string"&&d.startsWith("--")&&d.endsWith("-color")){c=c.trim();const h=Wl(c),{color:m,name:g}=oo(c);return g&&h?{[d]:`var(--${g}-color, ${h})`,[`${d}-rgb`]:`var(--${g}-color-rgb, ${Ih(h).join(", ")})`}:g?m?{[d]:m,[`${d}-rgb`]:`var(--${g}-color-rgb)`}:{[d]:`var(--${g}-color)`,[`${d}-rgb`]:`var(--${g}-color-rgb)`}:h?{[d]:h,[`${d}-rgb`]:Ih(h).join(", ")}:{[d]:m}}const{value:v}=ze(c,1);return{[d]:v}};s.__lookupStyles=[e],ku[o]=ov(s)}return ku[o]}const Al=e=>typeof e=="number"?`${e}px`:e,Dh=e=>{if(typeof e=="number")return"minmax(1px, 1fr) ".repeat(e).trim()},Oh=e=>{if(typeof e=="number")return"auto ".repeat(e).trim()},ir={};function Bh(e,n){let i;if(typeof e=="function")i=e,e=i.__lookupStyles;else if(n)i=Object.assign(n,{__lookupStyles:e});else{console.warn("CubeUIKit: incorrect custom style definition: ",e);return}i=ov(i),Array.isArray(e)&&e.forEach(o=>{ir[o]||(ir[o]=[]),ir[o].push(i)})}function Le(e,n,i){const o=Mv(e,n,i);ir[e]||(ir[e]=[]),ir[e].push(o)}function px(){return Le("fontSize"),Le("lineHeight"),Le("fontWeight"),Le("fontStyle"),Le("letterSpacing"),Le("textTransform"),Le("fontFamily"),Le("paddingTop"),Le("paddingRight"),Le("paddingBottom"),Le("paddingLeft"),Le("marginTop"),Le("marginRight"),Le("marginBottom"),Le("marginLeft"),Le("top","top",Al),Le("right","right",Al),Le("bottom","bottom",Al),Le("left","left",Al),Le("gridAreas","grid-template-areas"),Le("gridColumns","grid-template-columns",Dh),Le("gridRows","grid-template-rows",Oh),Le("gridTemplate","grid-template",e=>{if(typeof e=="string")return e.split("/").map((n,i)=>(i?Dh:Oh)(n)).join("/")}),[Lv,Tv,uv,sv,fv,Sv,Ev,$v,lv,av,cv,pv,hv,vv,mv,gv,yv,xv,Rv,_v,bv,Uc,Cv,Pv,wv,kv,Iv].forEach(e=>Bh(e)),{STYLE_HANDLER_MAP:ir,defineCustomStyle:Bh,defineStyleAlias:Le}}const{STYLE_HANDLER_MAP:Hh}=px();function hx(e,n){return n.filter(i=>i.mediaQuery).map((i,o)=>`@media ${i.mediaQuery} {${e[o]}}`).join(`
|
|
49
|
+
`)}const Iu={};function Lu(e){const n=e.join("|");if(!Iu[n]){const i=[];e.forEach((o,s)=>{const u={};s&&(u.max=e[s-1]-1),u.min=o,i.push(u)}),i.push({max:e[e.length-1]-1}),i.forEach(o=>{const s=[];o.min&&s.push(`(min-width: ${o.min}px)`),o.max&&s.push(`(max-width: ${o.max}px)`),o.mediaQuery=s.join(" and ")}),Iu[n]=i}return Iu[n]}function vx(e,n){if(e==null)return e;const i=Array.from(Array(n));if(typeof e=="string")return i.map(()=>e);if(Array.isArray(e)){let o=null;for(let s=0;s<i.length;s++)i[s]=e[s]==null?o:e[s],o=i[s];return i}return[]}function cc(e){return e.startsWith("&")||e.startsWith(".")||e.match(/^[A-Z]/)}function mx(e){return e.startsWith("&")?e.slice(1):e.startsWith(".")?` ${e}`:e.match(/^[A-Z]/)?` [data-element="${e}"]`:null}let Nl={},Ru=0;const gx=1e3;function Gl(e,n=[],i){const o=n,s=Array.from(Array(o.length)).map(()=>""),u=JSON.stringify({s:e,r:n,suffix:i});let c="";const d=[];if(!Nl[u]){Ru++,Ru>gx&&(Ru=0,Nl={});const v=e?Object.keys(e):[],h=v.filter(g=>cc(g));let m="";h.length&&h.forEach(g=>{const y=mx(g);m+=Gl(e?.[g],n,y)}),v.forEach(g=>{if(cc(g))return;let y=Hh[g];y||(y=Hh[g]=[Mv(g)]),y.forEach(w=>{if(d.find(A=>A.handler===w))return;let E=!1;const P=w.__lookupStyles.reduce((A,I)=>(A[I]=e?.[I],Array.isArray(A[I])&&(A[I].length===0?delete A[I]:(A[I].length===1&&(A[I]=A[I][0]),E=!0)),A),{});d.push({handler:w,styleMap:P,isResponsive:E})})}),d.forEach(({handler:g,styleMap:y,isResponsive:w})=>{const E=g.__lookupStyles;if(w){const S=E.reduce((I,R)=>(I[R]=vx(y[R],o.length),I),{});o.map((I,R)=>{const B={};return E.forEach(_=>{S!=null&&S[_]!=null&&(B[_]=S[_][R])}),B}).map(I=>g(I,i)).forEach((I,R)=>{s[R]+=I||""})}else c+=g(y,i)||""}),Nl[u]=`&${i||""}{outline: none;
|
|
50
|
+
&[hidden]{display: none !important;}}${c}${n&&n.length&&s.filter(g=>g).length?hx(s,o):""}${m}`}return Nl[u]}const Fn=["display","font","preset","hide","opacity","whiteSpace"],Fv=["gridArea","order","gridColumn","gridRow","placeSelf","alignSelf","justifySelf","zIndex","margin"],mo=["reset","padding","paddingInline","paddingBlock","shadow","border","radius","opacity","overflow","styledScrollbar","hide","outline","textAlign"],vs=["color","fill"],Gt=["textTransform","fontWeight","fontStyle"],Kc=["width","height","flexBasis","flexGrow","flexShrink","flex"],yx=["flow","placeItems","placeContent","alignItems","alignContent","justifyItems","justifyContent","align","justify","gap","columnGap","rowGap","gridColumns","gridRows","gridTemplate","gridAreas"],Ge=[...Fn,...vs,...Kc,...Fv,...mo,...yx],go=[...Fv,...Kc];function Zl(...e){let n=e[0]?{...e[0]}:{},i=1;for(;i in e;){const o=Object.keys(n).filter(u=>cc(u)&&n[u]),s=e[i];if(s){const u={...n,...s};for(let c of o)s?.[c]&&(u[c]={...n[c],...s[c]});n=u}i++}return n}const xx="Anonymous";function bx(e,n=xx){return typeof e=="function"?e.displayName??e.name??n:n}function se(e,n){if(typeof e=="string"){let m=e,g=n,y=ev`${({$css:E})=>E}`;const w=({breakpoints:E})=>{let S=b.useContext(ac);E=E??S;const P=E.join(",");let A=b.useMemo(()=>g?`
|
|
51
|
+
{}${m}{${Gl(g,Lu(E||[980]))}}`:"",[P]);return $.jsx(y,{$css:A})};return w.displayName=`TastyStyleDeclaration(${e})`,w}if(zc.isValidElementType(e)){let{as:m,element:g,...y}=n??{},w=["styles"].concat(Object.keys(y).filter(S=>S.endsWith("Styles"))),E=b.forwardRef((S,P)=>{const{as:A,element:I,...R}=S,B=w.map(V=>S[V]),_=b.useMemo(()=>w.reduce((V,W)=>(R[W]!=null&&y[W]!=null?V[W]=Zl(y[W],R[W]):V[W]=R[W]||y[W],V),{}),[B]);return $.jsx(e,{ref:P,...y,...R,..._,as:A??m,element:I||g})});return E.displayName=`TastyWrappedComponent(${bx(e,y.qa??m??"Anonymous")})`,E}const i=e;let{as:o="div",element:s,styles:u,styleProps:c,variants:d,...v}=i,h;if(d){const m=Object.keys(d).reduce((g,y)=>{const w=d?.[y];return g[y]=se({as:o,styles:Zl(u,w),styleProps:c,...v}),g},{});m.default||(m.default=se({as:o,styles:u,styleProps:c,...v})),h=b.forwardRef((g,y)=>{const{variant:w,...E}=g,S=m[w]||m.default;return $.jsx(S,{ref:y,...E})})}else{let m=vo[o](({$css:S})=>S);const g=uo(S=>Gl(u||{},Lu(S)));let{qa:y,qaVal:w,...E}=v??{};h=b.forwardRef((S,P)=>{let{as:A,styles:I,variant:R,breakpoints:B,mods:_,element:V,qa:W,qaVal:T,...U}=S,O=(c?c.concat(Fn):Fn).reduce((X,ee)=>(ee in U&&(X[ee]=U[ee],delete U[ee]),X),{});Object.keys(O).length===0&&(O=null),(!I||I&&Object.keys(I).length===0)&&(I=void 0);const H=JSON.stringify(O),ne=b.useMemo(()=>JSON.stringify(I),[I]),D=!O&&!I,j=b.useMemo(()=>`${I?JSON.stringify(I):""}.${O?JSON.stringify(O):""}`,[H,ne]);let ue=b.useMemo(()=>D?u:Zl(u,I,O),[j]),xe=b.useContext(ac);B=B??xe;let Y=b.useMemo(()=>D?g(B):Gl(ue,Lu(B)),[ue,B]);return _&&Object.assign(U,L2(_)),$.jsx(m,{as:A??o,"data-element":V||s,"data-qa":W||y,"data-qaval":T||w,...E,...U,ref:P,$css:Y})})}return h.displayName=`TastyComponent(${v.qa||o})`,h}const Av=se({});const wx=new Set(["id"]),Sx=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Ex=new Set(["role","as","element","css","qa","mods","qaVal","hidden","isHidden","disabled","isDisabled","children","style","className","href","target","tabIndex"]),$x=new Set(["onPress","onHoverStart","onHoverEnd","onPressStart","onPressEnd"]),Px=/^((data-).*)$/,Cx=/^on[A-Z].+$/;function He(e,n={}){let{labelable:i,propNames:o,eventProps:s}=n,u={};for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(wx.has(c)||Ex.has(c)||i&&Sx.has(c)||s&&Cx.test(c)&&!$x.has(c)||o?.has(c)||Px.test(c))&&(u[c]=e[c]);return u}const Ee={valTypes:{none:"NONE",primitive:"PRIM",object:"OBJECT",array:"ARRAY"},getValType:function(e){if(!e||typeof e!="object"||Array.isArray(e))return Ee.valTypes.primitive;if(typeof e=="object")return Ee.valTypes.object},getPathType:function(e){let n=[];for(let i in e){let o=e[i];o?Ee.isNumber(o)?n.push(Ee.valTypes.array):n.push(Ee.valTypes.object):n.push(Ee.valTypes.none)}return n},isUndefined:function(e){return typeof e>"u"},isNumber:function(e){return!isNaN(parseInt(e))},isEmptyObj:function(e){for(let n in e)if(Object.hasOwnProperty.call(e,n))return!1;return JSON.stringify(e)===JSON.stringify({})},isPlainObject:function(e){return typeof e!="object"||e===null?!1:Object.getPrototypeOf(e)===Object.prototype},isNotObject:function(e){return!e||!this.isPlainObject(e)},isEmptyArray:function(e){return Array.isArray(e)&&e.length==0},isNotArray:function(e){return Array.isArray(e)==!1},removeEmptyArrayItem:function(e){return e.filter(function(n){return n!=null&&n!=""})},getFieldName:function(e,n,i,o,s){return s?(n||"")+(Ee.isNumber(e)?"["+e+"]":(i&&!n?"":".")+e):o?(n||"")+"["+e+"]":(n?n+".":"")+e},startsWith:function(e,n){return e.indexOf(n)==0},convert:function(e,n=""){let i={};return Ee.isNotObject(e)?n?(i[n]=e,i):e:(function o(s,u,c){let d=Array.isArray(s);for(let v in s){let h=s[v];h&&typeof h=="object"&&!Array.isArray(h)&&Ee.isPlainObject(h)?d&&Ee.isEmptyObj(h)==!1?i=o(h,Ee.getFieldName(v,u,c,!0)):Ee.isEmptyObj(h)==!1?i=o(h,Ee.getFieldName(v,u,c)):Ee.isEmptyObj(h)&&(i[Ee.getFieldName(v,u,c,d)]=h):d||Ee.isNumber(v)?i[Ee.getFieldName(v,u,c,!0)]=h:i[Ee.getFieldName(v,u,c)]=h}return i})(e,n,!0)},backward:function(e,n){let i={},o=/\[(\d+)\]/g;if(Ee.isNotObject(e)&&Ee.isNotArray(e))return n?e[n]:e;for(let c in e){let d=e[c];if(n){let v=new RegExp("^"+n);c=c.replace(v,"")}c=c.replace(o,".$1"),Ee.startsWith(c,".")&&(c=c.replace(/^\./,""));var s=c.split("."),u=Ee.getPathType(s);!Ee.isUndefined(u)&&u[0]==Ee.valTypes.array&&Array.isArray(i)==!1&&(i=[]),(function v(h,m,g,y){let w=s.shift(),E=u.shift();if(typeof w>"u"||w==""){i=h;return}let S=E==Ee.valTypes.array;if(Ee.isNumber(w)&&(w=parseInt(w)),s.length>0){typeof m[w]>"u"&&(S?m[w]=[]:m[w]={}),v(h,m[w],w,m);return}E==Ee.valTypes.array&&g&&y?(Array.isArray(y[g])==!1&&(y[g]=[]),y[g].push(h)):m[w]=h})(d,i)}return i}};function ql(...e){return(...n)=>{for(let i of e)typeof i=="function"&&i(...n)}}function Nv(e){var n,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(i=Nv(e[n]))&&(o&&(o+=" "),o+=i);else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Tx(){for(var e,n,i=0,o="";i<arguments.length;)(e=arguments[i++])&&(n=Nv(e))&&(o&&(o+=" "),o+=n);return o}const Wc={prefix:String(Math.round(Math.random()*1e10)),current:0},Dv=ce.createContext(Wc),kx=ce.createContext(!1);let Ix=!!(typeof window<"u"&&window.document&&window.document.createElement),_u=new WeakMap;function Lx(e=!1){let n=b.useContext(Dv),i=b.useRef(null);if(i.current===null&&!e){var o,s;let u=(s=ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(o=s.ReactCurrentOwner)===null||o===void 0?void 0:o.current;if(u){let c=_u.get(u);c==null?_u.set(u,{id:n.current,state:u.memoizedState}):u.memoizedState!==c.state&&(n.current=c.id,_u.delete(u))}i.current=++n.current}return i.current}function Rx(e){let n=b.useContext(Dv);n===Wc&&!Ix&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let i=Lx(!!e),o=`react-aria${n.prefix}`;return e||`${o}-${i}`}function _x(e){let n=ce.useId(),[i]=b.useState(Bv()),o=i?"react-aria":`react-aria${Wc.prefix}`;return e||`${o}-${n}`}const Ov=typeof ce.useId=="function"?_x:Rx;function Mx(){return!1}function Fx(){return!0}function Ax(e){return()=>{}}function Bv(){return typeof ce.useSyncExternalStore=="function"?ce.useSyncExternalStore(Ax,Mx,Fx):b.useContext(kx)}const Hv=typeof window<"u"?b.useLayoutEffect:b.useEffect;let dc=new Map;function jh(e){let n=b.useRef(!0);n.current=!0;let[i,o]=b.useState(e),s=b.useRef(null),u=d=>{n.current?s.current=d:o(d)};Hv(()=>{n.current=!1}),b.useEffect(()=>{let d=s.current;d&&(o(d),s.current=null)},[o,u]);let c=Ov(i);return dc.set(c,u),c}function Nx(e,n){if(e===n)return e;let i=dc.get(e);if(i)return i(n),n;let o=dc.get(n);return o?(o(e),e):n}function Xe(...e){let n={};for(let i of e){for(let o in n)/^on[A-Z]/.test(o)&&typeof n[o]=="function"&&i&&typeof i[o]=="function"?n[o]=ql(n[o],i[o]):o==="className"&&typeof n.className=="string"&&i&&typeof i.className=="string"?n[o]=Tx(n.className,i.className):(o==="styles"||o.endsWith("Styles"))&&typeof n.styles=="object"&&i&&typeof i.styles=="object"?n[o]=Zl(n[o],i[o]):o==="mods"&&n.mods&&i?.mods?n.mods={...n.mods,...i?.mods}:o==="id"&&n.id&&i?.id?n.id=Nx(n.id,i?.id):n[o]=i&&i[o]!==void 0?i[o]:n[o];for(let o in i)n[o]===void 0&&(n[o]=i[o])}return n}const ms={};let Jl=b.createContext(ms);function fr(e,n){let i=e.slot||n,s=(b.useContext(Jl)??ms)[i];return Xe(s,e)}function Dx(e){let n=b.useContext(Jl)??ms,{slots:i={},children:o}=e,s=b.useMemo(()=>Object.keys(n).concat(Object.keys(i)).reduce((u,c)=>({...u,[c]:Xe(n[c]??{},i[c]??{})}),{}),[n,i]);return $.jsx(Jl.Provider,{value:s,children:o})}function Ox(e){const{children:n,...i}=e;let o=n;return b.Children.toArray(n).length<=1&&typeof n=="function"&&(o=b.cloneElement(b.Children.only(n),i)),$.jsx(Jl.Provider,{value:ms,children:o})}function Bx(...e){const n=b.useRef();return b.useEffect(()=>{e.forEach(i=>{i&&(typeof i=="function"?i(n.current):i.current=n.current)})},[e]),n}function Hx(e,n){const i=e&&(Array.isArray(e)||zc.isFragment(e));return!e||!i&&b.isValidElement(e)?e:n()}let Mn=typeof window<"u"&&window.visualViewport;function jx(e={}){const{isDisabled:n}=e;let[i,o]=b.useState(()=>Vh());return b.useEffect(()=>{if(n)return;let s=()=>{o(u=>{let c=Vh();return c.width===u.width&&c.height===u.height?u:c})};return Mn?Mn.addEventListener("resize",s):window.addEventListener("resize",s),()=>{Mn?Mn.removeEventListener("resize",s):window.removeEventListener("resize",s)}},[n]),i}function Vh(){return{width:Mn&&Mn.width||(typeof window<"u"?window.innerWidth:0),height:Mn&&Mn.height||(typeof window<"u"?window.innerHeight:0)}}const Vx=[...Fn,...Gt,...vs],jv={transform:"textTransform",weight:"fontWeight",italic:"fontStyle"},zx=se({qa:"Text",as:"span",styles:{display:{"":"inline","ellipsis | block":"block"},margin:"0",whiteSpace:{"":"inherit","nowrap | ellipsis":"nowrap"},textOverflow:{"":!1,ellipsis:"ellipsis"},overflow:{"":!1,ellipsis:"hidden"},width:{"":!1,ellipsis:"max 100%"}}}),Yn=b.forwardRef(function(n,i){n=fr(n,"text");const{as:o,qa:s,block:u,styleName:c,ellipsis:d,nowrap:v,...h}=n,m=Ce(h,Vx,{},jv);return $.jsx(zx,{as:o||"span",qa:s||"Text",styleName:c,mods:{nowrap:v,ellipsis:!!d,block:!!u},...He(h,{eventProps:!0}),ref:i,styles:m})}),Gc=Object.assign(Yn,{Minor:b.forwardRef(function(n,i){return $.jsx(Yn,{ref:i,color:"#minor",...n})}),Danger:b.forwardRef(function(n,i){return $.jsx(Yn,{ref:i,role:"alert",color:"#danger-text",...n})}),Success:b.forwardRef(function(n,i){return $.jsx(Yn,{ref:i,color:"#success-text",...n})}),Strong:b.forwardRef(function(n,i){return $.jsx(Yn,{ref:i,as:"strong",preset:"strong",color:"#dark",...n})}),Emphasis:b.forwardRef(function(n,i){return $.jsx(Yn,{ref:i,as:"em",preset:"em",...n})}),Selection:b.forwardRef(function(n,i){return $.jsx(Yn,{ref:i,color:"#dark",fill:"#note.30",...n})})});const Ux=[...Gt,...Ge],Kx=se({qa:"Title",as:"h1",styles:{gridArea:"heading",display:"block",color:"#dark",preset:{"":"h6",'[data-level="1"]':"h1",'[data-level="2"]':"h2",'[data-level="3"]':"h3",'[data-level="4"]':"h4",'[data-level="5"]':"h5",'[data-level="6"]':"h6"},margin:"0",whiteSpace:{"":"inherit","nowrap | ellipsis":"nowrap"},textOverflow:{"":!1,ellipsis:"ellipsis"},overflow:{"":!1,ellipsis:"hidden"},width:{"":!1,ellipsis:"max 100%"}}}),Mu=b.forwardRef(function({qa:n,as:i,styleName:o,inline:s,nowrap:u,ellipsis:c,level:d,...v},h){const m=fr(v,"heading"),g=`h${d||1}`,y=Ce(m,Ux,{},jv);return $.jsx(Kx,{qa:n||"Title",as:i||g,styleName:o,"data-level":d||1,mods:{nowrap:u,ellipsis:c},inline:s,...He(m,{eventProps:!0}),ref:h,styles:y})}),Vv=Object.assign(Mu,{Danger:b.forwardRef(function(n,i){return $.jsx(Mu,{ref:i,color:"#danger-text",...n})}),Success:b.forwardRef(function(n,i){return $.jsx(Mu,{ref:i,color:"#success-text",...n})})});const Wx={preset:"p3",color:"#dark.75",display:"block"},Gx=[...Ge,...Gt],Zc=b.forwardRef(function(n,i){const o=Ce(n,Gx,Wx);return $.jsx(Gc,{as:"p",qa:"Paragraph",...n,ref:i,styles:o})});function Zx(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function qx(e,n,i){Zx(e,n),n.set(e,i)}function yo(e,n,i){let[o,s]=b.useState(e||n),u=b.useRef(e!==void 0),c=e!==void 0;b.useEffect(()=>{let h=u.current;h!==c&&console.warn(`WARN: A component changed from ${h?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}.`),u.current=c},[c]);let d=c?e:o,v=b.useCallback((h,...m)=>{let g=(y,...w)=>{i&&(Object.is(d,y)||i(y,...w)),c||(d=y)};typeof h=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s((w,...E)=>{let S=h(c?d:w,...E);return g(S,...m),c?w:S})):(c||s(h),g(h,...m))},[c,d,i]);return[d,v]}function fc(e,n=-1/0,i=1/0){return Math.min(Math.max(e,n),i)}const qc={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},zv={...qc,customError:!0,valid:!1},Wr={isInvalid:!1,validationDetails:qc,validationErrors:[]},Xx=b.createContext({}),pc="__formValidationState"+Date.now();function gs(e){if(e[pc]){let{realtimeValidation:n,displayValidation:i,updateValidation:o,resetValidation:s,commitValidation:u}=e[pc];return{realtimeValidation:n,displayValidation:i,updateValidation:o,resetValidation:s,commitValidation:u}}return Yx(e)}function Yx(e){let{isInvalid:n,validationState:i,name:o,value:s,builtinValidation:u,validate:c,validationBehavior:d="aria"}=e;i&&(n||(n=i==="invalid"));let v=n?{isInvalid:!0,validationErrors:[],validationDetails:zv}:null,h=b.useMemo(()=>zh(Qx(c,s)),[c,s]);u?.validationDetails.valid&&(u=null);let m=b.useContext(Xx),g=b.useMemo(()=>o?Array.isArray(o)?o.flatMap(O=>hc(m[O])):hc(m[o]):[],[m,o]),[y,w]=b.useState(m),[E,S]=b.useState(!1);m!==y&&(w(m),S(!1));let P=b.useMemo(()=>zh(E?[]:g),[E,g]),A=b.useRef(Wr),[I,R]=b.useState(Wr),B=b.useRef(Wr),_=()=>{if(!V)return;W(!1);let O=h||u||A.current;Fu(O,B.current)||(B.current=O,R(O))},[V,W]=b.useState(!1);return b.useEffect(_),{realtimeValidation:v||P||h||u||Wr,displayValidation:d==="native"?v||P||I:v||P||h||u||I,updateValidation(O){d==="aria"&&!Fu(I,O)?R(O):A.current=O},resetValidation(){let O=Wr;Fu(O,B.current)||(B.current=O,R(O)),d==="native"&&W(!1),S(!0)},commitValidation(){d==="native"&&W(!0),S(!0)}}}function hc(e){return e?Array.isArray(e)?e:[e]:[]}function Qx(e,n){if(typeof e=="function"){let i=e(n);if(i&&typeof i!="boolean")return hc(i)}return[]}function zh(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:zv}:null}function Fu(e,n){return e===n?!0:e&&n&&e.isInvalid===n.isInvalid&&e.validationErrors.length===n.validationErrors.length&&e.validationErrors.every((i,o)=>i===n.validationErrors[o])&&Object.entries(e.validationDetails).every(([i,o])=>n.validationDetails[i]===o)}function Jx(...e){let n=new Set,i=!1,o={...qc};for(let c of e){var s,u;for(let d of c.validationErrors)n.add(d);i||(i=c.isInvalid);for(let d in o)(s=o)[u=d]||(s[u]=c.validationDetails[d])}return o.valid=!i,{isInvalid:i,validationErrors:[...n],validationDetails:o}}function eb(e={}){let[n,i]=yo(e.value,e.defaultValue||[],e.onChange),o=!!e.isRequired&&n.length===0,s=b.useRef(new Map),u=gs({...e,value:n}),c=u.displayValidation.isInvalid;var d;return{...u,value:n,setValue(h){e.isReadOnly||e.isDisabled||i(h)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(h){return n.includes(h)},addValue(h){e.isReadOnly||e.isDisabled||n.includes(h)||i(n.concat(h))},removeValue(h){e.isReadOnly||e.isDisabled||n.includes(h)&&i(n.filter(m=>m!==h))},toggleValue(h){e.isReadOnly||e.isDisabled||(n.includes(h)?i(n.filter(m=>m!==h)):i(n.concat(h)))},setInvalid(h,m){let g=new Map(s.current);m.isInvalid?g.set(h,m):g.delete(h),s.current=g,u.updateValidation(Jx(...g.values()))},validationState:(d=e.validationState)!==null&&d!==void 0?d:c?"invalid":null,isInvalid:c,isRequired:o}}function Uv(e){return null}Uv.getCollectionNode=function*(n,i){let{childItems:o,title:s,children:u}=n,c=n.title||n.children,d=n.textValue||(typeof c=="string"?c:"")||n["aria-label"]||"";!d&&!i?.suppressTextValueWarning&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:n,rendered:c,textValue:d,"aria-label":n["aria-label"],hasChildNodes:tb(n),*childNodes(){if(o)for(let v of o)yield{type:"item",value:v};else if(s){let v=[];ce.Children.forEach(u,h=>{v.push({type:"item",element:h})}),yield*v}}}};function tb(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&ce.Children.count(e.children)>0)}let nb=Uv;class rb{build(n,i){return this.context=i,Uh(()=>this.iterateCollection(n))}*iterateCollection(n){let{children:i,items:o}=n;if(typeof i=="function"){if(!o)throw new Error("props.children was a function but props.items is missing");for(let s of n.items)yield*this.getFullNode({value:s},{renderer:i})}else{let s=[];ce.Children.forEach(i,c=>{s.push(c)});let u=0;for(let c of s){let d=this.getFullNode({element:c,index:u},{});for(let v of d)u++,yield v}}}getKey(n,i,o,s){if(n.key!=null)return n.key;if(i.type==="cell"&&i.key!=null)return`${s}${i.key}`;let u=i.value;if(u!=null){var c;let d=(c=u.key)!==null&&c!==void 0?c:u.id;if(d==null)throw new Error("No key found for item");return d}return s?`${s}.${i.index}`:`$.${i.index}`}getChildState(n,i){return{renderer:i.renderer||n.renderer}}*getFullNode(n,i,o,s){let u=n.element;if(!u&&n.value&&i&&i.renderer){let v=this.cache.get(n.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=n.index,v.parentKey=s?s.key:null,yield v;return}u=i.renderer(n.value)}if(ce.isValidElement(u)){let v=u.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let y=typeof u.type=="function"?u.type.name:u.type;throw new Error(`Unknown element <${y}> in collection.`)}let h=v.getCollectionNode(u.props,this.context),m=n.index,g=h.next();for(;!g.done&&g.value;){let y=g.value;n.index=m;let w=y.key;w||(w=y.element?null:this.getKey(u,n,i,o));let S=[...this.getFullNode({...y,key:w,index:m,wrapper:ib(n.wrapper,y.wrapper)},this.getChildState(i,y),o?`${o}${u.key}`:u.key,s)];for(let P of S){if(P.value=y.value||n.value,P.value&&this.cache.set(P.value,P),n.type&&P.type!==n.type)throw new Error(`Unsupported type <${Au(P.type)}> in <${Au(s.type)}>. Only <${Au(n.type)}> is supported.`);m++,yield P}g=h.next(S)}return}if(n.key==null)return;let c=this,d={type:n.type,props:n.props,key:n.key,parentKey:s?s.key:null,value:n.value,level:s?s.level+1:0,index:n.index,rendered:n.rendered,textValue:n.textValue,"aria-label":n["aria-label"],wrapper:n.wrapper,shouldInvalidate:n.shouldInvalidate,hasChildNodes:n.hasChildNodes,childNodes:Uh(function*(){if(!n.hasChildNodes)return;let v=0;for(let h of n.childNodes()){h.key!=null&&(h.key=`${d.key}${h.key}`),h.index=v;let m=c.getFullNode(h,c.getChildState(i,h),d.key,d);for(let g of m)v++,yield g}})};yield d}constructor(){this.cache=new WeakMap}}function Uh(e){let n=[],i=null;return{*[Symbol.iterator](){for(let o of n)yield o;i||(i=e());for(let o of i)n.push(o),yield o}}}function ib(e,n){if(e&&n)return i=>e(n(i));if(e)return e;if(n)return n}function Au(e){return e[0].toUpperCase()+e.slice(1)}function ob(e,n,i){let o=b.useMemo(()=>new rb,[]),{children:s,items:u,collection:c}=e;return b.useMemo(()=>{if(c)return c;let v=o.build({children:s,items:u},i);return n(v)},[o,s,u,c,i,n])}function lb(e,n){return typeof n.getChildren=="function"?n.getChildren(e.key):e.childNodes}function sb(e){return ab(e)}function ab(e,n){for(let i of e)return i}function Nu(e,n,i){if(n.parentKey===i.parentKey)return n.index-i.index;let o=[...Kh(e,n),n],s=[...Kh(e,i),i],u=o.slice(0,s.length).findIndex((c,d)=>c!==s[d]);return u!==-1?(n=o[u],i=s[u],n.index-i.index):o.findIndex(c=>c===i)>=0?1:(s.findIndex(c=>c===n)>=0,-1)}function Kh(e,n){let i=[];for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),i.unshift(n);return i}class Dt extends Set{constructor(n,i,o){super(n),n instanceof Dt?(this.anchorKey=i||n.anchorKey,this.currentKey=o||n.currentKey):(this.anchorKey=i,this.currentKey=o)}}function ub(e,n){if(e.size!==n.size)return!1;for(let i of e)if(!n.has(i))return!1;return!0}function cb(e){let{selectionMode:n="none",disallowEmptySelection:i,allowDuplicateSelectionEvents:o,selectionBehavior:s="toggle",disabledBehavior:u="all"}=e,c=b.useRef(!1),[,d]=b.useState(!1),v=b.useRef(null),h=b.useRef(null),[,m]=b.useState(null),g=b.useMemo(()=>Wh(e.selectedKeys),[e.selectedKeys]),y=b.useMemo(()=>Wh(e.defaultSelectedKeys,new Dt),[e.defaultSelectedKeys]),[w,E]=yo(g,y,e.onSelectionChange),S=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[P,A]=b.useState(s);s==="replace"&&P==="toggle"&&typeof w=="object"&&w.size===0&&A("replace");let I=b.useRef(s);return b.useEffect(()=>{s!==I.current&&(A(s),I.current=s)},[s]),{selectionMode:n,disallowEmptySelection:i,selectionBehavior:P,setSelectionBehavior:A,get isFocused(){return c.current},setFocused(R){c.current=R,d(R)},get focusedKey(){return v.current},get childFocusStrategy(){return h.current},setFocusedKey(R,B="first"){v.current=R,h.current=B,m(R)},selectedKeys:w,setSelectedKeys(R){(o||!ub(R,w))&&E(R)},disabledKeys:S,disabledBehavior:u}}function Wh(e,n){return e?e==="all"?"all":new Dt(e):n}class db{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(n){this.state.setSelectionBehavior(n)}get isFocused(){return this.state.isFocused}setFocused(n){this.state.setFocused(n)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(n,i){(n==null||this.collection.getItem(n))&&this.state.setFocusedKey(n,i)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(n){return this.state.selectionMode==="none"?!1:(n=this.getKey(n),this.state.selectedKeys==="all"?this.canSelectItem(n):this.state.selectedKeys.has(n))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let n=this.getSelectAllKeys(),i=this.state.selectedKeys;return this._isSelectAll=n.every(o=>i.has(o)),this._isSelectAll}get firstSelectedKey(){let n=null;for(let i of this.state.selectedKeys){let o=this.collection.getItem(i);(!n||o&&Nu(this.collection,o,n)<0)&&(n=o)}return n?.key}get lastSelectedKey(){let n=null;for(let i of this.state.selectedKeys){let o=this.collection.getItem(i);(!n||o&&Nu(this.collection,o,n)>0)&&(n=o)}return n?.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(n){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(n);return}n=this.getKey(n);let i;if(this.state.selectedKeys==="all")i=new Dt([n],n,n);else{let o=this.state.selectedKeys,s=o.anchorKey||n;i=new Dt(o,s,n);for(let u of this.getKeyRange(s,o.currentKey||n))i.delete(u);for(let u of this.getKeyRange(n,s))this.canSelectItem(u)&&i.add(u)}this.state.setSelectedKeys(i)}getKeyRange(n,i){let o=this.collection.getItem(n),s=this.collection.getItem(i);return o&&s?Nu(this.collection,o,s)<=0?this.getKeyRangeInternal(n,i):this.getKeyRangeInternal(i,n):[]}getKeyRangeInternal(n,i){let o=[],s=n;for(;s;){let u=this.collection.getItem(s);if((u&&u.type==="item"||u.type==="cell"&&this.allowsCellSelection)&&o.push(s),s===i)return o;s=this.collection.getKeyAfter(s)}return[]}getKey(n){let i=this.collection.getItem(n);if(!i||i.type==="cell"&&this.allowsCellSelection)return n;for(;i.type!=="item"&&i.parentKey!=null;)i=this.collection.getItem(i.parentKey);return!i||i.type!=="item"?null:i.key}toggleSelection(n){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(n)){this.replaceSelection(n);return}if(n=this.getKey(n),n==null)return;let i=new Dt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);i.has(n)?i.delete(n):this.canSelectItem(n)&&(i.add(n),i.anchorKey=n,i.currentKey=n),!(this.disallowEmptySelection&&i.size===0)&&this.state.setSelectedKeys(i)}replaceSelection(n){if(this.selectionMode==="none"||(n=this.getKey(n),n==null))return;let i=this.canSelectItem(n)?new Dt([n],n,n):new Dt;this.state.setSelectedKeys(i)}setSelectedKeys(n){if(this.selectionMode==="none")return;let i=new Dt;for(let o of n)if(o=this.getKey(o),o!=null&&(i.add(o),this.selectionMode==="single"))break;this.state.setSelectedKeys(i)}getSelectAllKeys(){let n=[],i=o=>{for(;o;){if(this.canSelectItem(o)){let s=this.collection.getItem(o);s.type==="item"&&n.push(o),s.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&i(sb(lb(s,this.collection)).key)}o=this.collection.getKeyAfter(o)}};return i(this.collection.getFirstKey()),n}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Dt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(n,i){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(n)&&!this.disallowEmptySelection?this.toggleSelection(n):this.replaceSelection(n):this.selectionBehavior==="toggle"||i&&(i.pointerType==="touch"||i.pointerType==="virtual")?this.toggleSelection(n):this.replaceSelection(n))}isSelectionEqual(n){if(n===this.state.selectedKeys)return!0;let i=this.selectedKeys;if(n.size!==i.size)return!1;for(let o of n)if(!i.has(o))return!1;for(let o of i)if(!n.has(o))return!1;return!0}canSelectItem(n){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(n))return!1;let i=this.collection.getItem(n);return!(!i||i.type==="cell"&&!this.allowsCellSelection)}isDisabled(n){return this.state.disabledKeys.has(n)&&this.state.disabledBehavior==="all"}isLink(n){var i,o;return!!(!((o=this.collection.getItem(n))===null||o===void 0||(i=o.props)===null||i===void 0)&&i.href)}constructor(n,i,o){this.collection=n,this.state=i;var s;this.allowsCellSelection=(s=o?.allowsCellSelection)!==null&&s!==void 0?s:!1,this._isSelectAll=null}}class Gh{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(n){let i=this.keyMap.get(n);return i?i.prevKey:null}getKeyAfter(n){let i=this.keyMap.get(n);return i?i.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(n){return this.keyMap.get(n)}at(n){const i=[...this.getKeys()];return this.getItem(i[n])}getChildren(n){let i=this.keyMap.get(n);return i?.childNodes||[]}constructor(n){this.keyMap=new Map,this.iterable=n;let i=u=>{if(this.keyMap.set(u.key,u),u.childNodes&&u.type==="section")for(let c of u.childNodes)i(c)};for(let u of n)i(u);let o,s=0;for(let[u,c]of this.keyMap)o?(o.nextKey=u,c.prevKey=o.key):(this.firstKey=u,c.prevKey=void 0),c.type==="item"&&(c.index=s++),o=c,o.nextKey=void 0;this.lastKey=o?.key}}function fb(e){let{filter:n}=e,i=cb(e),o=b.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=b.useCallback(h=>n?new Gh(n(h)):new Gh(h),[n]),u=b.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),c=ob(e,s,u),d=b.useMemo(()=>new db(c,i),[c,i]);const v=b.useRef(null);return b.useEffect(()=>{if(i.focusedKey!=null&&!c.getItem(i.focusedKey)){const h=v.current.getItem(i.focusedKey),m=[...v.current.getKeys()].map(S=>{const P=v.current.getItem(S);return P.type==="item"?P:null}).filter(S=>S!==null),g=[...c.getKeys()].map(S=>{const P=c.getItem(S);return P.type==="item"?P:null}).filter(S=>S!==null),y=m.length-g.length;let w=Math.min(y>1?Math.max(h.index-y+1,0):h.index,g.length-1),E;for(;w>=0;){if(!d.isDisabled(g[w].key)){E=g[w];break}w<g.length-1?w++:(w>h.index&&(w=h.index),w--)}i.setFocusedKey(E?E.key:null)}v.current=c},[c,d,i,i.focusedKey]),{collection:c,disabledKeys:o,selectionManager:d}}function pb(e){let[n,i]=yo(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const o=b.useCallback(()=>{i(!0)},[i]),s=b.useCallback(()=>{i(!1)},[i]),u=b.useCallback(()=>{i(!n)},[i,n]);return{isOpen:n,setOpen:i,open:o,close:s,toggle:u}}const hb=Symbol.for("react-aria.i18n.locale"),vb=Symbol.for("react-aria.i18n.strings");let zr;class ys{getStringForLocale(n,i){let s=this.getStringsForLocale(i)[n];if(!s)throw new Error(`Could not find intl message ${n} in ${i} locale`);return s}getStringsForLocale(n){let i=this.strings[n];return i||(i=mb(n,this.strings,this.defaultLocale),this.strings[n]=i),i}static getGlobalDictionaryForPackage(n){if(typeof window>"u")return null;let i=window[hb];if(zr===void 0){let s=window[vb];if(!s)return null;zr={};for(let u in s)zr[u]=new ys({[i]:s[u]},i)}let o=zr?.[n];if(!o)throw new Error(`Strings for package "${n}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return o}constructor(n,i="en-US"){this.strings={...n},this.defaultLocale=i}}function mb(e,n,i="en-US"){if(n[e])return n[e];let o=gb(e);if(n[o])return n[o];for(let s in n)if(s.startsWith(o+"-"))return n[s];return n[i]}function gb(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Zh=new Map,qh=new Map;class yb{format(n,i){let o=this.strings.getStringForLocale(n,this.locale);return typeof o=="function"?o(i,this):o}plural(n,i,o="cardinal"){let s=i["="+n];if(s)return typeof s=="function"?s():s;let u=this.locale+":"+o,c=Zh.get(u);c||(c=new Intl.PluralRules(this.locale,{type:o}),Zh.set(u,c));let d=c.select(n);return s=i[d]||i.other,typeof s=="function"?s():s}number(n){let i=qh.get(this.locale);return i||(i=new Intl.NumberFormat(this.locale),qh.set(this.locale,i)),i.format(n)}select(n,i){let o=n[i]||n.other;return typeof o=="function"?o():o}constructor(n,i){this.locale=n,this.strings=i}}let xb=Math.round(Math.random()*1e10),bb=0;function wb(e){let n=b.useMemo(()=>e.name||`radio-group-${xb}-${++bb}`,[e.name]);var i;let[o,s]=yo(e.value,(i=e.defaultValue)!==null&&i!==void 0?i:null,e.onChange),[u,c]=b.useState(null),d=gs({...e,value:o}),v=m=>{!e.isReadOnly&&!e.isDisabled&&(s(m),d.commitValidation())},h=d.displayValidation.isInvalid;return{...d,name:n,selectedValue:o,setSelectedValue:v,lastFocusedValue:u,setLastFocusedValue:c,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(h?"invalid":null),isInvalid:h}}function Kv(e={}){let{isReadOnly:n}=e,[i,o]=yo(e.isSelected,e.defaultSelected||!1,e.onChange);function s(c){n||o(c)}function u(){n||o(!i)}return{isSelected:i,setSelected:s,toggle:u}}const Sb=1500,Xh=500;let Qn={},Eb=0,Yi=!1,sn=null,Jn=null;function $b(e={}){let{delay:n=Sb,closeDelay:i=Xh}=e,{isOpen:o,open:s,close:u}=pb(e),c=b.useMemo(()=>`${++Eb}`,[]),d=b.useRef(),v=()=>{Qn[c]=g},h=()=>{for(let w in Qn)w!==c&&(Qn[w](!0),delete Qn[w])},m=()=>{clearTimeout(d.current),d.current=null,h(),v(),Yi=!0,s(),sn&&(clearTimeout(sn),sn=null),Jn&&(clearTimeout(Jn),Jn=null)},g=w=>{w||i<=0?(clearTimeout(d.current),d.current=null,u()):d.current||(d.current=setTimeout(()=>{d.current=null,u()},i)),sn&&(clearTimeout(sn),sn=null),Yi&&(Jn&&clearTimeout(Jn),Jn=setTimeout(()=>{delete Qn[c],Jn=null,Yi=!1},Math.max(Xh,i)))},y=()=>{h(),v(),!o&&!sn&&!Yi?sn=setTimeout(()=>{sn=null,Yi=!0,m()},n):o||m()};return b.useEffect(()=>()=>{clearTimeout(d.current),Qn[c]&&delete Qn[c]},[c]),{isOpen:o,open:w=>{!w&&n>0&&!d.current?y():m()},close:g}}const Pb=se({styles:{display:"block"}}),Cb=b.forwardRef(function(n,i){const o=Ce(n,Ge);return $.jsx(Pb,{...He(n,{eventProps:!0}),ref:i,styles:o})});function Wv(e){var n,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(i=Wv(e[n]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function Tb(){for(var e,n,i=0,o="",s=arguments.length;i<s;i++)(e=arguments[i])&&(n=Wv(e))&&(o&&(o+=" "),o+=n);return o}const bt=typeof document<"u"?ce.useLayoutEffect:()=>{};function it(e){const n=b.useRef(null);return bt(()=>{n.current=e},[e]),b.useCallback((...i)=>{const o=n.current;return o?.(...i)},[])}function kb(e){let[n,i]=b.useState(e),o=b.useRef(null),s=it(()=>{if(!o.current)return;let c=o.current.next();if(c.done){o.current=null;return}n===c.value?s():i(c.value)});bt(()=>{o.current&&s()});let u=it(c=>{o.current=c(n),s()});return[n,u]}let Ib=!!(typeof window<"u"&&window.document&&window.document.createElement),es=new Map;function ri(e){let[n,i]=b.useState(e),o=b.useRef(null),s=Ov(n),u=b.useCallback(c=>{o.current=c},[]);return Ib&&es.set(s,u),bt(()=>{let c=s;return()=>{es.delete(c)}},[s]),b.useEffect(()=>{let c=o.current;c&&(o.current=null,i(c))}),s}function Lb(e,n){if(e===n)return e;let i=es.get(e);if(i)return i(n),n;let o=es.get(n);return o?(o(e),e):n}function vc(e=[]){let n=ri(),[i,o]=kb(n),s=b.useCallback(()=>{o(function*(){yield n,yield document.getElementById(n)?n:void 0})},[n,o]);return bt(s,[n,s,...e]),i}function co(...e){return(...n)=>{for(let i of e)typeof i=="function"&&i(...n)}}const pt=e=>{var n;return(n=e?.ownerDocument)!==null&&n!==void 0?n:document},Ot=e=>e&&"window"in e&&e.window===e?e:pt(e).defaultView||window;function Ae(...e){let n={...e[0]};for(let i=1;i<e.length;i++){let o=e[i];for(let s in o){let u=n[s],c=o[s];typeof u=="function"&&typeof c=="function"&&s[0]==="o"&&s[1]==="n"&&s.charCodeAt(2)>=65&&s.charCodeAt(2)<=90?n[s]=co(u,c):(s==="className"||s==="UNSAFE_className")&&typeof u=="string"&&typeof c=="string"?n[s]=Tb(u,c):s==="id"&&u&&c?n.id=Lb(u,c):n[s]=c!==void 0?c:u}}return n}const Rb=new Set(["id"]),_b=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Mb=new Set(["href","target","rel","download","ping","referrerPolicy"]),Fb=/^(data-.*)$/;function pr(e,n={}){let{labelable:i,isLink:o,propNames:s}=n,u={};for(const c in e)Object.prototype.hasOwnProperty.call(e,c)&&(Rb.has(c)||i&&_b.has(c)||o&&Mb.has(c)||s?.has(c)||Fb.test(c))&&(u[c]=e[c]);return u}function cn(e){if(Ab())e.focus({preventScroll:!0});else{let n=Nb(e);e.focus(),Db(n)}}let Dl=null;function Ab(){if(Dl==null){Dl=!1;try{document.createElement("div").focus({get preventScroll(){return Dl=!0,!0}})}catch{}}return Dl}function Nb(e){let n=e.parentNode,i=[],o=document.scrollingElement||document.documentElement;for(;n instanceof HTMLElement&&n!==o;)(n.offsetHeight<n.scrollHeight||n.offsetWidth<n.scrollWidth)&&i.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),n=n.parentNode;return o instanceof HTMLElement&&i.push({element:o,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft}),i}function Db(e){for(let{element:n,scrollTop:i,scrollLeft:o}of e)n.scrollTop=i,n.scrollLeft=o}function xs(e){var n;return typeof window>"u"||window.navigator==null?!1:((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.brands.some(i=>e.test(i.brand)))||e.test(window.navigator.userAgent)}function Xc(e){var n;return typeof window<"u"&&window.navigator!=null?e.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function lr(){return Xc(/^Mac/i)}function Ob(){return Xc(/^iPhone/i)}function Gv(){return Xc(/^iPad/i)||lr()&&navigator.maxTouchPoints>1}function bs(){return Ob()||Gv()}function Bb(){return lr()||bs()}function Zv(){return xs(/AppleWebKit/i)&&!Hb()}function Hb(){return xs(/Chrome/i)}function qv(){return xs(/Android/i)}function jb(){return xs(/Firefox/i)}const Vb=b.createContext({isNative:!0,open:Ub});function Xv(){return b.useContext(Vb)}function sr(e,n,i=!0){var o,s;let{metaKey:u,ctrlKey:c,altKey:d,shiftKey:v}=n;jb()&&(!((s=window.event)===null||s===void 0||(o=s.type)===null||o===void 0)&&o.startsWith("key"))&&e.target==="_blank"&&(lr()?u=!0:c=!0);let h=Zv()&&lr()&&!Gv()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:u,ctrlKey:c,altKey:d,shiftKey:v}):new MouseEvent("click",{metaKey:u,ctrlKey:c,altKey:d,shiftKey:v,bubbles:!0,cancelable:!0});sr.isOpening=i,cn(e),e.dispatchEvent(h),sr.isOpening=!1}sr.isOpening=!1;function zb(e,n){if(e instanceof HTMLAnchorElement)n(e);else if(e.hasAttribute("data-href")){let i=document.createElement("a");i.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(i.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(i.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(i.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(i.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(i.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(i),n(i),e.removeChild(i)}}function Ub(e,n){zb(e,i=>sr(i,n))}let Gr=new Map,mc=new Set;function Yh(){if(typeof window>"u")return;function e(o){return"propertyName"in o}let n=o=>{if(!e(o)||!o.target)return;let s=Gr.get(o.target);s||(s=new Set,Gr.set(o.target,s),o.target.addEventListener("transitioncancel",i,{once:!0})),s.add(o.propertyName)},i=o=>{if(!e(o)||!o.target)return;let s=Gr.get(o.target);if(s&&(s.delete(o.propertyName),s.size===0&&(o.target.removeEventListener("transitioncancel",i),Gr.delete(o.target)),Gr.size===0)){for(let u of mc)u();mc.clear()}};document.body.addEventListener("transitionrun",n),document.body.addEventListener("transitionend",i)}typeof document<"u"&&(document.readyState!=="loading"?Yh():document.addEventListener("DOMContentLoaded",Yh));function Yv(e){requestAnimationFrame(()=>{Gr.size===0?e():mc.add(e)})}function Qv(){let e=b.useRef(new Map),n=b.useCallback((s,u,c,d)=>{let v=d?.once?(...h)=>{e.current.delete(c),c(...h)}:c;e.current.set(c,{type:u,eventTarget:s,fn:v,options:d}),s.addEventListener(u,c,d)},[]),i=b.useCallback((s,u,c,d)=>{var v;let h=((v=e.current.get(c))===null||v===void 0?void 0:v.fn)||c;s.removeEventListener(u,h,d),e.current.delete(c)},[]),o=b.useCallback(()=>{e.current.forEach((s,u)=>{i(s.eventTarget,s.type,u,s.options)})},[i]);return b.useEffect(()=>o,[o]),{addGlobalListener:n,removeGlobalListener:i,removeAllGlobalListeners:o}}function Jv(e,n){let{id:i,"aria-label":o,"aria-labelledby":s}=e;return i=ri(i),s&&o?s=[...new Set([i,...s.trim().split(/\s+/)])].join(" "):s&&(s=s.trim().split(/\s+/).join(" ")),!o&&!s&&n&&(o=n),{id:i,"aria-label":o,"aria-labelledby":s}}function Kb(e){const n=b.useRef(null);return b.useMemo(()=>({get current(){return n.current},set current(i){n.current=i,typeof e=="function"?e(i):e&&(e.current=i)}}),[e])}function Wb(){return typeof window.ResizeObserver<"u"}function Gb(e){const{ref:n,onResize:i}=e;b.useEffect(()=>{let o=n?.current;if(o)if(Wb()){const s=new window.ResizeObserver(u=>{u.length&&i()});return s.observe(o),()=>{o&&s.unobserve(o)}}else return window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}},[i,n])}function em(e,n){bt(()=>{if(e&&e.ref&&n)return e.ref.current=n.current,()=>{e.ref&&(e.ref.current=null)}})}function ts(e,n){let i=e;for(ns(i,n)&&(i=i.parentElement);i&&!ns(i,n);)i=i.parentElement;return i||document.scrollingElement||document.documentElement}function ns(e,n){let i=window.getComputedStyle(e),o=/(auto|scroll)/.test(i.overflow+i.overflowX+i.overflowY);return o&&n&&(o=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),o}let Zb=0;const Du=new Map;function qb(e){let[n,i]=b.useState();return bt(()=>{if(!e)return;let o=Du.get(e);if(o)i(o.element.id);else{let s=`react-aria-description-${Zb++}`;i(s);let u=document.createElement("div");u.id=s,u.style.display="none",u.textContent=e,document.body.appendChild(u),o={refCount:0,element:u},Du.set(e,o)}return o.refCount++,()=>{o&&--o.refCount===0&&(o.element.remove(),Du.delete(e))}},[e]),{"aria-describedby":e?n:void 0}}function Xb(e,n,i,o){let s=it(i),u=i==null;b.useEffect(()=>{if(u||!e.current)return;let c=e.current;return c.addEventListener(n,s,o),()=>{c.removeEventListener(n,s,o)}},[e,n,o,u,s])}function tm(e,n){let i=Qh(e,n,"left"),o=Qh(e,n,"top"),s=n.offsetWidth,u=n.offsetHeight,c=e.scrollLeft,d=e.scrollTop,{borderTopWidth:v,borderLeftWidth:h}=getComputedStyle(e),m=e.scrollLeft+parseInt(h,10),g=e.scrollTop+parseInt(v,10),y=m+e.clientWidth,w=g+e.clientHeight;i<=c?c=i-parseInt(h,10):i+s>y&&(c+=i+s-y),o<=g?d=o-parseInt(v,10):o+u>w&&(d+=o+u-w),e.scrollLeft=c,e.scrollTop=d}function Qh(e,n,i){const o=i==="left"?"offsetLeft":"offsetTop";let s=0;for(;n.offsetParent&&(s+=n[o],n.offsetParent!==e);){if(n.offsetParent.contains(e)){s-=e[o];break}n=n.offsetParent}return s}function Jh(e,n){if(document.contains(e)){let c=document.scrollingElement||document.documentElement;if(window.getComputedStyle(c).overflow==="hidden"){let v=ts(e);for(;e&&v&&e!==c&&v!==c;)tm(v,e),e=v,v=ts(e)}else{var i;let{left:v,top:h}=e.getBoundingClientRect();e==null||(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"});let{left:m,top:g}=e.getBoundingClientRect();if(Math.abs(v-m)>1||Math.abs(h-g)>1){var o,s,u;n==null||(s=n.containingElement)===null||s===void 0||(o=s.scrollIntoView)===null||o===void 0||o.call(s,{block:"center",inline:"center"}),(u=e.scrollIntoView)===null||u===void 0||u.call(e,{block:"nearest"})}}}}function gc(e){return e.mozInputSource===0&&e.isTrusted?!0:qv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Yb(e){return!qv()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function nm(e,n,i){let o=b.useRef(n),s=it(()=>{i&&i(o.current)});b.useEffect(()=>{var u;let c=e==null||(u=e.current)===null||u===void 0?void 0:u.form;return c?.addEventListener("reset",s),()=>{c?.removeEventListener("reset",s)}},[e,s])}function Qb(e,n){return n.get?n.get.call(e):n.value}function rm(e,n,i){if(!n.has(e))throw new TypeError("attempted to "+i+" private field on non-instance");return n.get(e)}function Jb(e,n){var i=rm(e,n,"get");return Qb(e,i)}function ew(e,n,i){if(n.set)n.set.call(e,i);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=i}}function e0(e,n,i){var o=rm(e,n,"set");return ew(e,o,i),i}let Xr="default",yc="",Xl=new WeakMap;function t0(e){if(bs()){if(Xr==="default"){const n=pt(e);yc=n.documentElement.style.webkitUserSelect,n.documentElement.style.webkitUserSelect="none"}Xr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Xl.set(e,e.style.userSelect),e.style.userSelect="none")}function Ol(e){if(bs()){if(Xr!=="disabled")return;Xr="restoring",setTimeout(()=>{Yv(()=>{if(Xr==="restoring"){const n=pt(e);n.documentElement.style.webkitUserSelect==="none"&&(n.documentElement.style.webkitUserSelect=yc||""),yc="",Xr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Xl.has(e)){let n=Xl.get(e);e.style.userSelect==="none"&&(e.style.userSelect=n),e.getAttribute("style")===""&&e.removeAttribute("style"),Xl.delete(e)}}const im=ce.createContext({register:()=>{}});im.displayName="PressResponderContext";function tw(e){let n=b.useContext(im);if(n){let{register:i,...o}=n;e=Ae(o,e),i()}return em(n,e.ref),e}var Bl=new WeakMap;class Hl{continuePropagation(){e0(this,Bl,!1)}get shouldStopPropagation(){return Jb(this,Bl)}constructor(n,i,o){qx(this,Bl,{writable:!0,value:void 0}),e0(this,Bl,!0),this.type=n,this.pointerType=i,this.target=o.currentTarget,this.shiftKey=o.shiftKey,this.metaKey=o.metaKey,this.ctrlKey=o.ctrlKey,this.altKey=o.altKey}}const n0=Symbol("linkClicked");function ar(e){let{onPress:n,onPressChange:i,onPressStart:o,onPressEnd:s,onPressUp:u,isDisabled:c,isPressed:d,preventFocusOnPress:v,shouldCancelOnPointerExit:h,allowTextSelectionOnPress:m,ref:g,...y}=tw(e),[w,E]=b.useState(!1),S=b.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:P,removeAllGlobalListeners:A}=Qv(),I=it((T,U)=>{let O=S.current;if(c||O.didFirePressStart)return!1;let H=!0;if(O.isTriggeringEvent=!0,o){let ne=new Hl("pressstart",U,T);o(ne),H=ne.shouldStopPropagation}return i&&i(!0),O.isTriggeringEvent=!1,O.didFirePressStart=!0,E(!0),H}),R=it((T,U,O=!0)=>{let H=S.current;if(!H.didFirePressStart)return!1;H.ignoreClickAfterPress=!0,H.didFirePressStart=!1,H.isTriggeringEvent=!0;let ne=!0;if(s){let D=new Hl("pressend",U,T);s(D),ne=D.shouldStopPropagation}if(i&&i(!1),E(!1),n&&O&&!c){let D=new Hl("press",U,T);n(D),ne&&(ne=D.shouldStopPropagation)}return H.isTriggeringEvent=!1,ne}),B=it((T,U)=>{let O=S.current;if(c)return!1;if(u){O.isTriggeringEvent=!0;let H=new Hl("pressup",U,T);return u(H),O.isTriggeringEvent=!1,H.shouldStopPropagation}return!0}),_=it(T=>{let U=S.current;U.isPressed&&U.target&&(U.isOverTarget&&U.pointerType!=null&&R(an(U.target,T),U.pointerType,!1),U.isPressed=!1,U.isOverTarget=!1,U.activePointerId=null,U.pointerType=null,A(),m||Ol(U.target))}),V=it(T=>{h&&_(T)}),W=b.useMemo(()=>{let T=S.current,U={onKeyDown(H){if(Ou(H.nativeEvent,H.currentTarget)&&H.currentTarget.contains(H.target)){var ne;i0(H.target,H.key)&&H.preventDefault();let D=!0;if(!T.isPressed&&!H.repeat){T.target=H.currentTarget,T.isPressed=!0,D=I(H,"keyboard");let j=H.currentTarget,ue=xe=>{Ou(xe,j)&&!xe.repeat&&j.contains(xe.target)&&T.target&&B(an(T.target,xe),"keyboard")};P(pt(H.currentTarget),"keyup",co(ue,O),!0)}D&&H.stopPropagation(),H.metaKey&&lr()&&((ne=T.metaKeyEvents)===null||ne===void 0||ne.set(H.key,H.nativeEvent))}else H.key==="Meta"&&(T.metaKeyEvents=new Map)},onClick(H){if(!(H&&!H.currentTarget.contains(H.target))&&H&&H.button===0&&!T.isTriggeringEvent&&!sr.isOpening){let ne=!0;if(c&&H.preventDefault(),!T.ignoreClickAfterPress&&!T.ignoreEmulatedMouseEvents&&!T.isPressed&&(T.pointerType==="virtual"||gc(H.nativeEvent))){!c&&!v&&cn(H.currentTarget);let D=I(H,"virtual"),j=B(H,"virtual"),ue=R(H,"virtual");ne=D&&j&&ue}T.ignoreEmulatedMouseEvents=!1,T.ignoreClickAfterPress=!1,ne&&H.stopPropagation()}}},O=H=>{var ne;if(T.isPressed&&T.target&&Ou(H,T.target)){var D;i0(H.target,H.key)&&H.preventDefault();let ue=H.target;R(an(T.target,H),"keyboard",T.target.contains(ue)),A(),H.key!=="Enter"&&Yc(T.target)&&T.target.contains(ue)&&!H[n0]&&(H[n0]=!0,sr(T.target,H,!1)),T.isPressed=!1,(D=T.metaKeyEvents)===null||D===void 0||D.delete(H.key)}else if(H.key==="Meta"&&(!((ne=T.metaKeyEvents)===null||ne===void 0)&&ne.size)){var j;let ue=T.metaKeyEvents;T.metaKeyEvents=void 0;for(let xe of ue.values())(j=T.target)===null||j===void 0||j.dispatchEvent(new KeyboardEvent("keyup",xe))}};if(typeof PointerEvent<"u"){U.onPointerDown=j=>{if(j.button!==0||!j.currentTarget.contains(j.target))return;if(Yb(j.nativeEvent)){T.pointerType="virtual";return}Bu(j.currentTarget)&&j.preventDefault(),T.pointerType=j.pointerType;let ue=!0;T.isPressed||(T.isPressed=!0,T.isOverTarget=!0,T.activePointerId=j.pointerId,T.target=j.currentTarget,!c&&!v&&cn(j.currentTarget),m||t0(T.target),ue=I(j,T.pointerType),P(pt(j.currentTarget),"pointermove",H,!1),P(pt(j.currentTarget),"pointerup",ne,!1),P(pt(j.currentTarget),"pointercancel",D,!1)),ue&&j.stopPropagation()},U.onMouseDown=j=>{j.currentTarget.contains(j.target)&&j.button===0&&(Bu(j.currentTarget)&&j.preventDefault(),j.stopPropagation())},U.onPointerUp=j=>{!j.currentTarget.contains(j.target)||T.pointerType==="virtual"||j.button===0&&Ur(j,j.currentTarget)&&B(j,T.pointerType||j.pointerType)};let H=j=>{j.pointerId===T.activePointerId&&(T.target&&Ur(j,T.target)?!T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!0,I(an(T.target,j),T.pointerType)):T.target&&T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!1,R(an(T.target,j),T.pointerType,!1),V(j)))},ne=j=>{j.pointerId===T.activePointerId&&T.isPressed&&j.button===0&&T.target&&(Ur(j,T.target)&&T.pointerType!=null?R(an(T.target,j),T.pointerType):T.isOverTarget&&T.pointerType!=null&&R(an(T.target,j),T.pointerType,!1),T.isPressed=!1,T.isOverTarget=!1,T.activePointerId=null,T.pointerType=null,A(),m||Ol(T.target))},D=j=>{_(j)};U.onDragStart=j=>{j.currentTarget.contains(j.target)&&_(j)}}else{U.onMouseDown=D=>{if(D.button!==0||!D.currentTarget.contains(D.target))return;if(Bu(D.currentTarget)&&D.preventDefault(),T.ignoreEmulatedMouseEvents){D.stopPropagation();return}T.isPressed=!0,T.isOverTarget=!0,T.target=D.currentTarget,T.pointerType=gc(D.nativeEvent)?"virtual":"mouse",!c&&!v&&cn(D.currentTarget),I(D,T.pointerType)&&D.stopPropagation(),P(pt(D.currentTarget),"mouseup",H,!1)},U.onMouseEnter=D=>{if(!D.currentTarget.contains(D.target))return;let j=!0;T.isPressed&&!T.ignoreEmulatedMouseEvents&&T.pointerType!=null&&(T.isOverTarget=!0,j=I(D,T.pointerType)),j&&D.stopPropagation()},U.onMouseLeave=D=>{if(!D.currentTarget.contains(D.target))return;let j=!0;T.isPressed&&!T.ignoreEmulatedMouseEvents&&T.pointerType!=null&&(T.isOverTarget=!1,j=R(D,T.pointerType,!1),V(D)),j&&D.stopPropagation()},U.onMouseUp=D=>{D.currentTarget.contains(D.target)&&!T.ignoreEmulatedMouseEvents&&D.button===0&&B(D,T.pointerType||"mouse")};let H=D=>{if(D.button===0){if(T.isPressed=!1,A(),T.ignoreEmulatedMouseEvents){T.ignoreEmulatedMouseEvents=!1;return}T.target&&Ur(D,T.target)&&T.pointerType!=null?R(an(T.target,D),T.pointerType):T.target&&T.isOverTarget&&T.pointerType!=null&&R(an(T.target,D),T.pointerType,!1),T.isOverTarget=!1}};U.onTouchStart=D=>{if(!D.currentTarget.contains(D.target))return;let j=nw(D.nativeEvent);if(!j)return;T.activePointerId=j.identifier,T.ignoreEmulatedMouseEvents=!0,T.isOverTarget=!0,T.isPressed=!0,T.target=D.currentTarget,T.pointerType="touch",!c&&!v&&cn(D.currentTarget),m||t0(T.target),I(D,T.pointerType)&&D.stopPropagation(),P(Ot(D.currentTarget),"scroll",ne,!0)},U.onTouchMove=D=>{if(!D.currentTarget.contains(D.target))return;if(!T.isPressed){D.stopPropagation();return}let j=r0(D.nativeEvent,T.activePointerId),ue=!0;j&&Ur(j,D.currentTarget)?!T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!0,ue=I(D,T.pointerType)):T.isOverTarget&&T.pointerType!=null&&(T.isOverTarget=!1,ue=R(D,T.pointerType,!1),V(D)),ue&&D.stopPropagation()},U.onTouchEnd=D=>{if(!D.currentTarget.contains(D.target))return;if(!T.isPressed){D.stopPropagation();return}let j=r0(D.nativeEvent,T.activePointerId),ue=!0;j&&Ur(j,D.currentTarget)&&T.pointerType!=null?(B(D,T.pointerType),ue=R(D,T.pointerType)):T.isOverTarget&&T.pointerType!=null&&(ue=R(D,T.pointerType,!1)),ue&&D.stopPropagation(),T.isPressed=!1,T.activePointerId=null,T.isOverTarget=!1,T.ignoreEmulatedMouseEvents=!0,T.target&&!m&&Ol(T.target),A()},U.onTouchCancel=D=>{D.currentTarget.contains(D.target)&&(D.stopPropagation(),T.isPressed&&_(D))};let ne=D=>{T.isPressed&&D.target.contains(T.target)&&_({currentTarget:T.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};U.onDragStart=D=>{D.currentTarget.contains(D.target)&&_(D)}}return U},[P,c,v,A,m,_,V,R,I,B]);return b.useEffect(()=>()=>{var T;m||Ol((T=S.current.target)!==null&&T!==void 0?T:void 0)},[m]),{isPressed:d||w,pressProps:Ae(y,W)}}function Yc(e){return e.tagName==="A"&&e.hasAttribute("href")}function Ou(e,n){const{key:i,code:o}=e,s=n,u=s.getAttribute("role");return(i==="Enter"||i===" "||i==="Spacebar"||o==="Space")&&!(s instanceof Ot(s).HTMLInputElement&&!om(s,i)||s instanceof Ot(s).HTMLTextAreaElement||s.isContentEditable)&&!((u==="link"||!u&&Yc(s))&&i!=="Enter")}function nw(e){const{targetTouches:n}=e;return n.length>0?n[0]:null}function r0(e,n){const i=e.changedTouches;for(let o=0;o<i.length;o++){const s=i[o];if(s.identifier===n)return s}return null}function an(e,n){return{currentTarget:e,shiftKey:n.shiftKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,altKey:n.altKey}}function rw(e){let n=0,i=0;return e.width!==void 0?n=e.width/2:e.radiusX!==void 0&&(n=e.radiusX),e.height!==void 0?i=e.height/2:e.radiusY!==void 0&&(i=e.radiusY),{top:e.clientY-i,right:e.clientX+n,bottom:e.clientY+i,left:e.clientX-n}}function iw(e,n){return!(e.left>n.right||n.left>e.right||e.top>n.bottom||n.top>e.bottom)}function Ur(e,n){let i=n.getBoundingClientRect(),o=rw(e);return iw(i,o)}function Bu(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function i0(e,n){return e instanceof HTMLInputElement?!om(e,n):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Yc(e)}const ow=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function om(e,n){return e.type==="checkbox"||e.type==="radio"?n===" ":ow.has(e.type)}class lw{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(n,i){this.nativeEvent=i,this.target=i.target,this.currentTarget=i.currentTarget,this.relatedTarget=i.relatedTarget,this.bubbles=i.bubbles,this.cancelable=i.cancelable,this.defaultPrevented=i.defaultPrevented,this.eventPhase=i.eventPhase,this.isTrusted=i.isTrusted,this.timeStamp=i.timeStamp,this.type=n}}function lm(e){let n=b.useRef({isFocused:!1,observer:null});bt(()=>{const o=n.current;return()=>{o.observer&&(o.observer.disconnect(),o.observer=null)}},[]);let i=it(o=>{e?.(o)});return b.useCallback(o=>{if(o.target instanceof HTMLButtonElement||o.target instanceof HTMLInputElement||o.target instanceof HTMLTextAreaElement||o.target instanceof HTMLSelectElement){n.current.isFocused=!0;let s=o.target,u=c=>{n.current.isFocused=!1,s.disabled&&i(new lw("blur",c)),n.current.observer&&(n.current.observer.disconnect(),n.current.observer=null)};s.addEventListener("focusout",u,{once:!0}),n.current.observer=new MutationObserver(()=>{if(n.current.isFocused&&s.disabled){var c;(c=n.current.observer)===null||c===void 0||c.disconnect();let d=s===document.activeElement?null:document.activeElement;s.dispatchEvent(new FocusEvent("blur",{relatedTarget:d})),s.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:d}))}}),n.current.observer.observe(s,{attributes:!0,attributeFilter:["disabled"]})}},[i])}function Qc(e){let{isDisabled:n,onFocus:i,onBlur:o,onFocusChange:s}=e;const u=b.useCallback(v=>{if(v.target===v.currentTarget)return o&&o(v),s&&s(!1),!0},[o,s]),c=lm(u),d=b.useCallback(v=>{v.target===v.currentTarget&&document.activeElement===v.target&&(i&&i(v),s&&s(!0),c(v))},[s,i,c]);return{focusProps:{onFocus:!n&&(i||s||o)?d:void 0,onBlur:!n&&(o||s)?u:void 0}}}let hr=null,xc=new Set,lo=new Map,ur=!1,bc=!1;const sw={Tab:!0,Escape:!0};function ws(e,n){for(let i of xc)i(e,n)}function aw(e){return!(e.metaKey||!lr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function rs(e){ur=!0,aw(e)&&(hr="keyboard",ws("keyboard",e))}function kt(e){hr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(ur=!0,ws("pointer",e))}function sm(e){gc(e)&&(ur=!0,hr="virtual")}function am(e){e.target===window||e.target===document||(!ur&&!bc&&(hr="virtual",ws("virtual",e)),ur=!1,bc=!1)}function um(){ur=!1,bc=!0}function wc(e){if(typeof window>"u"||lo.get(Ot(e)))return;const n=Ot(e),i=pt(e);let o=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){ur=!0,o.apply(this,arguments)},i.addEventListener("keydown",rs,!0),i.addEventListener("keyup",rs,!0),i.addEventListener("click",sm,!0),n.addEventListener("focus",am,!0),n.addEventListener("blur",um,!1),typeof PointerEvent<"u"?(i.addEventListener("pointerdown",kt,!0),i.addEventListener("pointermove",kt,!0),i.addEventListener("pointerup",kt,!0)):(i.addEventListener("mousedown",kt,!0),i.addEventListener("mousemove",kt,!0),i.addEventListener("mouseup",kt,!0)),n.addEventListener("beforeunload",()=>{cm(e)},{once:!0}),lo.set(n,{focus:o})}const cm=(e,n)=>{const i=Ot(e),o=pt(e);n&&o.removeEventListener("DOMContentLoaded",n),lo.has(i)&&(i.HTMLElement.prototype.focus=lo.get(i).focus,o.removeEventListener("keydown",rs,!0),o.removeEventListener("keyup",rs,!0),o.removeEventListener("click",sm,!0),i.removeEventListener("focus",am,!0),i.removeEventListener("blur",um,!1),typeof PointerEvent<"u"?(o.removeEventListener("pointerdown",kt,!0),o.removeEventListener("pointermove",kt,!0),o.removeEventListener("pointerup",kt,!0)):(o.removeEventListener("mousedown",kt,!0),o.removeEventListener("mousemove",kt,!0),o.removeEventListener("mouseup",kt,!0)),lo.delete(i))};function uw(e){const n=pt(e);let i;return n.readyState!=="loading"?wc(e):(i=()=>{wc(e)},n.addEventListener("DOMContentLoaded",i)),()=>cm(e,i)}typeof document<"u"&&uw();function Ss(){return hr!=="pointer"}function is(){return hr}function cw(e){hr=e,ws(e,null)}const dw=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fw(e,n,i){var o;const s=typeof window<"u"?Ot(i?.target).HTMLInputElement:HTMLInputElement,u=typeof window<"u"?Ot(i?.target).HTMLTextAreaElement:HTMLTextAreaElement,c=typeof window<"u"?Ot(i?.target).HTMLElement:HTMLElement,d=typeof window<"u"?Ot(i?.target).KeyboardEvent:KeyboardEvent;return e=e||i?.target instanceof s&&!dw.has(i==null||(o=i.target)===null||o===void 0?void 0:o.type)||i?.target instanceof u||i?.target instanceof c&&i?.target.isContentEditable,!(e&&n==="keyboard"&&i instanceof d&&!sw[i.key])}function pw(e={}){let{isTextInput:n,autoFocus:i}=e,[o,s]=b.useState(i||Ss());return dm(u=>{s(u)},[n],{isTextInput:n}),{isFocusVisible:o}}function dm(e,n,i){wc(),b.useEffect(()=>{let o=(s,u)=>{fw(!!i?.isTextInput,s,u)&&e(Ss())};return xc.add(o),()=>{xc.delete(o)}},n)}function xo(e){let{isDisabled:n,onBlurWithin:i,onFocusWithin:o,onFocusWithinChange:s}=e,u=b.useRef({isFocusWithin:!1}),c=b.useCallback(h=>{u.current.isFocusWithin&&!h.currentTarget.contains(h.relatedTarget)&&(u.current.isFocusWithin=!1,i&&i(h),s&&s(!1))},[i,s,u]),d=lm(c),v=b.useCallback(h=>{!u.current.isFocusWithin&&document.activeElement===h.target&&(o&&o(h),s&&s(!0),u.current.isFocusWithin=!0,d(h))},[o,s,d]);return n?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:v,onBlur:c}}}let os=!1,Hu=0;function Sc(){os=!0,setTimeout(()=>{os=!1},50)}function o0(e){e.pointerType==="touch"&&Sc()}function hw(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",o0):document.addEventListener("touchend",Sc),Hu++,()=>{Hu--,!(Hu>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",o0):document.removeEventListener("touchend",Sc))}}function An(e){let{onHoverStart:n,onHoverChange:i,onHoverEnd:o,isDisabled:s}=e,[u,c]=b.useState(!1),d=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(hw,[]);let{hoverProps:v,triggerHoverEnd:h}=b.useMemo(()=>{let m=(w,E)=>{if(d.pointerType=E,s||E==="touch"||d.isHovered||!w.currentTarget.contains(w.target))return;d.isHovered=!0;let S=w.currentTarget;d.target=S,n&&n({type:"hoverstart",target:S,pointerType:E}),i&&i(!0),c(!0)},g=(w,E)=>{if(d.pointerType="",d.target=null,E==="touch"||!d.isHovered)return;d.isHovered=!1;let S=w.currentTarget;o&&o({type:"hoverend",target:S,pointerType:E}),i&&i(!1),c(!1)},y={};return typeof PointerEvent<"u"?(y.onPointerEnter=w=>{os&&w.pointerType==="mouse"||m(w,w.pointerType)},y.onPointerLeave=w=>{!s&&w.currentTarget.contains(w.target)&&g(w,w.pointerType)}):(y.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},y.onMouseEnter=w=>{!d.ignoreEmulatedMouseEvents&&!os&&m(w,"mouse"),d.ignoreEmulatedMouseEvents=!1},y.onMouseLeave=w=>{!s&&w.currentTarget.contains(w.target)&&g(w,"mouse")}),{hoverProps:y,triggerHoverEnd:g}},[n,i,o,s,d]);return b.useEffect(()=>{s&&h({currentTarget:d.target},d.pointerType)},[s]),{hoverProps:v,isHovered:u}}function vw(e){let{ref:n,onInteractOutside:i,isDisabled:o,onInteractOutsideStart:s}=e,u=b.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=it(v=>{i&&jl(v,n)&&(s&&s(v),u.current.isPointerDown=!0)}),d=it(v=>{i&&i(v)});b.useEffect(()=>{let v=u.current;if(o)return;const h=n.current,m=pt(h);if(typeof PointerEvent<"u"){let g=y=>{v.isPointerDown&&jl(y,n)&&d(y),v.isPointerDown=!1};return m.addEventListener("pointerdown",c,!0),m.addEventListener("pointerup",g,!0),()=>{m.removeEventListener("pointerdown",c,!0),m.removeEventListener("pointerup",g,!0)}}else{let g=w=>{v.ignoreEmulatedMouseEvents?v.ignoreEmulatedMouseEvents=!1:v.isPointerDown&&jl(w,n)&&d(w),v.isPointerDown=!1},y=w=>{v.ignoreEmulatedMouseEvents=!0,v.isPointerDown&&jl(w,n)&&d(w),v.isPointerDown=!1};return m.addEventListener("mousedown",c,!0),m.addEventListener("mouseup",g,!0),m.addEventListener("touchstart",c,!0),m.addEventListener("touchend",y,!0),()=>{m.removeEventListener("mousedown",c,!0),m.removeEventListener("mouseup",g,!0),m.removeEventListener("touchstart",c,!0),m.removeEventListener("touchend",y,!0)}}},[n,o,c,d])}function jl(e,n){if(e.button>0)return!1;if(e.target){const i=e.target.ownerDocument;if(!i||!i.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return n.current&&!n.current.contains(e.target)}function l0(e){if(!e)return;let n=!0;return i=>{let o={...i,preventDefault(){i.preventDefault()},isDefaultPrevented(){return i.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){n=!1}};e(o),n&&i.stopPropagation()}}function mw(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:l0(e.onKeyDown),onKeyUp:l0(e.onKeyUp)}}}const gw=500;function yw(e){let{isDisabled:n,onLongPressStart:i,onLongPressEnd:o,onLongPress:s,threshold:u=gw,accessibilityDescription:c}=e;const d=b.useRef();let{addGlobalListener:v,removeGlobalListener:h}=Qv(),{pressProps:m}=ar({isDisabled:n,onPressStart(y){if(y.continuePropagation(),(y.pointerType==="mouse"||y.pointerType==="touch")&&(i&&i({...y,type:"longpressstart"}),d.current=setTimeout(()=>{y.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),s&&s({...y,type:"longpress"}),d.current=void 0},u),y.pointerType==="touch")){let w=E=>{E.preventDefault()};v(y.target,"contextmenu",w,{once:!0}),v(window,"pointerup",()=>{setTimeout(()=>{h(y.target,"contextmenu",w)},30)},{once:!0})}},onPressEnd(y){d.current&&clearTimeout(d.current),o&&(y.pointerType==="mouse"||y.pointerType==="touch")&&o({...y,type:"longpressend"})}}),g=qb(s&&!n?c:void 0);return{longPressProps:Ae(m,g)}}function cr(e){const n=pt(e);if(is()==="virtual"){let i=n.activeElement;Yv(()=>{n.activeElement===i&&e.isConnected&&cn(e)})}else cn(e)}function xw(e){const n=Ot(e);if(!(e instanceof n.HTMLElement)&&!(e instanceof n.SVGElement))return!1;let{display:i,visibility:o}=e.style,s=i!=="none"&&o!=="hidden"&&o!=="collapse";if(s){const{getComputedStyle:u}=e.ownerDocument.defaultView;let{display:c,visibility:d}=u(e);s=c!=="none"&&d!=="hidden"&&d!=="collapse"}return s}function bw(e,n){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&n&&n.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function fm(e,n){return e.nodeName!=="#comment"&&xw(e)&&bw(e,n)&&(!e.parentElement||fm(e.parentElement,e))}let ww=null;const Jc=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Sw=Jc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Jc.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Ew=Jc.join(':not([hidden]):not([tabindex="-1"]),');function ed(e,n){return!e||!n?!1:n.some(i=>i.contains(e))}function $w(e,n=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:i}of a0.traverse(a0.getTreeNode(n)))if(i&&ed(e,i.current))return!0;return!1}function Pw(e){return $w(e,ww)}function pm(e,n,i){let o=n?.tabbable?Ew:Sw,s=pt(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(u){var c;return!(n==null||(c=n.from)===null||c===void 0)&&c.contains(u)?NodeFilter.FILTER_REJECT:u.matches(o)&&fm(u)&&(!i||ed(u,i))&&(!n?.accept||n.accept(u))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return n?.from&&(s.currentNode=n.from),s}class td{get size(){return this.fastMap.size}getTreeNode(n){return this.fastMap.get(n)}addTreeNode(n,i,o){let s=this.fastMap.get(i??null);if(!s)return;let u=new s0({scopeRef:n});s.addChild(u),u.parent=s,this.fastMap.set(n,u),o&&(u.nodeToRestore=o)}addNode(n){this.fastMap.set(n.scopeRef,n)}removeTreeNode(n){if(n===null)return;let i=this.fastMap.get(n);if(!i)return;let o=i.parent;for(let u of this.traverse())u!==i&&i.nodeToRestore&&u.nodeToRestore&&i.scopeRef&&i.scopeRef.current&&ed(u.nodeToRestore,i.scopeRef.current)&&(u.nodeToRestore=i.nodeToRestore);let s=i.children;o&&(o.removeChild(i),s.size>0&&s.forEach(u=>o&&o.addChild(u))),this.fastMap.delete(i.scopeRef)}*traverse(n=this.root){if(n.scopeRef!=null&&(yield n),n.children.size>0)for(let i of n.children)yield*this.traverse(i)}clone(){var n;let i=new td;var o;for(let s of this.traverse())i.addTreeNode(s.scopeRef,(o=(n=s.parent)===null||n===void 0?void 0:n.scopeRef)!==null&&o!==void 0?o:null,s.nodeToRestore);return i}constructor(){this.fastMap=new Map,this.root=new s0({scopeRef:null}),this.fastMap.set(null,this.root)}}class s0{addChild(n){this.children.add(n),n.parent=this}removeChild(n){this.children.delete(n),n.parent=void 0}constructor(n){this.children=new Set,this.contain=!1,this.scopeRef=n.scopeRef}}let a0=new td;function hm(e={}){let{autoFocus:n=!1,isTextInput:i,within:o}=e,s=b.useRef({isFocused:!1,isFocusVisible:n||Ss()}),[u,c]=b.useState(!1),[d,v]=b.useState(()=>s.current.isFocused&&s.current.isFocusVisible),h=b.useCallback(()=>v(s.current.isFocused&&s.current.isFocusVisible),[]),m=b.useCallback(w=>{s.current.isFocused=w,c(w),h()},[h]);dm(w=>{s.current.isFocusVisible=w,h()},[],{isTextInput:i});let{focusProps:g}=Qc({isDisabled:o,onFocusChange:m}),{focusWithinProps:y}=xo({isDisabled:!o,onFocusWithinChange:m});return{isFocused:u,isFocusVisible:d,focusProps:o?y:g}}let vm=ce.createContext(null);function Cw(e){let n=b.useContext(vm)||{};em(n,e);let{ref:i,...o}=n;return o}function Tw(e,n){let{children:i,...o}=e,s=Kb(n),u={...o,ref:s};return ce.createElement(vm.Provider,{value:u},i)}let kw=ce.forwardRef(Tw);function bo(e,n){let{focusProps:i}=Qc(e),{keyboardProps:o}=mw(e),s=Ae(i,o),u=Cw(n),c=e.isDisabled?{}:u,d=b.useRef(e.autoFocus);return b.useEffect(()=>{d.current&&n.current&&cr(n.current),d.current=!1},[n]),{focusableProps:Ae({...s,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},c)}}const Iw=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Lw=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Rw(e){if(Intl.Locale){let i=new Intl.Locale(e).maximize(),o=typeof i.getTextInfo=="function"?i.getTextInfo():i.textInfo;if(o)return o.direction==="rtl";if(i.script)return Iw.has(i.script)}let n=e.split("-")[0];return Lw.has(n)}const _w=Symbol.for("react-aria.i18n.locale");function mm(){let e=typeof window<"u"&&window[_w]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Rw(e)?"rtl":"ltr"}}let Ec=mm(),no=new Set;function u0(){Ec=mm();for(let e of no)e(Ec)}function Mw(){let e=Bv(),[n,i]=b.useState(Ec);return b.useEffect(()=>(no.size===0&&window.addEventListener("languagechange",u0),no.add(i),()=>{no.delete(i),no.size===0&&window.removeEventListener("languagechange",u0)}),[]),e?{locale:"en-US",direction:"ltr"}:n}const Fw=ce.createContext(null);function si(){let e=Mw();return b.useContext(Fw)||e}const c0=new WeakMap;function Aw(e){let n=c0.get(e);return n||(n=new ys(e),c0.set(e,n)),n}function Nw(e,n){return n&&ys.getGlobalDictionaryForPackage(n)||Aw(e)}function Dw(e,n){let{locale:i}=si(),o=Nw(e,n);return b.useMemo(()=>new yb(i,o),[i,o])}let ju=new Map;function Ow(e){let{locale:n}=si(),i=n+(e?Object.entries(e).sort((s,u)=>s[0]<u[0]?-1:1).join():"");if(ju.has(i))return ju.get(i);let o=new Intl.Collator(n,e);return ju.set(i,o),o}var $c=function(e,n){return $c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(i[s]=o[s])},$c(e,n)};function Es(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");$c(e,n);function i(){this.constructor=e}e.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}var ge=function(){return ge=Object.assign||function(n){for(var i,o=1,s=arguments.length;o<s;o++){i=arguments[o];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])}return n},ge.apply(this,arguments)};function Bw(e,n){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(i[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)n.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(i[o[s]]=e[o[s]]);return i}function Vu(e,n,i){if(i||arguments.length===2)for(var o=0,s=n.length,u;o<s;o++)(u||!(o in n))&&(u||(u=Array.prototype.slice.call(n,0,o)),u[o]=n[o]);return e.concat(u||Array.prototype.slice.call(n))}var pe;(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"})(pe||(pe={}));var Re;(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"})(Re||(Re={}));var ii;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(ii||(ii={}));function d0(e){return e.type===Re.literal}function Hw(e){return e.type===Re.argument}function gm(e){return e.type===Re.number}function ym(e){return e.type===Re.date}function xm(e){return e.type===Re.time}function bm(e){return e.type===Re.select}function wm(e){return e.type===Re.plural}function jw(e){return e.type===Re.pound}function Sm(e){return e.type===Re.tag}function Em(e){return!!(e&&typeof e=="object"&&e.type===ii.number)}function Pc(e){return!!(e&&typeof e=="object"&&e.type===ii.dateTime)}var $m=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Vw=/(?:[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 zw(e){var n={};return e.replace(Vw,function(i){var o=i.length;switch(i[0]){case"G":n.era=o===4?"long":o===5?"narrow":"short";break;case"y":n.year=o===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":n.month=["numeric","2-digit","short","long","narrow"][o-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":n.day=["numeric","2-digit"][o-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":n.weekday=o===4?"long":o===5?"narrow":"short";break;case"e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][o-4];break;case"c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");n.weekday=["short","long","narrow","short"][o-4];break;case"a":n.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":n.hourCycle="h12",n.hour=["numeric","2-digit"][o-1];break;case"H":n.hourCycle="h23",n.hour=["numeric","2-digit"][o-1];break;case"K":n.hourCycle="h11",n.hour=["numeric","2-digit"][o-1];break;case"k":n.hourCycle="h24",n.hour=["numeric","2-digit"][o-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":n.minute=["numeric","2-digit"][o-1];break;case"s":n.second=["numeric","2-digit"][o-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":n.timeZoneName=o<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""}),n}var Uw=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Kw(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var n=e.split(Uw).filter(function(y){return y.length>0}),i=[],o=0,s=n;o<s.length;o++){var u=s[o],c=u.split("/");if(c.length===0)throw new Error("Invalid number skeleton");for(var d=c[0],v=c.slice(1),h=0,m=v;h<m.length;h++){var g=m[h];if(g.length===0)throw new Error("Invalid number skeleton")}i.push({stem:d,options:v})}return i}function Ww(e){return e.replace(/^(.*?)-/,"")}var f0=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Pm=/^(@+)?(\+|#+)?[rs]?$/g,Gw=/(\*)(0+)|(#+)(0+)|(0+)/g,Cm=/^(0+)$/;function p0(e){var n={};return e[e.length-1]==="r"?n.roundingPriority="morePrecision":e[e.length-1]==="s"&&(n.roundingPriority="lessPrecision"),e.replace(Pm,function(i,o,s){return typeof s!="string"?(n.minimumSignificantDigits=o.length,n.maximumSignificantDigits=o.length):s==="+"?n.minimumSignificantDigits=o.length:o[0]==="#"?n.maximumSignificantDigits=o.length:(n.minimumSignificantDigits=o.length,n.maximumSignificantDigits=o.length+(typeof s=="string"?s.length:0)),""}),n}function Tm(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 Zw(e){var n;if(e[0]==="E"&&e[1]==="E"?(n={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(n={notation:"scientific"},e=e.slice(1)),n){var i=e.slice(0,2);if(i==="+!"?(n.signDisplay="always",e=e.slice(2)):i==="+?"&&(n.signDisplay="exceptZero",e=e.slice(2)),!Cm.test(e))throw new Error("Malformed concise eng/scientific notation");n.minimumIntegerDigits=e.length}return n}function h0(e){var n={},i=Tm(e);return i||n}function qw(e){for(var n={},i=0,o=e;i<o.length;i++){var s=o[i];switch(s.stem){case"percent":case"%":n.style="percent";continue;case"%x100":n.style="percent",n.scale=100;continue;case"currency":n.style="currency",n.currency=s.options[0];continue;case"group-off":case",_":n.useGrouping=!1;continue;case"precision-integer":case".":n.maximumFractionDigits=0;continue;case"measure-unit":case"unit":n.style="unit",n.unit=Ww(s.options[0]);continue;case"compact-short":case"K":n.notation="compact",n.compactDisplay="short";continue;case"compact-long":case"KK":n.notation="compact",n.compactDisplay="long";continue;case"scientific":n=ge(ge(ge({},n),{notation:"scientific"}),s.options.reduce(function(v,h){return ge(ge({},v),h0(h))},{}));continue;case"engineering":n=ge(ge(ge({},n),{notation:"engineering"}),s.options.reduce(function(v,h){return ge(ge({},v),h0(h))},{}));continue;case"notation-simple":n.notation="standard";continue;case"unit-width-narrow":n.currencyDisplay="narrowSymbol",n.unitDisplay="narrow";continue;case"unit-width-short":n.currencyDisplay="code",n.unitDisplay="short";continue;case"unit-width-full-name":n.currencyDisplay="name",n.unitDisplay="long";continue;case"unit-width-iso-code":n.currencyDisplay="symbol";continue;case"scale":n.scale=parseFloat(s.options[0]);continue;case"rounding-mode-floor":n.roundingMode="floor";continue;case"rounding-mode-ceiling":n.roundingMode="ceil";continue;case"rounding-mode-down":n.roundingMode="trunc";continue;case"rounding-mode-up":n.roundingMode="expand";continue;case"rounding-mode-half-even":n.roundingMode="halfEven";continue;case"rounding-mode-half-down":n.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":n.roundingMode="halfExpand";continue;case"integer-width":if(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(Gw,function(v,h,m,g,y,w){if(h)n.minimumIntegerDigits=m.length;else{if(g&&y)throw new Error("We currently do not support maximum integer digits");if(w)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Cm.test(s.stem)){n.minimumIntegerDigits=s.stem.length;continue}if(f0.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(f0,function(v,h,m,g,y,w){return m==="*"?n.minimumFractionDigits=h.length:g&&g[0]==="#"?n.maximumFractionDigits=g.length:y&&w?(n.minimumFractionDigits=y.length,n.maximumFractionDigits=y.length+w.length):(n.minimumFractionDigits=h.length,n.maximumFractionDigits=h.length),""});var u=s.options[0];u==="w"?n=ge(ge({},n),{trailingZeroDisplay:"stripIfInteger"}):u&&(n=ge(ge({},n),p0(u)));continue}if(Pm.test(s.stem)){n=ge(ge({},n),p0(s.stem));continue}var c=Tm(s.stem);c&&(n=ge(ge({},n),c));var d=Zw(s.stem);d&&(n=ge(ge({},n),d))}return n}var Vl={"001":["H","h"],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","hB","h","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","hB","h","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","hB","h","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"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 Xw(e,n){for(var i="",o=0;o<e.length;o++){var s=e.charAt(o);if(s==="j"){for(var u=0;o+1<e.length&&e.charAt(o+1)===s;)u++,o++;var c=1+(u&1),d=u<2?1:3+(u>>1),v="a",h=Yw(n);for((h=="H"||h=="k")&&(d=0);d-- >0;)i+=v;for(;c-- >0;)i=h+i}else s==="J"?i+="H":i+=s}return i}function Yw(e){var n=e.hourCycle;if(n===void 0&&e.hourCycles&&e.hourCycles.length&&(n=e.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i=e.language,o;i!=="root"&&(o=e.maximize().region);var s=Vl[o||""]||Vl[i||""]||Vl["".concat(i,"-001")]||Vl["001"];return s[0]}var zu,Qw=new RegExp("^".concat($m.source,"*")),Jw=new RegExp("".concat($m.source,"*$"));function he(e,n){return{start:e,end:n}}var e6=!!String.prototype.startsWith&&"_a".startsWith("a",1),t6=!!String.fromCodePoint,n6=!!Object.fromEntries,r6=!!String.prototype.codePointAt,i6=!!String.prototype.trimStart,o6=!!String.prototype.trimEnd,l6=!!Number.isSafeInteger,s6=l6?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Cc=!0;try{var a6=Im("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Cc=((zu=a6.exec("a"))===null||zu===void 0?void 0:zu[0])==="a"}catch{Cc=!1}var v0=e6?function(n,i,o){return n.startsWith(i,o)}:function(n,i,o){return n.slice(o,o+i.length)===i},Tc=t6?String.fromCodePoint:function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];for(var o="",s=n.length,u=0,c;s>u;){if(c=n[u++],c>1114111)throw RangeError(c+" is not a valid code point");o+=c<65536?String.fromCharCode(c):String.fromCharCode(((c-=65536)>>10)+55296,c%1024+56320)}return o},m0=n6?Object.fromEntries:function(n){for(var i={},o=0,s=n;o<s.length;o++){var u=s[o],c=u[0],d=u[1];i[c]=d}return i},km=r6?function(n,i){return n.codePointAt(i)}:function(n,i){var o=n.length;if(!(i<0||i>=o)){var s=n.charCodeAt(i),u;return s<55296||s>56319||i+1===o||(u=n.charCodeAt(i+1))<56320||u>57343?s:(s-55296<<10)+(u-56320)+65536}},u6=i6?function(n){return n.trimStart()}:function(n){return n.replace(Qw,"")},c6=o6?function(n){return n.trimEnd()}:function(n){return n.replace(Jw,"")};function Im(e,n){return new RegExp(e,n)}var kc;if(Cc){var g0=Im("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");kc=function(n,i){var o;g0.lastIndex=i;var s=g0.exec(n);return(o=s[1])!==null&&o!==void 0?o:""}}else kc=function(n,i){for(var o=[];;){var s=km(n,i);if(s===void 0||Lm(s)||h6(s))break;o.push(s),i+=s>=65536?2:1}return Tc.apply(void 0,o)};var d6=(function(){function e(n,i){i===void 0&&(i={}),this.message=n,this.position={offset:0,line:1,column:1},this.ignoreTag=!!i.ignoreTag,this.locale=i.locale,this.requiresOtherClause=!!i.requiresOtherClause,this.shouldParseSkeletons=!!i.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(n,i,o){for(var s=[];!this.isEOF();){var u=this.char();if(u===123){var c=this.parseArgument(n,o);if(c.err)return c;s.push(c.val)}else{if(u===125&&n>0)break;if(u===35&&(i==="plural"||i==="selectordinal")){var d=this.clonePosition();this.bump(),s.push({type:Re.pound,location:he(d,this.clonePosition())})}else if(u===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(pe.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}else if(u===60&&!this.ignoreTag&&Ic(this.peek()||0)){var c=this.parseTag(n,i);if(c.err)return c;s.push(c.val)}else{var c=this.parseLiteral(n,i);if(c.err)return c;s.push(c.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(n,i){var o=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Re.literal,value:"<".concat(s,"/>"),location:he(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var u=this.parseMessage(n+1,i,!0);if(u.err)return u;var c=u.val,d=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ic(this.char()))return this.error(pe.INVALID_TAG,he(d,this.clonePosition()));var v=this.clonePosition(),h=this.parseTagName();return s!==h?this.error(pe.UNMATCHED_CLOSING_TAG,he(v,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Re.tag,value:s,children:c,location:he(o,this.clonePosition())},err:null}:this.error(pe.INVALID_TAG,he(d,this.clonePosition())))}else return this.error(pe.UNCLOSED_TAG,he(o,this.clonePosition()))}else return this.error(pe.INVALID_TAG,he(o,this.clonePosition()))},e.prototype.parseTagName=function(){var n=this.offset();for(this.bump();!this.isEOF()&&p6(this.char());)this.bump();return this.message.slice(n,this.offset())},e.prototype.parseLiteral=function(n,i){for(var o=this.clonePosition(),s="";;){var u=this.tryParseQuote(i);if(u){s+=u;continue}var c=this.tryParseUnquoted(n,i);if(c){s+=c;continue}var d=this.tryParseLeftAngleBracket();if(d){s+=d;continue}break}var v=he(o,this.clonePosition());return{val:{type:Re.literal,value:s,location:v},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!f6(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(n){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(n==="plural"||n==="selectordinal")break;return null;default:return null}this.bump();var i=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)i.push(39),this.bump();else{this.bump();break}else i.push(o);this.bump()}return Tc.apply(void 0,i)},e.prototype.tryParseUnquoted=function(n,i){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(i==="plural"||i==="selectordinal")||o===125&&n>0?null:(this.bump(),Tc(o))},e.prototype.parseArgument=function(n,i){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(pe.EXPECT_ARGUMENT_CLOSING_BRACE,he(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(pe.EMPTY_ARGUMENT,he(o,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(pe.MALFORMED_ARGUMENT,he(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(pe.EXPECT_ARGUMENT_CLOSING_BRACE,he(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Re.argument,value:s,location:he(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(pe.EXPECT_ARGUMENT_CLOSING_BRACE,he(o,this.clonePosition())):this.parseArgumentOptions(n,i,s,o);default:return this.error(pe.MALFORMED_ARGUMENT,he(o,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var n=this.clonePosition(),i=this.offset(),o=kc(this.message,i),s=i+o.length;this.bumpTo(s);var u=this.clonePosition(),c=he(n,u);return{value:o,location:c}},e.prototype.parseArgumentOptions=function(n,i,o,s){var u,c=this.clonePosition(),d=this.parseIdentifierIfPossible().value,v=this.clonePosition();switch(d){case"":return this.error(pe.EXPECT_ARGUMENT_TYPE,he(c,v));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var m=this.clonePosition(),g=this.parseSimpleArgStyleIfPossible();if(g.err)return g;var y=c6(g.val);if(y.length===0)return this.error(pe.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));var w=he(m,this.clonePosition());h={style:y,styleLocation:w}}var E=this.tryParseArgumentClose(s);if(E.err)return E;var S=he(s,this.clonePosition());if(h&&v0(h?.style,"::",0)){var P=u6(h.style.slice(2));if(d==="number"){var g=this.parseNumberSkeletonFromString(P,h.styleLocation);return g.err?g:{val:{type:Re.number,value:o,location:S,style:g.val},err:null}}else{if(P.length===0)return this.error(pe.EXPECT_DATE_TIME_SKELETON,S);var A=P;this.locale&&(A=Xw(P,this.locale));var y={type:ii.dateTime,pattern:A,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?zw(A):{}},I=d==="date"?Re.date:Re.time;return{val:{type:I,value:o,location:S,style:y},err:null}}}return{val:{type:d==="number"?Re.number:d==="date"?Re.date:Re.time,value:o,location:S,style:(u=h?.style)!==null&&u!==void 0?u:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(pe.EXPECT_SELECT_ARGUMENT_OPTIONS,he(R,ge({},R)));this.bumpSpace();var B=this.parseIdentifierIfPossible(),_=0;if(d!=="select"&&B.value==="offset"){if(!this.bumpIf(":"))return this.error(pe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var g=this.tryParseDecimalInteger(pe.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,pe.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(g.err)return g;this.bumpSpace(),B=this.parseIdentifierIfPossible(),_=g.val}var V=this.tryParsePluralOrSelectOptions(n,d,i,B);if(V.err)return V;var E=this.tryParseArgumentClose(s);if(E.err)return E;var W=he(s,this.clonePosition());return d==="select"?{val:{type:Re.select,value:o,options:m0(V.val),location:W},err:null}:{val:{type:Re.plural,value:o,options:m0(V.val),offset:_,pluralType:d==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(pe.INVALID_ARGUMENT_TYPE,he(c,v))}},e.prototype.tryParseArgumentClose=function(n){return this.isEOF()||this.char()!==125?this.error(pe.EXPECT_ARGUMENT_CLOSING_BRACE,he(n,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var n=0,i=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(pe.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(s,this.clonePosition()));this.bump();break}case 123:{n+=1,this.bump();break}case 125:{if(n>0)n-=1;else return{val:this.message.slice(i.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(i.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(n,i){var o=[];try{o=Kw(n)}catch{return this.error(pe.INVALID_NUMBER_SKELETON,i)}return{val:{type:ii.number,tokens:o,location:i,parsedOptions:this.shouldParseSkeletons?qw(o):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(n,i,o,s){for(var u,c=!1,d=[],v=new Set,h=s.value,m=s.location;;){if(h.length===0){var g=this.clonePosition();if(i!=="select"&&this.bumpIf("=")){var y=this.tryParseDecimalInteger(pe.EXPECT_PLURAL_ARGUMENT_SELECTOR,pe.INVALID_PLURAL_ARGUMENT_SELECTOR);if(y.err)return y;m=he(g,this.clonePosition()),h=this.message.slice(g.offset,this.offset())}else break}if(v.has(h))return this.error(i==="select"?pe.DUPLICATE_SELECT_ARGUMENT_SELECTOR:pe.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,m);h==="other"&&(c=!0),this.bumpSpace();var w=this.clonePosition();if(!this.bumpIf("{"))return this.error(i==="select"?pe.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:pe.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(n+1,i,o);if(E.err)return E;var S=this.tryParseArgumentClose(w);if(S.err)return S;d.push([h,{value:E.val,location:he(w,this.clonePosition())}]),v.add(h),this.bumpSpace(),u=this.parseIdentifierIfPossible(),h=u.value,m=u.location}return d.length===0?this.error(i==="select"?pe.EXPECT_SELECT_ARGUMENT_SELECTOR:pe.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!c?this.error(pe.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:d,err:null}},e.prototype.tryParseDecimalInteger=function(n,i){var o=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var u=!1,c=0;!this.isEOF();){var d=this.char();if(d>=48&&d<=57)u=!0,c=c*10+(d-48),this.bump();else break}var v=he(s,this.clonePosition());return u?(c*=o,s6(c)?{val:c,err:null}:this.error(i,v)):this.error(n,v)},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 n=this.position.offset;if(n>=this.message.length)throw Error("out of bound");var i=km(this.message,n);if(i===void 0)throw Error("Offset ".concat(n," is at invalid UTF-16 code unit boundary"));return i},e.prototype.error=function(n,i){return{val:null,err:{kind:n,message:this.message,location:i}}},e.prototype.bump=function(){if(!this.isEOF()){var n=this.char();n===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=n<65536?1:2)}},e.prototype.bumpIf=function(n){if(v0(this.message,n,this.offset())){for(var i=0;i<n.length;i++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(n){var i=this.offset(),o=this.message.indexOf(n,i);return o>=0?(this.bumpTo(o),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(n){if(this.offset()>n)throw Error("targetOffset ".concat(n," must be greater than or equal to the current offset ").concat(this.offset()));for(n=Math.min(n,this.message.length);;){var i=this.offset();if(i===n)break;if(i>n)throw Error("targetOffset ".concat(n," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Lm(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var n=this.char(),i=this.offset(),o=this.message.charCodeAt(i+(n>=65536?2:1));return o??null},e})();function Ic(e){return e>=97&&e<=122||e>=65&&e<=90}function f6(e){return Ic(e)||e===47}function p6(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 Lm(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function h6(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 Lc(e){e.forEach(function(n){if(delete n.location,bm(n)||wm(n))for(var i in n.options)delete n.options[i].location,Lc(n.options[i].value);else gm(n)&&Em(n.style)||(ym(n)||xm(n))&&Pc(n.style)?delete n.style.location:Sm(n)&&Lc(n.children)})}function v6(e,n){n===void 0&&(n={}),n=ge({shouldParseSkeletons:!0,requiresOtherClause:!0},n);var i=new d6(e,n).parse();if(i.err){var o=SyntaxError(pe[i.err.kind]);throw o.location=i.err.location,o.originalMessage=i.err.message,o}return n?.captureLocation||Lc(i.val),i.val}function Uu(e,n){var i=n&&n.cache?n.cache:w6,o=n&&n.serializer?n.serializer:b6,s=n&&n.strategy?n.strategy:y6;return s(e,{cache:i,serializer:o})}function m6(e){return e==null||typeof e=="number"||typeof e=="boolean"}function g6(e,n,i,o){var s=m6(o)?o:i(o),u=n.get(s);return typeof u>"u"&&(u=e.call(this,o),n.set(s,u)),u}function Rm(e,n,i){var o=Array.prototype.slice.call(arguments,3),s=i(o),u=n.get(s);return typeof u>"u"&&(u=e.apply(this,o),n.set(s,u)),u}function _m(e,n,i,o,s){return i.bind(n,e,o,s)}function y6(e,n){var i=e.length===1?g6:Rm;return _m(e,this,i,n.cache.create(),n.serializer)}function x6(e,n){return _m(e,this,Rm,n.cache.create(),n.serializer)}var b6=function(){return JSON.stringify(arguments)};function nd(){this.cache=Object.create(null)}nd.prototype.get=function(e){return this.cache[e]};nd.prototype.set=function(e,n){this.cache[e]=n};var w6={create:function(){return new nd}},Ku={variadic:x6},oi;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(oi||(oi={}));var $s=(function(e){Es(n,e);function n(i,o,s){var u=e.call(this,i)||this;return u.code=o,u.originalMessage=s,u}return n.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},n})(Error),y0=(function(e){Es(n,e);function n(i,o,s,u){return e.call(this,'Invalid values for "'.concat(i,'": "').concat(o,'". Options are "').concat(Object.keys(s).join('", "'),'"'),oi.INVALID_VALUE,u)||this}return n})($s),S6=(function(e){Es(n,e);function n(i,o,s){return e.call(this,'Value for "'.concat(i,'" must be of type ').concat(o),oi.INVALID_VALUE,s)||this}return n})($s),E6=(function(e){Es(n,e);function n(i,o){return e.call(this,'The intl string context variable "'.concat(i,'" was not provided to the string "').concat(o,'"'),oi.MISSING_VALUE,o)||this}return n})($s),rt;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(rt||(rt={}));function $6(e){return e.length<2?e:e.reduce(function(n,i){var o=n[n.length-1];return!o||o.type!==rt.literal||i.type!==rt.literal?n.push(i):o.value+=i.value,n},[])}function P6(e){return typeof e=="function"}function Yl(e,n,i,o,s,u,c){if(e.length===1&&d0(e[0]))return[{type:rt.literal,value:e[0].value}];for(var d=[],v=0,h=e;v<h.length;v++){var m=h[v];if(d0(m)){d.push({type:rt.literal,value:m.value});continue}if(jw(m)){typeof u=="number"&&d.push({type:rt.literal,value:i.getNumberFormat(n).format(u)});continue}var g=m.value;if(!(s&&g in s))throw new E6(g,c);var y=s[g];if(Hw(m)){(!y||typeof y=="string"||typeof y=="number")&&(y=typeof y=="string"||typeof y=="number"?String(y):""),d.push({type:typeof y=="string"?rt.literal:rt.object,value:y});continue}if(ym(m)){var w=typeof m.style=="string"?o.date[m.style]:Pc(m.style)?m.style.parsedOptions:void 0;d.push({type:rt.literal,value:i.getDateTimeFormat(n,w).format(y)});continue}if(xm(m)){var w=typeof m.style=="string"?o.time[m.style]:Pc(m.style)?m.style.parsedOptions:o.time.medium;d.push({type:rt.literal,value:i.getDateTimeFormat(n,w).format(y)});continue}if(gm(m)){var w=typeof m.style=="string"?o.number[m.style]:Em(m.style)?m.style.parsedOptions:void 0;w&&w.scale&&(y=y*(w.scale||1)),d.push({type:rt.literal,value:i.getNumberFormat(n,w).format(y)});continue}if(Sm(m)){var E=m.children,S=m.value,P=s[S];if(!P6(P))throw new S6(S,"function",c);var A=Yl(E,n,i,o,s,u),I=P(A.map(function(_){return _.value}));Array.isArray(I)||(I=[I]),d.push.apply(d,I.map(function(_){return{type:typeof _=="string"?rt.literal:rt.object,value:_}}))}if(bm(m)){var R=m.options[y]||m.options.other;if(!R)throw new y0(m.value,y,Object.keys(m.options),c);d.push.apply(d,Yl(R.value,n,i,o,s));continue}if(wm(m)){var R=m.options["=".concat(y)];if(!R){if(!Intl.PluralRules)throw new $s(`Intl.PluralRules is not available in this environment.
|
|
52
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
53
|
+
`,oi.MISSING_INTL_API,c);var B=i.getPluralRules(n,{type:m.pluralType}).select(y-(m.offset||0));R=m.options[B]||m.options.other}if(!R)throw new y0(m.value,y,Object.keys(m.options),c);d.push.apply(d,Yl(R.value,n,i,o,s,y-(m.offset||0)));continue}}return $6(d)}function C6(e,n){return n?ge(ge(ge({},e||{}),n||{}),Object.keys(e).reduce(function(i,o){return i[o]=ge(ge({},e[o]),n[o]||{}),i},{})):e}function T6(e,n){return n?Object.keys(e).reduce(function(i,o){return i[o]=C6(e[o],n[o]),i},ge({},e)):e}function Wu(e){return{create:function(){return{get:function(n){return e[n]},set:function(n,i){e[n]=i}}}}}function k6(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Uu(function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((n=Intl.NumberFormat).bind.apply(n,Vu([void 0],i,!1)))},{cache:Wu(e.number),strategy:Ku.variadic}),getDateTimeFormat:Uu(function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((n=Intl.DateTimeFormat).bind.apply(n,Vu([void 0],i,!1)))},{cache:Wu(e.dateTime),strategy:Ku.variadic}),getPluralRules:Uu(function(){for(var n,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new((n=Intl.PluralRules).bind.apply(n,Vu([void 0],i,!1)))},{cache:Wu(e.pluralRules),strategy:Ku.variadic})}}var I6=(function(){function e(n,i,o,s){var u=this;if(i===void 0&&(i=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(v){var h=u.formatToParts(v);if(h.length===1)return h[0].value;var m=h.reduce(function(g,y){return!g.length||y.type!==rt.literal||typeof g[g.length-1]!="string"?g.push(y.value):g[g.length-1]+=y.value,g},[]);return m.length<=1?m[0]||"":m},this.formatToParts=function(v){return Yl(u.ast,u.locales,u.formatters,u.formats,v,void 0,u.message)},this.resolvedOptions=function(){var v;return{locale:((v=u.resolvedLocale)===null||v===void 0?void 0:v.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=i,this.resolvedLocale=e.resolveLocale(i),typeof n=="string"){if(this.message=n,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=s||{};c.formatters;var d=Bw(c,["formatters"]);this.ast=e.__parse(n,ge(ge({},d),{locale:this.resolvedLocale}))}else this.ast=n;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=T6(e.formats,o),this.formatters=s&&s.formatters||k6(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(n){if(!(typeof Intl.Locale>"u")){var i=Intl.NumberFormat.supportedLocalesOf(n);return i.length>0?new Intl.Locale(i[0]):new Intl.Locale(typeof n=="string"?n:n[0])}},e.__parse=v6,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})();class L6{getStringForLocale(n,i){let o=this.messages[i];o||(o=R6(i,this.messages,this.defaultLocale),this.messages[i]=o);let s=o[n];if(!s)throw new Error(`Could not find intl message ${n} in ${i} locale`);return s}constructor(n,i="en-US"){this.messages={...n},this.defaultLocale=i}}function R6(e,n,i="en-US"){if(n[e])return n[e];let o=_6(e);if(n[o])return n[o];for(let s in n)if(s.startsWith(o+"-"))return n[s];return n[i]}function _6(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}class M6{format(n,i){let o=this.cache[n];if(!o){let u=this.messages.getStringForLocale(n,this.locale);if(!u)throw new Error(`Could not find intl message ${n} in ${this.locale} locale`);o=new I6(u,this.locale),this.cache[n]=o}let s;return i&&(s=Object.keys(i).reduce((u,c)=>(u[c]=i[c]==null?!1:i[c],u),{})),o.format(s)}constructor(n,i){this.locale=n,this.messages=i,this.cache={}}}const x0=new WeakMap;function F6(e){let n=x0.get(e);return n||(n=new L6(e),x0.set(e,n)),n}function A6(e){let{locale:n}=si(),i=b.useMemo(()=>F6(e),[e]),o=b.useMemo(()=>new M6(n,i),[n,i]);return b.useCallback((s,u)=>o.format(s,u),[o])}function N6(e,n){let{elementType:i="button",isDisabled:o,onPress:s,onPressStart:u,onPressEnd:c,onPressUp:d,onPressChange:v,preventFocusOnPress:h,allowFocusWhenDisabled:m,onClick:g,href:y,target:w,rel:E,type:S="button"}=e,P;i==="button"?P={type:S,disabled:o}:P={role:"button",tabIndex:o?void 0:0,href:i==="a"&&o?void 0:y,target:i==="a"?w:void 0,type:i==="input"?S:void 0,disabled:i==="input"?o:void 0,"aria-disabled":!o||i==="input"?void 0:o,rel:i==="a"?E:void 0};let{pressProps:A,isPressed:I}=ar({onPressStart:u,onPressEnd:c,onPressChange:v,onPress:s,onPressUp:d,isDisabled:o,preventFocusOnPress:h,ref:n}),{focusableProps:R}=bo(e,n);m&&(R.tabIndex=o?-1:R.tabIndex);let B=Ae(R,A,pr(e,{labelable:!0}));return{isPressed:I,buttonProps:Ae(P,B,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:_=>{g&&(g(_),console.warn("onClick is deprecated, please use onPress"))}})}}function Mm(e,n,i){let{validationBehavior:o,focus:s}=e;bt(()=>{if(o==="native"&&i?.current){let v=n.realtimeValidation.isInvalid?n.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";i.current.setCustomValidity(v),i.current.hasAttribute("title")||(i.current.title=""),n.realtimeValidation.isInvalid||n.updateValidation(O6(i.current))}});let u=it(()=>{n.resetValidation()}),c=it(v=>{var h;n.displayValidation.isInvalid||n.commitValidation();let m=i==null||(h=i.current)===null||h===void 0?void 0:h.form;if(!v.defaultPrevented&&i&&m&&B6(m)===i.current){var g;s?s():(g=i.current)===null||g===void 0||g.focus(),cw("keyboard")}v.preventDefault()}),d=it(()=>{n.commitValidation()});b.useEffect(()=>{let v=i?.current;if(!v)return;let h=v.form;return v.addEventListener("invalid",c),v.addEventListener("change",d),h?.addEventListener("reset",u),()=>{v.removeEventListener("invalid",c),v.removeEventListener("change",d),h?.removeEventListener("reset",u)}},[i,c,d,u,o])}function D6(e){let n=e.validity;return{badInput:n.badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid}}function O6(e){return{isInvalid:!e.validity.valid,validationDetails:D6(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function B6(e){for(let n=0;n<e.elements.length;n++){let i=e.elements[n];if(!i.validity.valid)return i}return null}function H6(e,n,i){let{isDisabled:o=!1,isReadOnly:s=!1,value:u,name:c,children:d,"aria-label":v,"aria-labelledby":h,validationState:m="valid",isInvalid:g}=e,y=V=>{V.stopPropagation(),n.setSelected(V.target.checked)},w=d!=null,E=v!=null||h!=null;!w&&!E&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:S,isPressed:P}=ar({isDisabled:o}),{pressProps:A,isPressed:I}=ar({isDisabled:o||s,onPress(){n.toggle()}}),{focusableProps:R}=bo(e,i),B=Ae(S,R),_=pr(e,{labelable:!0});return nm(i,n.isSelected,n.setSelected),{labelProps:Ae(A,{onClick:V=>V.preventDefault()}),inputProps:Ae(_,{"aria-invalid":g||m==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":s||void 0,onChange:y,disabled:o,...u==null?{}:{value:u},name:c,type:"checkbox",...B}),isSelected:n.isSelected,isPressed:P||I,isDisabled:o,isReadOnly:s,isInvalid:g||m==="invalid"}}function j6(e){let{id:n,label:i,"aria-labelledby":o,"aria-label":s,labelElementType:u="label"}=e;n=ri(n);let c=ri(),d={};i?(o=o?`${c} ${o}`:c,d={id:c,htmlFor:u==="label"?n:void 0}):!o&&!s&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let v=Jv({id:n,"aria-label":s,"aria-labelledby":o});return{labelProps:d,fieldProps:v}}function Fm(e){let{description:n,errorMessage:i,isInvalid:o,validationState:s}=e,{labelProps:u,fieldProps:c}=j6(e),d=vc([!!n,!!i,o,s]),v=vc([!!n,!!i,o,s]);return c=Ae(c,{"aria-describedby":[d,v,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:u,fieldProps:c,descriptionProps:{id:d},errorMessageProps:{id:v}}}function Am(e,n,i){let o=gs({...e,value:n.isSelected}),{isInvalid:s,validationErrors:u,validationDetails:c}=o.displayValidation,{labelProps:d,inputProps:v,isSelected:h,isPressed:m,isDisabled:g,isReadOnly:y}=H6({...e,isInvalid:s},n,i);Mm(e,o,i);let{isIndeterminate:w,isRequired:E,validationBehavior:S="aria"}=e;return b.useEffect(()=>{i.current&&(i.current.indeterminate=!!w)}),{labelProps:d,inputProps:{...v,checked:h,"aria-required":E&&S==="aria"||void 0,required:E&&S==="native"},isSelected:h,isPressed:m,isDisabled:g,isReadOnly:y,isInvalid:s,validationErrors:u,validationDetails:c}}const Nm=new WeakMap;function V6(e,n){let{isDisabled:i,name:o,validationBehavior:s="aria"}=e,{isInvalid:u,validationErrors:c,validationDetails:d}=n.displayValidation,{labelProps:v,fieldProps:h,descriptionProps:m,errorMessageProps:g}=Fm({...e,labelElementType:"span",isInvalid:u,errorMessage:e.errorMessage||c});Nm.set(n,{name:o,descriptionId:m.id,errorMessageId:g.id,validationBehavior:s});let y=pr(e,{labelable:!0}),{focusWithinProps:w}=xo({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:Ae(y,{role:"group","aria-disabled":i||void 0,...h,...w}),labelProps:v,descriptionProps:m,errorMessageProps:g,isInvalid:u,validationErrors:c,validationDetails:d}}function z6(e,n,i){const o=Kv({isReadOnly:e.isReadOnly||n.isReadOnly,isSelected:n.isSelected(e.value),onChange(P){P?n.addValue(e.value):n.removeValue(e.value),e.onChange&&e.onChange(P)}});let{name:s,descriptionId:u,errorMessageId:c,validationBehavior:d}=Nm.get(n);var v;d=(v=e.validationBehavior)!==null&&v!==void 0?v:d;let{realtimeValidation:h}=gs({...e,value:o.isSelected,name:void 0,validationBehavior:"aria"}),m=b.useRef(Wr),g=()=>{n.setInvalid(e.value,h.isInvalid?h:m.current)};b.useEffect(g);let y=n.realtimeValidation.isInvalid?n.realtimeValidation:h,w=d==="native"?n.displayValidation:y;var E;let S=Am({...e,isReadOnly:e.isReadOnly||n.isReadOnly,isDisabled:e.isDisabled||n.isDisabled,name:e.name||s,isRequired:(E=e.isRequired)!==null&&E!==void 0?E:n.isRequired,validationBehavior:d,[pc]:{realtimeValidation:y,displayValidation:w,resetValidation:n.resetValidation,commitValidation:n.commitValidation,updateValidation(P){m.current=P,g()}}},o,i);return{...S,inputProps:{...S.inputProps,"aria-describedby":[e["aria-describedby"],n.isInvalid?c:null,u].filter(Boolean).join(" ")||void 0}}}var Dm={};Dm={dismiss:"تجاهل"};var Om={};Om={dismiss:"Отхвърляне"};var Bm={};Bm={dismiss:"Odstranit"};var Hm={};Hm={dismiss:"Luk"};var jm={};jm={dismiss:"Schließen"};var Vm={};Vm={dismiss:"Απόρριψη"};var zm={};zm={dismiss:"Dismiss"};var Um={};Um={dismiss:"Descartar"};var Km={};Km={dismiss:"Lõpeta"};var Wm={};Wm={dismiss:"Hylkää"};var Gm={};Gm={dismiss:"Rejeter"};var Zm={};Zm={dismiss:"התעלם"};var qm={};qm={dismiss:"Odbaci"};var Xm={};Xm={dismiss:"Elutasítás"};var Ym={};Ym={dismiss:"Ignora"};var Qm={};Qm={dismiss:"閉じる"};var Jm={};Jm={dismiss:"무시"};var eg={};eg={dismiss:"Atmesti"};var tg={};tg={dismiss:"Nerādīt"};var ng={};ng={dismiss:"Lukk"};var rg={};rg={dismiss:"Negeren"};var ig={};ig={dismiss:"Zignoruj"};var og={};og={dismiss:"Descartar"};var lg={};lg={dismiss:"Dispensar"};var sg={};sg={dismiss:"Revocare"};var ag={};ag={dismiss:"Пропустить"};var ug={};ug={dismiss:"Zrušiť"};var cg={};cg={dismiss:"Opusti"};var dg={};dg={dismiss:"Odbaci"};var fg={};fg={dismiss:"Avvisa"};var pg={};pg={dismiss:"Kapat"};var hg={};hg={dismiss:"Скасувати"};var vg={};vg={dismiss:"取消"};var mg={};mg={dismiss:"關閉"};var rd=tv();const ro=ps(rd),b0={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function U6(e={}){let{style:n,isFocusable:i}=e,[o,s]=b.useState(!1),{focusWithinProps:u}=xo({isDisabled:!i,onFocusWithinChange:d=>s(d)}),c=b.useMemo(()=>o?n:n?{...b0,...n}:b0,[o]);return{visuallyHiddenProps:{...u,style:c}}}function K6(e){let{children:n,elementType:i="div",isFocusable:o,style:s,...u}=e,{visuallyHiddenProps:c}=U6(e);return ce.createElement(i,Ae(u,c),n)}function W6(e){return e&&e.__esModule?e.default:e}const Yr={top:"top",bottom:"top",left:"left",right:"left"},ls={top:"bottom",bottom:"top",left:"right",right:"left"},G6={top:"left",left:"top"},Rc={top:"height",left:"width"},gg={width:"totalWidth",height:"totalHeight"},zl={};let ft=typeof document<"u"&&window.visualViewport;function w0(e){let n=0,i=0,o=0,s=0,u=0,c=0,d={},v=ft?.scale>1;if(e.tagName==="BODY"){let g=document.documentElement;o=g.clientWidth,s=g.clientHeight;var h;n=(h=ft?.width)!==null&&h!==void 0?h:o;var m;i=(m=ft?.height)!==null&&m!==void 0?m:s,d.top=g.scrollTop||e.scrollTop,d.left=g.scrollLeft||e.scrollLeft,ft&&(u=ft.offsetTop,c=ft.offsetLeft)}else({width:n,height:i,top:u,left:c}=ei(e)),d.top=e.scrollTop,d.left=e.scrollLeft,o=n,s=i;return Zv()&&(e.tagName==="BODY"||e.tagName==="HTML")&&v&&(d.top=0,d.left=0,u=ft.pageTop,c=ft.pageLeft),{width:n,height:i,totalWidth:o,totalHeight:s,scroll:d,top:u,left:c}}function Z6(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function S0(e,n,i,o,s,u,c){let d=s.scroll[e],v=o[Rc[e]],h=o.scroll[Yr[e]]+u,m=v+o.scroll[Yr[e]]-u,g=n-d+c[e]-o[Yr[e]],y=n-d+i+c[e]-o[Yr[e]];return g<h?h-g:y>m?Math.max(m-y,h-g):0}function q6(e){let n=window.getComputedStyle(e);return{top:parseInt(n.marginTop,10)||0,bottom:parseInt(n.marginBottom,10)||0,left:parseInt(n.marginLeft,10)||0,right:parseInt(n.marginRight,10)||0}}function E0(e){if(zl[e])return zl[e];let[n,i]=e.split(" "),o=Yr[n]||"right",s=G6[o];Yr[i]||(i="center");let u=Rc[o],c=Rc[s];return zl[e]={placement:n,crossPlacement:i,axis:o,crossAxis:s,size:u,crossSize:c},zl[e]}function Gu(e,n,i,o,s,u,c,d,v,h){let{placement:m,crossPlacement:g,axis:y,crossAxis:w,size:E,crossSize:S}=o,P={};P[w]=e[w],g==="center"?P[w]+=(e[S]-i[S])/2:g!==w&&(P[w]+=e[S]-i[S]),P[w]+=u;const A=e[w]-i[S]+v+h,I=e[w]+e[S]-v-h;if(P[w]=fc(P[w],A,I),m===y){const R=d?c[E]:n[gg[E]];P[ls[y]]=Math.floor(R-e[y]+s)}else P[y]=Math.floor(e[y]+e[E]+s);return P}function X6(e,n,i,o,s,u,c,d){const v=o?i.height:n[gg.height];let h=e.top!=null?i.top+e.top:i.top+(v-e.bottom-c),m=d!=="top"?Math.max(0,n.height+n.top+n.scroll.top-h-(s.top+s.bottom+u)):Math.max(0,h+c-(n.top+n.scroll.top)-(s.top+s.bottom+u));return Math.min(n.height-u*2,m)}function $0(e,n,i,o,s,u){let{placement:c,axis:d,size:v}=u;return c===d?Math.max(0,i[d]-e[d]-e.scroll[d]+n[d]-o[d]-o[ls[d]]-s):Math.max(0,e[v]+e[d]+e.scroll[d]-n[d]-i[d]-i[v]-o[d]-o[ls[d]]-s)}function Y6(e,n,i,o,s,u,c,d,v,h,m,g,y,w,E,S){let P=E0(e),{size:A,crossAxis:I,crossSize:R,placement:B,crossPlacement:_}=P,V=Gu(n,d,i,P,m,g,h,y,E,S),W=m,T=$0(d,h,n,s,u+m,P);if(c&&o[A]>T){let ee=E0(`${ls[B]} ${_}`),z=Gu(n,d,i,ee,m,g,h,y,E,S);$0(d,h,n,s,u+m,ee)>T&&(P=ee,V=z,W=m)}let U="bottom";P.axis==="top"?P.placement==="top"?U="top":P.placement==="bottom"&&(U="bottom"):P.crossAxis==="top"&&(P.crossPlacement==="top"?U="bottom":P.crossPlacement==="bottom"&&(U="top"));let O=S0(I,V[I],i[R],d,v,u,h);V[I]+=O;let H=X6(V,d,h,y,s,u,i.height,U);w&&w<H&&(H=w),i.height=Math.min(i.height,H),V=Gu(n,d,i,P,W,g,h,y,E,S),O=S0(I,V[I],i[R],d,v,u,h),V[I]+=O;let ne={},D=n[I]+.5*n[R]-i[I];const j=E/2+S,ue=i[R]-E/2-S,xe=n[I]-i[I]+E/2,Y=n[I]+n[R]-i[I]-E/2,X=fc(D,xe,Y);return ne[I]=fc(X,j,ue),{position:V,maxHeight:H,arrowOffsetLeft:ne.left,arrowOffsetTop:ne.top,placement:P.placement}}function Q6(e){let{placement:n,targetNode:i,overlayNode:o,scrollNode:s,padding:u,shouldFlip:c,boundaryElement:d,offset:v,crossOffset:h,maxHeight:m,arrowSize:g=0,arrowBoundaryOffset:y=0}=e,w=o instanceof HTMLElement?J6(o):document.documentElement,E=w===document.documentElement;const S=window.getComputedStyle(w).position;let P=!!S&&S!=="static",A=E?ei(i):P0(i,w);if(!E){let{marginTop:T,marginLeft:U}=window.getComputedStyle(i);A.top+=parseInt(T,10)||0,A.left+=parseInt(U,10)||0}let I=ei(o),R=q6(o);I.width+=R.left+R.right,I.height+=R.top+R.bottom;let B=Z6(s),_=w0(d),V=w0(w),W=d.tagName==="BODY"?ei(w):P0(w,d);return w.tagName==="HTML"&&d.tagName==="BODY"&&(V.scroll.top=0,V.scroll.left=0),Y6(n,A,I,B,R,u,c,_,V,W,v,h,P,m,g,y)}function ei(e){let{top:n,left:i,width:o,height:s}=e.getBoundingClientRect(),{scrollTop:u,scrollLeft:c,clientTop:d,clientLeft:v}=document.documentElement;return{top:n+u-d,left:i+c-v,width:o,height:s}}function P0(e,n){let i=window.getComputedStyle(e),o;if(i.position==="fixed"){let{top:s,left:u,width:c,height:d}=e.getBoundingClientRect();o={top:s,left:u,width:c,height:d}}else{o=ei(e);let s=ei(n),u=window.getComputedStyle(n);s.top+=(parseInt(u.borderTopWidth,10)||0)-n.scrollTop,s.left+=(parseInt(u.borderLeftWidth,10)||0)-n.scrollLeft,o.top-=s.top,o.left-=s.left}return o.top-=parseInt(i.marginTop,10)||0,o.left-=parseInt(i.marginLeft,10)||0,o}function J6(e){let n=e.offsetParent;if(n&&n===document.body&&window.getComputedStyle(n).position==="static"&&!C0(n)&&(n=document.documentElement),n==null)for(n=e.parentElement;n&&!C0(n);)n=n.parentElement;return n||document.documentElement}function C0(e){let n=window.getComputedStyle(e);return n.transform!=="none"||/transform|perspective/.test(n.willChange)||n.filter!=="none"||n.contain==="paint"||"backdropFilter"in n&&n.backdropFilter!=="none"||"WebkitBackdropFilter"in n&&n.WebkitBackdropFilter!=="none"}const e4=new WeakMap;function t4(e){let{triggerRef:n,isOpen:i,onClose:o}=e;b.useEffect(()=>{if(!i||o===null)return;let s=u=>{let c=u.target;if(!n.current||c instanceof Node&&!c.contains(n.current))return;let d=o||e4.get(n.current);d&&d()};return window.addEventListener("scroll",s,!0),()=>{window.removeEventListener("scroll",s,!0)}},[i,o,n])}let Oe=typeof document<"u"&&window.visualViewport;function n4(e){let{direction:n}=si(),{arrowSize:i=0,targetRef:o,overlayRef:s,scrollRef:u=s,placement:c="bottom",containerPadding:d=12,shouldFlip:v=!0,boundaryElement:h=typeof document<"u"?document.body:null,offset:m=0,crossOffset:g=0,shouldUpdatePosition:y=!0,isOpen:w=!0,onClose:E,maxHeight:S,arrowBoundaryOffset:P=0}=e,[A,I]=b.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),R=[y,c,s.current,o.current,u.current,d,v,h,m,g,w,n,S,P,i],B=b.useRef(Oe?.scale);b.useEffect(()=>{w&&(B.current=Oe?.scale)},[w]);let _=b.useCallback(()=>{if(y===!1||!w||!s.current||!o.current||!u.current||!h||Oe?.scale!==B.current)return;!S&&s.current&&(s.current.style.maxHeight="none");let T=Q6({placement:i4(c,n),overlayNode:s.current,targetNode:o.current,scrollNode:u.current,padding:d,shouldFlip:v,boundaryElement:h,offset:m,crossOffset:g,maxHeight:S,arrowSize:i,arrowBoundaryOffset:P});Object.keys(T.position).forEach(U=>s.current.style[U]=T.position[U]+"px"),s.current.style.maxHeight=T.maxHeight!=null?T.maxHeight+"px":void 0,I(T)},R);bt(_,R),r4(_),Gb({ref:s,onResize:_});let V=b.useRef(!1);bt(()=>{let T,U=()=>{V.current=!0,clearTimeout(T),T=setTimeout(()=>{V.current=!1},500),_()},O=()=>{V.current&&U()};return Oe?.addEventListener("resize",U),Oe?.addEventListener("scroll",O),()=>{Oe?.removeEventListener("resize",U),Oe?.removeEventListener("scroll",O)}},[_]);let W=b.useCallback(()=>{V.current||E()},[E,V]);return t4({triggerRef:o,isOpen:w,onClose:E&&W}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...A.position,maxHeight:A.maxHeight}},placement:A.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:A.arrowOffsetLeft,top:A.arrowOffsetTop}},updatePosition:_}}function r4(e){bt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function i4(e,n){return n==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const un=[];function o4(e,n){let{onClose:i,shouldCloseOnBlur:o,isOpen:s,isDismissable:u=!1,isKeyboardDismissDisabled:c=!1,shouldCloseOnInteractOutside:d}=e;b.useEffect(()=>(s&&un.push(n),()=>{let E=un.indexOf(n);E>=0&&un.splice(E,1)}),[s,n]);let v=()=>{un[un.length-1]===n&&i&&i()},h=E=>{(!d||d(E.target))&&un[un.length-1]===n&&(E.stopPropagation(),E.preventDefault())},m=E=>{(!d||d(E.target))&&(un[un.length-1]===n&&(E.stopPropagation(),E.preventDefault()),v())},g=E=>{E.key==="Escape"&&!c&&(E.stopPropagation(),E.preventDefault(),v())};vw({ref:n,onInteractOutside:u&&s?m:null,onInteractOutsideStart:h});let{focusWithinProps:y}=xo({isDisabled:!o,onBlurWithin:E=>{!E.relatedTarget||Pw(E.relatedTarget)||(!d||d(E.relatedTarget))&&i()}}),w=E=>{E.target===E.currentTarget&&E.preventDefault()};return{overlayProps:{onKeyDown:g,...y},underlayProps:{onPointerDown:w}}}const Zu=typeof document<"u"&&window.visualViewport,l4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ul=0,qu;function s4(e={}){let{isDisabled:n}=e;bt(()=>{if(!n)return Ul++,Ul===1&&(bs()?qu=u4():qu=a4()),()=>{Ul--,Ul===0&&qu()}},[n])}function a4(){return co(Qr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qr(document.documentElement,"overflow","hidden"))}function u4(){let e,n,i=h=>{e=ts(h.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(n=Qr(e,"overscrollBehavior","contain"))},o=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&h.preventDefault()},s=h=>{let m=h.target;k0(m)&&m!==document.activeElement&&(h.preventDefault(),d(),m.style.transform="translateY(-2000px)",m.focus(),requestAnimationFrame(()=>{m.style.transform=""})),n&&n()},u=h=>{let m=h.target;k0(m)&&(d(),m.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{m.style.transform="",Zu&&(Zu.height<window.innerHeight?requestAnimationFrame(()=>{T0(m)}):Zu.addEventListener("resize",()=>T0(m),{once:!0}))}))},c=null,d=()=>{if(c)return;let h=()=>{window.scrollTo(0,0)},m=window.pageXOffset,g=window.pageYOffset;c=co(Qi(window,"scroll",h),Qr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),Qr(document.documentElement,"overflow","hidden"),Qr(document.body,"marginTop",`-${g}px`),()=>{window.scrollTo(m,g)}),window.scrollTo(0,0)},v=co(Qi(document,"touchstart",i,{passive:!1,capture:!0}),Qi(document,"touchmove",o,{passive:!1,capture:!0}),Qi(document,"touchend",s,{passive:!1,capture:!0}),Qi(document,"focus",u,!0));return()=>{n?.(),c?.(),v()}}function Qr(e,n,i){let o=e.style[n];return e.style[n]=i,()=>{e.style[n]=o}}function Qi(e,n,i,o){return e.addEventListener(n,i,o),()=>{e.removeEventListener(n,i,o)}}function T0(e){let n=document.scrollingElement||document.documentElement;for(;e&&e!==n;){let i=ts(e);if(i!==document.documentElement&&i!==document.body&&i!==e){let o=i.getBoundingClientRect().top,s=e.getBoundingClientRect().top;s>o+e.clientHeight&&(i.scrollTop+=s-o)}e=i.parentElement}}function k0(e){return e instanceof HTMLInputElement&&!l4.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const _c=ce.createContext(null);function c4(e){let{children:n}=e,i=b.useContext(_c),[o,s]=b.useState(0),u=b.useMemo(()=>({parent:i,modalCount:o,addModal(){s(c=>c+1),i&&i.addModal()},removeModal(){s(c=>c-1),i&&i.removeModal()}}),[i,o]);return ce.createElement(_c.Provider,{value:u},n)}function d4(e){let n=b.useContext(_c);if(!n)throw new Error("Modal is not contained within a provider");return b.useEffect(()=>{if(!(e?.isDisabled||!n||!n.parent))return n.parent.addModal(),()=>{n&&n.parent&&n.parent.removeModal()}},[n,n.parent,e?.isDisabled]),{modalProps:{"data-ismodal":!e?.isDisabled}}}var yg={};yg={"ar-AE":Dm,"bg-BG":Om,"cs-CZ":Bm,"da-DK":Hm,"de-DE":jm,"el-GR":Vm,"en-US":zm,"es-ES":Um,"et-EE":Km,"fi-FI":Wm,"fr-FR":Gm,"he-IL":Zm,"hr-HR":qm,"hu-HU":Xm,"it-IT":Ym,"ja-JP":Qm,"ko-KR":Jm,"lt-LT":eg,"lv-LV":tg,"nb-NO":ng,"nl-NL":rg,"pl-PL":ig,"pt-BR":og,"pt-PT":lg,"ro-RO":sg,"ru-RU":ag,"sk-SK":ug,"sl-SI":cg,"sr-SP":dg,"sv-SE":fg,"tr-TR":pg,"uk-UA":hg,"zh-CN":vg,"zh-TW":mg};function f4(e){let{onDismiss:n,...i}=e,o=Dw(W6(yg),"@react-aria/overlays"),s=Jv(i,o.format("dismiss")),u=()=>{n&&n()};return ce.createElement(K6,null,ce.createElement("button",{...s,tabIndex:-1,onClick:u,style:{width:1,height:1}}))}const p4=ce.createContext(null);function h4(){let e=b.useContext(p4),n=e?.setContain;bt(()=>{n?.(!0)},[n])}function Mc(e){return Bb()?e.altKey:e.ctrlKey}function Zr(e){return lr()?e.metaKey:e.ctrlKey}const v4=1e3;function m4(e){let{keyboardDelegate:n,selectionManager:i,onTypeSelect:o}=e,s=b.useRef({search:"",timeout:null}).current,u=c=>{let d=g4(c.key);if(!d||c.ctrlKey||c.metaKey||!c.currentTarget.contains(c.target))return;d===" "&&s.search.trim().length>0&&(c.preventDefault(),"continuePropagation"in c||c.stopPropagation()),s.search+=d;let v=n.getKeyForSearch(s.search,i.focusedKey);v==null&&(v=n.getKeyForSearch(s.search)),v!=null&&(i.setFocusedKey(v),o&&o(v)),clearTimeout(s.timeout),s.timeout=setTimeout(()=>{s.search=""},v4)};return{typeSelectProps:{onKeyDownCapture:n.getKeyForSearch?u:null}}}function g4(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function y4(e){let{selectionManager:n,keyboardDelegate:i,ref:o,autoFocus:s=!1,shouldFocusWrap:u=!1,disallowEmptySelection:c=!1,disallowSelectAll:d=!1,selectOnFocus:v=n.selectionBehavior==="replace",disallowTypeAhead:h=!1,shouldUseVirtualFocus:m,allowsTabNavigation:g=!1,isVirtualized:y,scrollRef:w=o,linkBehavior:E="action"}=e,{direction:S}=si(),P=Xv(),A=O=>{if(O.altKey&&O.key==="Tab"&&O.preventDefault(),!o.current.contains(O.target))return;const H=(z,de)=>{if(z!=null){if(n.isLink(z)&&E==="selection"&&v&&!Mc(O)){rd.flushSync(()=>{n.setFocusedKey(z,de)});let fe=w.current.querySelector(`[data-key="${CSS.escape(z.toString())}"]`);P.open(fe,O);return}if(n.setFocusedKey(z,de),n.isLink(z)&&E==="override")return;O.shiftKey&&n.selectionMode==="multiple"?n.extendSelection(z):v&&!Mc(O)&&n.replaceSelection(z)}};switch(O.key){case"ArrowDown":if(i.getKeyBelow){var ne,D;O.preventDefault();let z=n.focusedKey!=null?i.getKeyBelow(n.focusedKey):(ne=i.getFirstKey)===null||ne===void 0?void 0:ne.call(i);z==null&&u&&(z=(D=i.getFirstKey)===null||D===void 0?void 0:D.call(i,n.focusedKey)),H(z)}break;case"ArrowUp":if(i.getKeyAbove){var j,ue;O.preventDefault();let z=n.focusedKey!=null?i.getKeyAbove(n.focusedKey):(j=i.getLastKey)===null||j===void 0?void 0:j.call(i);z==null&&u&&(z=(ue=i.getLastKey)===null||ue===void 0?void 0:ue.call(i,n.focusedKey)),H(z)}break;case"ArrowLeft":if(i.getKeyLeftOf){var xe,Y;O.preventDefault();let z=i.getKeyLeftOf(n.focusedKey);z==null&&u&&(z=S==="rtl"?(xe=i.getFirstKey)===null||xe===void 0?void 0:xe.call(i,n.focusedKey):(Y=i.getLastKey)===null||Y===void 0?void 0:Y.call(i,n.focusedKey)),H(z,S==="rtl"?"first":"last")}break;case"ArrowRight":if(i.getKeyRightOf){var X,ee;O.preventDefault();let z=i.getKeyRightOf(n.focusedKey);z==null&&u&&(z=S==="rtl"?(X=i.getLastKey)===null||X===void 0?void 0:X.call(i,n.focusedKey):(ee=i.getFirstKey)===null||ee===void 0?void 0:ee.call(i,n.focusedKey)),H(z,S==="rtl"?"last":"first")}break;case"Home":if(i.getFirstKey){O.preventDefault();let z=i.getFirstKey(n.focusedKey,Zr(O));n.setFocusedKey(z),Zr(O)&&O.shiftKey&&n.selectionMode==="multiple"?n.extendSelection(z):v&&n.replaceSelection(z)}break;case"End":if(i.getLastKey){O.preventDefault();let z=i.getLastKey(n.focusedKey,Zr(O));n.setFocusedKey(z),Zr(O)&&O.shiftKey&&n.selectionMode==="multiple"?n.extendSelection(z):v&&n.replaceSelection(z)}break;case"PageDown":if(i.getKeyPageBelow){O.preventDefault();let z=i.getKeyPageBelow(n.focusedKey);H(z)}break;case"PageUp":if(i.getKeyPageAbove){O.preventDefault();let z=i.getKeyPageAbove(n.focusedKey);H(z)}break;case"a":Zr(O)&&n.selectionMode==="multiple"&&d!==!0&&(O.preventDefault(),n.selectAll());break;case"Escape":O.preventDefault(),c||n.clearSelection();break;case"Tab":if(!g){if(O.shiftKey)o.current.focus();else{let z=pm(o.current,{tabbable:!0}),de,fe;do fe=z.lastChild(),fe&&(de=fe);while(fe);de&&!de.contains(document.activeElement)&&cn(de)}break}}},I=b.useRef({top:0,left:0});Xb(w,"scroll",y?null:()=>{I.current={top:w.current.scrollTop,left:w.current.scrollLeft}});let R=O=>{if(n.isFocused){O.currentTarget.contains(O.target)||n.setFocused(!1);return}if(O.currentTarget.contains(O.target)){if(n.setFocused(!0),n.focusedKey==null){let D=ue=>{ue!=null&&(n.setFocusedKey(ue),v&&n.replaceSelection(ue))},j=O.relatedTarget;var H,ne;j&&O.currentTarget.compareDocumentPosition(j)&Node.DOCUMENT_POSITION_FOLLOWING?D((H=n.lastSelectedKey)!==null&&H!==void 0?H:i.getLastKey()):D((ne=n.firstSelectedKey)!==null&&ne!==void 0?ne:i.getFirstKey())}else y||(w.current.scrollTop=I.current.top,w.current.scrollLeft=I.current.left);if(!y&&n.focusedKey!=null){let D=w.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);D&&(D.contains(document.activeElement)||cn(D),is()==="keyboard"&&Jh(D,{containingElement:o.current}))}}},B=O=>{O.currentTarget.contains(O.relatedTarget)||n.setFocused(!1)};const _=b.useRef(s);b.useEffect(()=>{if(_.current){let O=null;s==="first"&&(O=i.getFirstKey()),s==="last"&&(O=i.getLastKey());let H=n.selectedKeys;if(H.size){for(let ne of H)if(n.canSelectItem(ne)){O=ne;break}}n.setFocused(!0),n.setFocusedKey(O),O==null&&!m&&cr(o.current)}},[]);let V=b.useRef(n.focusedKey);b.useEffect(()=>{let O=is();if(n.isFocused&&n.focusedKey!=null&&w?.current){let H=w.current.querySelector(`[data-key="${CSS.escape(n.focusedKey.toString())}"]`);H&&(O==="keyboard"||_.current)&&(y||tm(w.current,H),O!=="virtual"&&Jh(H,{containingElement:o.current}))}n.isFocused&&n.focusedKey==null&&V.current!=null&&cr(o.current),V.current=n.focusedKey,_.current=!1},[y,w,n.focusedKey,n.isFocused,o]);let W={onKeyDown:A,onFocus:R,onBlur:B,onMouseDown(O){w.current===O.target&&O.preventDefault()}},{typeSelectProps:T}=m4({keyboardDelegate:i,selectionManager:n});h||(W=Ae(T,W));let U;return m||(U=n.focusedKey==null?0:-1),{collectionProps:{...W,tabIndex:U}}}function x4(e){let{selectionManager:n,key:i,ref:o,shouldSelectOnPressUp:s,shouldUseVirtualFocus:u,focus:c,isDisabled:d,onAction:v,allowsDifferentPressOrigin:h,linkBehavior:m="action"}=e,g=Xv(),y=Y=>{if(Y.pointerType==="keyboard"&&Mc(Y))n.toggleSelection(i);else{if(n.selectionMode==="none")return;if(n.isLink(i)){if(m==="selection"){g.open(o.current,Y),n.setSelectedKeys(n.selectedKeys);return}else if(m==="override"||m==="none")return}n.selectionMode==="single"?n.isSelected(i)&&!n.disallowEmptySelection?n.toggleSelection(i):n.replaceSelection(i):Y&&Y.shiftKey?n.extendSelection(i):n.selectionBehavior==="toggle"||Y&&(Zr(Y)||Y.pointerType==="touch"||Y.pointerType==="virtual")?n.toggleSelection(i):n.replaceSelection(i)}};b.useEffect(()=>{i===n.focusedKey&&n.isFocused&&!u&&(c?c():document.activeElement!==o.current&&cr(o.current))},[o,i,n.focusedKey,n.childFocusStrategy,n.isFocused,u]),d=d||n.isDisabled(i);let w={};!u&&!d?w={tabIndex:i===n.focusedKey?0:-1,onFocus(Y){Y.target===o.current&&n.setFocusedKey(i)}}:d&&(w.onMouseDown=Y=>{Y.preventDefault()});let E=n.isLink(i)&&m==="override",S=n.isLink(i)&&m!=="selection"&&m!=="none",P=!d&&n.canSelectItem(i)&&!E,A=(v||S)&&!d,I=A&&(n.selectionBehavior==="replace"?!P:!P||n.isEmpty),R=A&&P&&n.selectionBehavior==="replace",B=I||R,_=b.useRef(null),V=B&&P,W=b.useRef(!1),T=b.useRef(!1),U=Y=>{v&&v(),S&&g.open(o.current,Y)},O={};s?(O.onPressStart=Y=>{_.current=Y.pointerType,W.current=V,Y.pointerType==="keyboard"&&(!B||L0())&&y(Y)},h?(O.onPressUp=I?null:Y=>{Y.pointerType!=="keyboard"&&P&&y(Y)},O.onPress=I?U:null):O.onPress=Y=>{if(I||R&&Y.pointerType!=="mouse"){if(Y.pointerType==="keyboard"&&!I0())return;U(Y)}else Y.pointerType!=="keyboard"&&P&&y(Y)}):(O.onPressStart=Y=>{_.current=Y.pointerType,W.current=V,T.current=I,P&&(Y.pointerType==="mouse"&&!I||Y.pointerType==="keyboard"&&(!A||L0()))&&y(Y)},O.onPress=Y=>{(Y.pointerType==="touch"||Y.pointerType==="pen"||Y.pointerType==="virtual"||Y.pointerType==="keyboard"&&B&&I0()||Y.pointerType==="mouse"&&T.current)&&(B?U(Y):P&&y(Y))}),w["data-key"]=i,O.preventFocusOnPress=u;let{pressProps:H,isPressed:ne}=ar(O),D=R?Y=>{_.current==="mouse"&&(Y.stopPropagation(),Y.preventDefault(),U(Y))}:void 0,{longPressProps:j}=yw({isDisabled:!V,onLongPress(Y){Y.pointerType==="touch"&&(y(Y),n.setSelectionBehavior("toggle"))}}),ue=Y=>{_.current==="touch"&&W.current&&Y.preventDefault()},xe=n.isLink(i)?Y=>{sr.isOpening||Y.preventDefault()}:void 0;return{itemProps:Ae(w,P||I?H:{},V?j:{},{onDoubleClick:D,onDragStartCapture:ue,onClick:xe}),isPressed:ne,isSelected:n.isSelected(i),isFocused:n.isFocused&&n.focusedKey===i,isDisabled:d,allowsSelection:P,hasAction:B}}function I0(){let e=window.event;return e?.key==="Enter"}function L0(){let e=window.event;return e?.key===" "||e?.code==="Space"}class b4{getNextKey(n){for(n=this.collection.getKeyAfter(n);n!=null;){if(this.collection.getItem(n).type==="item"&&!this.disabledKeys.has(n))return n;n=this.collection.getKeyAfter(n)}return null}getPreviousKey(n){for(n=this.collection.getKeyBefore(n);n!=null;){if(this.collection.getItem(n).type==="item"&&!this.disabledKeys.has(n))return n;n=this.collection.getKeyBefore(n)}return null}findKey(n,i,o){let s=this.getItem(n);if(!s)return null;let u=s.getBoundingClientRect();do n=i(n),s=this.getItem(n);while(s&&o(u,s.getBoundingClientRect()));return n}isSameRow(n,i){return n.top===i.top||n.left!==i.left}isSameColumn(n,i){return n.left===i.left||n.top!==i.top}getKeyBelow(n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(n,i=>this.getNextKey(i),this.isSameRow):this.getNextKey(n)}getKeyAbove(n){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(n,i=>this.getPreviousKey(i),this.isSameRow):this.getPreviousKey(n)}getNextColumn(n,i){return i?this.getPreviousKey(n):this.getNextKey(n)}getKeyRightOf(n){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(n,this.direction==="rtl"):this.findKey(n,i=>this.getNextColumn(i,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(n,this.direction==="rtl"):null}getKeyLeftOf(n){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(n,this.direction==="ltr"):this.findKey(n,i=>this.getNextColumn(i,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(n,this.direction==="ltr"):null}getFirstKey(){let n=this.collection.getFirstKey();for(;n!=null;){let i=this.collection.getItem(n);if(i?.type==="item"&&!this.disabledKeys.has(n))return n;n=this.collection.getKeyAfter(n)}return null}getLastKey(){let n=this.collection.getLastKey();for(;n!=null;){if(this.collection.getItem(n).type==="item"&&!this.disabledKeys.has(n))return n;n=this.collection.getKeyBefore(n)}return null}getItem(n){return this.ref.current.querySelector(`[data-key="${CSS.escape(n.toString())}"]`)}getKeyPageAbove(n){let i=this.ref.current,o=this.getItem(n);if(!o)return null;if(!ns(i))return this.getFirstKey();let s=i.getBoundingClientRect(),u=o.getBoundingClientRect();if(this.orientation==="horizontal"){let c=s.x-i.scrollLeft,d=Math.max(0,u.x-c+u.width-s.width);for(;o&&u.x-c>d;)n=this.getKeyAbove(n),o=n==null?null:this.getItem(n),u=o?.getBoundingClientRect()}else{let c=s.y-i.scrollTop,d=Math.max(0,u.y-c+u.height-s.height);for(;o&&u.y-c>d;)n=this.getKeyAbove(n),o=n==null?null:this.getItem(n),u=o?.getBoundingClientRect()}return n??this.getFirstKey()}getKeyPageBelow(n){let i=this.ref.current,o=this.getItem(n);if(!o)return null;if(!ns(i))return this.getLastKey();let s=i.getBoundingClientRect(),u=o.getBoundingClientRect();if(this.orientation==="horizontal"){let c=s.x-i.scrollLeft,d=Math.min(i.scrollWidth,u.x-c-u.width+s.width);for(;o&&u.x-c<d;)n=this.getKeyBelow(n),o=n==null?null:this.getItem(n),u=o?.getBoundingClientRect()}else{let c=s.y-i.scrollTop,d=Math.min(i.scrollHeight,u.y-c-u.height+s.height);for(;o&&u.y-c<d;)n=this.getKeyBelow(n),o=n==null?null:this.getItem(n),u=o?.getBoundingClientRect()}return n??this.getLastKey()}getKeyForSearch(n,i){if(!this.collator)return null;let o=this.collection,s=i||this.getFirstKey();for(;s!=null;){let u=o.getItem(s),c=u.textValue.slice(0,n.length);if(u.textValue&&this.collator.compare(c,n)===0)return s;s=this.getKeyBelow(s)}return null}constructor(...n){if(n.length===1){let i=n[0];this.collection=i.collection,this.ref=i.ref,this.collator=i.collator,this.disabledKeys=i.disabledKeys||new Set,this.orientation=i.orientation,this.direction=i.direction,this.layout=i.layout||"stack"}else this.collection=n[0],this.disabledKeys=n[1],this.ref=n[2],this.collator=n[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function w4(e){let{selectionManager:n,collection:i,disabledKeys:o,ref:s,keyboardDelegate:u}=e,c=Ow({usage:"search",sensitivity:"base"}),d=n.disabledBehavior,v=b.useMemo(()=>u||new b4(i,d==="selection"?new Set:o,s,c),[u,i,o,s,c,d]),{collectionProps:h}=y4({...e,ref:s,selectionManager:n,keyboardDelegate:v});return{listProps:h}}function S4(e,n){let{role:i="dialog"}=e,o=vc();o=e["aria-label"]?void 0:o;let s=b.useRef(!1);return b.useEffect(()=>{if(n.current&&!n.current.contains(document.activeElement)){cr(n.current);let u=setTimeout(()=>{document.activeElement===n.current&&(s.current=!0,n.current&&(n.current.blur(),cr(n.current)),s.current=!1)},500);return()=>{clearTimeout(u)}}},[n]),h4(),{dialogProps:{...pr(e,{labelable:!0}),role:i,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||o,onBlur:u=>{s.current&&u.stopPropagation()}},titleProps:{id:o}}}const xg=new WeakMap;function E4(e,n,i){let{value:o,children:s,"aria-label":u,"aria-labelledby":c}=e;const d=e.isDisabled||n.isDisabled;let v=s!=null,h=u!=null||c!=null;!v&&!h&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let m=n.selectedValue===o,g=T=>{T.stopPropagation(),n.setSelectedValue(o)},{pressProps:y,isPressed:w}=ar({isDisabled:d}),{pressProps:E,isPressed:S}=ar({isDisabled:d,onPress(){n.setSelectedValue(o)}}),{focusableProps:P}=bo(Ae(e,{onFocus:()=>n.setLastFocusedValue(o)}),i),A=Ae(y,P),I=pr(e,{labelable:!0}),R=-1;n.selectedValue!=null?n.selectedValue===o&&(R=0):(n.lastFocusedValue===o||n.lastFocusedValue==null)&&(R=0),d&&(R=void 0);let{name:B,descriptionId:_,errorMessageId:V,validationBehavior:W}=xg.get(n);return nm(i,n.selectedValue,n.setSelectedValue),Mm({validationBehavior:W},n,i),{labelProps:Ae(E,{onClick:T=>T.preventDefault()}),inputProps:Ae(I,{...A,type:"radio",name:B,tabIndex:R,disabled:d,required:n.isRequired&&W==="native",checked:m,value:o,onChange:g,"aria-describedby":[e["aria-describedby"],n.isInvalid?V:null,_].filter(Boolean).join(" ")||void 0}),isDisabled:d,isSelected:m,isPressed:w||S}}function $4(e,n){let{name:i,isReadOnly:o,isRequired:s,isDisabled:u,orientation:c="vertical",validationBehavior:d="aria"}=e,{direction:v}=si(),{isInvalid:h,validationErrors:m,validationDetails:g}=n.displayValidation,{labelProps:y,fieldProps:w,descriptionProps:E,errorMessageProps:S}=Fm({...e,labelElementType:"span",isInvalid:n.isInvalid,errorMessage:e.errorMessage||m}),P=pr(e,{labelable:!0}),{focusWithinProps:A}=xo({onBlurWithin(B){var _;(_=e.onBlur)===null||_===void 0||_.call(e,B),n.selectedValue||n.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),I=B=>{let _;switch(B.key){case"ArrowRight":v==="rtl"&&c!=="vertical"?_="prev":_="next";break;case"ArrowLeft":v==="rtl"&&c!=="vertical"?_="next":_="prev";break;case"ArrowDown":_="next";break;case"ArrowUp":_="prev";break;default:return}B.preventDefault();let V=pm(B.currentTarget,{from:B.target}),W;_==="next"?(W=V.nextNode(),W||(V.currentNode=B.currentTarget,W=V.firstChild())):(W=V.previousNode(),W||(V.currentNode=B.currentTarget,W=V.lastChild())),W&&(W.focus(),n.setSelectedValue(W.value))},R=ri(i);return xg.set(n,{name:R,descriptionId:E.id,errorMessageId:S.id,validationBehavior:d}),{radioGroupProps:Ae(P,{role:"radiogroup",onKeyDown:I,"aria-invalid":n.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":o||void 0,"aria-required":s||void 0,"aria-disabled":u||void 0,"aria-orientation":c,...w,...A}),labelProps:y,descriptionProps:E,errorMessageProps:S,isInvalid:h,validationErrors:m,validationDetails:g}}function P4(e,n){let i=pr(e,{labelable:!0}),{hoverProps:o}=An({onHoverStart:()=>n?.open(!0),onHoverEnd:()=>n?.close()});return{tooltipProps:Ae(i,o,{role:"tooltip"})}}function C4(e,n,i){let{isDisabled:o,trigger:s}=e,u=ri(),c=b.useRef(!1),d=b.useRef(!1),v=()=>{(c.current||d.current)&&n.open(d.current)},h=A=>{!c.current&&!d.current&&n.close(A)};b.useEffect(()=>{let A=I=>{i&&i.current&&I.key==="Escape"&&(I.stopPropagation(),n.close(!0))};if(n.isOpen)return document.addEventListener("keydown",A,!0),()=>{document.removeEventListener("keydown",A,!0)}},[i,n]);let m=()=>{s!=="focus"&&(is()==="pointer"?c.current=!0:c.current=!1,v())},g=()=>{s!=="focus"&&(d.current=!1,c.current=!1,h())},y=()=>{d.current=!1,c.current=!1,h(!0)},w=()=>{Ss()&&(d.current=!0,v())},E=()=>{d.current=!1,c.current=!1,h(!0)},{hoverProps:S}=An({isDisabled:o,onHoverStart:m,onHoverEnd:g}),{focusableProps:P}=bo({isDisabled:o,onFocus:w,onBlur:E},i);return{triggerProps:{"aria-describedby":n.isOpen?u:void 0,...Ae(P,S,{onPointerDown:y,onKeyDown:y})},tooltipProps:{id:u}}}function id(e){return{UNSAFE_getDOMNode(){return e.current}}}function T4(e,n=e){return{...id(e),focus(){n.current&&n.current.focus()}}}function ai(e){let n=b.useRef(null);return b.useImperativeHandle(e,()=>id(n)),n}function Ps(e,n){let i=b.useRef(null);return b.useImperativeHandle(e,()=>T4(i,n)),i}const k4=ce.createContext(null);k4.displayName="BreakpointContext";function Cs({isDisabled:e},n=!1){b.useEffect(()=>{o(!1)},[e]);let[i,o]=b.useState(!1),{isFocusVisible:s}=pw({}),{focusProps:u}=Qc({isDisabled:e,onFocusChange:o});return{focusProps:u,isFocused:i&&(n?s:!0)}}const I4={display:"inline-grid",position:"relative",opacity:{"":1,"[disabled]":.4},transition:"theme"},L4=[...Ge,...Gt];function R4({as:e,label:n,onClick:i,...o},s){const u=o.isDisabled,c=Ce(o,L4,I4),d=Ps(s);let{hoverProps:v,isHovered:h}=An({isDisabled:u}),{focusProps:m,isFocused:g}=Cs({isDisabled:u}),{focusableProps:y}=bo(o,d);return $.jsx(Av,{"data-is-hovered":h&&!u?"":null,"data-is-focused":g&&!u?"":null,"data-is-disabled":u||null,"aria-label":n,...Xe(v,m,y,{onClick:i},He(o,{eventProps:!0})),ref:d,tabIndex:o.excludeFromTabOrder||u?-1:0,as:e,styles:c})}const _4=b.forwardRef(R4);function R0(...e){}function M4(e,{property:n,name:i,betterAlternative:o,reason:s}){}const ss=b.createContext({});function od(e){let{breakpoints:n,children:i,insideForm:o,isDisabled:s,isReadOnly:u,isRequired:c,validationState:d,router:v,root:h,ref:m}=e;const g=b.useContext(ss);n&&(i=$.jsx(k2,{value:n,children:i}));const y=b.useMemo(()=>({ref:m,breakpoints:n,insideForm:o,isDisabled:s,isReadOnly:u,isRequired:c,validationState:d,router:v,root:h}),[m,n,o,s,u,c,d,v,h]),w=b.useMemo(()=>{let E=Object.assign({},g);return Object.keys(y).forEach(S=>{y[S]!=null&&(E[S]=y[S])}),E},[g,y]);return $.jsx(ss.Provider,{value:w,children:i})}function vr(e){return{...b.useContext(ss),...e}}const bg=b.createContext({event(){}});function F4({children:e,event:n}){const i=b.useMemo(()=>({event:n}),[n]);return n?$.jsx(bg.Provider,{value:i,children:e}):$.jsx($.Fragment,{children:e})}function A4(){return b.useContext(bg)}function N4(...e){const n=ce.useRef(!1);b.useEffect(()=>{n.current||(n.current=!0,M4(...e))},[e[0]])}function D4(e){const n=b.useRef(e);return Hv(()=>{n.current=e}),n}function ot(e){const n=D4(e);return b.useCallback((...i)=>n.current(...i),[])}function as(...e){return ot((...n)=>{e.forEach(i=>{typeof i=="function"&&i(...n)})})}class _0{get status(){return this._status}set status(n){this._status=n}constructor(n,i){this.timerId=null,this.startTime=null,this._status="stopped",this.callback=n,this.delay=i,this.remaining=i,this.resume()}reset(){this.clear(),this.remaining=this.delay,this.status="stopped"}pause(){this.timerId===null||this.startTime===null||(this.clear(),this.remaining-=Date.now()-this.startTime,this.status="paused")}resume(){this.timerId===null&&(this.startTime=Date.now(),this.clear(),this.timerId=setTimeout(()=>{this.reset(),this.callback()},this.remaining),this.status="running")}clear(){this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}}function wg(e={}){const{callback:n,delay:i,isDisabled:o,timer:s=null}=e,u=ot(()=>n?.()),[c,d]=b.useState(()=>s||(typeof i=="number"?new _0(u,i):null));return o?c?.reset():c?.resume(),b.useEffect(()=>(d(s),()=>c?.reset()),[s]),b.useEffect(()=>{if(!s)return typeof i=="number"&&d(new _0(u,i)),()=>c?.reset()},[i,s]),b.useEffect(()=>()=>c?.reset(),[c]),{timer:c}}function O4(){const e=b.useRef(!0);return e.current?(e.current=!1,!0):e.current}const Ji="Link Press",B4="Button Press",H4={propNames:new Set(["onMouseEnter","onMouseLeave"])};function M0(e,n){const i=document.createElement("a");i.href=e,n&&(i.target=n===!0?"_blank":n),document.body.appendChild(i),i.click(),document.body.removeChild(i)}function Sg(e){const n=e&&typeof e=="string"&&e.startsWith("!"),i=e&&typeof e=="string"&&e.startsWith("@"),o=e&&typeof e=="string"?n||i?e.slice(1):e:void 0;return{newTab:n,nativeRoute:i,href:o}}function j4(e,{router:n,to:i,onPress:o,tracking:s}){const{newTab:u,nativeRoute:c,href:d}=Sg(i),v=e.target,h=v?.getAttribute("data-qa");if(o?.(e),!i){s.event(B4,{qa:h},v);return}if(e.shiftKey||e.metaKey||u){M0(d,!0),s.event(Ji,{qa:h,href:d,type:"tab"},v);return}if(c)M0(d||window.location.href),s.event(Ji,{qa:h,href:d,type:"native"},v);else if(d&&d.startsWith("#")){const m=d.slice(1),g=document.getElementById(m);if(s.event(Ji,{qa:h,href:d,type:"hash",target:m},g),g){g.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"});return}}n?(s.event(Ji,{qa:h,href:d,type:"router"},v),n.push(d)):d&&(s.event(Ji,{qa:h,href:d,type:"native"},v),window.location.href=d)}const Eg=function({to:n,as:i,htmlType:o,label:s,mods:u,onPress:c,...d},v){i=n?"a":i||"button";const h=A4(),m=b.useContext(ss).router,g=d.isDisabled,{newTab:y,href:w}=Sg(n),E=y?"_blank":void 0,S=Ps(v),P=ot(T=>{j4(T,{router:m,to:n,onPress:c,tracking:h})});let{buttonProps:A,isPressed:I}=N6({"aria-label":s,...d,onPress:P},S),{hoverProps:R,isHovered:B}=An({isDisabled:g}),{focusProps:_,isFocused:V}=Cs({isDisabled:g},!0);const W=n?{onClick(T){T.preventDefault()}}:{};return{actionProps:{mods:{hovered:B&&!g,pressed:I&&!g,focused:V&&!g,disabled:g,...u},...Xe(A,R,_,W,He(d,H4)),ref:S,type:o||"button",rel:i==="a"&&y?'rel="noopener noreferrer"':void 0,as:i,isDisabled:g,target:E,href:w}}};const V4=[...Ge,...Gt],z4={display:"inline-grid",placeItems:"center stretch",placeContent:"center",position:"relative",margin:0,outline:{"":"#purple-03.0",focused:"#purple-03"},cursor:"pointer",gap:"1x",flow:"column",preset:{"":"t3m",'[data-size="large"]':"t2m"},textDecoration:"none",transition:"theme",reset:"button",padding:{"":"(1.25x - 1bw) (2x - 1bw)",'[data-size="small"]':"(.75x - 1bw) (1.5x - 1bw)",'[data-size="medium"]':"(1.25x - 1bw) (2x - 1bw)",'[data-size="large"]':"1.5x (2.5x - 1bw)",'single-icon-only | [data-type="link"]':0},width:{"":"initial",'[data-size="small"] & single-icon-only':"4x 4x",'[data-size="medium"] & single-icon-only':"5x 5x",'[data-size="large"] & single-icon-only':"6x 6x"},height:{"":"initial",'[data-size="small"] & single-icon-only':"4x 4x",'[data-size="medium"] & single-icon-only':"5x 5x",'[data-size="large"] & single-icon-only':"6x 6x"},whiteSpace:"nowrap",radius:{"":!0,'[data-type="link"] & !focused':0},"& .anticon":{transition:"display .2s steps(1, start), margin .2s linear, opacity .2s linear"},ButtonIcon:{display:"grid",fontSize:"@icon-size"}},U4=se({qa:"Button",styles:z4,variants:{default:{shadow:{"":!1,'[data-type="link"]':"0 @border-width 0 0 #purple.20",'[data-type="link"] & (pressed | hovered | [disabled])':"0 0 0 0 #purple.20"},outline:{"":"0 #purple-03.0",focused:"@outline-width #purple-03"},border:{"":"#clear",'[data-type="primary"] & pressed':"#purple-text",'[data-type="secondary"] & pressed':"#purple.3",'[data-type="outline"]':"#purple.3",'[data-type="outline"] & [disabled]':"#dark.12",'([data-type="clear"] | [data-type="outline"]) & pressed':"#purple-text.10",'[data-type="link"]':"0"},fill:{"":"#clear",'[data-type="primary"]':"#purple",'[data-type="primary"] & pressed':"#purple",'[data-type="primary"] & hovered':"#purple-text",'[data-type="secondary"]':"#purple.10",'[data-type="secondary"] & hovered':"#purple.16",'[data-type="secondary"] & pressed':"#purple-text.10",'[data-type="neutral"]':"#dark.0",'[data-type="neutral"] & hovered':"#dark.04",'[data-type="neutral"] & pressed':"#dark.05",'[disabled] & ![data-type="link"]':"#dark.04",'([data-type="clear"] | [data-type="outline"])':"#purple.0",'([data-type="clear"] | [data-type="outline"]) & hovered':"#purple.16",'([data-type="clear"] | [data-type="outline"]) & pressed':"#purple.10",'([data-type="clear"] | [data-type="outline"]) & [disabled]':"#purple.0"},color:{"":"#white",'[data-type="secondary"]':"#purple",'[data-type="clear"] | [data-type="outline"] | [data-type="link"]':"#purple-text",'[data-type="link"] & pressed':"#purple",'[data-type="neutral"]':"#dark.75",'[data-type="neutral"] & hovered':"#dark.75",'[data-type="neutral"] & pressed':"#purple","[disabled]":"#dark.30"}},danger:{shadow:{"":!1,'[data-type="link"]':"0 @border-width 0 0 #danger.20",'[data-type="link"] & (pressed | hovered | [disabled])':"0 0 0 0 #danger.20"},outline:{"":"0 #danger.0",focused:"@outline-width #danger.50"},border:{"":"#clear",'[data-type="primary"] & pressed':"#danger-text",'[data-type="secondary"] & pressed':"#danger.3",'[data-type="outline"]':"#danger-text.3",'([data-type="clear"] | [data-type="outline"]) & pressed':"#danger-text.10",'[data-type="outline"] & pressed':"#danger.3",'[data-type="link"]':"#clear"},fill:{"":"#clear",'[data-type="primary"]':"#danger",'[data-type="primary"] & hovered':"#danger-text",'[data-type="primary"] & pressed':"#danger",'[data-type="secondary"]':"#danger.05",'[data-type="secondary"] & hovered':"#danger.1",'[data-type="secondary"] & pressed':"#danger.05",'[data-type="neutral"]':"#dark.0",'[data-type="neutral"] & hovered':"#dark.04",'[data-type="neutral"] & pressed':"#dark.05",'[disabled] & ![data-type="link"]':"#dark.04",'[data-type="clear"] | [data-type="outline"]':"#danger.0",'([data-type="clear"] | [data-type="outline"]) & hovered':"#danger.1",'([data-type="clear"] | [data-type="outline"]) & pressed':"#danger.05",'([data-type="clear"] | [data-type="outline"]) & [disabled]':"#danger.0"},color:{"":"#white",'[data-type="neutral"]':"#dark.75",'[data-type="neutral"] & hovered':"#dark.75",'[data-type="secondary"]':"#danger",'[data-type="clear"] | [data-type="outline"] | [data-type="link"]':"#danger-text",'[data-type="link"] & pressed':"#danger",'[data-type="neutral"] & pressed':"#danger","[disabled]":"#dark.30"}},special:{shadow:{"":!1,'[data-type="link"]':"0 @border-width 0 0 #white.44",'[data-type="link"] & (pressed | hovered | [disabled])':"0 0 0 0 #white.44"},outline:{"":"0 #white.0",focused:"@outline-width #white.44",'([data-type="primary"] | [data-type="clear"])':"0 #dark-03.80",'([data-type="primary"] | [data-type="clear"]) & focused':"@outline-width #purple-03.80"},border:{"":"#clear",'[data-type="primary"] & pressed':"#purple-03",'[data-type="secondary"] & pressed':"#white.44",'[data-type="outline"] & !pressed':"#white.44"},fill:{"":"#clear",'[data-type="primary"]':"#purple",'[data-type="primary"] & pressed':"#purple",'[data-type="primary"] & hovered':"#purple-text",'[data-type="secondary"]':"#white.12",'[data-type="clear"]':"#white",'[data-type="clear"] & hovered':"#white.94",'[data-type="clear"] & pressed':"#white",'[disabled] & ![data-type="link"]':"#white.12",'([data-type="neutral"] | [data-type="outline"])':"#white.0",'([data-type="neutral"] | [data-type="outline"] | [data-type="secondary"]) & hovered':"#white.18",'([data-type="neutral"] | [data-type="outline"] | [data-type="secondary"]) & pressed':"#white.12",'([data-type="clear"] | [data-type="outline"]) & [disabled]':"#white.0"},color:{"":"#white",'[data-type="clear"]':"#purple","[disabled]":"#white.30"}}}}),K4=b.forwardRef(function(n,i){let{type:o,size:s,label:u,children:c,theme:d="default",icon:v,rightIcon:h,mods:m,...g}=n;const y=g.isDisabled||g.isLoading,w=g.isLoading,E=g.isSelected;if(c=c||v||h?c:u,!c){const B=u??g["aria-label"]??g["aria-labelledby"];B||(u="Unnamed")}v&&(v=b.cloneElement(v,{"data-element":"ButtonIcon"})),h&&(h=b.cloneElement(h,{"data-element":"ButtonIcon"}));const S=!!((v&&!h||h&&!v)&&!c),P=b.useMemo(()=>({loading:w,selected:E,"single-icon-only":S,...m}),[m,y,w,E,S]),{actionProps:A}=Eg({...n,isDisabled:y,mods:P,...u?{label:u}:{}},i),I=Ce(g,V4),R=A.isDisabled;return delete A.isDisabled,$.jsxs(U4,{...A,disabled:R,variant:d,"data-theme":d,"data-type":o??"secondary","data-size":s??"medium",styles:I,children:[v||w?w?$.jsx(m2,{"data-element":"ButtonIcon"}):v:null,c,h]})});function F0(e=30){return new Promise(n=>{setTimeout(n,e)})}var Xu={exports:{}},A0;function W4(){return A0||(A0=1,(function(e){(function(n){n.exports.is_uri=o,n.exports.is_http_uri=s,n.exports.is_https_uri=u,n.exports.is_web_uri=c,n.exports.isUri=o,n.exports.isHttpUri=s,n.exports.isHttpsUri=u,n.exports.isWebUri=c;var i=function(d){var v=d.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/);return v};function o(d){if(d&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(d)&&!/%[^0-9a-f]/i.test(d)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(d)){var v=[],h="",m="",g="",y="",w="",E="";if(v=i(d),h=v[1],m=v[2],g=v[3],y=v[4],w=v[5],!!(h&&h.length&&g.length>=0)){if(m&&m.length){if(!(g.length===0||/^\//.test(g)))return}else if(/^\/\//.test(g))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(h.toLowerCase()))return E+=h+":",m&&m.length&&(E+="//"+m),E+=g,y&&y.length&&(E+="?"+y),w&&w.length&&(E+="#"+w),E}}}function s(d,v){if(o(d)){var h=[],m="",g="",y="",w="",E="",S="",P="";if(h=i(d),m=h[1],g=h[2],y=h[3],E=h[4],S=h[5],!!m){if(v){if(m.toLowerCase()!="https")return}else if(m.toLowerCase()!="http")return;if(g)return/:(\d+)$/.test(g)&&(w=g.match(/:(\d+)$/)[0],g=g.replace(/:\d+$/,"")),P+=m+":",P+="//"+g,w&&(P+=w),P+=y,E&&E.length&&(P+="?"+E),S&&S.length&&(P+="#"+S),P}}}function u(d){return s(d,!0)}function c(d){return s(d)||u(d)}})(e)})(Xu)),Xu.exports}var G4=W4();const Z4=ps(G4);var Yu={},N0;function q4(){if(N0)return Yu;N0=1;var e=/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-*\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/;return Yu.validate=function(n){if(!n||n.length>254)return!1;var i=e.test(n);if(!i)return!1;var o=n.split("@");if(o[0].length>64)return!1;var s=o[1].split(".");return!s.some(function(u){return u.length>63})},Yu}var X4=q4();const $g={string(e){return typeof e=="string"},number(e){return typeof e=="number"},boolean(e){return typeof e=="boolean"},method(e){return typeof e=="function"},regexp(e){return e instanceof RegExp},integer(e){return typeof e=="number"&&e===parseInt(String(e),10)},array(e){return Array.isArray(e)},object(e){return typeof e=="object"&&!Array.isArray(e)},date(e){return e instanceof Date},url(e){return typeof e=="string"&&Z4.isUri(e)},hex(e){return typeof e=="string"&&e.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/)},email(e){return X4.validate(e)},any(e){return!0}},Y4=Object.keys($g),Pg={async required(e){return Array.isArray(e)?e.length?Promise.resolve():Promise.reject():e||e===0?Promise.resolve():Promise.reject()},async whitespace(e){return typeof e!="string"||e.trim()?Promise.resolve():Promise.reject()},async pattern(e,n){const i=n.pattern;return typeof e!="string"||e.match(i)?Promise.resolve():Promise.reject()},async enum(e,n){const i=n.enum||[];return!e&&e!==0||i.includes(e)?Promise.resolve():Promise.reject()},async len(e,n){const i=n.len;return typeof e=="number"?e===i?Promise.resolve():Promise.reject():!e||!("length"in e)||e.length===i?Promise.resolve():Promise.reject()},async max(e,n){const i=n.max;return typeof e=="number"?e<=i?Promise.resolve():Promise.reject():!e||typeof e!="string"&&!Array.isArray(e)||e.length<=i?Promise.resolve():Promise.reject()},async min(e,n){const i=n.min;return typeof e=="number"?e>=i?Promise.resolve():Promise.reject():!e||typeof e!="string"&&!Array.isArray(e)||e.length>=i?Promise.resolve():Promise.reject()},async validator(e,n){return n.validator(n,e)},async type(e,n){const i=n.type;return Y4.includes(i)?$g[i](e)?Promise.resolve():Promise.reject():Promise.resolve()}},Q4=Object.keys(Pg);async function J4(e,n,i){typeof n=="function"&&(n=n(i)),typeof n.transform=="function"&&(e=n.transform(e));for(let o of Q4){if(!(o in n))continue;const s=Pg[o];await s(e,n)}}async function eS(e,n,i=0){const{value:o,rules:s}=e;if(!(!s||!s.length))for(let u of s){if(e.validationId&&i!==e.validationId)return;await J4(o,u,n).catch(c=>{throw c instanceof Error&&(c=c?.message||u.message),c||u.message})}}const tS=(e=500)=>{let n,i;return{async validator(){return clearTimeout(n),i&&i(),new Promise(o=>{i=o,n=setTimeout(()=>{o()},e)})}}};function nS(e,n,i){let o=n.split("."),s=e;for(;o.length-1;){let u=o.shift();u in s||(s[u]={}),s=s[u]}s[o[0]]=i}function D0(e,n){return JSON.stringify(e)===JSON.stringify(n)}class rS{constructor(n=()=>{}){this.forceReRender=()=>{},this.initialFields={},this.fields={},this.ref={},this.isSubmitting=!1,this.submitError=null,this.onValuesChange=()=>{},this.onSubmit=()=>{},this.setFieldsValue=(i,o,s,u=!1,c=!1)=>{let d=!1;Object.keys(i).forEach(v=>{let h=this.fields[v];if(!h&&u&&(this.createField(v,s),h=this.fields[v]),!h||D0(h.value,i[v])){h&&o===!1&&(h.errors=[]);return}d=!0,c||(h.value=i[v]),h.inputValue=i[v],o===!0?h.touched=o:o===!1&&(h.touched=!1,h.errors=[])}),d&&!s&&(o&&!c&&(this.onValuesChange&&this.onValuesChange(this.getFormData()),this.submitError=null),this.forceReRender())},this.forceReRender=n,this.getFieldValue=this.getFieldValue.bind(this),this.getFieldsValue=this.getFieldsValue.bind(this),this.setFieldValue=this.setFieldValue.bind(this),this.getFieldError=this.getFieldError.bind(this),this.getFieldInstance=this.getFieldInstance.bind(this),this.setInitialFieldsValue=this.setInitialFieldsValue.bind(this),this.resetFields=this.resetFields.bind(this),this.validateField=this.validateField.bind(this),this.validateFields=this.validateFields.bind(this),this.isFieldValid=this.isFieldValid.bind(this),this.createField=this.createField.bind(this),this.isFieldInvalid=this.isFieldInvalid.bind(this),this.isFieldTouched=this.isFieldTouched.bind(this),this.setFields=this.setFields.bind(this)}async submit(){return this.onSubmit?.(this.getFormData())}getFieldValue(n){return this.fields[n]?.value}getFieldsValue(){return Object.values(this.fields).reduce((n,i)=>(i&&n&&(n[i.name]=i.value),n),{})}getFormData(){const n=this.getFieldsValue();return Object.keys(n).reduce((i,o)=>(nS(i,o,n[o]),o.includes(".")&&delete i[o],i),{})}setFieldValue(n,i,o=!1,s=!1,u=!1){const c=this.fields[n];!c||D0(i,u?c.inputValue:c.value)||(u||(c.value=i,c.status=void 0),c.inputValue=i,o&&(c.touched=o),s||(c.errors=[]),o&&!u&&(this.onValuesChange&&this.onValuesChange(this.getFormData()),this.submitError=null),s||this.forceReRender())}getFieldInstance(n){return this.fields[n]}setInitialFieldsValue(n){this.initialFields=Ee.convert(n)??{}}updateInitialFieldsValue(n){this.initialFields={...this.initialFields,...Ee.convert(n)}}resetFields(n,i){const o=this.getFieldsValue(),s=Object.keys({...o,...this.initialFields}),c=(n?s.filter(d=>n.includes(d)):s).reduce((d,v)=>(v in this.initialFields?d[v]=this.initialFields[v]:d[v]=void 0,d),{});this.setFieldsValue(c,!1,i,!0)}async validateField(n){const i=this.getFieldInstance(n);if(!i||!i.rules||i.status==="valid")return Promise.resolve();if(i.status==="invalid")return Promise.reject(i.errors[0]);i.validating=!0,i.validationId?i.validationId++:i.validationId=1;const o=i.validationId;return eS(i,this,o).then(()=>{i.validationId===o&&(i.validating=!1,(!i.errors||i.errors.length)&&(i.errors=[]),i.status="valid",this.forceReRender())}).catch(s=>(i.validationId===o&&(i.errors=[s],i.validating=!1,i.status="invalid",this.forceReRender()),Promise.reject([s])))}validateFields(n){const i=n||Object.keys(this.fields),o=[];return Promise.allSettled(i.map(s=>this.validateField(s).catch(u=>(o.push({name:s,errors:u}),Promise.reject())))).then(()=>o.length?Promise.reject(o):this.getFormData())}isFieldValid(n){const i=this.getFieldInstance(n);return i?!i.errors.length:!0}isFieldInvalid(n){const i=this.getFieldInstance(n);return i?!!i.errors.length:!1}isFieldTouched(n){const i=this.getFieldInstance(n);return i?!!i.touched:!1}getFieldError(n){const i=this.getFieldInstance(n);return i?i.errors||[]:[]}createField(n,i){return n?(this.fields[n]||(this.fields[n]=this._createField(n)),i||this.forceReRender(),this.fields[n]):this._createField(n)}removeField(n,i){this.fields[n]&&delete this.fields[n],i||this.forceReRender()}setFields(n){n.forEach(({name:i,value:o,errors:s})=>{this.fields[i]=this._createField(i,{value:o,errors:s})}),this.forceReRender()}setSubmitting(n){this.isSubmitting!==n&&(this.isSubmitting=n,this.forceReRender())}_createField(n,i){let o={name:n,validating:!1,touched:!1,errors:[],validationId:0,...i,status:i?.errors?.length?"invalid":void 0};return o&&(o.inputValue=o.value),o}}function Cg(e,n,i={}){const{onSubmit:o,onValuesChange:s}=i,u=b.useRef(),[,c]=b.useState({});if(!u.current){if(e)u.current=e;else{const d=()=>{c({})};e=u.current=new rS(d)}e.ref=n}return o&&(u.current.onSubmit=o),s&&(u.current.onValuesChange=s),[u.current]}const wo=b.createContext({}),iS=se({as:"form",qa:"Form",styles:{display:{"":"block",horizontal:"flex"},flow:{"":"column",horizontal:"row"},placeItems:{"":"initial",horizontal:"center"},gap:"2x","@label-width":"25x"}});function ui(e){return{...b.useContext(wo),...e}}const oS=new Set(["action","autoComplete","encType","method","target"]);function lS(e,n){e=vr(e);let{qa:i,name:o,children:s,labelPosition:u,orientation:c,isRequired:d,necessityIndicator:v,isDisabled:h,isReadOnly:m,validationState:g,labelStyles:y,validateTrigger:w,showValid:E,defaultValues:S,onValuesChange:P,requiredMark:A=!0,form:I,labelWidth:R,onSubmit:B,onSubmitFailed:_,...V}=e;const W=b.useRef(!0),T=c==="horizontal";c||(c="vertical"),u||(u=T?"side":"top"),R||(R=T?"auto":void 0),n=Bx(n);let U;(B||_)&&!V.action&&(U=async D=>{if(D&&D?.preventDefault&&(D&&D?.preventDefault&&D?.preventDefault(),D&&D?.stopPropagation&&D?.stopPropagation(),D.nativeEvent)){const j=D.nativeEvent;if(j.submitter&&j.submitter.getAttribute("type")!=="submit")return}if(!(!I||I.isSubmitting)){I.submitError=null,I.setSubmitting(!0);try{try{await I.validateFields()}catch{I?.setSubmitting(!1);return}await F0(),await B?.(I.getFormData())}catch(j){if(await F0(),I.submitError=j,_?.(j),j instanceof Error)throw j}finally{I?.setSubmitting(!1)}}}),[I]=Cg(I,n&&n.current,{onSubmit:U,onValuesChange:P});let O=Ce(V,Ge);R&&(O["@label-width"]=R);let H=ai(n),ne={labelPosition:u,labelStyles:y,orientation:c,necessityIndicator:v,validateTrigger:w,requiredMark:A,showValid:E,form:I,submitError:I.submitError,idPrefix:o};return W.current&&I&&S&&(I.setInitialFieldsValue(S),I.resetFields(void 0,!0),W.current=!1),b.useEffect(()=>{S&&I?.setInitialFieldsValue(S)},[S]),$.jsx(iS,{...He(V,{propNames:oS}),ref:H,noValidate:!0,styles:O,mods:{"has-sider":u==="side",horizontal:T},onSubmit:U,children:$.jsx(wo.Provider,{value:ne,children:$.jsx(od,{insideForm:!0,isDisabled:h,isReadOnly:m,isRequired:d,validationState:g,children:s})})})}const sS=b.forwardRef(lS);const aS=se({styles:{display:"flex",gap:!0,flow:{"":"row",vertical:"column"},placeItems:{"":"center stretch",vertical:"stretch"}}}),Tg=b.forwardRef(function(n,i){const{mods:o,direction:s,...u}=n,c=Ce(u,Ge);return $.jsx(aS,{...He(u,{eventProps:!0}),ref:i,mods:{vertical:s==="vertical"||u.flow==="column",...o},styles:c})});const uS=se(Tg,{qa:"ButtonGroup",styles:{gridArea:"buttonGroup"}}),ld=b.forwardRef(function(n,i){return $.jsx(uS,{ref:i,...fr(n,"buttonGroup")})});const cS={reset:"button",position:"relative",margin:0,preset:"inherit",border:0,padding:0,outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme",cursor:"pointer",textDecoration:"none",fill:"#clear"},dS=se({as:"button",styles:cS}),fS=[...Ge,...Gt],r$=b.forwardRef(function({to:n,as:i,htmlType:o,label:s,theme:u,mods:c,onPress:d,...v},h){const{actionProps:m}=Eg({to:n,as:i,htmlType:o,label:s,onPress:d,mods:c,...v},h),g=Ce(v,fS);return $.jsx(dS,{"data-theme":u,...m,styles:g})});const so=Object.assign(K4,{Group:ld});function Fc(e,n){return Fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},Fc(e,n)}function Ts(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Fc(e,n)}function pS(e,n){return e.classList?!!n&&e.classList.contains(n):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+n+" ")!==-1}function hS(e,n){e.classList?e.classList.add(n):pS(e,n)||(typeof e.className=="string"?e.className=e.className+" "+n:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+n))}function O0(e,n){return e.replace(new RegExp("(^|\\s)"+n+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function vS(e,n){e.classList?e.classList.remove(n):typeof e.className=="string"?e.className=O0(e.className,n):e.setAttribute("class",O0(e.className&&e.className.baseVal||"",n))}const B0={disabled:!1},us=ce.createContext(null);var kg=function(n){return n.scrollTop},io="unmounted",er="exited",tr="entering",qr="entered",Ac="exiting",Zt=(function(e){Ts(n,e);function n(o,s){var u;u=e.call(this,o,s)||this;var c=s,d=c&&!c.isMounting?o.enter:o.appear,v;return u.appearStatus=null,o.in?d?(v=er,u.appearStatus=tr):v=qr:o.unmountOnExit||o.mountOnEnter?v=io:v=er,u.state={status:v},u.nextCallback=null,u}n.getDerivedStateFromProps=function(s,u){var c=s.in;return c&&u.status===io?{status:er}:null};var i=n.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(s){var u=null;if(s!==this.props){var c=this.state.status;this.props.in?c!==tr&&c!==qr&&(u=tr):(c===tr||c===qr)&&(u=Ac)}this.updateStatus(!1,u)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var s=this.props.timeout,u,c,d;return u=c=d=s,s!=null&&typeof s!="number"&&(u=s.exit,c=s.enter,d=s.appear!==void 0?s.appear:c),{exit:u,enter:c,appear:d}},i.updateStatus=function(s,u){if(s===void 0&&(s=!1),u!==null)if(this.cancelNextCallback(),u===tr){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:ro.findDOMNode(this);c&&kg(c)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===er&&this.setState({status:io})},i.performEnter=function(s){var u=this,c=this.props.enter,d=this.context?this.context.isMounting:s,v=this.props.nodeRef?[d]:[ro.findDOMNode(this),d],h=v[0],m=v[1],g=this.getTimeouts(),y=d?g.appear:g.enter;if(!s&&!c||B0.disabled){this.safeSetState({status:qr},function(){u.props.onEntered(h)});return}this.props.onEnter(h,m),this.safeSetState({status:tr},function(){u.props.onEntering(h,m),u.onTransitionEnd(y,function(){u.safeSetState({status:qr},function(){u.props.onEntered(h,m)})})})},i.performExit=function(){var s=this,u=this.props.exit,c=this.getTimeouts(),d=this.props.nodeRef?void 0:ro.findDOMNode(this);if(!u||B0.disabled){this.safeSetState({status:er},function(){s.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:Ac},function(){s.props.onExiting(d),s.onTransitionEnd(c.exit,function(){s.safeSetState({status:er},function(){s.props.onExited(d)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(s,u){u=this.setNextCallback(u),this.setState(s,u)},i.setNextCallback=function(s){var u=this,c=!0;return this.nextCallback=function(d){c&&(c=!1,u.nextCallback=null,s(d))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},i.onTransitionEnd=function(s,u){this.setNextCallback(u);var c=this.props.nodeRef?this.props.nodeRef.current:ro.findDOMNode(this),d=s==null&&!this.props.addEndListener;if(!c||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],h=v[0],m=v[1];this.props.addEndListener(h,m)}s!=null&&setTimeout(this.nextCallback,s)},i.render=function(){var s=this.state.status;if(s===io)return null;var u=this.props,c=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var d=hs(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ce.createElement(us.Provider,{value:null},typeof c=="function"?c(s,d):ce.cloneElement(ce.Children.only(c),d))},n})(ce.Component);Zt.contextType=us;Zt.propTypes={};function Kr(){}Zt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kr,onEntering:Kr,onEntered:Kr,onExit:Kr,onExiting:Kr,onExited:Kr};Zt.UNMOUNTED=io;Zt.EXITED=er;Zt.ENTERING=tr;Zt.ENTERED=qr;Zt.EXITING=Ac;var mS=function(n,i){return n&&i&&i.split(" ").forEach(function(o){return hS(n,o)})},Qu=function(n,i){return n&&i&&i.split(" ").forEach(function(o){return vS(n,o)})},ks=(function(e){Ts(n,e);function n(){for(var o,s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];return o=e.call.apply(e,[this].concat(u))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(d,v){var h=o.resolveArguments(d,v),m=h[0],g=h[1];o.removeClasses(m,"exit"),o.addClass(m,g?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(d,v)},o.onEntering=function(d,v){var h=o.resolveArguments(d,v),m=h[0],g=h[1],y=g?"appear":"enter";o.addClass(m,y,"active"),o.props.onEntering&&o.props.onEntering(d,v)},o.onEntered=function(d,v){var h=o.resolveArguments(d,v),m=h[0],g=h[1],y=g?"appear":"enter";o.removeClasses(m,y),o.addClass(m,y,"done"),o.props.onEntered&&o.props.onEntered(d,v)},o.onExit=function(d){var v=o.resolveArguments(d),h=v[0];o.removeClasses(h,"appear"),o.removeClasses(h,"enter"),o.addClass(h,"exit","base"),o.props.onExit&&o.props.onExit(d)},o.onExiting=function(d){var v=o.resolveArguments(d),h=v[0];o.addClass(h,"exit","active"),o.props.onExiting&&o.props.onExiting(d)},o.onExited=function(d){var v=o.resolveArguments(d),h=v[0];o.removeClasses(h,"exit"),o.addClass(h,"exit","done"),o.props.onExited&&o.props.onExited(d)},o.resolveArguments=function(d,v){return o.props.nodeRef?[o.props.nodeRef.current,d]:[d,v]},o.getClassNames=function(d){var v=o.props.classNames,h=typeof v=="string",m=h&&v?v+"-":"",g=h?""+m+d:v[d],y=h?g+"-active":v[d+"Active"],w=h?g+"-done":v[d+"Done"];return{baseClassName:g,activeClassName:y,doneClassName:w}},o}var i=n.prototype;return i.addClass=function(s,u,c){var d=this.getClassNames(u)[c+"ClassName"],v=this.getClassNames("enter"),h=v.doneClassName;u==="appear"&&c==="done"&&h&&(d+=" "+h),c==="active"&&s&&kg(s),d&&(this.appliedClasses[u][c]=d,mS(s,d))},i.removeClasses=function(s,u){var c=this.appliedClasses[u],d=c.base,v=c.active,h=c.done;this.appliedClasses[u]={},d&&Qu(s,d),v&&Qu(s,v),h&&Qu(s,h)},i.render=function(){var s=this.props;s.classNames;var u=hs(s,["classNames"]);return ce.createElement(Zt,ao({},u,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n})(ce.Component);ks.defaultProps={classNames:""};ks.propTypes={};function gS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sd(e,n){var i=function(u){return n&&b.isValidElement(u)?n(u):u},o=Object.create(null);return e&&b.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=i(s)}),o}function yS(e,n){e=e||{},n=n||{};function i(m){return m in n?n[m]:e[m]}var o=Object.create(null),s=[];for(var u in e)u in n?s.length&&(o[u]=s,s=[]):s.push(u);var c,d={};for(var v in n){if(o[v])for(c=0;c<o[v].length;c++){var h=o[v][c];d[o[v][c]]=i(h)}d[v]=i(v)}for(c=0;c<s.length;c++)d[s[c]]=i(s[c]);return d}function nr(e,n,i){return i[n]!=null?i[n]:e.props[n]}function xS(e,n){return sd(e.children,function(i){return b.cloneElement(i,{onExited:n.bind(null,i),in:!0,appear:nr(i,"appear",e),enter:nr(i,"enter",e),exit:nr(i,"exit",e)})})}function bS(e,n,i){var o=sd(e.children),s=yS(n,o);return Object.keys(s).forEach(function(u){var c=s[u];if(b.isValidElement(c)){var d=u in n,v=u in o,h=n[u],m=b.isValidElement(h)&&!h.props.in;v&&(!d||m)?s[u]=b.cloneElement(c,{onExited:i.bind(null,c),in:!0,exit:nr(c,"exit",e),enter:nr(c,"enter",e)}):!v&&d&&!m?s[u]=b.cloneElement(c,{in:!1}):v&&d&&b.isValidElement(h)&&(s[u]=b.cloneElement(c,{onExited:i.bind(null,c),in:h.props.in,exit:nr(c,"exit",e),enter:nr(c,"enter",e)}))}}),s}var wS=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},SS={component:"div",childFactory:function(n){return n}},ad=(function(e){Ts(n,e);function n(o,s){var u;u=e.call(this,o,s)||this;var c=u.handleExited.bind(gS(u));return u.state={contextValue:{isMounting:!0},handleExited:c,firstRender:!0},u}var i=n.prototype;return i.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},i.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(s,u){var c=u.children,d=u.handleExited,v=u.firstRender;return{children:v?xS(s,d):bS(s,c,d),firstRender:!1}},i.handleExited=function(s,u){var c=sd(this.props.children);s.key in c||(s.props.onExited&&s.props.onExited(u),this.mounted&&this.setState(function(d){var v=ao({},d.children);return delete v[s.key],{children:v}}))},i.render=function(){var s=this.props,u=s.component,c=s.childFactory,d=hs(s,["component","childFactory"]),v=this.state.contextValue,h=wS(this.state.children).map(c);return delete d.appear,delete d.enter,delete d.exit,u===null?ce.createElement(us.Provider,{value:v},h):ce.createElement(us.Provider,{value:v},ce.createElement(u,d,h))},n})(ce.Component);ad.propTypes={};ad.defaultProps=SS;const Ig=b.createContext(null);function ES(){return{root:b.useContext(Ig)}}const $S=Ig.Provider;var PS="Invariant failed";function Lg(e,n){if(!e)throw new Error(PS)}function CS(e){const{children:n,isDisabled:i=!1,root:o=null,onMount:s}=e,u=b.useRef(s),c=ES(),[d,v]=b.useState(null);return u.current=s,b.useEffect(()=>{if(!i){const h=c.root,m=o?.current??null,g=h?.current??null;Lg(!(h===null&&m===null)),v(m??g)}},[o,c.root,i]),b.useEffect(()=>{(i||d)&&u.current?.()},[i,d]),{isDisabled:i,children:n,mountRoot:d}}function cs(e){const{children:n,mountRoot:i,isDisabled:o}=CS(e);return o?$.jsx($.Fragment,{children:n}):i?ro.createPortal(n,i):null}function TS({isOpen:e,placement:n,minOffset:i,minScale:o,children:s,container:u=null}){const c=b.useRef(u);typeof i=="number"&&(i=`${i}px`);const d=$.jsx(ks,{unmountOnExit:!0,in:e,timeout:180,classNames:"cube-overlay-transition",children:$.jsx($.Fragment,{children:s})});return $.jsx(cs,{root:c,children:d})}const Rg=ce.createContext({});const kS=8,IS=0;function LS(e){let{children:n,activeWrap:i,crossOffset:o=IS,isDisabled:s,isMaterial:u,offset:c=kS,trigger:d,delay:v=250,isOpen:h,onOpenChange:m,defaultOpen:g}=e,[y,w]=b.Children.toArray(n),E=$b({delay:v,...e}),S=b.useRef(null),P=b.useRef(null),{triggerProps:A,tooltipProps:I}=C4({isDisabled:s,trigger:d},E,S),{overlayProps:R,arrowProps:B,placement:_}=n4({placement:e.placement||"top",targetRef:S,overlayRef:P,offset:c,crossOffset:o,isOpen:E.isOpen});if(!i&&typeof y=="string")return console.warn("CubeUIKit: Tooltips are only supported on elements that are both focusable and hoverable. To solve this issue you can: 1) Use active element as a trigger (`Button`, `Link`, etc); 2) Use `activeWrap` attribute to automatically wrap the content; 3) Use `ActiveZone` component to manually wrap the content."),$.jsx(Cb,{children:y});function V(W){W?.currentTarget?.parentNode.click()}return $.jsxs(kw,{...A,ref:S,children:[i?$.jsx(_4,{onClick:V,children:y}):y,$.jsx(Rg.Provider,{value:{state:E,placement:_,ref:P,overlayProps:R,arrowProps:B,minOffset:"var(--gap)",minScale:"1",isMaterial:u,...I},children:$.jsx(TS,{isOpen:E.isOpen,placement:e.placement||"top",children:w})})]})}let RS=LS;const _S={initial:"top center",top:"bottom center",right:"center left",left:"center right",bottom:"top center"},MS={initial:"translate(0px, calc(-1 * var(--overlay-offset)))",top:"translate(0px, calc(1 * var(--overlay-offset)))",right:"translate(calc(-1 * var(--overlay-offset)), 0px)",left:"translate(calc(1 * var(--overlay-offset)), 0px)",bottom:"translate(0px, calc(-1 * var(--overlay-offset)))"},FS=({suffix:e="",placement:n="initial",minScale:i=.8,minOffset:o="8px"}={})=>`
|
|
54
|
+
&${e} {
|
|
55
|
+
transform: var(--overlay-position);
|
|
56
|
+
transform-origin: ${_S[n]};
|
|
57
|
+
--overlay-offset: ${o};
|
|
58
|
+
--overlay-hidden-x-scale: ${n==="top"||n==="bottom"||n==="initial"?"1":i};
|
|
59
|
+
--overlay-hidden-y-scale: ${n==="left"||n==="right"?"1":i};
|
|
60
|
+
--overlay-translate-visible: translate(0px, 0px);
|
|
61
|
+
--overlay-translate-hidden: ${MS[n]};
|
|
62
|
+
--overlay-transition: 180ms;
|
|
63
|
+
--overlay-hidden-scale: scale(var(--overlay-hidden-x-scale), var(--overlay-hidden-y-scale));
|
|
64
|
+
--overlay-normal-scale: scale(1, 1);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.cube-overlay-transition-enter${e} {
|
|
68
|
+
opacity: 0;
|
|
69
|
+
transform: var(--overlay-translate-hidden) var(--overlay-hidden-scale);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.cube-overlay-transition-enter-active${e} {
|
|
73
|
+
opacity: 1;
|
|
74
|
+
transform: var(--overlay-translate-visible) var(--overlay-normal-scale);
|
|
75
|
+
transition: transform var(--overlay-transition) cubic-bezier(0, .66, 0, .66), opacity var(--overlay-transition) cubic-bezier(0, .66, 0, .66);
|
|
76
|
+
pointer-events: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&.cube-overlay-transition-exit${e} {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
transform: var(--overlay-translate-visible) var(--overlay-normal-scale);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.cube-overlay-transition-exit-active${e} {
|
|
85
|
+
opacity: 0;
|
|
86
|
+
transform: var(--overlay-translate-hidden) var(--overlay-hidden-scale);
|
|
87
|
+
pointer-events: none;
|
|
88
|
+
transition: transform var(--overlay-transition) cubic-bezier(.66, 0, .66, 0), opacity var(--overlay-transition) cubic-bezier(.66, 0, .66, 0);
|
|
89
|
+
}
|
|
90
|
+
`;const AS=se({styles:{display:"block",fill:"#dark.85",color:"#white",width:"initial 36x max-content",radius:!0,padding:".75x 1x",preset:"t3",backdropFilter:"blur(.5x)",whiteSpace:"pre-line",pointerEvents:{"":"none",material:"auto"}}}),NS=se({styles:{position:"absolute",width:"1px",height:"1px",border:".5x #clear",borderTop:".5x solid #dark.85",borderBottom:"0",top:{"":"initial",'[data-placement="left"] | [data-placement="right"]':"50%",'[data-placement="top"]':"100%"},left:{"":"initial",'[data-placement="top"] | [data-placement="bottom"]':"50%",'[data-placement="left"]':"100%"},right:{"":"initial",'[data-placement="right"]':"100%"},bottom:{"":"initial",'[data-placement="bottom"]':"100%"},transform:{"":"translate((-.375x - 1px), 0)",'[data-placement="bottom"]':"translate((-.375x - 1px), 0) rotate(180deg)",'[data-placement="left"]':"translate(-.25x, -.25x) rotate(270deg)",'[data-placement="right"]':"translate(.25x, -.25x) rotate(90deg)"},transition:"theme"}}),DS=vo(AS)`
|
|
91
|
+
${e=>FS({placement:e?.["data-position"],minOffset:"0",minScale:1})}
|
|
92
|
+
`;function OS(e,n){let{ref:i,arrowProps:o,state:s,overlayProps:u,minOffset:c,minScale:d,...v}=b.useContext(Rg),h=b.useRef(null);const m=i??h;e=Xe(e,v);let{placement:g="top",isOpen:y,tipStyles:w,showIcon:E,isMaterial:S,...P}=e;const A=Ce(P,Ge);let{tooltipProps:I}=P4(e,s);return b.useImperativeHandle(n,()=>id(m)),typeof c=="number"&&(c=`${c}px`),typeof d=="number"&&(d=String(d)),$.jsxs(DS,{...I,...u,ref:i,styles:A,mods:{open:y,material:S},"data-min-offset":c,"data-min-scale":d,"data-placement":g,children:[e.children,$.jsx(NS,{"data-placement":g,styles:w,...o})]})}let BS=b.forwardRef(OS);function HS(e){const{ref:n,children:i,items:o}=e,s=fb({selectionMode:"none",children:i,items:o,suppressTextValueWarning:!0}),{listProps:u}=w4({ref:n,allowsTabNavigation:!0,...s});return{listProps:u,state:s}}function jS(e){const{ref:n,key:i,state:{selectionManager:o}}=e;return x4({ref:n,key:i,selectionManager:o})}const VS=se({as:"span",styles:{display:"inline-grid",verticalAlign:"middle",width:"1em 1em",height:"1em 1em","& svg":{width:"1em 1em",height:"1em 1em"}},styleProps:[...go,...Fn,...vs]}),zS=b.memo(function(n){const{size:i,...o}=n;return $.jsx(VS,{qa:"Icon",...o,styles:i||n.styles?{fontSize:i,...n.styles}:void 0})});function ve(e,n){function i(o){return $.jsx(zS,{qa:e,"aria-hidden":"true",...o,children:n})}return i.displayName=e,i}const US=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.626 2.732a.6.6 0 0 0 0 .849L7.046 8l-4.42 4.42a.6.6 0 0 0 0 .848l.141.141a.6.6 0 0 0 .849 0l4.42-4.42 4.348 4.35a.6.6 0 0 0 .849 0l.141-.142a.6.6 0 0 0 0-.848L9.025 8l4.349-4.349a.6.6 0 0 0 0-.848l-.141-.142a.6.6 0 0 0-.849 0L8.035 7.01 3.616 2.59a.6.6 0 0 0-.849 0l-.141.142Z",clipRule:"evenodd"})});const KS=$.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:$.jsx("path",{d:"M7.94 11.04c-.82 0-1.49.67-1.49 1.49.08 1.96 2.9 1.96 2.97 0 0-.82-.67-1.49-1.48-1.49ZM9.42 2.68a1.93 1.93 0 0 0-3.39 1.58l.9 5.13c.2 1.12 1.8 1.12 2.02 0l.9-5.13c.1-.56-.06-1.14-.43-1.58Z"})});const WS=$.jsxs("svg",{fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:[$.jsx("path",{d:"M13.58 15.5H2.42a2.4 2.4 0 0 1-2.1-1.21 2.4 2.4 0 0 1 0-2.42l5.59-9.66A2.4 2.4 0 0 1 8 1c.87 0 1.66.45 2.1 1.2l5.57 9.67a2.4 2.4 0 0 1 0 2.42 2.4 2.4 0 0 1-2.09 1.2ZM8 2.6a.8.8 0 0 0-.7.4l-5.58 9.67a.8.8 0 0 0 0 .8c.07.12.28.4.7.4h11.16a.8.8 0 0 0 .7-.4.8.8 0 0 0 0-.8L8.7 3a.8.8 0 0 0-.7-.4Zm0 9.67a.8.8 0 1 1 0-1.62.8.8 0 1 1 0 1.62Zm0-3.23a.8.8 0 0 1-.8-.8V6.64a.8.8 0 1 1 1.6 0v1.6a.8.8 0 0 1-.8.81Z"}),$.jsx("path",{d:"M7.2 6.8a.8.8 0 1 1 1.6 0v2.4a.8.8 0 0 1-1.6 0V6.8Z"})]});const GS=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.9 1.5a.6.6 0 0 0-.6.6v5.2H2.1a.6.6 0 0 0-.6.6v.2a.6.6 0 0 0 .6.6h5.2v5.2a.6.6 0 0 0 .6.6h.2a.6.6 0 0 0 .6-.6V8.7h5.2a.6.6 0 0 0 .6-.6v-.2a.6.6 0 0 0-.6-.6H8.7V2.1a.6.6 0 0 0-.6-.6h-.2Z",clipRule:"evenodd"})});const ZS=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.704 3.88a.6.6 0 0 1-1.2 0V1.468a.6.6 0 0 1 1.2 0V3.88ZM8.662 6.454a.625.625 0 0 1 .884.884l-7.468 7.468a.625.625 0 1 1-.884-.884l7.468-7.468Zm.442 6.47a.6.6 0 0 0 .6-.6V9.912a.6.6 0 0 0-1.2 0v2.412a.6.6 0 0 0 .6.6ZM6.088 6.296a.6.6 0 0 1 0 1.2H3.676a.6.6 0 1 1 0-1.2h2.412Zm9.044.6a.6.6 0 0 0-.6-.6H12.12a.6.6 0 1 0 0 1.2h2.412a.6.6 0 0 0 .6-.6ZM11.66 5.188a.6.6 0 1 1-.848-.849l1.705-1.705a.6.6 0 1 1 .849.848L11.66 5.188Zm-4.264 0a.6.6 0 0 0 0-.849L5.69 2.634a.6.6 0 1 0-.848.848l1.705 1.706a.6.6 0 0 0 .849 0Zm5.97 5.122a.6.6 0 1 1-.848.848l-1.706-1.705a.6.6 0 0 1 .849-.849l1.705 1.706Z",clipRule:"evenodd"})});const qS=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.4 7.048V13.4H2.6v-2.269l4.332-2.976L8.58 9.77a.6.6 0 0 0 .76.067l4.06-2.79Zm1.2-1.149V1.982a.6.6 0 0 0-.94-.495L9.068 4.643 7.42 3.026a.6.6 0 0 0-.76-.067L2.6 5.75V2a.6.6 0 0 0-1.2 0v12a.6.6 0 0 0 .6.6h12a.6.6 0 0 0 .588-.72.6.6 0 0 0 .012-.12V5.9Zm-1.2-.307L9.068 8.569 7.42 6.952a.6.6 0 0 0-.76-.066L2.6 9.676V7.204l4.332-2.977L8.58 5.845a.6.6 0 0 0 .76.067l4.06-2.79v2.47Z",clipRule:"evenodd"})});const XS=$.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.676 8 4.738-4.738a.6.6 0 0 0 0-.848l-.142-.142a.6.6 0 0 0-.848 0L7.12 7.576a.6.6 0 0 0 0 .848l5.303 5.304a.6.6 0 0 0 .848 0l.142-.142a.6.6 0 0 0 0-.848L8.676 8Z",clipRule:"evenodd"}),$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.676 8.152 4.738-4.738a.6.6 0 0 0 0-.848l-.142-.142a.6.6 0 0 0-.848 0L2.12 7.728a.6.6 0 0 0 0 .848l5.303 5.303a.6.6 0 0 0 .848 0l.142-.141a.6.6 0 0 0 0-.849L3.676 8.152Z",clipRule:"evenodd"})]});const YS=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2 1.4a.6.6 0 0 1 .6.6v11.4H14a.6.6 0 1 1 0 1.2H2a.6.6 0 0 1-.6-.6V2a.6.6 0 0 1 .6-.6Zm2.4 9.225V8.3a.7.7 0 0 1 1.4 0v2.6a.7.7 0 1 1-1.4 0v-.275ZM7.2 6.3V10.9a.7.7 0 1 0 1.4 0V6.3a.7.7 0 1 0-1.4 0Zm2.8 4.325V8.3a.7.7 0 1 1 1.4 0v2.6a.7.7 0 1 1-1.4 0v-.275ZM12.8 3.3V10.9a.7.7 0 1 0 1.4 0V3.3a.7.7 0 1 0-1.4 0Z",clipRule:"evenodd"})});const QS=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.427 1.013 4.195 15.001H2.833l8.232-13.988h1.362ZM.04 2.964V1.821H5.25v1.143H3.292V8H1.997V2.964H.04Zm11.736 5.038v6.2h1.238v-2.22h2.591v-1.144h-2.59V9.145h2.868V8.002h-4.107Z",clipRule:"evenodd"})});const JS=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.6 2.2H6.4c-1.14 0-1.923 0-2.53.05-.592.049-.91.138-1.141.255A2.8 2.8 0 0 0 1.505 3.73c-.117.23-.206.549-.254 1.142C1.2 5.477 1.2 6.26 1.2 7.4v1.2c0 1.14 0 1.923.05 2.53.049.592.138.91.255 1.141a2.8 2.8 0 0 0 1.224 1.224c.23.117.549.206 1.142.255.606.05 1.39.05 2.529.05h3.2c1.14 0 1.923 0 2.53-.05.592-.049.91-.138 1.141-.255a2.8 2.8 0 0 0 1.224-1.224c.117-.23.206-.549.255-1.142.05-.606.05-1.39.05-2.529V7.4c0-1.14 0-1.923-.05-2.53-.049-.592-.138-.91-.255-1.141a2.8 2.8 0 0 0-1.224-1.224c-.23-.117-.549-.206-1.142-.254C11.524 2.2 10.74 2.2 9.6 2.2Zm-9.164.984C0 4.04 0 5.16 0 7.4v1.2c0 2.24 0 3.36.436 4.216a4 4 0 0 0 1.748 1.748C3.04 15 4.16 15 6.4 15h3.2c2.24 0 3.36 0 4.216-.436a4 4 0 0 0 1.748-1.748C16 11.96 16 10.84 16 8.6V7.4c0-2.24 0-3.36-.436-4.216a4 4 0 0 0-1.748-1.748C12.96 1 11.84 1 9.6 1H6.4c-2.24 0-3.36 0-4.216.436A4 4 0 0 0 .436 3.184Zm5.443.998V10h-1.23V5.35h-.035l-1.332.835V5.094l1.44-.912H5.88Zm2.48 6.932V12h4.147v-1.006h-2.443v-.04l.85-.832c.399-.363.709-.675.928-.934.22-.262.373-.5.458-.714.087-.214.13-.43.13-.65 0-.335-.086-.633-.258-.892a1.726 1.726 0 0 0-.725-.608c-.308-.148-.671-.222-1.088-.222-.405 0-.763.077-1.074.23-.31.154-.552.37-.724.65-.172.281-.258.612-.258.992h1.167c0-.185.036-.345.108-.48a.744.744 0 0 1 .307-.31.962.962 0 0 1 .466-.107c.17 0 .323.034.457.102.135.066.24.162.318.287.078.123.117.27.117.44a.993.993 0 0 1-.094.43c-.062.13-.154.263-.275.4-.12.136-.268.29-.444.46l-2.07 1.918Z",clipRule:"evenodd"})});const e3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.494.632a1.22 1.22 0 0 1 1.012 0l5.954 2.712c.435.198.714.632.714 1.11v7.096c0 .478-.28.912-.715 1.11l-5.954 2.708a1.22 1.22 0 0 1-1.01 0L1.541 12.66a1.22 1.22 0 0 1-.715-1.11V4.454c0-.478.279-.912.714-1.11L7.494.632ZM8 1.765 2.734 4.162 8 6.482l5.266-2.32L8 1.765Zm-5.934 9.772V5.223l5.314 2.34v6.39l-5.314-2.416Zm6.554 2.416 5.314-2.416V5.223L8.62 7.563v6.39Z",clipRule:"evenodd"})});const t3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",d:"M3.085 14.902a1.27 1.27 0 0 1-.931-.39 1.27 1.27 0 0 1-.39-.93V3.418c0-.364.13-.676.39-.938.26-.26.57-.392.93-.392h1v-.382c0-.17.06-.316.183-.437a.6.6 0 0 1 .436-.18c.174 0 .321.06.442.18s.182.267.182.438v.381h5.346v-.382c0-.17.061-.316.184-.437a.6.6 0 0 1 .436-.18c.174 0 .32.06.442.18.121.12.182.267.182.438v.381h.998c.364 0 .677.131.938.392.261.262.392.574.392.938v10.164c0 .361-.13.671-.392.93-.261.26-.574.39-.938.39h-9.83Zm0-1.32h9.83V6.5h-9.83v7.082Zm0-8.082h9.83V3.418h-9.83V5.5Z"})});const n3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.2 8a5.8 5.8 0 0 0 8.932 4.882l-1.446-1.814A3.5 3.5 0 1 1 7.4 4.55v-2.32A5.8 5.8 0 0 0 2.2 8Zm6.4-3.449a3.504 3.504 0 0 1 2.804 2.633h2.339A5.803 5.803 0 0 0 8.6 2.231v2.32Zm2.88 3.833a3.486 3.486 0 0 1-.857 1.934l1.446 1.815a5.782 5.782 0 0 0 1.718-3.749H11.48ZM8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1Zm0 9.3a2.3 2.3 0 1 1 0-4.6 2.3 2.3 0 0 1 0 4.6Z",clipRule:"evenodd"})});const r3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m8 10.324 4.738-4.738a.6.6 0 0 1 .848 0l.142.142a.6.6 0 0 1 0 .848L8.424 11.88a.6.6 0 0 1-.848 0L2.272 6.576a.6.6 0 0 1 0-.848l.142-.142a.6.6 0 0 1 .848 0L8 10.324Z",clipRule:"evenodd"})});const i3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.25 2.7h9.5c.306 0 .53 0 .703.006-.079.153-.187.35-.336.618l-3.045 5.493-.017.03c-.038.07-.088.158-.134.257a.604.604 0 0 0-.068-.004H6.077a4.023 4.023 0 0 0-.132-.253l-.017-.03-3.045-5.493a26.772 26.772 0 0 1-.336-.618c.172-.005.396-.006.703-.006Zm3.032 7.6v2.58c0 .148 0 .264.002.364v.053l.054.001c.1.002.216.002.364.002h2.596c.148 0 .264 0 .364-.002h.053l.001-.054c.002-.1.002-.216.002-.364V10.3H6.282Zm7.885-6.395c.448-.808.672-1.212.626-1.542a1 1 0 0 0-.39-.663c-.267-.2-.73-.2-1.653-.2h-9.5c-.924 0-1.386 0-1.653.2a1 1 0 0 0-.39.663c-.046.33.178.734.626 1.542L4.88 9.4c.077.14.116.21.143.283a1 1 0 0 1 .048.186c.012.078.012.157.012.316v2.696c0 .579 0 .868.116 1.088a1 1 0 0 0 .416.416c.22.116.509.116 1.088.116h2.596c.579 0 .868 0 1.088-.116a1 1 0 0 0 .416-.416c.116-.22.116-.51.116-1.088v-2.696c0-.159 0-.238.012-.316a.995.995 0 0 1 .048-.186c.027-.074.066-.144.143-.283l3.046-5.494Z",clipRule:"evenodd"})});const o3=$.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.324 8 2.586 3.262a.6.6 0 0 1 0-.848l.142-.142a.6.6 0 0 1 .848 0L8.88 7.576a.6.6 0 0 1 0 .848l-5.303 5.304a.6.6 0 0 1-.848 0l-.142-.142a.6.6 0 0 1 0-.848L7.324 8Z",clipRule:"evenodd"}),$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.324 8.152 7.586 3.414a.6.6 0 0 1 0-.848l.142-.142a.6.6 0 0 1 .848 0l5.303 5.304a.6.6 0 0 1 0 .848L8.576 13.88a.6.6 0 0 1-.848 0l-.142-.141a.6.6 0 0 1 0-.849l4.738-4.737Z",clipRule:"evenodd"})]});const l3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11 2.2a2.8 2.8 0 1 0 0 5.6 2.8 2.8 0 0 0 0-5.6Zm-2.4 6a4 4 0 1 0-.841-.856l-5.532 5.53a.6.6 0 1 0 .849.85l.942-.944 1.166 1.166.424.424.849-.848-.425-.425-1.165-1.165.797-.797 1.187 1.187.425.425.848-.85-.424-.423-1.188-1.188L8.6 8.2Z",clipRule:"evenodd"})});const s3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m5.676 8 4.738-4.738a.6.6 0 0 0 0-.848l-.142-.142a.6.6 0 0 0-.848 0L4.12 7.576a.6.6 0 0 0 0 .848l5.303 5.304a.6.6 0 0 0 .848 0l.142-.142a.6.6 0 0 0 0-.848L5.676 8Z",clipRule:"evenodd"})});const a3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M2.6 2a.6.6 0 0 0-1.2 0v8.995a.59.59 0 0 0 0 .01V14a.6.6 0 0 0 .6.6h12a.6.6 0 1 0 0-1.2H2.6v-2.112l4.355-3.484 1.62 1.62a.6.6 0 0 0 .8.045l5-4a.6.6 0 1 0-.75-.938l-4.58 3.665-1.62-1.62a.6.6 0 0 0-.8-.045L2.6 9.751V2Z",clipRule:"evenodd"})});const u3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.575.8h.85c.539 0 .98 0 1.337.03.371.03.706.094 1.018.253a2.6 2.6 0 0 1 1.137 1.137c.159.312.223.647.254 1.018.03.358.03.798.029 1.337v1.433c.462.015.765.06 1.017.188a1.8 1.8 0 0 1 .787.787c.196.385.196.889.196 1.897v3.24c0 1.008 0 1.512-.196 1.897a1.8 1.8 0 0 1-.787.787c-.385.196-.889.196-1.897.196H4.68c-1.008 0-1.512 0-1.897-.196a1.8 1.8 0 0 1-.787-.787c-.196-.385-.196-.889-.196-1.897V8.88c0-1.008 0-1.512.196-1.897a1.8 1.8 0 0 1 .787-.787c.252-.128.555-.173 1.017-.188V4.575c0-.539 0-.98.03-1.337.03-.371.094-.706.253-1.018A2.6 2.6 0 0 1 5.22 1.083C5.532.924 5.867.86 6.238.83 6.596.8 7.036.8 7.575.8ZM11 4.6V6H5V4.6c0-.57 0-.961.025-1.265.025-.296.069-.455.128-.57a1.4 1.4 0 0 1 .611-.612c.116-.06.275-.103.571-.128C6.64 2 7.03 2 7.6 2h.8c.57 0 .961 0 1.265.025.296.025.455.069.57.128a1.4 1.4 0 0 1 .613.611c.058.116.103.275.127.571C11 3.64 11 4.03 11 4.6ZM9.1 9.718c0 .36-.173.68-.44.88v1.56H7.34v-1.56A1.098 1.098 0 0 1 8 8.618a1.1 1.1 0 0 1 1.1 1.1Z",clipRule:"evenodd"})});const c3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.425.8h-.85c-.539 0-.98 0-1.337.03-.371.03-.706.094-1.018.253A2.6 2.6 0 0 0 4.083 2.22c-.159.312-.223.647-.254 1.018-.029.358-.029.798-.029 1.337v1.433c-.462.015-.765.06-1.017.188a1.8 1.8 0 0 0-.787.787C1.8 7.368 1.8 7.872 1.8 8.88v3.24c0 1.008 0 1.512.196 1.897a1.8 1.8 0 0 0 .787.787C3.168 15 3.672 15 4.68 15h6.64c1.008 0 1.512 0 1.897-.196a1.8 1.8 0 0 0 .787-.787c.196-.385.196-.889.196-1.897V8.88c0-1.008 0-1.512-.196-1.897a1.8 1.8 0 0 0-.787-.787c-.252-.128-.555-.173-1.017-.188V4.575c0-.539 0-.98-.03-1.337-.03-.371-.094-.706-.253-1.018a2.6 2.6 0 0 0-1.137-1.137C10.468.924 10.133.86 9.762.83 9.404.8 8.964.8 8.425.8ZM11 6V4.6c0-.57 0-.961-.025-1.265-.024-.296-.069-.455-.127-.57a1.4 1.4 0 0 0-.612-.612c-.116-.06-.275-.103-.571-.128C9.36 2 8.97 2 8.4 2h-.8c-.57 0-.961 0-1.265.025-.296.025-.455.069-.57.128a1.4 1.4 0 0 0-.612.611c-.06.116-.103.275-.128.571C5.001 3.64 5 4.03 5 4.6V6h6ZM4.68 7.2h6.64c.524 0 .845 0 1.085.02a1.536 1.536 0 0 1 .258.042.142.142 0 0 1 .008.003h.001a.6.6 0 0 1 .263.263l.001.003.002.006a1.528 1.528 0 0 1 .041.259c.02.24.021.56.021 1.084v3.24c0 .524 0 .845-.02 1.085a1.528 1.528 0 0 1-.042.258.6.6 0 0 1-.266.272h-.002l-.007.003a1.546 1.546 0 0 1-.258.041c-.24.02-.561.021-1.085.021H4.68c-.524 0-.845-.001-1.084-.02a1.547 1.547 0 0 1-.259-.042.6.6 0 0 1-.272-.266l-.003-.009a1.538 1.538 0 0 1-.041-.258C3 12.964 3 12.643 3 12.12V8.88c0-.524.001-.845.02-1.085a1.538 1.538 0 0 1 .042-.258l.003-.01a.6.6 0 0 1 .263-.262l.009-.003a1.537 1.537 0 0 1 .259-.041c.24-.02.56-.021 1.084-.021Zm3.92 3.429a1 1 0 1 0-1.2 0v1.418h1.2v-1.418Z",clipRule:"evenodd"})});const d3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.2 3.2a1.2 1.2 0 1 1-2.4 0 1.2 1.2 0 0 1 2.4 0Zm0 4.8a1.2 1.2 0 1 1-2.4 0 1.2 1.2 0 0 1 2.4 0ZM8 14a1.2 1.2 0 1 0 0-2.4A1.2 1.2 0 0 0 8 14Z",clipRule:"evenodd"})});const f3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.425 1h1.289l-.887 3.64h3.983L11.697 1h1.289l-.887 3.64h3.195l-.313 1.283h-3.195l-1.024 4.205h3.514l-.313 1.283H10.45L9.575 15H8.286l.875-3.589H5.178L4.303 15H3.014l.875-3.589H.706l.313-1.283H4.2l1.025-4.205H1.724l.313-1.283h3.501L6.425 1Zm3.048 9.128 1.025-4.205H6.515L5.49 10.128h3.983Z",clipRule:"evenodd"})});const p3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 13.8a5.8 5.8 0 0 1-.6-11.57v5.765a.6.6 0 0 0 .134.384l3.602 4.501c-.904.582-1.98.92-3.136.92Zm4.072-1.67a5.781 5.781 0 0 0 1.716-3.759H9.065l3.007 3.759Zm1.67-4.959A5.803 5.803 0 0 0 8.6 2.231v4.94h5.141ZM1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8Z",clipRule:"evenodd"})});const h3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.324 8 5.586 3.262a.6.6 0 0 1 0-.848l.142-.142a.6.6 0 0 1 .848 0l5.303 5.304a.6.6 0 0 1 0 .848l-5.303 5.304a.6.6 0 0 1-.848 0l-.142-.142a.6.6 0 0 1 0-.848L10.324 8Z",clipRule:"evenodd"})});const v3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",d:"M8.214 12.787c1.743 0 2.75-1.779 2.75-4.855 0-3.065-1.007-4.832-2.75-4.832C6.482 3.1 5.5 4.867 5.5 7.932c0 3.076.982 4.855 2.714 4.855Zm-5.674 0c1.1 0 2.246-.808 2.246-2.445 0-1.65-1.041-2.235-1.907-2.995-.667-.597-1.24-1.217-1.24-1.919 0-.585.41-.994.9-.994.691 0 .972.854.96 1.567h1.182C4.692 4.341 4.178 3.1 2.54 3.1.715 3.1.352 4.586.352 5.451c0 1.334.866 2.27 1.65 2.96.164.152.327.281.48.398.573.456 1.017.819 1.017 1.51 0 .56-.28 1.122-.96 1.122-.888 0-1.064-.924-1.122-1.836H.2c-.012 1.72.69 3.182 2.34 3.182ZM8.86 14.6h1.31l-.843-2.398h-1.31L8.86 14.6Zm-.647-3.124c-.89 0-1.463-1.38-1.463-3.544 0-2.153.574-3.522 1.463-3.522.889 0 1.462 1.369 1.462 3.522 0 2.164-.573 3.544-1.462 3.544Zm3.884 1.205h3.767v-1.263h-2.48V3.205h-1.287v9.476Z"})});const m3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1 1.4a.6.6 0 0 0-.6.6v12a.6.6 0 0 0 .6.6h14a.6.6 0 0 0 .6-.6V2a.6.6 0 0 0-.6-.6H1Zm.6 4.15V2.6h3.617v2.95H1.6Zm4.517.9v3.1h3.766v-3.1H6.117Zm4.666-.9V2.6H14.4v2.95h-3.617Zm3.617.9v3.1h-3.617v-3.1H14.4Zm0 4v2.95h-3.617v-2.95H14.4ZM6.117 13.4h3.766v-2.95H6.117v2.95ZM1.6 10.45h3.617v2.95H1.6v-2.95Zm4.517-4.9h3.766V2.6H6.117v2.95Zm-4.517.9h3.617v3.1H1.6v-3.1Z",clipRule:"evenodd"})});const g3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.995 14.306c-.053.217.21.375.374.216l9.036-8.621a.224.224 0 0 0-.155-.387h-3.235l2.967-3.749a.226.226 0 0 0-.177-.365H6.813a.224.224 0 0 0-.195.113L2.57 8.504a.225.225 0 0 0 .194.338h2.597l-1.225 4.9-.14.564ZM10.997 2.5 7.741 6.614h3.323l-5.269 5.027.975-3.899H4.282L7.317 2.5h3.68Z",clipRule:"evenodd"})});const y3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m13.338 5.578-2.536 2.42L5.92 2.67l.786-1.358a.124.124 0 0 1 .108-.063h5.993c.104 0 .162.12.098.203L9.81 5.364h3.442c.112 0 .167.138.086.214ZM8.731 9.975l3.131 3.434h1.697L3.241 2.091H1.543l2.882 3.161-1.767 3.053a.125.125 0 0 0 .108.187H5.49L4.094 14.08c-.03.122.117.208.208.12L8.73 9.975Z",clipRule:"evenodd"})});const x3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",d:"M13.25 5.614H9.808l3.095-3.91a.126.126 0 0 0-.098-.204H6.813a.124.124 0 0 0-.108.063L2.656 8.555a.125.125 0 0 0 .108.187H5.49L4.092 14.33c-.03.122.117.207.208.12l9.036-8.622a.124.124 0 0 0-.086-.214Z"})});const b3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.7 8A5.7 5.7 0 1 1 2.3 8a5.7 5.7 0 0 1 11.4 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM8.654 5.091V7.74l2.151 2.173a.616.616 0 0 1 .188.451.585.585 0 0 1-.188.442.662.662 0 0 1-.45.187.582.582 0 0 1-.45-.187l-2.288-2.37a.798.798 0 0 1-.128-.215.654.654 0 0 1-.043-.239v-2.89a.59.59 0 0 1 .606-.604.583.583 0 0 1 .602.604Z",clipRule:"evenodd"})});const w3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m8 5.676-4.738 4.738a.6.6 0 0 1-.848 0l-.142-.142a.6.6 0 0 1 0-.848L7.576 4.12a.6.6 0 0 1 .848 0l5.304 5.303a.6.6 0 0 1 0 .848l-.142.142a.6.6 0 0 1-.848 0L8 5.676Z",clipRule:"evenodd"})});const S3=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:$.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.305 1.866A1.22 1.22 0 0 0 .182 3.562l4.16 9.827a1.22 1.22 0 0 0 1.123.745h5.07c.49 0 .933-.293 1.124-.745l4.16-9.827a1.22 1.22 0 0 0-1.125-1.696h-4.45c-.49 0-.932.293-1.123.745L8 5.258 6.88 2.611a1.22 1.22 0 0 0-1.124-.745h-4.45ZM8.673 6.85l2.204 5.207 3.787-8.95h-4.407L8.673 6.85Zm1.212 6.045L5.743 3.106H1.336l4.142 9.788h4.407Z",clipRule:"evenodd"})});const _g=ve("CloseIcon",US),E3=ve("ExclamationIcon",KS),$3=ve("DangerIcon",WS);ve("PlusIcon",GS);ve("AiIcon",ZS);const i$=ve("AreaChartIcon",qS);ve("BackwardIcon",XS);const o$=ve("BarChartIcon",YS);ve("BooleanIcon",QS);ve("CountIcon",JS);ve("CubeIcon",e3);ve("DateIcon",t3);const l$=ve("DonutIcon",n3);ve("DownIcon",r3);ve("FilterIcon",i3);ve("ForwardIcon",o3);ve("KeyIcon",l3);ve("LeftIcon",s3);const s$=ve("LineChartIcon",a3);ve("LockFilledIcon",u3);ve("LockIcon",c3);ve("MoreIcon",d3);ve("NumberIcon",f3);const a$=ve("PieChartIcon",p3);ve("RightIcon",h3);ve("SqlIcon",v3);const u$=ve("TableIcon",m3);ve("ThunderboltIcon",g3);ve("ThunderboltCrossedIcon",y3);ve("ThunderboltFilledIcon",x3);ve("TimeIcon",b3);ve("UpIcon",w3);ve("ViewIcon",S3);const P3=ve("SuccessIcon",$.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:$.jsx("path",{d:"m13.67 5.88-5.8 5.8a1.1 1.1 0 0 1-1.55 0l-3-3a1.1 1.1 0 0 1 1.56-1.55l2.21 2.21 5.03-5.02a1.1 1.1 0 0 1 1.55 1.56Z"})})),C3=se({styles:{boxSizing:"border-box",display:"flex",alignSelf:"start",gridArea:"icon",minHeight:"3x",placeContent:"center"}}),T3=se({styles:{boxSizing:"border-box",display:"flex",fill:{"":"#note-bg",attention:"#note-bg",success:"#success-bg",danger:"#danger-bg"},color:{"":"#note-text",attention:"#note-text",success:"#success-text",danger:"#danger-text"},borderRadius:"0.5x",width:"3x",height:"3x",padding:"0.5x",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%"}}}),k3=b.memo(function(n){const{icon:i,type:o}=n;return $.jsx(C3,{children:i||$.jsx(T3,{mods:{attention:o==="attention",success:o==="success",danger:o==="danger"},children:I3[o]})})}),I3={attention:$.jsx(E3,{}),success:$.jsx(P3,{}),danger:$.jsx($3,{})};const L3=se(Vv,{as:"div",preset:"h6",styles:{gridArea:"header",cursor:"default","&:not(:empty)":{margin:"0.25x 0 0.5x"}}}),R3=b.memo(function(n){const{header:i,...o}=n;return $.jsx(L3,{...o,children:i})});const _3=se(Zc,{as:"p",preset:"t4",styles:{gridArea:"description",display:"-webkit-box","-webkit-line-clamp":3,"-webkit-box-orient":"vertical",overflow:"hidden"}}),M3=b.memo(function(n){const{description:i,...o}=n;return $.jsx(_3,{...Xe(o,{onPointerDown:s=>s.stopPropagation(),onMouseDown:s=>s.stopPropagation()}),children:i})});var Kl={},Ju={exports:{}},we={};var H0;function F3(){if(H0)return we;H0=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,d=e?Symbol.for("react.context"):60110,v=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,P=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function R(_){if(typeof _=="object"&&_!==null){var V=_.$$typeof;switch(V){case n:switch(_=_.type,_){case v:case h:case o:case u:case s:case g:return _;default:switch(_=_&&_.$$typeof,_){case d:case m:case E:case w:case c:return _;default:return V}}case i:return V}}}function B(_){return R(_)===h}return we.AsyncMode=v,we.ConcurrentMode=h,we.ContextConsumer=d,we.ContextProvider=c,we.Element=n,we.ForwardRef=m,we.Fragment=o,we.Lazy=E,we.Memo=w,we.Portal=i,we.Profiler=u,we.StrictMode=s,we.Suspense=g,we.isAsyncMode=function(_){return B(_)||R(_)===v},we.isConcurrentMode=B,we.isContextConsumer=function(_){return R(_)===d},we.isContextProvider=function(_){return R(_)===c},we.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===n},we.isForwardRef=function(_){return R(_)===m},we.isFragment=function(_){return R(_)===o},we.isLazy=function(_){return R(_)===E},we.isMemo=function(_){return R(_)===w},we.isPortal=function(_){return R(_)===i},we.isProfiler=function(_){return R(_)===u},we.isStrictMode=function(_){return R(_)===s},we.isSuspense=function(_){return R(_)===g},we.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===o||_===h||_===u||_===s||_===g||_===y||typeof _=="object"&&_!==null&&(_.$$typeof===E||_.$$typeof===w||_.$$typeof===c||_.$$typeof===d||_.$$typeof===m||_.$$typeof===P||_.$$typeof===A||_.$$typeof===I||_.$$typeof===S)},we.typeOf=R,we}var j0;function A3(){return j0||(j0=1,Ju.exports=F3()),Ju.exports}var V0;function N3(){if(V0)return Kl;V0=1,Object.defineProperty(Kl,"__esModule",{value:!0});var e=Vc(),n=A3();function i(o,s,u){return s===void 0&&(s=0),u===void 0&&(u=[]),e.Children.toArray(o).reduce(function(c,d,v){return n.isFragment(d)?c.push.apply(c,i(d.props.children,s+1,u.concat(d.key||v))):e.isValidElement(d)?c.push(e.cloneElement(d,{key:u.concat(String(d.key)).join(".")})):(typeof d=="string"||typeof d=="number")&&c.push(d),c},[])}return Kl.default=i,Kl}var D3=N3();const O3=ps(D3);const B3=se(ld,{styles:{gridArea:"footer",gap:"1x 2x",flow:"row wrap","&:not(:empty)":{margin:{"":"0.5x top","has-description":"1x top"}}}}),H3=b.memo(function(n){const{actions:i,onClose:o,onDismiss:s,hasDescription:u}=n;return $.jsx(B3,{mods:{"has-description":u},children:O3(typeof i=="function"?i({onClose:o,onDismiss:s}):i).filter(c=>zc.isElement(c)).map((c,d)=>{const{props:v}=c,h=d===0?"primary":"secondary";return ce.cloneElement(c,{...v,type:v.type??h},v.children)})})});const j3=se(so,{icon:$.jsx(_g,{}),label:"Close the notification",qa:"NotificationCloseButton",type:"neutral",size:"small",styles:{gridArea:"close",display:"flex",padding:"1x"}}),V3=b.memo(function(n){const{onPress:i}=n;return $.jsx(j3,{onPress:i})});const z3=b.createContext(null);function U3(e){const{children:n,...i}=e;return $.jsx(z3.Provider,{value:i,children:n})}const K3=se({styles:{boxSizing:"border-box",position:"relative",display:"grid",width:"100%",padding:"0.5x 0.5x 1.5x 1.5x",gridAreas:`
|
|
93
|
+
". . . . close"
|
|
94
|
+
"icon . header . close"
|
|
95
|
+
"icon . description . close"
|
|
96
|
+
". . footer footer footer"
|
|
97
|
+
`,gridColumns:"min-content 1x minmax(0, auto) 1x minmax(0, min-content)",gridRows:"1x minmax(0, auto) minmax(0, auto) minmax(0, auto)",fill:"#white",boxShadow:{"":"0 0 0 4bw #purple-04.0 inset",focused:"0 0 0 4bw #purple-04 inset"}}}),W3=b.forwardRef(function(n,i){const{onClose:o,actions:s,header:u,icon:c,description:d,id:v,styles:h,type:m="attention",isDismissible:g=!0,duration:y=null,attributes:w={},qa:E="notification",timer:S,onDismiss:P}=n,A=jh(),I=jh(),R=ot(()=>{o?.()}),B=ot(()=>{g&&P?.()}),{hoverProps:_,isHovered:V}=An({}),{isFocusVisible:W,focusProps:T}=hm({within:!0});return wg({timer:S,delay:y,callback:B,isDisabled:W||V||!g}),$.jsx(Ox,{children:$.jsx(U3,{onClose:o,children:$.jsxs(K3,{...Xe(w,_,T),ref:i,styles:h,"data-id":v,"data-qa":E,"aria-labelledby":A,"aria-describedby":I,mods:{focused:W,"is-dismissible":g},children:[$.jsx(k3,{icon:c,type:m}),$.jsx(R3,{header:u,id:A}),d&&$.jsx(M3,{description:d,id:I}),$.jsx(H3,{hasDescription:!!d,actions:s,onClose:R,onDismiss:B}),g&&$.jsx(V3,{onPress:B})]})})})});const G3=se({styles:{overflow:"hidden",radius:"0.5x",boxShadow:"0 0.5x 2x #shadow",pointerEvents:"auto"}}),Z3=b.memo(function(n){const{item:i,state:o,onRemoveNotification:s,id:u,isDisabledTimer:c,onDismissNotification:d}=n,{props:v,key:h}=i,m=b.useRef(null),g=as(()=>s(u),v.onClose),y=as(()=>d(u),()=>s(u),v.onDismiss),w=ot(({key:P})=>{if(v.isDismissible===!1)return;["Delete","Backspace","Escape"].includes(P)&&y()}),{itemProps:E}=jS({key:h,ref:m,state:o}),{timer:S}=wg({callback:y,delay:v.duration,isDisabled:c});return $.jsx(G3,{children:$.jsx(W3,{ref:m,...v,timer:S,attributes:{...E,onKeyDown:w,role:"status","aria-atomic":"true"},qa:"FloatingNotification",onDismiss:y,onClose:g})})});const Mg="cube-notifications-css-transition",Fg=250;function q3(e){const{children:n,...i}=e,o=b.useRef(null),s=b.useCallback(()=>{o.current&&o.current.style.setProperty("--__notification-size__",`${o.current.scrollHeight}px`)},[]);return $.jsx(ks,{unmountOnExit:!0,mountOnEnter:!0,timeout:Fg,classNames:Mg,onEnter:s,onExit:s,...i,children:$.jsx(X3,{ref:o,children:n})})}const X3=vo.div`
|
|
98
|
+
transition-property: height, opacity, margin-top, margin-bottom;
|
|
99
|
+
transition-duration: ${Fg}ms;
|
|
100
|
+
transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
101
|
+
|
|
102
|
+
&.${Mg} {
|
|
103
|
+
&-enter {
|
|
104
|
+
height: 0;
|
|
105
|
+
opacity: 0;
|
|
106
|
+
will-change: height, opacity;
|
|
107
|
+
}
|
|
108
|
+
&-enter-active {
|
|
109
|
+
height: var(--__notification-size__);
|
|
110
|
+
opacity: 1;
|
|
111
|
+
will-change: height, opacity;
|
|
112
|
+
}
|
|
113
|
+
&-exit {
|
|
114
|
+
height: var(--__notification-size__);
|
|
115
|
+
opacity: 1;
|
|
116
|
+
will-change: height, opacity, margin-top;
|
|
117
|
+
}
|
|
118
|
+
&-exit-active {
|
|
119
|
+
margin-top: -8px;
|
|
120
|
+
height: 0;
|
|
121
|
+
opacity: 0;
|
|
122
|
+
will-change: height, opacity;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
`;const Y3=se({styles:{boxSizing:"border-box",position:"fixed",bottom:"env(safe-area-inset-bottom, 0)",right:"env(safe-area-inset-right, 0)",display:"flex",flexDirection:"column-reverse",width:"auto 100% 50x",height:"100dvh max",padding:"2x",gap:"1x",zIndex:2147483647,overflow:"hidden",isolation:"isolate",pointerEvents:"none"}});function Nc(e){const{items:n,children:i,onRemoveNotification:o,onDismissNotification:s,limit:u=5}=e,c=b.useRef(null),[d,v]=b.useState(u+1),h=b.useRef(),{listProps:m,state:g}=HS({items:n,children:i,ref:c}),{hoverProps:y,isHovered:w}=An({}),{focusProps:E,isFocusVisible:S}=hm({within:!0}),P=ot(_=>{const V=g.collection.getKeyBefore(_.toString())??g.collection.getKeyAfter(_.toString())??g.collection.getLastKey(),W=c.current?.querySelector(`[data-id="${V}"]`);W&&cr(W)}),A=as(o,P);let I=[...g.collection].reverse();const R=I.length,B=I.findIndex(_=>_.props.id===h.current);return B!==-1&&(I=I.slice(0,B)),b.useLayoutEffect(()=>{v(u+1)},[R]),b.useLayoutEffect(()=>{d>u&&v(u)},[d]),I.slice(d).forEach(_=>{h.current=_.props.id}),b.useEffect(()=>{h.current&&(s(h.current),o(h.current),I.find(V=>V.props.id===h.current)?.props.onDismiss?.())},[h.current]),$.jsx(Y3,{ref:c,qa:"NotificationsBar",role:"region","aria-live":"polite",...Xe(m,y,E),children:$.jsx(ad,{enter:!0,exit:!0,component:null,children:I.slice(0,d).map(_=>$.jsx(q3,{children:$.jsx(Z3,{isDisabledTimer:w||S,id:_.props.id,item:_,state:g,onRemoveNotification:A,onDismissNotification:s})},_.props.id))})})}Nc.Item=nb;const ec="cube:notification:dismiss";function Q3(e){const n=b.useMemo(()=>new Date().getTime(),[]),i=b.useRef(0),o=b.useRef([]),[s,u]=b.useState(new Map),c=Object.assign(ot(y=>{const w=i.current++,{id:E=`${n}_${w}`,duration:S,isDismissible:P=!0,...A}=y;return u(I=>{const R=new Map(I);return R.set(E,{id:E,isDismissible:P,duration:S??(P?5e3:null),...A}),R}),{id:E,remove:()=>v(E),update:I=>d(E,I)}}),{success:y=>c({type:"success",...y}),danger:y=>c({type:"danger",...y}),attention:y=>c({type:"attention",...y})}),d=ot((y,w)=>{u(E=>{const S=E.get(y);if(S){const P=new Map(E);return P.set(y,{...S,...w}),P}return E})}),v=ot(y=>{u(w=>{if(w.has(y)){const E=new Map(w);return E.delete(y),E}return w})}),h=ot(y=>{const w=s.get(y);w!=null&&w?.putNotificationInDropdownOnDismiss!==!1&&e?.current?.dispatchEvent(new CustomEvent(ec,{detail:w}))}),m=ot(y=>{const w=S=>y(S.detail),E=()=>e?.current?.removeEventListener(ec,w);return o.current.push(E),e?.current?.addEventListener(ec,w),E});return b.useEffect(()=>()=>o.current.forEach(y=>y()),[]),{api:b.useMemo(()=>({notify:c,update:d,remove:v}),[]),notifications:b.useMemo(()=>[...s.values()],[s]),onDismissNotification:h,addOnDismissListener:m}}const J3=b.createContext(null);function eE(e){const{children:n,rootRef:i}=e,{notifications:o,api:s,addOnDismissListener:u,onDismissNotification:c}=Q3(i),d=b.useMemo(()=>({api:s,addOnDismissListener:u}),[]);return $.jsxs(J3.Provider,{value:d,children:[$.jsx(cs,{children:$.jsx(Nc,{items:o,onRemoveNotification:s.remove,onDismissNotification:c,children:v=>$.jsx(Nc.Item,{...v},v.id)})}),n]})}const tE=se({qa:"Underlay",styles:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:9,transitionDelay:"0ms",opacity:{"":0,open:.9999},pointerEvents:{"":"none",open:"auto"},fill:"#dark.30",overflow:"hidden",transition:"transform .25s ease-in-out, opacity .25s linear, visibility 0ms linear"}});function nE({isOpen:e,transitionState:n,...i},o){return $.jsx(tE,{ref:o,mods:{open:e},...i})}let rE=b.forwardRef(nE);const iE={entering:!1,entered:!0},Ag=b.createContext(null);function oE(){return b.useContext(Ag)}function lE(e){return $.jsx(Zt,{timeout:{enter:0,exit:350},...e,children:n=>$.jsx(Ag.Provider,{value:{transitionState:n},children:b.Children.map(e.children,i=>i&&b.cloneElement(i,{isOpen:!!iE[n],transitionState:n}))})})}function sE(e,n){let{children:i,isOpen:o,container:s=null,onEnter:u,onEntering:c,onEntered:d,onExit:v,onExiting:h,onExited:m,hideOnClose:g=!1}=e,[y,w]=b.useState(!o),{root:E}=vr({}),S=b.useCallback(()=>{w(!1),d?.()},[d]),P=b.useCallback(()=>{w(!0),m?.()},[m]);if(!(o||!y)&&!g)return null;let I=$.jsx(od,{ref:n,children:$.jsx(lE,{appear:!0,in:o,onExit:v,onExiting:h,onExited:P,onEnter:u,onEntering:c,onEntered:S,children:i})});return rd.createPortal(I,s||E||document.body)}let aE=b.forwardRef(sE);const uE={position:"fixed",display:"grid",left:0,top:0,placeItems:{"":"center",'[data-type="fullscreen"]':"center",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"stretch"},boxSizing:"border-box",width:"100vw",height:"100dvh",pointerEvents:"none",zIndex:10,transition:{"":"visibility .5s steps(2, start)",open:"visibility 0s linear"}},cE=se({qa:"ModalWrapper",styles:uE}),dE=se({styles:{display:{"":"none","entering | entered":"grid",exiting:"grid",exited:"none"},zIndex:10,height:{"":"max 90dvh",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"100dvh 100dvh",'[data-type="fullscreen"]':"90dvh 90dvh",'[data-type="fullscreenTakeover"]':"100dvh 100dvh"},width:{width:"288px 90vw"},pointerEvents:"none",transition:"opacity .25s linear, transform .25s ease-in-out",transform:{"":"initial",'[data-type="modal"] & !open':"translate(0, -3x) scale(1, 1)",'[data-type^="fullscreen"] & !open':"translate(0, 0) scale(1.02, 1.02)"},opacity:{"":0,open:.9999}}});function fE(e,n){let{qa:i,children:o,onClose:s,type:u,styles:c,...d}=e,v=ai(n),{overlayProps:h,underlayProps:m}=o4({...e},v);return $.jsxs(aE,{...d,children:[u!=="fullscreenTakeover"&&$.jsx(rE,{...m}),$.jsx(pE,{ref:v,qa:i,type:u,overlayProps:h,styles:c,onClose:s,children:o})]})}let pE=b.forwardRef(function(n,i){let{qa:o,children:s,isOpen:u,type:c,placement:d,styles:v,overlayProps:h,transitionState:m,...g}=n;s4({isDisabled:m!=="entered"});let{modalProps:y}=d4({isDisabled:m!=="entered"});return $.jsx(cE,{"data-type":c,"data-placement":d,children:$.jsx(dE,{qa:o||"Modal",styles:v,mods:{open:u,entering:m==="entering",exiting:m==="exiting",exited:m==="exited",entered:m==="entered"},"data-type":c,"data-placement":d,...Xe(g,h,y),ref:i,children:s})})}),hE=b.forwardRef(fE);const Ng=b.createContext({});function Dg(){const e=b.useContext(Ng);return Lg(e!==null),e}function vE(e){const{children:n,type:i="modal",onDismiss:o,isDismissable:s,isKeyboardDismissDisabled:u,isOpen:c}=e,d=b.Children.toArray(n);if(d.length>1)throw new Error("Only a single child can be passed to DialogContainer.");const v=b.useRef(),h=b.isValidElement(d[0])?d[0]:null;h&&(v.current=h);const m=typeof c!="boolean"?!!h:c,g={type:i,onClose:o,isDismissable:s};return $.jsx(hE,{isOpen:m,type:i,isDismissable:s,isKeyboardDismissDisabled:u,onClose:s?o:void 0,children:$.jsx(Ng.Provider,{value:g,children:h})})}function mE(e){return ud(e,["value","defaultValue"],"string",n=>String(n))}function gE(e){return ud(e,["value","defaultValue"],"object",n=>Array.isArray(n)?n:[])}function yE(e){return ud(e,["isSelected","defaultSelected"],"boolean",n=>!!n)}function ud(e,n,i,o){return e={...e},n.forEach(s=>{e[s]===null&&(e[s]=void 0),i&&o&&e[s]!=null&&typeof e[s]!=i&&(e[s]=o(e[s]),console.warn("Wrong value type in",e,"in keys",JSON.stringify(n)))}),e}function xE(e){const[n,i]=b.useState(!1),{title:o,children:s,tooltipStyles:u,width:c,...d}=e;return b.useEffect(()=>{i(!0)},[]),n?$.jsxs(RS,{...d,children:[s,$.jsx(BS,{styles:u,...c?{width:c}:null,children:o})]}):$.jsx($.Fragment,{children:s})}let bE=xE;const wE=se({styles:{display:"flex",flow:"row"}}),SE=b.forwardRef(function(n,i){const o=Ce(n,Ge);return $.jsx(wE,{...He(n,{eventProps:!0}),ref:i,styles:o})});const EE=$.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 100 125",style:{enableBackground:"new 0 0 100 100",width:".8em",height:".8em",transform:"rotate(-5deg)"},children:$.jsx("switch",{children:$.jsx("g",{children:$.jsx("polygon",{fill:"currentColor",points:"97.5,47.5 90.5,26.1 61.3,35.6 61.3,4.8 38.7,4.8 38.7,35.6 9.5,26.1 2.5,47.5 31.8,57 13.7,82 31.9,95.2 50,70.3 68.1,95.2 86.3,82 68.2,57"})})})}),$E={"(required)":"(required)","(optional)":"(optional)"},cd={preset:"t3",color:{"":"#dark.85",invalid:"#danger-text"},whiteSpace:"nowrap"},Og={display:"block",preset:"h6",color:{"":"#dark",invalid:"#danger-text"},whiteSpace:"nowrap",width:{"":"initial",side:"@(label-width, initial)"}},PE=se({as:"label",qa:"Label",styles:Og});function CE(e,n){e=vr(e);let{as:i,qa:o,children:s,labelPosition:u="top",isRequired:c,necessityIndicator:d=c!=null?"icon":null,includeNecessityIndicatorInAccessibilityName:v=!1,htmlFor:h,isDisabled:m,validationState:g,for:y,onClick:w,...E}=e,S=ai(n);const P=Ce(E,Ge);let A=B=>$E[B],I=A(c?"(required)":"(optional)"),R=$.jsx("span",{"aria-label":v?A("(required)"):void 0,children:EE});return $.jsx(PE,{...He(E),ref:S,styles:P,htmlFor:y||h,mods:{side:u==="side",disabled:m,invalid:g==="invalid",valid:g==="valid"},onClick:w,children:typeof s!="string"?s:$.jsxs($.Fragment,{children:[s,(d==="label"||d==="icon"&&c)&&" ",d==="label"&&$.jsx("span",{"aria-hidden":v?void 0:c,children:I}),d==="icon"&&c&&R]})})}let TE=b.forwardRef(CE);const kE=se({qa:"Field",styles:{display:"grid",gridColumns:{"":"minmax(0, 1fr)","has-sider":"@(full-label-width, auto) minmax(0, 1fr)"},gap:0,placeItems:"baseline stretch","@full-label-width":"(@label-width + 1x)",LabelArea:{display:"block",width:{"":"initial","has-sider":"@label-width"},margin:{"":"1x bottom","has-sider":"1x right",":empty":"0"}},InputArea:{display:"block",flow:"column",gridColumn:{"":"initial","has-sider":2}}}}),IE=se({qa:"Field_Message",styles:{preset:"t3",color:{"":"#dark.75",invalid:"#danger-text",valid:"#success-text",disabled:"#dark.40"},textAlign:"left",userSelect:"none"}}),Bg=b.forwardRef(function(n,i){const{as:o,labelPosition:s="top",label:u,extra:c,styles:d,isRequired:v,isDisabled:h,labelStyles:m,necessityIndicator:g,labelProps:y,fieldProps:w,message:E,messageStyles:S,description:P,Component:A,validationState:I,requiredMark:R=!0,tooltip:B,isHidden:_,labelSuffix:V,children:W}=n,T=u?$.jsx(TE,{as:o==="label"?"div":"label",styles:m,labelPosition:s,isRequired:R?v:!1,isDisabled:h,necessityIndicator:g,validationState:I,"aria-label":u,...y,children:$.jsxs(SE,{placeContent:"baseline space-between",width:"100%",children:[$.jsxs(Tg,{placeItems:"center",gap:"0.25x",children:[$.jsx("div",{children:u}),B?$.jsx(bE,{activeWrap:!0,title:B,width:"initial max-content 40x",children:$.jsx(g2,{style:{color:"var(--purple-text-color)",margin:"0 4px"}})}):null,$.jsx("div",{children:V})]}),c&&$.jsx(Gc,{preset:"t3",children:c})]})}):null;let U=P?$.jsx("div",{"data-element":"Description",children:Hx(P,()=>$.jsx(Zc,{children:P}))}):null;const O={"has-sider":s==="side","has-description":!!P,invalid:I==="invalid",valid:I==="valid"};return $.jsxs($.Fragment,{children:[$.jsxs(kE,{ref:i,as:o??"div",mods:O,isHidden:_,styles:d,...w,children:[T||U?$.jsxs("div",{"data-element":"LabelArea",children:[T,U]}):null,$.jsxs("div",{"data-element":"InputArea",children:[A,E&&!h&&$.jsx(IE,{mods:O,styles:S,role:I==="invalid"?"alert":void 0,children:E})]})]}),W]})});const rr={};function LE(e){if(!e)return;rr[e]||(rr[e]=[]);let n=0,i;do i=n?`${e}_${n}`:e,n++;while(rr[e].includes(i));return rr[e].push(i),i}function RE(e,n){rr[e]&&(rr[e]=rr[e].filter(i=>i!==n))}function Hg(e,n){e=ui(e);let{defaultValue:i,id:o,idPrefix:s,name:u,form:c,rules:d,message:v,validateTrigger:h=n.defaultValidationTrigger,validationState:m,validationDelay:g,showValid:y,shouldUpdate:w}=e;d&&d.length&&g&&d.unshift(tS(g));const E=!u,S=u??"",P=O4();let[A,I]=b.useState(o||(s?`${s}_${S}`:S));b.useEffect(()=>{let W;return!o&&!E&&(W=LE(A),I(W)),()=>{o||RE(s?`${s}_${S}`:S,W),S&&c&&c.removeField(S)}},[]);let R=c?.getFieldInstance(S);R&&(R.rules=d);let B=d&&!!d.find(W=>W.required);b.useEffect(()=>{c&&(R?c.forceReRender():c.createField(S))},[R]),c&&(P&&(R||(R=c.createField(S,!0)),R?.value==null&&i!=null&&(c.setFieldValue(S,i,!1,!0),c.updateInitialFieldsValue({[S]:i}),R=c?.getFieldInstance(S))),!R?.touched&&i!=null&&c.setFieldValue(S,i,!1,!0));const _=ot((W,T)=>{if(!c)return;const U=c.getFieldInstance(S);if(w){const O=c.getFieldsValue();if(typeof w=="boolean"?!w:!w(O,{...O,[S]:W}))return}c.setFieldValue(S,W,!T,!1,T),!T&&(h==="onChange"||U&&U.errors&&U.errors.length)&&c.validateField(S).catch(()=>{})}),V=ot(()=>{h==="onBlur"&&setTimeout(()=>{c?.validateField(S).catch(()=>{})})});return b.useMemo(()=>({id:A,name:S,value:R?.inputValue,validateTrigger:h,form:c,field:R,nonInput:E,validationState:m??(R?.errors?.length?"invalid":y&&R?.status==="valid"?"valid":void 0),...B&&{isRequired:B},message:v??(R?.status==="invalid"&&R?.errors?.[0]),onBlur:V,onChange:_}),[c,R,R?.errors?.length,R?.status,R?.inputValue,A,S,B,V,_,h,m,y,E])}function Is(e,n={}){const i=b.useRef(n.unsafe__isDisabled??!1),{valuePropsMapper:o=({value:y,onChange:w})=>({value:y??null,onChange:w}),defaultValidationTrigger:s="onBlur"}=n,u=FE();if(e.rules&&e.name,u||i.current===!0||e.name==null)return e;const c=Hg(e,{defaultValidationTrigger:n.defaultValidationTrigger}),d=c?.form==null;e.rules&&d&&R0(`The "rules" prop is not supported for fields that are not part of a form. The "${e.name}" field is placed outside the form.`);const v=as(c?.onBlur,"onBlur"in e?e.onBlur:void 0),h=ot((y,w)=>c?.onChange?.(y,w,c?.validateTrigger??s)),m=d?{}:o({value:c.value,onChange:h});if(u&&!d){const y=d?[]:Object.keys(m).filter(w=>w.startsWith("on"));for(const w of y)w in e&&R0(`The "${w}" listener is not supported for input "${e.name}" that is linked to a form via a <Field> component. Remove the <Field> component and move its properties to the input itself.`)}const g=d?e:Xe(e,c,m,{validateTrigger:c.validateTrigger??s,onBlur:v});return g.id&&(g.labelProps||(g.labelProps={}),g.labelProps.for=g.id),g}function _E(e){return e=e||"",e==="Number"||e.includes("Text")?"onBlur":"onChange"}function z0(e,n,i,o){return e=e||"",e==="Number"?{value:n??null,onChange:i}:e==="Text"?{value:typeof n=="string"||typeof n=="number"?String(n):"",onChange:i}:e==="Checkbox"?{isSelected:n??!1,isIndeterminate:!1,onChange:i}:e==="CheckboxGroup"?{value:n??[],onChange:i}:e==="RangeSlider"?{value:n??void 0,onChange:i}:e==="ComboBox"?{inputValue:n??"",onInputChange:s=>i(s,!o),onSelectionChange:i}:e==="Select"?{selectedKey:n??null,onSelectionChange:i}:{value:n??null,onChange:i}}function ME(e){const n=ui(e);let{children:i,form:o,label:s,extra:u,necessityLabel:c,necessityIndicator:d,description:v,tooltip:h,isHidden:m,isDisabled:g,isLoading:y,styles:w,labelProps:E,labelPosition:S="top",labelStyles:P,labelSuffix:A}=n;typeof i=="function"&&(i=i(o));let I=i==null?null:b.Children.only(i);const R=I?.type?.cubeInputType??"Text",B=Hg(n,{defaultValidationTrigger:_E(R)}),{validationState:_,message:V,isRequired:W,name:T,id:U}=B;if(!I)return null;if(U&&(E||(E={}),E.for=U),B.nonInput)return $.jsx(tc,{children:$.jsx(Bg,{isHidden:m,isDisabled:g,validationState:B.validationState,necessityIndicator:d,necessityLabel:c,isRequired:W,label:s,labelProps:E,extra:u,tooltip:h,message:V,description:v,Component:I,styles:w,labelPosition:S,labelStyles:P,labelSuffix:A})});if(!o)return null;if(!B.field)return $.jsx(tc,{children:b.cloneElement(I,Xe(I.props,{...z0(R),label:T,name:T,id:U}))});const O={id:U,name:T,onBlur:B.onBlur};d!=null&&(O.necessityIndicator=d),c&&(O.necessityLabel=c),_&&(O.validationState=_),W&&(O.isRequired=W),s&&(O.label=s),u&&(O.extra=u),h&&(O.tooltip=h),V&&(O.message=V),m!=null&&(O.isHidden=m),g!=null&&(O.isDisabled=g),y!=null&&(O.isLoading=y),Object.assign(O,z0(R,B.field?.inputValue,B.onChange,I.props.allowsCustomValue));const{onChange:H,onSelectionChange:ne,...D}=I.props;return $.jsx(tc,{children:b.cloneElement(I,Xe(D,O,H?{onChange:B.onChange}:{},ne?{onSelectionChange:B.onChange}:{}))})}const jg=b.createContext({insideLegacyField:!1});function tc(e){const n=b.useMemo(()=>({insideLegacyField:!0}),[]);return $.jsx(jg.Provider,{value:n,children:e.children})}function FE(){const{insideLegacyField:e=!1}=b.useContext(jg);return e}const eo={success:{fill:"#success-bg",color:"#success-text",border:"#success.40"},danger:{fill:"#danger-bg",color:"#danger-text",border:"#danger.40"},note:{fill:"#note-bg",color:"#note-text",border:"#note.40"},disabled:{fill:"#dark.10",color:"#dark.40",border:"#dark.20"}};const AE=[...Ge,...Gt];function NE(e){const{type:n,isDisabled:i=!1,theme:o}=e,s=Ce(e,AE);return N4(typeof n>"u",{property:"type",name:"Alert",betterAlternative:"theme"}),{styles:s,theme:i?"disabled":o??n??"note",filteredProps:He(e,{eventProps:!0})}}const DE=se({name:"Alert",role:"alert",qa:"Alert",styles:{display:"block",flow:"column",radius:"1r",padding:"1.5x",preset:"t3",color:{"":"#dark",'[data-type="disabled"]':eo.disabled.color},fill:{"":"#clear",...Object.keys(eo).reduce((e,n)=>(e[`[data-type="${n}"]`]=eo[n].fill,e),{})},border:{"":"#clear",...Object.keys(eo).reduce((e,n)=>(e[`[data-type="${n}"]`]=eo[n].border,e),{})}}}),OE=b.forwardRef(function(n,i){const{styles:o,theme:s,filteredProps:u}=NE(n);return $.jsx(DE,{...u,ref:i,"data-type":s,styles:o})});const BE=function(n){let{submitError:i}=b.useContext(wo);return i?(!b.isValidElement(i)&&typeof i!="string"&&(i="Internal error"),$.jsx(OE,{theme:"danger",...n,children:i})):null};const c$=Object.assign(sS,{Item:ME,useForm:Cg,SubmitError:BE});function dd(e,n,i){let{label:o,extra:s,labelPosition:u="top",labelStyles:c,isRequired:d,necessityIndicator:v,necessityLabel:h,validationState:m,message:g,description:y,isDisabled:w,labelProps:E,requiredMark:S=!0,tooltip:P,isHidden:A,labelSuffix:I,styles:R,children:B}=i;return $.jsx(Bg,{labelPosition:u,label:o,extra:s,styles:R,isRequired:d,labelStyles:c,necessityIndicator:v,necessityLabel:h,labelProps:E,isDisabled:w,validationState:m,message:g,description:y,requiredMark:S,tooltip:P,isHidden:A,labelSuffix:I,children:B,Component:e,ref:n})}const HE=[...Ge,...Gt],jE=se({qa:"Content",as:"section",styles:{gridArea:"content",preset:"p3",color:"#dark.75",display:"block",flow:"column",gap:"2x",overflow:"auto",styledScrollbar:!0}}),VE=b.forwardRef(function(n,i){n=fr(n,"content");const o=Ce(n,HE);return $.jsx(jE,{...He(n,{eventProps:!0}),ref:i,styles:o})});const zE=[...Ge,...Gt],UE=se({qa:"Header",as:"header",styles:{display:"block",gridArea:"header",flow:"column"}}),KE=b.forwardRef(function(n,i){n=fr(n,"header");const o=Ce(n,zE);return $.jsx(UE,{...He(n,{eventProps:!0}),ref:i,styles:o})});var Dc="data-focus-lock",Vg="data-focus-lock-disabled",WE="data-no-focus-lock",GE="data-autofocus-inside",ZE="data-no-autofocus";function nc(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function qE(e,n){var i=b.useState(function(){return{value:e,callback:n,facade:{get current(){return i.value},set current(o){var s=i.value;s!==o&&(i.value=o,i.callback(o,s))}}}})[0];return i.callback=n,i.facade}var U0=new WeakMap;function XE(e,n){var i=qE(null,function(o){return e.forEach(function(s){return nc(s,o)})});return b.useLayoutEffect(function(){var o=U0.get(i);if(o){var s=new Set(o),u=new Set(e),c=i.current;s.forEach(function(d){u.has(d)||nc(d,null)}),u.forEach(function(d){s.has(d)||nc(d,c)})}U0.set(i,e)},[e]),i}var rc={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function zg(e){return e}function Ug(e,n){n===void 0&&(n=zg);var i=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(u){var c=n(u,o);return i.push(c),function(){i=i.filter(function(d){return d!==c})}},assignSyncMedium:function(u){for(o=!0;i.length;){var c=i;i=[],c.forEach(u)}i={push:function(d){return u(d)},filter:function(){return i}}},assignMedium:function(u){o=!0;var c=[];if(i.length){var d=i;i=[],d.forEach(u),c=i}var v=function(){var m=c;c=[],m.forEach(u)},h=function(){return Promise.resolve().then(v)};h(),i={push:function(m){c.push(m),h()},filter:function(m){return c=c.filter(m),i}}}};return s}function fd(e,n){return n===void 0&&(n=zg),Ug(e,n)}function YE(e){e===void 0&&(e={});var n=Ug(null);return n.options=ge({async:!0,ssr:!1},e),n}var Kg=fd({},function(e){var n=e.target,i=e.currentTarget;return{target:n,currentTarget:i}}),Wg=fd(),QE=fd(),JE=YE({async:!0,ssr:typeof document<"u"}),e5=b.createContext(void 0),t5=[],pd=b.forwardRef(function(n,i){var o,s=b.useState(),u=s[0],c=s[1],d=b.useRef(),v=b.useRef(!1),h=b.useRef(null),m=b.useState({}),g=m[1],y=n.children,w=n.disabled,E=w===void 0?!1:w,S=n.noFocusGuards,P=S===void 0?!1:S,A=n.persistentFocus,I=A===void 0?!1:A,R=n.crossFrame,B=R===void 0?!0:R,_=n.autoFocus,V=_===void 0?!0:_;n.allowTextSelection;var W=n.group,T=n.className,U=n.whiteList,O=n.hasPositiveIndices,H=n.shards,ne=H===void 0?t5:H,D=n.as,j=D===void 0?"div":D,ue=n.lockProps,xe=ue===void 0?{}:ue,Y=n.sideCar,X=n.returnFocus,ee=X===void 0?!1:X,z=n.focusOptions,de=n.onActivation,fe=n.onDeactivation,Bt=b.useState({}),ht=Bt[0],Nn=b.useCallback(function(wt){var jt=wt.captureFocusRestore;if(!h.current){var Xt,It=(Xt=document)==null?void 0:Xt.activeElement;h.current=It,It!==document.body&&(h.current=jt(It))}d.current&&de&&de(d.current),v.current=!0,g()},[de]),vt=b.useCallback(function(){v.current=!1,fe&&fe(d.current),g()},[fe]),fn=b.useCallback(function(wt){var jt=h.current;if(jt){var Xt=(typeof jt=="function"?jt():jt)||document.body,It=typeof ee=="function"?ee(Xt):ee;if(It){var pn=typeof It=="object"?It:void 0;h.current=null,wt?Promise.resolve().then(function(){return Xt.focus(pn)}):Xt.focus(pn)}}},[ee]),Ht=b.useCallback(function(wt){v.current&&Kg.useMedium(wt)},[]),So=Wg.useMedium,Ls=b.useCallback(function(wt){d.current!==wt&&(d.current=wt,c(wt))},[]),mr=ao((o={},o[Vg]=E&&"disabled",o[Dc]=W,o),xe),ci=P!==!0,gr=ci&&P!=="tail",di=XE([i,Ls]),Eo=b.useMemo(function(){return{observed:d,shards:ne,enabled:!E,active:v.current}},[E,v.current,ne,u]);return b.createElement(b.Fragment,null,ci&&[b.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:E?-1:0,style:rc}),O?b.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:E?-1:1,style:rc}):null],!E&&b.createElement(Y,{id:ht,sideCar:JE,observed:u,disabled:E,persistentFocus:I,crossFrame:B,autoFocus:V,whiteList:U,shards:ne,onActivation:Nn,onDeactivation:vt,returnFocus:fn,focusOptions:z}),b.createElement(j,ao({ref:di},mr,{className:T,onBlur:So,onFocus:Ht}),b.createElement(e5.Provider,{value:Eo},y)),gr&&b.createElement("div",{"data-focus-guard":!0,tabIndex:E?-1:0,style:rc}))});pd.propTypes={};function n5(e,n){function i(o){return o.displayName||o.name||"Component"}return function(s){var u=[],c;function d(){c=e(u.map(function(h){return h.props})),n(c)}var v=(function(h){Ts(m,h);function m(){return h.apply(this,arguments)||this}m.peek=function(){return c};var g=m.prototype;return g.componentDidMount=function(){u.push(this),d()},g.componentDidUpdate=function(){d()},g.componentWillUnmount=function(){var w=u.indexOf(this);u.splice(w,1),d()},g.render=function(){return ce.createElement(s,this.props)},m})(b.PureComponent);return y2(v,"displayName","SideEffect("+i(s)+")"),v}}var qt=function(e){for(var n=Array(e.length),i=0;i<e.length;++i)n[i]=e[i];return n},dr=function(e){return Array.isArray(e)?e:[e]},Gg=function(e){return Array.isArray(e)?e[0]:e},r5=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=window.getComputedStyle(e,null);return!n||!n.getPropertyValue?!1:n.getPropertyValue("display")==="none"||n.getPropertyValue("visibility")==="hidden"},Zg=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},qg=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},i5=function(e){return e.hasAttribute("inert")},o5=function(e,n){return!e||qg(e)||!r5(e)&&!i5(e)&&n(Zg(e))},Xg=function(e,n){var i=e.get(n);if(i!==void 0)return i;var o=o5(n,Xg.bind(void 0,e));return e.set(n,o),o},l5=function(e,n){return e&&!qg(e)?u5(e)?n(Zg(e)):!1:!0},Yg=function(e,n){var i=e.get(n);if(i!==void 0)return i;var o=l5(n,Yg.bind(void 0,e));return e.set(n,o),o},Qg=function(e){return e.dataset},s5=function(e){return e.tagName==="BUTTON"},Jg=function(e){return e.tagName==="INPUT"},e1=function(e){return Jg(e)&&e.type==="radio"},a5=function(e){return!((Jg(e)||s5(e))&&(e.type==="hidden"||e.disabled))},u5=function(e){var n=e.getAttribute(ZE);return![!0,"true",""].includes(n)},hd=function(e){var n;return!!(e&&(!((n=Qg(e))===null||n===void 0)&&n.focusGuard))},Oc=function(e){return!hd(e)},c5=function(e){return!!e},d5=function(e,n){var i=Math.max(0,e.tabIndex),o=Math.max(0,n.tabIndex),s=i-o,u=e.index-n.index;if(s){if(!i)return 1;if(!o)return-1}return s||u},f5=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},vd=function(e,n,i){return qt(e).map(function(o,s){var u=f5(o);return{node:o,index:s,tabIndex:i&&u===-1?(o.dataset||{}).focusGuard?0:-1:u}}).filter(function(o){return!n||o.tabIndex>=0}).sort(d5)},p5=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],md=p5.join(","),h5="".concat(md,", [data-focus-guard]"),t1=function(e,n){return qt((e.shadowRoot||e).children).reduce(function(i,o){return i.concat(o.matches(n?h5:md)?[o]:[],t1(o))},[])},v5=function(e,n){var i;return e instanceof HTMLIFrameElement&&(!((i=e.contentDocument)===null||i===void 0)&&i.body)?li([e.contentDocument.body],n):[e]},li=function(e,n){return e.reduce(function(i,o){var s,u=t1(o,n),c=(s=[]).concat.apply(s,u.map(function(d){return v5(d,n)}));return i.concat(c,o.parentNode?qt(o.parentNode.querySelectorAll(md)).filter(function(d){return d===o}):[])},[])},m5=function(e){var n=e.querySelectorAll("[".concat(GE,"]"));return qt(n).map(function(i){return li([i])}).reduce(function(i,o){return i.concat(o)},[])},gd=function(e,n){return qt(e).filter(function(i){return Xg(n,i)}).filter(function(i){return a5(i)})},K0=function(e,n){return n===void 0&&(n=new Map),qt(e).filter(function(i){return Yg(n,i)})},yd=function(e,n,i){return vd(gd(li(e,i),n),!0,i)},ds=function(e,n){return vd(gd(li(e),n),!1)},g5=function(e,n){return gd(m5(e),n)},or=function(e,n){return e.shadowRoot?or(e.shadowRoot,n):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,n)?!0:qt(e.children).some(function(i){var o;if(i instanceof HTMLIFrameElement){var s=(o=i.contentDocument)===null||o===void 0?void 0:o.body;return s?or(s,n):!1}return or(i,n)})},y5=function(e){for(var n=new Set,i=e.length,o=0;o<i;o+=1)for(var s=o+1;s<i;s+=1){var u=e[o].compareDocumentPosition(e[s]);(u&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&n.add(s),(u&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(o)}return e.filter(function(c,d){return!n.has(d)})},n1=function(e){return e.parentNode?n1(e.parentNode):e},xd=function(e){var n=dr(e);return n.filter(Boolean).reduce(function(i,o){var s=o.getAttribute(Dc);return i.push.apply(i,s?y5(qt(n1(o).querySelectorAll("[".concat(Dc,'="').concat(s,'"]:not([').concat(Vg,'="disabled"])')))):[o]),i},[])},x5=function(e){try{return e()}catch{return}},fo=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var n=e.activeElement;return n.shadowRoot?fo(n.shadowRoot):n instanceof HTMLIFrameElement&&x5(function(){return n.contentWindow.document})?fo(n.contentWindow.document):n}},b5=function(e,n){return e===n},w5=function(e,n){return!!qt(e.querySelectorAll("iframe")).some(function(i){return b5(i,n)})},r1=function(e,n){return n===void 0&&(n=fo(Gg(e).ownerDocument)),!n||n.dataset&&n.dataset.focusGuard?!1:xd(e).some(function(i){return or(i,n)||w5(i,n)})},S5=function(e){e===void 0&&(e=document);var n=fo(e);return n?qt(e.querySelectorAll("[".concat(WE,"]"))).some(function(i){return or(i,n)}):!1},E5=function(e,n){return n.filter(e1).filter(function(i){return i.name===e.name}).filter(function(i){return i.checked})[0]||e},bd=function(e,n){return e1(e)&&e.name?E5(e,n):e},$5=function(e){var n=new Set;return e.forEach(function(i){return n.add(bd(i,e))}),e.filter(function(i){return n.has(i)})},W0=function(e){return e[0]&&e.length>1?bd(e[0],e):e[0]},G0=function(e,n){return e.indexOf(bd(n,e))},Bc="NEW_FOCUS",P5=function(e,n,i,o,s){var u=e.length,c=e[0],d=e[u-1],v=hd(o);if(!(o&&e.indexOf(o)>=0)){var h=o!==void 0?i.indexOf(o):-1,m=s?i.indexOf(s):h,g=s?e.indexOf(s):-1;if(h===-1)return g!==-1?g:Bc;if(g===-1)return Bc;var y=h-m,w=i.indexOf(c),E=i.indexOf(d),S=$5(i),P=o!==void 0?S.indexOf(o):-1,A=P-(s?S.indexOf(s):h);if(!y&&g>=0||n.length===0)return g;var I=G0(e,n[0]),R=G0(e,n[n.length-1]);if(h<=w&&v&&Math.abs(y)>1)return R;if(h>=E&&v&&Math.abs(y)>1)return I;if(y&&Math.abs(A)>1)return g;if(h<=w)return R;if(h>E)return I;if(y)return Math.abs(y)>1?g:(u+g+y)%u}},C5=function(e){return function(n){var i,o=(i=Qg(n))===null||i===void 0?void 0:i.autofocus;return n.autofocus||o!==void 0&&o!=="false"||e.indexOf(n)>=0}},Z0=function(e,n,i){var o=e.map(function(u){var c=u.node;return c}),s=K0(o.filter(C5(i)));return s&&s.length?W0(s):W0(K0(n))},Hc=function(e,n){return n===void 0&&(n=[]),n.push(e),e.parentNode&&Hc(e.parentNode.host||e.parentNode,n),n},ic=function(e,n){for(var i=Hc(e),o=Hc(n),s=0;s<i.length;s+=1){var u=i[s];if(o.indexOf(u)>=0)return u}return!1},i1=function(e,n,i){var o=dr(e),s=dr(n),u=o[0],c=!1;return s.filter(Boolean).forEach(function(d){c=ic(c||d,d)||c,i.filter(Boolean).forEach(function(v){var h=ic(u,v);h&&(!c||or(h,c)?c=h:c=ic(h,c))})}),c},q0=function(e,n){return e.reduce(function(i,o){return i.concat(g5(o,n))},[])},T5=function(e,n){var i=new Map;return n.forEach(function(o){return i.set(o.node,o)}),e.map(function(o){return i.get(o)}).filter(c5)},k5=function(e,n){var i=fo(dr(e).length>0?document:Gg(e).ownerDocument),o=xd(e).filter(Oc),s=i1(i||e,e,o),u=new Map,c=ds(o,u),d=c.filter(function(E){var S=E.node;return Oc(S)});if(d[0]){var v=ds([s],u).map(function(E){var S=E.node;return S}),h=T5(v,d),m=h.map(function(E){var S=E.node;return S}),g=h.filter(function(E){var S=E.tabIndex;return S>=0}).map(function(E){var S=E.node;return S}),y=P5(m,g,v,i,n);if(y===Bc){var w=Z0(c,g,q0(o,u))||Z0(c,m,q0(o,u));if(w)return{node:w};console.warn("focus-lock: cannot find any node to move focus into");return}return y===void 0?y:h[y]}},I5=function(e){var n=xd(e).filter(Oc),i=i1(e,e,n),o=vd(li([i],!0),!0,!0),s=li(n,!1);return o.map(function(u){var c=u.node,d=u.index;return{node:c,index:d,lockItem:s.indexOf(c)>=0,guard:hd(c)}})},wd=function(e,n){e&&("focus"in e&&e.focus(n),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},oc=0,lc=!1,o1=function(e,n,i){i===void 0&&(i={});var o=k5(e,n);if(!lc&&o){if(oc>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lc=!0,setTimeout(function(){lc=!1},1);return}oc++,wd(o.node,i.focusOptions),oc--}};function to(e){if(!e)return null;var n=e?new WeakRef(e):null;return function(){return n?.deref()||null}}var L5=function(e){if(!e)return null;for(var n=[],i=e;i&&i!==document.body;)n.push({current:to(i),parent:to(i.parentElement),left:to(i.previousElementSibling),right:to(i.nextElementSibling)}),i=i.parentElement;return{element:to(e),stack:n,ownerDocument:e.ownerDocument}},R5=function(e){var n,i,o,s,u;if(e)for(var c=e.stack,d=e.ownerDocument,v=new Map,h=0,m=c;h<m.length;h++){var g=m[h],y=(n=g.parent)===null||n===void 0?void 0:n.call(g);if(y&&d.contains(y)){for(var w=(i=g.left)===null||i===void 0?void 0:i.call(g),E=g.current(),S=y.contains(E)?E:void 0,P=(o=g.right)===null||o===void 0?void 0:o.call(g),A=yd([y],v),I=(u=(s=S??w?.nextElementSibling)!==null&&s!==void 0?s:P)!==null&&u!==void 0?u:w;I;){for(var R=0,B=A;R<B.length;R++){var _=B[R];if(I?.contains(_.node))return _.node}I=I.nextElementSibling}if(A.length)return A[0].node}}},_5=function(e){var n=L5(e);return function(){return R5(n)}},M5=function(e,n,i){if(!e||!n)return console.error("no element or scope given"),{};var o=dr(n);if(o.every(function(c){return!or(c,e)}))return console.error("Active element is not contained in the scope"),{};var s=i?yd(o,new Map):ds(o,new Map),u=s.findIndex(function(c){var d=c.node;return d===e});if(u!==-1)return{prev:s[u-1],next:s[u+1],first:s[0],last:s[s.length-1]}},F5=function(e,n){var i=n?yd(dr(e),new Map):ds(dr(e),new Map);return{first:i[0],last:i[i.length-1]}},A5=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},l1=function(e,n,i){n===void 0&&(n={});var o=A5(n),s=M5(e,o.scope,o.onlyTabbable);if(s){var u=i(s,o.cycle);u&&wd(u.node,o.focusOptions)}},N5=function(e,n){n===void 0&&(n={}),l1(e,n,function(i,o){var s=i.next,u=i.first;return s||o&&u})},D5=function(e,n){n===void 0&&(n={}),l1(e,n,function(i,o){var s=i.prev,u=i.last;return s||o&&u})},s1=function(e,n,i){var o,s=F5(e,(o=n.onlyTabbable)!==null&&o!==void 0?o:!0),u=s[i];u&&wd(u.node,n.focusOptions)},O5=function(e,n){n===void 0&&(n={}),s1(e,n,"first")},B5=function(e,n){n===void 0&&(n={}),s1(e,n,"last")};function Sd(e){setTimeout(e,1)}var H5=function(n){return n&&"current"in n?n.current:n},j5=function(){return document&&document.activeElement===document.body},V5=function(){return j5()||S5()},ti=null,Jr=null,ni=null,po=!1,z5=function(){return!0},U5=function(n){return(ti.whiteList||z5)(n)},K5=function(n,i){ni={observerNode:n,portaledElement:i}},W5=function(n){return ni&&ni.portaledElement===n};function X0(e,n,i,o){var s=null,u=e;do{var c=o[u];if(c.guard)c.node.dataset.focusAutoGuard&&(s=c);else if(c.lockItem){if(u!==e)return;s=null}else break}while((u+=i)!==n);s&&(s.node.tabIndex=0)}var G5=function(n){return n?!!po:po==="meanwhile"},Z5=function e(n,i,o){return i&&(i.host===n&&(!i.activeElement||o.contains(i.activeElement))||i.parentNode&&e(n,i.parentNode,o))},q5=function(n,i){return i.some(function(o){return Z5(n,o,o)})},fs=function(){var n=!1;if(ti){var i=ti,o=i.observed,s=i.persistentFocus,u=i.autoFocus,c=i.shards,d=i.crossFrame,v=i.focusOptions,h=o||ni&&ni.portaledElement,m=document&&document.activeElement;if(h){var g=[h].concat(c.map(H5).filter(Boolean));if((!m||U5(m))&&(s||G5(d)||!V5()||!Jr&&u)&&(h&&!(r1(g)||m&&q5(m,g)||W5(m))&&(document&&!Jr&&m&&!u?(m.blur&&m.blur(),document.body.focus()):(n=o1(g,Jr,{focusOptions:v}),ni={})),po=!1,Jr=document&&document.activeElement),document&&m!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var y=document&&document.activeElement,w=I5(g),E=w.map(function(S){var P=S.node;return P}).indexOf(y);E>-1&&(w.filter(function(S){var P=S.guard,A=S.node;return P&&A.dataset.focusAutoGuard}).forEach(function(S){var P=S.node;return P.removeAttribute("tabIndex")}),X0(E,w.length,1,w),X0(E,-1,-1,w))}}}return n},a1=function(n){fs()&&n&&(n.stopPropagation(),n.preventDefault())},Ed=function(){return Sd(fs)},X5=function(n){var i=n.target,o=n.currentTarget;o.contains(i)||K5(o,i)},Y5=function(){return null},u1=function(){po="just",Sd(function(){po="meanwhile"})},Q5=function(){document.addEventListener("focusin",a1),document.addEventListener("focusout",Ed),window.addEventListener("blur",u1)},J5=function(){document.removeEventListener("focusin",a1),document.removeEventListener("focusout",Ed),window.removeEventListener("blur",u1)};function e8(e){return e.filter(function(n){var i=n.disabled;return!i})}var c1={moveFocusInside:o1,focusInside:r1,focusNextElement:N5,focusPrevElement:D5,focusFirstElement:O5,focusLastElement:B5,captureFocusRestore:_5};function t8(e){var n=e.slice(-1)[0];n&&!ti&&Q5();var i=ti,o=i&&n&&n.id===i.id;ti=n,i&&!o&&(i.onDeactivation(),e.filter(function(s){var u=s.id;return u===i.id}).length||i.returnFocus(!n)),n?(Jr=null,(!o||i.observed!==n.observed)&&n.onActivation(c1),fs(),Sd(fs)):(J5(),Jr=null)}Kg.assignSyncMedium(X5);Wg.assignMedium(Ed);QE.assignMedium(function(e){return e(c1)});const n8=n5(e8,t8)(Y5);var d1=b.forwardRef(function(n,i){return b.createElement(pd,ao({sideCar:n8,ref:i},n))}),f1=pd.propTypes||{};f1.sideCar;hs(f1,["sideCar"]);d1.propTypes={};const r8=[...Fn,...Kc,...mo],i8=se({as:"section",styles:{pointerEvents:"auto",position:"relative",display:"flex",placeItems:"stretch",placeContent:"stretch",width:{"":"288px @dialog-size 90vw",'[data-type="fullscreen"]':"90vw 90vw",'[data-type="fullscreenTakeover"]':"100vw 100vw",'[data-type="panel"]':"100vw 100vw"},height:{"":"max 90vh",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"max 100vh"},gap:0,flow:"column",radius:{"":"2r",'[data-type="tray"]':"2r top",'[data-type="fullscreenTakeover"] | [data-type="panel"]':"0r"},fill:"#white",shadow:{"":"0 20px 30px #shadow",'[data-type="popover"]':"0px 4px 16px #shadow"},top:{"":!1,'[data-type="modal"]':"((50vh - 50%) / -3)"},placeSelf:"stretch","@dialog-heading-padding-v":{"":"2x",'[data-type="popover"]':"1x"},"@dialog-content-padding-v":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-padding-h":{"":"3x",'[data-type="popover"]':"2x"},"@dialog-footer-v":{"":"2x",'[data-type="popover"]':"1x"},"@dialog-content-gap":"3x"}}),o8=vo(d1)`
|
|
126
|
+
display: contents;
|
|
127
|
+
`,l8={display:"flex",position:"absolute",top:"1x",right:"1x",width:"5x",height:"5x",placeContent:"center"},s8={S:"small",M:"medium",L:"large"},a8={small:360,medium:479,large:798},u8={"en-US":{dismiss:"Dismiss",alert:"Alert"}},c8=b.forwardRef(function(n,i){const s=oE()?.transitionState==="entered";return $.jsx(o8,{returnFocus:!0,disabled:!s,children:$.jsx(d8,{...n,ref:i},"content")})}),d8=b.forwardRef(function(n,i){let{type:o="modal",...s}=Dg(),{qa:u,children:c,size:d="S",isDismissable:v=s.isDismissable,onDismiss:h=s.onClose,closeIcon:m,closeButtonStyles:g,...y}=n;d=s8[d.toUpperCase()]||d;const w=Ce(y,r8);let E=A6(u8),S=ai(i),{dialogProps:P,titleProps:A}=S4(Xe(s,n),S),I;(o==="popover"||o==="tray")&&(I=$.jsx(f4,{onDismiss:h}));let R={heading:{level:2,preset:"h4",...A},content:{styles:{flexGrow:1,padding:"@dialog-content-padding-v @dialog-padding-h",gap:"@dialog-content-gap",height:{"":"max (100% - (2 * @dialog-content-padding-v))",":last-child":"max (100% - @dialog-content-padding-v)"}}},header:{ellipsis:!0,styles:{display:"flex",flow:"row",gap:"1x",placeItems:"baseline stretch",placeContent:"space-between",padding:`@dialog-heading-padding-v ${v?"(@dialog-padding-h + 4x)":"@dialog-padding-h"} @dialog-heading-padding-v @dialog-padding-h`,border:"bottom"}},footer:{styles:{display:"flex",gap:"1x",flow:"row",placeItems:"baseline stretch",placeContent:"space-between",padding:"@dialog-footer-v @dialog-padding-h"}}};return $.jsxs(i8,{ref:S,"data-id":"Dialog","data-qa":u||"Dialog",styles:w,as:"section",...P,mods:{dismissable:v},style:{"--dialog-size":`${a8[d]||288}px`},"data-type":o,"data-size":d,children:[I,$.jsxs(Dx,{slots:R,children:[v&&$.jsx(so,{qa:"ModalCloseButton",type:"neutral",styles:l8,icon:m||$.jsx(_g,{}),label:E("dismiss"),onPress:()=>h&&h()}),c]})]})});const f8=se({styles:{display:"grid",flow:"row"}}),p8={template:"gridTemplate",columns:"gridColumns",rows:"gridRows",areas:"gridAreas"},d$=b.forwardRef(function(n,i){const o=Ce(n,Ge,void 0,p8);return $.jsx(f8,{...He(n,{eventProps:!0}),ref:i,styles:o})});const h8=se({styles:{display:"block",flow:"column"}}),v8=Ge,f$=b.forwardRef(function(n,i){const o=Ce(n,v8);return $.jsx(h8,{...He(n,{eventProps:!0}),ref:i,styles:o})});const jc={pink:"255, 100, 146","pink-02":"255, 131, 168",purple:"122, 119, 255","purple-text":"102, 93, 232","purple-01":"122, 119, 255","purple-02":"149, 146, 255","purple-03":"175, 173, 255","purple-04":"202, 201, 255",text:"91, 92, 125",dark:"20, 20, 70","dark-01":"20, 20, 70","dark-02":"67, 67, 107","dark-03":"114, 114, 144","dark-04":"161, 161, 181","dark-05":"213, 213, 226","grey-light":"248, 248, 249",light:"246, 246, 248",white:"255, 255, 255",black:"0, 0, 0","danger-text":"227, 0, 42",danger:"255, 55, 73","light-grey":"248, 248, 249",success:"49, 195, 124","success-text":"48, 166, 102",note:"251, 188, 5",warning:"224, 86, 43"};function $e(e,n=1){return`rgba(${jc[e]}, ${n})`}const ho={"font-size":"14px","line-height":"20px","input-font-size":"14px","input-line-height":"20px","input-letter-spacing":"0.02em","disabled-opacity":".4",gap:"8px","outline-width":"calc(1rem / 16 * 3)","border-width":"1px",radius:"4px","leaf-sharp-radius":"0px",transition:"80ms","clear-color":"transparent","border-color":$e("dark",.1),"shadow-color":$e("dark-03",.1),"draft-color":$e("dark",.2),"minor-color":$e("dark",.65),"success-bg-color":"rgba(41, 190, 110, .1)","note-bg-color":$e("note",.1),"note-text-color":$e("note",1),"danger-bg-color":$e("danger",.05),"danger-bg-hover-color":$e("danger",.1),"primary-1":$e("purple",.9),"primary-2":$e("purple",.8),"primary-3":$e("purple",.7),"primary-4":$e("purple",.6),"primary-5":$e("purple",.5),"primary-6":$e("purple",.4),"primary-7":$e("purple",.3),"primary-8":$e("purple",.2),"primary-9":$e("purple",.1),"primary-10":$e("purple",0),"dark-75-color":$e("dark",.75),"primary-color":$e("purple"),"pink-8-color":$e("pink",.2),"pink-9-color":$e("pink",.1),"disabled-color":$e("dark-01",.25),"disabled-text-color":$e("dark-01",.25),"disabled-bg":$e("dark-05",.2),"disabled-bg-color":$e("dark-05",.2),"max-content-width":"1440px","topbar-height":"48px","devmodebar-height":"54px","sidebar-width":"200px","border-radius-base":"4px","text-font-size":"14px","text-line-height":"20px","text-letter-spacing":"0","h1-font-size":"36px","h1-line-height":"44px","h1-letter-spacing":"-0.01em","h1-font-weight":"700","h2-font-size":"24px","h2-line-height":"36px","h2-letter-spacing":"0em","h2-font-weight":"700","h3-font-size":"20px","h3-line-height":"28px","h3-letter-spacing":"0em","h3-font-weight":"700","h4-font-size":"18px","h4-line-height":"24px","h4-letter-spacing":"0","h4-font-weight":"700","h5-font-size":"16px","h5-line-height":"22px","h5-letter-spacing":"0","h5-font-weight":"700","h5-icon-size":"18px","h6-font-size":"14px","h6-line-height":"20px","h6-letter-spacing":"0.01em","h6-font-weight":"600","h6-icon-size":"16px","t1-font-size":"18px","t1-line-height":"24px","t1-letter-spacing":"0","t1-font-weight":"400","t1-icon-size":"20px","t2-font-size":"16px","t2-line-height":"22px","t2-letter-spacing":"0","t2-font-weight":"400","t2-icon-size":"18px","t2m-font-size":"16px","t2m-line-height":"22px","t2m-letter-spacing":"0","t2m-font-weight":"500","t2m-icon-size":"18px","t3-font-size":"14px","t3-line-height":"20px","t3-letter-spacing":"0","t3-font-weight":"400","t3-icon-size":"16px","t3m-font-size":"14px","t3m-line-height":"20px","t3m-letter-spacing":"0","t3m-font-weight":"500","t3m-icon-size":"16px","t4-font-size":"12px","t4-line-height":"18px","t4-letter-spacing":"0","t4-font-weight":"500","t4-icon-size":"14px","t4m-font-size":"12px","t4m-line-height":"18px","t4m-letter-spacing":"0","t4m-font-weight":"600","t4m-icon-size":"14px","p1-font-size":"18px","p1-line-height":"28px","p1-letter-spacing":"0","p1-font-weight":"400","p1-icon-size":"20px","p2-font-size":"16px","p2-line-height":"24px","p2-letter-spacing":"0","p2-font-weight":"400","p2-icon-size":"18px","p3-font-size":"14px","p3-line-height":"22px","p3-letter-spacing":"0","p3-font-weight":"400","p3-icon-size":"16px","p4-font-size":"12px","p4-line-height":"20px","p4-letter-spacing":"0","p4-font-weight":"500","p4-icon-size":"14px","c1-font-size":"14px","c1-line-height":"20px","c1-letter-spacing":"0","c1-font-weight":"500","c1-text-transform":"uppercase","c1-icon-size":"16px","c2-font-size":"12px","c2-line-height":"18px","c2-letter-spacing":"0.01em","c2-font-weight":"500","c2-text-transform":"uppercase","c2-icon-size":"14px","tag-font-size":"12px","tag-line-height":"18px","tag-letter-spacing":"0.01em","tag-font-weight":"600","tag-icon-size":"14px","strong-font-size":"inherit","strong-line-height":"inherit","strong-letter-spacing":"inherit","strong-font-family":"inherit","strong-font-style":"inherit","strong-font-weight":"var(--bold-font-weight, var(--default-bold-font-weight, 700))","em-font-size":"inherit","em-line-height":"inherit","em-letter-spacing":"inherit","em-font-family":"inherit","em-font-style":"italic","em-font-weight":"inherit","default-font-size":"var(--t3-font-size)","default-line-height":"var(--t3-line-height)","default-letter-spacing":"var(--t3-letter-spacing)","default-font-weight":"var(--t3-font-weight)","default-bold-font-weight":"700","default-icon-size":"inherit","scrollbar-width":"1.5x","scrollbar-outline-width":"1ow","scrollbar-radius":"1.5r","scrollbar-thumb-color":"rgba(var(--text-color-rgb), .5)","scrollbar-outline-color":"var(--clear-color)","scrollbar-bg-color":"var(--grey-light-color)","scrollbar-corner-color":"var(--clear-color)"};Object.keys(jc).forEach(e=>{ho[`${e}-color`]=$e(e),ho[`${e}-color-rgb`]=jc[e]});const m8={"overscroll-behavior-y":"none","background-color":"white !important","font-family":"var(--font)","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale",margin:"0",padding:"0",color:"rgba(20, 20, 70, .75)","font-size":"14px","line-height":"20px","letter-spacing":"0.02em","font-weight":"400"},g8=({publicUrl:e="",fontDisplay:n="swap"})=>`
|
|
128
|
+
@font-face {
|
|
129
|
+
font-family: 'Inter';
|
|
130
|
+
font-style: normal;
|
|
131
|
+
font-weight: 400;
|
|
132
|
+
font-display: ${n};
|
|
133
|
+
src: url(${e}/fonts/Inter-Regular.woff2) format('woff2'),
|
|
134
|
+
url(${e}/fonts/Inter-Regular.woff) format('woff');
|
|
135
|
+
}
|
|
136
|
+
@font-face {
|
|
137
|
+
font-family: 'Inter';
|
|
138
|
+
font-style: normal;
|
|
139
|
+
font-weight: 500;
|
|
140
|
+
font-display: ${n};
|
|
141
|
+
src: url(${e}/fonts/Inter-Medium.woff2) format('woff2'),
|
|
142
|
+
url(${e}/fonts/Inter-Medium.woff) format('woff');
|
|
143
|
+
}
|
|
144
|
+
@font-face {
|
|
145
|
+
font-family: 'Inter';
|
|
146
|
+
font-style: normal;
|
|
147
|
+
font-weight: 600;
|
|
148
|
+
font-display: ${n};
|
|
149
|
+
src: url(${e}/fonts/Inter-SemiBold.woff2) format('woff2'),
|
|
150
|
+
url(${e}/fonts/Inter-SemiBold.woff) format('woff');
|
|
151
|
+
}
|
|
152
|
+
@font-face {
|
|
153
|
+
font-family: 'Inter';
|
|
154
|
+
font-style: normal;
|
|
155
|
+
font-weight: 700;
|
|
156
|
+
font-display: ${n};
|
|
157
|
+
src: url(${e}/fonts/Inter-Bold.woff2) format('woff2'),
|
|
158
|
+
url(${e}/fonts/Inter-Bold.woff) format('woff');
|
|
159
|
+
}
|
|
160
|
+
@font-face {
|
|
161
|
+
font-family: 'Source Code Pro';
|
|
162
|
+
src: url('${e}/fonts/SourceCodePro-Regular.woff2') format('woff2'),
|
|
163
|
+
url('${e}/fonts/SourceCodePro-Regular.woff') format('woff');
|
|
164
|
+
font-weight: normal;
|
|
165
|
+
font-style: normal;
|
|
166
|
+
font-display: ${n};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@font-face {
|
|
170
|
+
font-family: 'JetBrains Mono';
|
|
171
|
+
font-style: normal;
|
|
172
|
+
font-weight: 400;
|
|
173
|
+
font-display: ${n};
|
|
174
|
+
src: url(${e}/fonts/JetBrainsMono-Regular.woff2) format('woff2'),
|
|
175
|
+
url(${e}/fonts/JetBrainsMono-Regular.woff) format('woff');
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@font-face {
|
|
179
|
+
font-family: 'JetBrains Mono';
|
|
180
|
+
font-style: normal;
|
|
181
|
+
font-weight: 700;
|
|
182
|
+
font-display: ${n};
|
|
183
|
+
src: url(${e}/fonts/JetBrainsMono-Bold.woff2) format('woff2'),
|
|
184
|
+
url(${e}/fonts/JetBrainsMono-Bold.woff) format('woff');
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
@font-face {
|
|
188
|
+
font-family: 'text-security-disc';
|
|
189
|
+
src: url(${e}/fonts/text-security-disc.woff2) format('woff2'),
|
|
190
|
+
url(${e}/fonts/text-security-disc.woff) format('woff');
|
|
191
|
+
}
|
|
192
|
+
`,y8=ev`
|
|
193
|
+
body {
|
|
194
|
+
${({$applyLegacyTokens:e})=>e?Object.entries(ho).map(([n,i])=>(i==="inherit"&&(i=`var(--non-existent-${n}, inherit)`),`--${n}: ${i};`)).join(`
|
|
195
|
+
`):""}
|
|
196
|
+
${({$bodyStyles:e})=>Object.entries({...m8,...e}).map(([n,i])=>`${n}: ${i};`).join(`
|
|
197
|
+
`)}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
html {
|
|
201
|
+
overscroll-behavior-y: none;
|
|
202
|
+
--font: ${({$font:e})=>e||"Inter"}, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
203
|
+
--monospace-font: ${({$monospaceFont:e})=>`${e?`${e}, `:""}Menlo, Monaco, Consolas, 'Courier New', monospace;`}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
kbd {
|
|
207
|
+
font-family: var(--c2-font-family);
|
|
208
|
+
font-weight: var(--c2-font-weight);
|
|
209
|
+
font-size: var(--c2-font-size);
|
|
210
|
+
border: var(--border-width) solid var(--dark-04-color);
|
|
211
|
+
background-color: white;
|
|
212
|
+
color: var(--dark-color);
|
|
213
|
+
border-radius: var(--radius);
|
|
214
|
+
padding: 0 var(--outline-width);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.cube-notification-container {
|
|
218
|
+
min-width: 288px;
|
|
219
|
+
max-width: 340px;
|
|
220
|
+
width: calc(100vw - 32px);
|
|
221
|
+
position: fixed;
|
|
222
|
+
top: 32px;
|
|
223
|
+
right: 16px;
|
|
224
|
+
z-index: 999999;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.cube-notifications {
|
|
228
|
+
display: grid;
|
|
229
|
+
grid-auto-flow: row;
|
|
230
|
+
grid-template-columns: 1fr;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.cube-notification-enter {
|
|
234
|
+
opacity: 0;
|
|
235
|
+
max-height: 0px;
|
|
236
|
+
margin-bottom: 0px;
|
|
237
|
+
transform: translate(100%, 0);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.cube-notification-enter-active {
|
|
241
|
+
opacity: 1;
|
|
242
|
+
max-height: 56px;
|
|
243
|
+
margin-bottom: 8px;
|
|
244
|
+
transform: translate(0, 0);
|
|
245
|
+
transition: all 300ms ease-in;
|
|
246
|
+
|
|
247
|
+
& > * {
|
|
248
|
+
margin-bottom: 0px;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.cube-notification-exit {
|
|
253
|
+
opacity: 1;
|
|
254
|
+
margin-bottom: 8px;
|
|
255
|
+
max-height: 56px;
|
|
256
|
+
transform: translate(0, 0);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.cube-notification-exit-active {
|
|
260
|
+
opacity: 0;
|
|
261
|
+
max-height: 0px;
|
|
262
|
+
margin-bottom: 0px;
|
|
263
|
+
transform: translate(100%, 0);
|
|
264
|
+
transition: all 300ms ease-in;
|
|
265
|
+
|
|
266
|
+
& > * {
|
|
267
|
+
margin-bottom: 0px;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
b, strong {
|
|
272
|
+
font-weight: var(--bold-font-weight, 700);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
[type=reset], [type=submit], button, html [type=button] {
|
|
276
|
+
-webkit-appearance: none;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
code {
|
|
280
|
+
font-family: var(--monospace-font);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
${({$fonts:e,$publicUrl:n,$fontDisplay:i})=>e===!1?"":g8({publicUrl:n,...i?{fontDisplay:i}:{}})}
|
|
284
|
+
// Prism Code
|
|
285
|
+
code[class*="language-"],
|
|
286
|
+
pre[class*="language-"] {
|
|
287
|
+
color: var(--dark-color);
|
|
288
|
+
background: none;
|
|
289
|
+
font-family: "Source Code Pro", Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
|
290
|
+
text-align: left;
|
|
291
|
+
font-weight: normal;
|
|
292
|
+
font-size: 14px;
|
|
293
|
+
line-height: 20px;
|
|
294
|
+
white-space: pre;
|
|
295
|
+
word-spacing: normal;
|
|
296
|
+
word-break: normal;
|
|
297
|
+
word-wrap: normal;
|
|
298
|
+
border-radius: 4px;
|
|
299
|
+
border: none;
|
|
300
|
+
|
|
301
|
+
-moz-tab-size: 4;
|
|
302
|
+
-o-tab-size: 4;
|
|
303
|
+
tab-size: 4;
|
|
304
|
+
|
|
305
|
+
-webkit-hyphens: none;
|
|
306
|
+
-moz-hyphens: none;
|
|
307
|
+
-ms-hyphens: none;
|
|
308
|
+
hyphens: none;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
|
|
312
|
+
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
|
|
313
|
+
text-shadow: none;
|
|
314
|
+
/*background: #b3d4fc;*/
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
|
318
|
+
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
|
319
|
+
text-shadow: none;
|
|
320
|
+
/*background: #b3d4fc;*/
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
@media print {
|
|
324
|
+
code[class*="language-"],
|
|
325
|
+
pre[class*="language-"] {
|
|
326
|
+
text-shadow: none;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* Code blocks */
|
|
331
|
+
pre[class*="language-"] {
|
|
332
|
+
overflow: auto;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
:not(pre) > code[class*="language-"],
|
|
336
|
+
pre[class*="language-"] {
|
|
337
|
+
background: transparent;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* Inline code */
|
|
341
|
+
:not(pre) > code[class*="language-"] {
|
|
342
|
+
border-radius: .3em;
|
|
343
|
+
white-space: normal;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.token.comment,
|
|
347
|
+
.token.prolog,
|
|
348
|
+
.token.doctype,
|
|
349
|
+
.token.cdata {
|
|
350
|
+
color: var(--dark-04-color);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.token.keyword,
|
|
354
|
+
.token.tag,
|
|
355
|
+
.token.operator,
|
|
356
|
+
.token.punctuation {
|
|
357
|
+
color: #993388;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.namespace {
|
|
361
|
+
opacity: .7;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.token.property,
|
|
365
|
+
.token.boolean,
|
|
366
|
+
.token.constant,
|
|
367
|
+
.token.symbol,
|
|
368
|
+
.token.deleted {
|
|
369
|
+
color: var(--pink-color);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.token.entity,
|
|
373
|
+
.token.number {
|
|
374
|
+
color: #30A666;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.token.selector,
|
|
378
|
+
.token.attr-name,
|
|
379
|
+
.token.string,
|
|
380
|
+
.token.char,
|
|
381
|
+
.token.builtin,
|
|
382
|
+
.token.inserted {
|
|
383
|
+
color: var(--purple-text-color);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.token.url,
|
|
387
|
+
.language-css .token.string,
|
|
388
|
+
.style .token.string {
|
|
389
|
+
color: var(--dark-color);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.token.atrule,
|
|
393
|
+
.token.attr-value {
|
|
394
|
+
color: var(--dark-color);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.token.atrule,
|
|
398
|
+
.token.keyword {
|
|
399
|
+
font-weight: 500;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.token.function,
|
|
403
|
+
.token.class-name {
|
|
404
|
+
color: var(--pink-color);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.token.regex,
|
|
408
|
+
.token.important,
|
|
409
|
+
.token.variable {
|
|
410
|
+
color: var(--pink-color);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.token.important,
|
|
414
|
+
.token.bold {
|
|
415
|
+
font-weight: bold;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.token.italic {
|
|
419
|
+
font-style: italic;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.token.entity {
|
|
423
|
+
cursor: help;
|
|
424
|
+
}
|
|
425
|
+
`,x8=e=>{const n={};return Object.entries(e).forEach(([i,o])=>{o!==void 0&&(n[`$${i}`]=o)}),$.jsx(y8,{...n})};const b8=[...Ge,...Gt],w8=se({qa:"Footer","data-id":"Footer",styles:{gridArea:"footer",display:"block",flow:"column"}}),S8=b.forwardRef(function(n,i){n=fr(n,"footer");const o=Ce(n,b8);return $.jsx(w8,{...He(n,{eventProps:!0}),ref:i,styles:o})});const E8={label:"Ok",type:"primary"},$8={label:"Cancel"};function P8(e,n){const{onClose:i}=Dg(),{danger:o,actions:s,title:u,styles:c,noActions:d,content:v,...h}=e;let{confirm:m,secondary:g,cancel:y}=s??{};return m=m!==!1?{...E8,...typeof m=="object"?m:null}:void 0,y=y?{...$8,...typeof y=="object"?y:null}:void 0,$.jsxs(c8,{ref:n,role:"alertdialog",isDismissable:!1,...h,children:[u?$.jsx(KE,{children:$.jsx(Vv,{children:u})}):null,v?$.jsx(VE,{children:typeof v=="string"?$.jsx(Zc,{children:v}):v}):null,d?null:$.jsx(S8,{children:$.jsxs(ld,{align:"end",children:[$.jsx(so,{autoFocus:!0,theme:o?"danger":void 0,...m,onPress:w=>ql(m?.onPress?.(w),i?.("confirm"))}),g&&$.jsx(so,{...g,onPress:w=>ql(g?.onPress?.(w),i?.("secondary"))}),y&&$.jsx(so,{...y,onPress:w=>ql(y?.onPress?.(w),i?.("cancel"))})]})})]})}const C8=b.forwardRef(P8);const Y0="AlertDialogZone";function T8(e){const{openedDialog:n}=e;if(n===null)return $.jsx(cs,{},Y0);const{type:i,isDismissable:o=!0,actions:s,onDismiss:u,content:c,...d}=n.props,{resolve:v,reject:h,isVisible:m,dialogType:g}=n.meta,y=(()=>{const w=(E,S)=>{if(typeof E>"u")return;if(typeof E=="boolean")return E?{onPress:()=>v(S)}:!1;const P=E.onPress;return{...E,onPress:A=>{P?.(A),v(S)}}};return typeof s>"u"?{}:{confirm:w(s.confirm,"confirm"),secondary:w(s.secondary,"secondary"),cancel:w(s.cancel,"cancel")}})();return $.jsx(cs,{children:$.jsx(vE,{isOpen:m,isDismissable:o,type:i,onDismiss:u,children:$.jsx(C8,{noActions:g==="form",actions:y,isHidden:!m,content:typeof c=="function"?c({resolve:v,reject:h}):c,...d})})},Y0)}const k8=b.createContext(null);function I8(e){const[n,i]=b.useState(null),o=b.useRef(0),s=b.useMemo(()=>({open:(u,c={})=>{const{onDismiss:d,...v}=u,{cancelToken:h}=c,m=++o.current,g={props:null,meta:{id:m,isClosed:!1,isVisible:!0}},y=()=>{g.meta.isClosed||(g.meta.isClosed=!0,c.cancelToken?.removeEventListener("abort",y),i(w=>w?.meta.id!==m?w:{props:w.props,meta:{...w.meta,isVisible:!1}}),setTimeout(()=>i(w=>w?.meta.id!==m?w:null),300))};return h?.aborted?new Promise(()=>{}):(h?.addEventListener("abort",y,{once:!0}),g.meta.promise=new Promise((w,E)=>{g.meta.resolve=S=>{y(),w(S)},g.meta.reject=S=>{y(),E(S)}}),g.props={...v,onDismiss:w=>{d?.(w),g.meta.reject(void 0)}},i(w=>w!==null?(g.meta.reject(new Error("Another dialog is already opened. It's a bad practice to open more than one <AlertDialog /> at the same time")),w):g),g.meta.promise)}}),[]);return $.jsxs(k8.Provider,{value:s,children:[$.jsx(T8,{openedDialog:n}),e.children]})}const L8=se({id:"cube-ui-kit-root",className:"root"}),R8={display:"block",preset:"t3",...Object.keys(ho).reduce((e,n)=>(e[`@${n}`]=ho[n],e),{})},_8=[...Fn,...mo],sc=typeof CSS<"u"&&typeof CSS?.supports=="function"?CSS.supports("height: 100dvh"):!1;function p$(e){let{children:n,bodyStyles:i,fontDisplay:o="swap",fonts:s,publicUrl:u,router:c,font:d,monospaceFont:v,applyLegacyTokens:h,tracking:m,...g}=e;const y=b.useRef(null),[w,E]=b.useState();let S=jx({isDisabled:sc}),[P,A]=b.useState(sc?void 0:S.height),I=b.useRef();b.useEffect(()=>{sc&&typeof window<"u"||(I.current&&clearTimeout(I.current),S.height<(P||0)&&S.height<window.innerHeight?I.current=setTimeout(()=>{A(S.height)},500):A(S.height))},[P,S.height]),b.useEffect(()=>{w||E(y?.current)},[]);const R=Ce(g,_8,R8);return $.jsx(od,{router:c,root:w,children:$.jsx(F4,{event:m?.event,children:$.jsx(v2,{children:$.jsxs(L8,{ref:y,"data-font-display":o,...He(g,{eventProps:!0}),styles:R,style:{"--cube-dynamic-viewport-height":P?P+"px":"100dvh"},children:[$.jsx(x8,{bodyStyles:i,applyLegacyTokens:h,publicUrl:u,fonts:s,font:d,monospaceFont:v,fontDisplay:o}),$.jsx(c4,{children:$.jsx($S,{value:y,children:$.jsx(eE,{rootRef:y,children:$.jsx(I8,{children:n})})})})]})})})})}const M8=se({styles:{gridArea:"divider",display:{"":"block",text:"grid"},gridColumns:"1fr auto 1fr",placeItems:"center stretch",gap:"1x",preset:"c1",height:{"":"1bw 1bw",text:"auto"},fill:{"":"#border",text:"none"},border:"0",margin:"0",Line:{height:"1bw 1bw",fill:"#border"}},styleProps:[...go,...Fn,...vs]}),h$=b.forwardRef(function(n,i){const{mods:o,children:s,styles:u,...c}=fr(n,"divider");return $.jsx(M8,{as:s?"div":"hr",role:s?"separator":void 0,mods:{text:!!s,...o},...He(c,{eventProps:!0}),ref:i,styles:u,children:s&&$.jsxs($.Fragment,{children:[$.jsx("div",{"data-element":"Line"}),$.jsx("div",{children:s}),$.jsx("div",{"data-element":"Line"})]})})}),F8="modulepreload",A8=function(e){return"/vizard/"+e},Q0={},v$=function(n,i,o){let s=Promise.resolve();if(i&&i.length>0){let v=function(h){return Promise.all(h.map(m=>Promise.resolve(m).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");s=v(i.map(h=>{if(h=A8(h),h in Q0)return;Q0[h]=!0;const m=h.endsWith(".css"),g=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const y=document.createElement("link");if(y.rel=m?"stylesheet":F8,m||(y.as="script"),y.crossOrigin="",y.href=h,d&&y.setAttribute("nonce",d),document.head.appendChild(y),m)return new Promise((w,E)=>{y.addEventListener("load",w),y.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${h}`)))})}))}function u(c){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=c,window.dispatchEvent(d),!d.defaultPrevented)throw c}return s.then(c=>{for(const d of c||[])d.status==="rejected"&&u(d.reason);return n().catch(u)})};const p1=vo.input`
|
|
426
|
+
&&&&& {
|
|
427
|
+
display: block;
|
|
428
|
+
font-family: inherit;
|
|
429
|
+
font-size: 100%;
|
|
430
|
+
line-height: 1.15;
|
|
431
|
+
margin: 0;
|
|
432
|
+
overflow: visible;
|
|
433
|
+
box-sizing: border-box;
|
|
434
|
+
padding: 0;
|
|
435
|
+
position: absolute;
|
|
436
|
+
top: 0;
|
|
437
|
+
right: 0;
|
|
438
|
+
left: 0;
|
|
439
|
+
bottom: 0;
|
|
440
|
+
opacity: 0.0001;
|
|
441
|
+
z-index: 1;
|
|
442
|
+
width: 100%;
|
|
443
|
+
height: 100%;
|
|
444
|
+
cursor: ${({$isButton:e})=>e?"pointer":"default"};
|
|
445
|
+
}
|
|
446
|
+
`;const h1=b.createContext(null);const N8=se({qa:"CheckboxGroup",styles:{display:"flex",placeItems:"start",placeContent:"start",flow:{"":"column",horizontal:"row wrap"},gap:{"":"1x",horizontal:"1x 2x"}}});function D8(e,n){e=gE(e),e=vr(e),e=ui(e),e=Is(e,{defaultValidationTrigger:"onChange",valuePropsMapper:({value:T,onChange:U})=>({value:T??[],onChange:U})});let{isDisabled:i,isRequired:o,necessityIndicator:s,necessityLabel:u,label:c,extra:d,validationState:v,children:h,orientation:m="vertical",message:g,description:y,labelStyles:w,tooltip:E,labelProps:S,labelSuffix:P,inputStyles:A,...I}=e,R=ai(n),B=Ce(I,Ge),_=eb(e),{labelProps:V}=V6(e,_),W=$.jsx(N8,{styles:A,mods:{horizontal:m==="horizontal"},children:$.jsx(wo.Provider,{value:{isDisabled:i,validationState:v},children:$.jsx(h1.Provider,{value:_,children:h})})});return dd(W,R,{...e,children:null,labelProps:Xe(S,V),styles:B})}const v1=b.forwardRef(D8);v1.cubeInputType="CheckboxGroup";function O8(){return $.jsx("svg",{width:"10",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.jsx("path",{d:"M3.417 7.604l-.017.018-3.4-3.4 1.433-1.433 1.985 1.985L8.192 0l1.432 1.433-6.189 6.189-.018-.018z",fill:"currentColor"})})}function B8(){return $.jsx("svg",{width:"8",height:"2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:$.jsx("path",{d:"M0 .044v2.001l.026.025h8.063V.044H0z",fill:"#fff"})})}const J0=se({as:"label",qa:"CheckboxWrapper",styles:{position:"relative",display:"flex",placeItems:"center start",placeContent:"baseline",gap:"1x",flow:"row",preset:"default",cursor:"pointer",width:"max max-content"}}),H8=se({qa:"Checkbox",styles:{display:"grid",placeItems:"center",radius:".5r",fill:{"":"#white","checked | indeterminate":"#purple-text","invalid & !checked":"#white","invalid & checked":"#danger-text",disabled:"#dark.12"},color:{"":"#white","disabled & !checked & !indeterminate":"#clear"},border:{"":"#dark.30",invalid:"#danger-text.50","disabled | ((indeterminate | checked) & !invalid)":"#clear"},width:"(2x - 2bw)",height:"(2x - 2bw)",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"}});function j8(e,n){let i=b.useContext(h1);e=yE(e);let o=e;e=vr(e),e=ui(e),e=Is(e,{defaultValidationTrigger:"onChange",valuePropsMapper:({value:j,onChange:ue})=>({isSelected:j??!1,isIndeterminate:!1,onChange:ue}),unsafe__isDisabled:!!i});let{qa:s,isIndeterminate:u=!1,isDisabled:c=!1,insideForm:d,isRequired:v,children:h,label:m,validationState:g,labelProps:y,labelStyles:w,labelPosition:E,inputStyles:S,isHidden:P,...A}=e,I=Ce(e,go);S=Ce(e,mo,S),w=b.useMemo(()=>({...d?Og:cd,...w}),[d,w]);let{isFocused:R,focusProps:B}=Cs({isDisabled:c},!0),{hoverProps:_,isHovered:V}=An({isDisabled:c}),W=b.useRef(null),T=Ps(n,W);const U=Kv(e);let{inputProps:O}=i?z6({...e,value:e.value||"",isRequired:o.isRequired,validationState:o.validationState},i,W):Am({...e,...typeof m=="string"&&m.trim()?{"aria-label":m}:{}},U,W),H=u?$.jsx(B8,{}):$.jsx(O8,{});if(i){for(let j of["isSelected","defaultSelected","isEmphasized"])o[j]!=null&&console.warn(`CubeUIKit: ${j} is unsupported on individual <Checkbox> elements within a <CheckboxGroup>. Please apply these props to the group instead.`);e.value==null&&console.warn("CubeUIKit: A <Checkbox> element within a <CheckboxGroup> requires a `value` property.")}const ne={checked:O.checked,indeterminate:u,invalid:g==="invalid",valid:g==="valid",disabled:c,hovered:V,focused:R,"side-label":E==="side","inside-form":d},D=$.jsxs(J0,{isHidden:P,mods:ne,styles:{position:"relative"},children:[$.jsx(p1,{"data-qa":"HiddenInput",...Xe(O,B),ref:W}),$.jsx(H8,{qa:s||"Checkbox",mods:ne,styles:S,children:H}),h&&$.jsx(Gc,{nowrap:!0,children:h})]});return d&&!i?dd(D,T,{...e,children:null,labelStyles:w,styles:I}):$.jsxs(J0,{as:"label",styles:I,isHidden:P,..._,...He(A),ref:T,children:[D,m?$.jsx(Av,{styles:w,mods:{invalid:g==="invalid",valid:g==="valid",disabled:c},...He(y),children:m}):null]})}let m1=b.forwardRef(j8);m1.cubeInputType="Checkbox";let m$=Object.assign(m1,{Group:v1});const g1=b.createContext(null);function V8(){return b.useContext(g1)}const z8=se({qa:"RadioGroup",styles:{display:"flex",placeItems:"start",placeContent:"start",flow:{"":"column",horizontal:"row wrap","horizontal & solid":"row"},gap:{"":"1x",solid:0},whiteSpace:"nowrap"}});function U8(e,n){e=mE(e),e=vr(e),e=ui(e),e=Is(e,{defaultValidationTrigger:"onChange"});let{isDisabled:i,isRequired:o,labelPosition:s="top",validationState:u,children:c,orientation:d,styles:v,groupStyles:h,insideForm:m,labelProps:g,isSolid:y,...w}=e,E=ai(n);v=Ce(w,go,v),h=Ce(w,mo,h);let S=wb(e);d==null&&(d=y?"horizontal":"vertical");let{labelProps:P}=$4(e,S),A=$.jsx(z8,{styles:h,mods:{horizontal:d==="horizontal","inside-form":m,"side-label":s==="side",solid:!!y},children:$.jsx(wo.Provider,{value:{isRequired:o,validationState:u,isDisabled:i},children:$.jsx(g1.Provider,{value:{state:S,name:e.name,isSolid:y},children:c})})});return dd(A,E,{...e,children:null,labelProps:Xe(g,P),styles:v})}const $d=b.forwardRef(U8);$d.cubeInputType="RadioGroup";const K8=se({as:"label",qa:"RadioWrapper",styles:{position:"relative",display:"grid",placeItems:"center start",gap:"1x",flow:"column",preset:"default",width:"min-content",margin:{"":"1x right",'[data-type="button"]':"0"},zIndex:{"":"initial",checked:1},Input:{radius:{"":"round",button:!0,"button & solid":0,"button & solid & :first-child":"1r 0 0 1r","button & solid & :last-child":"0 1r 1r 0"},margin:{"":"initial","button & solid":"-1bw right","button & solid & :last-child":0}}}}),W8=se({styles:{fill:{"":"#white",hovered:"#purple-text.04",checked:"#white",disabled:"#dark.04"},color:{"":"#dark.85",invalid:"#danger-text",disabled:"#dark.40"},preset:"t3m",border:{"":"#dark-05",checked:"#purple-text","invalid & checked":"#danger-text","disabled & checked":"#dark.40",disabled:"#dark-05"},padding:"(.75x - 1bw) (1.5x - 1bw)",cursor:"pointer",opacity:{"":1,disabled:.5},outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme"}}),G8=se({styles:{display:"grid",placeItems:"center",radius:"round",fill:{"":"#white",disabled:"#dark.04"},color:{checked:"#purple-text","invalid & checked":"#danger-text","disabled | !checked":"#clear","disabled & checked":"#dark.12"},border:{"":"#dark.30",checked:"#purple-text",invalid:"#danger-text.50",disabled:"#dark.12"},width:"2x",height:"2x",outline:{"":"#purple-03.0",focused:"#purple-03"},transition:"theme",RadioCircle:{display:"block",radius:"round",width:"1x",height:"1x",fill:"currentColor"}}}),Z8=$.jsx("div",{"data-element":"RadioCircle"}),q8=se({qa:"RadioLabel",styles:cd});function X8(e,n){e=vr(e),e=ui(e),e=Is(e,{defaultValidationTrigger:"onChange"});let{qa:i,isDisabled:o,validationState:s,children:u,label:c,autoFocus:d,labelStyles:v,labelProps:h,inputStyles:m,type:g="radio","aria-label":y,...w}=e,E=g==="button";c=c||u;let S=Ce(w,go);const P=E?W8:G8;v={...cd,...v};let A=V8(),I=A&&A.state,R=A&&A.name,B=A&&A.isSolid||!1;if(!I)throw new Error("CubeUI: The Radio button is used outside the RadioGroup.");let{isFocused:_,focusProps:V}=Cs({isDisabled:o},!0),{hoverProps:W,isHovered:T}=An({isDisabled:o}),U=b.useRef(null),O=Ps(n,U),{inputProps:H,isDisabled:ne,isSelected:D}=E4({name:R,...e,isDisabled:o},I,U);const j=b.useMemo(()=>({checked:D,invalid:s==="invalid",valid:s==="valid",disabled:ne,hovered:T,button:E,focused:_,solid:B}),[D,s,ne,T,E,_,B]);return $.jsxs(K8,{styles:S,...W,ref:O,mods:j,"data-type":g,children:[$.jsx(p1,{"data-qa":i||"Radio","aria-label":y,...Xe(H,V),ref:U,$isButton:E}),$.jsx(P,{"data-element":"Input",mods:j,"data-type":g,styles:m,children:E?u:Z8}),c&&!E&&$.jsx(q8,{mods:j,styles:v,...He(h),children:c})]})}function Y8(e,n){const i=y1;return $.jsx(i,{...e,ref:n,type:"button"})}const y1=b.forwardRef(X8),Q8=b.forwardRef(Y8),J8=se($d,{isSolid:!0}),g$=Object.assign(y1,{Group:$d,Button:Q8,ButtonGroup:J8});export{i$ as A,o$ as B,l$ as D,f$ as F,d$ as G,s$ as L,a$ as P,p$ as R,Tg as S,u$ as T,v$ as _,r$ as a,so as b,bE as c,Cb as d,c$ as e,g$ as f,OE as g,h$ as h,m$ as i,$ as j,n$ as k,se as t,Cg as u};
|