@opentig/cli 0.2.3 → 0.2.4
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/LICENSE +1 -1
- package/README.md +14 -14
- package/dist/bin.mjs +25 -10
- package/dist/chunks/{cli-L6lvCZdX.mjs → cli-gyjD1t0O.mjs} +611 -268
- package/dist/chunks/network-settings-CdFeKFRB.mjs +142 -0
- package/dist/chunks/{server-Cz0gvydn.mjs → server-DMk8-Xxt.mjs} +557 -105
- package/dist/chunks/{service-manager-Jyx-MWo-.mjs → service-manager-BxSmV_8Z.mjs} +88 -14
- package/dist/client/assets/App-Bfw_TX8q.js +132 -0
- package/dist/client/assets/CreatePullRequestDialog-DyPd6SKH.js +2 -0
- package/dist/client/assets/DiffWorkspace-DCo89dF1.js +7 -0
- package/dist/client/assets/EditableFileViewer-Dotntfij.js +1 -0
- package/dist/client/assets/EditableFileViewer-svutjHZv.css +1 -0
- package/dist/client/assets/ExternalLink-jdtpN_yL.js +1 -0
- package/dist/client/assets/{File-BPxtFxHC.js → File-DHnVtIhS.js} +1 -1
- package/dist/client/assets/FilesView-D6f1hPVy.js +1 -0
- package/dist/client/assets/GitHubAvatar-B6vyoVlh.js +1 -0
- package/dist/client/assets/HistoryView-D9RhzCPY.js +1 -0
- package/dist/client/assets/HtmlFileViewer-Bwmj5umg.js +2 -0
- package/dist/client/assets/{IconAlertTriangle-C1OX2bTH.js → IconAlertTriangle-B9iDJKvP.js} +1 -1
- package/dist/client/assets/IconCheck-C-G-IA13.js +1 -0
- package/dist/client/assets/IconChevronDown-DU5i40lD.js +1 -0
- package/dist/client/assets/{IconEdit-BP5Emwzw.js → IconEdit-CZe-EJxX.js} +1 -1
- package/dist/client/assets/{IconFolderSymlink-BNWI0eXB.js → IconFolderSymlink-DkLEuUb6.js} +1 -1
- package/dist/client/assets/IconGitMerge-D9KEj1cE.js +1 -0
- package/dist/client/assets/IconGitPullRequest-ClaUqyVa.js +1 -0
- package/dist/client/assets/{IconLoader4-Bk6G4Bls.js → IconLoader4-D2VN7u1V.js} +1 -1
- package/dist/client/assets/{IconPlus-DUFNSK_i.js → IconPlus-DJCoD3wt.js} +1 -1
- package/dist/client/assets/{IconSearch-ZL3YVslZ.js → IconSearch-1VQ4P4kW.js} +1 -1
- package/dist/client/assets/{IconSelector-BGwY84R8.js → IconSelector-BVMU1PEt.js} +1 -1
- package/dist/client/assets/ImageFileViewer-3izbFVTw.css +1 -0
- package/dist/client/assets/ImageFileViewer-CdFLl_in.js +1 -0
- package/dist/client/assets/LinkedMarkdown-Bnc2OA63.js +1 -0
- package/dist/client/assets/LinkedText-BD6K3d1t.js +1 -0
- package/dist/client/assets/LocalRefsDialog-Bl-fddap.js +1 -0
- package/dist/client/assets/MarkdownFileViewer-NUAoQmv5.js +2 -0
- package/dist/client/assets/PairingPage-CqrxpC3_.js +1 -0
- package/dist/client/assets/PierreDiffViewer-CDfQ32e0.js +1 -0
- package/dist/client/assets/{PierreEditBoundary-Bt0q7SXc.js → PierreEditBoundary-DAdYNYZ3.js} +1 -1
- package/dist/client/assets/{PierreWorkerPool-DMFigp0u.js → PierreWorkerPool-mIDzTMB9.js} +3 -3
- package/dist/client/assets/PullRequestDiff-n1NZFHKN.js +1 -0
- package/dist/client/assets/PullRequestViewer-u89zl169.js +2 -0
- package/dist/client/assets/PullRequestsView-D6BqvB4E.js +1 -0
- package/dist/client/assets/QuickOpenDialog-BbEifGRi.js +1 -0
- package/dist/client/assets/RepositoryProjectsDialog-EGAsXL-Z.js +1 -0
- package/dist/client/assets/{SearchView-BYz1K1Ta.js → SearchView-BMz7qOdc.js} +1 -1
- package/dist/client/assets/SettingsDialog-DmD7HvhX.js +9 -0
- package/dist/client/assets/Viewer-CDj_vo6w.js +3 -0
- package/dist/client/assets/{abnfDiagram-YUKMZFIV-CpKAN_8n.js → abnfDiagram-YUKMZFIV-It6tW-4v.js} +1 -1
- package/dist/client/assets/{architecture-WOLXFQ4H-DrizVopY.js → architecture-WOLXFQ4H-CaOaChND.js} +1 -1
- package/dist/client/assets/{architectureDiagram-47P4ROYG-gvUijB3H.js → architectureDiagram-47P4ROYG-COtncecA.js} +1 -1
- package/dist/client/assets/{blockDiagram-E7TT5TSB-CdcXmnf_.js → blockDiagram-E7TT5TSB-NU4wFrfP.js} +1 -1
- package/dist/client/assets/{c4Diagram-CRA5TL53-DtoD1jKt.js → c4Diagram-CRA5TL53-0xzM4S8q.js} +1 -1
- package/dist/client/assets/channel-QED-4ACa.js +1 -0
- package/dist/client/assets/checkbox-Dh4T0bCe.js +1 -0
- package/dist/client/assets/{chunk-2BW5OAIV-Bxqf2dFQ.js → chunk-2BW5OAIV-BQMxlSNI.js} +1 -1
- package/dist/client/assets/{chunk-3YJQHVM4-BhzXJiq0.js → chunk-3YJQHVM4-CdP15KtA.js} +1 -1
- package/dist/client/assets/{chunk-4EA7E6EY-CvEILf8c.js → chunk-4EA7E6EY-xRPCCZLU.js} +1 -1
- package/dist/client/assets/{chunk-7TKQ45FW-pTEdzVz3.js → chunk-7TKQ45FW-Cr_UAObV.js} +1 -1
- package/dist/client/assets/{chunk-AW2ZBBNX-LVROkcXk.js → chunk-AW2ZBBNX-DBqqxF2h.js} +1 -1
- package/dist/client/assets/{chunk-DBDB3WZW-FCGrB-q8.js → chunk-DBDB3WZW-BonEIRP2.js} +1 -1
- package/dist/client/assets/{chunk-E2ZNV5FY-B3rGXPn-.js → chunk-E2ZNV5FY-DnKvxSiA.js} +1 -1
- package/dist/client/assets/{chunk-EU5HNXII-D6a_Ly_W.js → chunk-EU5HNXII-DLK0K3sR.js} +1 -1
- package/dist/client/assets/{chunk-FVRAUYC3-B5hy0Ket.js → chunk-FVRAUYC3-DmjKoYAh.js} +1 -1
- package/dist/client/assets/{chunk-HJ2JQQFS-CKHFz1Wl.js → chunk-HJ2JQQFS-AF4phse0.js} +1 -1
- package/dist/client/assets/{chunk-HTAEGDNF-CtwDuO27.js → chunk-HTAEGDNF-CG4pBnUZ.js} +1 -1
- package/dist/client/assets/{chunk-KQW6MTUR-BN3uxLYf.js → chunk-KQW6MTUR-Dd87yj5r.js} +1 -1
- package/dist/client/assets/{chunk-NTY3LDVX-CfXSvyIC.js → chunk-NTY3LDVX-OolU2PaP.js} +1 -1
- package/dist/client/assets/{chunk-VPRB5NB3-LAggcSji.js → chunk-VPRB5NB3-Dnr3edxV.js} +3 -3
- package/dist/client/assets/{chunk-XC4XBNZT-BksIPWQU.js → chunk-XC4XBNZT-CIqGRxkD.js} +1 -1
- package/dist/client/assets/{classDiagram-v2-K4WV4PDN-DH78Maqm.js → classDiagram-v2-K4WV4PDN-CPGawm8n.js} +1 -1
- package/dist/client/assets/createReactComponent-Ctub7J3a.js +1 -0
- package/dist/client/assets/{cynefin-EF2NZ3EQ-DozKlDV1.js → cynefin-EF2NZ3EQ-OA2R9WCH.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-3GCD6N5R-A1yS7NKN.js → cynefinDiagram-3GCD6N5R-DqCVtoKt.js} +1 -1
- package/dist/client/assets/{dagre-W4DXFKR2-DRJ1mmbe.js → dagre-W4DXFKR2-kc3-tkAQ.js} +1 -1
- package/dist/client/assets/{diagram-2UJZ2QOL-B1sI2b2o.js → diagram-2UJZ2QOL-DoBZKT3s.js} +1 -1
- package/dist/client/assets/{diagram-OVF4WLC6-DLE1o4-P.js → diagram-OVF4WLC6-DGkyha_F.js} +1 -1
- package/dist/client/assets/{diagram-PFPMY2P6-UtIEsv14.js → diagram-PFPMY2P6-DpRDDgdV.js} +1 -1
- package/dist/client/assets/{diagram-UMYRVEAY-BwTyzVap.js → diagram-UMYRVEAY-DlsfhYv3.js} +1 -1
- package/dist/client/assets/{diagram-YEKJPTXX-DNPUQqu0.js → diagram-YEKJPTXX-BIhRZzBM.js} +1 -1
- package/dist/client/assets/{diagram-ZIFT7M5P-ClXykQ3I.js → diagram-ZIFT7M5P-mweJcgBZ.js} +1 -1
- package/dist/client/assets/diff-parse.worker-C1IFRYY9.js +13 -0
- package/dist/client/assets/{ebnfDiagram-VR2GEFS7-Dm8VAviu.js → ebnfDiagram-VR2GEFS7-Dn5zyIbZ.js} +1 -1
- package/dist/client/assets/{elk-IJKZMXRS-CEEoPARn.js → elk-IJKZMXRS-eBPlf1-o.js} +1 -1
- package/dist/client/assets/{erDiagram-O2IAPWRE-CaDE4obX.js → erDiagram-O2IAPWRE-WEE519yZ.js} +1 -1
- package/dist/client/assets/{eventmodeling-K75KTNOO-PjYgMkPC.js → eventmodeling-K75KTNOO-BgE_VmNy.js} +1 -1
- package/dist/client/assets/external-url-IUS7RmYD.js +1 -0
- package/dist/client/assets/flowDiagram-OXPTDLAJ-CHQYfkMg.js +1 -0
- package/dist/client/assets/{ganttDiagram-R7TSEDQI-CmkBarBi.js → ganttDiagram-R7TSEDQI-D_1KyJZU.js} +1 -1
- package/dist/client/assets/{gitGraph-VSP46ZUC-DeotTdHj.js → gitGraph-VSP46ZUC-CEbT7DA4.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-XJZIOB7I-uV1hPaZT.js → gitGraphDiagram-XJZIOB7I-QQyYc1gM.js} +1 -1
- package/dist/client/assets/index-DsKvWsTs.js +47 -0
- package/dist/client/assets/index-kyWCnbkb.css +2 -0
- package/dist/client/assets/{info-OHQRW6UA-BQDsGvSl.js → info-OHQRW6UA-ChHAnveo.js} +1 -1
- package/dist/client/assets/{infoDiagram-5W2HQ5XZ-CDfEPsgZ.js → infoDiagram-5W2HQ5XZ-BaxAE7UA.js} +1 -1
- package/dist/client/assets/{ishikawaDiagram-K3B6WC7H-Bb7PQGe6.js → ishikawaDiagram-K3B6WC7H-vhUflBE_.js} +1 -1
- package/dist/client/assets/{journeyDiagram-COXZFDF6-BDythglw.js → journeyDiagram-COXZFDF6-C8WWosVa.js} +1 -1
- package/dist/client/assets/{kanban-definition-P3RFRI5V-CvY5kXhh.js → kanban-definition-P3RFRI5V-CU6W9Yi3.js} +1 -1
- package/dist/client/assets/katex-CQfTPFh0.js +1 -0
- package/dist/client/assets/{line-99p2yFnB.js → line-Axq4vVX-.js} +1 -1
- package/dist/client/assets/{mermaid-parser.core-BjZYtoJ8.js → mermaid-parser.core-DNeaCX12.js} +3 -3
- package/dist/client/assets/{mermaid.core-DRcXnUox.js → mermaid.core-Dtt7rXw0.js} +4 -4
- package/dist/client/assets/{mindmap-definition-LZFPQGKD-t9LoCpnW.js → mindmap-definition-LZFPQGKD-D_8ZqQot.js} +1 -1
- package/dist/client/assets/{packet-JDAUHWVQ-BlR-5V7K.js → packet-JDAUHWVQ-6z7ujmGF.js} +1 -1
- package/dist/client/assets/{pegDiagram-BGZESJAR-CWeGI-T9.js → pegDiagram-BGZESJAR-3ujyk-bt.js} +1 -1
- package/dist/client/assets/{pie-XZMESJXO-BkvYHWgl.js → pie-XZMESJXO-DvpLy2DB.js} +1 -1
- package/dist/client/assets/{pieDiagram-CAPJLFHJ-CY5PPIr3.js → pieDiagram-CAPJLFHJ-BPMPWyc7.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-GDMTTRAM-kqj-z271.js → quadrantDiagram-GDMTTRAM-BVUCR_lf.js} +1 -1
- package/dist/client/assets/{radar-ABXABTNO-DuEtYatv.js → radar-ABXABTNO-lu14X99R.js} +1 -1
- package/dist/client/assets/{railroad-I3PHUGI6-CVlnj2j9.js → railroad-I3PHUGI6-DI_WtDmt.js} +1 -1
- package/dist/client/assets/{railroad-abnf-LNEFI6M7-9Qiczw4d.js → railroad-abnf-LNEFI6M7-CmWAKZ2T.js} +1 -1
- package/dist/client/assets/{railroad-ebnf-DWYD2UWJ-BNL7TMEg.js → railroad-ebnf-DWYD2UWJ-BWKFU_UH.js} +1 -1
- package/dist/client/assets/{railroad-peg-JR7BVNR7-DdpRxgk6.js → railroad-peg-JR7BVNR7-9wkgzxMB.js} +1 -1
- package/dist/client/assets/{railroadDiagram-SM67HX2B-CDXvYNqW.js → railroadDiagram-SM67HX2B-4JnRbxl_.js} +1 -1
- package/dist/client/assets/{render-markdown-DF9Fy7MD.js → render-markdown-CQi2yKYQ.js} +2 -2
- package/dist/client/assets/{requirementDiagram-X7JNWC4A-BDdhqnZA.js → requirementDiagram-X7JNWC4A-CVJiZZsi.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-UM26HJRW-Rkyk5oEf.js → sankeyDiagram-UM26HJRW-BmlWQdkv.js} +1 -1
- package/dist/client/assets/select-Dq3KDX2O.js +1 -0
- package/dist/client/assets/{sequenceDiagram-ZO4K6R2Y-Coj9ap7h.js → sequenceDiagram-ZO4K6R2Y-zUx3LmPj.js} +1 -1
- package/dist/client/assets/{stateDiagram-v2-TBUQTH76-BucWlahR.js → stateDiagram-v2-TBUQTH76-o_ci-2bu.js} +1 -1
- package/dist/client/assets/{swimlanes-N4OXWK64-tEECcFP9.js → swimlanes-N4OXWK64-BlI0GC5-.js} +1 -1
- package/dist/client/assets/swimlanesDiagram-K3J5GTZL-BEeJLN8d.js +8 -0
- package/dist/client/assets/tanstack-CVAt_k_T.js +1 -0
- package/dist/client/assets/{timeline-definition-YOQAKGHF-XvIbGO4d.js → timeline-definition-YOQAKGHF-DLnvF__o.js} +1 -1
- package/dist/client/assets/{treeView-D4JQ5SDB-DuhJpfXe.js → treeView-D4JQ5SDB-DPuMLQhB.js} +1 -1
- package/dist/client/assets/{treemap-SAJKECNS-CLiUWfZh.js → treemap-SAJKECNS-DjxqxJ8-.js} +1 -1
- package/dist/client/assets/{usecaseDiagram-VIAY4XPW-BuwkpV9w.js → usecaseDiagram-VIAY4XPW-BtnFNltN.js} +1 -1
- package/dist/client/assets/utils-D0T3A-kS.js +1 -0
- package/dist/client/assets/{vennDiagram-BLWOH2XV-kfza5Rxq.js → vennDiagram-BLWOH2XV-CAiF2FKz.js} +1 -1
- package/dist/client/assets/viewer-tabs-DkkqN9MD.js +1 -0
- package/dist/client/assets/{wardley-7MLQ67FV-CcbU_Ykg.js → wardley-7MLQ67FV-DAWySamq.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-YMQ3BMBF-DnxlEg3a.js → wardleyDiagram-YMQ3BMBF-DiBCclEL.js} +1 -1
- package/dist/client/assets/{xychartDiagram-TAQBALBS-BzgtwtvK.js → xychartDiagram-TAQBALBS-B0NgfXz6.js} +1 -1
- package/dist/client/index.html +6 -4
- package/dist/dev.mjs +6 -6
- package/dist/manifest.json +1 -1
- package/dist/server.mjs +1 -1
- package/dist/service-update.mjs +11 -3
- package/dist/utility.mjs +25 -4
- package/package.json +4 -4
- package/dist/client/assets/App-DEIZhWJG.js +0 -132
- package/dist/client/assets/CreatePullRequestDialog-BceOUbYK.js +0 -2
- package/dist/client/assets/DiffWorkspace-BMtV4MMc.js +0 -6
- package/dist/client/assets/EditableFileViewer-B44TSuFu.css +0 -1
- package/dist/client/assets/EditableFileViewer-BE3AsnVa.js +0 -1
- package/dist/client/assets/FilesView-DoVhRfi1.js +0 -1
- package/dist/client/assets/GitHubAvatar-RiePq1Yf.js +0 -1
- package/dist/client/assets/HistoryView-Dl8uqmKe.js +0 -1
- package/dist/client/assets/HtmlFileViewer-xfjY1Swc.js +0 -2
- package/dist/client/assets/IconCheck-BPhxw_LS.js +0 -1
- package/dist/client/assets/IconChevronDown-C3FplJL8.js +0 -1
- package/dist/client/assets/ImageFileViewer-BJBOmpsf.css +0 -1
- package/dist/client/assets/ImageFileViewer-DXaIo7_d.js +0 -1
- package/dist/client/assets/LocalRefsDialog-C5J3kgTe.js +0 -1
- package/dist/client/assets/MarkdownFileViewer-18mvm0f2.js +0 -2
- package/dist/client/assets/PairingPage-BEUj3t0V.js +0 -1
- package/dist/client/assets/PierreDiffViewer-p29h7lW_.js +0 -1
- package/dist/client/assets/PullRequestDiff-C17JA4ko.js +0 -1
- package/dist/client/assets/PullRequestViewer-DaMtkESD.js +0 -2
- package/dist/client/assets/PullRequestsView-44f03VLC.js +0 -1
- package/dist/client/assets/QuickOpenDialog-Bi-L68PU.js +0 -1
- package/dist/client/assets/RepositoryProjectsDialog-DFGn74fe.js +0 -1
- package/dist/client/assets/SettingsDialog-CruoIiyN.js +0 -9
- package/dist/client/assets/Viewer-3WKpwRzo.js +0 -3
- package/dist/client/assets/channel-BqKQxg-1.js +0 -1
- package/dist/client/assets/checkbox-MDl2t9_3.js +0 -1
- package/dist/client/assets/createReactComponent-BfrD_oQK.js +0 -1
- package/dist/client/assets/flowDiagram-OXPTDLAJ-DSokwYKA.js +0 -1
- package/dist/client/assets/index-CoZCJqTQ.js +0 -47
- package/dist/client/assets/index-DUERTTRS.css +0 -2
- package/dist/client/assets/katex-C6e6EqXB.js +0 -1
- package/dist/client/assets/select-pZpCy7qn.js +0 -1
- package/dist/client/assets/swimlanesDiagram-K3J5GTZL-DEFKR6Vf.js +0 -8
- package/dist/client/assets/tanstack-CYi5knVJ.js +0 -1
- package/dist/client/assets/viewer-tabs-MMNrJqGE.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{Ct as t}from"./base-ui-DDpgJXgO.js";function n(e){var t,r,i=``;if(typeof e==`string`||typeof e==`number`)i+=e;else if(typeof e==`object`){if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=n(e[t]))&&(i&&(i+=` `),i+=r)}else for(r in e)e[r]&&(i&&(i+=` `),i+=r)}return i}function r(){for(var e,t,r=0,i=``,a=arguments.length;r<a;r++)(e=arguments[r])&&(t=n(e))&&(i&&(i+=` `),i+=t);return i}var i=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},a=(e,t)=>({classGroupId:e,validator:t}),o=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),s=`-`,c=[],l=`arbitrary..`,u=e=>{let t=f(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return ee(e);let n=e.split(s);return d(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],a=n[e];return t?a?i(a,t):t:a||c}return n[e]||c}}},d=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=d(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(s):e.slice(t).join(s),c=a.length;for(let e=0;e<c;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},ee=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?l+r:void 0})(),f=e=>{let{theme:t,classGroups:n}=e;return p(n,t)},p=(e,t)=>{let n=o();for(let r in e){let i=e[r];m(i,n,r,t)}return n},m=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];h(i,t,n,r)}},h=(e,t,n,r)=>{typeof e==`string`?g(e,t,n):typeof e==`function`?_(e,t,n,r):v(e,t,n,r)},g=(e,t,n)=>{let r=e===``?t:y(t,e);r.classGroupId=n},_=(e,t,n,r)=>{b(e)?m(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(a(n,e)))},v=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];m(o,y(t,a),n,r)}},y=(e,t)=>{let n=e,r=t.split(s),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=o(),n.nextPart.set(t,i)),n=i}return n},b=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,te=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},x=`!`,S=`:`,C=[],w=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ne=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===S){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(x)?(c=s.slice(0,-1),l=!0):s.startsWith(x)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return w(t,l,c,u)};if(t){let e=t+S,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):w(C,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},T=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},re=e=>({cache:te(e.cacheSize),parseClassName:ne(e),sortModifiers:T(e),postfixLookupClassGroupIds:E(e),...u(e)}),E=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},D=/\s+/,O=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(D),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:ee,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let m=!!p,h;if(m){h=r(f.substring(0,p));let e=h&&o[h]?r(f):void 0;e&&e!==h&&(h=e,m=!1)}else h=r(f);if(!h){if(!m||(h=r(f),!h)){l=t+(l.length>0?` `+l:l);continue}m=!1}let g=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),_=ee?g+x:g,v=_+h;if(s.indexOf(v)>-1)continue;s.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];s.push(_+t)}l=t+(l.length>0?` `+l:l)}return l},k=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=A(n))&&(i&&(i+=` `),i+=r);return i},A=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=A(e[r]))&&(n&&(n+=` `),n+=t);return n},ie=(e,...t)=>{let n,r,i,a,o=o=>(n=re(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=O(e,n);return i(e,a),a};return a=o,(...e)=>a(k(...e))},j=[],M=e=>{let t=t=>t[e]||j;return t.isThemeGetter=!0,t.themeKey=e,t},N=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,P=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ae=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,F=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,I=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,L=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,R=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,z=e=>ae.test(e),B=e=>!!e&&!Number.isNaN(Number(e)),V=e=>!!e&&Number.isInteger(Number(e)),se=e=>e.endsWith(`%`)&&B(e.slice(0,-1)),H=e=>F.test(e),ce=()=>!0,U=e=>I.test(e)&&!L.test(e),W=()=>!1,G=e=>R.test(e),K=e=>oe.test(e),le=e=>!q(e)&&!X(e),ue=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),de=e=>Q(e,Te,W),q=e=>N.test(e),J=e=>Q(e,Ee,U),fe=e=>Q(e,De,B),pe=e=>Q(e,ke,ce),me=e=>Q(e,Oe,W),he=e=>Q(e,Ce,W),ge=e=>Q(e,we,K),Y=e=>Q(e,Ae,G),X=e=>P.test(e),Z=e=>$(e,Ee),_e=e=>$(e,Oe),ve=e=>$(e,Ce),ye=e=>$(e,Te),be=e=>$(e,we),xe=e=>$(e,Ae,!0),Se=e=>$(e,ke,!0),Q=(e,t,n)=>{let r=N.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},$=(e,t,n=!1)=>{let r=P.exec(e);return r?r[1]?t(r[1]):n:!1},Ce=e=>e===`position`||e===`percentage`,we=e=>e===`image`||e===`url`,Te=e=>e===`length`||e===`size`||e===`bg-size`,Ee=e=>e===`length`,De=e=>e===`number`,Oe=e=>e===`family-name`,ke=e=>e===`number`||e===`weight`,Ae=e=>e===`shadow`,je=ie(()=>{let e=M(`color`),t=M(`font`),n=M(`text`),r=M(`font-weight`),i=M(`tracking`),a=M(`leading`),o=M(`breakpoint`),s=M(`container`),c=M(`spacing`),l=M(`radius`),u=M(`shadow`),d=M(`inset-shadow`),ee=M(`text-shadow`),f=M(`drop-shadow`),p=M(`blur`),m=M(`perspective`),h=M(`aspect`),g=M(`ease`),_=M(`animate`),v=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],y=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],b=()=>[...y(),X,q],te=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],x=()=>[`auto`,`contain`,`none`],S=()=>[X,q,c],C=()=>[z,`full`,`auto`,...S()],w=()=>[V,`none`,`subgrid`,X,q],ne=()=>[`auto`,{span:[`full`,V,X,q]},V,X,q],T=()=>[V,`auto`,X,q],re=()=>[`auto`,`min`,`max`,`fr`,X,q],E=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],D=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...S()],k=()=>[z,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...S()],A=()=>[s,z,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...S()],ie=()=>[z,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...S()],j=()=>[e,X,q],N=()=>[...y(),ve,he,{position:[X,q]}],P=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ae=()=>[`auto`,`cover`,`contain`,ye,de,{size:[X,q]}],F=()=>[se,Z,J],I=()=>[``,`none`,`full`,l,X,q],L=()=>[``,B,Z,J],R=()=>[`solid`,`dashed`,`dotted`,`double`],oe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],U=()=>[B,se,ve,he],W=()=>[``,`none`,p,X,q],G=()=>[`none`,B,X,q],K=()=>[`none`,B,X,q],Q=()=>[B,X,q],$=()=>[z,`full`,...S()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[H],breakpoint:[H],color:[ce],container:[H],"drop-shadow":[H],ease:[`in`,`out`,`in-out`],font:[le],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[H],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[H],shadow:[H],spacing:[`px`,B],text:[H],"text-shadow":[H],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,z,q,X,h]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,X,q]}],"container-named":[ue],columns:[{columns:[B,`auto`,q,X,s]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:b()}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[V,`auto`,X,q]}],basis:[{basis:[z,`full`,`auto`,s,...S()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[B,z,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,B,X,q]}],shrink:[{shrink:[``,B,X,q]}],order:[{order:[V,`first`,`last`,`none`,X,q]}],"grid-cols":[{"grid-cols":w()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":w()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...E(),`normal`]}],"justify-items":[{"justify-items":[...D(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...D()]}],"align-content":[{content:[`normal`,...E()]}],"align-items":[{items:[...D(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...D(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...D(),`baseline`]}],"place-self":[{"place-self":[`auto`,...D()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":S()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":S()}],"space-y-reverse":[`space-y-reverse`],size:[{size:k()}],"inline-size":[{inline:[`auto`,...A()]}],"min-inline-size":[{"min-inline":[`auto`,...A()]}],"max-inline-size":[{"max-inline":[`none`,...A()]}],"block-size":[{block:[`auto`,...ie()]}],"min-block-size":[{"min-block":[`auto`,...ie()]}],"max-block-size":[{"max-block":[`none`,...ie()]}],w:[{w:[s,`screen`,...k()]}],"min-w":[{"min-w":[s,`screen`,`none`,...k()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...k()]}],h:[{h:[`screen`,`lh`,...k()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...k()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...k()]}],"font-size":[{text:[`base`,n,Z,J]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Se,pe]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,se,q]}],"font-family":[{font:[_e,me,t]}],"font-features":[{"font-features":[q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,X,q]}],"line-clamp":[{"line-clamp":[B,`none`,X,fe]}],leading:[{leading:[`none`,a,...S()]}],"list-image":[{"list-image":[`none`,X,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,X,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...R(),`wavy`]}],"text-decoration-thickness":[{decoration:[B,`from-font`,`auto`,X,J]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[B,`auto`,X,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:S()}],"tab-size":[{tab:[V,X,q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,X,q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,X,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},V,X,q],radial:[``,X,q],conic:[``,V,X,q]},be,ge]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...R(),`hidden`,`none`]}],"divide-style":[{divide:[...R(),`hidden`,`none`]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...R(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[B,X,q]}],"outline-w":[{outline:[``,B,Z,J]}],"outline-color":[{outline:j()}],shadow:[{shadow:[``,`inner`,`none`,u,xe,Y]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":[`none`,d,xe,Y]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[B,J]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":[`none`,ee,xe,Y]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[B,X,q]}],"mix-blend":[{"mix-blend":[...oe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":oe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[B]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[X,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[B]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,X,q]}],filter:[{filter:[``,`none`,X,q]}],blur:[{blur:W()}],brightness:[{brightness:[B,X,q]}],contrast:[{contrast:[B,X,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,f,xe,Y]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:[``,B,X,q]}],"hue-rotate":[{"hue-rotate":[B,X,q]}],invert:[{invert:[``,B,X,q]}],saturate:[{saturate:[B,X,q]}],sepia:[{sepia:[``,B,X,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,X,q]}],"backdrop-blur":[{"backdrop-blur":W()}],"backdrop-brightness":[{"backdrop-brightness":[B,X,q]}],"backdrop-contrast":[{"backdrop-contrast":[B,X,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,B,X,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[B,X,q]}],"backdrop-invert":[{"backdrop-invert":[``,B,X,q]}],"backdrop-opacity":[{"backdrop-opacity":[B,X,q]}],"backdrop-saturate":[{"backdrop-saturate":[B,X,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,B,X,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,X,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[B,`initial`,X,q]}],ease:[{ease:[`linear`,`initial`,g,X,q]}],delay:[{delay:[B,X,q]}],animate:[{animate:[`none`,_,X,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[m,X,q]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":[`scale-3d`],skew:[{skew:Q()}],"skew-x":[{"skew-x":Q()}],"skew-y":[{"skew-y":Q()}],transform:[{transform:[X,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:$()}],"translate-x":[{"translate-x":$()}],"translate-y":[{"translate-y":$()}],"translate-z":[{"translate-z":$()}],"translate-none":[`translate-none`],zoom:[{zoom:[V,X,q]}],accent:[{accent:j()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,X,q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,X,q]}],fill:[{fill:[`none`,...j()]}],"stroke-w":[{stroke:[B,Z,J,fe]}],stroke:[{stroke:[`none`,...j()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Me(...e){return je(r(e))}var Ne=e(t(),1),Pe={outline:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},filled:{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`currentColor`,stroke:`none`}},Fe=(e,t,n,r)=>{let i=(0,Ne.forwardRef)(({color:n=`currentColor`,size:i=24,stroke:a=2,title:o,className:s,children:c,...l},u)=>(0,Ne.createElement)(`svg`,{ref:u,...Pe[e],width:i,height:i,className:[`tabler-icon`,`tabler-icon-${t}`,s].filter(Boolean).join(` `),...e===`filled`?{fill:n}:{strokeWidth:a,stroke:n},...l},[o&&(0,Ne.createElement)(`title`,{key:`svg-title`},o),...r.map(([e,t])=>(0,Ne.createElement)(e,t)),...Array.isArray(c)?c:[c]]));return i.displayName=`${n}`,i};export{Me as n,r,Fe as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./src-JH1jZ6Eh.js";import"./chunk-VPRB5NB3-LAggcSji.js";import"./chunk-3YJQHVM4-BhzXJiq0.js";import"./chunk-HJ2JQQFS-CKHFz1Wl.js";import"./chunk-E2ZNV5FY-B3rGXPn-.js";import"./chunk-4EA7E6EY-CvEILf8c.js";import"./chunk-XC4XBNZT-BksIPWQU.js";import"./chunk-DBDB3WZW-FCGrB-q8.js";import"./chunk-2BW5OAIV-Bxqf2dFQ.js";import"./chunk-7TKQ45FW-pTEdzVz3.js";import"./chunk-XXDRQBXY-Bmekemjm.js";import"./chunk-KQW6MTUR-BN3uxLYf.js";import"./chunk-NTY3LDVX-CfXSvyIC.js";export{n as diagram}from"./chunk-EU5HNXII-D6a_Ly_W.js";import"./mermaid.core-DRcXnUox.js";
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/App-DEIZhWJG.js","assets/rolldown-runtime-C0FnF6B9.js","assets/base-ui-DDpgJXgO.js","assets/tanstack-CYi5knVJ.js","assets/createReactComponent-BfrD_oQK.js","assets/IconAlertTriangle-C1OX2bTH.js","assets/IconPlus-DUFNSK_i.js","assets/IconCheck-BPhxw_LS.js","assets/select-pZpCy7qn.js","assets/IconChevronDown-C3FplJL8.js","assets/IconSelector-BGwY84R8.js","assets/IconLoader4-Bk6G4Bls.js","assets/IconSearch-ZL3YVslZ.js","assets/shortcuts-BzIlT01I.js","assets/PairingPage-BEUj3t0V.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as e,n as t,o as n,r}from"./rolldown-runtime-C0FnF6B9.js";import{Ct as i,_t as a,dt as o,ft as s,gt as c,ht as l,mt as u,pt as d,xt as f,yt as p}from"./base-ui-DDpgJXgO.js";import{t as m}from"./react-BlQ_XOQu.js";import{d as h,p as g}from"./tanstack-CYi5knVJ.js";import{n as _,r as v,t as y}from"./createReactComponent-BfrD_oQK.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var b=`opentig.theme`;function x(e){try{let t=e?.getItem(b);return t===`light`||t===`dark`||t===`system`?t:null}catch{return null}}function S(e,t=globalThis.localStorage){try{t?.setItem(b,e)}catch{}}function C(e,t){return e===`light`?!1:e===`dark`||t}function ee(e={}){let t=e.root??(typeof document>`u`?null:document.documentElement);if(!t)return!1;let n=e.storage??(typeof localStorage>`u`?null:localStorage),r=e.prefersDark??(typeof window<`u`&&window.matchMedia(`(prefers-color-scheme: dark)`).matches),i=C(x(n),r);return t.classList.toggle(`dark`,i),t.classList.toggle(`light`,!i),i}ee();var w=n(i(),1),te=m();function T(){return T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}function ne(e,t){if(e==null)return{};for(var n={},r=Object.getOwnPropertyNames(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i]);return n}var re=(0,w.createContext)({});function ie(e){let t=(0,w.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ae=typeof window<`u`?w.useLayoutEffect:w.useEffect,oe=(0,w.createContext)(null);function se(e,t){e.indexOf(t)===-1&&e.push(t)}function ce(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var E=(e,t,n)=>n>t?t:n<e?e:n,D={},le=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),O=e=>typeof e==`object`&&!!e,ue=e=>/^0[^.\s]+$/u.test(e);function de(e){let t;return()=>(t===void 0&&(t=e()),t)}var k=e=>e,A=(...e)=>e.reduce((e,t)=>n=>t(e(n))),fe=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},pe=class{constructor(){this.subscriptions=[]}add(e){return se(this.subscriptions,e),()=>ce(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},j=e=>e*1e3,M=e=>e/1e3,me=(e,t)=>t?1e3/t*e:0,he=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ge=1e-7,_e=12;function ve(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=he(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ge&&++s<_e);return o}function N(e,t,n,r){if(e===t&&n===r)return k;let i=t=>ve(t,0,1,e,n);return e=>e===0||e===1?e:he(i(e),t,r)}var ye=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,be=e=>t=>1-e(1-t),xe=N(.33,1.53,.69,.99),Se=be(xe),Ce=ye(Se),we=e=>e>=1?1:(e*=2)<1?.5*Se(e):.5*(2-2**(-10*(e-1))),Te=e=>1-Math.sin(Math.acos(e)),Ee=be(Te),De=ye(Te),Oe=N(.42,0,1,1),ke=N(0,0,.58,1),Ae=N(.42,0,.58,1),je=e=>Array.isArray(e)&&typeof e[0]!=`number`,Me=e=>Array.isArray(e)&&typeof e[0]==`number`,Ne={linear:k,easeIn:Oe,easeInOut:Ae,easeOut:ke,circIn:Te,circInOut:De,circOut:Ee,backIn:Se,backInOut:Ce,backOut:xe,anticipate:we},Pe=e=>typeof e==`string`,Fe=e=>{if(Me(e)){e.length;let[t,n,r,i]=e;return N(t,n,r,i)}return Pe(e)?(Ne[e],`${e}`,Ne[e]):e},Ie=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Le(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Re=40;function ze(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Ie.reduce((e,t)=>(e[t]=Le(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=D.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Re),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ie.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Ie.length;t++)o[Ie[t]].cancel(e)},state:i,steps:o}}var{schedule:P,cancel:Be,state:F,steps:Ve}=ze(typeof requestAnimationFrame<`u`?requestAnimationFrame:k,!0),He;function Ue(){He=void 0}var I={now:()=>(He===void 0&&I.set(F.isProcessing||D.useManualTiming?F.timestamp:performance.now()),He),set:e=>{He=e,queueMicrotask(Ue)}},We=e=>t=>typeof t==`string`&&t.startsWith(e),Ge=We(`--`),Ke=We(`var(--`),qe=e=>Ke(e)?Je.test(e.split(`/*`)[0].trim()):!1,Je=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Ye(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Xe={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ze={...Xe,transform:e=>E(0,1,e)},Qe={...Xe,default:1},$e=e=>Math.round(e*1e5)/1e5,et=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function tt(e){return e==null}var nt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rt=(e,t)=>n=>!!(typeof n==`string`&&nt.test(n)&&n.startsWith(e)||t&&!tt(n)&&Object.prototype.hasOwnProperty.call(n,t)),it=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(et);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},at=e=>E(0,255,e),ot={...Xe,transform:e=>Math.round(at(e))},st={test:rt(`rgb`,`red`),parse:it(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+ot.transform(e)+`, `+ot.transform(t)+`, `+ot.transform(n)+`, `+$e(Ze.transform(r))+`)`};function ct(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var lt={test:rt(`#`),parse:ct,transform:st.transform},ut=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),dt=ut(`deg`),L=ut(`%`),R=ut(`px`),ft=ut(`vh`),pt=ut(`vw`),mt={...L,parse:e=>L.parse(e)/100,transform:e=>L.transform(e*100)},ht={test:rt(`hsl`,`hue`),parse:it(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+L.transform($e(t))+`, `+L.transform($e(n))+`, `+$e(Ze.transform(r))+`)`},z={test:e=>st.test(e)||lt.test(e)||ht.test(e),parse:e=>st.test(e)?st.parse(e):ht.test(e)?ht.parse(e):lt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?st.transform(e):ht.transform(e),getAnimatableNone:e=>{let t=z.parse(e);return t.alpha=0,z.transform(t)}},gt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _t(e){return isNaN(e)&&typeof e==`string`&&(e.match(et)?.length||0)+(e.match(gt)?.length||0)>0}var vt=`number`,yt=`color`,bt=`var`,xt=`var(`,St="${}",Ct=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Ct,e=>(z.test(e)?(r.color.push(a),i.push(yt),n.push(z.parse(e))):e.startsWith(xt)?(r.var.push(a),i.push(bt),n.push(e)):(r.number.push(a),i.push(vt),n.push(parseFloat(e))),++a,St)).split(St),indexes:r,types:i}}function Tt(e){return wt(e).values}function Et({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===vt?$e(r[a]):e===yt?z.transform(r[a]):r[a]}return i}}function Dt(e){return Et(wt(e))}var Ot=e=>typeof e==`number`?0:z.test(e)?z.getAnimatableNone(e):e,kt=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Ot(e);function At(e){let t=wt(e);return Et(t)(t.values.map((e,n)=>kt(e,t.split[n])))}var B={test:_t,parse:Tt,createTransformer:Dt,getAnimatableNone:At};function jt(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Mt({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=jt(s,r,e+1/3),a=jt(s,r,e),o=jt(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Nt(e,t){return n=>n>0?t:e}var V=(e,t,n)=>e+(t-e)*n,Pt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Ft=[lt,st,ht],It=e=>Ft.find(t=>t.test(e));function Lt(e){let t=It(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===ht&&(n=Mt(n)),n}var Rt=(e,t)=>{let n=Lt(e),r=Lt(t);if(!n||!r)return Nt(e,t);let i={...n};return e=>(i.red=Pt(n.red,r.red,e),i.green=Pt(n.green,r.green,e),i.blue=Pt(n.blue,r.blue,e),i.alpha=V(n.alpha,r.alpha,e),st.transform(i))},zt=new Set([`none`,`hidden`]);function Bt(e,t){return zt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Vt(e,t){return n=>V(e,t,n)}function Ht(e){return typeof e==`number`?Vt:typeof e==`string`?qe(e)?Nt:z.test(e)?Rt:Kt:Array.isArray(e)?Ut:typeof e==`object`?z.test(e)?Rt:Wt:Nt}function Ut(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>Ht(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Wt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Ht(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Gt(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var Kt=(e,t)=>{let n=B.createTransformer(t),r=wt(e),i=wt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?zt.has(e)&&!i.values.length||zt.has(t)&&!r.values.length?Bt(e,t):A(Ut(Gt(r,i),i.values),n):(`${e}${t}`,Nt(e,t))};function qt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?V(e,t,n):Ht(e)(e,t)}var Jt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>P.update(t,e),stop:()=>Be(t),now:()=>F.isProcessing?F.timestamp:I.now()}},Yt=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},Xt=2e4;function Zt(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function Qt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Zt(r),Xt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:M(i)}}var H={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function $t(e,t){return e*Math.sqrt(1-t*t)}var en=12;function tn(e,t,n){let r=n;for(let n=1;n<en;n++)r-=e(r)/t(r);return r}var nn=.001;function rn({duration:e=H.duration,bounce:t=H.bounce,velocity:n=H.velocity,mass:r=H.mass}){let i,a;H.maxDuration;let o=1-t;o=E(H.minDamping,H.maxDamping,o),e=E(H.minDuration,H.maxDuration,M(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=$t(t,o),c=Math.exp(-i);return nn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=$t(t**2,o);return(-i(t)+nn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=tn(i,a,s);if(e=j(e),isNaN(c))return{stiffness:H.stiffness,damping:H.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var an=[`duration`,`bounce`],on=[`stiffness`,`damping`,`mass`];function sn(e,t){return t.some(t=>e[t]!==void 0)}function cn(e){let t={velocity:H.velocity,stiffness:H.stiffness,damping:H.damping,mass:H.mass,isResolvedFromDuration:!1,...e};if(!sn(e,on)&&sn(e,an)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*E(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:H.mass,stiffness:i,damping:a}}else{let n=rn({...e,velocity:0});t={...t,...n,mass:H.mass},t.isResolvedFromDuration=!0}}return t}function ln(e=H.visualDuration,t=H.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=cn({...n,velocity:-M(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=M(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?H.restSpeed.granular:H.restSpeed.default,i||=v?H.restDelta.granular:H.restDelta.default;let y,b,x,S,C,ee;if(h<1)x=$t(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,ee=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+ee*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let w={calculatedDuration:p&&d||null,velocity:e=>j(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=j(t*(C*n+ee*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=j(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Zt(w),Xt),t=Yt(t=>w.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return w}ln.applyToOptions=e=>{let t=Qt(e,100,ln);return e.ease=t.ease,e.duration=j(t.duration),e.type=`keyframes`,e};var un=5;function dn(e,t,n){let r=Math.max(t-un,0);return me(n-e(r),t-r)}function fn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=ln({keyframes:[f.value,m(f.value)],velocity:dn(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function pn(e,t,n){let r=[],i=n||D.mix||qt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=A(Array.isArray(t)?t[n]||k:t,a)),r.push(a)}return r}function mn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=pn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=fe(e[r],e[r+1],n);return s[r](i)};return n?t=>l(E(e[0],e[a-1],t)):l}function hn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=fe(0,t,r);e.push(V(n,1,i))}}function gn(e){let t=[0];return hn(t,e.length-1),t}function _n(e,t){return e.map(e=>e*t)}function vn(e,t){return e.map(()=>t||Ae).splice(0,e.length-1)}function yn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=je(r)?r.map(Fe):Fe(r),a={done:!1,value:t[0]},o=mn(_n(n&&n.length===t.length?n:gn(t),e),t,{ease:Array.isArray(i)?i:vn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var bn=e=>e!==null;function xn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(bn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Sn={decay:fn,inertia:fn,tween:yn,keyframes:yn,spring:ln};function Cn(e){typeof e.type==`string`&&(e.type=Sn[e.type])}var wn=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Tn=e=>e/100,En=class extends wn{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==I.now()&&this.tick(I.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Cn(e);let{type:t=yn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||yn;s!==yn&&typeof o[0]!=`number`&&(this.mixKeyframes=A(Tn,qt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Zt(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=E(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==fn&&(b.value=xn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return M(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(this.currentTime)}set time(e){e=j(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return dn(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(I.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=M(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Jt,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(I.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Dn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var On=e=>e*180/Math.PI,kn=e=>jn(On(Math.atan2(e[1],e[0]))),An={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:kn,rotateZ:kn,skewX:e=>On(Math.atan(e[1])),skewY:e=>On(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},jn=e=>(e%=360,e<0&&(e+=360),e),Mn=kn,Nn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Pn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Fn={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Nn,scaleY:Pn,scale:e=>(Nn(e)+Pn(e))/2,rotateX:e=>jn(On(Math.atan2(e[6],e[5]))),rotateY:e=>jn(On(Math.atan2(-e[2],e[0]))),rotateZ:Mn,rotate:Mn,skewX:e=>On(Math.atan(e[4])),skewY:e=>On(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function In(e){return+!!e.includes(`scale`)}function Ln(e,t){if(!e||e===`none`)return In(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Fn,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=An,i=t}if(!i)return In(t);let a=r[t],o=i[1].split(`,`).map(zn);return typeof a==`function`?a(o):o[a]}var Rn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ln(n,t)};function zn(e){return parseFloat(e.trim())}var Bn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Vn=new Set([...Bn,`pathRotation`]),Hn=e=>e===Xe||e===R,Un=new Set([`x`,`y`,`z`]),Wn=Bn.filter(e=>!Un.has(e));function Gn(e){let t=[];return Wn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Kn={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ln(t,`x`),y:(e,{transform:t})=>Ln(t,`y`)};Kn.translateX=Kn.x,Kn.translateY=Kn.y;var qn=new Set,Jn=!1,Yn=!1,Xn=!1;function Zn(){if(Yn){let e=Array.from(qn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Gn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Yn=!1,Jn=!1,qn.forEach(e=>e.complete(Xn)),qn.clear()}function Qn(){qn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yn=!0)})}function $n(){Xn=!0,Qn(),Zn(),Xn=!1}var er=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(qn.add(this),Jn||(Jn=!0,P.read(Qn),P.resolveKeyframes(Zn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Dn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),qn.delete(this)}cancel(){this.state===`scheduled`&&(qn.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},tr=e=>e.startsWith(`--`);function nr(e,t,n){tr(t)?e.style.setProperty(t,n):e.style[t]=n}var rr={};function ir(e,t){let n=de(e);return()=>rr[t]??n()}var ar=ir(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),or=ir(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),sr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:sr([0,.65,.55,1]),circOut:sr([.55,0,1,.45]),backIn:sr([.31,.01,.66,-.59]),backOut:sr([.33,1.53,.69,.99])};function lr(e,t){if(e)return typeof e==`function`?or()?Yt(e,t):`ease-out`:Me(e)?sr(e):Array.isArray(e)?e.map(e=>lr(e,t)||cr.easeOut):cr[e]}function ur(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=lr(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function dr(e){return typeof e==`function`&&`applyToOptions`in e}function fr({type:e,...t}){return dr(e)&&or()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var pr=class extends wn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=fr(e);this.animation=ur(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=xn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),nr(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return M(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=j(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&ar()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),k):r(this)}},mr={anticipate:we,backInOut:Ce,circInOut:De};function hr(e){return e in mr}function gr(e){typeof e.ease==`string`&&hr(e.ease)&&(e.ease=mr[e.ease])}var _r=10,vr=class extends pr{constructor(e){gr(e),Cn(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new En({...a,autoplay:!1}),s=Math.max(_r,I.now()-this.startTime),c=E(0,_r,s-_r),l=o.sample(s).value,{name:u}=this.options;i&&u&&nr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},yr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(B.test(e)||e===`0`)&&!e.startsWith(`url(`));function br(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function xr(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=yr(i,t),s=yr(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:br(e)||(n===`spring`||dr(n))&&r}function Sr(e){e.duration=0,e.type=`keyframes`}var Cr=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),wr=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Tr(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&wr.test(e[t]))return!0;return!1}var Er=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Dr=de(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Or(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Dr()&&n&&(Cr.has(n)||Er.has(n)&&Tr(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var kr=40,Ar=class extends wn{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||er;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=I.now();let u=!0;xr(e,i,a,o)||(u=!1,(D.instantAnimations||!s)&&l?.(xn(e,n,t)),e[0]=e[e.length-1],Sr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>kr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Or(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new vr({...d,element:p})}catch{m=new En(d)}else m=new En(d);m.finished.then(()=>{this.notifyFinished()}).catch(k),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),$n()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function jr(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Mr=30,Nr=e=>!isNaN(parseFloat(e)),Pr={current:void 0},Fr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=I.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=I.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Nr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new pe);let n=this.events[e].add(t);return e===`change`?()=>{n(),P.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Pr.current&&Pr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Mr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Mr);return me(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ir(e,t){return new Fr(e,t)}function Lr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Rr(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Lr(n,e)}var zr={type:`spring`,stiffness:500,damping:25,restSpeed:10},Br=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Vr={type:`keyframes`,duration:.8},Hr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Ur=(e,{keyframes:t})=>t.length>2?Vr:Vn.has(e)?e.startsWith(`scale`)?Br(t[1]):zr:Hr,Wr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Gr(e){for(let t in e)if(!Wr.has(t))return!0;return!1}var Kr=(e,t,n,r={},i,a)=>o=>{let s=Rr(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=j(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Gr(s)||Object.assign(u,Ur(e,u)),u.duration&&=j(u.duration),u.repeatDelay&&=j(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Sr(u),u.delay===0&&(d=!0)),(D.instantAnimations||D.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Sr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=xn(u.keyframes,s);if(e!==void 0){P.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new En(u):new Ar(u)},qr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Jr(e){let t=qr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Yr(e,t,n=1){`${e}`;let[r,i]=Jr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return le(e)?parseFloat(e):e}return qe(i)?Yr(i,t,n+1):i}function Xr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Zr(e,t,n,r){if(typeof t==`function`){let[i,a]=Xr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Xr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Qr(e,t,n){let r=e.getProps();return Zr(r,t,n===void 0?r.custom:n,e)}var $r=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Bn]),ei=e=>Array.isArray(e);function ti(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ir(n))}function ni(e){return ei(e)?e[e.length-1]||0:e}function ri(e,t){let{transitionEnd:n={},transition:r={},...i}=Qr(e,t)||{};i={...i,...n};for(let t in i)ti(e,t,ni(i[t]))}var U=e=>!!(e&&e.getVelocity);function ii(e){return!!(U(e)&&e.add)}function ai(e,t){let n=e.getValue(`willChange`);if(ii(n))return n.add(t);if(!n&&D.WillChange){let n=new D.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function oi(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var si=`data-`+oi(`framerAppearId`);function ci(e){return e.props[si]}function li({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ui(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Lr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&li(f,t))continue;let o={delay:n,...Rr(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){P.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=ci(e);if(n){let e=window.MotionHandoffAnimation(n,t,P);e!==null&&(o.startTime=e,p=!0)}}ai(e,t);let m=l??e.shouldReduceMotion;r.start(Kr(t,r,i,m&&$r.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>P.update(()=>{o&&ri(e,o)});d.length?Promise.all(d).then(t):t()}return d}function di(e,t,n={}){let r=Qr(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(ui(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return fi(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function fi(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(di(c,t,{...o,delay:n+(typeof r==`function`?0:r)+jr(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function pi(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>di(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=di(e,t,n);else{let i=typeof t==`function`?Qr(e,t,n.custom):t;r=Promise.all(ui(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var mi={test:e=>e===`auto`,parse:e=>e},hi=e=>t=>t.test(e),gi=[Xe,R,L,dt,pt,ft,mi],_i=e=>gi.find(hi(e));function vi(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ue(e)}var yi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function bi(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(et)||[];if(!r)return e;let i=n.replace(r,``),a=+!!yi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var xi=/\b([a-z-]*)\(.*?\)/gu,Si={...B,getAnimatableNone:e=>{let t=e.match(xi);return t?t.map(bi).join(` `):e}},Ci={...B,getAnimatableNone:e=>{let t=B.parse(e);return B.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},wi={...Xe,transform:Math.round},Ti={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,top:R,right:R,bottom:R,left:R,inset:R,insetBlock:R,insetBlockStart:R,insetBlockEnd:R,insetInline:R,insetInlineStart:R,insetInlineEnd:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,paddingBlock:R,paddingBlockStart:R,paddingBlockEnd:R,paddingInline:R,paddingInlineStart:R,paddingInlineEnd:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,marginBlock:R,marginBlockStart:R,marginBlockEnd:R,marginInline:R,marginInlineStart:R,marginInlineEnd:R,fontSize:R,backgroundPositionX:R,backgroundPositionY:R,rotate:dt,pathRotation:dt,rotateX:dt,rotateY:dt,rotateZ:dt,scale:Qe,scaleX:Qe,scaleY:Qe,scaleZ:Qe,skew:dt,skewX:dt,skewY:dt,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Ze,originX:mt,originY:mt,originZ:R,zIndex:wi,fillOpacity:Ze,strokeOpacity:Ze,numOctaves:wi},Ei={...Ti,color:z,backgroundColor:z,outlineColor:z,fill:z,stroke:z,borderColor:z,borderTopColor:z,borderRightColor:z,borderBottomColor:z,borderLeftColor:z,filter:Si,WebkitFilter:Si,mask:Ci,WebkitMask:Ci},Di=e=>Ei[e],Oi=new Set([Si,Ci]);function ki(e,t){let n=Di(e);return Oi.has(n)||(n=B),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Ai=new Set([`auto`,`none`,`0`]);function ji(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Ai.has(t)&&wt(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=ki(n,i)}var Mi=class extends er{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),qe(r))){let i=Yr(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!$r.has(n)||e.length!==2)return;let[r,i]=e,a=_i(r),o=_i(i);if(Ye(r)!==Ye(i)&&Kn[n])this.needsMeasurement=!0;else if(a!==o){if(Hn(a)&&Hn(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Kn[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||vi(e[t]))&&n.push(t);n.length&&ji(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kn[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=Kn[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Ni=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Pi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Fi=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ii(e){return O(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:Li,cancel:Ri}=ze(queueMicrotask,!1),W={x:!1,y:!1};function zi(){return W.x||W.y}function Bi(e){return e===`x`||e===`y`?W[e]?null:(W[e]=!0,()=>{W[e]=!1}):W.x||W.y?null:(W.x=W.y=!0,()=>{W.x=W.y=!1})}function Vi(e,t){let n=Pi(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Hi(e){return!(e.pointerType===`touch`||zi())}function Ui(e,t,n={}){let[r,i,a]=Vi(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{e.pointerType!==`touch`&&(n?r=!0:s(e))};e.addEventListener(`pointerenter`,n=>{if(!Hi(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Wi=(e,t)=>t?e===t||Wi(e,t.parentElement):!1,Gi=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Ki=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function qi(e){return Ki.has(e.tagName)||e.isContentEditable===!0}var Ji=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Yi(e){return Ji.has(e.tagName)||e.isContentEditable===!0}var Xi=new WeakSet;function Zi(e){return t=>{t.key===`Enter`&&e(t)}}function Qi(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var $i=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Zi(()=>{if(Xi.has(n))return;Qi(n,`down`);let e=Zi(()=>{Qi(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Qi(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ea(e){return Gi(e)&&!zi()}var ta=new WeakSet;function na(e,t,n={}){let[r,i,a]=Vi(e,n),o=e=>{let r=e.currentTarget;if(!ea(e)||ta.has(e))return;Xi.add(r),n.stopPropagation&&ta.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Xi.has(r)&&Xi.delete(r),ea(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Wi(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Ii(e)&&(e.addEventListener(`focus`,e=>$i(e,i)),!qi(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function ra(e){return O(e)&&`ownerSVGElement`in e}var ia=new WeakMap,aa,oa=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:ra(r)&&`getBBox`in r?r.getBBox()[t]:r[n],sa=oa(`inline`,`width`,`offsetWidth`),ca=oa(`block`,`height`,`offsetHeight`);function la({target:e,borderBoxSize:t}){ia.get(e)?.forEach(n=>{n(e,{get width(){return sa(e,t)},get height(){return ca(e,t)}})})}function ua(e){e.forEach(la)}function da(){typeof ResizeObserver<`u`&&(aa=new ResizeObserver(ua))}function fa(e,t){aa||da();let n=Pi(e);return n.forEach(e=>{let n=ia.get(e);n||(n=new Set,ia.set(e,n)),n.add(t),aa?.observe(e)}),()=>{n.forEach(e=>{let n=ia.get(e);n?.delete(t),n?.size||aa?.unobserve(e)})}}var pa=new Set,ma;function ha(){ma=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};pa.forEach(t=>t(e))},window.addEventListener(`resize`,ma)}function ga(e){return pa.add(e),ma||ha(),()=>{pa.delete(e),!pa.size&&typeof ma==`function`&&(window.removeEventListener(`resize`,ma),ma=void 0)}}function _a(e,t){return typeof e==`function`?ga(e):fa(e,t)}var va={value:null,addProjectionMetrics:null};function ya(e){return ra(e)&&e.tagName===`svg`}var ba=[...gi,z,B],xa=e=>ba.find(hi(e)),Sa=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ca=()=>({x:Sa(),y:Sa()}),wa=()=>({min:0,max:0}),G=()=>({x:wa(),y:wa()}),Ta=new WeakMap;function Ea(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Da(e){return typeof e==`string`||Array.isArray(e)}var Oa=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],ka=[`initial`,...Oa];function Aa(e){return Ea(e.animate)||ka.some(t=>Da(e[t]))}function ja(e){return!!(Aa(e)||e.variants)}function Ma(e,t,n){for(let r in t){let i=t[r],a=n[r];if(U(i))e.addValue(r,i);else if(U(a))e.addValue(r,Ir(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Ir(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Na={current:null},Pa={current:!1},Fa=typeof window<`u`;function Ia(){if(Pa.current=!0,Fa){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Na.current=e.matches;e.addEventListener(`change`,t),t()}else Na.current=!1}}var La=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Ra={};function za(e){Ra=e}function Ba(){return Ra}var Va=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=er,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=I.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,P.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Aa(t),this.isVariantNode=ja(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&U(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Ta.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Pa.current||Ia(),this.shouldReduceMotion=Na.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Be(this.notifyUpdate),Be(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Cr.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new pr({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:j(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Vn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&P.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Ra){let t=Ra[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<La.length;t++){let n=La[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Ma(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Ir(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(le(n)||ue(n))?n=parseFloat(n):!xa(n)&&B.test(t)&&(n=ki(e,t)),this.setBaseTarget(e,U(n)?n.get():n)),U(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Zr(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!U(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new pe),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Li.render(this.render)}},Ha=class extends Va{constructor(){super(...arguments),this.KeyframeResolver=Mi}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;U(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Ua=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Wa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ga({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Ka(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function qa(e){return e===void 0||e===1}function Ja({scale:e,scaleX:t,scaleY:n}){return!qa(e)||!qa(t)||!qa(n)}function Ya(e){return Ja(e)||Xa(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Xa(e){return Za(e.x)||Za(e.y)}function Za(e){return e&&e!==`0%`}function Qa(e,t,n){return n+t*(e-n)}function $a(e,t,n,r,i){return i!==void 0&&(e=Qa(e,i,r)),Qa(e,n,r)+t}function eo(e,t=0,n=1,r,i){e.min=$a(e.min,t,n,r,i),e.max=$a(e.max,t,n,r,i)}function to(e,{x:t,y:n}){eo(e.x,t.translate,t.scale,t.originPoint),eo(e.y,n.translate,n.scale,n.originPoint)}var no=.999999999999,ro=1.0000000000001;function io(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(K(e.x,-a.scroll.offset.x),K(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,to(e,o)),r&&Ya(a.latestValues)&&so(e,a.latestValues,a.layout?.layoutBox))}t.x<ro&&t.x>no&&(t.x=1),t.y<ro&&t.y>no&&(t.y=1)}function K(e,t){e.min+=t,e.max+=t}function ao(e,t,n,r,i=.5){eo(e,t,n,V(e.min,e.max,i),r)}function oo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function so(e,t,n){let r=n??e;ao(e.x,oo(t.x,r.x),t.scaleX,t.scale,t.originX),ao(e.y,oo(t.y,r.y),t.scaleY,t.scale,t.originY)}function co(e,t){return Wa(Ka(e.getBoundingClientRect(),t))}function lo(e,t,n){let r=co(e,n),{scroll:i}=t;return i&&(K(r.x,i.offset.x),K(r.y,i.offset.y)),r}var uo={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},fo=Bn.length;function po(e,t,n){let r=``,i=!0;for(let a=0;a<fo;a++){let o=Bn[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Fi(s,Ti[o]);if(!c){i=!1;let t=uo[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Fi(a,Ti.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function mo(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Vn.has(e))o=!0;else if(Ge(e))i[e]=n;else{let t=Fi(n,Ti[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=po(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function ho(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function go(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var _o={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(R.test(e))e=parseFloat(e);else return e}return`${go(e,t.target.x)}% ${go(e,t.target.y)}%`}},vo={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=B.parse(e);if(i.length>5)return r;let a=B.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=V(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},yo={borderRadius:{..._o,applyTo:[...Ni]},borderTopLeftRadius:_o,borderTopRightRadius:_o,borderBottomLeftRadius:_o,borderBottomRightRadius:_o,boxShadow:vo};function bo(e,{layout:t,layoutId:n}){return Vn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!yo[e]||e===`opacity`)}function xo(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(U(r[t])||i&&U(i[t])||bo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function So(e){return window.getComputedStyle(e)}var Co=class extends Ha{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ho}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Vn.has(t))return this.projection?.isProjecting?In(t):Rn(e,t);{let n=So(e),r=(Ge(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return co(e,t)}build(e,t,n){mo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return xo(e,t,n)}},wo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},To={offset:`strokeDashoffset`,array:`strokeDasharray`};function Eo(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?wo:To;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Do=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Oo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(mo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Do)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Eo(d,i,a,o,!1)}var ko=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Ao=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function jo(e,t,n,r){ho(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(ko.has(n)?n:oi(n),t.attrs[n])}function Mo(e,t,n){let r=xo(e,t,n);for(let n in e)if(U(e[n])||U(t[n])){let t=Bn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var No=class extends Ha{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Vn.has(t)){let e=Di(t);return e&&e.default||0}return t=ko.has(t)?t:oi(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Mo(e,t,n)}build(e,t,n){Oo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){jo(e,t,n,r)}mount(e){this.isSVGTag=Ao(e.tagName),super.mount(e)}},Po=ka.length;function Fo(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Fo(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Po;n++){let r=ka[n],i=e.props[r];(Da(i)||i===!1)&&(t[r]=i)}return t}function Io(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Lo=[...Oa].reverse(),Ro=Oa.length;function zo(e){return t=>Promise.all(t.map(({animation:t,options:n})=>pi(e,t,n)))}function Bo(e){let t=zo(e),n=Uo(),r=!0,i=!1,a=t=>(n,r)=>{let i=Qr(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Fo(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Ro;t++){let p=Lo[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Da(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Ea(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Vo(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:ee={}}=m,w={...ee,...C},te=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=C[e],n=ee[e];if(d.hasOwnProperty(e))continue;let r=!1;r=ei(t)&&ei(n)?!Io(t,n)||y:t!==n,r?t==null?u.add(e):te(e):t!==void 0&&u.has(e)?te(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let T=v&&y;b&&(!T||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!T&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Qr(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=jr(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Qr(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Uo(),i=!0}}}function Vo(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Io(t,e):!1}function Ho(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Uo(){return{animate:Ho(!0),whileInView:Ho(),whileHover:Ho(),whileTap:Ho(),whileDrag:Ho(),whileFocus:Ho(),exit:Ho()}}function Wo(e,t){e.min=t.min,e.max=t.max}function q(e,t){Wo(e.x,t.x),Wo(e.y,t.y)}function Go(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ko=.9999,qo=1.0001,Jo=-.01,Yo=.01;function J(e){return e.max-e.min}function Xo(e,t,n){return Math.abs(e-t)<=n}function Zo(e,t,n,r=.5){e.origin=r,e.originPoint=V(t.min,t.max,e.origin),e.scale=J(n)/J(t),e.translate=V(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ko&&e.scale<=qo||isNaN(e.scale))&&(e.scale=1),(e.translate>=Jo&&e.translate<=Yo||isNaN(e.translate))&&(e.translate=0)}function Qo(e,t,n,r){Zo(e.x,t.x,n.x,r?r.originX:void 0),Zo(e.y,t.y,n.y,r?r.originY:void 0)}function $o(e,t,n,r=0){e.min=(r?V(n.min,n.max,r):n.min)+t.min,e.max=e.min+J(t)}function es(e,t,n,r){$o(e.x,t.x,n.x,r?.x),$o(e.y,t.y,n.y,r?.y)}function ts(e,t,n,r=0){let i=r?V(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+J(t)}function ns(e,t,n,r){ts(e.x,t.x,n.x,r?.x),ts(e.y,t.y,n.y,r?.y)}function rs(e,t,n,r,i){return e-=t,e=Qa(e,1/n,r),i!==void 0&&(e=Qa(e,1/i,r)),e}function is(e,t=0,n=1,r=.5,i,a=e,o=e){if(L.test(t)&&(t=parseFloat(t),t=V(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=V(a.min,a.max,r);e===a&&(s-=t),e.min=rs(e.min,t,n,s,i),e.max=rs(e.max,t,n,s,i)}function as(e,t,[n,r,i],a,o){is(e,t[n],t[r],t[i],t.scale,a,o)}var os=[`x`,`scaleX`,`originX`],ss=[`y`,`scaleY`,`originY`];function cs(e,t,n,r){as(e.x,t,os,n?n.x:void 0,r?r.x:void 0),as(e.y,t,ss,n?n.y:void 0,r?r.y:void 0)}function ls(e){return e.translate===0&&e.scale===1}function us(e){return ls(e.x)&&ls(e.y)}function ds(e,t){return e.min===t.min&&e.max===t.max}function fs(e,t){return ds(e.x,t.x)&&ds(e.y,t.y)}function ps(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ms(e,t){return ps(e.x,t.x)&&ps(e.y,t.y)}function hs(e){return J(e.x)/J(e.y)}function gs(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Y(e){return[e(`x`),e(`y`)]}function _s(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var vs=Ni.length,ys=e=>typeof e==`string`?parseFloat(e):e,bs=e=>typeof e==`number`||R.test(e);function xs(e,t,n,r,i,a){i?(e.opacity=V(0,n.opacity??1,Cs(r)),e.opacityExit=V(t.opacity??1,0,ws(r))):a&&(e.opacity=V(t.opacity??1,n.opacity??1,r));for(let i=0;i<vs;i++){let a=Ni[i],o=Ss(t,a),s=Ss(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||bs(o)===bs(s)?(e[a]=Math.max(V(ys(o),ys(s),r),0),(L.test(s)||L.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=V(t.rotate||0,n.rotate||0,r))}function Ss(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Cs=Ts(0,.5,Ee),ws=Ts(.5,.95,k);function Ts(e,t,n){return r=>r<e?0:r>t?1:n(fe(e,t,r))}function Es(e,t,n){let r=U(e)?e:Ir(e);return r.start(Kr(``,r,t,n)),r.animation}function Ds(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Os=(e,t)=>e.depth-t.depth,ks=class{constructor(){this.children=[],this.isDirty=!1}add(e){se(this.children,e),this.isDirty=!0}remove(e){ce(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Os),this.isDirty=!1,this.children.forEach(e)}};function As(e,t){let n=I.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Be(r),e(a-t))};return P.setup(r,!0),()=>Be(r)}function js(e){return U(e)?e.get():e}var Ms=class{constructor(){this.members=[]}add(e){se(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(ce(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ce(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Ns={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ps={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Fs=[``,`X`,`Y`,`Z`],Is=1e3,Ls=0;function Rs(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function zs(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=ci(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,P,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zs(r)}function Bs({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Ls++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,va.value&&(Ps.nodes=Ps.calculatedTargetDeltas=Ps.calculatedProjections=0),this.nodes.forEach(Us),this.nodes.forEach(Qs),this.nodes.forEach($s),this.nodes.forEach(Ws),va.addProjectionMetrics&&va.addProjectionMetrics(Ps)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ks)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new pe),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ra(t)&&!ya(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;P.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=As(i,250),Ns.hasAnimatedSinceResize&&(Ns.hasAnimatedSinceResize=!1,this.nodes.forEach(Zs)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||oc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!ms(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Rr(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Zs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Be(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ec),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zs(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(qs),this.nodes.forEach(Ks);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Js);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Ys),this.nodes.forEach(Xs),this.nodes.forEach(Vs),this.nodes.forEach(Hs)):this.nodes.forEach(Js),this.clearAllSnapshots();let e=I.now();F.delta=E(0,1e3/60,e-F.timestamp),F.timestamp=e,F.isProcessing=!0,Ve.update.process(F),Ve.preRender.process(F),Ve.render.process(F),F.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Li.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Gs),this.sharedNodes.forEach(tc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,P.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){P.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!J(this.snapshot.measuredBox.x)&&!J(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=G(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!us(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ya(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),uc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return G();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(fc))){let{scroll:e}=this.root;e&&(K(t.x,e.offset.x),K(t.y,e.offset.y))}return t}removeElementScroll(e){let t=G();if(q(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&q(t,e),K(t.x,i.offset.x),K(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||G();q(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(K(r.x,-n.scroll.offset.x),K(r.y,-n.scroll.offset.y)),Ya(n.latestValues)&&so(r,n.latestValues,n.layout?.layoutBox)}return Ya(this.latestValues)&&so(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=G();q(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Ya(n.latestValues))continue;let r;n.instance&&(Ja(n.latestValues)&&n.updateSnapshot(),r=G(),q(r,n.measurePageBox())),cs(t,n.latestValues,n.snapshot?.layoutBox,r)}return Ya(this.latestValues)&&cs(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==F.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=F.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),es(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):q(this.target,this.layout.layoutBox),to(this.target,this.targetDelta)):q(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),va.value&&Ps.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Ja(this.parent.latestValues)||Xa(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),ns(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),q(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===F.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;q(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;io(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=G());let{target:s}=e;s?(!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Go(this.prevProjectionDelta.x,this.projectionDelta.x),Go(this.prevProjectionDelta.y,this.projectionDelta.y)),Qo(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!gs(this.projectionDelta.x,this.prevProjectionDelta.x)||!gs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),va.value&&Ps.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ca(),this.projectionDelta=Ca(),this.projectionDeltaWithTransform=Ca()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Ca();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=G(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(ac));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=V(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=V(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(nc(o.x,e.x,n),nc(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ns(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),ic(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&fs(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=G(),q(f,this.relativeTarget)),c&&(this.animationValues=a,xs(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Be(this.pendingAnimation),void 0),this.pendingAnimation=P.update(()=>{Ns.hasAnimatedSinceResize=!0,this.motionValue||=Ir(0),this.motionValue.jump(0,!1),this.currentAnimation=Es(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Is),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&dc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=J(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=J(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}q(t,n),so(t,i),Qo(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ms),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Rs(`z`,e,r,this.animationValues);for(let t=0;t<Fs.length;t++)Rs(`rotate${Fs[t]}`,e,r,this.animationValues),Rs(`skew${Fs[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=js(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=js(t?.pointerEvents)||``),this.hasProjected&&!Ya(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=_s(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in yo){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=yo[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?js(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Ks),this.root.sharedNodes.clear()}}}function Vs(e){e.updateLayout()}function Hs(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Y(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=J(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Wo(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else dc(i,t.layoutBox,n)&&Y(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=J(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Ca();Qo(o,n,t.layoutBox);let s=Ca();a?Qo(s,e.applyTransform(r,!0),t.measuredBox):Qo(s,n,t.layoutBox);let c=!us(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=G();ns(s,t.layoutBox,i.layoutBox,o);let c=G();ns(c,n,a.layoutBox,o),ms(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Us(e){va.value&&Ps.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function Ws(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Gs(e){e.clearSnapshot()}function Ks(e){e.clearMeasurements()}function qs(e){e.isLayoutDirty=!0,e.updateLayout()}function Js(e){e.isLayoutDirty=!1}function Ys(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Xs(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Zs(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Qs(e){e.resolveTargetDelta()}function $s(e){e.calcProjection()}function ec(e){e.resetSkewAndRotation()}function tc(e){e.removeLeadSnapshot()}function nc(e,t,n){e.translate=V(t.translate,0,n),e.scale=V(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rc(e,t,n,r){e.min=V(t.min,n.min,r),e.max=V(t.max,n.max,r)}function ic(e,t,n,r){rc(e.x,t.x,n.x,r),rc(e.y,t.y,n.y,r)}function ac(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var oc={duration:.45,ease:[.4,0,.1,1]},sc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cc=sc(`applewebkit/`)&&!sc(`chrome/`)?Math.round:k;function lc(e){e.min=cc(e.min),e.max=cc(e.max)}function uc(e){lc(e.x),lc(e.y)}function dc(e,t,n){return e===`position`||e===`preserve-aspect`&&!Xo(hs(t),hs(n),.2)}function fc(e){return e!==e.root&&e.scroll?.wasRoot}var pc=Bs({attachResizeListener:(e,t)=>Ds(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),mc={current:void 0},hc=Bs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mc.current){let e=new pc({});e.mount(window),e.setOptions({layoutScroll:!0}),mc.current=e}return mc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),gc=(0,w.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function _c(e=!0){let t=(0,w.useContext)(oe);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,w.useId)();(0,w.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,w.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var vc=(0,w.createContext)({strict:!1}),yc={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},bc=!1;function xc(){if(bc)return;let e={};for(let t in yc)e[t]={isEnabled:e=>yc[t].some(t=>!!e[t])};za(e),bc=!0}function Sc(){return xc(),Ba()}function Cc(e){let t=Sc();for(let n in e)t[n]={...t[n],...e[n]};za(t)}var wc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function Tc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||wc.has(e)}var Ec=r({default:()=>Dc}),Dc,Oc=t((()=>{throw Dc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),kc=e=>!Tc(e);function Ac(e){typeof e==`function`&&(kc=t=>t.startsWith(`on`)?!Tc(t):e(t))}try{Ac((Oc(),e(Ec)).default)}catch{}function jc(e,t,n){let r={};for(let i in e)(i!==`values`||typeof e.values!=`object`)&&(U(e[i])||(kc(i)||n===!0&&Tc(i)||!t&&!Tc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]));return r}var Mc=(0,w.createContext)({});function Nc(e,t){if(Aa(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Da(t)?t:void 0,animate:Da(n)?n:void 0}}return e.inherit===!1?{}:t}function Pc(e){let{initial:t,animate:n}=Nc(e,(0,w.useContext)(Mc));return(0,w.useMemo)(()=>({initial:t,animate:n}),[Fc(t),Fc(n)])}function Fc(e){return Array.isArray(e)?e.join(` `):e}var Ic=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Lc(e,t,n){for(let r in t)!U(t[r])&&!bo(r,n)&&(e[r]=t[r])}function Rc({transformTemplate:e},t){return(0,w.useMemo)(()=>{let n=Ic();return mo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function zc(e,t){let n=e.style||{},r={};return Lc(r,n,e),Object.assign(r,Rc(e,t)),r}function Bc(e,t){let n={},r=zc(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Vc=()=>({...Ic(),attrs:{}});function Hc(e,t,n,r){let i=(0,w.useMemo)(()=>{let n=Vc();return Oo(n,t,Ao(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};Lc(t,e.style,e),i.style={...t,...i.style}}return i}var Uc=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Wc(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Uc.indexOf(e)>-1||/[A-Z]/u.test(e))}function Gc(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Wc(e)?Hc:Bc)(t,r,i,e),c=jc(t,typeof e==`string`,a),l=e===w.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,w.useMemo)(()=>U(u)?u.get():u,[u]);return(0,w.createElement)(e,{...l,children:d})}function Kc({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:qc(n,r,i,e),renderState:t()}}function qc(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=js(a[e]);let{initial:o,animate:s}=e,c=Aa(e),l=ja(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Ea(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Zr(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Jc=e=>(t,n)=>{let r=(0,w.useContext)(Mc),i=(0,w.useContext)(oe),a=()=>Kc(e,t,r,i);return n?a():ie(a)},Yc=Jc({scrapeMotionValuesFromProps:xo,createRenderState:Ic}),Xc=Jc({scrapeMotionValuesFromProps:Mo,createRenderState:Vc}),Zc=Symbol.for(`motionComponentSymbol`);function Qc(e,t,n){let r=(0,w.useRef)(n);(0,w.useInsertionEffect)(()=>{r.current=n});let i=(0,w.useRef)(null);return(0,w.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var $c=(0,w.createContext)({});function el(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function tl(e,t,n,r,i,a){let{visualElement:o}=(0,w.useContext)(Mc),s=(0,w.useContext)(vc),c=(0,w.useContext)(oe),l=(0,w.useContext)(gc),u=l.reducedMotion,d=l.skipAnimations,f=(0,w.useRef)(null),p=(0,w.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,w.useContext)($c);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&nl(f.current,n,i,h);let g=(0,w.useRef)(!1);(0,w.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[si],v=(0,w.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return ae(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,w.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function nl(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:rl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&el(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function rl(e){if(e)return e.options.allowProjection===!1?rl(e.parent):e.projection}var X=f();function il(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Cc(r);let a=n?n===`svg`:Wc(e),o=a?Xc:Yc;function s(n,s){let c,l={...(0,w.useContext)(gc),...n,layoutId:al(n)},{isStatic:u}=l,d=Pc(n),f=o(n,u);if(!u&&typeof window<`u`){ol(l,r);let t=sl(l);c=t.MeasureLayout,d.visualElement=tl(e,f,l,i,t.ProjectionNode,a)}return(0,X.jsxs)(Mc.Provider,{value:d,children:[c&&d.visualElement?(0,X.jsx)(c,{visualElement:d.visualElement,...l}):null,Gc(e,n,Qc(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,w.forwardRef)(s);return c[Zc]=e,c}function al({layoutId:e}){let t=(0,w.useContext)(re).id;return t&&e!==void 0?t+`-`+e:e}function ol(e,t){(0,w.useContext)(vc).strict}function sl(e){let{drag:t,layout:n}=Sc();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function cl(e,t){if(typeof Proxy>`u`)return il;let n=new Map,r=(n,r)=>il(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,il(a,void 0,e,t)),n.get(a))})}var ll=(e,t)=>t.isSVG??Wc(e)?new No(t):new Co(t,{allowProjection:e!==w.Fragment}),ul=class extends Ua{constructor(e){super(e),e.animationState||=Bo(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ea(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},dl=0,fl={animation:{Feature:ul},exit:{Feature:class extends Ua{constructor(){super(...arguments),this.id=dl++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Qr(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function pl(e){return{point:{x:e.pageX,y:e.pageY}}}var ml=e=>t=>Gi(t)&&e(t,pl(t));function hl(e,t,n,r){return Ds(e,t,ml(n),r)}var gl=({current:e})=>e?e.ownerDocument.defaultView:null,_l=(e,t)=>Math.abs(e-t);function vl(e,t){let n=_l(e.x,t.x),r=_l(e.y,t.y);return Math.sqrt(n**2+r**2)}var yl=new Set([`auto`,`scroll`]),bl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=xl(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Cl(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=vl(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=F;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=xl(t,this.transformPagePoint),P.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Cl(e.type===`pointercancel`?this.lastMoveEventInfo:xl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Gi(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=xl(pl(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=F;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Cl(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=A(hl(this.contextWindow,`pointermove`,this.handlePointerMove,d),hl(this.contextWindow,`pointerup`,this.handlePointerUp,d),hl(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(yl.has(e.overflowX)||yl.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),P.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Be(this.updatePoint)}};function xl(e,t){return t?{point:t(e.point)}:e}function Sl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Cl({point:e},t){return{point:e,delta:Sl(e,Tl(t)),offset:Sl(e,wl(t)),velocity:El(t,.1)}}function wl(e){return e[0]}function Tl(e){return e[e.length-1]}function El(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Tl(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>j(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>j(t)*2&&(r=e[1]);let a=M(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Dl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?V(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?V(n,e,r.max):Math.min(e,n)),e}function Ol(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function kl(e,{top:t,left:n,bottom:r,right:i}){return{x:Ol(e.x,n,i),y:Ol(e.y,t,r)}}function Al(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function jl(e,t){return{x:Al(e.x,t.x),y:Al(e.y,t.y)}}function Ml(e,t){let n=.5,r=J(e),i=J(t);return i>r?n=fe(t.min,t.max-r,e.min):r>i&&(n=fe(e.min,e.max-i,t.min)),E(0,1,n)}function Nl(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Pl=.35;function Fl(e=Pl){return e===!1?e=0:e===!0&&(e=Pl),{x:Il(e,`left`,`right`),y:Il(e,`top`,`bottom`)}}function Il(e,t,n){return{min:Ll(e,t),max:Ll(e,n)}}function Ll(e,t){return typeof e==`number`?e:e[t]||0}var Rl=new WeakMap,zl=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(pl(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Bi(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Y(e=>{let t=this.getAxisMotionValue(e).get()||0;if(L.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=J(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&P.update(()=>i(e,t),!1,!0),ai(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;r&&this.currentDirection===null?(this.currentDirection=Ul(o),this.currentDirection!==null&&i&&i(this.currentDirection)):(this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&P.update(()=>a(e,t),!1,!0))},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new bl(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:gl(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&P.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Hl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Dl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&el(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?kl(n.layoutBox,e):!1,this.elastic=Fl(t),r!==this.constraints&&!el(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Y(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Nl(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!el(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=lo(n,r.root,this.visualElement.getTransformPagePoint()),a=jl(r.layout.layoutBox,i);if(t){let e=t(Ga(a));this.hasMutatedConstraints=!!e,e&&(a=Wa(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Y(o=>{if(!Hl(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ai(this.visualElement,e),n.start(Kr(e,n,0,t,this.visualElement,!1))}stopAnimation(){Y(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Y(t=>{let{drag:n}=this.getProps();if(!Hl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-V(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!el(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Y(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Ml({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Y(t=>{if(!Hl(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(V(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Rl.set(this.visualElement,this);let e=this.visualElement.current,t=hl(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Yi(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();el(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Vl(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),P.read(r);let o=Ds(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Y(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Pl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Bl(e){let t=!0;return()=>{t?t=!1:e()}}function Vl(e,t,n){let r=_a(e,Bl(n)),i=_a(t,Bl(n));return()=>{r(),i()}}function Hl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Ul(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Wl=class extends Ua{constructor(e){super(e),this.removeGroupControls=k,this.removeListeners=k,this.controls=new zl(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||k}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Gl=e=>(t,n)=>{e&&P.update(()=>e(t,n),!1,!0)},Kl=class extends Ua{constructor(){super(...arguments),this.removePointerDownListener=k}onPointerDown(e){this.session=new bl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gl(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Gl(e),onStart:Gl(t),onMove:Gl(n),onEnd:(e,t)=>{delete this.session,r&&P.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=hl(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},ql=!1,Jl=class extends w.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),ql&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ns.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a&&(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),ql=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||P.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Li.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;ql=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Yl(e){let[t,n]=_c(),r=(0,w.useContext)(re);return(0,X.jsx)(Jl,{...e,layoutGroup:r,switchLayoutGroup:(0,w.useContext)($c),isPresent:t,safeToRemove:n})}var Xl={pan:{Feature:Kl},drag:{Feature:Wl,ProjectionNode:hc,MeasureLayout:Yl}};function Zl(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&P.postRender(()=>i(t,pl(t)))}var Ql=class extends Ua{mount(){let{current:e}=this.node;e&&(this.unmount=Ui(e,(e,t)=>(Zl(this.node,t,`Start`),e=>Zl(this.node,e,`End`))))}unmount(){}},$l=class extends Ua{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=A(Ds(this.node.current,`focus`,()=>this.onFocus()),Ds(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function eu(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&P.postRender(()=>i(t,pl(t)))}var tu=class extends Ua{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=na(e,(e,t)=>(eu(this.node,t,`Start`),(e,{success:t})=>eu(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},nu=new WeakMap,ru=new WeakMap,iu=e=>{let t=nu.get(e.target);t&&t(e)},au=e=>{e.forEach(iu)};function ou({root:e,...t}){let n=e||document;ru.has(n)||ru.set(n,{});let r=ru.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(au,{root:e,...t})),r[i]}function su(e,t,n){let r=ou(t);return nu.set(e,n),r.observe(e),()=>{nu.delete(e),r.unobserve(e)}}var cu={some:0,all:1},lu=class extends Ua{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:cu[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=su(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(uu(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function uu({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var du={inView:{Feature:lu},tap:{Feature:tu},focus:{Feature:$l},hover:{Feature:Ql}},fu={layout:{ProjectionNode:hc,MeasureLayout:Yl}},pu=cl({...fl,...du,...Xl,...fu},ll);function mu(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}mu(`:root{--sileo-spring-easing:linear(
|
|
3
|
-
0,
|
|
4
|
-
0.002 0.6%,
|
|
5
|
-
0.007 1.2%,
|
|
6
|
-
0.015 1.8%,
|
|
7
|
-
0.026 2.4%,
|
|
8
|
-
0.041 3.1%,
|
|
9
|
-
0.06 3.8%,
|
|
10
|
-
0.108 5.3%,
|
|
11
|
-
0.157 6.6%,
|
|
12
|
-
0.214 8%,
|
|
13
|
-
0.467 13.7%,
|
|
14
|
-
0.577 16.3%,
|
|
15
|
-
0.631 17.7%,
|
|
16
|
-
0.682 19.1%,
|
|
17
|
-
0.73 20.5%,
|
|
18
|
-
0.771 21.8%,
|
|
19
|
-
0.808 23.1%,
|
|
20
|
-
0.844 24.5%,
|
|
21
|
-
0.874 25.8%,
|
|
22
|
-
0.903 27.2%,
|
|
23
|
-
0.928 28.6%,
|
|
24
|
-
0.952 30.1%,
|
|
25
|
-
0.972 31.6%,
|
|
26
|
-
0.988 33.1%,
|
|
27
|
-
1.01 35.7%,
|
|
28
|
-
1.025 38.5%,
|
|
29
|
-
1.034 41.6%,
|
|
30
|
-
1.038 45%,
|
|
31
|
-
1.035 50.1%,
|
|
32
|
-
1.012 64.2%,
|
|
33
|
-
1.003 73%,
|
|
34
|
-
0.999 83.7%,
|
|
35
|
-
1
|
|
36
|
-
);--sileo-duration:600ms;--sileo-height:40px;--sileo-width:350px;--sileo-state-success:oklch(0.723 0.219 142.136);--sileo-state-loading:oklch(0.556 0 0);--sileo-state-error:oklch(0.637 0.237 25.331);--sileo-state-warning:oklch(0.795 0.184 86.047);--sileo-state-info:oklch(0.685 0.169 237.323);--sileo-state-action:oklch(0.623 0.214 259.815)}[data-sileo-toast]{position:relative;cursor:pointer;pointer-events:auto;touch-action:none;border:0;background:0 0;padding:0;width:var(--sileo-width);height:var(--_h,var(--sileo-height));opacity:0;transform:translateZ(0) scale(.95);transform-origin:center;contain:layout style;overflow:visible}[data-sileo-toast][data-state=loading]{cursor:default}[data-sileo-toast][data-ready=true]{opacity:1;transform:translateZ(0) scale(1);transition:transform calc(var(--sileo-duration) * .66) var(--sileo-spring-easing),opacity calc(var(--sileo-duration) * .66) var(--sileo-spring-easing),margin-bottom calc(var(--sileo-duration) * .66) var(--sileo-spring-easing),margin-top calc(var(--sileo-duration) * .66) var(--sileo-spring-easing),height var(--sileo-duration) var(--sileo-spring-easing)}[data-sileo-viewport][data-position^=top] [data-sileo-toast]:not([data-ready=true]){transform:translateY(-6px) scale(.95)}[data-sileo-viewport][data-position^=bottom] [data-sileo-toast]:not([data-ready=true]){transform:translateY(6px) scale(.95)}[data-sileo-toast][data-ready=true][data-exiting=true]{opacity:0;pointer-events:none}[data-sileo-viewport][data-position^=top] [data-sileo-toast][data-ready=true][data-exiting=true]{transform:translateY(-6px) scale(.95)}[data-sileo-viewport][data-position^=bottom] [data-sileo-toast][data-ready=true][data-exiting=true]{transform:translateY(6px) scale(.95)}[data-sileo-canvas]{position:absolute;left:0;right:0;pointer-events:none;transform:translateZ(0);contain:layout style;overflow:visible}[data-sileo-canvas][data-edge=top]{bottom:0;transform:scaleY(-1) translateZ(0)}[data-sileo-canvas][data-edge=bottom]{top:0}[data-sileo-svg]{overflow:visible}[data-sileo-header]{position:absolute;z-index:20;display:flex;align-items:center;padding:.5rem;height:var(--sileo-height);overflow:hidden;left:var(--_px,0);transform:var(--_ht);max-width:var(--_pw)}[data-sileo-toast][data-ready=true] [data-sileo-header]{transition:transform var(--sileo-duration) var(--sileo-spring-easing),left var(--sileo-duration) var(--sileo-spring-easing),max-width var(--sileo-duration) var(--sileo-spring-easing)}[data-sileo-header][data-edge=top]{bottom:0}[data-sileo-header][data-edge=bottom]{top:0}[data-sileo-header-stack]{position:relative;display:inline-flex;align-items:center;height:100%}[data-sileo-header-inner]{display:flex;align-items:center;gap:.5rem;white-space:nowrap;opacity:1;filter:blur(0px);transform:translateZ(0)}[data-sileo-header-inner][data-layer=current]{position:relative;z-index:1;animation:sileo-header-enter var(--sileo-duration) var(--sileo-spring-easing) both}[data-sileo-header-inner][data-exiting=true],[data-sileo-header-inner][data-layer=current]:not(:only-child){will-change:opacity,filter}[data-sileo-header-inner][data-layer=prev]{position:absolute;left:0;top:0;z-index:0;pointer-events:none}[data-sileo-header-inner][data-exiting=true]{animation:sileo-header-exit calc(var(--sileo-duration) * .7) ease forwards}[data-sileo-badge]{display:flex;height:24px;width:24px;flex-shrink:0;align-items:center;justify-content:center;padding:2px;box-sizing:border-box;border-radius:9999px;color:var(--sileo-tone,currentColor);background-color:var(--sileo-tone-bg,transparent)}[data-sileo-title]{font-size:.825rem;line-height:1rem;font-weight:500;text-transform:capitalize;color:var(--sileo-tone,currentColor)}:is([data-sileo-badge],[data-sileo-title],[data-sileo-button])[data-state]{--_c:var(--sileo-state-success)}:is(
|
|
37
|
-
[data-sileo-badge],[data-sileo-title],[data-sileo-button]
|
|
38
|
-
)[data-state=loading]{--_c:var(--sileo-state-loading)}:is(
|
|
39
|
-
[data-sileo-badge],[data-sileo-title],[data-sileo-button]
|
|
40
|
-
)[data-state=error]{--_c:var(--sileo-state-error)}:is(
|
|
41
|
-
[data-sileo-badge],[data-sileo-title],[data-sileo-button]
|
|
42
|
-
)[data-state=warning]{--_c:var(--sileo-state-warning)}:is(
|
|
43
|
-
[data-sileo-badge],[data-sileo-title],[data-sileo-button]
|
|
44
|
-
)[data-state=info]{--_c:var(--sileo-state-info)}:is(
|
|
45
|
-
[data-sileo-badge],[data-sileo-title],[data-sileo-button]
|
|
46
|
-
)[data-state=action]{--_c:var(--sileo-state-action)}:is([data-sileo-badge],[data-sileo-title])[data-state]{--sileo-tone:var(--_c);--sileo-tone-bg:color-mix(in oklch, var(--_c) 20%, transparent)}[data-sileo-content]{position:absolute;left:0;z-index:10;width:100%;pointer-events:none;opacity:var(--_co, 0)}[data-sileo-content]:not([data-visible=true]){content-visibility:hidden}[data-sileo-toast][data-ready=true] [data-sileo-content]{transition:opacity calc(var(--sileo-duration) * .08) ease calc(var(--sileo-duration) * .04)}[data-sileo-content][data-edge=top]{top:0}[data-sileo-content][data-edge=bottom]{top:var(--sileo-height)}[data-sileo-content][data-visible=true]{pointer-events:auto}[data-sileo-toast][data-ready=true] [data-sileo-content][data-visible=true]{transition:opacity calc(var(--sileo-duration) * .6) ease calc(var(--sileo-duration) * .3)}[data-sileo-description]{width:100%;text-align:left;padding:1rem;font-size:.875rem;line-height:1.25rem;contain:layout style paint;content-visibility:auto}[data-sileo-button]{display:flex;align-items:center;justify-content:center;height:1.75rem;padding:0 .625rem;margin-top:.75rem;border-radius:9999px;border:0;font-size:.75rem;font-weight:500;cursor:pointer;color:var(--sileo-btn-color,currentColor);background-color:var(--sileo-btn-bg,transparent);transition:background-color 150ms ease}[data-sileo-button]:hover{background-color:var(--sileo-btn-bg-hover,transparent)}[data-sileo-button][data-state]{--sileo-btn-color:var(--_c);--sileo-btn-bg:color-mix(in oklch, var(--_c) 15%, transparent);--sileo-btn-bg-hover:color-mix(in oklch, var(--_c) 25%, transparent)}[data-sileo-icon=spin]{animation:sileo-spin 1s linear infinite}@keyframes sileo-spin{to{transform:rotate(360deg)}}@keyframes sileo-header-enter{from{opacity:0;filter:blur(6px)}to{opacity:1;filter:blur(0px)}}@keyframes sileo-header-exit{from{opacity:1;filter:blur(0px)}to{opacity:0;filter:blur(6px)}}[data-sileo-viewport]{position:fixed;z-index:50;display:flex;gap:.75rem;padding:.75rem;pointer-events:none;max-width:calc(100vw - 1.5rem);contain:layout style}[data-sileo-viewport][data-position^=top] [data-sileo-toast]:not([data-ready=true]){margin-bottom:calc(-1 * (var(--sileo-height) + .75rem))}[data-sileo-viewport][data-position^=bottom] [data-sileo-toast]:not([data-ready=true]){margin-top:calc(-1 * (var(--sileo-height) + .75rem))}[data-sileo-viewport][data-position^=top]{top:0;flex-direction:column-reverse}[data-sileo-viewport][data-position^=bottom]{bottom:0;flex-direction:column}[data-sileo-viewport][data-position$=left]{left:0;align-items:flex-start}[data-sileo-viewport][data-position$=right]{right:0;align-items:flex-end}[data-sileo-viewport][data-position$=center]{left:50%;transform:translateX(-50%);align-items:center}@media (prefers-reduced-motion:no-preference){[data-sileo-toast][data-ready=true]:hover,[data-sileo-toast][data-ready=true][data-exiting=true]{will-change:transform,opacity,height}}@media (prefers-reduced-motion:reduce){[data-sileo-viewport],[data-sileo-viewport] *,[data-sileo-viewport] ::after,[data-sileo-viewport] ::before{animation-duration:0s;animation-iteration-count:1;transition-duration:0s}}[data-sileo-viewport][data-theme=dark] [data-sileo-description]{color:rgba(0,0,0,.5)}[data-sileo-viewport][data-theme=light] [data-sileo-description]{color:rgba(255,255,255,.5)}`);var hu=40,gu=350,_u=16,vu=600,yu=vu/1e3,bu=6e3,xu=bu*.1,Su=bu*.025,Cu=4e3,wu={type:`spring`,bounce:.25,duration:yu},Tu=.5,Eu=10,Du=2.25,Ou=200,ku=vu*.7,Au=e=>{let{title:t,children:n}=e,r=ne(e,[`title`,`children`]);return(0,X.jsxs)(`svg`,T({},r,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,X.jsx)(`title`,{children:t}),n]}))},ju={success:(0,X.jsx)(()=>(0,X.jsx)(Au,{title:`Check`,children:(0,X.jsx)(`path`,{d:`M20 6 9 17l-5-5`})}),{}),loading:(0,X.jsx)(e=>(0,X.jsx)(Au,T({title:`Loader Circle`},e,{children:(0,X.jsx)(`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`})})),{"data-sileo-icon":`spin`,"aria-hidden":`true`}),error:(0,X.jsx)(()=>(0,X.jsxs)(Au,{title:`X`,children:[(0,X.jsx)(`path`,{d:`M18 6 6 18`}),(0,X.jsx)(`path`,{d:`m6 6 12 12`})]}),{}),warning:(0,X.jsx)(()=>(0,X.jsxs)(Au,{title:`Circle Alert`,children:[(0,X.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,X.jsx)(`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`}),(0,X.jsx)(`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`})]}),{}),info:(0,X.jsx)(()=>(0,X.jsxs)(Au,{title:`Life Buoy`,children:[(0,X.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`}),(0,X.jsx)(`path`,{d:`m4.93 4.93 4.24 4.24`}),(0,X.jsx)(`path`,{d:`m14.83 9.17 4.24-4.24`}),(0,X.jsx)(`path`,{d:`m14.83 14.83 4.24 4.24`}),(0,X.jsx)(`path`,{d:`m9.17 14.83-4.24 4.24`}),(0,X.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`})]}),{}),action:(0,X.jsx)(()=>(0,X.jsxs)(Au,{title:`Arrow Right`,children:[(0,X.jsx)(`path`,{d:`M5 12h14`}),(0,X.jsx)(`path`,{d:`m12 5 7 7-7 7`})]}),{})},Mu=(0,w.memo)(function({filterId:e,blur:t}){return(0,X.jsx)(`defs`,{children:(0,X.jsxs)(`filter`,{id:e,x:`-20%`,y:`-20%`,width:`140%`,height:`140%`,colorInterpolationFilters:`sRGB`,children:[(0,X.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:t,result:`blur`}),(0,X.jsx)(`feColorMatrix`,{in:`blur`,mode:`matrix`,values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -10`,result:`goo`}),(0,X.jsx)(`feComposite`,{in:`SourceGraphic`,in2:`goo`,operator:`atop`})]})})}),Nu=(0,w.memo)(function({id:e,fill:t=`#FFFFFF`,state:n=`success`,title:r=n,description:i,position:a=`left`,expand:o=`bottom`,className:s,icon:c,styles:l,button:u,roundness:d,exiting:f=!1,autoExpandDelayMs:p,autoCollapseDelayMs:m,canExpand:h,interruptKey:g,refreshKey:_,onMouseEnter:v,onMouseLeave:y,onDismiss:b}){let x=(0,w.useMemo)(()=>({title:r,description:i,state:n,icon:c,styles:l,button:u,fill:t}),[r,i,n,c,l,u,t]),[S,C]=(0,w.useState)(x),[ee,te]=(0,w.useState)(_),[ne,re]=(0,w.useState)(!1),[ie,ae]=(0,w.useState)(!1),[oe,se]=(0,w.useState)(0),[ce,E]=(0,w.useState)(0),D=!!S.description||!!S.button,le=S.state===`loading`,O=D&&ne&&!le,ue=le?!1:h??(!g||g===e),de=`${S.state}-${S.title}`,k=`sileo-gooey-${e}`,A=Math.max(0,d??_u),fe=A*Tu,pe=(0,w.useRef)(null),j=(0,w.useRef)(null),M=(0,w.useRef)(null),me=(0,w.useRef)(null),he=(0,w.useRef)(null),ge=(0,w.useRef)(null),_e=(0,w.useRef)(_),ve=(0,w.useRef)(null),[N,ye]=(0,w.useState)({current:{key:de,view:S},prev:null}),be=(0,w.useRef)(null),xe=(0,w.useRef)(null),Se=(0,w.useRef)(null),Ce=(0,w.useRef)(0),we=(0,w.useRef)(null);(0,w.useLayoutEffect)(()=>{let e=be.current,t=pe.current;if(!e||!t)return;if(xe.current===null){let e=getComputedStyle(t);xe.current=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)}let n=xe.current;(()=>{let t=e.scrollWidth+n+Eu;t>Eu&&se(e=>e===t?e:t)})(),Se.current||=new ResizeObserver(()=>{cancelAnimationFrame(Ce.current),Ce.current=requestAnimationFrame(()=>{let e=be.current,t=xe.current??0;if(!e)return;let n=e.scrollWidth+t+Eu;n>Eu&&se(e=>e===n?e:n)})}),we.current!==e&&(we.current&&Se.current.unobserve(we.current),Se.current.observe(e),we.current=e)},[N.current.key]),(0,w.useEffect)(()=>()=>{var e;cancelAnimationFrame(Ce.current),(e=Se.current)==null||e.disconnect()},[]),(0,w.useLayoutEffect)(()=>{if(!D){E(0);return}let e=j.current;if(!e)return;let t=()=>{let t=e.scrollHeight;E(e=>e===t?e:t)};t();let n=0,r=new ResizeObserver(()=>{cancelAnimationFrame(n),n=requestAnimationFrame(t)});return r.observe(e),()=>{cancelAnimationFrame(n),r.disconnect()}},[D]),(0,w.useEffect)(()=>{let e=requestAnimationFrame(()=>ae(!0));return()=>cancelAnimationFrame(e)},[]),(0,w.useLayoutEffect)(()=>{ye(e=>e.current.key===de?e.current.view===S?e:T({},e,{current:{key:de,view:S}}):{prev:e.current,current:{key:de,view:S}})},[de,S]),(0,w.useEffect)(()=>{if(N.prev)return M.current&&clearTimeout(M.current),M.current=window.setTimeout(()=>{M.current=null,ye(e=>T({},e,{prev:null}))},ku),()=>{M.current&&=(clearTimeout(M.current),null)}},[N.prev]),(0,w.useEffect)(()=>{C(e=>e.fill===t?e:T({},e,{fill:t}))},[t]),(0,w.useEffect)(()=>{_===void 0?(C(x),te(void 0),ve.current=null,_e.current=_):_e.current!==_&&(_e.current=_,ge.current&&=(clearTimeout(ge.current),null),O?(ve.current={key:_,payload:x},re(!1),ge.current=window.setTimeout(()=>{ge.current=null;let e=ve.current;e&&(C(e.payload),te(e.key),ve.current=null)},Ou)):(ve.current=null,C(x),te(_)))},[O,_,x]),(0,w.useEffect)(()=>{if(!D)return;if(me.current&&clearTimeout(me.current),he.current&&clearTimeout(he.current),f||!ue){re(!1);return}if(p==null&&m==null)return;let e=p??0,t=m??0;return e>0?me.current=window.setTimeout(()=>re(!0),e):re(!0),t>0&&(he.current=window.setTimeout(()=>re(!1),t)),()=>{me.current&&clearTimeout(me.current),he.current&&clearTimeout(he.current)}},[m,p,D,ue,f,ee]);let Te=hu*Du,Ee=D?Math.max(Te,hu+ce):Te,De=(0,w.useRef)(Ee);O&&(De.current=Ee);let Oe=O?Ee:De.current,ke=D?Math.max(Oe,Te):hu,Ae=Math.max(0,Oe-hu),je=Math.max(oe||hu,hu),Me=hu+fe*3,Ne=a===`right`?gu-je:a===`center`?(gu-je)/2:0,Pe=(0,w.useMemo)(()=>({x:Ne,width:je,height:O?Me:hu}),[Ne,je,O,Me]),Fe=(0,w.useMemo)(()=>({height:O?Ae:0,opacity:+!!O}),[O,Ae]),Ie=(0,w.useMemo)(()=>O?wu:T({},wu,{bounce:0}),[O]),Le=(0,w.useMemo)(()=>ie?wu:{duration:0},[ie]),Re=`0 0 ${gu} ${ke}`,ze=(0,w.useMemo)(()=>({filter:`url(#${k})`}),[k]),P=(0,w.useMemo)(()=>({"--_h":`${O?Oe:hu}px`,"--_pw":`${je}px`,"--_px":`${Ne}px`,"--_ht":`translateY(${O?o===`bottom`?3:-3:0}px) scale(${O?.9:1})`,"--_co":`${+!!O}`}),[O,Oe,je,Ne,o]),Be=(0,w.useCallback)(e=>{v?.(e),D&&re(!0)},[D,v]),F=(0,w.useCallback)(e=>{y?.(e),re(!1)},[y]),Ve=(0,w.useCallback)(e=>{if(e.propertyName!==`height`&&e.propertyName!==`transform`||O)return;let t=ve.current;t&&(ge.current&&=(clearTimeout(ge.current),null),C(t.payload),te(t.key),ve.current=null)},[O]),He=(0,w.useRef)(null),Ue=(0,w.useRef)(null),I=(0,w.useRef)(b);I.current=b;let We=(0,w.useRef)(null);if(!We.current){let e={onMove:e=>{let t=He.current;if(Ue.current===null||!t)return;let n=e.clientY-Ue.current,r=Math.min(Math.abs(n),20)*(n>0?1:-1);t.style.transform=`translateY(${r}px)`},onUp:t=>{let n=He.current;if(Ue.current===null||!n)return;let r=t.clientY-Ue.current;Ue.current=null,n.style.transform=``,n.removeEventListener(`pointermove`,e.onMove),n.removeEventListener(`pointerup`,e.onUp),Math.abs(r)>30&&(I.current==null||I.current.call(I))}};We.current=e}let Ge=(0,w.useCallback)(e=>{var t;e.preventDefault(),e.stopPropagation(),(t=S.button)==null||t.onClick()},[S.button]),Ke=(0,w.useCallback)(e=>{if(f||!b||e.target.closest(`[data-sileo-button]`))return;Ue.current=e.clientY,e.currentTarget.setPointerCapture(e.pointerId);let t=He.current,n=We.current;t&&n&&(t.addEventListener(`pointermove`,n.onMove,{passive:!0}),t.addEventListener(`pointerup`,n.onUp,{passive:!0}))},[f,b]);return(0,X.jsxs)(`button`,{ref:He,type:`button`,"data-sileo-toast":!0,"data-ready":ie,"data-expanded":O,"data-exiting":f,"data-edge":o,"data-position":a,"data-state":S.state,className:s,style:P,onMouseEnter:Be,onMouseLeave:F,onTransitionEnd:Ve,onPointerDown:Ke,children:[(0,X.jsx)(`div`,{"data-sileo-canvas":!0,"data-edge":o,style:ze,children:(0,X.jsxs)(`svg`,{"data-sileo-svg":!0,width:gu,height:ke,viewBox:Re,children:[(0,X.jsx)(`title`,{children:`Sileo Notification`}),(0,X.jsx)(Mu,{filterId:k,blur:fe}),(0,X.jsx)(pu.rect,{"data-sileo-pill":!0,rx:A,ry:A,fill:S.fill,initial:!1,animate:Pe,transition:Le}),(0,X.jsx)(pu.rect,{"data-sileo-body":!0,y:hu,width:gu,rx:A,ry:A,fill:S.fill,initial:!1,animate:Fe,transition:Ie})]})}),(0,X.jsx)(`div`,{ref:pe,"data-sileo-header":!0,"data-edge":o,children:(0,X.jsxs)(`div`,{"data-sileo-header-stack":!0,children:[(0,X.jsxs)(`div`,{ref:be,"data-sileo-header-inner":!0,"data-layer":`current`,children:[(0,X.jsx)(`div`,{"data-sileo-badge":!0,"data-state":N.current.view.state,className:N.current.view.styles?.badge,children:N.current.view.icon??ju[N.current.view.state]}),(0,X.jsx)(`span`,{"data-sileo-title":!0,"data-state":N.current.view.state,className:N.current.view.styles?.title,children:N.current.view.title})]},N.current.key),N.prev&&(0,X.jsxs)(`div`,{"data-sileo-header-inner":!0,"data-layer":`prev`,"data-exiting":`true`,children:[(0,X.jsx)(`div`,{"data-sileo-badge":!0,"data-state":N.prev.view.state,className:N.prev.view.styles?.badge,children:N.prev.view.icon??ju[N.prev.view.state]}),(0,X.jsx)(`span`,{"data-sileo-title":!0,"data-state":N.prev.view.state,className:N.prev.view.styles?.title,children:N.prev.view.title})]},N.prev.key)]})}),D&&(0,X.jsx)(`div`,{"data-sileo-content":!0,"data-edge":o,"data-visible":O,children:(0,X.jsxs)(`div`,{ref:j,"data-sileo-description":!0,className:S.styles?.description,children:[S.description,S.button&&(0,X.jsx)(`a`,{href:`#`,type:`button`,"data-sileo-button":!0,"data-state":S.state,className:S.styles?.button,onClick:Ge,children:S.button.title})]})})]})}),Pu=e=>e.includes(`right`)?`right`:e.includes(`center`)?`center`:`left`,Fu=e=>e.startsWith(`top`)?`bottom`:`top`,Z={toasts:[],listeners:new Set,position:`top-right`,options:void 0,emit(){for(let e of this.listeners)e(this.toasts)},update(e){this.toasts=e(this.toasts),this.emit()}},Iu=0,Lu=()=>`${++Iu}-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,Ru=e=>`${e.id}:${e.instanceId}`,zu=e=>{let t=Z.toasts.find(t=>t.id===e);t&&!t.exiting&&(Z.update(t=>t.map(t=>t.id===e?T({},t,{exiting:!0}):t)),setTimeout(()=>Z.update(t=>t.filter(t=>t.id!==e)),xu))},Bu=(e,t)=>{if(e.autopilot===!1||!t||t<=0)return{};let n=typeof e.autopilot==`object`?e.autopilot:void 0,r=e=>Math.min(t,Math.max(0,e));return{expandDelayMs:r(n?.expand??Su),collapseDelayMs:r(n?.collapse??Cu)}},Vu=e=>T({},Z.options,e,{styles:T({},Z.options?.styles,e.styles)}),Hu=(e,t,n)=>{let r=Bu(e,e.duration??bu);return T({},e,{id:t,instanceId:Lu(),position:e.position??n??Z.position,autoExpandDelayMs:r.expandDelayMs,autoCollapseDelayMs:r.collapseDelayMs})},Uu=e=>{let t=Z.toasts.filter(e=>!e.exiting),n=Vu(e),r=n.id??`sileo-default`,i=t.find(e=>e.id===r),a=Hu(n,r,i?.position);return i?Z.update(e=>e.map(e=>e.id===r?a:e)):Z.update(e=>[...e.filter(e=>e.id!==r),a]),{id:r,duration:n.duration??bu}},Wu=(e,t)=>{let n=Z.toasts.find(t=>t.id===e);if(!n)return;let r=Hu(Vu(t),e,n.position);Z.update(t=>t.map(t=>t.id===e?r:t))},Gu={show:e=>Uu(T({},e,{state:e.type})).id,success:e=>Uu(T({},e,{state:`success`})).id,error:e=>Uu(T({},e,{state:`error`})).id,warning:e=>Uu(T({},e,{state:`warning`})).id,info:e=>Uu(T({},e,{state:`info`})).id,action:e=>Uu(T({},e,{state:`action`})).id,promise:(e,t)=>{let{id:n}=Uu(T({},t.loading,{state:`loading`,duration:null,position:t.position})),r=typeof e==`function`?e():e;return r.then(e=>{if(t.action){let r=typeof t.action==`function`?t.action(e):t.action;Wu(n,T({},r,{state:`action`,id:n}))}else{let r=typeof t.success==`function`?t.success(e):t.success;Wu(n,T({},r,{state:`success`,id:n}))}}).catch(e=>{let r=typeof t.error==`function`?t.error(e):t.error;Wu(n,T({},r,{state:`error`,id:n}))}),r},dismiss:zu,clear:e=>Z.update(t=>e?t.filter(t=>t.position!==e):[])},Ku={light:`#1a1a1a`,dark:`#f2f2f2`};function qu(e){let[t,n]=(0,w.useState)(()=>e===`light`||e===`dark`?e:typeof window>`u`?`light`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`);return(0,w.useEffect)(()=>{if(e===`light`||e===`dark`){n(e);return}let t=window.matchMedia(`(prefers-color-scheme: dark)`),r=e=>n(e.matches?`dark`:`light`);return n(t.matches?`dark`:`light`),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),t}function Ju({children:e,position:t=`top-right`,offset:n,options:r,theme:i}){let a=qu(i),[o,s]=(0,w.useState)(Z.toasts),[c,l]=(0,w.useState)(),u=(0,w.useRef)(!1),d=(0,w.useRef)(new Map),f=(0,w.useRef)(o),p=(0,w.useRef)(void 0),m=(0,w.useRef)(new Map);(0,w.useEffect)(()=>{Z.position=t,Z.options=r},[t,r]);let h=(0,w.useCallback)(()=>{for(let e of d.current.values())clearTimeout(e);d.current.clear()},[]),g=(0,w.useCallback)(e=>{if(!u.current)for(let t of e){if(t.exiting)continue;let e=Ru(t);if(d.current.has(e)||t.duration===null)continue;let n=t.duration??bu;n<=0||d.current.set(e,window.setTimeout(()=>zu(t.id),n))}},[]);(0,w.useEffect)(()=>{let e=e=>s(e);return Z.listeners.add(e),()=>{Z.listeners.delete(e),h()}},[h]),(0,w.useEffect)(()=>{f.current=o;let e=new Set(o.map(Ru)),t=new Set(o.map(e=>e.id));for(let[t,n]of d.current)e.has(t)||(clearTimeout(n),d.current.delete(t));for(let e of m.current.keys())t.has(e)||m.current.delete(e);g(o)},[o,g]);let _=(0,w.useRef)(null),v=(0,w.useRef)(null);_.current=(0,w.useCallback)(()=>{u.current||(u.current=!0,h())},[h]),v.current=(0,w.useCallback)(()=>{u.current&&(u.current=!1,g(f.current))},[g]);let y=(0,w.useMemo)(()=>{for(let e=o.length-1;e>=0;e--)if(!o[e].exiting)return o[e].id},[o]);(0,w.useEffect)(()=>{p.current=y,l(y)},[y]);let b=(0,w.useCallback)(e=>{let t=m.current.get(e);return t||(t={enter:t=>{l(t=>t===e?t:e),_.current==null||_.current.call(_,t)},leave:e=>{l(e=>e===p.current?e:p.current),v.current==null||v.current.call(v,e)},dismiss:()=>zu(e)},m.current.set(e,t),t)},[]),x=(0,w.useCallback)(e=>{if(n===void 0)return;let t=typeof n==`object`?n:{top:n,right:n,bottom:n,left:n},r={},i=e=>typeof e==`number`?`${e}px`:e;return e.startsWith(`top`)&&t.top&&(r.top=i(t.top)),e.startsWith(`bottom`)&&t.bottom&&(r.bottom=i(t.bottom)),e.endsWith(`left`)&&t.left&&(r.left=i(t.left)),e.endsWith(`right`)&&t.right&&(r.right=i(t.right)),r},[n]),S=(0,w.useMemo)(()=>{let e=new Map;for(let n of o){let r=n.position??t,i=e.get(r);i?i.push(n):e.set(r,[n])}return e},[o,t]);return(0,X.jsxs)(X.Fragment,{children:[e,Array.from(S,([e,t])=>{let n=Pu(e),r=Fu(e);return(0,X.jsx)(`section`,{"data-sileo-viewport":!0,"data-position":e,"data-theme":i?a:void 0,"aria-live":`polite`,style:x(e),children:t.map(e=>{let t=b(e.id);return(0,X.jsx)(Nu,{id:e.id,state:e.state,title:e.title,description:e.description,position:n,expand:r,icon:e.icon,fill:e.fill??(i?Ku[a]:void 0),styles:e.styles,button:e.button,roundness:e.roundness,exiting:e.exiting,autoExpandDelayMs:e.autoExpandDelayMs,autoCollapseDelayMs:e.autoCollapseDelayMs,refreshKey:e.instanceId,canExpand:c===void 0||c===e.id,onMouseEnter:t.enter,onMouseLeave:t.leave,onDismiss:t.dismiss},e.id)})},e)})]})}function Yu(){return(0,w.useEffect)(()=>{let e=window.visualViewport;if(!e)return;let t=()=>{if(Math.abs(e.scale-1)>.01)return;document.documentElement.style.setProperty(`--mobile-viewport-height`,`${e.height}px`),document.documentElement.style.setProperty(`--mobile-viewport-top`,`${e.offsetTop}px`);let t=document.activeElement,n=t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable;document.documentElement.dataset.mobileKeyboard=String(n&&e.height<document.documentElement.clientHeight-100)};return t(),e.addEventListener(`resize`,t),e.addEventListener(`scroll`,t),document.addEventListener(`focusin`,t),document.addEventListener(`focusout`,t),()=>{e.removeEventListener(`resize`,t),e.removeEventListener(`scroll`,t),document.removeEventListener(`focusin`,t),document.removeEventListener(`focusout`,t),delete document.documentElement.dataset.mobileKeyboard}},[]),null}function Xu(){return(0,X.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 117.9 128`,"aria-hidden":`true`,children:[(0,X.jsx)(`path`,{fill:`currentColor`,d:`m113.9 42.6c-3.7-11.3-10.8-21.2-20.1-28.6-7.4-5.7-16.1-10-25.4-11.5-6.5-0.9-9.4-1.1-15.9-0.3-7.4 0.9-14.3 3.4-20.7 7-15.4 9.1-27.6 26.2-29.8 44.5-0.3 2.9-0.4 5.8-0.2 8.7 0.7 15.5 9.7 33.2 27.2 44.1l3.9 2.2c1.5 1.3 2.9 1.8 5.1 1.3 3.5-0.9 5.1-6.1 0.1-8.6-7.3-3.5-13.7-8.7-18.1-14.6-5-7-9-15.8-9.3-26.9-0.2-10 3.5-21.4 11.6-31.3 4.5-5.2 10.5-9.8 16.4-12.7 10.1-4.9 20.5-6.6 31.2-3.8 13.2 3.5 25.6 13.1 32.3 26.5 2.3 4.9 4.2 10.7 4.9 17.4 0.9 9.9-1.4 19.2-6.9 27.4-4.3 6.5-9.2 11-16.1 15.8l-4.1 2.1c-4.4 2.4-3.2 9.4 2.8 9 1.2 0 2.5-0.8 3.6-1.4 3.9-2 7.5-4.3 10.8-7 9.4-8 17.6-20.3 19.1-36.8 0.6-7.4-0.4-15.6-2.4-22.5z`}),(0,X.jsx)(`path`,{fill:`#2266ea`,d:`m88.1 42.8c-3.6 0.3-7.4 2.9-9 7.3-5.5 0.8-14.1 3.6-20.3 12-4.3-6.3-11.6-10.7-19.7-12-1.1-3.8-5-7.5-10.2-7.2-4.1 0.4-8.7 3.8-8.7 9.7 0.2 6 5.7 10.3 11.1 9.3 2.8-0.3 5.2-2 6.6-4.3 6.7 1 14.9 4.7 17.3 14.1v36.7c-3.2 1.5-5.5 4.7-5.5 8.4 0 4.8 3.7 9.3 9.4 9.3s9.5-4.5 9.4-9.1c0.1-3.6-2.3-7.3-5.8-8.7v-36.4c1-5.6 5.9-10.9 13.3-13.3l3.9-1c1.8 2.9 4.9 4.6 8.6 4.5 4.6-0.2 9.3-3.6 9.3-9.5 0-5.6-4.9-10-9.7-9.8z`})]})}function Zu({text:e,duration:t=1.35,repeatDelay:n=.25,spread:r=1.6,className:i,color:a,shimmerColor:o}){let s=(0,w.useMemo)(()=>Array.from(e),[e]),c=t+n,l=s.length>1?t*r/s.length:0,u={color:a??`var(--muted-foreground)`,"--shimmer-text-base":a??`var(--muted-foreground)`,"--shimmer-text-highlight":o??`var(--foreground)`};return(0,X.jsx)(`span`,{className:_(`shimmer-text inline-block whitespace-pre`,i),style:u,children:s.map((e,t)=>(0,X.jsx)(`span`,{className:`inline-block whitespace-pre`,style:{animationName:`opentig-shimmer-text`,animationDuration:`${c}s`,animationTimingFunction:`ease-in-out`,animationDelay:`${t*l}s`,animationIterationCount:`infinite`,animationFillMode:`both`},children:e},`${e}-${t}`))})}function Qu({heading:e,detail:t,busy:n=!0}){return(0,X.jsxs)(`div`,{className:`splash`,children:[(0,X.jsx)(Xu,{}),(0,X.jsxs)(`div`,{className:`splash-copy`,children:[(0,X.jsx)(`strong`,{children:e}),(0,X.jsx)(`span`,{role:`status`,"aria-live":`polite`,children:t?n?(0,X.jsx)(Zu,{text:t}):t:``})]}),n?(0,X.jsx)(`div`,{className:`splash-mark`,"aria-hidden":`true`}):null]})}var $u=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,ed=v,td=(e,t)=>n=>{if(t?.variants==null)return ed(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=$u(t)||$u(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return ed(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},nd=td(`group/button inline-flex cursor-pointer shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-semibold whitespace-nowrap transition-[background-color,border-color,color,box-shadow,opacity,transform] duration-150 outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/25 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-45 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-sm shadow-primary/15 hover:bg-primary/90 hover:shadow-md hover:shadow-primary/20`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:bg-transparent dark:hover:bg-input/30`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 gap-1.5 px-3 has-data-[icon=inline-end]:pr-2.5 has-data-[icon=inline-start]:pl-2.5`,xs:`h-6 gap-1 px-2.5 text-xs has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1 px-3 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,lg:`h-10 gap-1.5 px-4 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3`,icon:`size-9`,"icon-xs":`size-6 [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function rd({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,X.jsx)(p,{"data-slot":`button`,"data-size":n,className:_(nd({variant:t,size:n,className:e})),...r})}var id=y(`outline`,`copy`,`Copy`,[[`path`,{d:`M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666`,key:`svg-0`}],[`path`,{d:`M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1`,key:`svg-1`}]]),ad=new Set([`https:`,`http:`,`mailto:`]);function od(e){let t=e.startsWith(`//`)?`https:${e}`:e,n;try{n=new URL(t)}catch{return null}return ad.has(n.protocol)?n.toString():null}var sd=null;async function cd(){if(!navigator.clipboard?.readText)throw Error(`Text clipboard access is unavailable.`);return navigator.clipboard.readText()}async function ld(e){if(!navigator.clipboard?.writeText)throw Error(`Text clipboard access is unavailable.`);await navigator.clipboard.writeText(e),sd=null}async function ud(e,t){if(!navigator.clipboard?.writeText)throw Error(`Text clipboard access is unavailable.`);await navigator.clipboard.writeText(e.join(`\r
|
|
47
|
-
`)),sd=t?{paths:[...e],transferId:t}:null}function dd(e){return!sd||!pd(sd.paths,e)?(sd=null,null):sd.transferId}function fd(e){let t=od(e);if(!t)throw Error(`Only web or mail links can be opened.`);window.open(t,`_blank`,`noopener,noreferrer`)}function pd(e,t){return e.length===t.length&&e.every((e,n)=>e===t[n])}var md=600;function hd({delay:e=md,...t}){return(0,X.jsx)(o,{"data-slot":`tooltip-provider`,delay:e,...t})}function gd({...e}){return(0,X.jsx)(a,{"data-slot":`tooltip`,...e})}function _d({...e}){return(0,X.jsx)(c,{"data-slot":`tooltip-trigger`,...e})}function vd({className:e,side:t=`top`,sideOffset:n=4,align:r=`center`,alignOffset:i=0,anchor:a,children:o,...c}){return(0,X.jsx)(l,{children:(0,X.jsx)(u,{align:r,alignOffset:i,anchor:a,side:t,sideOffset:n,className:`isolate z-50 data-[anchor-hidden]:invisible`,children:(0,X.jsxs)(d,{"data-slot":`tooltip-content`,className:_(`z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-xl border border-border bg-popover px-3 py-1.5 text-xs text-popover-foreground shadow-md has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-lg data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...c,children:[o,(0,X.jsx)(s,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-popover fill-popover data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:translate-x-[1.5px] data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:translate-x-[-1.5px] data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:translate-x-[-1.5px] data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:translate-x-[1.5px] data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`})]})})})}function yd({value:e,label:t=`Copy`,onCopied:n,onError:r}){let[i,a]=(0,w.useState)(!1);(0,w.useEffect)(()=>{if(!i)return;let e=window.setTimeout(()=>a(!1),2e3);return()=>window.clearTimeout(e)},[i]);let o=async()=>{try{await ld(e),a(!0),n?.()}catch{a(!1),r?.()}};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(gd,{children:[(0,X.jsxs)(_d,{render:(0,X.jsx)(`button`,{type:`button`,className:`copy-button`,"aria-label":i?`Copied`:t,"data-copy-state":i?`copied`:void 0,onClick:()=>void o()}),children:[(0,X.jsx)(id,{className:`copy-button-icon`,"aria-hidden":`true`}),(0,X.jsx)(`span`,{className:`copy-button-check`,"aria-hidden":`true`,children:`✓`})]}),(0,X.jsx)(vd,{children:i?`Copied`:t})]}),(0,X.jsx)(`span`,{className:`sr-only`,role:`status`,"aria-live":`polite`,children:i?`Copied`:``})]})}var bd=document.documentElement.dataset.opentigProfile===`dev`,xd=bd?`OpenTig Dev`:`OpenTig`;function Sd(){let e=bd?`npm run pair:web:dev`:`opentig pair`,[t,n]=(0,w.useState)(!1);return(0,X.jsxs)(`div`,{className:`mt-3`,children:[(0,X.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,X.jsx)(`code`,{className:`min-w-0 select-text break-words text-sm`,children:e}),(0,X.jsx)(yd,{value:e,label:`Copy command`,onCopied:()=>n(!1),onError:()=>n(!0)})]}),t&&(0,X.jsx)(`p`,{className:`mt-2 text-sm text-destructive`,role:`alert`,children:`Could not copy. Select and copy the command manually.`})]})}var Cd=36e5,wd=6e4,Td=1e4;function Ed({request:e=fetch,page:t=document,lifecycle:n=window}={}){let r=!1,i=null,a,o,s=()=>{r||(a=setTimeout(()=>{c()},wd))},c=async()=>{if(r||i||t.visibilityState!==`visible`)return;clearTimeout(a);let n=new AbortController;i=n,o=setTimeout(()=>n.abort(),Td);try{let t=await e(`/api/auth/renew`,{method:`POST`,credentials:`include`,cache:`no-store`,signal:n.signal});!t.ok&&t.status!==401&&t.status!==403&&s()}catch{s()}finally{clearTimeout(o),i=null}},l=()=>{c()},u=setInterval(l,Cd);return t.addEventListener(`visibilitychange`,l),n.addEventListener(`focus`,l),n.addEventListener(`online`,l),l(),()=>{r=!0,clearInterval(u),clearTimeout(a),clearTimeout(o),i?.abort(),t.removeEventListener(`visibilitychange`,l),n.removeEventListener(`focus`,l),n.removeEventListener(`online`,l)}}var Q={bootstrap:`app:bootstrap`,capabilities:`app:capabilities`,preferences:`app:preferences`,filesTreeStateUpdate:`app:files-tree-state`,openFilesStateUpdate:`app:open-files-state`,projectCreate:`projects:create`,projectRename:`projects:rename`,projectRemove:`projects:remove`,projectAssign:`projects:assign`,projectMove:`projects:move`,projectMoveRepository:`projects:move-repository`,repositoryPreparePath:`repository:prepare-path`,repositoryCompleteSetup:`repository:complete-setup`,repositoryOpenPath:`repository:open-path`,repositoryBrowseDirectories:`repository:browse-directories`,repositoryOpenRecent:`repository:open-recent`,repositoryRelocateRecent:`repository:relocate-recent`,repositoryForget:`repository:forget`,repositoryStatus:`repository:status`,repositoryFiles:`repository:files`,repositoryDirectoryEntries:`repository:directory-entries`,repositoryReadFile:`repository:read-file`,repositoryReadImage:`repository:read-image`,repositoryGetFavicon:`repository:favicon`,repositoryWriteFile:`repository:write-file`,repositoryAbsolutePath:`repository:absolute-path`,repositoryCopyEntries:`repository:copy-entries`,repositoryCutEntries:`repository:cut-entries`,repositoryPasteEntries:`repository:paste-entries`,repositoryMoveEntry:`repository:move-entry`,repositoryDeleteEntry:`repository:delete-entry`,repositoryMoveEntries:`repository:move-entries`,repositoryDeleteEntries:`repository:delete-entries`,repositoryRenameEntry:`repository:rename-entry`,repositoryCreateEntry:`repository:create-entry`,repositoryFileHistoryState:`repository:file-history-state`,repositoryUndoFileOperation:`repository:undo-file-operation`,repositoryRedoFileOperation:`repository:redo-file-operation`,repositorySearch:`repository:search`,repositoryReplaceSearch:`repository:replace-search`,diffGet:`diff:get`,diffCommit:`diff:commit`,diffCommitFile:`diff:commit-file`,indexStage:`index:stage`,indexUnstage:`index:unstage`,indexDiscard:`index:discard`,indexStageAll:`index:stage-all`,indexUnstageAll:`index:unstage-all`,indexPrepareCommitGroup:`index:prepare-commit-group`,indexUpdateConflict:`index:update-conflict`,indexResolveConflict:`index:resolve-conflict`,commitCreate:`commit:create`,commitUndoLatest:`commit:undo-latest`,commitsList:`commits:list`,commitsFiles:`commits:files`,commitAuthorship:`commits:authorship`,commitSetAuthorship:`commits:set-authorship`,branchesList:`refs:branches`,branchSwitch:`refs:switch`,worktreesList:`refs:worktrees`,worktreeSelect:`refs:select-worktree`,refsPull:`refs:pull`,refsPush:`refs:push`,refsPushContext:`refs:push-context`,refsFetch:`refs:fetch`,localRefsSnapshot:`refs:local-snapshot`,branchDetails:`refs:branch-details`,worktreeDetails:`refs:worktree-details`,branchDelete:`refs:delete-branch`,worktreeRemove:`refs:remove-worktree`,remoteBranchDetails:`refs:remote-branch-details`,trackingBranchCreate:`refs:create-tracking-branch`,remoteBranchDelete:`refs:delete-remote-branch`,branchesFetch:`refs:fetch-branches`,aiRepositoryInstructions:`ai:repository-instructions`,aiSetRepositoryInstructions:`ai:set-repository-instructions`,aiStatuses:`ai:statuses`,aiGenerateCommitMessage:`ai:generate-commit-message`,aiCancelGeneration:`ai:cancel-generation`,aiLog:`ai:log`,aiClearLog:`ai:clear-log`,diagnosticsList:`diagnostics:list`,diagnosticsClear:`diagnostics:clear`,diagnosticsRecord:`diagnostics:record`,githubSetSuggestedAccount:`github:set-suggested-account`,githubAccountsStatus:`github:accounts-status`,githubSetDefaultAccount:`github:set-default-account`,githubRepositoryAccount:`github:repository-account`,githubSetRepositoryAccount:`github:set-repository-account`,githubStatus:`github:status`,githubRepositoryInfo:`github:repository-info`,githubPrForBranch:`github:pr-for-branch`,githubPrList:`github:pr-list`,githubPrView:`github:pr-view`,githubPrStack:`github:pr-stack`,githubPrDiff:`github:pr-diff`,githubPrCommitDiff:`github:pr-commit-diff`,githubPrCreate:`github:pr-create`,githubPrDraft:`github:pr-draft`,githubPrDraftCancel:`github:pr-draft-cancel`},Dd=6e5,Od={protocolVersion:4}.protocolVersion,kd=1,Ad=class extends Error{},jd=class extends Ad{},Md=class extends Ad{},Nd=class extends Ad{},Pd=class extends Ad{},Fd=class{url;createSocket;requestTimeoutMs;heartbeatMs;reconnectBaseMs;reconnectMaxMs;offlineAfterAttempts;random;pending=new Map;connectionWaiters=new Set;stateListeners=new Set;eventListeners=new Set;reconnectListeners=new Set;socket=null;state=`connecting`;requestSequence=0;socketGeneration=0;reconnectAttempts=0;reconnectTimer=null;heartbeatTimer=null;awaitingPong=!1;started=!1;stopped=!1;connectedBefore=!1;constructor(e={}){this.url=e.url??Ld(),this.createSocket=e.createSocket??(e=>new WebSocket(e)),this.requestTimeoutMs=e.requestTimeoutMs??3e4,this.heartbeatMs=e.heartbeatMs??2e4,this.reconnectBaseMs=e.reconnectBaseMs??250,this.reconnectMaxMs=e.reconnectMaxMs??5e3,this.offlineAfterAttempts=e.offlineAfterAttempts??5,this.random=e.random??Math.random}getState=()=>this.state;subscribeState=e=>(this.stateListeners.add(e),this.start(),()=>this.stateListeners.delete(e));onEvent(e){return this.eventListeners.add(e),this.start(),()=>this.eventListeners.delete(e)}onReconnect(e){return this.reconnectListeners.add(e),()=>this.reconnectListeners.delete(e)}async request(e,t,n={}){let r=n.timeoutMs??this.requestTimeoutMs,i=Date.now();if(this.start(),await this.waitForConnection(r,n.signal),n.signal?.aborted)throw Rd();let a=this.socket;if(!a||a.readyState!==kd)throw new jd(`OpenTig server disconnected.`);let o=`${Date.now().toString(36)}-${(++this.requestSequence).toString(36)}`,s=Math.max(1,r-(Date.now()-i));return new Promise((r,i)=>{let c={resolve:r,reject:i,timer:setTimeout(()=>{this.finishPending(o),i(new Pd(`Server request timed out: ${String(e)}`))},s),...n.signal?{signal:n.signal}:{}};n.signal&&(c.abort=()=>{this.finishPending(o),i(Rd())},n.signal.addEventListener(`abort`,c.abort,{once:!0})),this.pending.set(o,c);try{let n=[...t];for(;n.length>0&&n.at(-1)===void 0;)n.pop();a.send(JSON.stringify({type:`request`,id:o,command:e,args:n}))}catch{this.finishPending(o),i(new jd(`Could not send request to the OpenTig server.`))}})}markIncompatible(){this.stopped=!0,this.clearReconnect(),this.setState(`incompatible-version`),this.rejectConnectionWaiters(new Nd(`OpenTig server protocol is incompatible.`)),this.rejectPending(new Nd(`OpenTig server protocol is incompatible.`)),this.socket?.close(1e3,`Incompatible protocol`)}close(){this.stopped=!0,this.clearReconnect(),this.clearHeartbeat(),this.rejectConnectionWaiters(new jd(`OpenTig server connection closed.`)),this.rejectPending(new jd(`OpenTig server connection closed.`)),this.socket?.close(1e3,`Client closing`),this.socket=null}start(){this.started||this.stopped||(this.started=!0,this.connect())}connect(){if(this.stopped)return;this.clearReconnect();let e=++this.socketGeneration,t;try{t=this.createSocket(this.url)}catch{this.disconnected(e,0);return}this.socket=t,t.onopen=()=>{if(e!==this.socketGeneration||this.stopped)return;let t=this.connectedBefore;if(this.connectedBefore=!0,this.reconnectAttempts=0,this.setState(`connected`),this.resolveConnectionWaiters(),this.startHeartbeat(),t)for(let e of this.reconnectListeners)Promise.resolve(e()).catch(()=>void 0)},t.onmessage=t=>this.message(e,t.data),t.onerror=()=>void 0,t.onclose=t=>this.disconnected(e,t.code)}message(e,t){if(e!==this.socketGeneration||typeof t!=`string`)return;let n;try{n=JSON.parse(t)}catch{return}if(n.type===`pong`){this.awaitingPong=!1;return}if(n.type===`event`){for(let e of this.eventListeners)e(n.event);return}if(n.type!==`result`)return;let r=this.pending.get(n.id);r&&(this.finishPending(n.id),Id(r,n.result))}disconnected(e,t){if(e!==this.socketGeneration)return;this.socket=null,this.clearHeartbeat();let n=t===1008?new Md(`Authentication required.`):new jd(`OpenTig server disconnected before the request completed.`);if(this.rejectPending(n),this.stopped)return;if(t===1008){this.stopped=!0,this.setState(`auth-required`),this.rejectConnectionWaiters(n);return}this.reconnectAttempts+=1,this.setState(this.reconnectAttempts>=this.offlineAfterAttempts?`offline`:`reconnecting`);let r=Math.min(this.reconnectMaxMs,this.reconnectBaseMs*2**(this.reconnectAttempts-1)),i=Math.max(0,Math.round(r*(.5+this.random())));this.reconnectTimer=setTimeout(()=>this.connect(),i)}waitForConnection(e,t){return this.state===`connected`&&this.socket?.readyState===kd?Promise.resolve():this.state===`auth-required`?Promise.reject(new Md(`Authentication required.`)):this.state===`incompatible-version`?Promise.reject(new Nd(`OpenTig server protocol is incompatible.`)):this.stopped?Promise.reject(new jd(`OpenTig server connection is closed.`)):t?.aborted?Promise.reject(Rd()):new Promise((n,r)=>{let i={resolve:n,reject:r,timer:setTimeout(()=>{this.removeConnectionWaiter(i),r(new Pd(`Timed out waiting for the OpenTig server.`))},e),...t?{signal:t}:{}};t&&(i.abort=()=>{this.removeConnectionWaiter(i),r(Rd())},t.addEventListener(`abort`,i.abort,{once:!0})),this.connectionWaiters.add(i)})}resolveConnectionWaiters(){for(let e of[...this.connectionWaiters])this.removeConnectionWaiter(e),e.resolve()}rejectConnectionWaiters(e){for(let t of[...this.connectionWaiters])this.removeConnectionWaiter(t),t.reject(e)}removeConnectionWaiter(e){clearTimeout(e.timer),e.signal&&e.abort&&e.signal.removeEventListener(`abort`,e.abort),this.connectionWaiters.delete(e)}finishPending(e){let t=this.pending.get(e);t&&(clearTimeout(t.timer),t.signal&&t.abort&&t.signal.removeEventListener(`abort`,t.abort),this.pending.delete(e))}rejectPending(e){for(let[t,n]of[...this.pending])this.finishPending(t),n.reject(e)}startHeartbeat(){this.clearHeartbeat(),this.heartbeatTimer=setInterval(()=>{let e=this.socket;e&&e.readyState===kd&&(this.awaitingPong?e.close(4e3,`Heartbeat timeout`):(this.awaitingPong=!0,e.send(JSON.stringify({type:`ping`}))))},this.heartbeatMs)}clearHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=null,this.awaitingPong=!1}clearReconnect(){this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=null}setState(e){if(this.state!==e){this.state=e;for(let e of this.stateListeners)e()}}};function Id(e,t){if(t.ok){e.resolve(t.value);return}let n=Error(t.error.message);n.detail=t.error,e.reject(n)}function Ld(){let e=new URL(`/ws`,window.location.href);return e.protocol=e.protocol===`https:`?`wss:`:`ws:`,e.href}function Rd(){return new DOMException(`The request was cancelled.`,`AbortError`)}function zd(e={}){let t=e.transport??new Fd,n=e.httpOrigin??globalThis.location?.origin??`http://127.0.0.1`,r=e.fetch??fetch,i=new Set,a=new Set,o=new Set,s=new Set,c=(e,...n)=>t.request(e,n),l={app:{bootstrap:async()=>{let e=await t.request(Q.bootstrap,[]);if(!e.server||e.server.protocolVersion!==Od)throw t.markIncompatible(),Error(`This OpenTig client is incompatible with the server.`);return e},capabilities:()=>c(Q.capabilities),setPreferences:e=>c(Q.preferences,e),setFilesTreeExpandedPaths:(e,t)=>c(Q.filesTreeStateUpdate,e,t),setOpenFilesState:(e,t,n,r)=>c(Q.openFilesStateUpdate,e,t,n,r)},projects:{create:e=>c(Q.projectCreate,e),rename:(e,t)=>c(Q.projectRename,e,t),remove:e=>c(Q.projectRemove,e),assign:(e,t)=>c(Q.projectAssign,e,t),moveProject:(e,t)=>c(Q.projectMove,e,t),moveRepository:(e,t)=>c(Q.projectMoveRepository,e,t)},repository:{preparePath:e=>c(Q.repositoryPreparePath,e),completeSetup:(e,t)=>c(Q.repositoryCompleteSetup,e,t),openPath:e=>c(Q.repositoryOpenPath,e),browseDirectories:e=>e===void 0?c(Q.repositoryBrowseDirectories):c(Q.repositoryBrowseDirectories,e),openRecent:e=>c(Q.repositoryOpenRecent,e),forget:e=>c(Q.repositoryForget,e),relocateRecent:(e,t)=>c(Q.repositoryRelocateRecent,e,t),getStatus:(e,t)=>c(Q.repositoryStatus,e,t),getFiles:e=>c(Q.repositoryFiles,e),getDirectoryEntries:(e,t)=>c(Q.repositoryDirectoryEntries,e,t),readFile:(e,t,n)=>c(Q.repositoryReadFile,e,t,n),readImage:(e,t)=>Hd(r,n,e,t),getFavicon:e=>c(Q.repositoryGetFavicon,e),writeFile:(e,t,n,r)=>c(Q.repositoryWriteFile,e,t,n,r),getAbsolutePath:(e,t)=>c(Q.repositoryAbsolutePath,e,t),copyEntries:(e,t)=>c(Q.repositoryCopyEntries,e,t),cutEntries:(e,t)=>c(Q.repositoryCutEntries,e,t),pasteEntries:(e,t,n,r,i)=>c(Q.repositoryPasteEntries,e,t,n,r,i),moveEntry:(e,t,n)=>c(Q.repositoryMoveEntry,e,t,n),moveEntries:(e,t,n)=>c(Q.repositoryMoveEntries,e,t,n),deleteEntry:(e,t)=>c(Q.repositoryDeleteEntry,e,t),deleteEntries:(e,t)=>c(Q.repositoryDeleteEntries,e,t),renameEntry:(e,t,n)=>c(Q.repositoryRenameEntry,e,t,n),createEntry:(e,t,n,r)=>c(Q.repositoryCreateEntry,e,t,n,r),search:(e,t)=>c(Q.repositorySearch,e,t),replaceSearch:(e,t)=>c(Q.repositoryReplaceSearch,e,t),fileHistoryState:e=>c(Q.repositoryFileHistoryState,e),undoFileOperation:e=>c(Q.repositoryUndoFileOperation,e),redoFileOperation:e=>c(Q.repositoryRedoFileOperation,e)},diff:{get:e=>c(Q.diffGet,e),getCommit:(e,t)=>c(Q.diffCommit,e,t),getCommitFile:(e,t,n,r)=>c(Q.diffCommitFile,e,t,n,r)},index:{stage:(e,t)=>c(Q.indexStage,e,t),unstage:(e,t)=>c(Q.indexUnstage,e,t),discard:(e,t)=>c(Q.indexDiscard,e,t),stageAll:e=>c(Q.indexStageAll,e),unstageAll:e=>c(Q.indexUnstageAll,e),prepareCommitGroup:e=>c(Q.indexPrepareCommitGroup,e),updateConflict:(e,t,n)=>c(Q.indexUpdateConflict,e,t,n),resolveConflict:(e,t,n)=>c(Q.indexResolveConflict,e,t,n)},commits:{authorship:e=>c(Q.commitAuthorship,e),setAuthorship:(e,t)=>c(Q.commitSetAuthorship,e,t),create:(e,t)=>c(Q.commitCreate,e,t),undoLatest:(e,t)=>c(Q.commitUndoLatest,e,t),list:(e,t)=>c(Q.commitsList,e,t),files:(e,t)=>c(Q.commitsFiles,e,t)},refs:{listBranches:e=>c(Q.branchesList,e),switchBranch:(e,t,n)=>c(Q.branchSwitch,e,t,n),listWorktrees:e=>c(Q.worktreesList,e),selectWorktree:(e,t)=>c(Q.worktreeSelect,e,t),pull:e=>c(Q.refsPull,e),pushContext:(e,t)=>c(Q.refsPushContext,e,t),push:(e,t,n)=>c(Q.refsPush,e,t,n),fetch:e=>c(Q.refsFetch,e),localRefsSnapshot:e=>c(Q.localRefsSnapshot,e),branchDetails:e=>c(Q.branchDetails,e),remoteBranchDetails:e=>c(Q.remoteBranchDetails,e),createTrackingBranch:e=>c(Q.trackingBranchCreate,e),deleteRemoteBranch:e=>c(Q.remoteBranchDelete,e),fetchBranches:e=>c(Q.branchesFetch,e),worktreeDetails:e=>c(Q.worktreeDetails,e),deleteBranch:e=>c(Q.branchDelete,e),removeWorktree:e=>c(Q.worktreeRemove,e)},ai:{repositoryInstructions:e=>c(Q.aiRepositoryInstructions,e),setRepositoryInstructions:(e,t)=>c(Q.aiSetRepositoryInstructions,e,t),statuses:e=>c(Q.aiStatuses,e),generateCommitMessage:e=>t.request(Q.aiGenerateCommitMessage,[e],{timeoutMs:Dd}),cancelGeneration:e=>c(Q.aiCancelGeneration,e),log:()=>c(Q.aiLog),clearLog:()=>c(Q.aiClearLog)},github:{setSuggestedAccount:e=>c(Q.githubSetSuggestedAccount,e),setDefaultAccount:e=>c(Q.githubSetDefaultAccount,e),accountsStatus:e=>t.request(Q.githubAccountsStatus,[e],{timeoutMs:9e4}),repositoryAccount:(e,n)=>t.request(Q.githubRepositoryAccount,[e,n],{timeoutMs:6e4}),setRepositoryAccount:(e,t,n)=>n===void 0?c(Q.githubSetRepositoryAccount,e,t):c(Q.githubSetRepositoryAccount,e,t,n),status:e=>c(Q.githubStatus,e),repositoryInfo:e=>c(Q.githubRepositoryInfo,e),findPullRequestForBranch:(e,t)=>c(Q.githubPrForBranch,e,t),listPullRequests:(e,t)=>c(Q.githubPrList,e,t),getPullRequest:(e,t)=>c(Q.githubPrView,e,t),getPullRequestStack:(e,t)=>c(Q.githubPrStack,e,t),getPullRequestDiff:(e,t)=>c(Q.githubPrDiff,e,t),getPullRequestCommitDiff:(e,t)=>c(Q.githubPrCommitDiff,e,t),createPullRequest:e=>c(Q.githubPrCreate,e),generateDraft:e=>t.request(Q.githubPrDraft,[e],{timeoutMs:Dd}),cancelDraft:e=>c(Q.githubPrDraftCancel,e)},diagnostics:{list:()=>c(Q.diagnosticsList),clear:()=>c(Q.diagnosticsClear),record:e=>c(Q.diagnosticsRecord,e)},events:{onAiInstructionsChanged:e=>Bd(a,e),onGitHubAccountsChanged:e=>Bd(o,e),onRepositoryChanged:e=>Bd(i,e),onActiveRepositoryChanged:e=>Bd(s,e)}};return t.onEvent(e=>Vd(e,i,s,o,a)),t.onReconnect(async()=>{let e=await l.app.bootstrap();for(let e of a)e([]);for(let e of o)e();if(e.activeRepository){for(let t of s)t(e.activeRepository);for(let t of i)t(e.activeRepository.id,`unknown`)}}),{api:l,transport:t}}function Bd(e,t){return e.add(t),()=>e.delete(t)}function Vd(e,t,n,r,i){if(e.type===`repository.changed`)for(let n of t)n(e.repositoryId,e.scope);else if(e.type===`repository.active-changed`)for(let t of n)t(e.repository);else if(e.type===`ai.instructions-changed`)for(let t of i)t(e.repositoryIds);else for(let t of r)t(e.repositoryIds,e.inventoryChanged)}async function Hd(e,t,n,r){let i=r.split(`/`).map(encodeURIComponent).join(`/`),a=await e(new URL(`/api/image/${encodeURIComponent(n)}/${i}`,t),{credentials:`include`});if(a.status===413||a.status===415)return a.json();if(!a.ok)throw Error(a.status===401?`Authentication required.`:`Could not load image preview.`);let o=a.headers.get(`content-type`);if(!o?.startsWith(`image/`))throw Error(`Server returned an invalid image preview.`);let s=new Uint8Array(await a.arrayBuffer());return{status:`ready`,path:r,mimeType:o,data:s,size:Number(a.headers.get(`content-length`)??s.byteLength),mtimeMs:Number(a.headers.get(`x-opentig-mtime-ms`)??0)}}var Ud=zd(),$=window.opentigDesktop,Wd=Ud.api,Gd={...Wd,app:{...Wd.app,bootstrap:async()=>{let e=await Wd.app.bootstrap();return await $?.app.preferencesChanged(e.preferences),e},capabilities:async()=>{let e=await Wd.app.capabilities();return{...e,runtimeMode:$?`desktop`:e.runtimeMode,nativePicker:!!$,fileClipboard:!!$,revealInFileManager:!!$}},setPreferences:async e=>{let t=await Wd.app.setPreferences(e);return await $?.app.preferencesChanged(t),t},setZoomFactor:e=>{$?$.app.setZoomFactor(e):document.documentElement.style.zoom=String(Math.max(.8,Math.min(1.3,Number(e)||1)))},setTitleBarTheme:e=>$?.app.setTitleBarTheme(e)??Promise.resolve()},clipboard:{readFilePaths:()=>$?.clipboard.readFilePaths()??Promise.resolve([]),readImagePng:()=>$?.clipboard.readImagePng()??Promise.resolve(null)},repository:{...Wd.repository,select:async e=>$?$.repository.select(e):window.prompt(e??`Repository path on the OpenTig server`)?.trim()||null,selectRelocation:async(e,t)=>$?$.repository.selectRelocation(e,t):window.prompt(`New server path for ${e}`,t)?.trim()||null,revealEntry:async(e,t)=>{if(!$)throw Error(`Reveal in file manager is available only in the desktop app.`);let n=await Wd.repository.getAbsolutePath(e,t);await $.repository.revealEntry(n)}}},Kd={connecting:`Connecting to OpenTig server…`,connected:`Server connected`,reconnecting:`Reconnecting to OpenTig server…`,"auth-required":`Authentication required`,"incompatible-version":`Client and server versions are incompatible`,offline:`OpenTig server is offline`},qd=0;function Jd({children:e}){let t=(0,w.useSyncExternalStore)(Ud.transport.subscribeState,Ud.transport.getState,Ud.transport.getState),[n,r]=(0,w.useState)(!1),i=(0,w.useRef)(null);if((0,w.useEffect)(()=>{if(t===`connected`&&!window.opentigDesktop)return Ed()},[t]),(0,w.useEffect)(()=>{if(n&&t!==`connected`&&t!==`auth-required`){let e={id:i.current??`server-connection:${++qd}`,title:Kd[t],type:t===`connecting`||t===`reconnecting`?`warning`:`error`,position:`bottom-right`,duration:null,autopilot:!1,...t===`incompatible-version`?{button:{title:`Reload`,onClick:()=>window.location.reload()}}:{}};i.current=Gu.show(e)}else i.current&&=(Gu.dismiss(i.current),null)},[n,t]),(0,w.useEffect)(()=>()=>{i.current&&Gu.dismiss(i.current),i.current=null},[]),(0,w.useEffect)(()=>(t===`connected`&&r(!0),document.documentElement.dataset.serverConnection=t,()=>{delete document.documentElement.dataset.serverConnection}),[t]),t===`auth-required`){let e=!!window.opentigDesktop;return(0,X.jsx)(`main`,{className:`access-page flex min-h-dvh items-center justify-center bg-background px-4 py-6 text-foreground`,children:(0,X.jsxs)(`section`,{className:`w-full max-w-md rounded-xl border border-border bg-card p-6 shadow-sm`,role:`status`,children:[(0,X.jsx)(`h1`,{className:`text-lg font-semibold`,children:`Authentication required`}),(0,X.jsx)(`p`,{className:`mt-2 text-sm text-muted-foreground`,children:e?`Restart OpenTig to restore its private desktop session.`:(0,X.jsx)(X.Fragment,{children:`If Web access is paused, enable it in Settings → Web access and reload to resume your saved session. New browsers and expired or revoked sessions need a pairing code from the desktop app or the command below.`})}),!e&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Sd,{}),(0,X.jsx)(rd,{className:`mt-5`,nativeButton:!1,render:(0,X.jsx)(`a`,{href:`/pair`}),children:`Check browser access`})]})]})})}return!n&&(t===`offline`||t===`incompatible-version`)?(0,X.jsx)(Qu,{heading:t===`offline`?`OpenTig server is offline`:`OpenTig cannot continue`,detail:t===`offline`?`See the server log for details, then restart OpenTig.`:`Client and server versions are incompatible.`,busy:!1}):e}function Yd(e,t){return e===t?e:e===`unknown`||t===`unknown`?`unknown`:e===`worktree`&&t===`index`||e===`index`&&t===`worktree`?`index`:`unknown`}function Xd(e,t){return{...e.manual||t.manual?{manual:!0}:{},scope:Yd(e.scope,t.scope),background:e.background&&t.background,view:t.view}}function Zd(e,t){return t!==`diff`&&t!==`conflict`?!1:e===`worktree`||e===`index`||e===`unknown`}function Qd(e){return e===`worktree`||e===`index`||e===`unknown`}function $d(e,t){let n=e===`unknown`;return{status:!0,branches:n||e===`refs`||e===`worktrees`,worktrees:n||e===`worktrees`,files:t===`files`&&(n||e===`worktree`||e===`index`),history:t===`history`&&(n||e===`refs`)}}var ef=new h({defaultOptions:{queries:{networkMode:`always`,retry:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,staleTime:0},mutations:{networkMode:`always`,retry:!1}}}),tf={commitAuthorship:e=>[`repository`,e,`commit-authorship`],githubAccounts:[`github`,`accounts`],githubCliStatus:[`github`,`cli-status`],githubAccount:e=>[`repository`,e,`github-account`],aiRepositoryInstructions:e=>[`repository`,e,`ai-instructions`],aiStatuses:e=>[`ai`,`statuses`,e],repository:e=>[`repository`,e],status:e=>[`repository`,e,`status`],branches:e=>[`repository`,e,`branches`],worktrees:e=>[`repository`,e,`worktrees`],files:e=>[`repository`,e,`files`],fileHistory:e=>[`repository`,e,`file-history`],history:e=>[`repository`,e,`history`],githubInfo:e=>[`repository`,e,`github-info`],pulls:(e,t)=>[`repository`,e,`pulls`,...t],pullRequest:(e,t)=>[`repository`,e,`pull-request`,t],pullRequestStack:(e,t)=>[`repository`,e,`pull-request-stack`,t],pullRequestDiff:(e,t)=>[`repository`,e,`pull-request-diff`,t],pullRequestCommitDiff:(e,t)=>[`repository`,e,`pull-request-commit-diff`,t],search:(e,t)=>[`repository`,e,`search`,t],localRefs:e=>[`repository`,e,`local-refs`],branchDetails:(e,t)=>[`repository`,e,`branch-details`,t],remoteBranchDetails:(e,t)=>[`repository`,e,`remote-branch-details`,t],branchPullRequest:(e,t)=>[`repository`,e,`branch-pull-request`,t],worktreeDetails:(e,t)=>[`repository`,e,`worktree-details`,t]};function nf(e,t){let n=$d(e,t);return[`status`,`branches`,`worktrees`,`files`,`history`].filter(e=>n[e])}async function rf(e,t,n=!1){let r=new Set([`push-context`,`github-account`,`pulls`,`pull-request`,`pull-request-stack`,`pull-request-diff`,`pull-request-commit-diff`,`branch-pull-request`]),i=e=>(!t||n&&e.queryKey[1]===`accounts`)&&e.queryKey[0]===`github`||e.queryKey[0]===`repository`&&(!t||t.includes(String(e.queryKey[1])))&&r.has(String(e.queryKey[2]));await e.cancelQueries({predicate:i}),await e.resetQueries({predicate:i})}var af=`modulepreload`,of=function(e){return`/`+e},sf={},cf=function(e){return e.pathname.endsWith(`.css`)},lf=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=of(t,n);let r=s(t);if(r.href in sf)return;sf[r.href]=!0;let i=cf(r);if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:af,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),i)return new Promise((e,t)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${r}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},uf=(0,w.lazy)(()=>lf(()=>import(`./App-DEIZhWJG.js`).then(e=>e.t),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),df=(0,w.lazy)(()=>lf(()=>import(`./PairingPage-BEUj3t0V.js`),__vite__mapDeps([14,1,2,11,4])));function ff(){let e=window.location.pathname===`/pair`?(0,X.jsx)(df,{}):(0,X.jsx)(Jd,{children:(0,X.jsx)(uf,{})});return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Yu,{}),(0,X.jsx)(Ju,{theme:`light`,position:`bottom-right`}),(0,X.jsx)(g,{client:ef,children:(0,X.jsx)(w.Suspense,{fallback:null,children:e})})]})}var pf=document.getElementById(`root`);if(!pf)throw Error(`Root container not found.`);(0,te.createRoot)(pf).render((0,X.jsx)(w.StrictMode,{children:(0,X.jsx)(ff,{})}));export{Gu as A,ud as C,Qu as D,td as E,Zu as O,ld as S,rd as T,hd as _,Xd as a,fd as b,Zd as c,Md as d,Sd as f,vd as g,gd as h,rf as i,S as j,Xu as k,Gd as l,bd as m,tf as n,$d as o,xd as p,nf as r,Qd as s,lf as t,Ud as u,_d as v,id as w,cd as x,dd as y};
|