unleash-server 4.22.0-beta.2 → 4.22.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/addons/feature-event-formatter-md.d.ts +12 -3
- package/dist/lib/addons/feature-event-formatter-md.js +135 -31
- package/dist/lib/addons/feature-event-formatter-md.js.map +1 -1
- package/dist/lib/addons/feature-event-formatter-md.test.d.ts +1 -0
- package/dist/lib/addons/feature-event-formatter-md.test.js +483 -0
- package/dist/lib/addons/feature-event-formatter-md.test.js.map +1 -0
- package/dist/lib/app.js +1 -1
- package/dist/lib/app.js.map +1 -1
- package/dist/lib/features/export-import-toggles/export-import-permissions.e2e.test.js +1 -1
- package/dist/lib/features/export-import-toggles/export-import-permissions.e2e.test.js.map +1 -1
- package/dist/lib/openapi/index.d.ts +46 -6
- package/dist/lib/openapi/spec/bulk-metrics-schema.d.ts +23 -3
- package/dist/lib/openapi/spec/bulk-registration-schema.d.ts +23 -3
- package/dist/lib/openapi/spec/bulk-registration-schema.js +15 -3
- package/dist/lib/openapi/spec/bulk-registration-schema.js.map +1 -1
- package/dist/lib/routes/admin-api/maintenance.d.ts +0 -1
- package/dist/lib/routes/admin-api/maintenance.js +0 -8
- package/dist/lib/routes/admin-api/maintenance.js.map +1 -1
- package/dist/lib/routes/admin-api/project/variants.js +29 -0
- package/dist/lib/routes/admin-api/project/variants.js.map +1 -1
- package/dist/lib/services/access-service.d.ts +2 -2
- package/dist/lib/services/access-service.js.map +1 -1
- package/dist/lib/types/experimental.d.ts +1 -2
- package/dist/lib/types/experimental.js +1 -2
- package/dist/lib/types/experimental.js.map +1 -1
- package/dist/migrations/20201216140726-add-last-seen-to-features.js +1 -0
- package/dist/migrations/20201216140726-add-last-seen-to-features.js.map +1 -1
- package/dist/migrations/20210105083014-add-tag-and-tag-types.js +1 -0
- package/dist/migrations/20210105083014-add-tag-and-tag-types.js.map +1 -1
- package/dist/migrations/20210119084617-add-addon-table.js +1 -0
- package/dist/migrations/20210119084617-add-addon-table.js.map +1 -1
- package/dist/migrations/20210212114759-add-session-table.js +1 -0
- package/dist/migrations/20210212114759-add-session-table.js.map +1 -1
- package/dist/migrations/20210217195834-rbac-tables.js +1 -0
- package/dist/migrations/20210217195834-rbac-tables.js.map +1 -1
- package/dist/migrations/20210409120136-create-reset-token-table.js +1 -0
- package/dist/migrations/20210409120136-create-reset-token-table.js.map +1 -1
- package/dist/migrations/20210414141220-fix-misspellings-in-role-descriptions.js +1 -0
- package/dist/migrations/20210414141220-fix-misspellings-in-role-descriptions.js.map +1 -1
- package/dist/migrations/20210423103647-lowercase-all-emails.js +1 -0
- package/dist/migrations/20210423103647-lowercase-all-emails.js.map +1 -1
- package/dist/migrations/20210428103923-onboard-projects-to-rbac.js +1 -0
- package/dist/migrations/20210428103923-onboard-projects-to-rbac.js.map +1 -1
- package/dist/migrations/20210504101429-deprecate-strategies.js +1 -0
- package/dist/migrations/20210504101429-deprecate-strategies.js.map +1 -1
- package/dist/migrations/20210615115226-migrate-strategies-to-feature-strategies.js +1 -0
- package/dist/migrations/20210615115226-migrate-strategies-to-feature-strategies.js.map +1 -1
- package/dist/migrations/20210618091331-project-environments-table.js +1 -0
- package/dist/migrations/20210618091331-project-environments-table.js.map +1 -1
- package/dist/migrations/20210618100913-add-cascade-for-user-feedback.js +1 -0
- package/dist/migrations/20210618100913-add-cascade-for-user-feedback.js.map +1 -1
- package/dist/migrations/20210624114855-drop-strategies-column-from-features.js +1 -0
- package/dist/migrations/20210624114855-drop-strategies-column-from-features.js.map +1 -1
- package/dist/migrations/20210624115109-drop-enabled-column-from-features.js +1 -0
- package/dist/migrations/20210624115109-drop-enabled-column-from-features.js.map +1 -1
- package/dist/migrations/20210625102126-connect-default-project-to-global-environment.js +1 -0
- package/dist/migrations/20210625102126-connect-default-project-to-global-environment.js.map +1 -1
- package/dist/migrations/20210629130734-add-health-rating-to-project.js +1 -0
- package/dist/migrations/20210629130734-add-health-rating-to-project.js.map +1 -1
- package/dist/migrations/20210830113948-connect-projects-to-global-envrionments.js +1 -0
- package/dist/migrations/20210830113948-connect-projects-to-global-envrionments.js.map +1 -1
- package/dist/migrations/20210831072631-add-sort-order-and-type-to-env.js +1 -0
- package/dist/migrations/20210831072631-add-sort-order-and-type-to-env.js.map +1 -1
- package/dist/migrations/20210907124058-add-dbcritic-indices.js +1 -0
- package/dist/migrations/20210907124058-add-dbcritic-indices.js.map +1 -1
- package/dist/migrations/20210907124850-add-dbcritic-primary-keys.js +1 -0
- package/dist/migrations/20210907124850-add-dbcritic-primary-keys.js.map +1 -1
- package/dist/migrations/20210908100701-add-enabled-to-environments.js +1 -0
- package/dist/migrations/20210908100701-add-enabled-to-environments.js.map +1 -1
- package/dist/migrations/20210909085651-add-protected-field-to-environments.js +1 -0
- package/dist/migrations/20210909085651-add-protected-field-to-environments.js.map +1 -1
- package/dist/migrations/20210913103159-api-keys-scoping.js +1 -0
- package/dist/migrations/20210913103159-api-keys-scoping.js.map +1 -1
- package/dist/migrations/20210928082228-connect-default-environment-to-all-existing-projects.js +1 -0
- package/dist/migrations/20210928082228-connect-default-environment-to-all-existing-projects.js.map +1 -1
- package/dist/migrations/20211004104917-client-metrics-env.js +1 -0
- package/dist/migrations/20211004104917-client-metrics-env.js.map +1 -1
- package/dist/migrations/20211109103930-add-splash-entry-for-users.js +1 -0
- package/dist/migrations/20211109103930-add-splash-entry-for-users.js.map +1 -1
- package/dist/migrations/20211126112551-disable-default-environment.js +1 -0
- package/dist/migrations/20211126112551-disable-default-environment.js.map +1 -1
- package/dist/migrations/20211202120808-add-custom-roles.js +1 -0
- package/dist/migrations/20211202120808-add-custom-roles.js.map +1 -1
- package/dist/migrations/20220103134659-add-permissions-to-project-roles.js +1 -0
- package/dist/migrations/20220103134659-add-permissions-to-project-roles.js.map +1 -1
- package/dist/migrations/20220103143843-add-permissions-to-editor-role.js +1 -0
- package/dist/migrations/20220103143843-add-permissions-to-editor-role.js.map +1 -1
- package/dist/migrations/20220111112804-update-permission-descriptions.js +1 -0
- package/dist/migrations/20220111112804-update-permission-descriptions.js.map +1 -1
- package/dist/migrations/20220111115613-move-feature-toggle-permission.js +1 -0
- package/dist/migrations/20220111115613-move-feature-toggle-permission.js.map +1 -1
- package/dist/migrations/20220111120346-roles-unique-name.js +1 -0
- package/dist/migrations/20220111120346-roles-unique-name.js.map +1 -1
- package/dist/migrations/20220111121010-update-project-for-editor-role.js +1 -0
- package/dist/migrations/20220111121010-update-project-for-editor-role.js.map +1 -1
- package/dist/migrations/20220111125620-role-permission-empty-string-for-non-environment-type.js +1 -0
- package/dist/migrations/20220111125620-role-permission-empty-string-for-non-environment-type.js.map +1 -1
- package/dist/migrations/20220224081422-remove-project-column-from-roles.js +1 -0
- package/dist/migrations/20220224081422-remove-project-column-from-roles.js.map +1 -1
- package/dist/migrations/20220408081222-clean-up-duplicate-foreign-key-role-permission.js +1 -0
- package/dist/migrations/20220408081222-clean-up-duplicate-foreign-key-role-permission.js.map +1 -1
- package/dist/migrations/20220711084613-add-projects-and-environments-for-addons.js +1 -0
- package/dist/migrations/20220711084613-add-projects-and-environments-for-addons.js.map +1 -1
- package/dist/migrations/20220808110415-add-projects-foreign-key.js +1 -0
- package/dist/migrations/20220808110415-add-projects-foreign-key.js.map +1 -1
- package/dist/migrations/20221108114358-add-change-request-permissions.js +1 -0
- package/dist/migrations/20221108114358-add-change-request-permissions.js.map +1 -1
- package/dist/migrations/20221125185244-change-request-unique-approvals.js +1 -0
- package/dist/migrations/20221125185244-change-request-unique-approvals.js.map +1 -1
- package/dist/migrations/20221128165141-change-request-min-approvals.js +1 -0
- package/dist/migrations/20221128165141-change-request-min-approvals.js.map +1 -1
- package/dist/migrations/20221205122253-skip-change-request.js +1 -0
- package/dist/migrations/20221205122253-skip-change-request.js.map +1 -1
- package/dist/migrations/20221220160345-user-pat-permissions.js +1 -0
- package/dist/migrations/20221220160345-user-pat-permissions.js.map +1 -1
- package/dist/migrations/20221221144132-service-account-users.js +1 -0
- package/dist/migrations/20221221144132-service-account-users.js.map +1 -1
- package/dist/migrations/20230125065315-project-stats-table.js +1 -0
- package/dist/migrations/20230125065315-project-stats-table.js.map +1 -1
- package/dist/migrations/20230127111638-new-project-stats-field.js +1 -0
- package/dist/migrations/20230127111638-new-project-stats-field.js.map +1 -1
- package/dist/migrations/20230130113337-revert-user-pat-permissions.js +1 -0
- package/dist/migrations/20230130113337-revert-user-pat-permissions.js.map +1 -1
- package/dist/migrations/20230208084046-project-api-token-permissions.js +1 -0
- package/dist/migrations/20230208084046-project-api-token-permissions.js.map +1 -1
- package/dist/migrations/20230208093627-assign-project-api-token-permissions-editor.js +1 -0
- package/dist/migrations/20230208093627-assign-project-api-token-permissions-editor.js.map +1 -1
- package/dist/migrations/20230208093750-assign-project-api-token-permissions-owner.js +1 -0
- package/dist/migrations/20230208093750-assign-project-api-token-permissions-owner.js.map +1 -1
- package/dist/migrations/20230208093942-assign-project-api-token-permissions-member.js +1 -0
- package/dist/migrations/20230208093942-assign-project-api-token-permissions-member.js.map +1 -1
- package/dist/migrations/20230222084211-add-login-events-table.js +1 -0
- package/dist/migrations/20230222084211-add-login-events-table.js.map +1 -1
- package/dist/migrations/20230222154915-create-notiications-table.js +4 -4
- package/dist/migrations/20230224093446-drop-createdBy-from-notifications-table.d.ts +2 -0
- package/dist/migrations/20230224093446-drop-createdBy-from-notifications-table.js +14 -0
- package/dist/migrations/20230224093446-drop-createdBy-from-notifications-table.js.map +1 -0
- package/dist/migrations/20230227115320-rename-login-events-table-to-sign-on-log.d.ts +2 -0
- package/dist/migrations/20230227115320-rename-login-events-table-to-sign-on-log.js +8 -0
- package/dist/migrations/20230227115320-rename-login-events-table-to-sign-on-log.js.map +1 -0
- package/dist/migrations/20230227120500-change-display-name-for-variants-per-env-permission.d.ts +2 -0
- package/dist/migrations/20230227120500-change-display-name-for-variants-per-env-permission.js +15 -0
- package/dist/migrations/20230227120500-change-display-name-for-variants-per-env-permission.js.map +1 -0
- package/dist/migrations/20230227123106-add-setting-for-sign-on-log-retention.d.ts +2 -0
- package/dist/migrations/20230227123106-add-setting-for-sign-on-log-retention.js +8 -0
- package/dist/migrations/20230227123106-add-setting-for-sign-on-log-retention.js.map +1 -0
- package/dist/server-dev.js +0 -1
- package/dist/server-dev.js.map +1 -1
- package/dist/test/e2e/api/admin/maintenance.e2e.test.js +2 -49
- package/dist/test/e2e/api/admin/maintenance.e2e.test.js.map +1 -1
- package/dist/test/e2e/stores/setting-store.e2e.test.js +1 -1
- package/frontend/build/index.html +1 -1
- package/frontend/build/static/{CreateProject-b852657c.js → CreateProject-f7ca75e0.js} +1 -1
- package/frontend/build/static/{Error-29ef2974.js → Error-2a87926a.js} +1 -1
- package/frontend/build/static/{ExpandMore-4b3cbf87.js → ExpandMore-e298a9a3.js} +1 -1
- package/frontend/build/static/{FeatureArchiveDialog-f9d8c71d.js → FeatureArchiveDialog-31430c0e.js} +1 -1
- package/frontend/build/static/{FeatureMetricsChart-86cc2280.js → FeatureMetricsChart-bcb36dbc.js} +1 -1
- package/frontend/build/static/{FeatureViewLazyExport-1366d6bf.js → FeatureViewLazyExport-fe2a9be7.js} +2 -2
- package/frontend/build/static/{LazyAdminExport-d9800386.js → LazyAdminExport-9ff8d442.js} +13 -13
- package/frontend/build/static/{LazyProjectExport-ef4471a8.js → LazyProjectExport-644ec52e.js} +8 -8
- package/frontend/build/static/{NetworkOverview-4b90dc34.js → NetworkOverview-cecb7bdc.js} +1 -1
- package/frontend/build/static/{NetworkTraffic-c9de9d5f.js → NetworkTraffic-953679ab.js} +1 -1
- package/frontend/build/static/{Playground-ee072216.js → Playground-f8d65d33.js} +1 -1
- package/frontend/build/static/{StrategyItemContainer-b65caaa6.js → StrategyItemContainer-b3595995.js} +1 -1
- package/frontend/build/static/{chartjs-adapter-date-fns.esm-5c47f5e0.js → chartjs-adapter-date-fns.esm-ad422152.js} +7 -7
- package/frontend/build/static/{index-bbbae9a8.js → index-19ee2080.js} +1 -1
- package/frontend/build/static/index-1d8518d6.js +392 -0
- package/frontend/build/static/{index-031b8ec3.js → index-c5afb04d.js} +1 -1
- package/frontend/build/static/{unknownify-88f06eea.js → unknownify-21e26f46.js} +1 -1
- package/frontend/build/static/{useProjectRole-d8edb83e.js → useProjectRole-9a28ceaf.js} +1 -1
- package/frontend/package.json +3 -3
- package/package.json +2 -2
- package/frontend/build/static/index-193ec8c2.js +0 -392
package/frontend/build/static/{LazyProjectExport-ef4471a8.js → LazyProjectExport-644ec52e.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{c as G1,j as t,cK as xt,cL as wt,s as d,cl as Tt,ci as Ue,g as Xe,r as p,dS as At,l as t1,d as Q,f as s,S as e2,h as t2,i as n2,k as a2,bV as Et,aY as r2,A as F1,aP as K1,aQ as _1,aR as V1,dT as p0,aG as G,dU as I1,bO as E1,a2 as g1,cc as J1,at as M2,H as s1,dV as Rt,R as be,cR as H2,bA as W2,dW as A1,al as o1,V as S1,ak as l1,C as S,aM as Z1,X as Y1,W as h1,cg as Pt,K as Se,dX as kt,a as w,dY as f1,dZ as Zt,bB as It,d_ as Q1,d$ as X1,e0 as ee,b7 as te,m as B1,e1 as jt,P as N2,dp as U2,e2 as C2,cm as q2,a8 as ve,e3 as S2,bb as Le,dE as Dt,bd as ze,T as D,co as Ot,aL as u0,af as h0,bF as m0,u as d1,N as u1,e4 as $t,F as J,e5 as g0,dm as f0,bs as Bt,ar as L1,L as G2,aT as o2,e6 as Ft,bz as _t,cj as Vt,a4 as C1,e7 as Lt,e8 as zt,e9 as v0,ea as y0,O as b0,eb as Mt,c8 as i2,Q as s2,U as xe,d0 as Ht,ch as Wt,bE as C0,Y as c2,ec as Nt,bC as S0,D as x0,aO as Ut,cd as qt,M as w0,ed as Gt,bK as ne,ah as R1,a9 as m1,ee as T0,ag as A0,ef as E0,ai as Kt,eg as Jt,aS as R0,eh as K2,a1 as Yt,ei as P0,ej as Qt,ek as Xt,el as e4,em as t4,bw as k0,en as Z0,eo as I0,e as we,ep as n4,eq as a4,aI as r4,bi as o4,er as Te,es as j0,et as i4,az as ae,aA as z1,aJ as P1,aB as re,aE as oe,aF as ie,eu as s4,c9 as ye,bM as D0,ev as O0,bh as se,aq as $0,a$ as J2,a_ as Y2,aX as Q2,ew as c4,ex as l4,ac as qe,ey as d4,ez as p4,eA as u4,da as l2,bo as h4,c7 as m4,di as Ge,eB as g4,cq as X2,eC as e3,bR as d2,aK as $1,aN as t3,aW as n3,ay as N1,au as B0,eD as f4,ad as b3,eE as v4,d9 as $e,eF as y4,eG as b4,bH as C4,bI as S4,c3 as x4,eH as w4,eI as T4,eJ as A4,bP as p2,bQ as r1,eK as E4,bZ as F0,dR as _0,Z as a3,aw as R4,eL as P4,cV as k4,eM as C3,ck as V0,eN as Z4,d6 as L0,eO as N,eP as S3,eQ as I4,eR as j4,eS as D4,eT as O4,eU as $4,dd as B4,eV as F4,eW as _4,eX as V4,eY as L4}from"./index-193ec8c2.js";import{u as z4,E as M4,V as H4,a as W4,c as N4,b as U4,C as q4,U as G4}from"./FeatureArchiveDialog-f9d8c71d.js";import{a as K4}from"./index-031b8ec3.js";import{m as J4,h as Y4,b as Q4,c as X4,d as en,e as tn,E as nn,f as an,u as rn,a as on,R as sn,C as cn,A as ln,B as z0}from"./useProjectRole-d8edb83e.js";import{E as dn}from"./Error-29ef2974.js";const pn=G1(t("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),un=G1(t("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"}),"CallMade"),hn=G1(t("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),mn=G1(t("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),"Pending"),gn=G1(t("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),fn=G1(t("path",{d:"M19 9h-2v6.59L5.41 4 4 5.41 15.59 17H9v2h10V9z"}),"SouthEast");function vn(e,n){xt(2,arguments);var a=wt(n);return K4(e,-a)}const Be=d("div")(()=>({display:"flex"})),yn=d("div")(()=>({display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"})),bn=d("div")(()=>({display:"flex",flexDirection:"column"})),Cn=d("span")(({theme:e})=>({fontSize:e.typography.h1.fontSize,textOverflow:"ellipsis",whiteSpace:"nowrap"})),O2=d("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,fontWeight:"normal"})),x3=d(O2)(({theme:e})=>({color:e.palette.neutral.dark})),Sn=d(Tt)(({theme:e})=>({marginLeft:e.spacing(-1.5)})),xn=d("div")(({theme:e})=>({backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadiusLarge,marginBottom:e.spacing(2)})),wn=d("div")(({theme:e})=>({padding:e.spacing(2.5,5),display:"flex",flexDirection:"column",alignItems:"start"})),w3=d("span")(({theme:e})=>({margin:0,width:"100%",fontSize:e.fontSizes.mainHeader,fontWeight:"bold",display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(2)})),Tn=d("div")(({theme:e})=>({width:"100%",backgroundColor:e.palette.tertiary.light,height:"1px"})),An=d("div")(({theme:e})=>({padding:e.spacing(0,4)})),En=d(Ue)(({theme:e})=>({textTransform:"none",fontSize:e.fontSizes.bodySize,flexGrow:1,flexBasis:0,[e.breakpoints.down("md")]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[e.breakpoints.up("md")]:{minWidth:160}})),Rn=e=>e.reduce((n,a)=>a.enabled?n+1:n,0),Pn=d(Xe)(({theme:e})=>({marginTop:e.spacing(3)})),kn=d("p",{shouldForwardProp:e=>e!=="warning"})(({theme:e,warning:n})=>({color:n?e.palette.error.dark:e.palette.text.primary,textAlign:"center"})),Zn=({environment:e,warnEnabledToggles:n})=>{const a=p.useMemo(()=>[{id:"Icon",width:"1%",Cell:({row:{original:h}})=>t(At,{environment:h})},{Header:"Name",accessor:"name",Cell:t1},{Header:"Type",accessor:"type",Cell:t1},{Header:"Toggles enabled",accessor:"projectEnabledToggleCount",Cell:({value:h})=>t(t1,{children:t(kn,{warning:h>0,children:h===1?"1 toggle":`${h} toggles`})}),align:"center"}],[n]),{getTableProps:r,getTableBodyProps:o,headerGroups:i,rows:c,prepareRow:l}=Q.useTable({columns:a,data:[e],disableSortBy:!0});return s(Pn,{...r(),rowHeight:"compact",children:[t(e2,{headerGroups:i}),t(t2,{...o(),children:c.map(h=>(l(h),t(n2,{hover:!0,...h.getRowProps(),children:h.cells.map(u=>t(a2,{...u.getCellProps(),children:u.render("Cell")}))})))})]})},In=d("p")(({theme:e})=>({marginTop:e.spacing(3),marginBottom:e.spacing(1.5)})),jn=d(Et)(()=>({width:"100%"})),Dn=({environment:e,open:n,setOpen:a,onConfirm:r})=>{const[o,i]=p.useState("");return p.useEffect(()=>{i("")},[n]),s(r2,{title:"Hide environment and disable feature toggles?",open:n,primaryButtonText:"Hide environment and disable feature toggles",disabledPrimaryButton:(e==null?void 0:e.name)!==o,secondaryButtonText:"Close",onClick:r,onClose:()=>{a(!1)},children:[s(F1,{severity:"error",children:[t("strong",{children:"Danger!"})," Hiding an environment will disable all the feature toggles that are enabled in this environment and it can impact client applications connected to the environment."]}),t(Zn,{environment:e}),s(In,{children:["In order to hide this environment, please enter the id of the environment in the textfield below:"," ",t("strong",{children:e==null?void 0:e.name})]}),t(jn,{label:"Environment name",value:o,onChange:c=>i(c.target.value)})]})},On=e=>{const{data:n,error:a,mutate:r}=K1(_1(`api/admin/environments/project/${e}`),$n),o=p.useMemo(()=>n||[],[n]),i=p.useCallback(async()=>{await r()},[r]);return{environments:o,refetchEnvironments:i,loading:!a&&!n,error:a}},$n=async e=>(await fetch(e).then(V1("Environments")).then(a=>a.json())).environments.sort((a,r)=>a.sortOrder-r.sortOrder),Bn=d(F1)(({theme:e})=>({marginBottom:e.spacing(4)})),Fn=d("div")(({theme:e})=>({display:"flex",flexWrap:"wrap",[e.breakpoints.down("sm")]:{justifyContent:"center"}})),_n=d(p0)(({theme:e})=>({maxWidth:"400px",marginBottom:e.spacing(2)})),M0=()=>{const e=G("projectId"),n=I1(e);E1(`Project environments – ${n}`);const{setToastData:a,setToastApiError:r}=g1(),{environments:o,loading:i,error:c,refetchEnvironments:l}=On(e),{project:h,refetch:u}=J1(e),{removeEnvironmentFromProject:f,addEnvironmentToProject:g}=M2(),[y,T]=p.useState(),[E,P]=p.useState(!1),{isOss:$}=s1(),A=p.useMemo(()=>o.map(k=>({...k,projectVisible:h==null?void 0:h.environments.includes(k.name)})),[o,h==null?void 0:h.environments]),B=()=>{l(),u()},H=()=>t(_n,{onClick:B,text:"Error fetching environments"}),F=k=>`Got an API error when trying to set the environment as ${k?"visible":"hidden"}`,M=async k=>{if(k.projectVisible){if(Rn(A)>1){T(k),P(!0);return}a({title:"One environment must be visible",text:"You must always have at least one visible environment per project",type:"error"})}else try{await g(e,k.name),B(),a({title:"Environment set as visible",text:"Environment successfully set as visible.",type:"success"})}catch{r(F(!0))}},b=async()=>{if(y)try{await f(e,y.name),B(),a({title:"Environment set as hidden",text:"Environment successfully set as hidden.",type:"success"})}catch{r(F(!1))}finally{P(!1)}},Z=k=>$()&&k==="default",V=p.useMemo(()=>[{Header:"Name",accessor:"name",Cell:({row:{original:k}})=>t(Rt,{environment:k})},{Header:"Type",accessor:"type",Cell:be},{Header:"Project API tokens",accessor:k=>k.projectApiTokenCount===1?"1 token":`${k.projectApiTokenCount} tokens`,Cell:t1},{Header:"Visible in project",accessor:"enabled",align:"center",width:1,Cell:({row:{original:k}})=>t(H2,{children:t(W2,{tooltip:k.projectVisible?"Hide environment and disable feature toggles":"Make it visible",size:"medium",disabled:Z(k.name),projectId:e,permission:A1,checked:k.projectVisible,onChange:()=>M(k)})}),disableGlobalFilter:!0}],[A]),{getTableProps:W,getTableBodyProps:_,headerGroups:c1,rows:n1,prepareRow:K,state:{globalFilter:v},setGlobalFilter:x}=Q.useTable({columns:V,data:A,disableSortBy:!0},Q.useGlobalFilter),O=t(o1,{title:`Environments (${n1.length})`,actions:t(S1,{initialValue:v,onChange:x})});return t(l1,{header:O,isLoading:i,children:s(Fn,{children:[t(S,{condition:Boolean(c),show:H()}),s(Bn,{severity:"info",children:[t("strong",{children:"Important!"})," In order for your application to retrieve configured activation strategies for a specific environment, the application must use an environment specific API token. You can look up the environment-specific"," ",t(Z1,{to:"/admin/api",children:"API tokens here"}),".",t("br",{}),t("br",{}),"Your administrator can configure an environment-specific API token to be used in the SDK. If you are an administrator you can ",t(Z1,{to:"/admin/api",children:"create a new API token here"}),"."]}),t(Y1,{value:v,children:s(Xe,{...W(),rowHeight:"compact",children:[t(e2,{headerGroups:c1}),t(t2,{..._(),children:n1.map(k=>(K(k),t(n2,{hover:!0,...k.getRowProps(),children:k.cells.map(L=>t(a2,{...L.getCellProps(),children:L.render("Cell")}))})))})]})}),t(S,{condition:n1.length===0,show:t(S,{condition:(v==null?void 0:v.length)>0,show:s(h1,{children:["No environments found matching “",v,"”"]}),elseShow:t(h1,{children:"No environments available. Get started by adding one."})})}),t(Dn,{environment:y,open:E,setOpen:P,onConfirm:b})]})})},Vn={id:"archivedAt"},Ln=({projectId:e})=>{const{archivedFeatures:n,loading:a,refetchArchived:r}=Pt(e),{value:o,setValue:i}=Se(`${e}:ProjectFeaturesArchiveTable`,Vn);return t(kt,{title:"Project archive",archivedFeatures:n||[],loading:a,storedParams:o,setStoredParams:i,refetch:r,projectId:e})},zn=()=>{const e=G("projectId"),n=I1(e);return E1(`Project archive – ${n}`),t(Ln,{projectId:e})},Mn=(e=[])=>{var a;const n=p.useRef(e);return(e==null?void 0:e.join(""))!==((a=n.current)==null?void 0:a.join(""))&&(n.current=e),n.current},Hn=d(w)(()=>({mx:"auto",...f1})),Wn=({projectId:e,featureName:n,environmentName:a,value:r,onToggle:o})=>{const[i,c,l]=Zt(r);return t(Hn,{children:t(W2,{checked:r,environmentId:a,projectId:e,permission:It,inputProps:{"aria-label":a},onClick:()=>{c(!i),o(e,n,a,!i).catch(l)},disabled:i!==r})},`${n}-${a}`)};var r3={},Nn=X1;Object.defineProperty(r3,"__esModule",{value:!0});var H0=r3.default=void 0,Un=Nn(Q1()),qn=ee,Gn=(0,Un.default)((0,qn.jsx)("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"}),"Archive");H0=r3.default=Gn;var o3={},Kn=X1;Object.defineProperty(o3,"__esModule",{value:!0});var W0=o3.default=void 0,Jn=Kn(Q1()),Yn=ee,Qn=(0,Jn.default)((0,Yn.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"}),"WatchLater");W0=o3.default=Qn;const Xn=d(w)(({theme:e})=>({display:"flex",justifyContent:"center",paddingRight:e.spacing(2)})),ea=({projectId:e,row:n,onOpenArchiveDialog:a,onOpenStaleDialog:r})=>{const[o,i]=p.useState(null),{original:{name:c,stale:l}}=n,h=Boolean(o),u=T=>{i(T.currentTarget)},f=()=>{i(null)},g=`feature-${c}-actions`,y=`${g}-menu`;return s(Xn,{children:[t(te,{title:"Feature toggle actions",arrow:!0,describeChild:!0,children:t(B1,{id:g,"aria-controls":h?y:void 0,"aria-haspopup":"true","aria-expanded":h?"true":void 0,onClick:u,type:"button",children:t(jt,{})})}),t(N2,{id:y,anchorEl:o,open:h,onClose:f,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableScrollLock:!0,PaperProps:{sx:T=>({borderRadius:T.shape.borderRadius,padding:T.spacing(1,1.5)})},children:s(U2,{"aria-labelledby":g,children:[t(C2,{projectId:e,permission:q2,children:({hasAccess:T})=>s(ve,{sx:S2,onClick:f,disabled:!T,component:Z1,to:`/projects/${e}/features/${c}/strategies/copy`,children:[t(Le,{children:t(Dt,{})}),t(ze,{children:t(D,{variant:"body2",children:"Copy"})})]})}),t(C2,{projectId:e,permission:Ot,children:({hasAccess:T})=>s(ve,{sx:S2,onClick:()=>{a(c),f()},disabled:!T,children:[t(Le,{children:t(H0,{})}),t(ze,{children:t(D,{variant:"body2",children:"Archive"})})]})}),t(C2,{projectId:e,permission:u0,children:({hasAccess:T})=>s(ve,{sx:S2,onClick:()=>{f(),r({featureId:c,stale:l===!0})},disabled:!T,children:[t(Le,{children:t(W0,{})}),t(ze,{children:s(D,{variant:"body2",children:[l?"Un-mark":"Mark"," as stale"]})})]})})]})})]})};var i3={},ta=X1;Object.defineProperty(i3,"__esModule",{value:!0});var N0=i3.default=void 0,na=ta(Q1()),aa=ee,ra=(0,na.default)((0,aa.jsx)("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2zM22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2zm-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2z"}),"ViewWeek");N0=i3.default=ra;const oa=d(w)(()=>({...f1,justifyContent:"center"})),ia=d(B1)(({theme:e})=>({margin:e.spacing(-1,0)})),sa=d(w)(({theme:e})=>({...f1,justifyContent:"space-between",padding:e.spacing(1,1,0,4)})),ca=d(ve)(({theme:e})=>({padding:e.spacing(0,2),margin:e.spacing(0,2),borderRadius:e.shape.borderRadius})),T3=d(h0)(({theme:e})=>({"&.MuiDivider-root.MuiDivider-fullWidth":{margin:e.spacing(.75,0)}})),la=d(m0)(({theme:e})=>({padding:e.spacing(.75,1)})),da={favorite:"Favorite"},pa=({allColumns:e,staticColumns:n=[],dividerBefore:a=[],dividerAfter:r=[],isCustomized:o=!1,setHiddenColumns:i})=>{const[c,l]=p.useState(null),h=d1(),u=u1(h.breakpoints.down("sm")),f=u1(h.breakpoints.down("md")),g=u1(h.breakpoints.down("lg"));p.useEffect(()=>{if(o)return;const A=(B,H=0)=>{const F=e.filter(({id:b})=>b.startsWith("environments.")!==!1).map(({id:b})=>b).slice(0,H),M=e.map(({id:b})=>b).filter(b=>!B.includes(b)).filter(b=>!n.includes(b)).filter(b=>!F.includes(b));i(M)};if(u)return A(["createdAt"]);if(f)return A(["createdAt"],1);if(g)return A(["type","createdAt"],1);A(["lastSeenAt","type","createdAt"],3)},[u,f,g]);const y=A=>{l(A.currentTarget)},T=()=>{l(null)},E=Boolean(c),P="columns-menu",$=`columns-menu-list-${P}`;return s(oa,{children:[t(te,{title:"Select columns",arrow:!0,describeChild:!0,children:t(ia,{id:P,"aria-controls":E?$:void 0,"aria-haspopup":"true","aria-expanded":E?"true":void 0,onClick:y,type:"button",size:"large","data-loading":!0,children:t(N0,{})})}),s(N2,{id:$,open:E,anchorEl:c,onClose:T,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},disableScrollLock:!0,PaperProps:{sx:A=>({borderRadius:A.shape.borderRadius,paddingBottom:A.spacing(2)})},children:[s(sa,{children:[t(D,{variant:"body2",children:t("strong",{children:"Columns"})}),t(B1,{onClick:T,children:t($t,{})})]}),t(U2,{children:e.filter(({hideInMenu:A})=>!A).map(A=>[t(S,{condition:a.includes(A.id),show:t(T3,{})}),s(ca,{onClick:()=>A.toggleHidden(A.isVisible),disabled:n.includes(A.id),children:[t(Le,{children:t(la,{edge:"start",checked:A.isVisible,disableRipple:!0,inputProps:{"aria-labelledby":A.id},size:"medium"})}),t(ze,{id:A.id,primary:t(D,{variant:"body2",children:t(S,{condition:Boolean(typeof A.Header=="string"&&A.Header),show:()=>t(J,{children:A.Header}),elseShow:()=>da[A.id]||A.id})})})]}),t(S,{condition:r.includes(A.id),show:t(T3,{})})])})]})]})},ua=g0()(e=>({container:{boxShadow:"none",marginLeft:"1rem",minHeight:"100%",width:"calc(100% - 1rem)",position:"relative",[e.breakpoints.down("md")]:{marginLeft:"0",paddingBottom:"4rem",width:"inherit"}}})),ha=d(f0)(()=>({whiteSpace:"nowrap"})),ma=d("div",{shouldForwardProp:e=>e!=="hasWarning"})(({theme:e,hasWarning:n})=>({flexGrow:0,...f1,justifyContent:"center",...n&&{"::before":{content:'""',display:"block",width:e.spacing(2)}}})),Fe=["Actions","name","favorite"],ga={id:"createdAt"},fa=({features:e,loading:n,environments:a=[]})=>{var je,De;const{classes:r}=ua(),o=d1(),i=u1(o.breakpoints.down("md")),[c,l]=p.useState({open:!1,featureId:"",environmentName:""}),[h,u]=p.useState({}),[f,g]=p.useState(),y=G("projectId"),{value:T,setValue:E}=Se(`${y}:FeatureToggleListTable:v1`,ga),{value:P,setValue:$}=Bt(),A=L1(),[B,H]=G2(),{isChangeRequestConfigured:F}=o2(y),M=Mn(n?["a","b","c"]:a),{refetch:b}=J1(y),{setToastData:Z,setToastApiError:V}=g1(),{isFavoritesPinned:W,sortTypes:_,onChangeIsFavoritePinned:c1}=Ft(B.has("favorites")?B.get("favorites")==="true":P.favorites),{toggleFeatureEnvironmentOn:n1,toggleFeatureEnvironmentOff:K}=_t(),{favorite:v,unfavorite:x}=Vt(),{onChangeRequestToggle:O,onChangeRequestToggleClose:k,onChangeRequestToggleConfirm:L,changeRequestDialogDetails:R}=z4(y),[q,i1]=p.useState(!1),{uiConfig:a1}=s1(),p1=p.useCallback(async(m,C,I,j)=>{if(F(I))throw O(C,I,j),new Error("Additional approval required");try{j?await n1(m,C,I):await K(m,C,I),b()}catch(U){const y1=C1(U);throw y1===M4?l({open:!0,featureId:C,environmentName:I}):V(y1),U}Z({type:"success",title:"Updated toggle status",text:"Successfully updated toggle status."}),b()},[K,n1,F]),k1=p.useCallback(async m=>{m!=null&&m.favorite?await x(y,m.name):await v(y,m.name),b()},[y,b]),j1=p.useMemo(()=>[{id:"favorite",Header:t(Lt,{isActive:W,onClick:c1}),accessor:"favorite",Cell:({row:{original:m}})=>t(zt,{value:m==null?void 0:m.favorite,onClick:()=>k1(m)}),maxWidth:50,disableSortBy:!0},{Header:"Seen",accessor:"lastSeenAt",Cell:v0,sortType:"date",align:"center",maxWidth:80},{Header:"Type",accessor:"type",Cell:y0,align:"center",maxWidth:80},{Header:"Name",accessor:"name",Cell:({value:m})=>t(b0,{title:m,to:`/projects/${y}/features/${m}`}),minWidth:100,sortType:"alphanumeric",searchable:!0},{id:"tags",Header:"Tags",accessor:m=>{var C;return((C=m.tags)==null?void 0:C.map(({type:I,value:j})=>`${I}:${j}`).join(`
|
|
2
|
-
`))||""},Cell:Mt,width:80,hideInMenu:!0,searchable:!0},{Header:"Created",accessor:"createdAt",Cell:i2,sortType:"date",minWidth:120},...M.map(m=>({Header:n?()=>"":m,maxWidth:90,id:`environments.${m}`,accessor:C=>{var I;return(I=C.environments[m])==null?void 0:I.enabled},align:"center",Cell:({value:C,row:{original:I}})=>{const j=I.someEnabledEnvironmentHasVariants&&I.environments[m].variantCount===0&&I.environments[m].enabled;return s(ma,{hasWarning:j,children:[t(Wn,{value:C,projectId:y,featureName:I==null?void 0:I.name,environmentName:m,onToggle:p1}),t(S,{condition:j,show:t(H4,{})})]})},sortType:"boolean",filterName:m,filterParsing:C=>C?"enabled":"disabled"})),{id:"Actions",maxWidth:56,width:56,Cell:m=>t(ea,{projectId:y,onOpenArchiveDialog:g,onOpenStaleDialog:u,...m}),disableSortBy:!0}],[y,M,n,p1]),[X,he]=p.useState(B.get("search")||""),Re=p.useMemo(()=>e.map(m=>{var C;return{...m,environments:Object.fromEntries(M.map(I=>{const j=m==null?void 0:m.environments.find(U=>(U==null?void 0:U.name)===I);return[I,{name:I,enabled:(j==null?void 0:j.enabled)||!1,variantCount:(j==null?void 0:j.variantCount)||0}]})),someEnabledEnvironmentHasVariants:((C=m.environments)==null?void 0:C.some(I=>I.variantCount>0&&I.enabled))||!1}}),[e,M]),{data:me,getSearchText:M1,getSearchContext:D1}=s2(j1,X,Re),x1=p.useMemo(()=>n?Array(6).fill({type:"-",name:"Feature name",createdAt:new Date,environments:{production:{name:"production",enabled:!1}}}):me,[n,me]),Pe=p.useMemo(()=>{var I;const m=j1.map(j=>(j==null?void 0:j.accessor)||(j==null?void 0:j.id));let C=M.filter((j,U)=>U>=3).map(j=>`environments.${j}`);if(B.has("columns")){const j=((I=B.get("columns"))==null?void 0:I.split(","))||[],U=[...Fe,...j];C=m.filter(y1=>!U.includes(y1))}else if(T.columns){const j=[...Fe,...T.columns];C=m.filter(U=>!j.includes(U))}return{sortBy:[{id:B.get("sort")||"createdAt",desc:B.has("order")?B.get("order")==="desc":T.desc}],hiddenColumns:C}},[M]),ke=p.useCallback(m=>m.name,[]),{allColumns:ge,headerGroups:Ze,rows:v1,state:{sortBy:w1,hiddenColumns:T1},prepareRow:H1,setHiddenColumns:Ie}=Q.useTable({columns:j1,data:x1,initialState:Pe,sortTypes:_,autoResetHiddenColumns:!1,disableSortRemove:!0,autoResetSortBy:!1,getRowId:ke},Q.useFlexLayout,Q.useSortBy);return xe([{condition:!e.some(({tags:m})=>m==null?void 0:m.length),columns:["tags"]}],Ie,j1),p.useEffect(()=>{if(n)return;const m={};m.sort=w1[0].id,w1[0].desc&&(m.order="desc"),X&&(m.search=X),W&&(m.favorites="true"),m.columns=ge.map(({id:C})=>C).filter(C=>!Fe.includes(C)&&!(T1!=null&&T1.includes(C))).join(","),H(m,{replace:!0}),E(C=>({...C,id:w1[0].id,desc:w1[0].desc||!1,columns:m.columns.split(",")})),$(C=>({...C,favorites:Boolean(W)}))},[n,w1,T1,X,H,W]),s(l1,{isLoading:n,className:r.container,header:t(o1,{titleElement:`Feature toggles (${v1.length})`,actions:s(J,{children:[t(S,{condition:!i,show:t(S1,{initialValue:X,onChange:he,hasFilters:!0,getSearchContext:D1})}),t(pa,{allColumns:ge,staticColumns:Fe,dividerAfter:["createdAt"],dividerBefore:["Actions"],isCustomized:Boolean(T.columns),setHiddenColumns:Ie}),t(o1.Divider,{sx:{marginLeft:0}}),t(S,{condition:Boolean((je=a1==null?void 0:a1.flags)==null?void 0:je.featuresExportImport),show:t(te,{title:"Export current selection",arrow:!0,children:t(B1,{onClick:()=>i1(!0),sx:m=>({marginRight:m.spacing(2)}),children:t(Ht,{})})})}),t(ha,{onClick:()=>A(Wt(y)),maxWidth:"960px",Icon:C0,projectId:y,permission:q2,children:"New feature toggle"})]}),children:t(S,{condition:i,show:t(S1,{initialValue:X,onChange:he,hasFilters:!0,getSearchContext:D1})})}),children:[t(Y1,{value:M1(X),children:t(c2,{rows:v1,headerGroups:Ze,prepareRow:H1})}),t(S,{condition:v1.length===0,show:t(S,{condition:(X==null?void 0:X.length)>0,show:s(h1,{children:["No feature toggles found matching “",X,"”"]}),elseShow:t(h1,{children:"No feature toggles available. Get started by adding a new feature toggle."})})}),t(W4,{onClose:()=>l(m=>({...m,open:!1})),projectId:y,...c}),t(N4,{isStale:h.stale===!0,isOpen:Boolean(h.featureId),onClose:()=>{u({}),b()},featureId:h.featureId||"",projectId:y}),t(U4,{isOpen:Boolean(f),onConfirm:()=>{b()},onClose:()=>{g(void 0)},featureId:f||"",projectId:y})," ",t(q4,{isOpen:R.isOpen,onClose:k,environment:R==null?void 0:R.environment,onConfirm:L,messageComponent:t(G4,{featureName:R.featureName,enabled:R.enabled,environment:R==null?void 0:R.environment})}),t(S,{condition:Boolean((De=a1==null?void 0:a1.flags)==null?void 0:De.featuresExportImport),show:t(Nt,{showExportDialog:q,data:x1,onClose:()=>i1(!1),environments:M})})]})},ce=d("div")(({theme:e})=>({margin:"0",textAlign:"center",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadiusLarge,width:"100%",minWidth:225,padding:e.spacing(3),[e.breakpoints.down("md")]:{display:"flex",flexDirection:"column",position:"relative",padding:e.spacing(1.5)}})),Ae=d("p")(({theme:e})=>({marginBottom:e.spacing(2.5)})),s3=d("span")(({theme:e})=>({fontSize:e.typography.h2.fontSize,fontWeight:"bold",color:e.palette.text.primary})),u2=({children:e,to:n})=>t(D,{variant:"body2",textAlign:"center",sx:{paddingTop:a=>a.spacing(2.5),marginTop:"auto",justifySelf:"flex-end"},children:t(S0,{component:Z1,to:n,children:e})}),va=d("p")(({theme:e})=>({fontSize:"1.5rem",[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize,marginBottom:e.spacing(4)}})),ya=d("p")(({theme:e})=>({fontSize:"1.5rem",[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize}})),ba=({projectId:e,health:n})=>s(ce,{children:[t(Ae,{"data-loading":!0,children:"Project health"}),s(w,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:a=>a.spacing(2)},children:[t(ya,{children:t(x0,{percentage:n})}),s(va,{"data-loading":!0,children:[n,"%"]})]}),t(u2,{to:`/projects/${e}/health`,children:"View project health"})]}),Ca=d(s3)(({theme:e})=>({marginLeft:"auto",fontWeight:e.typography.fontWeightRegular,color:e.palette.text.secondary})),Sa=d("div")(({theme:e})=>({display:"flex",gap:e.spacing(1.5),width:"100%",gridTemplateColumns:`${e.spacing(2.5)} auto auto`,margin:e.spacing(1,0),fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,alignItems:"center",[e.breakpoints.down("md")]:{margin:0}})),xa=({type:e,Icon:n,count:a})=>s(Sa,{"data-loading":!0,children:[t(n,{fontSize:"small","data-loading":!0}),t("div",{children:(o=>o.charAt(0).toUpperCase()+o.slice(1).replace("-"," "))(e)}),t(Ca,{children:a})]}),wa=({features:e})=>{const n=p.useMemo(()=>{const a=(e==null?void 0:e.filter(l=>l.type==="release").length)||0,r=(e==null?void 0:e.filter(l=>l.type==="experiment").length)||0,o=(e==null?void 0:e.filter(l=>l.type==="operational").length)||0,i=(e==null?void 0:e.filter(l=>l.type==="kill-switch").length)||0,c=(e==null?void 0:e.filter(l=>l.type==="permission").length)||0;return{release:a,experiment:r,operational:o,"kill-switch":i,permission:c}},[e]);return s(ce,{sx:{padding:a=>a.spacing(3)},children:[t(Ae,{children:"Toggle types used"}),Object.keys(n).map(a=>t(xa,{type:a,Icon:Ut(a),count:n[a]},a))]})},Ta=d("div")(({theme:e})=>({textAlign:"left",borderRadius:`${e.shape.borderRadius}px`,backgroundColor:`${e.palette.secondaryContainer}`,padding:e.spacing(.5,2),fontSize:e.typography.body2.fontSize})),Aa=({id:e,description:n})=>s(ce,{children:[t(Ae,{children:"Project Meta"}),s(Ta,{children:[t(D,{component:"span",variant:"body2",color:"text.secondary",children:"ID:"})," ",t("code",{"data-loading":!0,children:e||"__________"})]}),t(S,{condition:Boolean(n),show:t(D,{variant:"body2",sx:{marginTop:a=>a.spacing(1.5),marginBottom:0,textAlign:"left"},children:n})}),t(S,{condition:!Boolean(n),show:t(u2,{to:`/projects/${e}/edit`,children:"Add description"})})]}),Ea=d(D)(({theme:e})=>({marginBottom:e.spacing(2.5)})),Ra=d(w)(({theme:e})=>({fontSize:e.fontSizes.largeHeader})),A3=d(w)(({theme:e})=>({...f1,flexDirection:"column",alignItems:"center",marginLeft:e.spacing(2.5)})),E3=d(D)(({theme:e})=>({color:e.palette.neutral.main,fontSize:e.typography.body2.fontSize})),Pa=d(D)(({theme:e})=>({marginLeft:e.spacing(1),fontSize:e.typography.body1.fontSize,fontWeight:e.typography.fontWeightBold})),ka=e=>e>0?t(un,{sx:{color:"success.dark",height:20,width:20}}):t(fn,{sx:{color:"warning.dark",height:20,width:20}}),Za=e=>e>0?"success.dark":"warning.dark",fe=({title:e,boxText:n,change:a,percentage:r,children:o})=>s(J,{children:[t(S,{condition:Boolean(e),show:t(Ea,{children:e})}),o,s(w,{sx:{...f1,justifyContent:"center",width:"auto"},children:[t(Ra,{children:n}),t(S,{condition:a!==0,show:s(A3,{children:[s(w,{sx:{...f1},children:[ka(a),s(Pa,{color:Za(a),children:[a>0?"+":"",a,r?"%":""]})]}),t(E3,{children:"this month"})]}),elseShow:t(A3,{children:t(E3,{children:"No change"})})})]})]}),Ia=({projectId:e,memberCount:n,change:a=0})=>{var i,c;const{uiConfig:r}=s1();let o="/admin/users";return(c=(i=r==null?void 0:r.versionInfo)==null?void 0:i.current)!=null&&c.enterprise&&(o=`/projects/${e}/settings/access`),s(ce,{children:[t(Ae,{"data-loading":!0,children:"Project members"}),t(w,{sx:{display:"flex",justifyContent:"center"},children:t(fe,{boxText:`${n}`,change:a})}),t(u2,{to:o,children:"View all members"})]})},ja=e=>fetch(e).then(V1("ChangeRequest")).then(n=>n.json()),U0=e=>{const{data:n,error:a,mutate:r}=qt([],_1(`api/admin/projects/${e}/change-requests`),ja);return p.useMemo(()=>({changeRequests:n,loading:!a&&!n,refetch:r,error:a}),[n,a,r])},Me="change-requests-widget",Da=d(w)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1.5)})),R3=d(w)(({theme:e})=>({flex:1,textAlign:"left",padding:e.spacing(1.5),borderRadius:e.shape.borderRadiusMedium,alignItems:"center",minWidth:175})),P3=d(w)(({theme:e})=>({display:"flex",alignItems:"center"})),Oa=d(s3)(({theme:e})=>({background:e.palette.activityIndicators.recent,padding:e.spacing(0,1),marginRight:e.spacing(.5),borderRadius:e.shape.borderRadius})),$a=d(s3)(({theme:e})=>({background:e.palette.activityIndicators.primary,padding:e.spacing(0,1),marginRight:e.spacing(.5),borderRadius:e.shape.borderRadius})),k3=d(D)(({theme:e})=>({fontSize:e.typography.body2.fontSize,marginBottom:e.spacing(.5)})),Z3=()=>t(D,{component:"span",variant:"body2",color:"text.secondary",lineHeight:1,"data-loading":Me,children:"change requests"}),Ba=({projectId:e})=>{const{changeRequests:n,loading:a}=U0(e),r=w0(a,`[data-loading="${Me}"]`),o=n==null?void 0:n.filter(c=>(c==null?void 0:c.state)==="Approved").length,i=n==null?void 0:n.filter(c=>(c==null?void 0:c.state)==="In review").length;return s(ce,{ref:r,children:[t(Ae,{children:"Open change requests"}),s(Da,{children:[s(R3,{sx:{background:c=>c.palette.success.light},children:[t(k3,{children:"To be applied"}),s(P3,{children:[t(Oa,{"data-loading":Me,children:o||0})," ",t(Z3,{})]})]}),s(R3,{sx:{background:c=>c.palette.secondary.light},children:[t(k3,{children:"To be reviewed"}),s(P3,{children:[t($a,{"data-loading":Me,children:i||0})," ",t(Z3,{})]})]})]}),t(u2,{to:`/projects/${e}/change-requests`,children:"View change requests"})]})};var c3={},Fa=X1;Object.defineProperty(c3,"__esModule",{value:!0});var l3=c3.default=void 0,_a=Fa(Q1()),Va=ee,La=(0,_a.default)((0,Va.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");l3=c3.default=La;const za=d("p")(({theme:e})=>({fontSize:"1.5rem",[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize,marginBottom:e.spacing(4)}})),Ma=d("div")(()=>({display:"flex",justifyContent:"center"})),Ha=d(Z1)(({theme:e})=>({textDecoration:"none",...f1,justifyContent:"center",color:e.palette.primary.main,[e.breakpoints.down("md")]:{position:"absolute",bottom:e.spacing(1.5),right:e.spacing(1.5)}})),Wa=d("p")(({theme:e})=>({[e.breakpoints.down("md")]:{display:"none"}})),Na=d(l3)(({theme:e})=>({color:e.palette.primary.main,marginLeft:e.spacing(1)})),Ua=({projectId:e,health:n})=>s(ce,{children:[t(Ma,{children:t(x0,{percentage:n})}),t(D,{"data-loading":!0,sx:{marginTop:a=>a.spacing(2)},children:"Overall health rating"}),t(w,{sx:{marginBottom:a=>a.spacing(2.5)},children:s(za,{"data-loading":!0,children:[n,"%"]})}),s(Ha,{"data-loading":!0,to:`/projects/${e}/health`,children:[t(Wa,{"data-loading":!0,children:"view more "}),t(Na,{"data-loading":!0})]})]}),qa=d("div")(({theme:e})=>({textAlign:"center",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadiusLarge,width:"100%",padding:e.spacing(3,2,3,2),[e.breakpoints.down("md")]:{...f1,flexDirection:"column",justifyContent:"center",fontSize:e.fontSizes.smallBody,position:"relative",padding:e.spacing(1.5)}})),Ga=d("p")(({theme:e})=>({marginBottom:e.spacing(2)})),Ka=d("p")(({theme:e})=>({fontSize:"1.5rem",marginBottom:e.spacing(2),[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize,marginBottom:e.spacing(4)}})),Ja=d("p")(({theme:e})=>({[e.breakpoints.down("md")]:{display:"none"}})),Ya=d(Z1)(({theme:e})=>({textDecoration:"none",...f1,justifyContent:"center",color:e.palette.primary.main,[e.breakpoints.down("md")]:{position:"absolute",right:e.spacing(1.5),bottom:e.spacing(1.5)}})),Qa=d(l3)(({theme:e})=>({color:e.palette.primary.main,marginLeft:e.spacing(1)})),Xa=({projectId:e,memberCount:n})=>{var o,i;const{uiConfig:a}=s1();let r="/admin/users";return(i=(o=a==null?void 0:a.versionInfo)==null?void 0:o.current)!=null&&i.enterprise&&(r=`/projects/${e}/settings/access`),s(qa,{children:[t(Ga,{"data-loading":!0,children:"Project members"}),t(Ka,{"data-loading":!0,children:n}),s(Ya,{"data-loading":!0,to:r,children:[t(Ja,{"data-loading":!0,children:"view more "}),t(Qa,{"data-loading":!0})]})]})},er=d(w)(({theme:e})=>({...f1,width:"225px",flexDirection:"column",gap:e.spacing(2),boxShadow:"none",[e.breakpoints.down("md")]:{display:"grid",width:"100%",alignItems:"stretch",marginBottom:e.spacing(2)},[e.breakpoints.down("sm")]:{display:"flex"}})),tr=({id:e,description:n,memberCount:a,health:r,features:o,stats:i})=>{const{uiConfig:c,isEnterprise:l}=s1(),h=d1(),u=u1(h.breakpoints.down("md")),{isChangeRequestConfiguredInAnyEnv:f}=o2(e),g=l()&&f(),y=e!==Gt,T=!g&&!y||u&&g&&y;return Boolean(c==null?void 0:c.flags.newProjectOverview)?t("aside",{children:s(er,{sx:T?{gridTemplateColumns:"repeat(auto-fill, minmax(225px, 1fr))"}:{gridTemplateColumns:"repeat(2, 1fr)"},children:[t(S,{condition:g,show:t(w,{sx:{gridColumnStart:y?"span 2":"span 1",flex:1,display:"flex"},children:t(Ba,{projectId:e})})}),t(Aa,{id:e,description:n}),t(ba,{projectId:e,health:r}),t(S,{condition:y,show:t(Ia,{projectId:e,memberCount:a,change:i==null?void 0:i.projectMembersAddedCurrentWindow})}),t(wa,{features:o})]})}):t("aside",{children:s(w,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(225px, 1fr))",gap:E=>E.spacing(2),paddingBottom:E=>E.spacing(2)},children:[t(Ua,{projectId:e,health:r}),t(S,{condition:y,show:t(Xa,{projectId:e,memberCount:a})})]})})},nr=d(w)(({theme:e})=>({display:"flex",gap:e.spacing(1),marginTop:e.spacing(.5)})),ar=({id:e})=>{var h;const{uiConfig:n}=s1(),{value:a,setValue:r}=Se(`ProjectOverviewFeedback:v1:${e}`,{}),[o,i]=p.useState(a.value),{trackEvent:c}=ne();if(!((h=n==null?void 0:n.flags)!=null&&h.T))return null;const l=u=>{i(u),r({value:u}),c("project_overview",{props:{eventType:e,wasHelpful:u==="yes"}})};return s(R1,{elevation:0,sx:{background:u=>u.palette.neutral.light,padding:u=>u.spacing(1.5,2),marginTop:u=>u.spacing(1.5)},children:["Was this information useful to you?",s(nr,{children:[t(m1,{size:"small",variant:o==="yes"?"contained":"outlined",sx:{padding:0},onClick:()=>l("yes"),disabled:Boolean(o),children:"Yes"}),t(m1,{size:"small",variant:o==="no"?"contained":"outlined",sx:{padding:0},onClick:()=>l("no"),disabled:Boolean(o),children:"No"})]})]})},rr=d(R1)(({theme:e})=>({padding:e.spacing(3,3),maxWidth:"350px",borderRadius:`${e.shape.borderRadiusMedium}px`,border:`1px solid ${e.palette.neutral.border}`,fontSize:e.typography.body2.fontSize})),I3=({children:e,id:n})=>{const[a,r]=p.useState(null),o=l=>r(l.currentTarget),i=()=>r(null),c=Boolean(a);return s(w,{sx:{position:"absolute",top:l=>l.spacing(.5),right:l=>l.spacing(.5)},children:[t(B1,{onClick:o,"aria-describedby":n,size:"small",children:t(T0,{sx:{fontSize:l=>l.typography.body1.fontSize}})}),t(A0,{id:n,open:c,anchorEl:a,sx:l=>({zIndex:l.zIndex.tooltip}),children:t(E0,{onClickAway:i,children:s(rr,{elevation:3,children:[t(B1,{onClick:i,sx:{position:"absolute",right:4,top:4},children:t(Kt,{sx:{fontSize:l=>l.typography.body1.fontSize}})}),e,t(ar,{id:n})]})})})]})},or=d(w)(({theme:e})=>({padding:e.spacing(0,0,2,2),display:"grid",gap:e.spacing(2),gridTemplateColumns:"repeat(4, 1fr)",flexWrap:"wrap",[e.breakpoints.down("lg")]:{gridTemplateColumns:"repeat(2, 1fr)"},[e.breakpoints.down("md")]:{padding:e.spacing(0,0,2)},[e.breakpoints.down("sm")]:{flexDirection:"column"}})),_e=d(w)(({theme:e})=>({position:"relative",padding:e.spacing(3),backgroundColor:e.palette.background.paper,flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRadius:`${e.shape.borderRadiusLarge}px`,[e.breakpoints.down("lg")]:{padding:e.spacing(2)}})),ir=({stats:e})=>{if(Object.keys(e).length===0)return null;const{avgTimeToProdCurrentWindow:n,avgTimeToProdPastWindow:a,projectActivityCurrentWindow:r,projectActivityPastWindow:o,createdCurrentWindow:i,createdPastWindow:c,archivedCurrentWindow:l,archivedPastWindow:h}=e,u=(f,g)=>{const y=f*100/g;return Number.isInteger(y)?y:0};return s(or,{children:[t(_e,{children:t(fe,{title:"Total changes",boxText:String(r),change:r-o-20,children:t(I3,{id:"total-changes",children:"Sum of all configuration and state modifications in the project."})})}),t(_e,{children:t(fe,{title:"Avg. time to production",boxText:s(w,{sx:{display:"flex",alignItems:"center",gap:f=>f.spacing(1)},children:[n," ",t(D,{component:"span",children:"days"})]}),change:u(n,a),percentage:!0,children:t(I3,{id:"avg-time-to-prod",children:"How long did it take on average from a feature toggle was created until it was enabled in an environment of type production."})})}),t(_e,{children:t(fe,{title:"Features created",boxText:String(i),change:i-c})}),t(_e,{children:t(fe,{title:"Features archived",boxText:String(l),change:l-h})})]})},sr=15*1e3,cr=d("div")(({theme:e})=>({display:"flex",[e.breakpoints.down("md")]:{flexDirection:"column"}})),lr=d("div")(()=>({width:"100%",minWidth:0})),dr=d(w)(()=>({display:"flex",flexDirection:"column",width:"100%",minWidth:0})),pr=()=>{const e=G("projectId"),n=I1(e),{project:a,loading:r}=J1(e,{refreshInterval:sr}),{members:o,features:i,health:c,description:l,environments:h,stats:u}=a;E1(`Project overview – ${n}`);const{setLastViewed:f}=Jt(),{uiConfig:g}=s1();return p.useEffect(()=>{f(e)},[e,f]),s(cr,{children:[t(tr,{id:e,description:l,memberCount:o,health:c,features:i,stats:u}),s(dr,{children:[t(S,{condition:Boolean(g==null?void 0:g.flags.newProjectOverview),show:t(ir,{stats:a.stats})}),t(lr,{children:t(fa,{features:i,environments:h,loading:r})})]})]})},ur=(e,n)=>{const a=_1(`api/admin/projects/${e}/health-report`),{data:r,error:o}=K1(a,hr,n),i=p.useCallback(()=>{R0(a).catch(console.warn)},[a]);return{healthReport:r,refetchHealthReport:i,loading:!o&&!r,error:o}},hr=e=>fetch(e).then(V1("Health report")).then(n=>n.json());var d3={},mr=X1;Object.defineProperty(d3,"__esModule",{value:!0});var $2=d3.default=void 0,gr=mr(Q1()),fr=ee,vr=(0,gr.default)((0,fr.jsx)("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");$2=d3.default=vr;const yr=d(w)(({theme:e})=>({display:"flex",alignItems:"center",color:e.palette.success.dark,"& svg":{color:e.palette.success.main}})),j3=d(w)(({theme:e})=>({display:"flex",alignItems:"center",color:e.palette.warning.dark,"& svg":{color:e.palette.warning.main}})),br=d(R1)(({theme:e})=>({padding:e.spacing(4),marginBottom:e.spacing(2),borderRadius:e.shape.borderRadiusLarge,boxShadow:"none",display:"flex",justifyContent:"space-between",[e.breakpoints.down("md")]:{flexDirection:"column",gap:e.spacing(2)}})),x2=d("h2")(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(1)})),Cr=d("p")(({theme:e})=>({fontSize:"2rem",fontWeight:e.fontWeight.bold})),Sr=d("p")(({theme:e})=>({color:e.palette.text.secondary})),D3=d("ul")(({theme:e})=>({listStyleType:"none",margin:0,padding:0,"& svg":{marginRight:e.spacing(1)}})),O3=d("p")(({theme:e})=>({marginLeft:e.spacing(4)})),xr=({healthReport:e})=>{const n=e.health<50?"error.main":e.health<75?"warning.main":"success.main",a=()=>s(yr,{children:[t(Yt,{}),s("span",{children:[e.activeCount," active toggles"]})]}),r=()=>s(j3,{children:[t($2,{}),s("span",{children:[e.staleCount," stale toggles"]})]}),o=()=>s(j3,{children:[t($2,{}),s("span",{children:[e.potentiallyStaleCount," potentially stale toggles"]})]});return s(br,{children:[s(w,{children:[t(x2,{children:"Health rating"}),t(S,{condition:e.health>-1,show:s(J,{children:[s(Cr,{sx:{color:n},children:[e.health,"%"]}),s(Sr,{children:["Last updated:"," ",t(K2,{date:e.updatedAt,live:!1})]})]})})]}),s(w,{children:[t(x2,{children:"Toggle report"}),s(D3,{children:[t("li",{children:t(S,{condition:Boolean(e.activeCount),show:a})}),t(S,{condition:Boolean(e.activeCount),show:t(O3,{children:"Also includes potentially stale toggles."})}),t("li",{children:t(S,{condition:Boolean(e.staleCount),show:r})})]})]}),s(w,{sx:{flexBasis:"40%"},children:[t(x2,{children:"Potential actions"}),t(D3,{children:t("li",{children:t(S,{condition:Boolean(e.potentiallyStaleCount),show:o})})}),t(S,{condition:Boolean(e.potentiallyStaleCount),show:t(O3,{children:"Review your feature toggles and delete unused toggles."}),elseShow:t("span",{children:"No action is required"})})]})]})},wr=({row:e})=>{const n=d1();return e.original.expiredAt?t(i2,{value:e.original.expiredAt}):t(t1,{children:t(D,{variant:"body2",color:n.palette.text.secondary,children:"N/A"})})},Tr=d("span")(({theme:e})=>({display:"flex",gap:"1ch",alignItems:"center",color:e.palette.warning.dark,"& svg":{color:e.palette.warning.main}})),Ar=d("span")(({theme:e})=>({display:"flex",gap:"1ch",alignItems:"center",color:e.palette.success.dark,"& svg":{color:e.palette.success.main}})),Er=({row:e})=>e.original.status==="potentially-stale"?t(t1,{children:s(Tr,{children:[t(gn,{}),t("span",{children:"Potentially stale"})]})}):t(t1,{children:s(Ar,{children:[t(P0,{}),t("span",{children:"Healthy"})]})}),$3=40,Rr=7,q0={[Xt]:$3,[e4]:$3,[t4]:Rr},G0=(e,n)=>Math.abs(Qt(e,n)),K0=(e,n)=>e>=q0[n],Pr=e=>{const{type:n,createdAt:a}=e,r=k0(a),o=new Date,i=G0(r,o);return K0(i,n)&&n!==Z0&&n!==I0?"potentially-stale":"healthy"},kr=e=>{const{type:n,createdAt:a}=e;if(n===Z0||n===I0)return;const r=k0(a),o=new Date,i=G0(r,o);if(K0(i,n)){const c=i-q0[n];return vn(o,c).toISOString()}},Zr=({projectId:e,features:n})=>{const a=d1(),r=u1(a.breakpoints.down("sm")),o=u1(a.breakpoints.down("md")),i=u1(a.breakpoints.down("lg")),c=p.useMemo(()=>n.map(P=>({project:e,name:P.name,type:P.type,stale:P.stale,status:Pr(P),lastSeenAt:P.lastSeenAt,createdAt:P.createdAt,expiredAt:kr(P)})),[e,n]),l=p.useMemo(()=>({hiddenColumns:[],sortBy:[{id:"createdAt"}]}),[]),{headerGroups:h,rows:u,prepareRow:f,state:{globalFilter:g},setGlobalFilter:y,setHiddenColumns:T}=Q.useTable({columns:B3,data:c,initialState:l,sortTypes:we,autoResetGlobalFilter:!1,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0},Q.useGlobalFilter,Q.useFlexLayout,Q.useSortBy);xe([{condition:r,columns:["stale"]},{condition:o,columns:["expiredAt","lastSeenAt"]},{condition:i,columns:["createdAt"]}],T,B3);const E=u.length<c.length?`Feature toggles (${u.length} of ${c.length})`:`Feature toggles (${c.length})`;return s(l1,{header:t(o1,{title:E,actions:t(S1,{initialValue:g,onChange:y})}),children:[t(Y1,{value:g,children:t(c2,{headerGroups:h,prepareRow:f,rows:u})}),t(S,{condition:u.length===0,show:t(S,{condition:(g==null?void 0:g.length)>0,show:s(h1,{children:["No feature toggles found matching “",g,"”"]}),elseShow:t(h1,{children:"No feature toggles available. Get started by adding a new feature toggle."})})})]})},B3=[{Header:"Seen",accessor:"lastSeenAt",sortType:"date",align:"center",Cell:v0,disableGlobalFilter:!0,maxWidth:85},{Header:"Type",accessor:"type",align:"center",Cell:y0,disableGlobalFilter:!0,maxWidth:85},{Header:"Name",accessor:"name",sortType:"alphanumeric",Cell:n4,minWidth:120},{Header:"Created",accessor:"createdAt",sortType:"date",Cell:i2,disableGlobalFilter:!0,maxWidth:150},{Header:"Expired",accessor:"expiredAt",Cell:wr,disableGlobalFilter:!0,maxWidth:150},{Header:"Status",id:"status",accessor:"status",Cell:Er,disableGlobalFilter:!0,width:180},{Header:"State",accessor:"stale",sortType:"boolean",Cell:a4,disableGlobalFilter:!0,maxWidth:120}],Ir=()=>{const e=G("projectId"),n=I1(e);E1(`Project health – ${n}`);const{healthReport:a,refetchHealthReport:r,error:o}=ur(e,{refreshInterval:15*1e3});return a?s("div",{children:[t(S,{condition:Boolean(o),show:t(p0,{"data-loading":!0,style:{maxWidth:"500px",marginTop:"1rem"},onClick:r,text:`Could not fetch health rating for ${e}`})}),t(xr,{healthReport:a}),t(Zr,{projectId:e,features:a.features})]}):null},jr=d("div")(({theme:e})=>({borderRadius:"12.5px",backgroundColor:e.palette.background.paper,padding:"2rem"})),Dr=()=>{const e=G("projectId");return t(jr,{children:t(r4,{title:"Event Log",project:e,displayInline:!0})})},J0=(e,n)=>{const{data:a,error:r,mutate:o}=K1(_1(`api/admin/projects/${e}/change-requests/${n}`),Or,{refreshInterval:15e3});return{data:a,loading:!r&&!a,refetchChangeRequest:()=>o(),error:r}},Or=e=>fetch(e).then(V1("Request changes")).then(n=>n.json()),$r=d(R1)(({theme:e})=>({padding:e.spacing(3,4),borderRadius:`${e.shape.borderRadiusLarge}px`})),Br=d(w)(({theme:e})=>({display:"flex",alignItems:"center",marginBottom:e.spacing(2)})),Fr=d(w)(({theme:e})=>({display:"flex",alignItems:"center"})),_r=d(D)(({theme:e})=>({display:"flex",alignItems:"center",marginRight:e.spacing(1),fontSize:e.fontSizes.mainHeader})),Vr=d(o4)(({theme:e})=>({padding:e.spacing(.75,1.5),backgroundColor:e.palette.tertiary.light})),Y0=d(Te)(({theme:e})=>({height:"24px",width:"24px"})),Lr=({changeRequest:e})=>{var n,a;return s($r,{elevation:0,children:[s(Br,{children:[s(_r,{variant:"h1",sx:{mr:1.5},children:["Change request #",e.id]}),t(j0,{state:e.state})]}),s(Fr,{children:[s(D,{variant:"body2",sx:{margin:"auto 0"},children:["Created"," ",t(K2,{minPeriod:60,date:new Date(e.createdAt)})," ","by"]}),t(w,{sx:r=>({marginLeft:r.spacing(1)}),children:t(te,{title:(n=e==null?void 0:e.createdBy)==null?void 0:n.username,children:t(Y0,{src:(a=e==null?void 0:e.createdBy)==null?void 0:a.imageUrl})})}),t(w,{sx:r=>({marginLeft:r.spacing(1.5)}),children:t(Vr,{variant:"outlined",children:s(D,{variant:"body2",sx:{lineHeight:1},children:["Environment:"," ",t(D,{display:"inline",fontWeight:"bold",variant:"body2",component:"span",children:e==null?void 0:e.environment})," ",t(i4,{})," Updates:"," ",s(D,{variant:"body2",display:"inline",fontWeight:"bold",component:"span",children:[e.features.length," ",e.features.length===1?"feature toggle":"feature toggles"]})]})})})]})]})};function e1(){return e1=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},e1.apply(this,arguments)}function le(e,n){if(e==null)return{};var a={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(n.indexOf(o)>=0)&&(a[o]=e[o]);return a}const zr=p.createContext({}),Ke=zr;function Mr(e){return ae("MuiTimeline",e)}z1("MuiTimeline",["root","positionLeft","positionRight","positionAlternate"]);const Hr=["position","className"],Wr=e=>{const{position:n,classes:a}=e,r={root:["root",n&&`position${P1(n)}`]};return ie(r,Mr,a)},Nr=d("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.position&&n[`position${P1(a.position)}`]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),Ur=p.forwardRef(function(n,a){const r=re({props:n,name:"MuiTimeline"}),{position:o="right",className:i}=r,c=le(r,Hr),l=e1({},r,{position:o}),h=Wr(l),u=p.useMemo(()=>({position:o}),[o]);return t(Ke.Provider,{value:u,children:t(Nr,e1({className:oe(h.root,i),ownerState:l,ref:a},c))})}),Q0=Ur;function qr(e){return ae("MuiTimelineContent",e)}const Gr=z1("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate"]),Kr=["className"],Jr=e=>{const{position:n,classes:a}=e,r={root:["root",`position${P1(n)}`]};return ie(r,qr,a)},Yr=d(D,{name:"MuiTimelineContent",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`position${P1(a.position)}`]]}})(({ownerState:e})=>e1({flex:1,padding:"6px 16px",textAlign:"left"},e.position==="left"&&{textAlign:"right"})),Qr=p.forwardRef(function(n,a){const r=re({props:n,name:"MuiTimelineContent"}),{className:o}=r,i=le(r,Kr),{position:c}=p.useContext(Ke),l=e1({},r,{position:c||"right"}),h=Jr(l);return t(Yr,e1({component:"div",className:oe(h.root,o),ownerState:l,ref:a},i))}),X0=Qr,Xr=z1("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate"]),eo=Xr;function to(e){return ae("MuiTimelineItem",e)}const no=z1("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","missingOppositeContent"]),et=no,ao=["position","className"],ro=e=>{const{position:n,classes:a,hasOppositeContent:r}=e,o={root:["root",`position${P1(n)}`,!r&&"missingOppositeContent"]};return ie(o,to,a)},oo=d("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`position${P1(a.position)}`]]}})(({ownerState:e})=>e1({listStyle:"none",display:"flex",position:"relative",minHeight:70},e.position==="left"&&{flexDirection:"row-reverse"},e.position==="alternate"&&{"&:nth-of-type(even)":{flexDirection:"row-reverse",[`& .${Gr.root}`]:{textAlign:"right"},[`& .${eo.root}`]:{textAlign:"left"}}},!e.hasOppositeContent&&{"&:before":{content:'""',flex:1,padding:"6px 16px"}})),io=p.forwardRef(function(n,a){const r=re({props:n,name:"MuiTimelineItem"}),{position:o,className:i}=r,c=le(r,ao),{position:l}=p.useContext(Ke);let h=!1;p.Children.forEach(r.children,y=>{s4(y,["TimelineOppositeContent"])&&(h=!0)});const u=e1({},r,{position:o||l||"right",hasOppositeContent:h}),f=ro(u),g=p.useMemo(()=>({position:u.position}),[u.position]);return t(Ke.Provider,{value:g,children:t(oo,e1({className:oe(f.root,i),ownerState:u,ref:a},c))})}),He=io;function so(e){return ae("MuiTimelineSeparator",e)}z1("MuiTimelineSeparator",["root"]);const co=["className"],lo=e=>{const{classes:n}=e;return ie({root:["root"]},so,n)},po=d("div",{name:"MuiTimelineSeparator",slot:"Root",overridesResolver:(e,n)=>n.root})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),uo=p.forwardRef(function(n,a){const r=re({props:n,name:"MuiTimelineSeparator"}),{className:o}=r,i=le(r,co),c=r,l=lo(c);return t(po,e1({className:oe(l.root,o),ownerState:c,ref:a},i))}),We=uo;function ho(e){return ae("MuiTimelineDot",e)}z1("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);const mo=["className","color","variant"],go=e=>{const{color:n,variant:a,classes:r}=e,o={root:["root",a,n!=="inherit"&&`${a}${P1(n)}`]};return ie(o,ho,r)},fo=d("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.color!=="inherit"&&`${a.variant}${P1(a.color)}`],n[a.variant]]}})(({ownerState:e,theme:n})=>e1({display:"flex",alignSelf:"baseline",borderStyle:"solid",borderWidth:2,padding:4,borderRadius:"50%",boxShadow:(n.vars||n).shadows[1],margin:"11.5px 0"},e.variant==="filled"&&e1({borderColor:"transparent"},e.color!=="inherit"&&e1({},e.color==="grey"?{color:(n.vars||n).palette.grey[50],backgroundColor:(n.vars||n).palette.grey[400]}:{color:(n.vars||n).palette[e.color].contrastText,backgroundColor:(n.vars||n).palette[e.color].main})),e.variant==="outlined"&&e1({boxShadow:"none",backgroundColor:"transparent"},e.color!=="inherit"&&e1({},e.color==="grey"?{borderColor:(n.vars||n).palette.grey[400]}:{borderColor:(n.vars||n).palette[e.color].main})))),vo=p.forwardRef(function(n,a){const r=re({props:n,name:"MuiTimelineDot"}),{className:o,color:i="grey",variant:c="filled"}=r,l=le(r,mo),h=e1({},r,{color:i,variant:c}),u=go(h);return t(fo,e1({className:oe(u.root,o),ownerState:h,ref:a},l))}),tt=vo;function yo(e){return ae("MuiTimelineConnector",e)}z1("MuiTimelineConnector",["root"]);const bo=["className"],Co=e=>{const{classes:n}=e;return ie({root:["root"]},yo,n)},So=d("span",{name:"MuiTimelineConnector",slot:"Root",overridesResolver:(e,n)=>n.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.grey[400],flexGrow:1})),xo=p.forwardRef(function(n,a){const r=re({props:n,name:"MuiTimelineConnector"}),{className:o}=r,i=le(r,bo),c=r,l=Co(c);return t(So,e1({className:oe(l.root,o),ownerState:c,ref:a},i))}),p3=xo,wo=d(R1)(({theme:e})=>({marginTop:e.spacing(2),borderRadius:`${e.shape.borderRadiusLarge}px`})),To=d(w)(({theme:e})=>({padding:e.spacing(2),marginBottom:`-${e.spacing(4)}`})),Ao=d(Q0)(()=>({[`& .${et.root}:before`]:{flex:0,padding:0}})),Eo=({state:e})=>{const n=r=>["Draft","In review","Approved","Applied"].map(i=>({title:i,active:i===r}));return t(wo,{elevation:0,children:t(To,{children:t(Ao,{children:(()=>{const r=n(e),o=r.findIndex(c=>c.active),i=o!==-1?o:null;return e==="Cancelled"?Po(r):Ro(r,i)})()})})})},Ro=(e,n)=>e.map(({title:a},r)=>{const o=r<e.length-1,i=t(S,{condition:o,show:t(p3,{})});return n!==null&&n>=r?Ne("success",a,i):n!==null&&n+1===r?Ne("primary",a,i,{variant:"outlined"}):Ne("grey",a,i)}),Po=e=>e.map(({title:n},a)=>{const r=a<e.length-1;return Ne("grey",n,t(S,{condition:r,show:t(p3,{})}))}),Ne=(e,n,a,r={})=>s(He,{children:[s(We,{children:[t(tt,{color:e,...r}),a]}),t(X0,{children:n})]},n),ko=d(w)(({theme:e})=>({marginBottom:e.spacing(2)})),Zo=({actualApprovals:e,minApprovals:n})=>s(J,{children:["Reviewers"," ",s(D,{component:"span",color:"text.secondary",children:["(",e,"/",n," required)"]})]}),Io=({header:e,children:n})=>s(R1,{elevation:0,sx:a=>({marginTop:a.spacing(2),padding:a.spacing(4),borderRadius:r=>`${r.shape.borderRadiusLarge}px`}),children:[t(ko,{children:e}),t(D,{variant:"body1",color:"text.secondary",children:t(S,{condition:ye.Children.count(n)>0,show:"Approved by",elseShow:"No approvals yet"})}),n]}),jo=e=>p.createElement("svg",{width:18,height:14,viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p.createElement("path",{d:"M0.59 2.00016L2 0.590157L5.41 4.00016L4 5.41016L0.59 2.00016ZM13 11.5002L13 8.00016L7.41 8.00016L2 13.4102L0.59 12.0002L6.59 6.00016L13 6.00016L13 2.50016L17.5 7.00016L13 11.5002Z",fill:"currentColor"})),u3=()=>e=>e!=="color"&&e!=="sx"&&e!=="approved"&&e!=="border"&&e!=="bgColor"&&e!=="svgColor",U1=d(w)(({theme:e})=>({display:"flex",alignItems:"center"})),Do=d(D0)(({theme:e})=>({color:e.palette.error.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),F3=d(D0)(({theme:e})=>({color:e.palette.warning.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),B2=d(O0)(({theme:e})=>({color:e.palette.success.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),Oo=d(w)(({theme:e})=>({display:"flex",marginTop:e.spacing(2)})),$o=d(w,{shouldForwardProp:u3()})(({theme:e,bgColor:n,svgColor:a})=>({borderRadius:`${e.shape.borderRadiusMedium}px`,backgroundColor:n,padding:e.spacing(1,2),marginRight:e.spacing(2),height:"45px",width:"45px",display:"flex",alignItems:"center",justifyContent:"center",svg:{color:a}})),nt=d(h0)(({theme:e})=>({margin:e.spacing(2.5,0)})),Bo=d(w,{shouldForwardProp:u3()})(({theme:e,border:n})=>({borderRadius:`${e.shape.borderRadiusLarge}px`,border:n,padding:e.spacing(3),width:"100%"})),q1=d(D,{shouldForwardProp:u3()})(({theme:e,color:n})=>({fontWeight:"bold",color:n})),Fo=(e,n)=>e==="Approved"?`2px solid ${n.palette.success.main}`:e==="Applied"?`2px solid ${n.palette.primary.main}`:`1px solid ${n.palette.tertiary.main}`,_o=(e,n)=>e==="Approved"?{bgColor:n.palette.success.main,svgColor:n.palette.tertiary.background}:e==="Applied"?{bgColor:n.palette.primary.main,svgColor:n.palette.tertiary.background}:{bgColor:n.palette.tableHeaderBackground,svgColor:n.palette.neutral.main},Vo=({changeRequest:e})=>{const n=d1();return s(Oo,{children:[t($o,{..._o(e.state,n),children:t(jo,{style:{transform:"scale(1.5)"}})}),t(Bo,{sx:{backgroundColor:e.state==="In review"?n.palette.warning.light:"initial"},border:Fo(e.state,n),children:t(Lo,{changeRequest:e})})]})},Lo=({changeRequest:e})=>{const{state:n}=e;return n?n==="Approved"?t(zo,{}):n==="Applied"?t(Ho,{}):n==="Cancelled"?t(Wo,{}):t(Mo,{minApprovals:e.minApprovals}):null},zo=()=>{const e=d1();return s(J,{children:[s(U1,{children:[t(B2,{}),s(w,{children:[t(q1,{color:e.palette.success.main,children:"Changed approved"}),t(D,{children:"One approving review from requested approvers"})]})]}),t(nt,{}),s(U1,{children:[t(B2,{}),t(w,{children:t(q1,{color:e.palette.success.main,children:"Changes are ready to be applied"})})]})]})},Mo=({minApprovals:e})=>{const n=d1();return s(J,{children:[s(U1,{children:[t(F3,{}),s(w,{children:[t(q1,{color:n.palette.warning.main,children:"Review required"}),s(D,{children:["At least ",e," approval(s) must be submitted before changes can be applied"]})]})]}),t(nt,{}),s(U1,{children:[t(F3,{}),t(q1,{color:n.palette.warning.main,children:"Apply changes is blocked"})]})]})},Ho=()=>{const e=d1();return t(J,{children:s(U1,{children:[t(B2,{sx:{color:e.palette.primary.main}}),t(w,{children:t(q1,{color:e.palette.primary.main,children:"Changes applied"})})]})})},Wo=()=>{const e=d1();return t(J,{children:s(U1,{children:[t(Do,{}),t(w,{children:t(q1,{color:e.palette.error.main,children:"Changes cancelled"})})]})})};var h3={},No=X1;Object.defineProperty(h3,"__esModule",{value:!0});var at=h3.default=void 0,Uo=No(Q1()),qo=ee,Go=(0,Uo.default)((0,qo.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");at=h3.default=Go;const Ko=({disabled:e})=>{const{isAdmin:n}=p.useContext(se),a=G("projectId"),r=G("id"),{user:o}=$0(),{refetchChangeRequest:i,data:c}=J0(a,r),{refetch:l}=J2(a),{setToastApiError:h,setToastData:u}=g1(),{changeState:f}=Y2(),[g,y]=ye.useState(!1),T=ye.useRef(null),E=async()=>{try{await f(a,Number(r),{state:"Approved"}),i(),l(),u({type:"success",title:"Success",text:"Changes approved"})}catch(A){h(C1(A))}},P=()=>{y(A=>!A)},$=A=>{T.current&&T.current.contains(A.target)||y(!1)};return s(ye.Fragment,{children:[t(Q2,{variant:"contained",disabled:e||(c==null?void 0:c.createdBy.id)===(o==null?void 0:o.id)&&!n,"aria-controls":g?"review-options-menu":void 0,"aria-expanded":g?"true":void 0,"aria-label":"review changes","aria-haspopup":"menu",onClick:P,ref:T,endIcon:t(at,{}),permission:c4,projectId:a,environmentId:c==null?void 0:c.environment,children:"Review changes"}),t(A0,{sx:{zIndex:1},open:g,anchorEl:T.current,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:A,placement:B})=>t(l4,{...A,style:{transformOrigin:B==="bottom"?"center top":"center bottom"},children:t(R1,{children:t(E0,{onClickAway:$,children:t(U2,{id:"review-options-menu",autoFocusItem:!0,children:t(ve,{onClick:E,children:"Approve changes"})})})})})})]})},Jo=d(w)(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",marginTop:e.spacing(1.5),gap:e.spacing(1)})),Yo=d(O0)(({theme:e})=>({color:e.palette.success.main,marginLeft:"auto"})),Qo=({name:e,imageUrl:n})=>s(Jo,{children:[t(Y0,{src:n}),t(D,{variant:"body1",color:"text.primary",sx:{maxWidth:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:e}),t(Yo,{})]}),rt=d(Te)(({theme:e})=>({height:"32px",width:"32px",marginTop:e.spacing(1),marginRight:e.spacing(2)})),Xo=d(w)(({theme:e})=>({display:"flex",marginTop:e.spacing(2)})),e5=d(R1)(({theme:e})=>({width:"100%",padding:e.spacing(1.5,3,2.5,3),backgroundColor:e.palette.neutral.light,borderRadius:e.shape.borderRadiusLarge,borderColor:e.palette.divider})),t5=d(w)(({theme:e})=>({display:"flex",borderBottom:"1px solid",borderColor:e.palette.dividerAlternative,paddingBottom:e.spacing(1.5)})),n5=({comment:e})=>s(Xo,{children:[t(te,{title:e.createdBy.username,children:t(rt,{src:e.createdBy.imageUrl})}),s(e5,{variant:"outlined",children:[t(t5,{children:s(w,{children:[t("strong",{children:e.createdBy.username})," ",s(D,{color:"text.secondary",component:"span",children:["commented"," ",t(K2,{minPeriod:60,date:new Date(e.createdAt)})]})]})}),t(w,{sx:{paddingTop:2.5},children:e.text})]})]}),a5=d(w)(({theme:e})=>({display:"flex",marginTop:e.spacing(2),marginBottom:e.spacing(1)})),r5=({user:e,commentText:n,onTypeComment:a,children:r})=>s(J,{children:[s(a5,{children:[t(te,{title:(e==null?void 0:e.name)||(e==null?void 0:e.username),children:t(rt,{src:(e==null?void 0:e.imageUrl)||""})}),t(qe,{variant:"outlined",placeholder:"Add your comment here",fullWidth:!0,multiline:!0,minRows:2,onChange:o=>a(o.target.value),value:n})]}),t(w,{sx:{display:"flex",justifyContent:"flex-end"},children:r})]}),o5=d(w)(({theme:e})=>({width:"30%",display:"flex",flexDirection:"column",[e.breakpoints.down("sm")]:{width:"100%"}})),i5=d(R1)(({theme:e})=>({marginTop:e.spacing(2),marginLeft:e.spacing(2),width:"70%",padding:e.spacing(1,2),borderRadius:e.shape.borderRadiusLarge,[e.breakpoints.down("sm")]:{marginLeft:0,width:"100%"}})),s5=d(w)(({theme:e})=>({marginTop:e.spacing(3),display:"flex",justifyContent:"flex-end"})),c5=d(w)(({theme:e})=>({padding:e.spacing(2)})),l5=d(w)(({theme:e})=>({display:"flex",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),d5=()=>{var V,W;const e=G("projectId"),[n,a]=p.useState(!1),{user:r}=$0(),{isAdmin:o}=p.useContext(se),[i,c]=p.useState(""),l=G("id"),{data:h,refetchChangeRequest:u}=J0(e,l),{changeState:f,addComment:g}=Y2(),{refetch:y}=J2(e),{setToastData:T,setToastApiError:E}=g1(),{isChangeRequestConfigured:P}=o2(e);if(!h)return null;const $=P(h.environment),A=async()=>{try{await f(e,Number(l),{state:"Applied"}),u(),y(),T({type:"success",title:"Success",text:"Changes applied"})}catch(_){E(C1(_))}},B=async()=>{try{await g(e,l,i),c(""),u(),T({type:"success",title:"Success",text:"Comment added"})}catch(_){E(C1(_))}},H=async()=>{try{await f(e,Number(l),{state:"Cancelled"}),a(!1),u(),y(),T({type:"success",title:"Success",text:"Changes cancelled"})}catch(_){E(C1(_))}},F=()=>a(!0),M=()=>a(!1),b=(h==null?void 0:h.createdBy.id)===(r==null?void 0:r.id)&&h.state==="In review"&&!o,Z=h.approvals.some(_=>_.createdBy.id===(r==null?void 0:r.id));return s(J,{children:[t(Lr,{changeRequest:h}),s(l5,{children:[s(o5,{children:[t(Eo,{state:h.state}),t(Io,{header:t(Zo,{actualApprovals:h.approvals.length,minApprovals:h.minApprovals}),children:(V=h.approvals)==null?void 0:V.map(_=>t(Qo,{name:_.createdBy.username||"Unknown user",imageUrl:_.createdBy.imageUrl},_.createdBy.username))})]}),t(i5,{elevation:0,children:s(c5,{children:["Requested Changes (",d4(h),")",t(p4,{changeRequest:h,onRefetch:u}),(W=h.comments)==null?void 0:W.map(_=>t(n5,{comment:_},_.id)),t(r5,{user:r,commentText:i,onTypeComment:c,children:t(m1,{variant:"outlined",onClick:B,disabled:!$||i.trim().length===0||i.trim().length>1e3,children:"Comment"})}),t(S,{condition:b,show:t(F1,{sx:_=>({marginTop:_.spacing(1.5)}),severity:"info",children:"You can not approve your own change request"})}),t(Vo,{changeRequest:h}),s(s5,{children:[t(S,{condition:h.state==="In review"&&!Z,show:t(Ko,{disabled:!$})}),t(S,{condition:h.state==="Approved",show:t(Q2,{variant:"contained",onClick:A,projectId:e,permission:u4,environmentId:h.environment,disabled:!$,children:"Apply changes"})}),t(S,{condition:h.state!=="Applied"&&h.state!=="Cancelled"&&(h.createdBy.id===(r==null?void 0:r.id)||o),show:t(m1,{sx:{marginLeft:_=>_.spacing(2)},variant:"outlined",onClick:F,children:"Cancel changes"})})]})]})}),s(r2,{open:n,onClick:H,onClose:M,title:"Cancel change request",children:[t(D,{sx:{marginBottom:2},children:"You are about to cancel this change request"}),t(D,{variant:"body2",sx:_=>({color:_.palette.neutral.dark}),children:"The change request will be moved to closed, and it can't be applied anymore. Once cancelled, the change request can't be reopened."})]})]})]})},p5=({value:e})=>{const n=()=>e?t(j0,{state:e}):null;return e?t(t1,{children:n()}):t(t1,{})},u5=({value:e})=>t(t1,{children:t(l2,{user:e,sx:{maxWidth:"30px",maxHeight:"30px",alignSelf:"left"}})}),h5=d("div")(({theme:e})=>({display:"flex",flexDirection:"row",margin:0})),m5=({value:e,row:{original:n}})=>{const a=G("projectId"),{id:r,features:o}=n,i=h4(),c=`/projects/${a}/change-requests/${r}`;return e?s(t1,{sx:{minWidth:"200px"},children:[t(h5,{children:s(D,{component:"span",variant:"body2",color:i.palette.text.secondary,children:[t(S0,{component:Z1,underline:"hover",to:c,sx:l=>({paddingTop:l.spacing(.2),marginRight:l.spacing(1),"&:hover":{textDecoration:"underline"}}),children:"Change request"}),`#${r}`]})}),s("span",{children:[`${o==null?void 0:o.length}`," ",o.length<=1?"update":"updates"]})]}):t(t1,{})},g5=g0()(e=>({header:{padding:e.spacing(0,4)},bodyClass:{padding:e.spacing(4),overflowX:"auto"}})),f5={id:"createdAt"},v5=d("div")({paddingLeft:0,paddingBottom:0}),y5=d(Ue)(({theme:e})=>({textTransform:"none",width:"auto",fontSize:e.fontSizes.bodySize,[e.breakpoints.up("md")]:{minWidth:160}})),b5=({changeRequests:e=[],loading:n,projectId:a})=>{var K,v;const{classes:r}=g5(),o=u1(m4.breakpoints.down("md")),[i,c]=G2(),[l,h]=p.useState(i.get("search")||""),{value:u,setValue:f}=Se(`${a}:ProjectChangeRequest`,f5),[g,y]=p.useMemo(()=>{const x=e.filter(k=>k.state!=="Cancelled"&&k.state!=="Applied"),O=e.filter(k=>k.state==="Cancelled"||k.state==="Applied");return[x,O]},[e]),T=[{title:"Change requests",data:g},{title:"Closed",data:y}],[E,P]=p.useState(0),$=p.useMemo(()=>[{id:"Title",Header:"Title",width:100,canSort:!0,accessor:"id",Cell:m5},{Header:"By",accessor:"createdBy",maxWidth:50,canSort:!1,Cell:u5,align:"center"},{Header:"Submitted",accessor:"createdAt",searchable:!0,maxWidth:100,Cell:Ge,sortType:"alphanumeric"},{Header:"Environment",accessor:"environment",searchable:!0,maxWidth:100,Cell:t1},{Header:"Status",accessor:"state",searchable:!0,minWidth:150,width:150,Cell:p5}],[a]),{data:A,getSearchText:B,getSearchContext:H}=s2($,l,(K=T[E])==null?void 0:K.data),F=p.useMemo(()=>n?g4:A,[A,n]),[M]=p.useState(()=>({sortBy:[{id:i.get("sort")||u.id,desc:i.has("order")?i.get("order")==="desc":u.desc}],hiddenColumns:[]})),{headerGroups:b,rows:Z,state:{sortBy:V},prepareRow:W,setHiddenColumns:_,getTableProps:c1,getTableBodyProps:n1}=Q.useTable({columns:$,data:F,initialState:M,sortTypes:we,autoResetHiddenColumns:!1,disableSortRemove:!0,autoResetSortBy:!1,defaultColumn:{Cell:t1}},Q.useSortBy);return xe([{condition:o,columns:["createdBy"]}],_,$),p.useEffect(()=>{if(n)return;const x={};x.sort=V[0].id,V[0].desc&&(x.order="desc"),l&&(x.search=l),c(x,{replace:!0}),f(O=>({...O,id:V[0].id,desc:V[0].desc||!1}))},[n,V,l,c]),s(l1,{isLoading:n,bodyClass:r.bodyClass,headerClass:r.header,header:t(o1,{titleElement:t(v5,{children:t(X2,{value:(v=T[E])==null?void 0:v.title,indicatorColor:"primary",textColor:"primary",variant:"scrollable",allowScrollButtonsMobile:!0,children:T.map((x,O)=>t(y5,{label:`${x.title} (${x.data.length})`,value:x.title,onClick:()=>P(O)},x.title))})}),actions:t(S1,{initialValue:l,onChange:h,hasFilters:!0,getSearchContext:H})}),children:[t(Y1,{value:B(l),children:s(Xe,{...c1(),children:[t(e2,{headerGroups:b}),t(t2,{...n1(),children:Z.map(x=>(W(x),t(n2,{hover:!0,...x.getRowProps(),children:x.cells.map(O=>t(a2,{...O.getCellProps(),padding:"none",children:O.render("Cell")}))})))})]})}),t(S,{condition:Z.length===0,show:()=>t(S,{condition:(l==null?void 0:l.length)>0,show:s(h1,{children:["No changes found matching “",l,"”"]}),elseShow:t(h1,{children:"None of the changes were submitted yet."})})})]})},C5=()=>{const e=G("projectId"),n=I1(e),{isOss:a,isPro:r}=s1();E1(`Change requests – ${n}`);const{changeRequests:o,loading:i}=U0(e);return a()||r()?t(l1,{sx:{justifyContent:"center"},children:t(e3,{feature:"change-requests"})}):t(b5,{changeRequests:o,projectId:e,loading:i})};var z=(e=>(e.USER="USERS",e.GROUP="GROUPS",e.SERVICE_ACCOUNT="SERVICE ACCOUNTS",e))(z||{});const de=(e,n={})=>{const a=_1(`api/admin/projects/${e}/access`),r=()=>fetch(a,{method:"GET"}).then(V1("project access")).then(g=>g.json()),o=`api/admin/projects/${e}/users`,{data:i,error:c}=K1(o,r,n),[l,h]=p.useState(!c&&!i),u=()=>{R0(o)};return p.useEffect(()=>{h(!c&&!i)},[i,c]),{access:p.useMemo(()=>{if(i)return S5({roles:i.roles,users:i.users.filter(({accountType:g})=>!g||g==="User"),serviceAccounts:i.users.filter(({accountType:g})=>g==="Service Account"),groups:(i==null?void 0:i.groups.map(g=>({...g,users:J4(g.users??[])})))??[]})},[i]),error:c,loading:l,refetchProjectAccess:u}},S5=e=>{const n=e.users||[],a=e.serviceAccounts||[],r=e.groups||[];return{...e,rows:[...n.map(o=>({entity:o,type:"USERS"})),...a.map(o=>({entity:o,type:"SERVICE ACCOUNTS"})),...r.map(o=>({entity:o,type:"GROUPS"}))]}},x5=d(l1)(({theme:e})=>({height:"100vh",overflow:"auto",padding:e.spacing(7.5,6),[e.breakpoints.down("md")]:{padding:e.spacing(4,2)},"& .header":{padding:e.spacing(0,0,2,0)},"& .body":{padding:e.spacing(3,0,0,0)},borderRadius:`${e.spacing(1.5,0,0,1.5)} !important`})),w5=d("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span":{color:e.palette.text.secondary,fontSize:e.fontSizes.bodySize}})),_3={id:"joinedAt"},w2=[{Header:"Avatar",accessor:"imageUrl",Cell:({row:{original:e}})=>t(t1,{children:t(l2,{user:e})}),maxWidth:85,disableSortBy:!0},{id:"name",Header:"Name",accessor:e=>e.name||"",Cell:be,minWidth:100,searchable:!0},{id:"username",Header:"Username",accessor:e=>e.username||e.email,Cell:be,minWidth:100,searchable:!0},{id:"joined",Header:"Joined",accessor:"joinedAt",Cell:i2,sortType:"date",maxWidth:150},{id:"lastLogin",Header:"Last login",accessor:e=>e.seenAt||"",Cell:({row:{original:e}})=>t(Ge,{value:e.seenAt,emptyText:"Never",title:n=>`Last login: ${n}`}),sortType:"date",maxWidth:150}],T5=["imageUrl","name","joined","lastLogin"],A5=({open:e,setOpen:n,group:a,projectId:r,subtitle:o,onEdit:i,onRemove:c})=>{const l=d1(),h=u1(l.breakpoints.down("md")),[u]=p.useState(()=>({sortBy:[{id:_3.id,desc:_3.desc}]})),[f,g]=p.useState(""),{data:y,getSearchText:T,getSearchContext:E}=s2(w2,f,(a==null?void 0:a.users)??[]),{headerGroups:P,rows:$,prepareRow:A,setHiddenColumns:B}=Q.useTable({columns:w2,data:y,initialState:u,sortTypes:we,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},Q.useSortBy,Q.useFlexLayout);return xe([{condition:h,columns:T5}],B,w2),t(d2,{open:e,onClose:()=>{n(!1)},label:(a==null?void 0:a.name)||"Group",children:s(x5,{header:t(o1,{secondary:!0,titleElement:s(w5,{children:[a==null?void 0:a.name," (",$.length<y.length?`${$.length} of ${y.length}`:y.length,")",t("span",{children:o})]}),actions:s(J,{children:[t(S,{condition:!h,show:s(J,{children:[t(S1,{initialValue:f,onChange:g,hasFilters:!0,getSearchContext:E}),t(o1.Divider,{})]})}),t($1,{permission:A1,projectId:r,tooltipProps:{title:"Edit group access"},onClick:i,children:t(t3,{})}),t($1,{permission:A1,projectId:r,tooltipProps:{title:"Remove group access"},onClick:c,children:t(n3,{})})]}),children:t(S,{condition:h,show:t(S1,{initialValue:f,onChange:g,hasFilters:!0,getSearchContext:E})})}),children:[t(Y1,{value:T(f),children:t(c2,{rows:$,headerGroups:P,prepareRow:A})}),t(S,{condition:$.length===0,show:t(S,{condition:(f==null?void 0:f.length)>0,show:s(h1,{children:["No users found matching “",f,"” in this group."]}),elseShow:t(h1,{children:"This group is empty. Get started by adding a user to the group."})})})]})})},E5=({permissions:e})=>t(J,{children:e==null?void 0:e.filter(n=>!n.environment).map(n=>n.displayName).sort().map(n=>t("p",{children:n},n))}),R5=({environment:e,permissions:n})=>t(J,{children:[...new Set(n.filter(a=>a.environment===e).map(a=>a.displayName))].sort().map(a=>t("p",{children:a},`${e}-${a}`))}),P5=d("div",{shouldForwardProp:e=>e!=="roleId"&&e!=="popover"&&e!=="sx"})(({theme:e,popover:n})=>({width:"100%",maxWidth:e.spacing(50),padding:e.spacing(3),backgroundColor:n?e.palette.background.paper:e.palette.neutral.light,color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody,borderRadius:e.shape.borderRadiusMedium})),T2=d("div")(({theme:e})=>({"& p:last-child":{marginBottom:e.spacing(2)}})),V3=d("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:e.fontSizes.smallBody,fontWeight:e.fontWeight.bold,marginBottom:e.spacing(2)})),L3=d("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:e.fontSizes.smallBody,marginBottom:e.spacing(1)})),ot=p.forwardRef(({roleId:e,projectId:n,className:a,sx:r,...o},i)=>{var g;const{role:c}=Y4(e.toString()),{access:l}=de(n),h=l==null?void 0:l.roles.find(y=>y.id===e),u=p.useMemo(()=>{var T;const y=new Set;return(T=c.permissions)==null||T.filter(E=>E.environment).forEach(E=>{y.add(E.environment)}),[...y].sort()},[c]),f=p.useMemo(()=>{var y;return(y=c.permissions)==null?void 0:y.filter(T=>!T.environment)},[c]);return t(P5,{className:a,sx:r,...o,ref:i,children:t(S,{condition:((g=c.permissions)==null?void 0:g.length)>0,show:s(J,{children:[t(S,{condition:Boolean(f==null?void 0:f.length),show:s(J,{children:[t(V3,{children:"Project permissions"}),t(T2,{children:t(E5,{permissions:c.permissions})})]})}),t(S,{condition:Boolean(u.length),show:s(J,{children:[t(V3,{children:"Environment permissions"}),u.map(y=>s("div",{children:[t(L3,{children:y}),t(T2,{children:t(R5,{environment:y,permissions:c.permissions})})]},y))]})})]}),elseShow:s(J,{children:[t(L3,{children:h==null?void 0:h.name}),t(T2,{children:h==null?void 0:h.description})]})})})}),k5=d("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),z3=d("p")(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(1)})),M3=d("div")(({theme:e})=>({"& > div:first-of-type":{width:"100%",maxWidth:e.spacing(50),marginBottom:e.spacing(2)}})),Z5=d("div")(({theme:e})=>({marginTop:e.spacing(6),display:"flex",justifyContent:"flex-end"})),I5=d(m1)(({theme:e})=>({marginLeft:e.spacing(3)})),j5=d("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:last-of-type":{color:e.palette.text.secondary}})),D5=d("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:first-of-type":{color:e.palette.text.secondary}})),O5=d("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:last-of-type":{fontSize:e.fontSizes.smallerBody,color:e.palette.text.secondary}})),m3=({selected:e,accesses:n,users:a,serviceAccounts:r,groups:o,roles:i})=>{const{uiConfig:c}=s1(),{flags:l}=c,h=l.UG?"user / group":"user",u=G("projectId"),{refetchProjectAccess:f}=de(u),{addAccessToProject:g,changeUserRole:y,changeGroupRole:T,loading:E}=M2(),P=Boolean(e),{setToastData:$,setToastApiError:A}=g1(),B=L1(),H=[...o.filter(v=>P||!n.some(({entity:{id:x},type:O})=>v.id===x&&O===z.GROUP)).map(v=>({id:v.id,entity:v,type:z.GROUP})),...a.filter(v=>P||!n.some(({entity:{id:x},type:O})=>v.id===x&&O===z.USER)).sort((v,x)=>{const O=v.name||v.username||"",k=x.name||x.username||"";return O.localeCompare(k)}).map(v=>({id:v.id,entity:v,type:z.USER})),...r.filter(v=>P||!n.some(({entity:{id:x},type:O})=>v.id===x&&O===z.SERVICE_ACCOUNT)).sort((v,x)=>{const O=v.name||v.username||"",k=x.name||x.username||"";return O.localeCompare(k)}).map(v=>({id:v.id,entity:v,type:z.SERVICE_ACCOUNT}))],[F,M]=p.useState(()=>H.filter(({id:v,type:x})=>v===(e==null?void 0:e.entity.id)&&x===(e==null?void 0:e.type))),[b,Z]=p.useState(i.find(({id:v})=>v===(e==null?void 0:e.entity.roleId))??null),V={users:F==null?void 0:F.filter(({type:v})=>v===z.USER||v===z.SERVICE_ACCOUNT).map(({id:v})=>({id:v})),groups:F==null?void 0:F.filter(({type:v})=>v===z.GROUP).map(({id:v})=>({id:v}))},W=async v=>{if(v.preventDefault(),!!K)try{P?(e==null?void 0:e.type)===z.USER||(e==null?void 0:e.type)===z.SERVICE_ACCOUNT?await y(u,b.id,e.entity.id):(e==null?void 0:e.type)===z.GROUP&&await T(u,b.id,e.entity.id):await g(u,b.id,V),f(),B(N1),$({title:`${F.length} ${F.length===1?"access":"accesses"} ${P?"edited":"assigned"} successfully`,type:"success"})}catch(x){A(C1(x))}},_=()=>P?`curl --location --request ${P?"PUT":"POST"} '${c.unleashUrl}/api/admin/projects/${u}/${(e==null?void 0:e.type)===z.USER||(e==null?void 0:e.type)===z.SERVICE_ACCOUNT?"users":"groups"}/${e==null?void 0:e.entity.id}/roles/${b==null?void 0:b.id}' \\
|
|
1
|
+
import{c as G1,j as t,cK as xt,cL as wt,s as d,cl as Tt,ci as Ne,g as Qe,r as p,dS as At,l as t1,d as Q,f as s,S as Xe,h as e2,i as t2,k as n2,bV as Et,aY as a2,A as F1,aP as K1,aQ as _1,aR as V1,dT as p0,aG as G,dU as k1,bO as E1,a2 as m1,cc as J1,at as M2,H as l1,dV as Rt,R as ye,cR as H2,bA as W2,dW as A1,al as o1,V as C1,ak as c1,C as S,aM as Z1,X as Y1,W as h1,cg as Pt,K as r2,dX as Zt,a as w,dY as g1,dZ as kt,bB as It,d_ as Q1,d$ as X1,e0 as ee,b7 as te,m as B1,e1 as jt,P as N2,dp as U2,e2 as C2,cm as q2,a8 as fe,e3 as S2,bb as Ve,dE as Dt,bd as Le,T as D,co as Ot,aL as u0,af as h0,bF as m0,u as d1,N as u1,e4 as $t,F as J,e5 as g0,dm as f0,bs as Bt,ar as L1,L as G2,aT as o2,e6 as Ft,bz as _t,cj as Vt,a4 as b1,e7 as Lt,e8 as zt,e9 as v0,ea as y0,O as b0,eb as Mt,c8 as i2,Q as s2,U as Ce,d0 as Ht,ch as Wt,bE as C0,Y as c2,ec as Nt,bC as S0,D as x0,aO as Ut,cd as qt,M as w0,ed as Gt,ah as I1,ee as T0,ag as A0,ef as E0,ai as Kt,eg as Jt,eh as Yt,aS as R0,ei as K2,a1 as Qt,ej as P0,ek as Xt,el as e4,em as t4,en as n4,bw as Z0,eo as k0,ep as I0,e as Se,eq as a4,er as r4,aI as o4,bi as i4,es as xe,et as j0,eu as s4,az as ne,aA as z1,aJ as R1,aB as ae,aE as re,aF as oe,ev as c4,c9 as ve,bM as D0,ew as O0,ex as l4,bh as ie,aq as $0,a$ as J2,a_ as Y2,aX as Q2,ey as d4,ez as p4,ac as Ue,eA as u4,eB as h4,a9 as S1,eC as m4,da as l2,bo as g4,c7 as f4,di as qe,eD as v4,cq as X2,eE as e3,bR as d2,aK as $1,aN as t3,aW as n3,ay as N1,au as B0,eF as y4,ad as b3,eG as b4,d9 as Oe,eH as C4,eI as S4,bH as x4,bI as w4,c3 as T4,eJ as A4,eK as E4,eL as R4,bP as p2,bQ as r1,bK as we,eM as P4,bZ as F0,dR as _0,Z as a3,aw as Z4,eN as k4,cV as I4,eO as C3,ck as V0,eP as j4,d6 as L0,eQ as N,eR as S3,eS as D4,eT as O4,eU as $4,eV as B4,eW as F4,dd as _4,eX as V4,eY as L4,eZ as z4,e_ as M4}from"./index-1d8518d6.js";import{u as H4,E as W4,V as N4,a as U4,c as q4,b as G4,C as K4,U as J4}from"./FeatureArchiveDialog-31430c0e.js";import{a as Y4}from"./index-c5afb04d.js";import{m as Q4,h as X4,b as en,c as tn,d as nn,e as an,E as rn,f as on,u as sn,a as cn,R as ln,C as dn,A as pn,B as z0}from"./useProjectRole-9a28ceaf.js";import{E as un}from"./Error-2a87926a.js";const hn=G1(t("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward"),mn=G1(t("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"}),"CallMade"),gn=G1(t("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),fn=G1(t("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),"Pending"),vn=G1(t("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),yn=G1(t("path",{d:"M19 9h-2v6.59L5.41 4 4 5.41 15.59 17H9v2h10V9z"}),"SouthEast");function bn(e,n){xt(2,arguments);var a=wt(n);return Y4(e,-a)}const $e=d("div")(()=>({display:"flex"})),Cn=d("div")(()=>({display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"})),Sn=d("div")(()=>({display:"flex",flexDirection:"column"})),xn=d("span")(({theme:e})=>({fontSize:e.typography.h1.fontSize,textOverflow:"ellipsis",whiteSpace:"nowrap"})),O2=d("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,fontWeight:"normal"})),x3=d(O2)(({theme:e})=>({color:e.palette.neutral.dark})),wn=d(Tt)(({theme:e})=>({marginLeft:e.spacing(-1.5)})),Tn=d("div")(({theme:e})=>({backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadiusLarge,marginBottom:e.spacing(2)})),An=d("div")(({theme:e})=>({padding:e.spacing(2.5,5),display:"flex",flexDirection:"column",alignItems:"start"})),w3=d("span")(({theme:e})=>({margin:0,width:"100%",fontSize:e.fontSizes.mainHeader,fontWeight:"bold",display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(2)})),En=d("div")(({theme:e})=>({width:"100%",backgroundColor:e.palette.tertiary.light,height:"1px"})),Rn=d("div")(({theme:e})=>({padding:e.spacing(0,4)})),Pn=d(Ne)(({theme:e})=>({textTransform:"none",fontSize:e.fontSizes.bodySize,flexGrow:1,flexBasis:0,[e.breakpoints.down("md")]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[e.breakpoints.up("md")]:{minWidth:160}})),Zn=e=>e.reduce((n,a)=>a.enabled?n+1:n,0),kn=d(Qe)(({theme:e})=>({marginTop:e.spacing(3)})),In=d("p",{shouldForwardProp:e=>e!=="warning"})(({theme:e,warning:n})=>({color:n?e.palette.error.dark:e.palette.text.primary,textAlign:"center"})),jn=({environment:e,warnEnabledToggles:n})=>{const a=p.useMemo(()=>[{id:"Icon",width:"1%",Cell:({row:{original:h}})=>t(At,{environment:h})},{Header:"Name",accessor:"name",Cell:t1},{Header:"Type",accessor:"type",Cell:t1},{Header:"Toggles enabled",accessor:"projectEnabledToggleCount",Cell:({value:h})=>t(t1,{children:t(In,{warning:h>0,children:h===1?"1 toggle":`${h} toggles`})}),align:"center"}],[n]),{getTableProps:r,getTableBodyProps:o,headerGroups:i,rows:c,prepareRow:l}=Q.useTable({columns:a,data:[e],disableSortBy:!0});return s(kn,{...r(),rowHeight:"compact",children:[t(Xe,{headerGroups:i}),t(e2,{...o(),children:c.map(h=>(l(h),t(t2,{hover:!0,...h.getRowProps(),children:h.cells.map(u=>t(n2,{...u.getCellProps(),children:u.render("Cell")}))})))})]})},Dn=d("p")(({theme:e})=>({marginTop:e.spacing(3),marginBottom:e.spacing(1.5)})),On=d(Et)(()=>({width:"100%"})),$n=({environment:e,open:n,setOpen:a,onConfirm:r})=>{const[o,i]=p.useState("");return p.useEffect(()=>{i("")},[n]),s(a2,{title:"Hide environment and disable feature toggles?",open:n,primaryButtonText:"Hide environment and disable feature toggles",disabledPrimaryButton:(e==null?void 0:e.name)!==o,secondaryButtonText:"Close",onClick:r,onClose:()=>{a(!1)},children:[s(F1,{severity:"error",children:[t("strong",{children:"Danger!"})," Hiding an environment will disable all the feature toggles that are enabled in this environment and it can impact client applications connected to the environment."]}),t(jn,{environment:e}),s(Dn,{children:["In order to hide this environment, please enter the id of the environment in the textfield below:"," ",t("strong",{children:e==null?void 0:e.name})]}),t(On,{label:"Environment name",value:o,onChange:c=>i(c.target.value)})]})},Bn=e=>{const{data:n,error:a,mutate:r}=K1(_1(`api/admin/environments/project/${e}`),Fn),o=p.useMemo(()=>n||[],[n]),i=p.useCallback(async()=>{await r()},[r]);return{environments:o,refetchEnvironments:i,loading:!a&&!n,error:a}},Fn=async e=>(await fetch(e).then(V1("Environments")).then(a=>a.json())).environments.sort((a,r)=>a.sortOrder-r.sortOrder),_n=d(F1)(({theme:e})=>({marginBottom:e.spacing(4)})),Vn=d("div")(({theme:e})=>({display:"flex",flexWrap:"wrap",[e.breakpoints.down("sm")]:{justifyContent:"center"}})),Ln=d(p0)(({theme:e})=>({maxWidth:"400px",marginBottom:e.spacing(2)})),M0=()=>{const e=G("projectId"),n=k1(e);E1(`Project environments – ${n}`);const{setToastData:a,setToastApiError:r}=m1(),{environments:o,loading:i,error:c,refetchEnvironments:l}=Bn(e),{project:h,refetch:u}=J1(e),{removeEnvironmentFromProject:f,addEnvironmentToProject:g}=M2(),[y,T]=p.useState(),[E,P]=p.useState(!1),{isOss:$}=l1(),A=p.useMemo(()=>o.map(Z=>({...Z,projectVisible:h==null?void 0:h.environments.includes(Z.name)})),[o,h==null?void 0:h.environments]),B=()=>{l(),u()},H=()=>t(Ln,{onClick:B,text:"Error fetching environments"}),F=Z=>`Got an API error when trying to set the environment as ${Z?"visible":"hidden"}`,M=async Z=>{if(Z.projectVisible){if(Zn(A)>1){T(Z),P(!0);return}a({title:"One environment must be visible",text:"You must always have at least one visible environment per project",type:"error"})}else try{await g(e,Z.name),B(),a({title:"Environment set as visible",text:"Environment successfully set as visible.",type:"success"})}catch{r(F(!0))}},b=async()=>{if(y)try{await f(e,y.name),B(),a({title:"Environment set as hidden",text:"Environment successfully set as hidden.",type:"success"})}catch{r(F(!1))}finally{P(!1)}},k=Z=>$()&&Z==="default",V=p.useMemo(()=>[{Header:"Name",accessor:"name",Cell:({row:{original:Z}})=>t(Rt,{environment:Z})},{Header:"Type",accessor:"type",Cell:ye},{Header:"Project API tokens",accessor:Z=>Z.projectApiTokenCount===1?"1 token":`${Z.projectApiTokenCount} tokens`,Cell:t1},{Header:"Visible in project",accessor:"enabled",align:"center",width:1,Cell:({row:{original:Z}})=>t(H2,{children:t(W2,{tooltip:Z.projectVisible?"Hide environment and disable feature toggles":"Make it visible",size:"medium",disabled:k(Z.name),projectId:e,permission:A1,checked:Z.projectVisible,onChange:()=>M(Z)})}),disableGlobalFilter:!0}],[A]),{getTableProps:W,getTableBodyProps:_,headerGroups:s1,rows:n1,prepareRow:K,state:{globalFilter:v},setGlobalFilter:x}=Q.useTable({columns:V,data:A,disableSortBy:!0},Q.useGlobalFilter),O=t(o1,{title:`Environments (${n1.length})`,actions:t(C1,{initialValue:v,onChange:x})});return t(c1,{header:O,isLoading:i,children:s(Vn,{children:[t(S,{condition:Boolean(c),show:H()}),s(_n,{severity:"info",children:[t("strong",{children:"Important!"})," In order for your application to retrieve configured activation strategies for a specific environment, the application must use an environment specific API token. You can look up the environment-specific"," ",t(Z1,{to:"/admin/api",children:"API tokens here"}),".",t("br",{}),t("br",{}),"Your administrator can configure an environment-specific API token to be used in the SDK. If you are an administrator you can ",t(Z1,{to:"/admin/api",children:"create a new API token here"}),"."]}),t(Y1,{value:v,children:s(Qe,{...W(),rowHeight:"compact",children:[t(Xe,{headerGroups:s1}),t(e2,{..._(),children:n1.map(Z=>(K(Z),t(t2,{hover:!0,...Z.getRowProps(),children:Z.cells.map(L=>t(n2,{...L.getCellProps(),children:L.render("Cell")}))})))})]})}),t(S,{condition:n1.length===0,show:t(S,{condition:(v==null?void 0:v.length)>0,show:s(h1,{children:["No environments found matching “",v,"”"]}),elseShow:t(h1,{children:"No environments available. Get started by adding one."})})}),t($n,{environment:y,open:E,setOpen:P,onConfirm:b})]})})},zn={id:"archivedAt"},Mn=({projectId:e})=>{const{archivedFeatures:n,loading:a,refetchArchived:r}=Pt(e),{value:o,setValue:i}=r2(`${e}:ProjectFeaturesArchiveTable`,zn);return t(Zt,{title:"Project archive",archivedFeatures:n||[],loading:a,storedParams:o,setStoredParams:i,refetch:r,projectId:e})},Hn=()=>{const e=G("projectId"),n=k1(e);return E1(`Project archive – ${n}`),t(Mn,{projectId:e})},Wn=(e=[])=>{var a;const n=p.useRef(e);return(e==null?void 0:e.join(""))!==((a=n.current)==null?void 0:a.join(""))&&(n.current=e),n.current},Nn=d(w)(()=>({mx:"auto",...g1})),Un=({projectId:e,featureName:n,environmentName:a,value:r,onToggle:o})=>{const[i,c,l]=kt(r);return t(Nn,{children:t(W2,{checked:r,environmentId:a,projectId:e,permission:It,inputProps:{"aria-label":a},onClick:()=>{c(!i),o(e,n,a,!i).catch(l)},disabled:i!==r})},`${n}-${a}`)};var r3={},qn=X1;Object.defineProperty(r3,"__esModule",{value:!0});var H0=r3.default=void 0,Gn=qn(Q1()),Kn=ee,Jn=(0,Gn.default)((0,Kn.jsx)("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"}),"Archive");H0=r3.default=Jn;var o3={},Yn=X1;Object.defineProperty(o3,"__esModule",{value:!0});var W0=o3.default=void 0,Qn=Yn(Q1()),Xn=ee,ea=(0,Qn.default)((0,Xn.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"}),"WatchLater");W0=o3.default=ea;const ta=d(w)(({theme:e})=>({display:"flex",justifyContent:"center",paddingRight:e.spacing(2)})),na=({projectId:e,row:n,onOpenArchiveDialog:a,onOpenStaleDialog:r})=>{const[o,i]=p.useState(null),{original:{name:c,stale:l}}=n,h=Boolean(o),u=T=>{i(T.currentTarget)},f=()=>{i(null)},g=`feature-${c}-actions`,y=`${g}-menu`;return s(ta,{children:[t(te,{title:"Feature toggle actions",arrow:!0,describeChild:!0,children:t(B1,{id:g,"aria-controls":h?y:void 0,"aria-haspopup":"true","aria-expanded":h?"true":void 0,onClick:u,type:"button",children:t(jt,{})})}),t(N2,{id:y,anchorEl:o,open:h,onClose:f,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},disableScrollLock:!0,PaperProps:{sx:T=>({borderRadius:T.shape.borderRadius,padding:T.spacing(1,1.5)})},children:s(U2,{"aria-labelledby":g,children:[t(C2,{projectId:e,permission:q2,children:({hasAccess:T})=>s(fe,{sx:S2,onClick:f,disabled:!T,component:Z1,to:`/projects/${e}/features/${c}/strategies/copy`,children:[t(Ve,{children:t(Dt,{})}),t(Le,{children:t(D,{variant:"body2",children:"Copy"})})]})}),t(C2,{projectId:e,permission:Ot,children:({hasAccess:T})=>s(fe,{sx:S2,onClick:()=>{a(c),f()},disabled:!T,children:[t(Ve,{children:t(H0,{})}),t(Le,{children:t(D,{variant:"body2",children:"Archive"})})]})}),t(C2,{projectId:e,permission:u0,children:({hasAccess:T})=>s(fe,{sx:S2,onClick:()=>{f(),r({featureId:c,stale:l===!0})},disabled:!T,children:[t(Ve,{children:t(W0,{})}),t(Le,{children:s(D,{variant:"body2",children:[l?"Un-mark":"Mark"," as stale"]})})]})})]})})]})};var i3={},aa=X1;Object.defineProperty(i3,"__esModule",{value:!0});var N0=i3.default=void 0,ra=aa(Q1()),oa=ee,ia=(0,ra.default)((0,oa.jsx)("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2zM22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2zm-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2z"}),"ViewWeek");N0=i3.default=ia;const sa=d(w)(()=>({...g1,justifyContent:"center"})),ca=d(B1)(({theme:e})=>({margin:e.spacing(-1,0)})),la=d(w)(({theme:e})=>({...g1,justifyContent:"space-between",padding:e.spacing(1,1,0,4)})),da=d(fe)(({theme:e})=>({padding:e.spacing(0,2),margin:e.spacing(0,2),borderRadius:e.shape.borderRadius})),T3=d(h0)(({theme:e})=>({"&.MuiDivider-root.MuiDivider-fullWidth":{margin:e.spacing(.75,0)}})),pa=d(m0)(({theme:e})=>({padding:e.spacing(.75,1)})),ua={favorite:"Favorite"},ha=({allColumns:e,staticColumns:n=[],dividerBefore:a=[],dividerAfter:r=[],isCustomized:o=!1,setHiddenColumns:i})=>{const[c,l]=p.useState(null),h=d1(),u=u1(h.breakpoints.down("sm")),f=u1(h.breakpoints.down("md")),g=u1(h.breakpoints.down("lg"));p.useEffect(()=>{if(o)return;const A=(B,H=0)=>{const F=e.filter(({id:b})=>b.startsWith("environments.")!==!1).map(({id:b})=>b).slice(0,H),M=e.map(({id:b})=>b).filter(b=>!B.includes(b)).filter(b=>!n.includes(b)).filter(b=>!F.includes(b));i(M)};if(u)return A(["createdAt"]);if(f)return A(["createdAt"],1);if(g)return A(["type","createdAt"],1);A(["lastSeenAt","type","createdAt"],3)},[u,f,g]);const y=A=>{l(A.currentTarget)},T=()=>{l(null)},E=Boolean(c),P="columns-menu",$=`columns-menu-list-${P}`;return s(sa,{children:[t(te,{title:"Select columns",arrow:!0,describeChild:!0,children:t(ca,{id:P,"aria-controls":E?$:void 0,"aria-haspopup":"true","aria-expanded":E?"true":void 0,onClick:y,type:"button",size:"large","data-loading":!0,children:t(N0,{})})}),s(N2,{id:$,open:E,anchorEl:c,onClose:T,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},disableScrollLock:!0,PaperProps:{sx:A=>({borderRadius:A.shape.borderRadius,paddingBottom:A.spacing(2)})},children:[s(la,{children:[t(D,{variant:"body2",children:t("strong",{children:"Columns"})}),t(B1,{onClick:T,children:t($t,{})})]}),t(U2,{children:e.filter(({hideInMenu:A})=>!A).map(A=>[t(S,{condition:a.includes(A.id),show:t(T3,{})}),s(da,{onClick:()=>A.toggleHidden(A.isVisible),disabled:n.includes(A.id),children:[t(Ve,{children:t(pa,{edge:"start",checked:A.isVisible,disableRipple:!0,inputProps:{"aria-labelledby":A.id},size:"medium"})}),t(Le,{id:A.id,primary:t(D,{variant:"body2",children:t(S,{condition:Boolean(typeof A.Header=="string"&&A.Header),show:()=>t(J,{children:A.Header}),elseShow:()=>ua[A.id]||A.id})})})]}),t(S,{condition:r.includes(A.id),show:t(T3,{})})])})]})]})},ma=g0()(e=>({container:{boxShadow:"none",marginLeft:"1rem",minHeight:"100%",width:"calc(100% - 1rem)",position:"relative",[e.breakpoints.down("md")]:{marginLeft:"0",paddingBottom:"4rem",width:"inherit"}}})),ga=d(f0)(()=>({whiteSpace:"nowrap"})),fa=d("div",{shouldForwardProp:e=>e!=="hasWarning"})(({theme:e,hasWarning:n})=>({flexGrow:0,...g1,justifyContent:"center",...n&&{"::before":{content:'""',display:"block",width:e.spacing(2)}}})),Be=["Actions","name","favorite"],va={id:"createdAt"},ya=({features:e,loading:n,environments:a=[]})=>{var Ie,je;const{classes:r}=ma(),o=d1(),i=u1(o.breakpoints.down("md")),[c,l]=p.useState({open:!1,featureId:"",environmentName:""}),[h,u]=p.useState({}),[f,g]=p.useState(),y=G("projectId"),{value:T,setValue:E}=r2(`${y}:FeatureToggleListTable:v1`,va),{value:P,setValue:$}=Bt(),A=L1(),[B,H]=G2(),{isChangeRequestConfigured:F}=o2(y),M=Wn(n?["a","b","c"]:a),{refetch:b}=J1(y),{setToastData:k,setToastApiError:V}=m1(),{isFavoritesPinned:W,sortTypes:_,onChangeIsFavoritePinned:s1}=Ft(B.has("favorites")?B.get("favorites")==="true":P.favorites),{toggleFeatureEnvironmentOn:n1,toggleFeatureEnvironmentOff:K}=_t(),{favorite:v,unfavorite:x}=Vt(),{onChangeRequestToggle:O,onChangeRequestToggleClose:Z,onChangeRequestToggleConfirm:L,changeRequestDialogDetails:R}=H4(y),[q,i1]=p.useState(!1),{uiConfig:a1}=l1(),p1=p.useCallback(async(m,C,I,j)=>{if(F(I))throw O(C,I,j),new Error("Additional approval required");try{j?await n1(m,C,I):await K(m,C,I),b()}catch(U){const v1=b1(U);throw v1===W4?l({open:!0,featureId:C,environmentName:I}):V(v1),U}k({type:"success",title:"Updated toggle status",text:"Successfully updated toggle status."}),b()},[K,n1,F]),P1=p.useCallback(async m=>{m!=null&&m.favorite?await x(y,m.name):await v(y,m.name),b()},[y,b]),j1=p.useMemo(()=>[{id:"favorite",Header:t(Lt,{isActive:W,onClick:s1}),accessor:"favorite",Cell:({row:{original:m}})=>t(zt,{value:m==null?void 0:m.favorite,onClick:()=>P1(m)}),maxWidth:50,disableSortBy:!0},{Header:"Seen",accessor:"lastSeenAt",Cell:v0,sortType:"date",align:"center",maxWidth:80},{Header:"Type",accessor:"type",Cell:y0,align:"center",maxWidth:80},{Header:"Name",accessor:"name",Cell:({value:m})=>t(b0,{title:m,to:`/projects/${y}/features/${m}`}),minWidth:100,sortType:"alphanumeric",searchable:!0},{id:"tags",Header:"Tags",accessor:m=>{var C;return((C=m.tags)==null?void 0:C.map(({type:I,value:j})=>`${I}:${j}`).join(`
|
|
2
|
+
`))||""},Cell:Mt,width:80,hideInMenu:!0,searchable:!0},{Header:"Created",accessor:"createdAt",Cell:i2,sortType:"date",minWidth:120},...M.map(m=>({Header:n?()=>"":m,maxWidth:90,id:`environments.${m}`,accessor:C=>{var I;return(I=C.environments[m])==null?void 0:I.enabled},align:"center",Cell:({value:C,row:{original:I}})=>{const j=I.someEnabledEnvironmentHasVariants&&I.environments[m].variantCount===0&&I.environments[m].enabled;return s(fa,{hasWarning:j,children:[t(Un,{value:C,projectId:y,featureName:I==null?void 0:I.name,environmentName:m,onToggle:p1}),t(S,{condition:j,show:t(N4,{})})]})},sortType:"boolean",filterName:m,filterParsing:C=>C?"enabled":"disabled"})),{id:"Actions",maxWidth:56,width:56,Cell:m=>t(na,{projectId:y,onOpenArchiveDialog:g,onOpenStaleDialog:u,...m}),disableSortBy:!0}],[y,M,n,p1]),[X,ue]=p.useState(B.get("search")||""),Ee=p.useMemo(()=>e.map(m=>{var C;return{...m,environments:Object.fromEntries(M.map(I=>{const j=m==null?void 0:m.environments.find(U=>(U==null?void 0:U.name)===I);return[I,{name:I,enabled:(j==null?void 0:j.enabled)||!1,variantCount:(j==null?void 0:j.variantCount)||0}]})),someEnabledEnvironmentHasVariants:((C=m.environments)==null?void 0:C.some(I=>I.variantCount>0&&I.enabled))||!1}}),[e,M]),{data:he,getSearchText:M1,getSearchContext:D1}=s2(j1,X,Ee),x1=p.useMemo(()=>n?Array(6).fill({type:"-",name:"Feature name",createdAt:new Date,environments:{production:{name:"production",enabled:!1}}}):he,[n,he]),Re=p.useMemo(()=>{var I;const m=j1.map(j=>(j==null?void 0:j.accessor)||(j==null?void 0:j.id));let C=M.filter((j,U)=>U>=3).map(j=>`environments.${j}`);if(B.has("columns")){const j=((I=B.get("columns"))==null?void 0:I.split(","))||[],U=[...Be,...j];C=m.filter(v1=>!U.includes(v1))}else if(T.columns){const j=[...Be,...T.columns];C=m.filter(U=>!j.includes(U))}return{sortBy:[{id:B.get("sort")||"createdAt",desc:B.has("order")?B.get("order")==="desc":T.desc}],hiddenColumns:C}},[M]),Pe=p.useCallback(m=>m.name,[]),{allColumns:me,headerGroups:Ze,rows:f1,state:{sortBy:w1,hiddenColumns:T1},prepareRow:H1,setHiddenColumns:ke}=Q.useTable({columns:j1,data:x1,initialState:Re,sortTypes:_,autoResetHiddenColumns:!1,disableSortRemove:!0,autoResetSortBy:!1,getRowId:Pe},Q.useFlexLayout,Q.useSortBy);return Ce([{condition:!e.some(({tags:m})=>m==null?void 0:m.length),columns:["tags"]}],ke,j1),p.useEffect(()=>{if(n)return;const m={};m.sort=w1[0].id,w1[0].desc&&(m.order="desc"),X&&(m.search=X),W&&(m.favorites="true"),m.columns=me.map(({id:C})=>C).filter(C=>!Be.includes(C)&&!(T1!=null&&T1.includes(C))).join(","),H(m,{replace:!0}),E(C=>({...C,id:w1[0].id,desc:w1[0].desc||!1,columns:m.columns.split(",")})),$(C=>({...C,favorites:Boolean(W)}))},[n,w1,T1,X,H,W]),s(c1,{isLoading:n,className:r.container,header:t(o1,{titleElement:`Feature toggles (${f1.length})`,actions:s(J,{children:[t(S,{condition:!i,show:t(C1,{initialValue:X,onChange:ue,hasFilters:!0,getSearchContext:D1})}),t(ha,{allColumns:me,staticColumns:Be,dividerAfter:["createdAt"],dividerBefore:["Actions"],isCustomized:Boolean(T.columns),setHiddenColumns:ke}),t(o1.Divider,{sx:{marginLeft:0}}),t(S,{condition:Boolean((Ie=a1==null?void 0:a1.flags)==null?void 0:Ie.featuresExportImport),show:t(te,{title:"Export current selection",arrow:!0,children:t(B1,{onClick:()=>i1(!0),sx:m=>({marginRight:m.spacing(2)}),children:t(Ht,{})})})}),t(ga,{onClick:()=>A(Wt(y)),maxWidth:"960px",Icon:C0,projectId:y,permission:q2,children:"New feature toggle"})]}),children:t(S,{condition:i,show:t(C1,{initialValue:X,onChange:ue,hasFilters:!0,getSearchContext:D1})})}),children:[t(Y1,{value:M1(X),children:t(c2,{rows:f1,headerGroups:Ze,prepareRow:H1})}),t(S,{condition:f1.length===0,show:t(S,{condition:(X==null?void 0:X.length)>0,show:s(h1,{children:["No feature toggles found matching “",X,"”"]}),elseShow:t(h1,{children:"No feature toggles available. Get started by adding a new feature toggle."})})}),t(U4,{onClose:()=>l(m=>({...m,open:!1})),projectId:y,...c}),t(q4,{isStale:h.stale===!0,isOpen:Boolean(h.featureId),onClose:()=>{u({}),b()},featureId:h.featureId||"",projectId:y}),t(G4,{isOpen:Boolean(f),onConfirm:()=>{b()},onClose:()=>{g(void 0)},featureId:f||"",projectId:y})," ",t(K4,{isOpen:R.isOpen,onClose:Z,environment:R==null?void 0:R.environment,onConfirm:L,messageComponent:t(J4,{featureName:R.featureName,enabled:R.enabled,environment:R==null?void 0:R.environment})}),t(S,{condition:Boolean((je=a1==null?void 0:a1.flags)==null?void 0:je.featuresExportImport),show:t(Nt,{showExportDialog:q,data:x1,onClose:()=>i1(!1),environments:M})})]})},se=d("div")(({theme:e})=>({margin:"0",textAlign:"center",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadiusLarge,width:"100%",minWidth:225,padding:e.spacing(3),[e.breakpoints.down("md")]:{display:"flex",flexDirection:"column",position:"relative",padding:e.spacing(1.5)}})),Te=d("p")(({theme:e})=>({marginBottom:e.spacing(2.5)})),s3=d("span")(({theme:e})=>({fontSize:e.typography.h2.fontSize,fontWeight:"bold",color:e.palette.text.primary})),u2=({children:e,to:n})=>t(D,{variant:"body2",textAlign:"center",sx:{paddingTop:a=>a.spacing(2.5),marginTop:"auto",justifySelf:"flex-end"},children:t(S0,{component:Z1,to:n,children:e})}),ba=d("p")(({theme:e})=>({fontSize:"1.5rem",[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize,marginBottom:e.spacing(4)}})),Ca=d("p")(({theme:e})=>({fontSize:"1.5rem",[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize}})),Sa=({projectId:e,health:n})=>s(se,{children:[t(Te,{"data-loading":!0,children:"Project health"}),s(w,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:a=>a.spacing(2)},children:[t(Ca,{children:t(x0,{percentage:n})}),s(ba,{"data-loading":!0,children:[n,"%"]})]}),t(u2,{to:`/projects/${e}/health`,children:"View project health"})]}),xa=d(s3)(({theme:e})=>({marginLeft:"auto",fontWeight:e.typography.fontWeightRegular,color:e.palette.text.secondary})),wa=d("div")(({theme:e})=>({display:"flex",gap:e.spacing(1.5),width:"100%",gridTemplateColumns:`${e.spacing(2.5)} auto auto`,margin:e.spacing(1,0),fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary,alignItems:"center",[e.breakpoints.down("md")]:{margin:0}})),Ta=({type:e,Icon:n,count:a})=>s(wa,{"data-loading":!0,children:[t(n,{fontSize:"small","data-loading":!0}),t("div",{children:(o=>o.charAt(0).toUpperCase()+o.slice(1).replace("-"," "))(e)}),t(xa,{children:a})]}),Aa=({features:e})=>{const n=p.useMemo(()=>{const a=(e==null?void 0:e.filter(l=>l.type==="release").length)||0,r=(e==null?void 0:e.filter(l=>l.type==="experiment").length)||0,o=(e==null?void 0:e.filter(l=>l.type==="operational").length)||0,i=(e==null?void 0:e.filter(l=>l.type==="kill-switch").length)||0,c=(e==null?void 0:e.filter(l=>l.type==="permission").length)||0;return{release:a,experiment:r,operational:o,"kill-switch":i,permission:c}},[e]);return s(se,{sx:{padding:a=>a.spacing(3)},children:[t(Te,{children:"Toggle types used"}),Object.keys(n).map(a=>t(Ta,{type:a,Icon:Ut(a),count:n[a]},a))]})},Ea=d("div")(({theme:e})=>({textAlign:"left",borderRadius:`${e.shape.borderRadius}px`,backgroundColor:`${e.palette.secondaryContainer}`,padding:e.spacing(.5,2),fontSize:e.typography.body2.fontSize})),Ra=({id:e,description:n})=>s(se,{children:[t(Te,{children:"Project Meta"}),s(Ea,{children:[t(D,{component:"span",variant:"body2",color:"text.secondary",children:"ID:"})," ",t("code",{"data-loading":!0,children:e||"__________"})]}),t(S,{condition:Boolean(n),show:t(D,{variant:"body2",sx:{marginTop:a=>a.spacing(1.5),marginBottom:0,textAlign:"left"},children:n})}),t(S,{condition:!Boolean(n),show:t(u2,{to:`/projects/${e}/edit`,children:"Add description"})})]}),Pa=d(D)(({theme:e})=>({marginBottom:e.spacing(2.5)})),Za=d(w)(({theme:e})=>({fontSize:e.fontSizes.largeHeader})),A3=d(w)(({theme:e})=>({...g1,flexDirection:"column",alignItems:"center",marginLeft:e.spacing(2.5)})),E3=d(D)(({theme:e})=>({color:e.palette.neutral.main,fontSize:e.typography.body2.fontSize})),ka=d(D)(({theme:e})=>({marginLeft:e.spacing(1),fontSize:e.typography.body1.fontSize,fontWeight:e.typography.fontWeightBold})),Ia=e=>e>0?t(mn,{sx:{color:"success.dark",height:20,width:20}}):t(yn,{sx:{color:"warning.dark",height:20,width:20}}),ja=e=>e>0?"success.dark":"warning.dark",ge=({title:e,boxText:n,change:a,percentage:r,children:o})=>s(J,{children:[t(S,{condition:Boolean(e),show:t(Pa,{children:e})}),o,s(w,{sx:{...g1,justifyContent:"center",width:"auto"},children:[t(Za,{children:n}),t(S,{condition:a!==0,show:s(A3,{children:[s(w,{sx:{...g1},children:[Ia(a),s(ka,{color:ja(a),children:[a>0?"+":"",a,r?"%":""]})]}),t(E3,{children:"this month"})]}),elseShow:t(A3,{children:t(E3,{children:"No change"})})})]})]}),Da=({projectId:e,memberCount:n,change:a=0})=>{var i,c;const{uiConfig:r}=l1();let o="/admin/users";return(c=(i=r==null?void 0:r.versionInfo)==null?void 0:i.current)!=null&&c.enterprise&&(o=`/projects/${e}/settings/access`),s(se,{children:[t(Te,{"data-loading":!0,children:"Project members"}),t(w,{sx:{display:"flex",justifyContent:"center"},children:t(ge,{boxText:`${n}`,change:a})}),t(u2,{to:o,children:"View all members"})]})},Oa=e=>fetch(e).then(V1("ChangeRequest")).then(n=>n.json()),U0=e=>{const{data:n,error:a,mutate:r}=qt([],_1(`api/admin/projects/${e}/change-requests`),Oa);return p.useMemo(()=>({changeRequests:n,loading:!a&&!n,refetch:r,error:a}),[n,a,r])},ze="change-requests-widget",$a=d(w)(({theme:e})=>({display:"flex",flexWrap:"wrap",gap:e.spacing(1.5)})),R3=d(w)(({theme:e})=>({flex:1,textAlign:"left",padding:e.spacing(1.5),borderRadius:e.shape.borderRadiusMedium,alignItems:"center",minWidth:175})),P3=d(w)(({theme:e})=>({display:"flex",alignItems:"center"})),Ba=d(s3)(({theme:e})=>({background:e.palette.activityIndicators.recent,padding:e.spacing(0,1),marginRight:e.spacing(.5),borderRadius:e.shape.borderRadius})),Fa=d(s3)(({theme:e})=>({background:e.palette.activityIndicators.primary,padding:e.spacing(0,1),marginRight:e.spacing(.5),borderRadius:e.shape.borderRadius})),Z3=d(D)(({theme:e})=>({fontSize:e.typography.body2.fontSize,marginBottom:e.spacing(.5)})),k3=()=>t(D,{component:"span",variant:"body2",color:"text.secondary",lineHeight:1,"data-loading":ze,children:"change requests"}),_a=({projectId:e})=>{const{changeRequests:n,loading:a}=U0(e),r=w0(a,`[data-loading="${ze}"]`),o=n==null?void 0:n.filter(c=>(c==null?void 0:c.state)==="Approved").length,i=n==null?void 0:n.filter(c=>(c==null?void 0:c.state)==="In review").length;return s(se,{ref:r,children:[t(Te,{children:"Open change requests"}),s($a,{children:[s(R3,{sx:{background:c=>c.palette.success.light},children:[t(Z3,{children:"To be applied"}),s(P3,{children:[t(Ba,{"data-loading":ze,children:o||0})," ",t(k3,{})]})]}),s(R3,{sx:{background:c=>c.palette.secondary.light},children:[t(Z3,{children:"To be reviewed"}),s(P3,{children:[t(Fa,{"data-loading":ze,children:i||0})," ",t(k3,{})]})]})]}),t(u2,{to:`/projects/${e}/change-requests`,children:"View change requests"})]})};var c3={},Va=X1;Object.defineProperty(c3,"__esModule",{value:!0});var l3=c3.default=void 0,La=Va(Q1()),za=ee,Ma=(0,La.default)((0,za.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");l3=c3.default=Ma;const Ha=d("p")(({theme:e})=>({fontSize:"1.5rem",[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize,marginBottom:e.spacing(4)}})),Wa=d("div")(()=>({display:"flex",justifyContent:"center"})),Na=d(Z1)(({theme:e})=>({textDecoration:"none",...g1,justifyContent:"center",color:e.palette.primary.main,[e.breakpoints.down("md")]:{position:"absolute",bottom:e.spacing(1.5),right:e.spacing(1.5)}})),Ua=d("p")(({theme:e})=>({[e.breakpoints.down("md")]:{display:"none"}})),qa=d(l3)(({theme:e})=>({color:e.palette.primary.main,marginLeft:e.spacing(1)})),Ga=({projectId:e,health:n})=>s(se,{children:[t(Wa,{children:t(x0,{percentage:n})}),t(D,{"data-loading":!0,sx:{marginTop:a=>a.spacing(2)},children:"Overall health rating"}),t(w,{sx:{marginBottom:a=>a.spacing(2.5)},children:s(Ha,{"data-loading":!0,children:[n,"%"]})}),s(Na,{"data-loading":!0,to:`/projects/${e}/health`,children:[t(Ua,{"data-loading":!0,children:"view more "}),t(qa,{"data-loading":!0})]})]}),Ka=d("div")(({theme:e})=>({textAlign:"center",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadiusLarge,width:"100%",padding:e.spacing(3,2,3,2),[e.breakpoints.down("md")]:{...g1,flexDirection:"column",justifyContent:"center",fontSize:e.fontSizes.smallBody,position:"relative",padding:e.spacing(1.5)}})),Ja=d("p")(({theme:e})=>({marginBottom:e.spacing(2)})),Ya=d("p")(({theme:e})=>({fontSize:"1.5rem",marginBottom:e.spacing(2),[e.breakpoints.down("md")]:{fontSize:e.fontSizes.bodySize,marginBottom:e.spacing(4)}})),Qa=d("p")(({theme:e})=>({[e.breakpoints.down("md")]:{display:"none"}})),Xa=d(Z1)(({theme:e})=>({textDecoration:"none",...g1,justifyContent:"center",color:e.palette.primary.main,[e.breakpoints.down("md")]:{position:"absolute",right:e.spacing(1.5),bottom:e.spacing(1.5)}})),er=d(l3)(({theme:e})=>({color:e.palette.primary.main,marginLeft:e.spacing(1)})),tr=({projectId:e,memberCount:n})=>{var o,i;const{uiConfig:a}=l1();let r="/admin/users";return(i=(o=a==null?void 0:a.versionInfo)==null?void 0:o.current)!=null&&i.enterprise&&(r=`/projects/${e}/settings/access`),s(Ka,{children:[t(Ja,{"data-loading":!0,children:"Project members"}),t(Ya,{"data-loading":!0,children:n}),s(Xa,{"data-loading":!0,to:r,children:[t(Qa,{"data-loading":!0,children:"view more "}),t(er,{"data-loading":!0})]})]})},nr=d(w)(({theme:e})=>({...g1,width:"225px",flexDirection:"column",gap:e.spacing(2),boxShadow:"none",[e.breakpoints.down("md")]:{display:"grid",width:"100%",alignItems:"stretch",marginBottom:e.spacing(2)},[e.breakpoints.down("sm")]:{display:"flex"}})),ar=({id:e,description:n,memberCount:a,health:r,features:o,stats:i})=>{const{uiConfig:c,isEnterprise:l}=l1(),h=d1(),u=u1(h.breakpoints.down("md")),{isChangeRequestConfiguredInAnyEnv:f}=o2(e),g=l()&&f(),y=e!==Gt,T=!g&&!y||u&&g&&y;return Boolean(c==null?void 0:c.flags.newProjectOverview)?t("aside",{children:s(nr,{sx:T?{gridTemplateColumns:"repeat(auto-fill, minmax(225px, 1fr))"}:{gridTemplateColumns:"repeat(2, 1fr)"},children:[t(S,{condition:g,show:t(w,{sx:{gridColumnStart:y?"span 2":"span 1",flex:1,display:"flex"},children:t(_a,{projectId:e})})}),t(Ra,{id:e,description:n}),t(Sa,{projectId:e,health:r}),t(S,{condition:y,show:t(Da,{projectId:e,memberCount:a,change:i==null?void 0:i.projectMembersAddedCurrentWindow})}),t(Aa,{features:o})]})}):t("aside",{children:s(w,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(225px, 1fr))",gap:E=>E.spacing(2),paddingBottom:E=>E.spacing(2)},children:[t(Ga,{projectId:e,health:r}),t(S,{condition:y,show:t(tr,{projectId:e,memberCount:a})})]})})},rr=d(I1)(({theme:e})=>({padding:e.spacing(3,3),maxWidth:"350px",borderRadius:`${e.shape.borderRadiusMedium}px`,border:`1px solid ${e.palette.neutral.border}`,fontSize:e.typography.body2.fontSize})),I3=({children:e,id:n})=>{const[a,r]=p.useState(null),o=l=>r(l.currentTarget),i=()=>r(null),c=Boolean(a);return s(w,{sx:{position:"absolute",top:l=>l.spacing(.5),right:l=>l.spacing(.5)},children:[t(B1,{onClick:o,"aria-describedby":n,size:"small",children:t(T0,{sx:{fontSize:l=>l.typography.body1.fontSize}})}),t(A0,{id:n,open:c,anchorEl:a,sx:l=>({zIndex:l.zIndex.tooltip}),children:t(E0,{onClickAway:i,children:s(rr,{elevation:3,children:[t(B1,{onClick:i,sx:{position:"absolute",right:4,top:4},children:t(Kt,{sx:{fontSize:l=>l.typography.body1.fontSize}})}),e,t(Jt,{id:n,eventName:"project_overview",localStorageKey:"ProjectOverviewFeedback"})]})})})]})},or=d(w)(({theme:e})=>({padding:e.spacing(0,0,2,2),display:"grid",gap:e.spacing(2),gridTemplateColumns:"repeat(4, 1fr)",flexWrap:"wrap",[e.breakpoints.down("lg")]:{gridTemplateColumns:"repeat(2, 1fr)"},[e.breakpoints.down("md")]:{padding:e.spacing(0,0,2)},[e.breakpoints.down("sm")]:{flexDirection:"column"}})),Fe=d(w)(({theme:e})=>({position:"relative",padding:e.spacing(3),backgroundColor:e.palette.background.paper,flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRadius:`${e.shape.borderRadiusLarge}px`,[e.breakpoints.down("lg")]:{padding:e.spacing(2)}})),ir=({stats:e})=>{if(Object.keys(e).length===0)return null;const{avgTimeToProdCurrentWindow:n,avgTimeToProdPastWindow:a,projectActivityCurrentWindow:r,projectActivityPastWindow:o,createdCurrentWindow:i,createdPastWindow:c,archivedCurrentWindow:l,archivedPastWindow:h}=e,u=(f,g)=>{const y=f*100/g;return Number.isInteger(y)?y:0};return s(or,{children:[t(Fe,{children:t(ge,{title:"Total changes",boxText:String(r),change:r-o-20,children:t(I3,{id:"total-changes",children:"Sum of all configuration and state modifications in the project."})})}),t(Fe,{children:t(ge,{title:"Avg. time to production",boxText:s(w,{sx:{display:"flex",alignItems:"center",gap:f=>f.spacing(1)},children:[n," ",t(D,{component:"span",children:"days"})]}),change:u(n,a),percentage:!0,children:t(I3,{id:"avg-time-to-prod",children:"How long did it take on average from a feature toggle was created until it was enabled in an environment of type production."})})}),t(Fe,{children:t(ge,{title:"Features created",boxText:String(i),change:i-c})}),t(Fe,{children:t(ge,{title:"Features archived",boxText:String(l),change:l-h})})]})},sr=15*1e3,cr=d("div")(({theme:e})=>({display:"flex",[e.breakpoints.down("md")]:{flexDirection:"column"}})),lr=d("div")(()=>({width:"100%",minWidth:0})),dr=d(w)(()=>({display:"flex",flexDirection:"column",width:"100%",minWidth:0})),pr=()=>{const e=G("projectId"),n=k1(e),{project:a,loading:r}=J1(e,{refreshInterval:sr}),{members:o,features:i,health:c,description:l,environments:h,stats:u}=a;E1(`Project overview – ${n}`);const{setLastViewed:f}=Yt(),{uiConfig:g}=l1();return p.useEffect(()=>{f(e)},[e,f]),s(cr,{children:[t(ar,{id:e,description:l,memberCount:o,health:c,features:i,stats:u}),s(dr,{children:[t(S,{condition:Boolean(g==null?void 0:g.flags.newProjectOverview),show:t(ir,{stats:a.stats})}),t(lr,{children:t(ya,{features:i,environments:h,loading:r})})]})]})},ur=(e,n)=>{const a=_1(`api/admin/projects/${e}/health-report`),{data:r,error:o}=K1(a,hr,n),i=p.useCallback(()=>{R0(a).catch(console.warn)},[a]);return{healthReport:r,refetchHealthReport:i,loading:!o&&!r,error:o}},hr=e=>fetch(e).then(V1("Health report")).then(n=>n.json());var d3={},mr=X1;Object.defineProperty(d3,"__esModule",{value:!0});var $2=d3.default=void 0,gr=mr(Q1()),fr=ee,vr=(0,gr.default)((0,fr.jsx)("path",{d:"M12 5.99 19.53 19H4.47L12 5.99M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");$2=d3.default=vr;const yr=d(w)(({theme:e})=>({display:"flex",alignItems:"center",color:e.palette.success.dark,"& svg":{color:e.palette.success.main}})),j3=d(w)(({theme:e})=>({display:"flex",alignItems:"center",color:e.palette.warning.dark,"& svg":{color:e.palette.warning.main}})),br=d(I1)(({theme:e})=>({padding:e.spacing(4),marginBottom:e.spacing(2),borderRadius:e.shape.borderRadiusLarge,boxShadow:"none",display:"flex",justifyContent:"space-between",[e.breakpoints.down("md")]:{flexDirection:"column",gap:e.spacing(2)}})),x2=d("h2")(({theme:e})=>({fontSize:e.fontSizes.mainHeader,marginBottom:e.spacing(1)})),Cr=d("p")(({theme:e})=>({fontSize:"2rem",fontWeight:e.fontWeight.bold})),Sr=d("p")(({theme:e})=>({color:e.palette.text.secondary})),D3=d("ul")(({theme:e})=>({listStyleType:"none",margin:0,padding:0,"& svg":{marginRight:e.spacing(1)}})),O3=d("p")(({theme:e})=>({marginLeft:e.spacing(4)})),xr=({healthReport:e})=>{const n=e.health<50?"error.main":e.health<75?"warning.main":"success.main",a=()=>s(yr,{children:[t(Qt,{}),s("span",{children:[e.activeCount," active toggles"]})]}),r=()=>s(j3,{children:[t($2,{}),s("span",{children:[e.staleCount," stale toggles"]})]}),o=()=>s(j3,{children:[t($2,{}),s("span",{children:[e.potentiallyStaleCount," potentially stale toggles"]})]});return s(br,{children:[s(w,{children:[t(x2,{children:"Health rating"}),t(S,{condition:e.health>-1,show:s(J,{children:[s(Cr,{sx:{color:n},children:[e.health,"%"]}),s(Sr,{children:["Last updated:"," ",t(K2,{date:e.updatedAt,live:!1})]})]})})]}),s(w,{children:[t(x2,{children:"Toggle report"}),s(D3,{children:[t("li",{children:t(S,{condition:Boolean(e.activeCount),show:a})}),t(S,{condition:Boolean(e.activeCount),show:t(O3,{children:"Also includes potentially stale toggles."})}),t("li",{children:t(S,{condition:Boolean(e.staleCount),show:r})})]})]}),s(w,{sx:{flexBasis:"40%"},children:[t(x2,{children:"Potential actions"}),t(D3,{children:t("li",{children:t(S,{condition:Boolean(e.potentiallyStaleCount),show:o})})}),t(S,{condition:Boolean(e.potentiallyStaleCount),show:t(O3,{children:"Review your feature toggles and delete unused toggles."}),elseShow:t("span",{children:"No action is required"})})]})]})},wr=({row:e})=>{const n=d1();return e.original.expiredAt?t(i2,{value:e.original.expiredAt}):t(t1,{children:t(D,{variant:"body2",color:n.palette.text.secondary,children:"N/A"})})},Tr=d("span")(({theme:e})=>({display:"flex",gap:"1ch",alignItems:"center",color:e.palette.warning.dark,"& svg":{color:e.palette.warning.main}})),Ar=d("span")(({theme:e})=>({display:"flex",gap:"1ch",alignItems:"center",color:e.palette.success.dark,"& svg":{color:e.palette.success.main}})),Er=({row:e})=>e.original.status==="potentially-stale"?t(t1,{children:s(Tr,{children:[t(vn,{}),t("span",{children:"Potentially stale"})]})}):t(t1,{children:s(Ar,{children:[t(P0,{}),t("span",{children:"Healthy"})]})}),$3=40,Rr=7,q0={[e4]:$3,[t4]:$3,[n4]:Rr},G0=(e,n)=>Math.abs(Xt(e,n)),K0=(e,n)=>e>=q0[n],Pr=e=>{const{type:n,createdAt:a}=e,r=Z0(a),o=new Date,i=G0(r,o);return K0(i,n)&&n!==k0&&n!==I0?"potentially-stale":"healthy"},Zr=e=>{const{type:n,createdAt:a}=e;if(n===k0||n===I0)return;const r=Z0(a),o=new Date,i=G0(r,o);if(K0(i,n)){const c=i-q0[n];return bn(o,c).toISOString()}},kr=({projectId:e,features:n})=>{const a=d1(),r=u1(a.breakpoints.down("sm")),o=u1(a.breakpoints.down("md")),i=u1(a.breakpoints.down("lg")),c=p.useMemo(()=>n.map(P=>({project:e,name:P.name,type:P.type,stale:P.stale,status:Pr(P),lastSeenAt:P.lastSeenAt,createdAt:P.createdAt,expiredAt:Zr(P)})),[e,n]),l=p.useMemo(()=>({hiddenColumns:[],sortBy:[{id:"createdAt"}]}),[]),{headerGroups:h,rows:u,prepareRow:f,state:{globalFilter:g},setGlobalFilter:y,setHiddenColumns:T}=Q.useTable({columns:B3,data:c,initialState:l,sortTypes:Se,autoResetGlobalFilter:!1,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0},Q.useGlobalFilter,Q.useFlexLayout,Q.useSortBy);Ce([{condition:r,columns:["stale"]},{condition:o,columns:["expiredAt","lastSeenAt"]},{condition:i,columns:["createdAt"]}],T,B3);const E=u.length<c.length?`Feature toggles (${u.length} of ${c.length})`:`Feature toggles (${c.length})`;return s(c1,{header:t(o1,{title:E,actions:t(C1,{initialValue:g,onChange:y})}),children:[t(Y1,{value:g,children:t(c2,{headerGroups:h,prepareRow:f,rows:u})}),t(S,{condition:u.length===0,show:t(S,{condition:(g==null?void 0:g.length)>0,show:s(h1,{children:["No feature toggles found matching “",g,"”"]}),elseShow:t(h1,{children:"No feature toggles available. Get started by adding a new feature toggle."})})})]})},B3=[{Header:"Seen",accessor:"lastSeenAt",sortType:"date",align:"center",Cell:v0,disableGlobalFilter:!0,maxWidth:85},{Header:"Type",accessor:"type",align:"center",Cell:y0,disableGlobalFilter:!0,maxWidth:85},{Header:"Name",accessor:"name",sortType:"alphanumeric",Cell:a4,minWidth:120},{Header:"Created",accessor:"createdAt",sortType:"date",Cell:i2,disableGlobalFilter:!0,maxWidth:150},{Header:"Expired",accessor:"expiredAt",Cell:wr,disableGlobalFilter:!0,maxWidth:150},{Header:"Status",id:"status",accessor:"status",Cell:Er,disableGlobalFilter:!0,width:180},{Header:"State",accessor:"stale",sortType:"boolean",Cell:r4,disableGlobalFilter:!0,maxWidth:120}],Ir=()=>{const e=G("projectId"),n=k1(e);E1(`Project health – ${n}`);const{healthReport:a,refetchHealthReport:r,error:o}=ur(e,{refreshInterval:15*1e3});return a?s("div",{children:[t(S,{condition:Boolean(o),show:t(p0,{"data-loading":!0,style:{maxWidth:"500px",marginTop:"1rem"},onClick:r,text:`Could not fetch health rating for ${e}`})}),t(xr,{healthReport:a}),t(kr,{projectId:e,features:a.features})]}):null},jr=d("div")(({theme:e})=>({borderRadius:"12.5px",backgroundColor:e.palette.background.paper,padding:"2rem"})),Dr=()=>{const e=G("projectId");return t(jr,{children:t(o4,{title:"Event Log",project:e,displayInline:!0})})},J0=(e,n)=>{const{data:a,error:r,mutate:o}=K1(_1(`api/admin/projects/${e}/change-requests/${n}`),Or,{refreshInterval:15e3});return{data:a,loading:!r&&!a,refetchChangeRequest:()=>o(),error:r}},Or=e=>fetch(e).then(V1("Request changes")).then(n=>n.json()),$r=d(I1)(({theme:e})=>({padding:e.spacing(3,4),borderRadius:`${e.shape.borderRadiusLarge}px`})),Br=d(w)(({theme:e})=>({display:"flex",alignItems:"center",marginBottom:e.spacing(2)})),Fr=d(w)(({theme:e})=>({display:"flex",alignItems:"center"})),_r=d(D)(({theme:e})=>({display:"flex",alignItems:"center",marginRight:e.spacing(1),fontSize:e.fontSizes.mainHeader})),Vr=d(i4)(({theme:e})=>({padding:e.spacing(.75,1.5),backgroundColor:e.palette.tertiary.light})),Y0=d(xe)(({theme:e})=>({height:"24px",width:"24px"})),Lr=({changeRequest:e})=>{var n,a;return s($r,{elevation:0,children:[s(Br,{children:[s(_r,{variant:"h1",sx:{mr:1.5},children:["Change request #",e.id]}),t(j0,{state:e.state})]}),s(Fr,{children:[s(D,{variant:"body2",sx:{margin:"auto 0"},children:["Created"," ",t(K2,{minPeriod:60,date:new Date(e.createdAt)})," ","by"]}),t(w,{sx:r=>({marginLeft:r.spacing(1)}),children:t(te,{title:(n=e==null?void 0:e.createdBy)==null?void 0:n.username,children:t(Y0,{src:(a=e==null?void 0:e.createdBy)==null?void 0:a.imageUrl})})}),t(w,{sx:r=>({marginLeft:r.spacing(1.5)}),children:t(Vr,{variant:"outlined",children:s(D,{variant:"body2",sx:{lineHeight:1},children:["Environment:"," ",t(D,{display:"inline",fontWeight:"bold",variant:"body2",component:"span",children:e==null?void 0:e.environment})," ",t(s4,{})," Updates:"," ",s(D,{variant:"body2",display:"inline",fontWeight:"bold",component:"span",children:[e.features.length," ",e.features.length===1?"feature toggle":"feature toggles"]})]})})})]})]})};function e1(){return e1=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},e1.apply(this,arguments)}function ce(e,n){if(e==null)return{};var a={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(n.indexOf(o)>=0)&&(a[o]=e[o]);return a}const zr=p.createContext({}),Ge=zr;function Mr(e){return ne("MuiTimeline",e)}z1("MuiTimeline",["root","positionLeft","positionRight","positionAlternate"]);const Hr=["position","className"],Wr=e=>{const{position:n,classes:a}=e,r={root:["root",n&&`position${R1(n)}`]};return oe(r,Mr,a)},Nr=d("ul",{name:"MuiTimeline",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,a.position&&n[`position${R1(a.position)}`]]}})({display:"flex",flexDirection:"column",padding:"6px 16px",flexGrow:1}),Ur=p.forwardRef(function(n,a){const r=ae({props:n,name:"MuiTimeline"}),{position:o="right",className:i}=r,c=ce(r,Hr),l=e1({},r,{position:o}),h=Wr(l),u=p.useMemo(()=>({position:o}),[o]);return t(Ge.Provider,{value:u,children:t(Nr,e1({className:re(h.root,i),ownerState:l,ref:a},c))})}),Q0=Ur;function qr(e){return ne("MuiTimelineContent",e)}const Gr=z1("MuiTimelineContent",["root","positionLeft","positionRight","positionAlternate"]),Kr=["className"],Jr=e=>{const{position:n,classes:a}=e,r={root:["root",`position${R1(n)}`]};return oe(r,qr,a)},Yr=d(D,{name:"MuiTimelineContent",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`position${R1(a.position)}`]]}})(({ownerState:e})=>e1({flex:1,padding:"6px 16px",textAlign:"left"},e.position==="left"&&{textAlign:"right"})),Qr=p.forwardRef(function(n,a){const r=ae({props:n,name:"MuiTimelineContent"}),{className:o}=r,i=ce(r,Kr),{position:c}=p.useContext(Ge),l=e1({},r,{position:c||"right"}),h=Jr(l);return t(Yr,e1({component:"div",className:re(h.root,o),ownerState:l,ref:a},i))}),X0=Qr,Xr=z1("MuiTimelineOppositeContent",["root","positionLeft","positionRight","positionAlternate"]),eo=Xr;function to(e){return ne("MuiTimelineItem",e)}const no=z1("MuiTimelineItem",["root","positionLeft","positionRight","positionAlternate","missingOppositeContent"]),et=no,ao=["position","className"],ro=e=>{const{position:n,classes:a,hasOppositeContent:r}=e,o={root:["root",`position${R1(n)}`,!r&&"missingOppositeContent"]};return oe(o,to,a)},oo=d("li",{name:"MuiTimelineItem",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[`position${R1(a.position)}`]]}})(({ownerState:e})=>e1({listStyle:"none",display:"flex",position:"relative",minHeight:70},e.position==="left"&&{flexDirection:"row-reverse"},e.position==="alternate"&&{"&:nth-of-type(even)":{flexDirection:"row-reverse",[`& .${Gr.root}`]:{textAlign:"right"},[`& .${eo.root}`]:{textAlign:"left"}}},!e.hasOppositeContent&&{"&:before":{content:'""',flex:1,padding:"6px 16px"}})),io=p.forwardRef(function(n,a){const r=ae({props:n,name:"MuiTimelineItem"}),{position:o,className:i}=r,c=ce(r,ao),{position:l}=p.useContext(Ge);let h=!1;p.Children.forEach(r.children,y=>{c4(y,["TimelineOppositeContent"])&&(h=!0)});const u=e1({},r,{position:o||l||"right",hasOppositeContent:h}),f=ro(u),g=p.useMemo(()=>({position:u.position}),[u.position]);return t(Ge.Provider,{value:g,children:t(oo,e1({className:re(f.root,i),ownerState:u,ref:a},c))})}),Me=io;function so(e){return ne("MuiTimelineSeparator",e)}z1("MuiTimelineSeparator",["root"]);const co=["className"],lo=e=>{const{classes:n}=e;return oe({root:["root"]},so,n)},po=d("div",{name:"MuiTimelineSeparator",slot:"Root",overridesResolver:(e,n)=>n.root})({display:"flex",flexDirection:"column",flex:0,alignItems:"center"}),uo=p.forwardRef(function(n,a){const r=ae({props:n,name:"MuiTimelineSeparator"}),{className:o}=r,i=ce(r,co),c=r,l=lo(c);return t(po,e1({className:re(l.root,o),ownerState:c,ref:a},i))}),He=uo;function ho(e){return ne("MuiTimelineDot",e)}z1("MuiTimelineDot",["root","filled","outlined","filledGrey","outlinedGrey","filledPrimary","outlinedPrimary","filledSecondary","outlinedSecondary"]);const mo=["className","color","variant"],go=e=>{const{color:n,variant:a,classes:r}=e,o={root:["root",a,n!=="inherit"&&`${a}${R1(n)}`]};return oe(o,ho,r)},fo=d("span",{name:"MuiTimelineDot",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:a}=e;return[n.root,n[a.color!=="inherit"&&`${a.variant}${R1(a.color)}`],n[a.variant]]}})(({ownerState:e,theme:n})=>e1({display:"flex",alignSelf:"baseline",borderStyle:"solid",borderWidth:2,padding:4,borderRadius:"50%",boxShadow:(n.vars||n).shadows[1],margin:"11.5px 0"},e.variant==="filled"&&e1({borderColor:"transparent"},e.color!=="inherit"&&e1({},e.color==="grey"?{color:(n.vars||n).palette.grey[50],backgroundColor:(n.vars||n).palette.grey[400]}:{color:(n.vars||n).palette[e.color].contrastText,backgroundColor:(n.vars||n).palette[e.color].main})),e.variant==="outlined"&&e1({boxShadow:"none",backgroundColor:"transparent"},e.color!=="inherit"&&e1({},e.color==="grey"?{borderColor:(n.vars||n).palette.grey[400]}:{borderColor:(n.vars||n).palette[e.color].main})))),vo=p.forwardRef(function(n,a){const r=ae({props:n,name:"MuiTimelineDot"}),{className:o,color:i="grey",variant:c="filled"}=r,l=ce(r,mo),h=e1({},r,{color:i,variant:c}),u=go(h);return t(fo,e1({className:re(u.root,o),ownerState:h,ref:a},l))}),tt=vo;function yo(e){return ne("MuiTimelineConnector",e)}z1("MuiTimelineConnector",["root"]);const bo=["className"],Co=e=>{const{classes:n}=e;return oe({root:["root"]},yo,n)},So=d("span",{name:"MuiTimelineConnector",slot:"Root",overridesResolver:(e,n)=>n.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.grey[400],flexGrow:1})),xo=p.forwardRef(function(n,a){const r=ae({props:n,name:"MuiTimelineConnector"}),{className:o}=r,i=ce(r,bo),c=r,l=Co(c);return t(So,e1({className:re(l.root,o),ownerState:c,ref:a},i))}),p3=xo,wo=d(I1)(({theme:e})=>({marginTop:e.spacing(2),borderRadius:`${e.shape.borderRadiusLarge}px`})),To=d(w)(({theme:e})=>({padding:e.spacing(2),marginBottom:`-${e.spacing(4)}`})),Ao=d(Q0)(()=>({[`& .${et.root}:before`]:{flex:0,padding:0}})),Eo=({state:e})=>{const n=r=>["Draft","In review","Approved","Applied"].map(i=>({title:i,active:i===r}));return t(wo,{elevation:0,children:t(To,{children:t(Ao,{children:(()=>{const r=n(e),o=r.findIndex(c=>c.active),i=o!==-1?o:null;return e==="Cancelled"?Po(r):Ro(r,i)})()})})})},Ro=(e,n)=>e.map(({title:a},r)=>{const o=r<e.length-1,i=t(S,{condition:o,show:t(p3,{})});return n!==null&&n>=r?We("success",a,i):n!==null&&n+1===r?We("primary",a,i,{variant:"outlined"}):We("grey",a,i)}),Po=e=>e.map(({title:n},a)=>{const r=a<e.length-1;return We("grey",n,t(S,{condition:r,show:t(p3,{})}))}),We=(e,n,a,r={})=>s(Me,{children:[s(He,{children:[t(tt,{color:e,...r}),a]}),t(X0,{children:n})]},n),Zo=d(w)(({theme:e})=>({marginBottom:e.spacing(2)})),ko=({actualApprovals:e,minApprovals:n})=>s(J,{children:["Reviewers"," ",s(D,{component:"span",color:"text.secondary",children:["(",e,"/",n," required)"]})]}),Io=({header:e,children:n})=>s(I1,{elevation:0,sx:a=>({marginTop:a.spacing(2),padding:a.spacing(4),borderRadius:r=>`${r.shape.borderRadiusLarge}px`}),children:[t(Zo,{children:e}),t(D,{variant:"body1",color:"text.secondary",children:t(S,{condition:ve.Children.count(n)>0,show:"Approved by",elseShow:"No approvals yet"})}),n]}),u3=()=>e=>e!=="color"&&e!=="sx"&&e!=="approved"&&e!=="border"&&e!=="bgColor"&&e!=="svgColor",U1=d(w)(({theme:e})=>({display:"flex",alignItems:"center"})),jo=d(D0)(({theme:e})=>({color:e.palette.error.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),F3=d(D0)(({theme:e})=>({color:e.palette.warning.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),B2=d(O0)(({theme:e})=>({color:e.palette.success.main,height:"35px",width:"35px",marginRight:e.spacing(1)})),Do=d(w)(({theme:e})=>({display:"flex",marginTop:e.spacing(2)})),Oo=d(w,{shouldForwardProp:u3()})(({theme:e,bgColor:n,svgColor:a})=>({borderRadius:`${e.shape.borderRadiusMedium}px`,backgroundColor:n,padding:e.spacing(1,2),marginRight:e.spacing(2),height:"45px",width:"45px",display:"flex",alignItems:"center",justifyContent:"center",svg:{color:a}})),nt=d(h0)(({theme:e})=>({margin:e.spacing(2.5,0)})),$o=d(w,{shouldForwardProp:u3()})(({theme:e,border:n})=>({borderRadius:`${e.shape.borderRadiusLarge}px`,border:n,padding:e.spacing(3),width:"100%"})),q1=d(D,{shouldForwardProp:u3()})(({theme:e,color:n})=>({fontWeight:"bold",color:n})),Bo=(e,n)=>e==="Approved"?`2px solid ${n.palette.success.main}`:e==="Applied"?`2px solid ${n.palette.primary.main}`:`1px solid ${n.palette.tertiary.main}`,Fo=(e,n)=>e==="Approved"?{bgColor:n.palette.success.main,svgColor:n.palette.tertiary.background}:e==="Applied"?{bgColor:n.palette.primary.main,svgColor:n.palette.tertiary.background}:{bgColor:n.palette.tableHeaderBackground,svgColor:n.palette.neutral.main},_o=({changeRequest:e})=>{const n=d1();return s(Do,{children:[t(Oo,{...Fo(e.state,n),children:t(l4,{style:{transform:"scale(1.5)"}})}),t($o,{sx:{backgroundColor:e.state==="In review"?n.palette.warning.light:"initial"},border:Bo(e.state,n),children:t(Vo,{changeRequest:e})})]})},Vo=({changeRequest:e})=>{const{state:n}=e;return n?n==="Approved"?t(Lo,{}):n==="Applied"?t(Mo,{}):n==="Cancelled"?t(Ho,{}):t(zo,{minApprovals:e.minApprovals}):null},Lo=()=>{const e=d1();return s(J,{children:[s(U1,{children:[t(B2,{}),s(w,{children:[t(q1,{color:e.palette.success.main,children:"Changed approved"}),t(D,{children:"One approving review from requested approvers"})]})]}),t(nt,{}),s(U1,{children:[t(B2,{}),t(w,{children:t(q1,{color:e.palette.success.main,children:"Changes are ready to be applied"})})]})]})},zo=({minApprovals:e})=>{const n=d1();return s(J,{children:[s(U1,{children:[t(F3,{}),s(w,{children:[t(q1,{color:n.palette.warning.main,children:"Review required"}),s(D,{children:["At least ",e," approval(s) must be submitted before changes can be applied"]})]})]}),t(nt,{}),s(U1,{children:[t(F3,{}),t(q1,{color:n.palette.warning.main,children:"Apply changes is blocked"})]})]})},Mo=()=>{const e=d1();return t(J,{children:s(U1,{children:[t(B2,{sx:{color:e.palette.primary.main}}),t(w,{children:t(q1,{color:e.palette.primary.main,children:"Changes applied"})})]})})},Ho=()=>{const e=d1();return t(J,{children:s(U1,{children:[t(jo,{}),t(w,{children:t(q1,{color:e.palette.error.main,children:"Changes cancelled"})})]})})};var h3={},Wo=X1;Object.defineProperty(h3,"__esModule",{value:!0});var at=h3.default=void 0,No=Wo(Q1()),Uo=ee,qo=(0,No.default)((0,Uo.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");at=h3.default=qo;const Go=({disabled:e})=>{const{isAdmin:n}=p.useContext(ie),a=G("projectId"),r=G("id"),{user:o}=$0(),{refetchChangeRequest:i,data:c}=J0(a,r),{refetch:l}=J2(a),{setToastApiError:h,setToastData:u}=m1(),{changeState:f}=Y2(),[g,y]=ve.useState(!1),T=ve.useRef(null),E=async()=>{try{await f(a,Number(r),{state:"Approved"}),i(),l(),u({type:"success",title:"Success",text:"Changes approved"})}catch(A){h(b1(A))}},P=()=>{y(A=>!A)},$=A=>{T.current&&T.current.contains(A.target)||y(!1)};return s(ve.Fragment,{children:[t(Q2,{variant:"contained",disabled:e||(c==null?void 0:c.createdBy.id)===(o==null?void 0:o.id)&&!n,"aria-controls":g?"review-options-menu":void 0,"aria-expanded":g?"true":void 0,"aria-label":"review changes","aria-haspopup":"menu",onClick:P,ref:T,endIcon:t(at,{}),permission:d4,projectId:a,environmentId:c==null?void 0:c.environment,children:"Review changes"}),t(A0,{sx:{zIndex:1},open:g,anchorEl:T.current,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:A,placement:B})=>t(p4,{...A,style:{transformOrigin:B==="bottom"?"center top":"center bottom"},children:t(I1,{children:t(E0,{onClickAway:$,children:t(U2,{id:"review-options-menu",autoFocusItem:!0,children:t(fe,{onClick:E,children:"Approve changes"})})})})})})]})},Ko=d(w)(({theme:e})=>({display:"flex",alignItems:"center",flexWrap:"wrap",marginTop:e.spacing(1.5),gap:e.spacing(1)})),Jo=d(O0)(({theme:e})=>({color:e.palette.success.main,marginLeft:"auto"})),Yo=({name:e,imageUrl:n})=>s(Ko,{children:[t(Y0,{src:n}),t(D,{variant:"body1",color:"text.primary",sx:{maxWidth:"170px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},children:e}),t(Jo,{})]}),rt=d(xe)(({theme:e})=>({height:"32px",width:"32px",marginTop:e.spacing(1),marginRight:e.spacing(2)})),Qo=d(w)(({theme:e})=>({display:"flex",marginTop:e.spacing(2)})),Xo=d(I1)(({theme:e})=>({width:"100%",padding:e.spacing(1.5,3,2.5,3),backgroundColor:e.palette.neutral.light,borderRadius:e.shape.borderRadiusLarge,borderColor:e.palette.divider})),e5=d(w)(({theme:e})=>({display:"flex",borderBottom:"1px solid",borderColor:e.palette.dividerAlternative,paddingBottom:e.spacing(1.5)})),t5=({comment:e})=>s(Qo,{children:[t(te,{title:e.createdBy.username,children:t(rt,{src:e.createdBy.imageUrl})}),s(Xo,{variant:"outlined",children:[t(e5,{children:s(w,{children:[t("strong",{children:e.createdBy.username})," ",s(D,{color:"text.secondary",component:"span",children:["commented"," ",t(K2,{minPeriod:60,date:new Date(e.createdAt)})]})]})}),t(w,{sx:{paddingTop:2.5},children:e.text})]})]}),n5=d(w)(({theme:e})=>({display:"flex",marginTop:e.spacing(2),marginBottom:e.spacing(1)})),a5=({user:e,commentText:n,onTypeComment:a,children:r})=>s(J,{children:[s(n5,{children:[t(te,{title:(e==null?void 0:e.name)||(e==null?void 0:e.username),children:t(rt,{src:(e==null?void 0:e.imageUrl)||""})}),t(Ue,{variant:"outlined",placeholder:"Add your comment here",fullWidth:!0,multiline:!0,minRows:2,onChange:o=>a(o.target.value),value:n})]}),t(w,{sx:{display:"flex",justifyContent:"flex-end"},children:r})]}),r5=d(w)(({theme:e})=>({width:"30%",display:"flex",flexDirection:"column",[e.breakpoints.down("sm")]:{width:"100%"}})),o5=d(I1)(({theme:e})=>({marginTop:e.spacing(2),marginLeft:e.spacing(2),width:"70%",padding:e.spacing(1,2),borderRadius:e.shape.borderRadiusLarge,[e.breakpoints.down("sm")]:{marginLeft:0,width:"100%"}})),i5=d(w)(({theme:e})=>({marginTop:e.spacing(3),display:"flex",justifyContent:"flex-end"})),s5=d(w)(({theme:e})=>({padding:e.spacing(2)})),c5=d(w)(({theme:e})=>({display:"flex",[e.breakpoints.down("sm")]:{flexDirection:"column"}})),l5=()=>{var V,W;const e=G("projectId"),[n,a]=p.useState(!1),{user:r}=$0(),{isAdmin:o}=p.useContext(ie),[i,c]=p.useState(""),l=G("id"),{data:h,refetchChangeRequest:u}=J0(e,l),{changeState:f,addComment:g}=Y2(),{refetch:y}=J2(e),{setToastData:T,setToastApiError:E}=m1(),{isChangeRequestConfigured:P}=o2(e);if(!h)return null;const $=P(h.environment),A=async()=>{try{await f(e,Number(l),{state:"Applied"}),u(),y(),T({type:"success",title:"Success",text:"Changes applied"})}catch(_){E(b1(_))}},B=async()=>{try{await g(e,l,i),c(""),u(),T({type:"success",title:"Success",text:"Comment added"})}catch(_){E(b1(_))}},H=async()=>{try{await f(e,Number(l),{state:"Cancelled"}),a(!1),u(),y(),T({type:"success",title:"Success",text:"Changes cancelled"})}catch(_){E(b1(_))}},F=()=>a(!0),M=()=>a(!1),b=(h==null?void 0:h.createdBy.id)===(r==null?void 0:r.id)&&h.state==="In review"&&!o,k=h.approvals.some(_=>_.createdBy.id===(r==null?void 0:r.id));return s(J,{children:[t(Lr,{changeRequest:h}),s(c5,{children:[s(r5,{children:[t(Eo,{state:h.state}),t(Io,{header:t(ko,{actualApprovals:h.approvals.length,minApprovals:h.minApprovals}),children:(V=h.approvals)==null?void 0:V.map(_=>t(Yo,{name:_.createdBy.username||"Unknown user",imageUrl:_.createdBy.imageUrl},_.createdBy.username))})]}),t(o5,{elevation:0,children:s(s5,{children:["Requested Changes (",u4(h),")",t(h4,{changeRequest:h,onRefetch:u}),(W=h.comments)==null?void 0:W.map(_=>t(t5,{comment:_},_.id)),t(a5,{user:r,commentText:i,onTypeComment:c,children:t(S1,{variant:"outlined",onClick:B,disabled:!$||i.trim().length===0||i.trim().length>1e3,children:"Comment"})}),t(S,{condition:b,show:t(F1,{sx:_=>({marginTop:_.spacing(1.5)}),severity:"info",children:"You can not approve your own change request"})}),t(_o,{changeRequest:h}),s(i5,{children:[t(S,{condition:h.state==="In review"&&!k,show:t(Go,{disabled:!$})}),t(S,{condition:h.state==="Approved",show:t(Q2,{variant:"contained",onClick:A,projectId:e,permission:m4,environmentId:h.environment,disabled:!$,children:"Apply changes"})}),t(S,{condition:h.state!=="Applied"&&h.state!=="Cancelled"&&(h.createdBy.id===(r==null?void 0:r.id)||o),show:t(S1,{sx:{marginLeft:_=>_.spacing(2)},variant:"outlined",onClick:F,children:"Cancel changes"})})]})]})}),s(a2,{open:n,onClick:H,onClose:M,title:"Cancel change request",children:[t(D,{sx:{marginBottom:2},children:"You are about to cancel this change request"}),t(D,{variant:"body2",sx:_=>({color:_.palette.neutral.dark}),children:"The change request will be moved to closed, and it can't be applied anymore. Once cancelled, the change request can't be reopened."})]})]})]})},d5=({value:e})=>{const n=()=>e?t(j0,{state:e}):null;return e?t(t1,{children:n()}):t(t1,{})},p5=({value:e})=>t(t1,{children:t(l2,{user:e,sx:{maxWidth:"30px",maxHeight:"30px",alignSelf:"left"}})}),u5=d("div")(({theme:e})=>({display:"flex",flexDirection:"row",margin:0})),h5=({value:e,row:{original:n}})=>{const a=G("projectId"),{id:r,features:o}=n,i=g4(),c=`/projects/${a}/change-requests/${r}`;return e?s(t1,{sx:{minWidth:"200px"},children:[t(u5,{children:s(D,{component:"span",variant:"body2",color:i.palette.text.secondary,children:[t(S0,{component:Z1,underline:"hover",to:c,sx:l=>({paddingTop:l.spacing(.2),marginRight:l.spacing(1),"&:hover":{textDecoration:"underline"}}),children:"Change request"}),`#${r}`]})}),s("span",{children:[`${o==null?void 0:o.length}`," ",o.length<=1?"update":"updates"]})]}):t(t1,{})},m5=g0()(e=>({header:{padding:e.spacing(0,4)},bodyClass:{padding:e.spacing(4),overflowX:"auto"}})),g5={id:"createdAt"},f5=d("div")({paddingLeft:0,paddingBottom:0}),v5=d(Ne)(({theme:e})=>({textTransform:"none",width:"auto",fontSize:e.fontSizes.bodySize,[e.breakpoints.up("md")]:{minWidth:160}})),y5=({changeRequests:e=[],loading:n,projectId:a})=>{var K,v;const{classes:r}=m5(),o=u1(f4.breakpoints.down("md")),[i,c]=G2(),[l,h]=p.useState(i.get("search")||""),{value:u,setValue:f}=r2(`${a}:ProjectChangeRequest`,g5),[g,y]=p.useMemo(()=>{const x=e.filter(Z=>Z.state!=="Cancelled"&&Z.state!=="Applied"),O=e.filter(Z=>Z.state==="Cancelled"||Z.state==="Applied");return[x,O]},[e]),T=[{title:"Change requests",data:g},{title:"Closed",data:y}],[E,P]=p.useState(0),$=p.useMemo(()=>[{id:"Title",Header:"Title",width:100,canSort:!0,accessor:"id",Cell:h5},{Header:"By",accessor:"createdBy",maxWidth:50,canSort:!1,Cell:p5,align:"center"},{Header:"Submitted",accessor:"createdAt",searchable:!0,maxWidth:100,Cell:qe,sortType:"alphanumeric"},{Header:"Environment",accessor:"environment",searchable:!0,maxWidth:100,Cell:t1},{Header:"Status",accessor:"state",searchable:!0,minWidth:150,width:150,Cell:d5}],[a]),{data:A,getSearchText:B,getSearchContext:H}=s2($,l,(K=T[E])==null?void 0:K.data),F=p.useMemo(()=>n?v4:A,[A,n]),[M]=p.useState(()=>({sortBy:[{id:i.get("sort")||u.id,desc:i.has("order")?i.get("order")==="desc":u.desc}],hiddenColumns:[]})),{headerGroups:b,rows:k,state:{sortBy:V},prepareRow:W,setHiddenColumns:_,getTableProps:s1,getTableBodyProps:n1}=Q.useTable({columns:$,data:F,initialState:M,sortTypes:Se,autoResetHiddenColumns:!1,disableSortRemove:!0,autoResetSortBy:!1,defaultColumn:{Cell:t1}},Q.useSortBy);return Ce([{condition:o,columns:["createdBy"]}],_,$),p.useEffect(()=>{if(n)return;const x={};x.sort=V[0].id,V[0].desc&&(x.order="desc"),l&&(x.search=l),c(x,{replace:!0}),f(O=>({...O,id:V[0].id,desc:V[0].desc||!1}))},[n,V,l,c]),s(c1,{isLoading:n,bodyClass:r.bodyClass,headerClass:r.header,header:t(o1,{titleElement:t(f5,{children:t(X2,{value:(v=T[E])==null?void 0:v.title,indicatorColor:"primary",textColor:"primary",variant:"scrollable",allowScrollButtonsMobile:!0,children:T.map((x,O)=>t(v5,{label:`${x.title} (${x.data.length})`,value:x.title,onClick:()=>P(O)},x.title))})}),actions:t(C1,{initialValue:l,onChange:h,hasFilters:!0,getSearchContext:H})}),children:[t(Y1,{value:B(l),children:s(Qe,{...s1(),children:[t(Xe,{headerGroups:b}),t(e2,{...n1(),children:k.map(x=>(W(x),t(t2,{hover:!0,...x.getRowProps(),children:x.cells.map(O=>t(n2,{...O.getCellProps(),padding:"none",children:O.render("Cell")}))})))})]})}),t(S,{condition:k.length===0,show:()=>t(S,{condition:(l==null?void 0:l.length)>0,show:s(h1,{children:["No changes found matching “",l,"”"]}),elseShow:t(h1,{children:"None of the changes were submitted yet."})})})]})},b5=()=>{const e=G("projectId"),n=k1(e),{isOss:a,isPro:r}=l1();E1(`Change requests – ${n}`);const{changeRequests:o,loading:i}=U0(e);return a()||r()?t(c1,{sx:{justifyContent:"center"},children:t(e3,{feature:"change-requests"})}):t(y5,{changeRequests:o,projectId:e,loading:i})};var z=(e=>(e.USER="USERS",e.GROUP="GROUPS",e.SERVICE_ACCOUNT="SERVICE ACCOUNTS",e))(z||{});const le=(e,n={})=>{const a=_1(`api/admin/projects/${e}/access`),r=()=>fetch(a,{method:"GET"}).then(V1("project access")).then(g=>g.json()),o=`api/admin/projects/${e}/users`,{data:i,error:c}=K1(o,r,n),[l,h]=p.useState(!c&&!i),u=()=>{R0(o)};return p.useEffect(()=>{h(!c&&!i)},[i,c]),{access:p.useMemo(()=>{if(i)return C5({roles:i.roles,users:i.users.filter(({accountType:g})=>!g||g==="User"),serviceAccounts:i.users.filter(({accountType:g})=>g==="Service Account"),groups:(i==null?void 0:i.groups.map(g=>({...g,users:Q4(g.users??[])})))??[]})},[i]),error:c,loading:l,refetchProjectAccess:u}},C5=e=>{const n=e.users||[],a=e.serviceAccounts||[],r=e.groups||[];return{...e,rows:[...n.map(o=>({entity:o,type:"USERS"})),...a.map(o=>({entity:o,type:"SERVICE ACCOUNTS"})),...r.map(o=>({entity:o,type:"GROUPS"}))]}},S5=d(c1)(({theme:e})=>({height:"100vh",overflow:"auto",padding:e.spacing(7.5,6),[e.breakpoints.down("md")]:{padding:e.spacing(4,2)},"& .header":{padding:e.spacing(0,0,2,0)},"& .body":{padding:e.spacing(3,0,0,0)},borderRadius:`${e.spacing(1.5,0,0,1.5)} !important`})),x5=d("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span":{color:e.palette.text.secondary,fontSize:e.fontSizes.bodySize}})),_3={id:"joinedAt"},w2=[{Header:"Avatar",accessor:"imageUrl",Cell:({row:{original:e}})=>t(t1,{children:t(l2,{user:e})}),maxWidth:85,disableSortBy:!0},{id:"name",Header:"Name",accessor:e=>e.name||"",Cell:ye,minWidth:100,searchable:!0},{id:"username",Header:"Username",accessor:e=>e.username||e.email,Cell:ye,minWidth:100,searchable:!0},{id:"joined",Header:"Joined",accessor:"joinedAt",Cell:i2,sortType:"date",maxWidth:150},{id:"lastLogin",Header:"Last login",accessor:e=>e.seenAt||"",Cell:({row:{original:e}})=>t(qe,{value:e.seenAt,emptyText:"Never",title:n=>`Last login: ${n}`}),sortType:"date",maxWidth:150}],w5=["imageUrl","name","joined","lastLogin"],T5=({open:e,setOpen:n,group:a,projectId:r,subtitle:o,onEdit:i,onRemove:c})=>{const l=d1(),h=u1(l.breakpoints.down("md")),[u]=p.useState(()=>({sortBy:[{id:_3.id,desc:_3.desc}]})),[f,g]=p.useState(""),{data:y,getSearchText:T,getSearchContext:E}=s2(w2,f,(a==null?void 0:a.users)??[]),{headerGroups:P,rows:$,prepareRow:A,setHiddenColumns:B}=Q.useTable({columns:w2,data:y,initialState:u,sortTypes:Se,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0},Q.useSortBy,Q.useFlexLayout);return Ce([{condition:h,columns:w5}],B,w2),t(d2,{open:e,onClose:()=>{n(!1)},label:(a==null?void 0:a.name)||"Group",children:s(S5,{header:t(o1,{secondary:!0,titleElement:s(x5,{children:[a==null?void 0:a.name," (",$.length<y.length?`${$.length} of ${y.length}`:y.length,")",t("span",{children:o})]}),actions:s(J,{children:[t(S,{condition:!h,show:s(J,{children:[t(C1,{initialValue:f,onChange:g,hasFilters:!0,getSearchContext:E}),t(o1.Divider,{})]})}),t($1,{permission:A1,projectId:r,tooltipProps:{title:"Edit group access"},onClick:i,children:t(t3,{})}),t($1,{permission:A1,projectId:r,tooltipProps:{title:"Remove group access"},onClick:c,children:t(n3,{})})]}),children:t(S,{condition:h,show:t(C1,{initialValue:f,onChange:g,hasFilters:!0,getSearchContext:E})})}),children:[t(Y1,{value:T(f),children:t(c2,{rows:$,headerGroups:P,prepareRow:A})}),t(S,{condition:$.length===0,show:t(S,{condition:(f==null?void 0:f.length)>0,show:s(h1,{children:["No users found matching “",f,"” in this group."]}),elseShow:t(h1,{children:"This group is empty. Get started by adding a user to the group."})})})]})})},A5=({permissions:e})=>t(J,{children:e==null?void 0:e.filter(n=>!n.environment).map(n=>n.displayName).sort().map(n=>t("p",{children:n},n))}),E5=({environment:e,permissions:n})=>t(J,{children:[...new Set(n.filter(a=>a.environment===e).map(a=>a.displayName))].sort().map(a=>t("p",{children:a},`${e}-${a}`))}),R5=d("div",{shouldForwardProp:e=>e!=="roleId"&&e!=="popover"&&e!=="sx"})(({theme:e,popover:n})=>({width:"100%",maxWidth:e.spacing(50),padding:e.spacing(3),backgroundColor:n?e.palette.background.paper:e.palette.neutral.light,color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody,borderRadius:e.shape.borderRadiusMedium})),T2=d("div")(({theme:e})=>({"& p:last-child":{marginBottom:e.spacing(2)}})),V3=d("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:e.fontSizes.smallBody,fontWeight:e.fontWeight.bold,marginBottom:e.spacing(2)})),L3=d("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:e.fontSizes.smallBody,marginBottom:e.spacing(1)})),ot=p.forwardRef(({roleId:e,projectId:n,className:a,sx:r,...o},i)=>{var g;const{role:c}=X4(e.toString()),{access:l}=le(n),h=l==null?void 0:l.roles.find(y=>y.id===e),u=p.useMemo(()=>{var T;const y=new Set;return(T=c.permissions)==null||T.filter(E=>E.environment).forEach(E=>{y.add(E.environment)}),[...y].sort()},[c]),f=p.useMemo(()=>{var y;return(y=c.permissions)==null?void 0:y.filter(T=>!T.environment)},[c]);return t(R5,{className:a,sx:r,...o,ref:i,children:t(S,{condition:((g=c.permissions)==null?void 0:g.length)>0,show:s(J,{children:[t(S,{condition:Boolean(f==null?void 0:f.length),show:s(J,{children:[t(V3,{children:"Project permissions"}),t(T2,{children:t(A5,{permissions:c.permissions})})]})}),t(S,{condition:Boolean(u.length),show:s(J,{children:[t(V3,{children:"Environment permissions"}),u.map(y=>s("div",{children:[t(L3,{children:y}),t(T2,{children:t(E5,{environment:y,permissions:c.permissions})})]},y))]})})]}),elseShow:s(J,{children:[t(L3,{children:h==null?void 0:h.name}),t(T2,{children:h==null?void 0:h.description})]})})})}),P5=d("form")(()=>({display:"flex",flexDirection:"column",height:"100%"})),z3=d("p")(({theme:e})=>({color:e.palette.text.secondary,marginBottom:e.spacing(1)})),M3=d("div")(({theme:e})=>({"& > div:first-of-type":{width:"100%",maxWidth:e.spacing(50),marginBottom:e.spacing(2)}})),Z5=d("div")(({theme:e})=>({marginTop:e.spacing(6),display:"flex",justifyContent:"flex-end"})),k5=d(S1)(({theme:e})=>({marginLeft:e.spacing(3)})),I5=d("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:last-of-type":{color:e.palette.text.secondary}})),j5=d("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:first-of-type":{color:e.palette.text.secondary}})),D5=d("div")(({theme:e})=>({display:"flex",flexDirection:"column","& > span:last-of-type":{fontSize:e.fontSizes.smallerBody,color:e.palette.text.secondary}})),m3=({selected:e,accesses:n,users:a,serviceAccounts:r,groups:o,roles:i})=>{const{uiConfig:c}=l1(),{flags:l}=c,h=l.UG?"user / group":"user",u=G("projectId"),{refetchProjectAccess:f}=le(u),{addAccessToProject:g,changeUserRole:y,changeGroupRole:T,loading:E}=M2(),P=Boolean(e),{setToastData:$,setToastApiError:A}=m1(),B=L1(),H=[...o.filter(v=>P||!n.some(({entity:{id:x},type:O})=>v.id===x&&O===z.GROUP)).map(v=>({id:v.id,entity:v,type:z.GROUP})),...a.filter(v=>P||!n.some(({entity:{id:x},type:O})=>v.id===x&&O===z.USER)).sort((v,x)=>{const O=v.name||v.username||"",Z=x.name||x.username||"";return O.localeCompare(Z)}).map(v=>({id:v.id,entity:v,type:z.USER})),...r.filter(v=>P||!n.some(({entity:{id:x},type:O})=>v.id===x&&O===z.SERVICE_ACCOUNT)).sort((v,x)=>{const O=v.name||v.username||"",Z=x.name||x.username||"";return O.localeCompare(Z)}).map(v=>({id:v.id,entity:v,type:z.SERVICE_ACCOUNT}))],[F,M]=p.useState(()=>H.filter(({id:v,type:x})=>v===(e==null?void 0:e.entity.id)&&x===(e==null?void 0:e.type))),[b,k]=p.useState(i.find(({id:v})=>v===(e==null?void 0:e.entity.roleId))??null),V={users:F==null?void 0:F.filter(({type:v})=>v===z.USER||v===z.SERVICE_ACCOUNT).map(({id:v})=>({id:v})),groups:F==null?void 0:F.filter(({type:v})=>v===z.GROUP).map(({id:v})=>({id:v}))},W=async v=>{if(v.preventDefault(),!!K)try{P?(e==null?void 0:e.type)===z.USER||(e==null?void 0:e.type)===z.SERVICE_ACCOUNT?await y(u,b.id,e.entity.id):(e==null?void 0:e.type)===z.GROUP&&await T(u,b.id,e.entity.id):await g(u,b.id,V),f(),B(N1),$({title:`${F.length} ${F.length===1?"access":"accesses"} ${P?"edited":"assigned"} successfully`,type:"success"})}catch(x){A(b1(x))}},_=()=>P?`curl --location --request ${P?"PUT":"POST"} '${c.unleashUrl}/api/admin/projects/${u}/${(e==null?void 0:e.type)===z.USER||(e==null?void 0:e.type)===z.SERVICE_ACCOUNT?"users":"groups"}/${e==null?void 0:e.entity.id}/roles/${b==null?void 0:b.id}' \\
|
|
3
3
|
--header 'Authorization: INSERT_API_KEY'`:`curl --location --request ${P?"PUT":"POST"} '${c.unleashUrl}/api/admin/projects/${u}/role/${b==null?void 0:b.id}/access' \\
|
|
4
4
|
--header 'Authorization: INSERT_API_KEY' \\
|
|
5
5
|
--header 'Content-Type: application/json' \\
|
|
6
|
-
--data-raw '${JSON.stringify(V,void 0,2)}'`,c1=(v,x,O)=>{let k,L;return x.type===z.GROUP?k=x.entity:L=x.entity,s("li",{...v,children:[t(m0,{icon:t(C4,{fontSize:"small"}),checkedIcon:t(S4,{fontSize:"small"}),style:{marginRight:8},checked:O}),t(S,{condition:x.type===z.GROUP,show:s(j5,{children:[t("span",{children:k==null?void 0:k.name}),s("span",{children:[k==null?void 0:k.userCount," users"]})]}),elseShow:s(D5,{children:[t("span",{children:(L==null?void 0:L.name)||(L==null?void 0:L.username)}),t("span",{children:L!=null&&L.name&&(L!=null&&L.username)?L==null?void 0:L.username:L==null?void 0:L.email})]})})]})},n1=(v,x)=>t("li",{...v,children:s(O5,{children:[t("span",{children:x.name}),t("span",{children:x.description})]})}),K=F.length>0&&b;return t(d2,{open:!0,onClose:()=>B(N1),label:`${P?"Edit":"Assign"} ${h} access`,children:t(B0,{loading:E,modal:!0,title:`${P?"Edit":"Assign"} ${h} access`,description:"Custom project roles allow you to fine-tune access rights and permissions within your projects.",documentationLink:"https://docs.getunleash.io/how-to/how-to-create-and-assign-custom-project-roles",documentationLinkLabel:"Project access documentation",formatApiCode:_,children:s(k5,{onSubmit:W,children:[s("div",{children:[s(z3,{"data-testid":f4,children:["Select the ",h]}),t(M3,{children:t(b3,{"data-testid":v4,size:"small",multiple:!0,openOnFocus:!0,limitTags:10,disableCloseOnSelect:!0,disabled:P,value:F,onChange:(v,x,O)=>{v.type==="keydown"&&v.key==="Backspace"&&O==="removeOption"||M(x)},options:H,groupBy:v=>v.type,renderOption:(v,x,{selected:O})=>c1(v,x,O),getOptionLabel:v=>{if(v.type===z.USER||v.type===z.SERVICE_ACCOUNT){const x=v.entity;return x.email||x.name||x.username||""}else return v.entity.name},filterOptions:(v,{inputValue:x})=>v.filter(O=>{if(O.type===z.USER||O.type===z.SERVICE_ACCOUNT){const k=O.entity;return $e(x,k.email)||$e(x,k.name)||$e(x,k.username)}return $e(x,O.entity.name)}),isOptionEqualToValue:(v,x)=>v.type===x.type&&v.entity.id===x.entity.id,renderInput:v=>t(qe,{...v,label:P1(h)})})}),t(z3,{children:"Select the role to assign for this project"}),t(M3,{children:t(b3,{"data-testid":y4,size:"small",openOnFocus:!0,value:b,onChange:(v,x)=>Z(x),options:i,renderOption:n1,getOptionLabel:v=>v.name,renderInput:v=>t(qe,{...v,label:"Role"})})}),t(S,{condition:Boolean(b==null?void 0:b.id),show:t(ot,{roleId:b==null?void 0:b.id,projectId:u})})]}),s(Z5,{children:[t(m1,{"data-testid":b4,type:"submit",variant:"contained",color:"primary",disabled:!K,children:P?"Save":`Assign ${h}`}),t(I5,{onClick:()=>B(N1),children:"Cancel"})]})]})})})},g3=()=>{var r,o;const{data:e,error:n,mutate:a}=K1(_1("api/admin/user-admin/access"),$5);return{users:(r=e==null?void 0:e.users)==null?void 0:r.filter(({accountType:i})=>!i||i==="User"),serviceAccounts:(o=e==null?void 0:e.users)==null?void 0:o.filter(({accountType:i})=>i==="Service Account"),groups:e==null?void 0:e.groups,loading:!n&&!e,refetch:()=>a(),error:n}},$5=e=>fetch(e).then(V1("Access")).then(n=>n.json()),B5=()=>{const e=G("projectId"),{access:n}=de(e),{users:a,serviceAccounts:r,groups:o}=g3();return!n||!a||!r||!o?null:t(m3,{accesses:n.rows,users:a,serviceAccounts:r,groups:o,roles:n.roles})},F5=()=>{const e=G("projectId"),n=G("userId"),{access:a}=de(e),{users:r,serviceAccounts:o,groups:i}=g3();if(!a||!r||!o||!i)return null;const c=a.rows.find(l=>l.entity.id===Number(n)&&l.type!==z.GROUP);return t(m3,{accesses:a.rows,selected:c,users:r,serviceAccounts:o,groups:i,roles:a.roles})},_5=()=>{const e=G("projectId"),n=G("groupId"),{access:a}=de(e),{users:r,serviceAccounts:o,groups:i}=g3();if(!a||!r||!o||!i)return null;const c=a.rows.find(l=>l.entity.id===Number(n)&&l.type===z.GROUP);return t(m3,{accesses:a.rows,selected:c,users:r,serviceAccounts:o,groups:i,roles:a.roles})},V5=({roleId:e,projectId:n,value:a,emptyText:r})=>a?t(t1,{children:t(x4,{tooltip:t(ot,{roleId:e,projectId:n,popover:!0}),tooltipProps:{maxWidth:500,maxHeight:600},children:a})}):t(t1,{children:r}),L5={id:"added"},{value:H3,setValue:z5}=Se("ProjectAccess:v1",L5),M5=d("div")(({theme:e})=>({display:"inline-flex",alignItems:"center",flexWrap:"wrap",marginLeft:e.spacing(1)})),H5=d(l2)(({theme:e})=>({marginRight:e.spacing(-3.5)})),W5=d(l2)(({theme:e})=>({outline:`${e.spacing(.25)} solid ${e.palette.background.paper}`})),N5=["imageUrl","role","added","lastLogin"],U5=["lastLogin","added"],q5=()=>{var L;const e=G("projectId"),{uiConfig:n}=s1(),{flags:a}=n,r=a.UG?"user / group":"user",o=L1(),i=d1(),c=u1(i.breakpoints.down("md")),l=u1(i.breakpoints.down("lg")),{setToastData:h}=g1(),{access:u,refetchProjectAccess:f}=de(e),{removeUserFromRole:g,removeGroupFromRole:y}=M2(),[T,E]=p.useState(!1),[P,$]=p.useState(!1),[A,B]=p.useState(),H=p.useMemo(()=>[{Header:"Avatar",accessor:"imageUrl",Cell:({row:{original:R}})=>{var q;return s(M5,{children:[t(S,{condition:R.type===z.GROUP,show:t(H5,{})}),t(W5,{user:R.entity,children:(q=R.entity.users)==null?void 0:q.length})]})},maxWidth:85,disableSortBy:!0},{id:"name",Header:"Name",accessor:R=>R.entity.name||"",Cell:({value:R,row:{original:q}})=>{var i1,a1,p1;return t(S,{condition:q.type===z.GROUP,show:t(b0,{onClick:()=>{B(q),$(!0)},title:R,subtitle:`${(i1=q.entity.users)==null?void 0:i1.length} users`}),elseShow:t(be,{value:R,subtitle:((a1=q.entity)==null?void 0:a1.username)||((p1=q.entity)==null?void 0:p1.email)})})},minWidth:100,searchable:!0},{id:"username",Header:"Username",accessor:R=>{if(R.type!==z.GROUP){const q=R.entity;return q.username||q.email}return""},Cell:be,minWidth:100,searchable:!0},{id:"role",Header:"Role",accessor:R=>{var q;return(q=u==null?void 0:u.roles.find(({id:i1})=>i1===R.entity.roleId))==null?void 0:q.name},Cell:({value:R,row:{original:q}})=>t(V5,{roleId:q.entity.roleId,projectId:e,value:R}),maxWidth:125,filterName:"role"},{id:"added",Header:"Added",accessor:R=>R.entity.addedAt||"",Cell:({value:R})=>t(Ge,{value:R,emptyText:"Never"}),sortType:"date",maxWidth:130},{id:"lastLogin",Header:"Last login",accessor:R=>R.type!==z.GROUP?R.entity.seenAt||"":R.entity.users.map(({seenAt:i1})=>i1).sort().reverse()[0],Cell:({value:R})=>t(Ge,{value:R,emptyText:"Never"}),sortType:"date",maxWidth:130},{id:"actions",Header:"Actions",disableSortBy:!0,align:"center",maxWidth:150,Cell:({row:{original:R}})=>s(H2,{children:[t($1,{"data-testid":w4,component:Z1,permission:A1,projectId:e,to:`edit/${R.type===z.GROUP?"group":"user"}/${R.entity.id}`,disabled:(u==null?void 0:u.rows.length)===1,tooltipProps:{title:(u==null?void 0:u.rows.length)===1?"Cannot edit access. A project must have at least one owner":"Edit access"},children:t(t3,{})}),t($1,{"data-testid":T4,permission:A1,projectId:e,onClick:()=>{B(R),E(!0)},disabled:(u==null?void 0:u.rows.length)===1,tooltipProps:{title:(u==null?void 0:u.rows.length)===1?"Cannot remove access. A project must have at least one owner":"Remove access"},children:t(n3,{})})]})}],[u,e]),[F,M]=G2(),[b]=p.useState(()=>({sortBy:[{id:F.get("sort")||H3.id,desc:F.has("order")?F.get("order")==="desc":H3.desc}],globalFilter:F.get("search")||""})),[Z,V]=p.useState(b.globalFilter),{data:W,getSearchText:_,getSearchContext:c1}=s2(H,Z,(u==null?void 0:u.rows)??[]),{headerGroups:n1,rows:K,prepareRow:v,setHiddenColumns:x,state:{sortBy:O}}=Q.useTable({columns:H,data:W,initialState:b,sortTypes:we,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0,defaultColumn:{Cell:t1}},Q.useSortBy,Q.useFlexLayout);xe([{condition:c,columns:N5},{condition:l,columns:U5}],x,H),p.useEffect(()=>{const R={};R.sort=O[0].id,O[0].desc&&(R.order="desc"),Z&&(R.search=Z),M(R,{replace:!0}),z5({id:O[0].id,desc:O[0].desc||!1})},[O,Z,M]);const k=async R=>{if(!R)return;const{id:q,roleId:i1}=R.entity;let a1=R.entity.name;if(R.type!==z.GROUP){const p1=R.entity;a1=a1||p1.email||p1.username||""}try{R.type!==z.GROUP?await g(e,i1,q):await y(e,i1,q),f(),h({type:"success",title:`${a1||`The ${r}`} has been removed from project`})}catch(p1){h({type:"error",title:p1.message||`Server problems when removing ${r}.`})}E(!1)};return s(l1,{header:t(o1,{secondary:!0,title:`Access (${K.length<W.length?`${K.length} of ${W.length}`:W.length})`,actions:s(J,{children:[t(S,{condition:!c,show:s(J,{children:[t(S1,{initialValue:Z,onChange:V,hasFilters:!0,getSearchContext:c1}),t(o1.Divider,{})]})}),s(f0,{onClick:()=>o("create"),maxWidth:"700px",Icon:C0,permission:A1,projectId:e,"data-testid":A4,children:["Assign ",r]})]}),children:t(S,{condition:c,show:t(S1,{initialValue:Z,onChange:V,hasFilters:!0,getSearchContext:c1})})}),children:[t(Y1,{value:_(Z),children:t(c2,{rows:K,headerGroups:n1,prepareRow:v})}),t(S,{condition:K.length===0,show:t(S,{condition:(Z==null?void 0:Z.length)>0,show:s(h1,{children:["No access found matching “",Z,"”"]}),elseShow:s(h1,{children:["No access available. Get started by assigning a"," ",r,"."]})})}),s(p2,{children:[t(r1,{path:"create",element:t(B5,{})}),t(r1,{path:"edit/group/:groupId",element:t(_5,{})}),t(r1,{path:"edit/user/:userId",element:t(F5,{})})]}),t(r2,{open:T,onClick:()=>k(A),onClose:()=>{E(!1)},title:`Really remove ${r} from this project?`}),t(A5,{open:P,setOpen:$,group:A==null?void 0:A.entity,projectId:e,subtitle:`Role: ${(L=u==null?void 0:u.roles.find(({id:R})=>R===(A==null?void 0:A.entity.roleId)))==null?void 0:L.name}`,onEdit:()=>{o(`edit/group/${A==null?void 0:A.entity.id}`)},onRemove:()=>{$(!1),E(!0)}})]})},G5=()=>{const e=G("projectId"),n=I1(e),{hasAccess:a}=p.useContext(se),{isOss:r}=s1();return E1(`Project access – ${n}`),r()?t(l1,{header:t(o1,{title:"Access"}),sx:{justifyContent:"center"},children:t(e3,{feature:"access"})}):a(A1,e)?t(q5,{}):t(l1,{header:t(o1,{title:"Access"}),children:t(F1,{severity:"error",children:"You need project owner permissions to access this section."})})},W3="UPDATE_PROJECT",K5="CREATE_PROJECT_API_TOKEN",J5="DELETE_PROJECT_API_TOKEN",Y5=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:860,height:298,fill:"none",...e},p.createElement("rect",{width:860,height:298,fill:"#F2F2F5",rx:12}),p.createElement("rect",{width:109,height:23,x:515.5,y:114.5,fill:"#F4FAEB",rx:3.5}),p.createElement("g",{clipPath:"url(#a)"},p.createElement("path",{fill:"#68A611",d:"m537.75 129.128-2.603-2.603a.747.747 0 1 0-1.057 1.058l3.135 3.135a.747.747 0 0 0 1.057 0l7.935-7.935a.747.747 0 1 0-1.057-1.058l-7.41 7.403Z"})),p.createElement("path",{fill:"#3B6600",d:"m557.639 122.09 3.656 7.91h-1.91l-.598-1.465h-3.105l-.598 1.465h-1.91l3.656-7.91h.809Zm-.399 2.66-.984 2.402h1.969l-.985-2.402Zm8.473-.82c.469 0 .902.121 1.301.363.406.234.73.582.972 1.043.25.453.375 1.008.375 1.664 0 .656-.125 1.223-.375 1.699a2.675 2.675 0 0 1-.996 1.102c-.414.25-.875.375-1.383.375-.328 0-.656-.078-.984-.235a2.799 2.799 0 0 1-.809-.609v3.48h-1.488v-8.73h1.488v.996c.172-.32.422-.59.75-.808a1.97 1.97 0 0 1 1.149-.34Zm-.375 1.488c-.266 0-.516.07-.75.211a1.557 1.557 0 0 0-.574.574c-.141.25-.207.551-.2.902v.856c.211.219.438.402.68.551.25.14.52.211.809.211.304 0 .57-.082.797-.246.226-.165.402-.375.527-.633.125-.266.187-.547.187-.844 0-.445-.136-.82-.41-1.125-.265-.305-.621-.457-1.066-.457Zm7.828-1.488c.469 0 .902.121 1.301.363.406.234.73.582.972 1.043.25.453.375 1.008.375 1.664 0 .656-.125 1.223-.375 1.699a2.675 2.675 0 0 1-.996 1.102c-.414.25-.875.375-1.382.375-.329 0-.657-.078-.985-.235a2.78 2.78 0 0 1-.808-.609v3.48h-1.489v-8.73h1.489v.996c.171-.32.421-.59.75-.808.328-.227.711-.34 1.148-.34Zm-.375 1.488c-.266 0-.516.07-.75.211a1.557 1.557 0 0 0-.574.574c-.141.25-.207.551-.199.902v.856c.211.219.437.402.679.551.25.14.52.211.809.211.305 0 .57-.082.797-.246.226-.165.402-.375.527-.633a1.96 1.96 0 0 0 .188-.844c0-.445-.137-.82-.411-1.125-.265-.305-.621-.457-1.066-.457Zm8.168.328a1.576 1.576 0 0 0-.785-.211 1.16 1.16 0 0 0-.856.34 3.196 3.196 0 0 0-.597.82V130h-1.489v-5.918h1.489v1.113c.203-.351.441-.644.715-.879.281-.234.597-.351.949-.351.211 0 .402.035.574.105v1.676Zm3.902-1.816c.578 0 1.106.14 1.582.422.477.273.86.648 1.149 1.125.297.468.445.996.445 1.582 0 .586-.148 1.113-.445 1.582a3.31 3.31 0 0 1-1.149 1.125 3.125 3.125 0 0 1-1.582.41 3.17 3.17 0 0 1-1.582-.41 3.315 3.315 0 0 1-1.148-1.125 2.954 2.954 0 0 1-.434-1.582c0-.586.145-1.114.434-1.582a3.165 3.165 0 0 1 1.148-1.125 3.09 3.09 0 0 1 1.582-.422Zm0 1.441c-.281 0-.543.067-.785.199a1.539 1.539 0 0 0-.586.575c-.14.25-.211.554-.211.914 0 .359.071.664.211.914.149.25.344.441.586.574.242.125.504.187.785.187.282 0 .543-.062.785-.187.243-.133.438-.324.586-.574.149-.25.223-.555.223-.914 0-.36-.074-.664-.223-.914a1.525 1.525 0 0 0-.586-.575 1.612 1.612 0 0 0-.785-.199Zm10.067-1.289L592.127 130h-.949l-2.766-5.918h1.734l1.489 3.668 1.558-3.668h1.735Zm3.328-.152c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.227.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .821-.086 1.172-.258.352-.172.633-.347.844-.527l-.012 1.383c-.187.164-.469.332-.844.504a2.952 2.952 0 0 1-1.218.246 3.283 3.283 0 0 1-1.606-.399 3.14 3.14 0 0 1-1.148-1.089c-.282-.461-.422-.989-.422-1.583 0-.578.129-1.105.387-1.582a3.071 3.071 0 0 1 1.066-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.035 1.3c-.367 0-.676.114-.926.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.469-.937a1.506 1.506 0 0 0-.925-.317Zm9.808-3.668V130h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.148.34-.477 0-.918-.121-1.325-.364-.398-.242-.718-.593-.961-1.054-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687.25-.469.582-.829.997-1.079a2.625 2.625 0 0 1 1.394-.386c.32 0 .645.074.973.222.328.149.601.348.82.598v-3.188h1.488Zm-2.976 3.833c-.313 0-.582.082-.809.246-.219.156-.39.363-.515.621-.125.25-.188.523-.188.82 0 .445.133.824.398 1.137.274.312.633.469 1.079.469.265 0 .511-.071.738-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.44 2.44 0 0 0-.691-.527 1.63 1.63 0 0 0-.797-.199Z"}),p.createElement("rect",{width:109,height:23,x:515.5,y:114.5,stroke:"#B0D182",rx:3.5}),p.createElement("rect",{width:141,height:23,x:680.5,y:114.5,fill:"#F4FAEB",rx:3.5}),p.createElement("path",{fill:"#68A611",d:"m690.692 122.251 1.058-1.057 2.557 2.557-1.057 1.058-2.558-2.558Zm9.308 7.125v-2.625h-4.193l-4.057 4.058-1.057-1.058 4.499-4.5H700v-2.625l3.375 3.375-3.375 3.375Z"}),p.createElement("path",{fill:"#3B6600",d:"M715.097 121.304c.533 0 .995.076 1.384.228.389.144.728.343 1.016.597v1.777c-.204-.152-.415-.3-.635-.444a2.983 2.983 0 0 0-1.714-.495 2.67 2.67 0 0 0-1.384.368 2.735 2.735 0 0 0-1.358 2.412c0 .525.122.999.368 1.422.245.415.575.745.99.99a2.74 2.74 0 0 0 1.384.356c.567 0 1.041-.085 1.422-.254.389-.178.74-.394 1.054-.648v1.714a3.276 3.276 0 0 1-1.08.635 4.333 4.333 0 0 1-1.447.228 4.69 4.69 0 0 1-1.726-.317 4.617 4.617 0 0 1-1.435-.914 4.348 4.348 0 0 1-.978-1.409 4.47 4.47 0 0 1-.355-1.803c0-.66.119-1.261.355-1.803a4.2 4.2 0 0 1 .978-1.396 4.313 4.313 0 0 1 1.435-.914 4.54 4.54 0 0 1 1.726-.33Zm7.643 2.12c.651 0 1.197.22 1.637.66.441.44.661 1.1.661 1.98V130h-1.613l-.012-3.72c0-.431-.106-.753-.318-.965-.203-.211-.486-.317-.85-.317-.288 0-.559.093-.813.279a2.974 2.974 0 0 0-.635.661V130h-1.612v-9.141h1.612v3.644a3.32 3.32 0 0 1 .787-.736 2.016 2.016 0 0 1 1.156-.343Zm6.69 0c.347 0 .698.08 1.054.241.355.161.652.377.889.647v-.723h1.612V130h-1.612v-1.079a2.648 2.648 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.995-.131-1.435-.393-.431-.262-.778-.643-1.041-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.95 2.95 0 0 1 1.079-1.168c.457-.28.961-.419 1.511-.419Zm.33 1.574c-.338 0-.63.089-.876.267a1.733 1.733 0 0 0-.558.673 2.027 2.027 0 0 0-.203.901c0 .482.143.893.431 1.231.296.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.69 1.69 0 0 0 .609-.635c.161-.279.242-.614.242-1.003v-.914a2.864 2.864 0 0 0-.749-.584 1.77 1.77 0 0 0-.864-.216Zm6.818-1.409v.914a3.3 3.3 0 0 1 .787-.736 2.01 2.01 0 0 1 1.155-.343c.652 0 1.198.22 1.638.66.44.44.66 1.1.66 1.98V130h-1.612l-.013-3.72c0-.431-.106-.753-.318-.965-.203-.211-.486-.317-.85-.317-.288 0-.559.093-.813.279a2.947 2.947 0 0 0-.634.661V130h-1.613v-6.411h1.613Zm8.632-.165c.347 0 .699.08 1.054.241.356.161.652.377.889.647v-.723h1.612v6.246c0 .728-.161 1.341-.482 1.841a3.12 3.12 0 0 1-1.283 1.155 3.808 3.808 0 0 1-1.751.406c-.568 0-1.033-.084-1.397-.254a6.634 6.634 0 0 1-1.016-.584v-1.523c.195.118.398.245.61.381.22.135.465.25.736.343.279.093.601.139.965.139.381 0 .724-.072 1.028-.216.305-.143.542-.347.711-.609.178-.254.267-.546.267-.876v-1.117a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.27-.508.63-.897 1.079-1.168.457-.28.96-.419 1.51-.419Zm.331 1.587c-.339 0-.631.089-.876.266a1.75 1.75 0 0 0-.559.673 1.965 1.965 0 0 0-.203.889c0 .482.144.893.431 1.231.297.33.686.495 1.168.495.288 0 .555-.072.8-.215a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.62 2.62 0 0 0-.749-.571 1.766 1.766 0 0 0-.863-.216Zm8.01-1.587c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.296.779.635 1.041.339.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.557 3.557 0 0 1-1.74-.431 3.405 3.405 0 0 1-1.244-1.181c-.304-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.155-1.244a2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm6.602-1.409c.398 0 .766.059 1.104.178.339.118.601.253.787.406v1.422a4.603 4.603 0 0 0-.749-.394 2.205 2.205 0 0 0-.901-.19c-.305 0-.546.067-.724.203-.177.135-.266.296-.266.482 0 .136.051.263.152.381.102.11.296.207.584.292l.724.241c.973.288 1.46.851 1.46 1.689 0 .398-.115.753-.343 1.066a2.27 2.27 0 0 1-.901.724 2.853 2.853 0 0 1-1.245.266c-.431 0-.85-.067-1.256-.203-.407-.135-.716-.283-.927-.444v-1.409c.161.11.355.216.584.317.228.102.465.186.711.254.245.059.469.089.673.089.321 0 .567-.055.736-.165a.563.563 0 0 0 .266-.495.431.431 0 0 0-.215-.381 2.91 2.91 0 0 0-.635-.279l-.787-.28c-.491-.16-.83-.389-1.016-.685-.186-.296-.279-.648-.279-1.054s.101-.757.305-1.054c.211-.304.503-.541.876-.711a2.95 2.95 0 0 1 1.282-.266Zm9.889 0c.347 0 .699.08 1.054.241.356.161.652.377.889.647v-.723h1.612V130h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.27-.508.63-.897 1.079-1.168.457-.28.96-.419 1.51-.419Zm.33 1.574c-.338 0-.63.089-.876.267a1.742 1.742 0 0 0-.558.673 2.027 2.027 0 0 0-.203.901c0 .482.144.893.431 1.231.297.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.848 2.848 0 0 0-.749-.584 1.767 1.767 0 0 0-.864-.216Zm8.874-1.574c.508 0 .978.131 1.41.393.44.254.791.631 1.053 1.13.271.491.407 1.092.407 1.803 0 .711-.136 1.325-.407 1.841a2.897 2.897 0 0 1-1.079 1.193 2.84 2.84 0 0 1-1.498.406c-.355 0-.711-.084-1.066-.253a3.017 3.017 0 0 1-.876-.661v3.771h-1.612v-9.458h1.612v1.079a2.43 2.43 0 0 1 .812-.876 2.141 2.141 0 0 1 1.244-.368Zm-.406 1.612c-.288 0-.558.076-.812.229a1.68 1.68 0 0 0-.622.622c-.153.271-.225.596-.216.977v.927c.228.237.474.436.736.597.271.152.563.228.876.228.33 0 .618-.089.863-.266a1.81 1.81 0 0 0 .572-.686c.135-.288.203-.592.203-.914 0-.482-.148-.889-.444-1.219-.288-.33-.673-.495-1.156-.495Zm8.481-1.612c.508 0 .977.131 1.409.393.44.254.791.631 1.054 1.13.27.491.406 1.092.406 1.803 0 .711-.136 1.325-.406 1.841a2.903 2.903 0 0 1-1.079 1.193 2.843 2.843 0 0 1-1.499.406c-.355 0-.71-.084-1.066-.253a3.017 3.017 0 0 1-.876-.661v3.771h-1.612v-9.458h1.612v1.079c.186-.347.457-.639.813-.876.355-.245.77-.368 1.244-.368Zm-.407 1.612c-.287 0-.558.076-.812.229a1.686 1.686 0 0 0-.622.622c-.152.271-.224.596-.216.977v.927c.229.237.474.436.736.597.271.152.563.228.876.228.33 0 .618-.089.864-.266.245-.178.436-.407.571-.686.135-.288.203-.592.203-.914 0-.482-.148-.889-.444-1.219-.288-.33-.673-.495-1.156-.495Zm6.424-4.177V130h-1.612v-9.141h1.612Zm3.314-.609c.304 0 .567.11.787.33a1.048 1.048 0 0 1 0 1.524c-.22.22-.483.33-.787.33-.305 0-.567-.11-.787-.33a1.067 1.067 0 0 1-.318-.762c0-.296.106-.55.318-.762.22-.22.482-.33.787-.33Zm.939 3.339V130h-1.612v-5.04h-1.028v-1.371h2.64Zm4.837-.165c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.369 1.024.369 1.65v.686h-4.647c.085.432.296.779.635 1.041.338.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.38-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.557 3.557 0 0 1-1.74-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.626-3.974V130h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.042-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.946 2.946 0 0 1 1.08-1.168c.457-.28.96-.419 1.51-.419.347 0 .699.08 1.054.241.356.161.652.377.889.647v-3.453h1.612Zm-3.225 4.152c-.338 0-.63.089-.876.266-.237.17-.423.394-.558.673a1.952 1.952 0 0 0-.203.889c0 .482.144.893.431 1.231.297.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.62 2.62 0 0 0-.749-.571 1.767 1.767 0 0 0-.864-.216Z"}),p.createElement("rect",{width:141,height:23,x:680.5,y:114.5,stroke:"#B0D182",rx:3.5}),p.createElement("rect",{width:141,height:23,x:680.5,y:177.5,fill:"#FFF2F3",rx:3.5}),p.createElement("path",{fill:"#D93644",d:"M725.724 184.283a.745.745 0 0 0-1.057 0l-3.668 3.66-3.667-3.668a.748.748 0 0 0-1.058 1.058l3.668 3.667-3.668 3.668a.747.747 0 1 0 1.058 1.057l3.667-3.667 3.668 3.667a.745.745 0 0 0 1.057 0 .745.745 0 0 0 0-1.057L722.057 189l3.667-3.667a.752.752 0 0 0 0-1.05Z"}),p.createElement("path",{fill:"#D11525",d:"M738.973 184.973c.492 0 .918.07 1.277.211.359.132.672.316.938.55v1.641a11.253 11.253 0 0 0-.586-.41 2.99 2.99 0 0 0-.692-.328 2.745 2.745 0 0 0-.89-.129c-.469 0-.895.113-1.278.34a2.558 2.558 0 0 0-.914.914c-.226.383-.34.82-.34 1.312 0 .485.114.922.34 1.313.227.383.531.687.914.914.383.219.809.328 1.278.328.523 0 .96-.078 1.312-.234.359-.165.684-.364.973-.598v1.582a3.048 3.048 0 0 1-.996.586c-.399.14-.844.211-1.336.211a4.347 4.347 0 0 1-1.594-.293 4.263 4.263 0 0 1-1.324-.844 4.01 4.01 0 0 1-.903-1.301 4.118 4.118 0 0 1-.328-1.664c0-.609.11-1.164.328-1.664.219-.5.52-.93.903-1.289a4.007 4.007 0 0 1 1.324-.844 4.195 4.195 0 0 1 1.594-.304Zm6.117 1.957c.32 0 .644.074.972.222.329.149.602.348.821.598v-.668h1.488V193h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.149.34-.476 0-.918-.121-1.324-.364a2.627 2.627 0 0 1-.961-1.054c-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687a2.72 2.72 0 0 1 .996-1.079 2.631 2.631 0 0 1 1.395-.386Zm.305 1.453a1.34 1.34 0 0 0-.809.246 1.606 1.606 0 0 0-.516.621 1.882 1.882 0 0 0-.187.832c0 .445.133.824.398 1.137.274.312.633.469 1.078.469.266 0 .512-.071.739-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.652 2.652 0 0 0-.692-.539 1.624 1.624 0 0 0-.796-.199Zm6.293-1.301v.844c.179-.242.421-.469.726-.68a1.862 1.862 0 0 1 1.066-.316c.602 0 1.106.203 1.512.609.406.406.61 1.016.61 1.828V193h-1.489l-.011-3.434c0-.398-.098-.695-.293-.89-.188-.196-.45-.293-.786-.293-.265 0-.515.086-.75.258a2.707 2.707 0 0 0-.585.609V193h-1.489v-5.918h1.489Zm8.32-.152c.437 0 .797.07 1.078.211.281.14.504.277.668.41v1.371a3.03 3.03 0 0 0-.692-.375c-.25-.102-.558-.152-.925-.152a1.641 1.641 0 0 0-1.43.82c-.148.25-.223.535-.223.855 0 .485.157.883.469 1.196.313.312.707.468 1.184.468.367 0 .675-.046.925-.14.258-.102.489-.227.692-.375v1.359a2.998 2.998 0 0 1-.668.41c-.281.125-.641.188-1.078.188-.602 0-1.137-.141-1.606-.422a3.257 3.257 0 0 1-1.101-1.137 3.12 3.12 0 0 1-.399-1.547c0-.414.075-.808.223-1.183.156-.375.375-.707.656-.996.281-.297.61-.532.985-.703a2.99 2.99 0 0 1 1.242-.258Zm5.66 0c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.227.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .821-.086 1.172-.258.352-.172.633-.347.844-.527l-.012 1.383c-.187.164-.468.332-.844.504a2.952 2.952 0 0 1-1.218.246 3.283 3.283 0 0 1-1.606-.399 3.14 3.14 0 0 1-1.148-1.089c-.281-.461-.422-.989-.422-1.583 0-.578.129-1.105.387-1.582a3.071 3.071 0 0 1 1.066-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.035 1.3c-.367 0-.676.114-.926.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.468-.937a1.511 1.511 0 0 0-.926-.317Zm5.672-3.668V193h-1.489v-8.438h1.489Zm3.304 0V193h-1.488v-8.438h1.488Zm4.407 2.368c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.226.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .82-.086 1.172-.258.351-.172.633-.347.844-.527l-.012 1.383c-.188.164-.469.332-.844.504a2.953 2.953 0 0 1-1.219.246 3.277 3.277 0 0 1-1.605-.399 3.132 3.132 0 0 1-1.148-1.089c-.282-.461-.422-.989-.422-1.583 0-.578.129-1.105.386-1.582a3.082 3.082 0 0 1 1.067-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.036 1.3c-.367 0-.675.114-.925.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.469-.937a1.51 1.51 0 0 0-.926-.317Zm9.809-3.668V193h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.149.34-.476 0-.918-.121-1.324-.364a2.627 2.627 0 0 1-.961-1.054c-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687a2.72 2.72 0 0 1 .996-1.079 2.631 2.631 0 0 1 1.395-.386c.32 0 .644.074.972.222.329.149.602.348.821.598v-3.188h1.488Zm-2.977 3.833a1.34 1.34 0 0 0-.808.246 1.606 1.606 0 0 0-.516.621c-.125.25-.187.523-.187.82 0 .445.133.824.398 1.137.274.312.633.469 1.078.469.266 0 .512-.071.739-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.443 2.443 0 0 0-.692-.527 1.625 1.625 0 0 0-.797-.199Z"}),p.createElement("rect",{width:141,height:23,x:680.5,y:177.5,stroke:"#FEB0B7",rx:3.5}),p.createElement("rect",{width:139,height:23,x:287.5,y:146.5,fill:"#F1F0FC",rx:3.5}),p.createElement("path",{fill:"#6C65E5",d:"M304 150.5a7.493 7.493 0 0 0-7.5 7.5c0 4.148 3.352 7.5 7.5 7.5s7.5-3.352 7.5-7.5-3.352-7.5-7.5-7.5Zm0 13.5c-3.307 0-6-2.693-6-6s2.693-6 6-6 6 2.693 6 6-2.693 6-6 6Z"}),p.createElement("path",{fill:"#615BC2",d:"M321.979 153.494c.398 0 .788.055 1.168.165.381.11.724.279 1.029.508.313.229.558.516.736.863.186.339.279.745.279 1.219 0 .499-.127.931-.38 1.295a2.56 2.56 0 0 1-.978.838 3.637 3.637 0 0 1-1.32.343l3.059 3.275h-2.323l-2.958-3.479V162h-1.765v-8.506h3.453Zm-1.688 1.651v2.145c.203.068.427.123.673.165.254.034.508.051.762.051.507 0 .909-.102 1.206-.305.304-.211.457-.508.457-.889 0-.414-.161-.71-.483-.888-.313-.186-.698-.279-1.155-.279h-1.46Zm9.052.279c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.368 1.024.368 1.65v.686h-4.646c.084.432.296.779.635 1.041.338.262.753.393 1.244.393.465 0 .888-.093 1.269-.279.381-.186.686-.376.914-.571l-.012 1.498c-.204.178-.508.36-.914.546a3.198 3.198 0 0 1-1.321.266 3.553 3.553 0 0 1-1.739-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.139-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.993 2.993 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.559.99h3.072c-.033-.457-.203-.795-.507-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.727-1.244L336.998 162h-1.028l-2.996-6.411h1.879l1.612 3.973 1.688-3.973h1.879Zm2.463-3.339c.305 0 .567.11.787.33a1.048 1.048 0 0 1 0 1.524c-.22.22-.482.33-.787.33-.305 0-.567-.11-.787-.33a1.066 1.066 0 0 1-.317-.762c0-.296.105-.55.317-.762.22-.22.482-.33.787-.33Zm.94 3.339V162h-1.613v-5.04h-1.028v-1.371h2.641Zm4.836-.165c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.297.779.635 1.041.339.262.754.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.397 3.397 0 0 1-1.244-1.181c-.305-.499-.458-1.071-.458-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.156-1.244a2.992 2.992 0 0 1 1.675-.482Zm-.038 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Zm13.445-1.244L359.456 162h-1.168l-1.498-4.151-1.498 4.151h-1.181l-2.209-6.411h1.752l1.181 3.796 1.384-3.796h1.155l1.371 3.796 1.181-3.796h1.752Zm8.963 1.803a1.707 1.707 0 0 0-.851-.229 1.26 1.26 0 0 0-.927.368 3.44 3.44 0 0 0-.647.889V162h-1.612v-6.411h1.612v1.206a3.63 3.63 0 0 1 .774-.952 1.566 1.566 0 0 1 1.029-.381c.228 0 .435.038.622.114v1.816Zm4.049-1.968c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.297.779.635 1.041.339.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.407 3.407 0 0 1-1.245-1.181c-.304-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.156-1.244a2.992 2.992 0 0 1 1.675-.482Zm-.038 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Zm7.072-1.409c.347 0 .698.08 1.053.241.356.161.652.377.889.647v-.723h1.612v9.458h-1.612v-4.126a2.645 2.645 0 0 1-.812.901 2.135 2.135 0 0 1-1.245.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.961-.419 1.511-.419Zm.33 1.587c-.339 0-.631.089-.876.266-.237.17-.423.394-.559.673a1.965 1.965 0 0 0-.203.889c0 .482.144.893.432 1.231.296.33.685.495 1.168.495.287 0 .554-.072.799-.215a1.7 1.7 0 0 0 .61-.635c.161-.279.241-.614.241-1.003v-.914a2.606 2.606 0 0 0-.749-.571 1.763 1.763 0 0 0-.863-.216Zm10.867-1.422v3.821c0 .567-.127 1.058-.381 1.473a2.543 2.543 0 0 1-1.041.939 3.2 3.2 0 0 1-1.473.33c-.558 0-1.058-.11-1.498-.33a2.565 2.565 0 0 1-1.028-.939c-.245-.415-.368-.906-.368-1.473v-3.821h1.625l.013 3.529c0 .5.114.872.342 1.117.229.246.534.369.914.369.373 0 .673-.123.902-.369.237-.245.355-.617.355-1.117v-3.529h1.638Zm3.186-3.339c.305 0 .567.11.788.33a1.048 1.048 0 0 1 0 1.524c-.221.22-.483.33-.788.33-.304 0-.567-.11-.787-.33a1.07 1.07 0 0 1-.317-.762c0-.296.106-.55.317-.762.22-.22.483-.33.787-.33Zm.94 3.339V162h-1.612v-5.04h-1.029v-1.371h2.641Zm6.068 1.803a1.703 1.703 0 0 0-.85-.229c-.373 0-.682.123-.927.368a3.441 3.441 0 0 0-.648.889V162h-1.612v-6.411h1.612v1.206c.22-.381.479-.698.775-.952a1.564 1.564 0 0 1 1.028-.381c.229 0 .436.038.622.114v1.816Zm4.05-1.968c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.369 1.024.369 1.65v.686h-4.647c.085.432.296.779.635 1.041.338.262.753.393 1.244.393a2.85 2.85 0 0 0 1.269-.279c.381-.186.686-.376.915-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.198 3.198 0 0 1-1.321.266 3.556 3.556 0 0 1-1.739-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.559.99h3.073c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.626-3.974V162h-1.612v-1.079a2.648 2.648 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.435-.393-.431-.262-.778-.643-1.041-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.946 2.946 0 0 1 1.08-1.168c.457-.28.96-.419 1.51-.419.347 0 .698.08 1.054.241.355.161.652.377.889.647v-3.453h1.612Zm-3.225 4.152c-.338 0-.63.089-.876.266-.237.17-.423.394-.558.673a1.952 1.952 0 0 0-.203.889c0 .482.144.893.431 1.231.296.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.69 1.69 0 0 0 .609-.635c.161-.279.242-.614.242-1.003v-.914a2.633 2.633 0 0 0-.749-.571 1.77 1.77 0 0 0-.864-.216Z"}),p.createElement("rect",{width:139,height:23,x:287.5,y:146.5,stroke:"#BEBBF3",rx:3.5}),p.createElement("rect",{width:88,height:23,x:142.5,y:146.5,fill:"#FFF4E5",rx:3.5}),p.createElement("path",{fill:"#B35300",d:"M154.692 153.291c.897 0 1.684.182 2.361.546a3.9 3.9 0 0 1 1.574 1.523c.381.652.572 1.418.572 2.298 0 .838-.178 1.6-.533 2.285a4.056 4.056 0 0 1-1.524 1.613c-.66.397-1.447.596-2.361.596a17.819 17.819 0 0 1-3.39-.33v-8.201a41.433 41.433 0 0 1 1.612-.228 13.767 13.767 0 0 1 1.689-.102Zm.038 1.65a9.506 9.506 0 0 0-1.574.14v5.281c.254.051.516.089.787.115.279.016.542.025.787.025.559 0 1.037-.119 1.435-.356.397-.245.702-.579.914-1.002.211-.424.317-.898.317-1.422 0-.542-.106-1.02-.317-1.435a2.372 2.372 0 0 0-.914-.977c-.398-.246-.876-.369-1.435-.369Zm10.067 2.451a1.7 1.7 0 0 0-.85-.229c-.373 0-.682.123-.927.368a3.44 3.44 0 0 0-.647.889V162h-1.613v-6.411h1.613v1.206a3.63 3.63 0 0 1 .774-.952 1.564 1.564 0 0 1 1.028-.381c.229 0 .436.038.622.114v1.816Zm3.784-1.968c.347 0 .698.08 1.053.241.356.161.652.377.889.647v-.723h1.612V162h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.96-.419 1.511-.419Zm.33 1.574a1.45 1.45 0 0 0-.876.267 1.735 1.735 0 0 0-.559.673 2.04 2.04 0 0 0-.203.901c0 .482.144.893.432 1.231.296.339.685.508 1.168.508.287 0 .554-.076.799-.228a1.7 1.7 0 0 0 .61-.635c.161-.279.241-.614.241-1.003v-.914a2.848 2.848 0 0 0-.749-.584 1.763 1.763 0 0 0-.863-.216Zm8.963-1.409v1.346h-1.664V162h-1.612v-5.065h-.977v-1.346h.977v-.571c0-.491.102-.91.305-1.257.211-.356.486-.627.825-.813a2.283 2.283 0 0 1 1.117-.279c.271 0 .508.03.711.089.203.059.381.139.533.241v1.346a1.731 1.731 0 0 0-.964-.241.985.985 0 0 0-.648.253c-.178.153-.267.407-.267.762v.47h1.664Zm3.656-1.866v1.866h1.777v1.346h-1.777v2.767c0 .288.063.516.19.686.136.161.335.241.597.241.228 0 .423-.025.584-.076.169-.051.326-.123.47-.216v1.282a2.012 2.012 0 0 1-.61.406c-.237.11-.537.165-.901.165-.576 0-1.045-.182-1.409-.545-.356-.373-.534-.881-.534-1.524v-3.186h-1.155v-.826c.406-.144.779-.414 1.117-.812.347-.398.622-.923.826-1.574h.825Zm8.912 1.866v.812c.195-.245.427-.469.698-.672.279-.204.635-.305 1.067-.305.448 0 .854.106 1.218.317.364.203.648.512.851.927.254-.347.55-.639.889-.876a1.96 1.96 0 0 1 1.18-.368c.432 0 .825.101 1.181.305.355.194.639.486.85.875.221.39.331.876.331 1.46V162h-1.613l-.012-3.72c0-.431-.115-.753-.343-.965-.22-.211-.512-.317-.876-.317-.28 0-.521.089-.724.267a3.597 3.597 0 0 0-.571.609V162h-1.612l-.013-3.72c0-.431-.114-.753-.343-.965-.22-.211-.508-.317-.863-.317a1.13 1.13 0 0 0-.724.254 3.057 3.057 0 0 0-.571.571V162h-1.612v-6.411h1.612Zm13.089-.165a3.31 3.31 0 0 1 1.714.457c.516.296.931.702 1.244 1.219.321.507.482 1.079.482 1.713 0 .635-.161 1.207-.482 1.714a3.576 3.576 0 0 1-1.244 1.219 3.388 3.388 0 0 1-1.714.444 3.43 3.43 0 0 1-1.714-.444 3.576 3.576 0 0 1-1.244-1.219 3.198 3.198 0 0 1-.47-1.714c0-.634.157-1.206.47-1.713a3.428 3.428 0 0 1 1.244-1.219 3.351 3.351 0 0 1 1.714-.457Zm0 1.561c-.305 0-.588.072-.851.216a1.662 1.662 0 0 0-.635.622c-.152.271-.228.601-.228.99 0 .39.076.72.228.991.161.271.373.478.635.622.263.135.546.203.851.203.304 0 .588-.068.85-.203.263-.144.474-.351.635-.622.161-.271.241-.601.241-.991 0-.389-.08-.719-.241-.99a1.655 1.655 0 0 0-.635-.622 1.738 1.738 0 0 0-.85-.216Zm11.057-4.126V162h-1.612v-1.079a2.645 2.645 0 0 1-.812.901 2.135 2.135 0 0 1-1.245.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.961-.419 1.511-.419.347 0 .698.08 1.053.241.356.161.652.377.889.647v-3.453h1.612Zm-3.224 4.152c-.339 0-.631.089-.876.266-.237.17-.423.394-.559.673a1.965 1.965 0 0 0-.203.889c0 .482.144.893.432 1.231.296.339.685.508 1.168.508.287 0 .554-.076.799-.228.254-.153.458-.364.61-.635.161-.279.241-.614.241-1.003v-.914a2.606 2.606 0 0 0-.749-.571 1.763 1.763 0 0 0-.863-.216Zm8.011-1.587c.626 0 1.163.135 1.612.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.646c.084.432.296.779.634 1.041.339.262.754.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.507.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.397 3.397 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.139-1.197.418-1.714.28-.516.665-.931 1.156-1.244a2.993 2.993 0 0 1 1.676-.482Zm-.039 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Z"}),p.createElement("rect",{width:88,height:23,x:142.5,y:146.5,stroke:"#FFC46F",rx:3.5}),p.createElement("path",{fill:"#202021",d:"M243 157.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5ZM110 157.25a.75.75 0 0 0 0 1.5v-1.5Zm20.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-20.53.22h20v-1.5h-20v1.5ZM636 125.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5ZM636 188.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5Z"}),p.createElement("path",{stroke:"#202021",strokeLinecap:"round",strokeWidth:1.5,d:"M439 158h30"}),p.createElement("path",{fill:"#202021",d:"m480.501 132.407-.643-.386.643.386Zm22.984-5.428a.75.75 0 0 0 .089-1.057l-4.361-5.153a.75.75 0 1 0-1.145.969l3.876 4.58-4.58 3.876a.75.75 0 1 0 .969 1.145l5.152-4.36ZM466 158.75c3.095 0 5.328-1.166 6.97-3.066 1.61-1.863 2.622-4.395 3.406-7.092.779-2.68 1.374-5.69 2.059-8.428.696-2.786 1.499-5.353 2.709-7.372l-1.286-.771c-1.332 2.221-2.177 4.972-2.879 7.78-.714 2.856-1.27 5.714-2.043 8.372-.768 2.643-1.709 4.919-3.101 6.53-1.36 1.574-3.18 2.547-5.835 2.547v1.5Zm15.144-25.958c1.006-1.676 2.803-2.906 5.046-3.789 2.235-.881 4.835-1.386 7.331-1.664 2.491-.277 4.849-.323 6.587-.3.868.012 1.579.04 2.071.066.247.013.438.026.567.034l.146.011a.637.637 0 0 1 .036.003h.009l.002.001.062-.748.062-.747h-.001l-.003-.001h-.011l-.042-.004-.157-.011a50.879 50.879 0 0 0-.591-.036 56.858 56.858 0 0 0-2.13-.068 55.836 55.836 0 0 0-6.773.309c-2.566.286-5.31.811-7.715 1.759-2.398.945-4.538 2.34-5.782 4.414l1.286.771Z"}),p.createElement("path",{fill:"#202021",d:"m480.502 183.5-.643.386.643-.386Zm22.984 5.428a.75.75 0 0 1 .088 1.057l-4.36 5.153a.75.75 0 0 1-1.145-.969l3.875-4.58-4.58-3.876a.75.75 0 0 1 .969-1.145l5.153 4.36ZM466 157.25c3.094 0 5.326 1.159 6.969 3.05 1.61 1.854 2.623 4.375 3.407 7.06.779 2.669 1.374 5.668 2.059 8.396.697 2.778 1.499 5.34 2.71 7.358l-1.286.772c-1.332-2.22-2.177-4.966-2.879-7.765-.714-2.847-1.271-5.694-2.044-8.34-.768-2.63-1.708-4.895-3.1-6.497-1.36-1.565-3.18-2.534-5.836-2.534v-1.5Zm15.145 25.864c1.005 1.677 2.803 2.907 5.045 3.79 2.235.881 4.835 1.386 7.332 1.663 2.491.277 4.849.324 6.587.301a53.867 53.867 0 0 0 2.638-.101l.146-.01.036-.003.008-.001h.002l.062.747.062.748h-.004l-.011.001a54.48 54.48 0 0 1-2.919.119c-1.779.023-4.202-.024-6.773-.31-2.566-.285-5.31-.811-7.716-1.758-2.398-.945-4.538-2.34-5.781-4.414l1.286-.772ZM47.633 143.635c.665 0 1.207.091 1.627.273.428.182.802.419 1.12.711v1.354c-.2-.146-.428-.306-.683-.479a3.959 3.959 0 0 0-.875-.451c-.328-.137-.724-.205-1.19-.205-.683 0-1.293.155-1.831.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.272 1.285.538.31 1.148.465 1.832.465.702 0 1.299-.114 1.79-.342a6.756 6.756 0 0 0 1.231-.724v1.23c-.319.283-.738.529-1.258.738-.51.201-1.098.301-1.763.301-.693 0-1.33-.123-1.914-.369a4.952 4.952 0 0 1-1.532-1.039 4.798 4.798 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.355-1.859c0-.656.118-1.272.355-1.846a4.755 4.755 0 0 1 2.557-2.556 4.71 4.71 0 0 1 1.914-.383Zm8.217 2.392a2.6 2.6 0 0 1 1.271.315c.383.2.688.51.916.929.228.411.342.93.342 1.559V153h-1.121l-.014-4.061c0-.592-.132-1.043-.396-1.353-.256-.31-.652-.465-1.19-.465-.364 0-.729.137-1.093.41a4.8 4.8 0 0 0-.944.93V153H52.5v-9.844h1.121v4.088c.146-.182.333-.364.56-.547.229-.191.484-.351.766-.478.292-.128.593-.192.903-.192Zm7.465 0c.391 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.12V153h-1.12v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.326 3.326 0 0 1-1.163-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.14-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.681-.452Zm.205 1.094c-.493 0-.912.123-1.258.369a2.497 2.497 0 0 0-.807.957 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.42 0 .793-.109 1.12-.328.329-.219.589-.519.78-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.525 3.525 0 0 0-.916-.834 2.033 2.033 0 0 0-1.107-.301Zm6.603-.957v1.08c.146-.182.333-.364.56-.547.228-.191.484-.351.766-.478.292-.128.593-.192.903-.192a2.6 2.6 0 0 1 1.271.315c.383.2.688.51.916.929.228.411.342.93.342 1.559V153H73.76l-.014-4.061c0-.592-.132-1.043-.396-1.353-.256-.31-.652-.465-1.19-.465-.364 0-.729.137-1.094.41-.355.265-.67.574-.943.93V153h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.287.41.183.76.438 1.053.766v-.916h1.12v6.699c0 .811-.163 1.486-.492 2.024a3.092 3.092 0 0 1-1.312 1.203 4.065 4.065 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.73 2.73 0 0 1-.752-.356c-.21-.136-.401-.268-.574-.396v-1.203c.136.1.314.228.533.383.228.164.497.31.807.437a2.84 2.84 0 0 0 1.066.192c.447 0 .857-.082 1.23-.247.374-.164.675-.405.903-.724.228-.319.342-.702.342-1.149v-1.435c-.237.364-.561.683-.971.957-.401.273-.861.41-1.381.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.14-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.681-.452Zm.206 1.108c-.493 0-.912.123-1.258.369a2.39 2.39 0 0 0-.807.943 2.858 2.858 0 0 0-.273 1.244c0 .438.09.839.273 1.204.182.364.438.656.766.875.337.218.724.328 1.162.328.419 0 .793-.11 1.12-.328a2.29 2.29 0 0 0 .78-.903c.192-.383.283-.816.274-1.299l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.033 2.033 0 0 0-1.108-.301Zm8.298-1.108c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.236.502.355 1.067.355 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.163.273.492 0 .952-.123 1.38-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.583 3.583 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.312a3.045 3.045 0 0 1 1.71-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.382-1.093a1.873 1.873 0 0 0-.739-.629 2.02 2.02 0 0 0-.916-.219Zm7.028-1.094c.4 0 .774.06 1.12.178.347.109.598.223.753.342v1.203a3.562 3.562 0 0 0-.78-.424 2.602 2.602 0 0 0-1.011-.205c-.429 0-.752.1-.971.301-.21.2-.315.41-.315.629 0 .173.06.351.178.533.128.173.347.314.656.424l1.149.41c.447.155.78.378.998.67.219.292.328.633.328 1.025 0 .383-.11.734-.328 1.053a2.23 2.23 0 0 1-.889.766c-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.109a5.115 5.115 0 0 1-.765-.233 3.618 3.618 0 0 1-.506-.259V151.4c.128.092.305.196.533.315.237.109.488.205.752.287.264.073.51.109.739.109.428 0 .765-.095 1.011-.287.255-.191.383-.428.383-.711a.61.61 0 0 0-.26-.519c-.164-.128-.405-.251-.724-.369l-1.012-.37c-.529-.2-.88-.451-1.053-.751a2.122 2.122 0 0 1-.26-1.053c0-.584.22-1.067.657-1.449.437-.383 1.02-.575 1.75-.575Zm-49.26 17.129V173h-1.121v-1.162c-.237.364-.56.683-.97.957-.402.273-.862.41-1.382.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.76.438 1.052.766v-3.924h1.12Zm-3.158 3.992c-.492 0-.912.123-1.258.37a2.412 2.412 0 0 0-.807.929 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902a2.83 2.83 0 0 0 .273-1.313l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.105 2.105 0 0 0-1.107-.288Zm8.298-1.121c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.21.319.483.574.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.38-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.583 3.583 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.14-1.244.423-1.791.283-.547.67-.984 1.163-1.312a3.045 3.045 0 0 1 1.708-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.873 1.873 0 0 0-.739-.629 2.02 2.02 0 0 0-.916-.219Zm6.877-2.926v1.969h1.997v1.053h-1.996v4.006c0 .282.072.506.218.67.146.164.37.246.67.246.274 0 .501-.032.684-.096.182-.073.342-.15.478-.232v.916a2.268 2.268 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.447-.201.82-.529 1.121-.985.3-.465.565-1.034.793-1.709h.52Zm6.85 1.832c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.236.502.355 1.067.355 1.696v.67h-5.25c.054.382.186.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.582 3.582 0 0 1-.862.41 2.87 2.87 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.656 3.656 0 0 1-.45-1.791c0-.647.14-1.244.423-1.791.282-.547.67-.984 1.162-1.312a3.045 3.045 0 0 1 1.71-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.045-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.02 2.02 0 0 0-.916-.219Zm8.08-1.094c.502 0 .934.082 1.299.246.365.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219a2.28 2.28 0 0 0-1.271.356 2.336 2.336 0 0 0-.848.916 2.654 2.654 0 0 0-.287 1.23c0 .438.096.848.287 1.231.2.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.365.155-.797.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm5.783-1.832v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.22.67.145.164.368.246.669.246.274 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.269 2.269 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.12-.985.302-.465.566-1.034.794-1.709h.52Zm6.85 1.832c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.186.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.184 5.184 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.575.492 3.584 3.584 0 0 1-.86.41 2.87 2.87 0 0 1-1.013.178c-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.02 2.02 0 0 0-.916-.219Zm11.17-3.965V173h-1.121v-1.162c-.237.364-.56.683-.97.957-.402.273-.862.41-1.382.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.76.438 1.052.766v-3.924h1.12Zm-3.158 3.992c-.493 0-.912.123-1.258.37a2.412 2.412 0 0 0-.807.929 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902a2.83 2.83 0 0 0 .273-1.313l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.105 2.105 0 0 0-1.107-.288Z"}),p.createElement("circle",{cx:455,cy:158,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),p.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M455 157v-50"}),p.createElement("path",{fill:"#615BC2",d:"M371.349 64.813v5.564c0 .793-.169 1.477-.506 2.05a3.34 3.34 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.353-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.564h1.23v5.523c0 .62.114 1.121.342 1.504.237.383.547.66.93.834.392.164.815.246 1.271.246.456-.01.875-.096 1.258-.26.392-.173.702-.447.93-.82.237-.383.355-.884.355-1.504v-5.523h1.231Zm4.566 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.61 2.61 0 0 0-1.012-.205c-.428 0-.752.1-.971.3-.209.201-.314.411-.314.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.217 2.217 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V72.4c.128.091.306.196.534.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .765-.096 1.012-.288.255-.191.382-.428.382-.71a.611.611 0 0 0-.259-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.174-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm6.631 0c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367a3.53 3.53 0 0 1 .957-1.094c.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm17.322 0L403.587 74h-.697l-1.873-4.826L399.144 74h-.698l-2.392-6.836h1.34l1.517 4.799 1.791-4.799h.629l1.791 4.799 1.518-4.799h1.339Zm2.461-3.281c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V74h-1.121v-5.783h-1.08v-1.053h2.201Zm4.306-1.969v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246a2.1 2.1 0 0 0 .684-.096c.182-.073.341-.15.478-.233v.917c-.182.145-.378.26-.588.341-.2.091-.474.137-.82.137-.583 0-1.025-.173-1.326-.52-.292-.355-.438-.824-.438-1.408v-4.06h-1.312v-.328c.446-.2.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.383 1.832c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V74h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192Zm12.223 0a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm6.33-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.887-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.025-1.094c.702 0 1.285.146 1.75.438.465.291.812.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.382-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.094.373-.273.756-.41 1.148-.41.264 0 .501.046.711.137v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V74h-1.121v-6.836h1.121Zm11.826-.137a2.99 2.99 0 0 1 1.599.438c.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.025-1.094c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.19c.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.484.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.029.192-1.394.574-.365.374-.593.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.756-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V74h-1.121v-6.836h1.121Zm5.373 0v.875c.219-.246.497-.474.834-.683.346-.22.752-.329 1.217-.329.492 0 .952.119 1.38.356.429.228.757.574.985 1.039a5.844 5.844 0 0 1 1.039-.984c.374-.274.811-.41 1.312-.41.465 0 .898.104 1.299.314.41.2.739.51.985.93.255.41.382.93.382 1.558V74h-1.121l-.013-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.392 0-.734.123-1.025.37-.292.245-.57.532-.834.86V74h-1.121l-.014-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.373 0-.715.11-1.025.328a4.535 4.535 0 0 0-.834.793V74h-1.121v-6.836h1.121Zm12.646-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.121v-5.783h-1.081v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.656.424l1.149.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.264.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm5.851 0c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.999.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V72.4c.127.091.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm4.908-3.144c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.121v-5.783h-1.081v-1.053h2.202Zm5.509-.137c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094a2.28 2.28 0 0 0-1.271.356 2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.365.228.788.342 1.271.342.493 0 .916-.114 1.272-.342.364-.236.642-.542.834-.916.2-.382.301-.792.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V74h-1.121l-.013-4.06c0-.593-.133-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.575-.943.93V74h-1.122v-6.836h1.122ZM384.877 87.027c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V94h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.035 3.035 0 0 1-1.599-.437 3.32 3.32 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.106 3.106 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.912.123-1.258.37a2.506 2.506 0 0 0-.807.956 2.86 2.86 0 0 0-.273 1.244c0 .438.091.843.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.535 3.535 0 0 0-.916-.834c-.319-.2-.688-.3-1.107-.3Zm6.603-.957v1.08c.146-.182.333-.364.561-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192a2.6 2.6 0 0 1 1.271.315c.383.2.689.51.916.93.228.41.342.93.342 1.558V94h-1.121l-.014-4.06c0-.593-.132-1.044-.396-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.575-.944.93V94h-1.121v-6.836h1.121Zm14.848-2.324 4.279 9.16h-1.476l-.957-2.188h-4.293L409.828 94h-1.476l4.279-9.16h.615Zm-.287 2.078-1.654 3.732h3.281l-1.627-3.732Zm9.338.11c.592 0 1.126.145 1.599.437.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.089 3.089 0 0 1-1.681.464c-.392 0-.793-.105-1.204-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V87.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.093c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.682-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V87.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984c.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm6.33-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V94h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm11.17-.957L452.252 94h-.697l-3.076-6.836h1.339l2.065 5.031 2.242-5.03h1.34Zm4.047-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm12.181-1.094c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094c-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.493 0 .916-.114 1.272-.342.364-.236.642-.542.834-.916.2-.382.301-.792.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.367c.264-.456.583-.82.957-1.094.373-.273.756-.41 1.148-.41.264 0 .501.046.711.137v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V94h-1.122v-6.836h1.122Zm12.701-2.53c.665 0 1.207.092 1.627.274.428.183.802.42 1.121.711v1.354a26.966 26.966 0 0 0-.684-.479 3.94 3.94 0 0 0-.875-.451c-.328-.137-.724-.205-1.189-.205-.684 0-1.295.155-1.832.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .683.155 1.294.465 1.832.31.538.734.966 1.272 1.285.537.31 1.148.465 1.832.465.702 0 1.299-.114 1.791-.342a6.754 6.754 0 0 0 1.23-.724v1.23c-.319.283-.738.529-1.258.738-.51.2-1.098.301-1.763.301a4.872 4.872 0 0 1-1.914-.37 4.95 4.95 0 0 1-1.532-1.038 4.805 4.805 0 0 1-1.025-1.518 4.892 4.892 0 0 1-.355-1.86c0-.655.118-1.27.355-1.845a4.76 4.76 0 0 1 2.557-2.557 4.72 4.72 0 0 1 1.914-.382Zm7.683 2.393c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.122V94h-1.122v-1.162c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.094c-.492 0-.911.123-1.257.37a2.489 2.489 0 0 0-.807.956 2.86 2.86 0 0 0-.274 1.244c0 .438.092.843.274 1.217.182.365.437.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834c-.319-.2-.688-.3-1.108-.3Zm6.604-.957v1.08c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V94h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-6.836h1.121Zm9.967-.137c.501 0 .934.082 1.299.246.364.155.615.297.751.424v1.135a4.018 4.018 0 0 0-.875-.492c-.328-.146-.72-.219-1.175-.219-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.288 1.23c0 .438.096.848.288 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.455 0 .847-.068 1.175-.205a4.46 4.46 0 0 0 .875-.506v1.135c-.136.137-.387.283-.751.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.151-1.244.451-1.791.31-.547.734-.984 1.272-1.313.538-.328 1.153-.492 1.846-.492Zm6.713 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-3.965V94h-1.121v-9.844h1.121Z"}),p.createElement("circle",{cx:652,cy:126,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),p.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M652 126V76"}),p.createElement("path",{fill:"#615BC2",d:"M568.349 33.813v5.564c0 .793-.169 1.476-.506 2.05a3.34 3.34 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.353-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.565h1.23v5.524c0 .62.114 1.121.342 1.504.237.383.547.66.93.834.392.164.815.246 1.271.246.456-.01.875-.096 1.258-.26.392-.173.702-.446.93-.82.237-.383.355-.884.355-1.504v-5.523h1.231Zm4.566 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.61 2.61 0 0 0-1.012-.205c-.428 0-.752.1-.971.3-.209.201-.314.411-.314.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.217 2.217 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V41.4c.128.092.306.196.534.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .765-.096 1.012-.288.255-.191.382-.428.382-.71a.611.611 0 0 0-.259-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.753-.174-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm6.631 0c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.81-.383-1.093a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367a3.53 3.53 0 0 1 .957-1.093c.374-.274.757-.41 1.149-.41.264 0 .501.045.711.136v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.283.328-.552.72-.807 1.176V43h-1.121v-6.836h1.121Zm17.322 0L600.587 43h-.697l-1.873-4.826L596.144 43h-.698l-2.392-6.836h1.34l1.517 4.799 1.791-4.799h.629l1.791 4.799 1.518-4.799h1.339Zm2.461-3.281c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V43h-1.121v-5.783h-1.08v-1.053h2.201Zm4.306-1.969v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246a2.1 2.1 0 0 0 .684-.096c.182-.073.341-.15.478-.233v.917c-.182.145-.378.26-.588.341-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.52-.292-.355-.438-.824-.438-1.408v-4.06h-1.312v-.328c.446-.2.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.383 1.832c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V43h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V43h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192Zm12.223 0a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm6.33-.957v1.367c.264-.456.583-.82.957-1.093.374-.274.757-.41 1.149-.41.264 0 .501.045.711.136v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V43h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.341.365-.237.643-.543.834-.917.201-.382.301-.793.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.887-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.025-1.094c.702 0 1.285.146 1.75.438.465.291.812.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.81-.382-1.093a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.093.373-.274.756-.41 1.148-.41.264 0 .501.045.711.136v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V43h-1.121v-6.836h1.121Zm11.826-.137a2.99 2.99 0 0 1 1.599.438c.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.025-1.094c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.19c.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.484.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.029.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.81-.383-1.093a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.093.374-.274.756-.41 1.148-.41.265 0 .502.045.711.136v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V43h-1.121v-6.836h1.121Zm5.373 0v.875c.219-.246.497-.474.834-.684.346-.218.752-.328 1.217-.328.492 0 .952.119 1.38.356.429.228.757.574.985 1.039a5.844 5.844 0 0 1 1.039-.984c.374-.274.811-.41 1.312-.41.465 0 .898.104 1.299.314.41.2.739.51.985.93.255.41.382.93.382 1.558V43h-1.121l-.013-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.392 0-.734.123-1.025.37-.292.245-.57.532-.834.86V43h-1.121l-.014-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.373 0-.715.11-1.025.328a4.535 4.535 0 0 0-.834.793V43h-1.121v-6.836h1.121Zm12.646-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V43h-1.121v-5.783h-1.081v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.656.424l1.149.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V41.4c.128.092.305.196.533.315.237.11.488.205.752.287.264.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm5.851 0c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.999.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V41.4c.127.092.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm4.908-3.144c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V43h-1.121v-5.783h-1.081v-1.053h2.202Zm5.509-.137c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094a2.28 2.28 0 0 0-1.271.356 2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.365.228.788.342 1.271.342.493 0 .916-.114 1.272-.341.364-.237.642-.543.834-.917.2-.382.301-.793.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V43h-1.121l-.013-4.06c0-.593-.133-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.575-.943.93V43h-1.122v-6.836h1.122ZM595.2 56.027c.501 0 .934.082 1.299.246.365.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm6.713 0c.392 0 .788.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121V63h-1.121v-1.162c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.847 2.847 0 0 0-.274 1.244c0 .438.091.843.274 1.217.182.365.437.657.765.875a2.09 2.09 0 0 0 1.162.328c.42 0 .793-.109 1.122-.328.328-.218.587-.52.779-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834 2.04 2.04 0 0 0-1.108-.3Zm6.604-.957v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V63h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-6.836h1.121Zm13.795-.137c.392 0 .788.096 1.189.288.41.182.761.437 1.053.765v-.916h1.121V63h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.035 3.035 0 0 1-1.599-.437 3.32 3.32 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.106 3.106 0 0 1 1.189-1.258 3.205 3.205 0 0 1 1.682-.45Zm.205 1.094c-.493 0-.912.123-1.258.37a2.506 2.506 0 0 0-.807.956 2.86 2.86 0 0 0-.273 1.244c0 .438.091.843.273 1.217.183.365.438.657.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.218.588-.52.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.535 3.535 0 0 0-.916-.834c-.319-.2-.688-.3-1.107-.3Zm8.955-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V56.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.682-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V56.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm6.33-3.965V63h-1.121v-9.844h1.121Zm2.707 3.008 2.393 5.031 2.324-5.03h1.34l-5.032 10.116h-1.298l1.955-3.691-3.022-6.426h1.34Zm14.615-.137c.502 0 .935.082 1.299.246.365.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.364.155-.797.232-1.299.232-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm7.246 0c.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V63h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-9.844h1.121v4.088c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192Zm7.465 0c.392 0 .789.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121V63h-1.121v-1.162c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.86 2.86 0 0 0-.274 1.244c0 .438.092.843.274 1.217.182.365.437.657.765.875.338.219.725.328 1.163.328.419 0 .793-.109 1.121-.328.328-.218.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834c-.319-.2-.688-.3-1.108-.3Zm6.604-.957v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V63h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.087 3.087 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.726 2.726 0 0 1-.752-.355c-.21-.137-.401-.27-.575-.397v-1.203c.137.1.315.228.534.383.228.164.496.31.806.437.319.128.675.192 1.067.192.446 0 .857-.082 1.23-.246.374-.165.675-.406.903-.725.227-.32.341-.702.341-1.149v-1.435c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.876.338.218.725.328 1.163.328.419 0 .792-.11 1.121-.328.328-.22.588-.52.779-.903.191-.383.282-.816.273-1.299l-.013-1.312a3.334 3.334 0 0 0-.916-.82c-.319-.201-.688-.301-1.108-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.186.733.396 1.052.21.32.483.575.82.766a2.41 2.41 0 0 0 1.163.273c.492 0 .952-.123 1.38-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.752 2.752 0 0 1-.574.492c-.247.164-.534.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.81-.383-1.093a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm7.027-1.094c.401 0 .775.06 1.122.178.346.11.597.223.751.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.06.35.178.533.128.173.346.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V61.4c.127.092.305.196.533.315.237.11.488.205.752.287.264.073.51.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.011-.368c-.529-.201-.88-.452-1.053-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574ZM554.439 234.84l4.28 9.16h-1.477l-.957-2.188h-4.293l-.971 2.188h-1.476l4.279-9.16h.615Zm-.287 2.078-1.654 3.732h3.281l-1.627-3.732Zm11.457.246v4.047c0 .601-.127 1.121-.382 1.559a2.65 2.65 0 0 1-1.039 1.011c-.438.237-.93.356-1.477.356a3.052 3.052 0 0 1-1.477-.356 2.65 2.65 0 0 1-1.039-1.011c-.255-.438-.383-.958-.383-1.559v-4.047h1.163v4.047c0 .592.173 1.048.519 1.367a1.8 1.8 0 0 0 1.217.465c.456 0 .857-.155 1.203-.465.356-.319.533-.775.533-1.367v-4.047h1.162Zm4.006-1.969v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.146.164.369.246.67.246.273 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.26 2.26 0 0 1-.588.341c-.2.092-.474.137-.82.137-.584 0-1.026-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.123 1.832c.693 0 1.308.164 1.846.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.492 0 .916-.114 1.272-.341a2.38 2.38 0 0 0 .834-.916c.2-.383.301-.793.301-1.231 0-.447-.101-.857-.301-1.23a2.246 2.246 0 0 0-.834-.916c-.356-.237-.78-.356-1.272-.356Zm6.535-.957v.875c.219-.246.497-.474.834-.684.347-.218.752-.328 1.217-.328.492 0 .953.119 1.381.356.428.228.757.574.984 1.039a5.825 5.825 0 0 1 1.04-.984 2.157 2.157 0 0 1 1.312-.411c.465 0 .898.105 1.299.315.41.2.738.51.984.929.255.411.383.93.383 1.559V244h-1.121l-.014-4.061c0-.592-.155-1.043-.465-1.353-.3-.31-.72-.465-1.257-.465-.392 0-.734.123-1.026.369a6.287 6.287 0 0 0-.834.862V244h-1.121l-.014-4.061c0-.592-.154-1.043-.464-1.353-.301-.31-.72-.465-1.258-.465-.374 0-.716.109-1.026.328-.3.219-.578.483-.834.793V244h-1.121v-6.836h1.121Zm14.37-.137c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.04 3.04 0 0 1-1.599-.437 3.332 3.332 0 0 1-1.163-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.107 3.107 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452Zm.205 1.094c-.493 0-.912.123-1.258.369a2.497 2.497 0 0 0-.807.957 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.517 3.517 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm7.369-2.926v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.145.164.369.246.669.246.274 0 .502-.032.684-.096.182-.073.342-.15.479-.232v.916a2.293 2.293 0 0 1-.588.341c-.201.092-.474.137-.821.137-.583 0-1.025-.173-1.326-.519-.291-.356-.437-.825-.437-1.409v-4.06h-1.313v-.328c.447-.201.821-.529 1.121-.985.301-.465.565-1.034.793-1.709h.52Zm5.127-1.312c.264 0 .483.096.656.287a.879.879 0 0 1 .273.642.91.91 0 0 1-.273.643.848.848 0 0 1-.656.287.89.89 0 0 1-.67-.287.936.936 0 0 1-.26-.643c0-.246.087-.46.26-.642a.89.89 0 0 1 .67-.287Zm.697 3.281V244h-1.121v-5.783h-1.08v-1.053h2.201Zm5.51-.137c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.091 4.091 0 0 0-.875-.492c-.329-.146-.72-.219-1.176-.219-.483 0-.907.119-1.272.356a2.335 2.335 0 0 0-.847.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.847.916.365.227.789.341 1.272.341.456 0 .847-.068 1.176-.205a4.5 4.5 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.603 3.603 0 0 1-1.271-1.299 3.655 3.655 0 0 1-.452-1.791c0-.647.151-1.244.452-1.791a3.57 3.57 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.04 3.04 0 0 1-1.599-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.204 3.204 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.912.123-1.258.369a2.505 2.505 0 0 0-.807.957 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.517 3.517 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.603-3.965V244h-1.121v-9.844h1.121Zm3.446 0V244h-1.122v-9.844h1.122Zm2.707 3.008 2.392 5.031 2.324-5.031h1.34l-5.031 10.117h-1.299l1.955-3.691-3.021-6.426h1.34Zm14.341-.137c.392 0 .789.096 1.19.287.41.183.761.438 1.053.766v-.916h1.121v6.699c0 .811-.164 1.486-.492 2.024a3.098 3.098 0 0 1-1.313 1.203 4.066 4.066 0 0 1-1.791.396c-.419 0-.779-.05-1.08-.15a2.731 2.731 0 0 1-.752-.356c-.21-.136-.401-.268-.574-.396v-1.203c.136.1.314.228.533.383.228.164.497.31.807.437.319.128.674.192 1.066.192.447 0 .857-.082 1.23-.247.374-.164.675-.405.903-.724.228-.319.342-.702.342-1.149v-1.435a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.203 3.203 0 0 1 1.681-.452Zm.205 1.108c-.492 0-.911.123-1.257.369a2.382 2.382 0 0 0-.807.943 2.862 2.862 0 0 0-.273 1.244c0 .438.091.839.273 1.204.182.364.438.656.766.875.337.218.724.328 1.162.328.419 0 .793-.11 1.121-.328.328-.219.588-.52.779-.903.192-.383.283-.816.274-1.299l-.014-1.312a3.316 3.316 0 0 0-.916-.82 2.033 2.033 0 0 0-1.108-.301Zm8.573-1.108c.692 0 1.308.164 1.845.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.537.328-1.153.492-1.845.492-.693 0-1.308-.164-1.846-.492a3.603 3.603 0 0 1-1.271-1.299 3.655 3.655 0 0 1-.452-1.791c0-.647.151-1.244.452-1.791a3.57 3.57 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm0 1.094c-.483 0-.907.119-1.272.356a2.335 2.335 0 0 0-.847.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.847.916.365.227.789.341 1.272.341.492 0 .916-.114 1.271-.341.365-.237.643-.543.834-.916.201-.383.301-.793.301-1.231 0-.447-.1-.857-.301-1.23a2.233 2.233 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.23-1.094c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.821.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.743 2.743 0 0 1-.574.492 3.57 3.57 0 0 1-.862.41 2.868 2.868 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791a3.45 3.45 0 0 1 1.162-1.312 3.046 3.046 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.382-1.093a1.876 1.876 0 0 0-.739-.629 2.019 2.019 0 0 0-.916-.219Zm7.028-1.094c.401 0 .774.06 1.121.178.346.109.597.223.752.342v1.203a3.586 3.586 0 0 0-.78-.424 2.599 2.599 0 0 0-1.011-.205c-.429 0-.752.1-.971.301-.21.2-.315.41-.315.629 0 .173.06.351.178.533.128.173.347.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.109a5.128 5.128 0 0 1-.765-.233 3.592 3.592 0 0 1-.506-.259V242.4c.128.092.305.196.533.315.237.109.488.205.752.287.264.073.511.109.738.109.429 0 .766-.095 1.012-.287.255-.191.383-.428.383-.711a.611.611 0 0 0-.26-.519c-.164-.128-.405-.251-.724-.369l-1.012-.37c-.529-.2-.88-.451-1.053-.751a2.124 2.124 0 0 1-.26-1.053c0-.584.219-1.067.657-1.449.437-.383 1.02-.575 1.75-.575Zm9.802-1.832v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.146.164.369.246.67.246.273 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.26 2.26 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.026-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.123 1.832c.693 0 1.308.164 1.846.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.493 0 .916-.114 1.272-.341a2.38 2.38 0 0 0 .834-.916c.2-.383.301-.793.301-1.231 0-.447-.101-.857-.301-1.23a2.246 2.246 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm13.864-3.486c.665 0 1.207.091 1.627.273a3.91 3.91 0 0 1 1.121.711v1.354a26.162 26.162 0 0 0-.684-.479 3.961 3.961 0 0 0-.875-.451c-.328-.137-.725-.205-1.189-.205-.684 0-1.295.155-1.832.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.272 1.285.537.31 1.148.465 1.832.465.701 0 1.298-.114 1.791-.342a6.76 6.76 0 0 0 1.23-.724v1.23c-.319.283-.738.529-1.258.738-.51.201-1.098.301-1.763.301a4.874 4.874 0 0 1-1.914-.369 4.954 4.954 0 0 1-1.532-1.039 4.804 4.804 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.356-1.859c0-.656.119-1.272.356-1.846a4.749 4.749 0 0 1 2.557-2.556 4.708 4.708 0 0 1 1.914-.383Zm7.683 2.392c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.122V244h-1.122v-1.162c-.237.364-.56.683-.97.957-.401.273-.862.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.2 3.2 0 0 1 1.681-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.863 2.863 0 0 0-.274 1.244c0 .438.092.844.274 1.217.182.365.437.656.765.875a2.09 2.09 0 0 0 1.163.328c.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.191-.392.283-.83.273-1.313l-.013-1.312a3.533 3.533 0 0 0-.916-.834 2.033 2.033 0 0 0-1.108-.301Zm6.604-.957v1.08a3.61 3.61 0 0 1 .56-.547c.228-.191.483-.351.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.929.228.411.342.93.342 1.559V244h-1.121l-.014-4.061c0-.592-.132-1.043-.397-1.353-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41-.355.265-.67.574-.943.93V244h-1.121v-6.836h1.121Zm9.967-.137c.501 0 .934.082 1.298.246.365.155.616.297.752.424v1.135a4.043 4.043 0 0 0-.875-.492c-.328-.146-.72-.219-1.175-.219-.483 0-.907.119-1.272.356a2.345 2.345 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.484.679.848.916.365.227.789.341 1.272.341.455 0 .847-.068 1.175-.205a4.44 4.44 0 0 0 .875-.506v1.135c-.136.137-.387.283-.752.438-.364.155-.797.232-1.298.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.151-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.538-.329 1.153-.493 1.846-.493Zm6.712 0c.702 0 1.286.146 1.75.438.465.292.812.688 1.04 1.189.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.874 2.874 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.611 3.611 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.312a3.04 3.04 0 0 1 1.708-.493Zm0 1.094c-.565 0-1.029.191-1.394.574-.365.374-.592.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.88 1.88 0 0 0-.738-.629 2.023 2.023 0 0 0-.917-.219Zm6.112-3.965V244h-1.121v-9.844h1.121Zm3.445 0V244h-1.121v-9.844h1.121Zm5.141 2.871c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.022 2.022 0 0 0-.916-.219Zm11.17-3.965V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.203 3.203 0 0 1 1.681-.452c.392 0 .789.096 1.19.287.41.183.761.438 1.053.766v-3.924h1.121Zm-3.159 3.992c-.492 0-.911.123-1.257.37a2.404 2.404 0 0 0-.807.929 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.316 3.316 0 0 0-.916-.82 2.106 2.106 0 0 0-1.108-.288Z"}),p.createElement("path",{fill:"#D11525",d:"M513.779 184.635c.666 0 1.208.091 1.627.273.429.182.802.419 1.121.711v1.354c-.2-.146-.428-.306-.683-.479a3.961 3.961 0 0 0-.875-.451c-.328-.137-.725-.205-1.19-.205-.683 0-1.294.155-1.832.465a3.38 3.38 0 0 0-1.271 1.285c-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.271 1.285.538.31 1.149.465 1.832.465.702 0 1.299-.114 1.791-.342a6.738 6.738 0 0 0 1.231-.724v1.23c-.319.283-.739.529-1.258.738-.51.201-1.098.301-1.764.301a4.88 4.88 0 0 1-1.914-.369 4.95 4.95 0 0 1-1.531-1.039 4.787 4.787 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.356-1.859c0-.656.119-1.272.356-1.846a4.745 4.745 0 0 1 2.556-2.556 4.714 4.714 0 0 1 1.914-.383Zm8.217 2.392c.465 0 .889.105 1.272.315.382.2.688.51.916.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.574-.943.93V194h-1.122v-9.844h1.122v4.088c.145-.182.332-.364.56-.547.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192Zm7.465 0c.392 0 .788.096 1.189.287.411.183.761.438 1.053.766v-.916h1.121V194h-1.121v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.105 3.105 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.329-.219.588-.519.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.501 3.501 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.604-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192c.465 0 .889.105 1.272.315.382.2.688.51.916.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.574-.943.93V194h-1.122v-6.836h1.122Zm9.693-.137c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121v6.699c0 .811-.164 1.486-.492 2.024a3.092 3.092 0 0 1-1.313 1.203 4.06 4.06 0 0 1-1.791.396c-.419 0-.779-.05-1.08-.15a2.745 2.745 0 0 1-.752-.356 11.684 11.684 0 0 1-.574-.396v-1.203c.137.1.315.228.533.383.228.164.497.31.807.437.319.128.675.192 1.066.192.447 0 .857-.082 1.231-.247a2.14 2.14 0 0 0 .902-.724c.228-.319.342-.702.342-1.149v-1.435c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.108c-.492 0-.911.123-1.258.369a2.388 2.388 0 0 0-.806.943 2.849 2.849 0 0 0-.274 1.244c0 .438.091.839.274 1.204.182.364.437.656.765.875.337.218.725.328 1.162.328.42 0 .793-.11 1.121-.328.328-.219.588-.52.78-.903.191-.383.282-.816.273-1.299l-.014-1.312a3.288 3.288 0 0 0-.916-.82 2.032 2.032 0 0 0-1.107-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.179 5.179 0 0 0 1.08-.834l-.013 1.217c-.128.155-.32.319-.575.492a3.58 3.58 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.022 2.022 0 0 0-.916-.219Zm7.027-1.094c.401 0 .775.06 1.121.178.347.109.597.223.752.342v1.203a3.552 3.552 0 0 0-.779-.424 2.6 2.6 0 0 0-1.012-.205c-.428 0-.752.1-.971.301-.209.2-.314.41-.314.629 0 .173.059.351.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.222 2.222 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.109a5.106 5.106 0 0 1-.766-.233 3.626 3.626 0 0 1-.505-.259V192.4c.127.092.305.196.533.315.237.109.487.205.752.287.264.073.51.109.738.109.428 0 .766-.095 1.012-.287.255-.191.382-.428.382-.711a.61.61 0 0 0-.259-.519c-.164-.128-.406-.251-.725-.369l-1.012-.37c-.528-.2-.879-.451-1.052-.751a2.113 2.113 0 0 1-.26-1.053c0-.584.219-1.067.656-1.449.438-.383 1.021-.575 1.75-.575Zm11.006 0c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.33 2.33 0 0 0-.848.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.62 3.62 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.271-1.312.538-.329 1.153-.493 1.846-.493Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V194h-1.121v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.501 3.501 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.603-.957v1.08a3.62 3.62 0 0 1 .561-.547c.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192c.465 0 .889.105 1.271.315.383.2.689.51.917.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.574-.944.93V194H584.9v-6.836h1.121Zm9.967-.137c.502 0 .935.082 1.299.246.365.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.364.155-.797.232-1.299.232-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm6.713 0c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.163.273.492 0 .952-.123 1.38-.369a5.186 5.186 0 0 0 1.081-.834l-.014 1.217a2.743 2.743 0 0 1-.574.492 3.588 3.588 0 0 1-.862.41 2.868 2.868 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791a3.45 3.45 0 0 1 1.162-1.312 3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.383-1.093a1.867 1.867 0 0 0-.738-.629 2.019 2.019 0 0 0-.916-.219Zm6.111-3.965V194h-1.121v-9.844h1.121Zm3.446 0V194h-1.121v-9.844h1.121Zm5.14 2.871c.702 0 1.286.146 1.75.438.465.292.812.688 1.04 1.189.236.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.396 1.052.21.319.484.574.821.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.874 2.874 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.611 3.611 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791a3.45 3.45 0 0 1 1.162-1.312 3.046 3.046 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.876 1.876 0 0 0-.739-.629 2.019 2.019 0 0 0-.916-.219Zm11.17-3.965V194h-1.121v-1.162c-.237.364-.56.683-.97.957-.401.273-.862.41-1.381.41a3.041 3.041 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.105 3.105 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.761.438 1.052.766v-3.924h1.121Zm-3.158 3.992c-.492 0-.911.123-1.258.37a2.41 2.41 0 0 0-.806.929 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.338.219.725.328 1.162.328.42 0 .793-.109 1.122-.328.328-.219.587-.519.779-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.316 3.316 0 0 0-.916-.82 2.108 2.108 0 0 0-1.108-.288Z"}),p.createElement("circle",{cx:259,cy:158,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),p.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M259 157v-50"}),p.createElement("path",{fill:"#615BC2",d:"M205.775 64.813v5.564c0 .793-.168 1.477-.505 2.05a3.345 3.345 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.354-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.564h1.23v5.523c0 .62.114 1.121.342 1.504a2.1 2.1 0 0 0 .929.834 3.26 3.26 0 0 0 1.272.246c.456-.01.875-.096 1.258-.26.392-.173.702-.447.929-.82.237-.383.356-.884.356-1.504v-5.523h1.23Zm4.567 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.572 3.572 0 0 0-.779-.424 2.613 2.613 0 0 0-1.012-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.657.424l1.148.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053a2.22 2.22 0 0 1-.889.766c-.373.182-.806.273-1.298.273-.265 0-.543-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V72.4c.128.091.306.196.533.315.237.11.488.205.752.287.265.073.511.11.739.11.428 0 .765-.096 1.011-.288.256-.191.383-.428.383-.71a.61.61 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752a2.122 2.122 0 0 1-.259-1.053c0-.584.218-1.067.656-1.45.437-.382 1.021-.574 1.75-.574Zm6.631 0c.701 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791a3.438 3.438 0 0 1 1.162-1.313 3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.464 0-.843.164-1.134.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm9.447-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.122v-5.783h-1.08v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.582 3.582 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.315.411-.315.63 0 .173.06.35.178.533.128.173.347.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.264.073.51.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm9.953 0c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.657.424l1.148.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.298.273-.265 0-.543-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.265.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.021-.574 1.75-.574Zm6.631 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.08c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-6.836h1.121Zm13.057-3.008V74h-1.122v-1.162c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45c.392 0 .789.095 1.19.286.41.183.761.438 1.052.766v-3.924h1.122Zm-3.159 3.992c-.492 0-.911.124-1.258.37a2.413 2.413 0 0 0-.806.93 2.86 2.86 0 0 0-.274 1.243c0 .438.092.843.274 1.217.182.365.437.656.765.875.338.219.725.328 1.163.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.334 3.334 0 0 0-.916-.82 2.11 2.11 0 0 0-1.108-.288Zm6.576-4.265c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V74h-1.121v-5.783h-1.08v-1.053h2.201Zm3.541 0v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.122l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.087 3.087 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.726 2.726 0 0 1-.752-.355c-.21-.137-.401-.27-.575-.397v-1.203c.137.1.315.228.534.383.228.164.496.31.806.437.319.128.675.192 1.067.192a3.03 3.03 0 0 0 1.23-.246c.374-.165.675-.406.903-.725.227-.32.341-.702.341-1.149v-1.435c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.875a2.09 2.09 0 0 0 1.162.329c.42 0 .793-.11 1.122-.329.328-.218.587-.519.779-.902.191-.383.282-.816.273-1.299l-.013-1.312a3.334 3.334 0 0 0-.916-.82 2.04 2.04 0 0 0-1.108-.301Zm11.471-2.94v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.145.164.369.246.67.246.273 0 .501-.032.683-.096a3.38 3.38 0 0 0 .479-.233v.917c-.183.145-.379.26-.588.341-.201.091-.474.137-.821.137-.583 0-1.025-.173-1.326-.52-.291-.355-.437-.824-.437-1.408v-4.06h-1.313v-.328c.447-.2.821-.529 1.121-.985.301-.465.565-1.034.793-1.709h.52Zm7.383 1.832c.465 0 .888.105 1.271.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.121l-.014-4.06c0-.593-.132-1.044-.396-1.354-.255-.31-.652-.465-1.19-.465-.364 0-.729.137-1.093.41-.356.265-.67.575-.944.93V74h-1.121v-9.844h1.121v4.088c.146-.182.333-.364.561-.547.228-.191.483-.35.765-.478.292-.128.593-.192.903-.192Zm7.465 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218ZM185.288 87.027c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.2.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm7.246 0c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V94h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192Zm7.465 0c.392 0 .788.096 1.189.287.411.183.762.438 1.053.766v-.916h1.121V94h-1.121v-1.162c-.237.365-.56.684-.97.957-.402.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.847 2.847 0 0 0-.274 1.244c0 .438.091.843.274 1.217.182.365.437.656.765.875a2.09 2.09 0 0 0 1.162.328c.42 0 .793-.109 1.121-.328.329-.219.588-.52.78-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834 2.04 2.04 0 0 0-1.108-.3Zm6.604-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V94h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .788.096 1.189.287a3.04 3.04 0 0 1 1.053.766v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.092 3.092 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.081-.15a2.733 2.733 0 0 1-.751-.355c-.21-.137-.402-.27-.575-.397v-1.203c.137.1.315.228.534.383.227.164.496.31.806.437.319.128.675.192 1.067.192a3.03 3.03 0 0 0 1.23-.246c.374-.165.675-.406.902-.725.228-.32.342-.702.342-1.149v-1.435c-.237.365-.56.684-.971.957a2.39 2.39 0 0 1-1.38.41 3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.875.337.22.725.329 1.162.329.42 0 .793-.11 1.121-.329.329-.218.588-.519.78-.902.191-.383.282-.816.273-1.299l-.014-1.312a3.305 3.305 0 0 0-.916-.82c-.319-.201-.688-.301-1.107-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm7.027-1.094c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.149.41c.446.155.779.378.998.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V92.4c.127.091.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm9.803-1.832v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246.273 0 .501-.032.683-.096.183-.073.342-.15.479-.233v.917c-.183.145-.379.26-.588.341-.201.091-.474.137-.82.137-.584 0-1.026-.173-1.327-.52-.291-.355-.437-.824-.437-1.408v-4.06h-1.313v-.328c.447-.2.821-.529 1.121-.985.301-.465.566-1.034.793-1.709h.52Zm7.123 1.832c.693 0 1.308.164 1.846.492.537.329.957.766 1.258 1.313a3.58 3.58 0 0 1 .464 1.791 3.58 3.58 0 0 1-.464 1.791c-.301.538-.721.97-1.258 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.848.916.364.228.788.342 1.271.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm12.879-1.094c.629 0 1.189.15 1.682.451.501.292.893.712 1.175 1.258.292.547.438 1.199.438 1.955 0 .693-.146 1.304-.438 1.832a3.217 3.217 0 0 1-1.148 1.245 2.991 2.991 0 0 1-1.6.437c-.519 0-.984-.137-1.394-.41a3.415 3.415 0 0 1-.957-.957V94h-1.121v-9.844h1.121v3.924a3.073 3.073 0 0 1 1.039-.766 2.83 2.83 0 0 1 1.203-.287Zm-.205 1.108c-.419 0-.789.1-1.108.3a3.611 3.611 0 0 0-.916.82l-.013 1.313c0 .483.091.916.273 1.3.192.382.451.683.779.901a2.02 2.02 0 0 0 1.122.329c.446 0 .834-.11 1.162-.329.328-.218.583-.51.765-.875.183-.364.274-.765.274-1.203 0-.446-.096-.86-.287-1.244a2.297 2.297 0 0 0-.793-.943c-.347-.246-.766-.37-1.258-.37Zm8.162-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm10.213-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.756-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V94h-1.121v-6.836h1.121Zm7.068-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.38-.369a5.2 5.2 0 0 0 1.081-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492 3.6 3.6 0 0 1-.862.41 2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.021 2.021 0 0 0-.916-.218Zm11.02-.957L294.882 94h-.697l-3.077-6.836h1.34l2.065 5.031 2.242-5.03h1.34Zm2.461-3.281c.264 0 .483.096.656.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.656.287.888.888 0 0 1-.67-.287.935.935 0 0 1-.26-.642c0-.247.087-.46.26-.643a.888.888 0 0 1 .67-.287Zm.697 3.281V94h-1.121v-5.783h-1.08v-1.053h2.201Zm5.236-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.382-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm13.959-.957L318.056 94h-.698l-1.873-4.826L313.612 94h-.697l-2.393-6.836h1.34l1.518 4.799 1.791-4.799h.629l1.791 4.799 1.517-4.799h1.34Zm4.184-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm11.17-3.965V94h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.041 3.041 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.115 3.115 0 0 1 1.19-1.258 3.204 3.204 0 0 1 1.681-.45c.392 0 .789.095 1.19.286.41.183.761.438 1.053.766v-3.924h1.121Zm-3.158 3.992c-.493 0-.912.124-1.258.37a2.416 2.416 0 0 0-.807.93 2.86 2.86 0 0 0-.273 1.243c0 .438.091.843.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.334 3.334 0 0 0-.916-.82 2.11 2.11 0 0 0-1.107-.288Z"}),p.createElement("defs",null,p.createElement("clipPath",{id:"a"},p.createElement("path",{fill:"#fff",d:"M531 117h18v18h-18z"})))),it=()=>{const e=p.useRef(null),n=d1(),a=u1(n.breakpoints.down("md")),[r,o]=p.useState(!1);return s(J,{children:[t(S,{condition:!a,show:s(D,{variant:"body2",children:["Show change request process"," "]})}),t(B1,{title:"Change request process",ref:e,onClick:()=>o(!0),children:t(T0,{})}),t(N2,{open:r,anchorEl:e.current,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:()=>o(!1),children:s(w,{sx:{p:{xs:2,md:4},maxWidth:920},children:[t(D,{variant:"h3",children:"Change request process:"}),t(D,{variant:"body2",children:s("ol",{children:[t("li",{children:"When changes are detected they are added into a draft mode"}),t("li",{children:"The next step is for those changes to be sent for review"}),s("li",{children:["These changes can be seen by everyone but only who has ",t("strong",{children:"“Review change request”"})," ","permission can Approve them"]}),s("ul",{children:[s("li",{children:["If changes are Approved then someone who has"," ",t("strong",{children:"“Apply change request”"})," ","permission needs to apply these changes to be live on the feature toggles and request is Closed"]}),t("li",{children:"If changes are Cancelled by the author or admin then change request goes automatically to Cancelled and request is Closed."})]})]})}),t(w,{sx:{mt:3},children:t(Y5,{style:{maxWidth:"calc(100vw - 4rem)"}})})]})})]})},N3=d(w)(({theme:e})=>({padding:e.spacing(1),display:"flex",justifyContent:"center","& .MuiInputBase-input":{fontSize:e.fontSizes.smallBody}})),Q5=()=>{const{trackEvent:e}=ne(),[n,a]=p.useState({isOpen:!1,enableEnvironment:"",isEnabled:!1,requiredApprovals:1}),r=d1(),o=G("projectId"),{data:i,loading:c,refetchChangeRequestConfig:l}=E4(o),{updateChangeRequestEnvironmentConfig:h}=Y2(),{setToastData:u,setToastApiError:f}=g1(),g=(b,Z,V)=>()=>{a({isOpen:!0,enableEnvironment:b,isEnabled:Z,requiredApprovals:V})},y=async()=>{n.enableEnvironment&&await T(),a(b=>({...b,isOpen:!1}))};async function T(b){try{await h(b||{project:o,environment:n.enableEnvironment,enabled:!n.isEnabled,requiredApprovals:n.requiredApprovals}),u({type:"success",title:"Updated change request status",text:"Successfully updated change request status."}),await l()}catch(Z){f(C1(Z))}}const E=Array.from(Array(10).keys()).map(b=>String(b+1)).map(b=>({key:b,label:`${b} ${b==="1"?"approval":"approvals"}`,sx:{"font-size":r.fontSizes.smallBody}}));function P(b,Z){T({project:o,environment:b.environment,enabled:b.changeRequestEnabled,requiredApprovals:Number(Z)})}const $=p.useMemo(()=>[{Header:"Environment",accessor:"environment",disableSortBy:!0},{Header:"Type",accessor:"type",disableGlobalFilter:!0,disableSortBy:!0},{Header:"Required approvals",Cell:({row:{original:b}})=>{const{hasAccess:Z}=p.useContext(se);return t(S,{condition:b.changeRequestEnabled,show:t(N3,{"data-loading":!0,children:t(F0,{sx:{width:"140px",marginLeft:1},options:E,value:b.requiredApprovals||1,onChange:V=>{P(b,V)},disabled:!Z(W3,o),IconComponent:_0,fullWidth:!0})})})},width:100,disableGlobalFilter:!0,disableSortBy:!0},{Header:"Status",accessor:"changeRequestEnabled",id:"changeRequestEnabled",align:"center",Cell:({value:b,row:{original:Z}})=>t(N3,{"data-loading":!0,children:t(W2,{checked:b,projectId:o,permission:W3,inputProps:{"aria-label":Z.environment},onClick:g(Z.environment,Z.changeRequestEnabled,Z.requiredApprovals)})}),width:100,disableGlobalFilter:!0,disableSortBy:!0}],[]),{getTableProps:A,getTableBodyProps:B,headerGroups:H,rows:F,prepareRow:M}=Q.useTable({columns:$,data:i,sortTypes:we,autoResetGlobalFilter:!1,disableSortRemove:!0,defaultColumn:{Cell:t1}},Q.useGlobalFilter);return s(l1,{header:t(o1,{titleElement:"Change request configuration",actions:t(it,{})}),isLoading:c,children:[t(F1,{severity:"info",sx:{mb:3},children:"If change request is enabled for an environment, then any change in that environment needs to be approved before it will be applied"}),s(Xe,{...A(),children:[t(e2,{headerGroups:H}),t(t2,{...B(),children:F.map(b=>(M(b),t(n2,{hover:!0,...b.getRowProps(),children:b.cells.map(Z=>t(a2,{...Z.getCellProps(),children:Z.render("Cell")}))})))})]}),s(r2,{onClick:()=>{e("change_request",{props:{eventType:`change request ${n.isEnabled?"disabled":"enabled"}`}}),y()},open:n.isOpen,onClose:()=>a(b=>({...b,isOpen:!1})),primaryButtonText:n.isEnabled?"Disable":"Enable",secondaryButtonText:"Cancel",title:`${n.isEnabled?"Disable":"Enable"} change requests`,children:[s(D,{sx:{mb:1},children:["You are about to"," ",n.isEnabled?"disable":"enable"," “Change request”",t(S,{condition:Boolean(n.enableEnvironment),show:s(J,{children:[" ","for"," ",t("strong",{children:n.enableEnvironment})]})}),"."]}),t(S,{condition:!n.isEnabled,show:t(D,{variant:"body2",color:"text.secondary",children:"When enabling change request for an environment, you need to be sure that your Unleash Admin already have created the custom project roles in your Unleash instance so you can assign your project members from the project access page."})})]})]})},X5=()=>{const e=G("projectId"),n=I1(e),{hasAccess:a}=p.useContext(se),{isOss:r,isPro:o}=s1();return E1(`Project change request configuration – ${n}`),r()||o()?t(l1,{header:t(o1,{titleElement:"Change request configuration",actions:t(it,{})}),sx:{justifyContent:"center"},children:t(e3,{feature:"change-requests"})}):a(A1,e)?t(Q5,{}):t(l1,{header:t(o1,{title:"Change request configuration"}),children:t(F1,{severity:"error",children:"You need project owner permissions to access this section."})})},st=()=>{const{makeRequest:e,createRequest:n,errors:a,loading:r}=a3({propagateErrors:!0});return{deleteToken:async(c,l)=>{const h=`api/admin/projects/${l}/api-tokens/${c}`,u=n(h,{method:"DELETE"});try{return await e(u.caller,u.id)}catch(f){throw f}},createToken:async(c,l)=>{const h=`api/admin/projects/${l}/api-tokens`,u=n(h,{method:"POST",body:JSON.stringify(c)});try{return await e(u.caller,u.id)}catch(f){throw f}},errors:a,loading:r}},ct=(e,n={})=>{const a=_1(`api/admin/projects/${e}/api-tokens`),{data:r,error:o,mutate:i}=K1(a,e6,n),c=p.useMemo(()=>r??[],[r]),l=p.useCallback(()=>{i().catch(console.warn)},[i]);return{tokens:c,error:o,loading:!o&&!r,refetch:l}},e6=async e=>(await(await fetch(e).then(V1("Project Api tokens"))).json()).tokens,U3="Create project API token",t6=()=>{const e=G("projectId"),{setToastApiError:n}=g1(),{uiConfig:a}=s1(),r=L1(),[o,i]=p.useState(!1),[c,l]=p.useState(""),{getApiTokenPayload:h,username:u,type:f,environment:g,setUsername:y,setTokenType:T,setEnvironment:E,isValid:P,errors:$,clearErrors:A}=Q4(e),{createToken:B,loading:H}=st(),{refetch:F}=ct(e),{trackEvent:M}=ne();E1(U3);const b=`api/admin/project/${e}/api-tokens`;return s(B0,{loading:H,title:U3,modal:!0,description:"Unleash SDKs use API tokens to authenticate to the Unleash API. Client SDKs need a token with 'client privileges', which allows them to fetch feature toggle configurations and post usage metrics.",documentationLink:"https://docs.getunleash.io/reference/api-tokens-and-client-keys",documentationLinkLabel:"API tokens documentation",formatApiCode:()=>`curl --location --request POST '${a.unleashUrl}/${b}' \\
|
|
6
|
+
--data-raw '${JSON.stringify(V,void 0,2)}'`,s1=(v,x,O)=>{let Z,L;return x.type===z.GROUP?Z=x.entity:L=x.entity,s("li",{...v,children:[t(m0,{icon:t(x4,{fontSize:"small"}),checkedIcon:t(w4,{fontSize:"small"}),style:{marginRight:8},checked:O}),t(S,{condition:x.type===z.GROUP,show:s(I5,{children:[t("span",{children:Z==null?void 0:Z.name}),s("span",{children:[Z==null?void 0:Z.userCount," users"]})]}),elseShow:s(j5,{children:[t("span",{children:(L==null?void 0:L.name)||(L==null?void 0:L.username)}),t("span",{children:L!=null&&L.name&&(L!=null&&L.username)?L==null?void 0:L.username:L==null?void 0:L.email})]})})]})},n1=(v,x)=>t("li",{...v,children:s(D5,{children:[t("span",{children:x.name}),t("span",{children:x.description})]})}),K=F.length>0&&b;return t(d2,{open:!0,onClose:()=>B(N1),label:`${P?"Edit":"Assign"} ${h} access`,children:t(B0,{loading:E,modal:!0,title:`${P?"Edit":"Assign"} ${h} access`,description:"Custom project roles allow you to fine-tune access rights and permissions within your projects.",documentationLink:"https://docs.getunleash.io/how-to/how-to-create-and-assign-custom-project-roles",documentationLinkLabel:"Project access documentation",formatApiCode:_,children:s(P5,{onSubmit:W,children:[s("div",{children:[s(z3,{"data-testid":y4,children:["Select the ",h]}),t(M3,{children:t(b3,{"data-testid":b4,size:"small",multiple:!0,openOnFocus:!0,limitTags:10,disableCloseOnSelect:!0,disabled:P,value:F,onChange:(v,x,O)=>{v.type==="keydown"&&v.key==="Backspace"&&O==="removeOption"||M(x)},options:H,groupBy:v=>v.type,renderOption:(v,x,{selected:O})=>s1(v,x,O),getOptionLabel:v=>{if(v.type===z.USER||v.type===z.SERVICE_ACCOUNT){const x=v.entity;return x.email||x.name||x.username||""}else return v.entity.name},filterOptions:(v,{inputValue:x})=>v.filter(O=>{if(O.type===z.USER||O.type===z.SERVICE_ACCOUNT){const Z=O.entity;return Oe(x,Z.email)||Oe(x,Z.name)||Oe(x,Z.username)}return Oe(x,O.entity.name)}),isOptionEqualToValue:(v,x)=>v.type===x.type&&v.entity.id===x.entity.id,renderInput:v=>t(Ue,{...v,label:R1(h)})})}),t(z3,{children:"Select the role to assign for this project"}),t(M3,{children:t(b3,{"data-testid":C4,size:"small",openOnFocus:!0,value:b,onChange:(v,x)=>k(x),options:i,renderOption:n1,getOptionLabel:v=>v.name,renderInput:v=>t(Ue,{...v,label:"Role"})})}),t(S,{condition:Boolean(b==null?void 0:b.id),show:t(ot,{roleId:b==null?void 0:b.id,projectId:u})})]}),s(Z5,{children:[t(S1,{"data-testid":S4,type:"submit",variant:"contained",color:"primary",disabled:!K,children:P?"Save":`Assign ${h}`}),t(k5,{onClick:()=>B(N1),children:"Cancel"})]})]})})})},g3=()=>{var r,o;const{data:e,error:n,mutate:a}=K1(_1("api/admin/user-admin/access"),O5);return{users:(r=e==null?void 0:e.users)==null?void 0:r.filter(({accountType:i})=>!i||i==="User"),serviceAccounts:(o=e==null?void 0:e.users)==null?void 0:o.filter(({accountType:i})=>i==="Service Account"),groups:e==null?void 0:e.groups,loading:!n&&!e,refetch:()=>a(),error:n}},O5=e=>fetch(e).then(V1("Access")).then(n=>n.json()),$5=()=>{const e=G("projectId"),{access:n}=le(e),{users:a,serviceAccounts:r,groups:o}=g3();return!n||!a||!r||!o?null:t(m3,{accesses:n.rows,users:a,serviceAccounts:r,groups:o,roles:n.roles})},B5=()=>{const e=G("projectId"),n=G("userId"),{access:a}=le(e),{users:r,serviceAccounts:o,groups:i}=g3();if(!a||!r||!o||!i)return null;const c=a.rows.find(l=>l.entity.id===Number(n)&&l.type!==z.GROUP);return t(m3,{accesses:a.rows,selected:c,users:r,serviceAccounts:o,groups:i,roles:a.roles})},F5=()=>{const e=G("projectId"),n=G("groupId"),{access:a}=le(e),{users:r,serviceAccounts:o,groups:i}=g3();if(!a||!r||!o||!i)return null;const c=a.rows.find(l=>l.entity.id===Number(n)&&l.type===z.GROUP);return t(m3,{accesses:a.rows,selected:c,users:r,serviceAccounts:o,groups:i,roles:a.roles})},_5=({roleId:e,projectId:n,value:a,emptyText:r})=>a?t(t1,{children:t(T4,{tooltip:t(ot,{roleId:e,projectId:n,popover:!0}),tooltipProps:{maxWidth:500,maxHeight:600},children:a})}):t(t1,{children:r}),V5={id:"added"},{value:H3,setValue:L5}=r2("ProjectAccess:v1",V5),z5=d("div")(({theme:e})=>({display:"inline-flex",alignItems:"center",flexWrap:"wrap",marginLeft:e.spacing(1)})),M5=d(l2)(({theme:e})=>({marginRight:e.spacing(-3.5)})),H5=d(l2)(({theme:e})=>({outline:`${e.spacing(.25)} solid ${e.palette.background.paper}`})),W5=["imageUrl","role","added","lastLogin"],N5=["lastLogin","added"],U5=()=>{var L;const e=G("projectId"),{uiConfig:n}=l1(),{flags:a}=n,r=a.UG?"user / group":"user",o=L1(),i=d1(),c=u1(i.breakpoints.down("md")),l=u1(i.breakpoints.down("lg")),{setToastData:h}=m1(),{access:u,refetchProjectAccess:f}=le(e),{removeUserFromRole:g,removeGroupFromRole:y}=M2(),[T,E]=p.useState(!1),[P,$]=p.useState(!1),[A,B]=p.useState(),H=p.useMemo(()=>[{Header:"Avatar",accessor:"imageUrl",Cell:({row:{original:R}})=>{var q;return s(z5,{children:[t(S,{condition:R.type===z.GROUP,show:t(M5,{})}),t(H5,{user:R.entity,children:(q=R.entity.users)==null?void 0:q.length})]})},maxWidth:85,disableSortBy:!0},{id:"name",Header:"Name",accessor:R=>R.entity.name||"",Cell:({value:R,row:{original:q}})=>{var i1,a1,p1;return t(S,{condition:q.type===z.GROUP,show:t(b0,{onClick:()=>{B(q),$(!0)},title:R,subtitle:`${(i1=q.entity.users)==null?void 0:i1.length} users`}),elseShow:t(ye,{value:R,subtitle:((a1=q.entity)==null?void 0:a1.username)||((p1=q.entity)==null?void 0:p1.email)})})},minWidth:100,searchable:!0},{id:"username",Header:"Username",accessor:R=>{if(R.type!==z.GROUP){const q=R.entity;return q.username||q.email}return""},Cell:ye,minWidth:100,searchable:!0},{id:"role",Header:"Role",accessor:R=>{var q;return(q=u==null?void 0:u.roles.find(({id:i1})=>i1===R.entity.roleId))==null?void 0:q.name},Cell:({value:R,row:{original:q}})=>t(_5,{roleId:q.entity.roleId,projectId:e,value:R}),maxWidth:125,filterName:"role"},{id:"added",Header:"Added",accessor:R=>R.entity.addedAt||"",Cell:({value:R})=>t(qe,{value:R,emptyText:"Never"}),sortType:"date",maxWidth:130},{id:"lastLogin",Header:"Last login",accessor:R=>R.type!==z.GROUP?R.entity.seenAt||"":R.entity.users.map(({seenAt:i1})=>i1).sort().reverse()[0],Cell:({value:R})=>t(qe,{value:R,emptyText:"Never"}),sortType:"date",maxWidth:130},{id:"actions",Header:"Actions",disableSortBy:!0,align:"center",maxWidth:150,Cell:({row:{original:R}})=>s(H2,{children:[t($1,{"data-testid":A4,component:Z1,permission:A1,projectId:e,to:`edit/${R.type===z.GROUP?"group":"user"}/${R.entity.id}`,disabled:(u==null?void 0:u.rows.length)===1,tooltipProps:{title:(u==null?void 0:u.rows.length)===1?"Cannot edit access. A project must have at least one owner":"Edit access"},children:t(t3,{})}),t($1,{"data-testid":E4,permission:A1,projectId:e,onClick:()=>{B(R),E(!0)},disabled:(u==null?void 0:u.rows.length)===1,tooltipProps:{title:(u==null?void 0:u.rows.length)===1?"Cannot remove access. A project must have at least one owner":"Remove access"},children:t(n3,{})})]})}],[u,e]),[F,M]=G2(),[b]=p.useState(()=>({sortBy:[{id:F.get("sort")||H3.id,desc:F.has("order")?F.get("order")==="desc":H3.desc}],globalFilter:F.get("search")||""})),[k,V]=p.useState(b.globalFilter),{data:W,getSearchText:_,getSearchContext:s1}=s2(H,k,(u==null?void 0:u.rows)??[]),{headerGroups:n1,rows:K,prepareRow:v,setHiddenColumns:x,state:{sortBy:O}}=Q.useTable({columns:H,data:W,initialState:b,sortTypes:Se,autoResetHiddenColumns:!1,autoResetSortBy:!1,disableSortRemove:!0,disableMultiSort:!0,defaultColumn:{Cell:t1}},Q.useSortBy,Q.useFlexLayout);Ce([{condition:c,columns:W5},{condition:l,columns:N5}],x,H),p.useEffect(()=>{const R={};R.sort=O[0].id,O[0].desc&&(R.order="desc"),k&&(R.search=k),M(R,{replace:!0}),L5({id:O[0].id,desc:O[0].desc||!1})},[O,k,M]);const Z=async R=>{if(!R)return;const{id:q,roleId:i1}=R.entity;let a1=R.entity.name;if(R.type!==z.GROUP){const p1=R.entity;a1=a1||p1.email||p1.username||""}try{R.type!==z.GROUP?await g(e,i1,q):await y(e,i1,q),f(),h({type:"success",title:`${a1||`The ${r}`} has been removed from project`})}catch(p1){h({type:"error",title:p1.message||`Server problems when removing ${r}.`})}E(!1)};return s(c1,{header:t(o1,{secondary:!0,title:`Access (${K.length<W.length?`${K.length} of ${W.length}`:W.length})`,actions:s(J,{children:[t(S,{condition:!c,show:s(J,{children:[t(C1,{initialValue:k,onChange:V,hasFilters:!0,getSearchContext:s1}),t(o1.Divider,{})]})}),s(f0,{onClick:()=>o("create"),maxWidth:"700px",Icon:C0,permission:A1,projectId:e,"data-testid":R4,children:["Assign ",r]})]}),children:t(S,{condition:c,show:t(C1,{initialValue:k,onChange:V,hasFilters:!0,getSearchContext:s1})})}),children:[t(Y1,{value:_(k),children:t(c2,{rows:K,headerGroups:n1,prepareRow:v})}),t(S,{condition:K.length===0,show:t(S,{condition:(k==null?void 0:k.length)>0,show:s(h1,{children:["No access found matching “",k,"”"]}),elseShow:s(h1,{children:["No access available. Get started by assigning a"," ",r,"."]})})}),s(p2,{children:[t(r1,{path:"create",element:t($5,{})}),t(r1,{path:"edit/group/:groupId",element:t(F5,{})}),t(r1,{path:"edit/user/:userId",element:t(B5,{})})]}),t(a2,{open:T,onClick:()=>Z(A),onClose:()=>{E(!1)},title:`Really remove ${r} from this project?`}),t(T5,{open:P,setOpen:$,group:A==null?void 0:A.entity,projectId:e,subtitle:`Role: ${(L=u==null?void 0:u.roles.find(({id:R})=>R===(A==null?void 0:A.entity.roleId)))==null?void 0:L.name}`,onEdit:()=>{o(`edit/group/${A==null?void 0:A.entity.id}`)},onRemove:()=>{$(!1),E(!0)}})]})},q5=()=>{const e=G("projectId"),n=k1(e),{hasAccess:a}=p.useContext(ie),{isOss:r}=l1();return E1(`Project access – ${n}`),r()?t(c1,{header:t(o1,{title:"Access"}),sx:{justifyContent:"center"},children:t(e3,{feature:"access"})}):a(A1,e)?t(U5,{}):t(c1,{header:t(o1,{title:"Access"}),children:t(F1,{severity:"error",children:"You need project owner permissions to access this section."})})},W3="UPDATE_PROJECT",G5="CREATE_PROJECT_API_TOKEN",K5="DELETE_PROJECT_API_TOKEN",J5=e=>p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:860,height:298,fill:"none",...e},p.createElement("rect",{width:860,height:298,fill:"#F2F2F5",rx:12}),p.createElement("rect",{width:109,height:23,x:515.5,y:114.5,fill:"#F4FAEB",rx:3.5}),p.createElement("g",{clipPath:"url(#a)"},p.createElement("path",{fill:"#68A611",d:"m537.75 129.128-2.603-2.603a.747.747 0 1 0-1.057 1.058l3.135 3.135a.747.747 0 0 0 1.057 0l7.935-7.935a.747.747 0 1 0-1.057-1.058l-7.41 7.403Z"})),p.createElement("path",{fill:"#3B6600",d:"m557.639 122.09 3.656 7.91h-1.91l-.598-1.465h-3.105l-.598 1.465h-1.91l3.656-7.91h.809Zm-.399 2.66-.984 2.402h1.969l-.985-2.402Zm8.473-.82c.469 0 .902.121 1.301.363.406.234.73.582.972 1.043.25.453.375 1.008.375 1.664 0 .656-.125 1.223-.375 1.699a2.675 2.675 0 0 1-.996 1.102c-.414.25-.875.375-1.383.375-.328 0-.656-.078-.984-.235a2.799 2.799 0 0 1-.809-.609v3.48h-1.488v-8.73h1.488v.996c.172-.32.422-.59.75-.808a1.97 1.97 0 0 1 1.149-.34Zm-.375 1.488c-.266 0-.516.07-.75.211a1.557 1.557 0 0 0-.574.574c-.141.25-.207.551-.2.902v.856c.211.219.438.402.68.551.25.14.52.211.809.211.304 0 .57-.082.797-.246.226-.165.402-.375.527-.633.125-.266.187-.547.187-.844 0-.445-.136-.82-.41-1.125-.265-.305-.621-.457-1.066-.457Zm7.828-1.488c.469 0 .902.121 1.301.363.406.234.73.582.972 1.043.25.453.375 1.008.375 1.664 0 .656-.125 1.223-.375 1.699a2.675 2.675 0 0 1-.996 1.102c-.414.25-.875.375-1.382.375-.329 0-.657-.078-.985-.235a2.78 2.78 0 0 1-.808-.609v3.48h-1.489v-8.73h1.489v.996c.171-.32.421-.59.75-.808.328-.227.711-.34 1.148-.34Zm-.375 1.488c-.266 0-.516.07-.75.211a1.557 1.557 0 0 0-.574.574c-.141.25-.207.551-.199.902v.856c.211.219.437.402.679.551.25.14.52.211.809.211.305 0 .57-.082.797-.246.226-.165.402-.375.527-.633a1.96 1.96 0 0 0 .188-.844c0-.445-.137-.82-.411-1.125-.265-.305-.621-.457-1.066-.457Zm8.168.328a1.576 1.576 0 0 0-.785-.211 1.16 1.16 0 0 0-.856.34 3.196 3.196 0 0 0-.597.82V130h-1.489v-5.918h1.489v1.113c.203-.351.441-.644.715-.879.281-.234.597-.351.949-.351.211 0 .402.035.574.105v1.676Zm3.902-1.816c.578 0 1.106.14 1.582.422.477.273.86.648 1.149 1.125.297.468.445.996.445 1.582 0 .586-.148 1.113-.445 1.582a3.31 3.31 0 0 1-1.149 1.125 3.125 3.125 0 0 1-1.582.41 3.17 3.17 0 0 1-1.582-.41 3.315 3.315 0 0 1-1.148-1.125 2.954 2.954 0 0 1-.434-1.582c0-.586.145-1.114.434-1.582a3.165 3.165 0 0 1 1.148-1.125 3.09 3.09 0 0 1 1.582-.422Zm0 1.441c-.281 0-.543.067-.785.199a1.539 1.539 0 0 0-.586.575c-.14.25-.211.554-.211.914 0 .359.071.664.211.914.149.25.344.441.586.574.242.125.504.187.785.187.282 0 .543-.062.785-.187.243-.133.438-.324.586-.574.149-.25.223-.555.223-.914 0-.36-.074-.664-.223-.914a1.525 1.525 0 0 0-.586-.575 1.612 1.612 0 0 0-.785-.199Zm10.067-1.289L592.127 130h-.949l-2.766-5.918h1.734l1.489 3.668 1.558-3.668h1.735Zm3.328-.152c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.227.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .821-.086 1.172-.258.352-.172.633-.347.844-.527l-.012 1.383c-.187.164-.469.332-.844.504a2.952 2.952 0 0 1-1.218.246 3.283 3.283 0 0 1-1.606-.399 3.14 3.14 0 0 1-1.148-1.089c-.282-.461-.422-.989-.422-1.583 0-.578.129-1.105.387-1.582a3.071 3.071 0 0 1 1.066-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.035 1.3c-.367 0-.676.114-.926.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.469-.937a1.506 1.506 0 0 0-.925-.317Zm9.808-3.668V130h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.148.34-.477 0-.918-.121-1.325-.364-.398-.242-.718-.593-.961-1.054-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687.25-.469.582-.829.997-1.079a2.625 2.625 0 0 1 1.394-.386c.32 0 .645.074.973.222.328.149.601.348.82.598v-3.188h1.488Zm-2.976 3.833c-.313 0-.582.082-.809.246-.219.156-.39.363-.515.621-.125.25-.188.523-.188.82 0 .445.133.824.398 1.137.274.312.633.469 1.079.469.265 0 .511-.071.738-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.44 2.44 0 0 0-.691-.527 1.63 1.63 0 0 0-.797-.199Z"}),p.createElement("rect",{width:109,height:23,x:515.5,y:114.5,stroke:"#B0D182",rx:3.5}),p.createElement("rect",{width:141,height:23,x:680.5,y:114.5,fill:"#F4FAEB",rx:3.5}),p.createElement("path",{fill:"#68A611",d:"m690.692 122.251 1.058-1.057 2.557 2.557-1.057 1.058-2.558-2.558Zm9.308 7.125v-2.625h-4.193l-4.057 4.058-1.057-1.058 4.499-4.5H700v-2.625l3.375 3.375-3.375 3.375Z"}),p.createElement("path",{fill:"#3B6600",d:"M715.097 121.304c.533 0 .995.076 1.384.228.389.144.728.343 1.016.597v1.777c-.204-.152-.415-.3-.635-.444a2.983 2.983 0 0 0-1.714-.495 2.67 2.67 0 0 0-1.384.368 2.735 2.735 0 0 0-1.358 2.412c0 .525.122.999.368 1.422.245.415.575.745.99.99a2.74 2.74 0 0 0 1.384.356c.567 0 1.041-.085 1.422-.254.389-.178.74-.394 1.054-.648v1.714a3.276 3.276 0 0 1-1.08.635 4.333 4.333 0 0 1-1.447.228 4.69 4.69 0 0 1-1.726-.317 4.617 4.617 0 0 1-1.435-.914 4.348 4.348 0 0 1-.978-1.409 4.47 4.47 0 0 1-.355-1.803c0-.66.119-1.261.355-1.803a4.2 4.2 0 0 1 .978-1.396 4.313 4.313 0 0 1 1.435-.914 4.54 4.54 0 0 1 1.726-.33Zm7.643 2.12c.651 0 1.197.22 1.637.66.441.44.661 1.1.661 1.98V130h-1.613l-.012-3.72c0-.431-.106-.753-.318-.965-.203-.211-.486-.317-.85-.317-.288 0-.559.093-.813.279a2.974 2.974 0 0 0-.635.661V130h-1.612v-9.141h1.612v3.644a3.32 3.32 0 0 1 .787-.736 2.016 2.016 0 0 1 1.156-.343Zm6.69 0c.347 0 .698.08 1.054.241.355.161.652.377.889.647v-.723h1.612V130h-1.612v-1.079a2.648 2.648 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.995-.131-1.435-.393-.431-.262-.778-.643-1.041-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.95 2.95 0 0 1 1.079-1.168c.457-.28.961-.419 1.511-.419Zm.33 1.574c-.338 0-.63.089-.876.267a1.733 1.733 0 0 0-.558.673 2.027 2.027 0 0 0-.203.901c0 .482.143.893.431 1.231.296.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.69 1.69 0 0 0 .609-.635c.161-.279.242-.614.242-1.003v-.914a2.864 2.864 0 0 0-.749-.584 1.77 1.77 0 0 0-.864-.216Zm6.818-1.409v.914a3.3 3.3 0 0 1 .787-.736 2.01 2.01 0 0 1 1.155-.343c.652 0 1.198.22 1.638.66.44.44.66 1.1.66 1.98V130h-1.612l-.013-3.72c0-.431-.106-.753-.318-.965-.203-.211-.486-.317-.85-.317-.288 0-.559.093-.813.279a2.947 2.947 0 0 0-.634.661V130h-1.613v-6.411h1.613Zm8.632-.165c.347 0 .699.08 1.054.241.356.161.652.377.889.647v-.723h1.612v6.246c0 .728-.161 1.341-.482 1.841a3.12 3.12 0 0 1-1.283 1.155 3.808 3.808 0 0 1-1.751.406c-.568 0-1.033-.084-1.397-.254a6.634 6.634 0 0 1-1.016-.584v-1.523c.195.118.398.245.61.381.22.135.465.25.736.343.279.093.601.139.965.139.381 0 .724-.072 1.028-.216.305-.143.542-.347.711-.609.178-.254.267-.546.267-.876v-1.117a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.27-.508.63-.897 1.079-1.168.457-.28.96-.419 1.51-.419Zm.331 1.587c-.339 0-.631.089-.876.266a1.75 1.75 0 0 0-.559.673 1.965 1.965 0 0 0-.203.889c0 .482.144.893.431 1.231.297.33.686.495 1.168.495.288 0 .555-.072.8-.215a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.62 2.62 0 0 0-.749-.571 1.766 1.766 0 0 0-.863-.216Zm8.01-1.587c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.296.779.635 1.041.339.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.557 3.557 0 0 1-1.74-.431 3.405 3.405 0 0 1-1.244-1.181c-.304-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.155-1.244a2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm6.602-1.409c.398 0 .766.059 1.104.178.339.118.601.253.787.406v1.422a4.603 4.603 0 0 0-.749-.394 2.205 2.205 0 0 0-.901-.19c-.305 0-.546.067-.724.203-.177.135-.266.296-.266.482 0 .136.051.263.152.381.102.11.296.207.584.292l.724.241c.973.288 1.46.851 1.46 1.689 0 .398-.115.753-.343 1.066a2.27 2.27 0 0 1-.901.724 2.853 2.853 0 0 1-1.245.266c-.431 0-.85-.067-1.256-.203-.407-.135-.716-.283-.927-.444v-1.409c.161.11.355.216.584.317.228.102.465.186.711.254.245.059.469.089.673.089.321 0 .567-.055.736-.165a.563.563 0 0 0 .266-.495.431.431 0 0 0-.215-.381 2.91 2.91 0 0 0-.635-.279l-.787-.28c-.491-.16-.83-.389-1.016-.685-.186-.296-.279-.648-.279-1.054s.101-.757.305-1.054c.211-.304.503-.541.876-.711a2.95 2.95 0 0 1 1.282-.266Zm9.889 0c.347 0 .699.08 1.054.241.356.161.652.377.889.647v-.723h1.612V130h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.27-.508.63-.897 1.079-1.168.457-.28.96-.419 1.51-.419Zm.33 1.574c-.338 0-.63.089-.876.267a1.742 1.742 0 0 0-.558.673 2.027 2.027 0 0 0-.203.901c0 .482.144.893.431 1.231.297.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.848 2.848 0 0 0-.749-.584 1.767 1.767 0 0 0-.864-.216Zm8.874-1.574c.508 0 .978.131 1.41.393.44.254.791.631 1.053 1.13.271.491.407 1.092.407 1.803 0 .711-.136 1.325-.407 1.841a2.897 2.897 0 0 1-1.079 1.193 2.84 2.84 0 0 1-1.498.406c-.355 0-.711-.084-1.066-.253a3.017 3.017 0 0 1-.876-.661v3.771h-1.612v-9.458h1.612v1.079a2.43 2.43 0 0 1 .812-.876 2.141 2.141 0 0 1 1.244-.368Zm-.406 1.612c-.288 0-.558.076-.812.229a1.68 1.68 0 0 0-.622.622c-.153.271-.225.596-.216.977v.927c.228.237.474.436.736.597.271.152.563.228.876.228.33 0 .618-.089.863-.266a1.81 1.81 0 0 0 .572-.686c.135-.288.203-.592.203-.914 0-.482-.148-.889-.444-1.219-.288-.33-.673-.495-1.156-.495Zm8.481-1.612c.508 0 .977.131 1.409.393.44.254.791.631 1.054 1.13.27.491.406 1.092.406 1.803 0 .711-.136 1.325-.406 1.841a2.903 2.903 0 0 1-1.079 1.193 2.843 2.843 0 0 1-1.499.406c-.355 0-.71-.084-1.066-.253a3.017 3.017 0 0 1-.876-.661v3.771h-1.612v-9.458h1.612v1.079c.186-.347.457-.639.813-.876.355-.245.77-.368 1.244-.368Zm-.407 1.612c-.287 0-.558.076-.812.229a1.686 1.686 0 0 0-.622.622c-.152.271-.224.596-.216.977v.927c.229.237.474.436.736.597.271.152.563.228.876.228.33 0 .618-.089.864-.266.245-.178.436-.407.571-.686.135-.288.203-.592.203-.914 0-.482-.148-.889-.444-1.219-.288-.33-.673-.495-1.156-.495Zm6.424-4.177V130h-1.612v-9.141h1.612Zm3.314-.609c.304 0 .567.11.787.33a1.048 1.048 0 0 1 0 1.524c-.22.22-.483.33-.787.33-.305 0-.567-.11-.787-.33a1.067 1.067 0 0 1-.318-.762c0-.296.106-.55.318-.762.22-.22.482-.33.787-.33Zm.939 3.339V130h-1.612v-5.04h-1.028v-1.371h2.64Zm4.837-.165c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.369 1.024.369 1.65v.686h-4.647c.085.432.296.779.635 1.041.338.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.38-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.557 3.557 0 0 1-1.74-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.626-3.974V130h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.042-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.946 2.946 0 0 1 1.08-1.168c.457-.28.96-.419 1.51-.419.347 0 .699.08 1.054.241.356.161.652.377.889.647v-3.453h1.612Zm-3.225 4.152c-.338 0-.63.089-.876.266-.237.17-.423.394-.558.673a1.952 1.952 0 0 0-.203.889c0 .482.144.893.431 1.231.297.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.7 1.7 0 0 0 .61-.635c.16-.279.241-.614.241-1.003v-.914a2.62 2.62 0 0 0-.749-.571 1.767 1.767 0 0 0-.864-.216Z"}),p.createElement("rect",{width:141,height:23,x:680.5,y:114.5,stroke:"#B0D182",rx:3.5}),p.createElement("rect",{width:141,height:23,x:680.5,y:177.5,fill:"#FFF2F3",rx:3.5}),p.createElement("path",{fill:"#D93644",d:"M725.724 184.283a.745.745 0 0 0-1.057 0l-3.668 3.66-3.667-3.668a.748.748 0 0 0-1.058 1.058l3.668 3.667-3.668 3.668a.747.747 0 1 0 1.058 1.057l3.667-3.667 3.668 3.667a.745.745 0 0 0 1.057 0 .745.745 0 0 0 0-1.057L722.057 189l3.667-3.667a.752.752 0 0 0 0-1.05Z"}),p.createElement("path",{fill:"#D11525",d:"M738.973 184.973c.492 0 .918.07 1.277.211.359.132.672.316.938.55v1.641a11.253 11.253 0 0 0-.586-.41 2.99 2.99 0 0 0-.692-.328 2.745 2.745 0 0 0-.89-.129c-.469 0-.895.113-1.278.34a2.558 2.558 0 0 0-.914.914c-.226.383-.34.82-.34 1.312 0 .485.114.922.34 1.313.227.383.531.687.914.914.383.219.809.328 1.278.328.523 0 .96-.078 1.312-.234.359-.165.684-.364.973-.598v1.582a3.048 3.048 0 0 1-.996.586c-.399.14-.844.211-1.336.211a4.347 4.347 0 0 1-1.594-.293 4.263 4.263 0 0 1-1.324-.844 4.01 4.01 0 0 1-.903-1.301 4.118 4.118 0 0 1-.328-1.664c0-.609.11-1.164.328-1.664.219-.5.52-.93.903-1.289a4.007 4.007 0 0 1 1.324-.844 4.195 4.195 0 0 1 1.594-.304Zm6.117 1.957c.32 0 .644.074.972.222.329.149.602.348.821.598v-.668h1.488V193h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.149.34-.476 0-.918-.121-1.324-.364a2.627 2.627 0 0 1-.961-1.054c-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687a2.72 2.72 0 0 1 .996-1.079 2.631 2.631 0 0 1 1.395-.386Zm.305 1.453a1.34 1.34 0 0 0-.809.246 1.606 1.606 0 0 0-.516.621 1.882 1.882 0 0 0-.187.832c0 .445.133.824.398 1.137.274.312.633.469 1.078.469.266 0 .512-.071.739-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.652 2.652 0 0 0-.692-.539 1.624 1.624 0 0 0-.796-.199Zm6.293-1.301v.844c.179-.242.421-.469.726-.68a1.862 1.862 0 0 1 1.066-.316c.602 0 1.106.203 1.512.609.406.406.61 1.016.61 1.828V193h-1.489l-.011-3.434c0-.398-.098-.695-.293-.89-.188-.196-.45-.293-.786-.293-.265 0-.515.086-.75.258a2.707 2.707 0 0 0-.585.609V193h-1.489v-5.918h1.489Zm8.32-.152c.437 0 .797.07 1.078.211.281.14.504.277.668.41v1.371a3.03 3.03 0 0 0-.692-.375c-.25-.102-.558-.152-.925-.152a1.641 1.641 0 0 0-1.43.82c-.148.25-.223.535-.223.855 0 .485.157.883.469 1.196.313.312.707.468 1.184.468.367 0 .675-.046.925-.14.258-.102.489-.227.692-.375v1.359a2.998 2.998 0 0 1-.668.41c-.281.125-.641.188-1.078.188-.602 0-1.137-.141-1.606-.422a3.257 3.257 0 0 1-1.101-1.137 3.12 3.12 0 0 1-.399-1.547c0-.414.075-.808.223-1.183.156-.375.375-.707.656-.996.281-.297.61-.532.985-.703a2.99 2.99 0 0 1 1.242-.258Zm5.66 0c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.227.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .821-.086 1.172-.258.352-.172.633-.347.844-.527l-.012 1.383c-.187.164-.468.332-.844.504a2.952 2.952 0 0 1-1.218.246 3.283 3.283 0 0 1-1.606-.399 3.14 3.14 0 0 1-1.148-1.089c-.281-.461-.422-.989-.422-1.583 0-.578.129-1.105.387-1.582a3.071 3.071 0 0 1 1.066-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.035 1.3c-.367 0-.676.114-.926.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.468-.937a1.511 1.511 0 0 0-.926-.317Zm5.672-3.668V193h-1.489v-8.438h1.489Zm3.304 0V193h-1.488v-8.438h1.488Zm4.407 2.368c.578 0 1.074.125 1.488.375.422.25.742.597.961 1.043.226.437.34.945.34 1.523v.633h-4.289c.078.398.273.719.586.961.312.242.695.363 1.148.363.43 0 .82-.086 1.172-.258.351-.172.633-.347.844-.527l-.012 1.383c-.188.164-.469.332-.844.504a2.953 2.953 0 0 1-1.219.246 3.277 3.277 0 0 1-1.605-.399 3.132 3.132 0 0 1-1.148-1.089c-.282-.461-.422-.989-.422-1.583 0-.578.129-1.105.386-1.582a3.082 3.082 0 0 1 1.067-1.148 2.759 2.759 0 0 1 1.547-.445Zm-.036 1.3c-.367 0-.675.114-.925.34-.25.227-.422.532-.516.914h2.836c-.031-.422-.187-.734-.469-.937a1.51 1.51 0 0 0-.926-.317Zm9.809-3.668V193h-1.488v-.996c-.172.32-.422.598-.75.832-.328.226-.711.34-1.149.34-.476 0-.918-.121-1.324-.364a2.627 2.627 0 0 1-.961-1.054c-.242-.461-.363-1.02-.363-1.676 0-.656.121-1.219.363-1.687a2.72 2.72 0 0 1 .996-1.079 2.631 2.631 0 0 1 1.395-.386c.32 0 .644.074.972.222.329.149.602.348.821.598v-3.188h1.488Zm-2.977 3.833a1.34 1.34 0 0 0-.808.246 1.606 1.606 0 0 0-.516.621c-.125.25-.187.523-.187.82 0 .445.133.824.398 1.137.274.312.633.469 1.078.469.266 0 .512-.071.739-.211a1.56 1.56 0 0 0 .562-.586c.149-.258.223-.567.223-.926v-.844a2.443 2.443 0 0 0-.692-.527 1.625 1.625 0 0 0-.797-.199Z"}),p.createElement("rect",{width:141,height:23,x:680.5,y:177.5,stroke:"#FEB0B7",rx:3.5}),p.createElement("rect",{width:139,height:23,x:287.5,y:146.5,fill:"#F1F0FC",rx:3.5}),p.createElement("path",{fill:"#6C65E5",d:"M304 150.5a7.493 7.493 0 0 0-7.5 7.5c0 4.148 3.352 7.5 7.5 7.5s7.5-3.352 7.5-7.5-3.352-7.5-7.5-7.5Zm0 13.5c-3.307 0-6-2.693-6-6s2.693-6 6-6 6 2.693 6 6-2.693 6-6 6Z"}),p.createElement("path",{fill:"#615BC2",d:"M321.979 153.494c.398 0 .788.055 1.168.165.381.11.724.279 1.029.508.313.229.558.516.736.863.186.339.279.745.279 1.219 0 .499-.127.931-.38 1.295a2.56 2.56 0 0 1-.978.838 3.637 3.637 0 0 1-1.32.343l3.059 3.275h-2.323l-2.958-3.479V162h-1.765v-8.506h3.453Zm-1.688 1.651v2.145c.203.068.427.123.673.165.254.034.508.051.762.051.507 0 .909-.102 1.206-.305.304-.211.457-.508.457-.889 0-.414-.161-.71-.483-.888-.313-.186-.698-.279-1.155-.279h-1.46Zm9.052.279c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.368 1.024.368 1.65v.686h-4.646c.084.432.296.779.635 1.041.338.262.753.393 1.244.393.465 0 .888-.093 1.269-.279.381-.186.686-.376.914-.571l-.012 1.498c-.204.178-.508.36-.914.546a3.198 3.198 0 0 1-1.321.266 3.553 3.553 0 0 1-1.739-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.139-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.993 2.993 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.559.99h3.072c-.033-.457-.203-.795-.507-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.727-1.244L336.998 162h-1.028l-2.996-6.411h1.879l1.612 3.973 1.688-3.973h1.879Zm2.463-3.339c.305 0 .567.11.787.33a1.048 1.048 0 0 1 0 1.524c-.22.22-.482.33-.787.33-.305 0-.567-.11-.787-.33a1.066 1.066 0 0 1-.317-.762c0-.296.105-.55.317-.762.22-.22.482-.33.787-.33Zm.94 3.339V162h-1.613v-5.04h-1.028v-1.371h2.641Zm4.836-.165c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.297.779.635 1.041.339.262.754.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.397 3.397 0 0 1-1.244-1.181c-.305-.499-.458-1.071-.458-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.156-1.244a2.992 2.992 0 0 1 1.675-.482Zm-.038 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Zm13.445-1.244L359.456 162h-1.168l-1.498-4.151-1.498 4.151h-1.181l-2.209-6.411h1.752l1.181 3.796 1.384-3.796h1.155l1.371 3.796 1.181-3.796h1.752Zm8.963 1.803a1.707 1.707 0 0 0-.851-.229 1.26 1.26 0 0 0-.927.368 3.44 3.44 0 0 0-.647.889V162h-1.612v-6.411h1.612v1.206a3.63 3.63 0 0 1 .774-.952 1.566 1.566 0 0 1 1.029-.381c.228 0 .435.038.622.114v1.816Zm4.049-1.968c.627 0 1.164.135 1.613.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.647c.085.432.297.779.635 1.041.339.262.753.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.407 3.407 0 0 1-1.245-1.181c-.304-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714.28-.516.665-.931 1.156-1.244a2.992 2.992 0 0 1 1.675-.482Zm-.038 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Zm7.072-1.409c.347 0 .698.08 1.053.241.356.161.652.377.889.647v-.723h1.612v9.458h-1.612v-4.126a2.645 2.645 0 0 1-.812.901 2.135 2.135 0 0 1-1.245.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.961-.419 1.511-.419Zm.33 1.587c-.339 0-.631.089-.876.266-.237.17-.423.394-.559.673a1.965 1.965 0 0 0-.203.889c0 .482.144.893.432 1.231.296.33.685.495 1.168.495.287 0 .554-.072.799-.215a1.7 1.7 0 0 0 .61-.635c.161-.279.241-.614.241-1.003v-.914a2.606 2.606 0 0 0-.749-.571 1.763 1.763 0 0 0-.863-.216Zm10.867-1.422v3.821c0 .567-.127 1.058-.381 1.473a2.543 2.543 0 0 1-1.041.939 3.2 3.2 0 0 1-1.473.33c-.558 0-1.058-.11-1.498-.33a2.565 2.565 0 0 1-1.028-.939c-.245-.415-.368-.906-.368-1.473v-3.821h1.625l.013 3.529c0 .5.114.872.342 1.117.229.246.534.369.914.369.373 0 .673-.123.902-.369.237-.245.355-.617.355-1.117v-3.529h1.638Zm3.186-3.339c.305 0 .567.11.788.33a1.048 1.048 0 0 1 0 1.524c-.221.22-.483.33-.788.33-.304 0-.567-.11-.787-.33a1.07 1.07 0 0 1-.317-.762c0-.296.106-.55.317-.762.22-.22.483-.33.787-.33Zm.94 3.339V162h-1.612v-5.04h-1.029v-1.371h2.641Zm6.068 1.803a1.703 1.703 0 0 0-.85-.229c-.373 0-.682.123-.927.368a3.441 3.441 0 0 0-.648.889V162h-1.612v-6.411h1.612v1.206c.22-.381.479-.698.775-.952a1.564 1.564 0 0 1 1.028-.381c.229 0 .436.038.622.114v1.816Zm4.05-1.968c.626 0 1.164.135 1.612.406.457.271.804.648 1.041 1.13.246.474.369 1.024.369 1.65v.686h-4.647c.085.432.296.779.635 1.041.338.262.753.393 1.244.393a2.85 2.85 0 0 0 1.269-.279c.381-.186.686-.376.915-.571l-.013 1.498c-.203.178-.508.36-.914.546a3.198 3.198 0 0 1-1.321.266 3.556 3.556 0 0 1-1.739-.431 3.405 3.405 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.14-1.197.419-1.714a3.328 3.328 0 0 1 1.155-1.244 2.996 2.996 0 0 1 1.676-.482Zm-.038 1.409a1.44 1.44 0 0 0-1.003.368c-.271.246-.457.576-.559.99h3.073c-.034-.457-.203-.795-.508-1.015a1.633 1.633 0 0 0-1.003-.343Zm10.626-3.974V162h-1.612v-1.079a2.648 2.648 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.435-.393-.431-.262-.778-.643-1.041-1.143-.262-.499-.393-1.104-.393-1.815 0-.711.131-1.32.393-1.828a2.946 2.946 0 0 1 1.08-1.168c.457-.28.96-.419 1.51-.419.347 0 .698.08 1.054.241.355.161.652.377.889.647v-3.453h1.612Zm-3.225 4.152c-.338 0-.63.089-.876.266-.237.17-.423.394-.558.673a1.952 1.952 0 0 0-.203.889c0 .482.144.893.431 1.231.296.339.686.508 1.168.508.288 0 .555-.076.8-.228a1.69 1.69 0 0 0 .609-.635c.161-.279.242-.614.242-1.003v-.914a2.633 2.633 0 0 0-.749-.571 1.77 1.77 0 0 0-.864-.216Z"}),p.createElement("rect",{width:139,height:23,x:287.5,y:146.5,stroke:"#BEBBF3",rx:3.5}),p.createElement("rect",{width:88,height:23,x:142.5,y:146.5,fill:"#FFF4E5",rx:3.5}),p.createElement("path",{fill:"#B35300",d:"M154.692 153.291c.897 0 1.684.182 2.361.546a3.9 3.9 0 0 1 1.574 1.523c.381.652.572 1.418.572 2.298 0 .838-.178 1.6-.533 2.285a4.056 4.056 0 0 1-1.524 1.613c-.66.397-1.447.596-2.361.596a17.819 17.819 0 0 1-3.39-.33v-8.201a41.433 41.433 0 0 1 1.612-.228 13.767 13.767 0 0 1 1.689-.102Zm.038 1.65a9.506 9.506 0 0 0-1.574.14v5.281c.254.051.516.089.787.115.279.016.542.025.787.025.559 0 1.037-.119 1.435-.356.397-.245.702-.579.914-1.002.211-.424.317-.898.317-1.422 0-.542-.106-1.02-.317-1.435a2.372 2.372 0 0 0-.914-.977c-.398-.246-.876-.369-1.435-.369Zm10.067 2.451a1.7 1.7 0 0 0-.85-.229c-.373 0-.682.123-.927.368a3.44 3.44 0 0 0-.647.889V162h-1.613v-6.411h1.613v1.206a3.63 3.63 0 0 1 .774-.952 1.564 1.564 0 0 1 1.028-.381c.229 0 .436.038.622.114v1.816Zm3.784-1.968c.347 0 .698.08 1.053.241.356.161.652.377.889.647v-.723h1.612V162h-1.612v-1.079a2.638 2.638 0 0 1-.813.901 2.13 2.13 0 0 1-1.244.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.96-.419 1.511-.419Zm.33 1.574a1.45 1.45 0 0 0-.876.267 1.735 1.735 0 0 0-.559.673 2.04 2.04 0 0 0-.203.901c0 .482.144.893.432 1.231.296.339.685.508 1.168.508.287 0 .554-.076.799-.228a1.7 1.7 0 0 0 .61-.635c.161-.279.241-.614.241-1.003v-.914a2.848 2.848 0 0 0-.749-.584 1.763 1.763 0 0 0-.863-.216Zm8.963-1.409v1.346h-1.664V162h-1.612v-5.065h-.977v-1.346h.977v-.571c0-.491.102-.91.305-1.257.211-.356.486-.627.825-.813a2.283 2.283 0 0 1 1.117-.279c.271 0 .508.03.711.089.203.059.381.139.533.241v1.346a1.731 1.731 0 0 0-.964-.241.985.985 0 0 0-.648.253c-.178.153-.267.407-.267.762v.47h1.664Zm3.656-1.866v1.866h1.777v1.346h-1.777v2.767c0 .288.063.516.19.686.136.161.335.241.597.241.228 0 .423-.025.584-.076.169-.051.326-.123.47-.216v1.282a2.012 2.012 0 0 1-.61.406c-.237.11-.537.165-.901.165-.576 0-1.045-.182-1.409-.545-.356-.373-.534-.881-.534-1.524v-3.186h-1.155v-.826c.406-.144.779-.414 1.117-.812.347-.398.622-.923.826-1.574h.825Zm8.912 1.866v.812c.195-.245.427-.469.698-.672.279-.204.635-.305 1.067-.305.448 0 .854.106 1.218.317.364.203.648.512.851.927.254-.347.55-.639.889-.876a1.96 1.96 0 0 1 1.18-.368c.432 0 .825.101 1.181.305.355.194.639.486.85.875.221.39.331.876.331 1.46V162h-1.613l-.012-3.72c0-.431-.115-.753-.343-.965-.22-.211-.512-.317-.876-.317-.28 0-.521.089-.724.267a3.597 3.597 0 0 0-.571.609V162h-1.612l-.013-3.72c0-.431-.114-.753-.343-.965-.22-.211-.508-.317-.863-.317a1.13 1.13 0 0 0-.724.254 3.057 3.057 0 0 0-.571.571V162h-1.612v-6.411h1.612Zm13.089-.165a3.31 3.31 0 0 1 1.714.457c.516.296.931.702 1.244 1.219.321.507.482 1.079.482 1.713 0 .635-.161 1.207-.482 1.714a3.576 3.576 0 0 1-1.244 1.219 3.388 3.388 0 0 1-1.714.444 3.43 3.43 0 0 1-1.714-.444 3.576 3.576 0 0 1-1.244-1.219 3.198 3.198 0 0 1-.47-1.714c0-.634.157-1.206.47-1.713a3.428 3.428 0 0 1 1.244-1.219 3.351 3.351 0 0 1 1.714-.457Zm0 1.561c-.305 0-.588.072-.851.216a1.662 1.662 0 0 0-.635.622c-.152.271-.228.601-.228.99 0 .39.076.72.228.991.161.271.373.478.635.622.263.135.546.203.851.203.304 0 .588-.068.85-.203.263-.144.474-.351.635-.622.161-.271.241-.601.241-.991 0-.389-.08-.719-.241-.99a1.655 1.655 0 0 0-.635-.622 1.738 1.738 0 0 0-.85-.216Zm11.057-4.126V162h-1.612v-1.079a2.645 2.645 0 0 1-.812.901 2.135 2.135 0 0 1-1.245.368c-.516 0-.994-.131-1.434-.393-.432-.262-.779-.643-1.041-1.143-.263-.499-.394-1.104-.394-1.815 0-.711.131-1.32.394-1.828.271-.508.63-.897 1.079-1.168.457-.28.961-.419 1.511-.419.347 0 .698.08 1.053.241.356.161.652.377.889.647v-3.453h1.612Zm-3.224 4.152c-.339 0-.631.089-.876.266-.237.17-.423.394-.559.673a1.965 1.965 0 0 0-.203.889c0 .482.144.893.432 1.231.296.339.685.508 1.168.508.287 0 .554-.076.799-.228.254-.153.458-.364.61-.635.161-.279.241-.614.241-1.003v-.914a2.606 2.606 0 0 0-.749-.571 1.763 1.763 0 0 0-.863-.216Zm8.011-1.587c.626 0 1.163.135 1.612.406.457.271.804.648 1.041 1.13.245.474.368 1.024.368 1.65v.686h-4.646c.084.432.296.779.634 1.041.339.262.754.393 1.244.393.466 0 .889-.093 1.27-.279.381-.186.685-.376.914-.571l-.013 1.498c-.203.178-.507.36-.914.546a3.197 3.197 0 0 1-1.32.266 3.55 3.55 0 0 1-1.739-.431 3.397 3.397 0 0 1-1.244-1.181c-.305-.499-.457-1.071-.457-1.714 0-.626.139-1.197.418-1.714.28-.516.665-.931 1.156-1.244a2.993 2.993 0 0 1 1.676-.482Zm-.039 1.409c-.397 0-.732.123-1.003.368-.27.246-.457.576-.558.99h3.072c-.034-.457-.203-.795-.508-1.015a1.63 1.63 0 0 0-1.003-.343Z"}),p.createElement("rect",{width:88,height:23,x:142.5,y:146.5,stroke:"#FFC46F",rx:3.5}),p.createElement("path",{fill:"#202021",d:"M243 157.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5ZM110 157.25a.75.75 0 0 0 0 1.5v-1.5Zm20.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-20.53.22h20v-1.5h-20v1.5ZM636 125.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5ZM636 188.25a.75.75 0 0 0 0 1.5v-1.5Zm32.53 1.28a.749.749 0 0 0 0-1.06l-4.773-4.773a.749.749 0 1 0-1.06 1.06l4.242 4.243-4.242 4.243a.749.749 0 1 0 1.06 1.06l4.773-4.773Zm-32.53.22h32v-1.5h-32v1.5Z"}),p.createElement("path",{stroke:"#202021",strokeLinecap:"round",strokeWidth:1.5,d:"M439 158h30"}),p.createElement("path",{fill:"#202021",d:"m480.501 132.407-.643-.386.643.386Zm22.984-5.428a.75.75 0 0 0 .089-1.057l-4.361-5.153a.75.75 0 1 0-1.145.969l3.876 4.58-4.58 3.876a.75.75 0 1 0 .969 1.145l5.152-4.36ZM466 158.75c3.095 0 5.328-1.166 6.97-3.066 1.61-1.863 2.622-4.395 3.406-7.092.779-2.68 1.374-5.69 2.059-8.428.696-2.786 1.499-5.353 2.709-7.372l-1.286-.771c-1.332 2.221-2.177 4.972-2.879 7.78-.714 2.856-1.27 5.714-2.043 8.372-.768 2.643-1.709 4.919-3.101 6.53-1.36 1.574-3.18 2.547-5.835 2.547v1.5Zm15.144-25.958c1.006-1.676 2.803-2.906 5.046-3.789 2.235-.881 4.835-1.386 7.331-1.664 2.491-.277 4.849-.323 6.587-.3.868.012 1.579.04 2.071.066.247.013.438.026.567.034l.146.011a.637.637 0 0 1 .036.003h.009l.002.001.062-.748.062-.747h-.001l-.003-.001h-.011l-.042-.004-.157-.011a50.879 50.879 0 0 0-.591-.036 56.858 56.858 0 0 0-2.13-.068 55.836 55.836 0 0 0-6.773.309c-2.566.286-5.31.811-7.715 1.759-2.398.945-4.538 2.34-5.782 4.414l1.286.771Z"}),p.createElement("path",{fill:"#202021",d:"m480.502 183.5-.643.386.643-.386Zm22.984 5.428a.75.75 0 0 1 .088 1.057l-4.36 5.153a.75.75 0 0 1-1.145-.969l3.875-4.58-4.58-3.876a.75.75 0 0 1 .969-1.145l5.153 4.36ZM466 157.25c3.094 0 5.326 1.159 6.969 3.05 1.61 1.854 2.623 4.375 3.407 7.06.779 2.669 1.374 5.668 2.059 8.396.697 2.778 1.499 5.34 2.71 7.358l-1.286.772c-1.332-2.22-2.177-4.966-2.879-7.765-.714-2.847-1.271-5.694-2.044-8.34-.768-2.63-1.708-4.895-3.1-6.497-1.36-1.565-3.18-2.534-5.836-2.534v-1.5Zm15.145 25.864c1.005 1.677 2.803 2.907 5.045 3.79 2.235.881 4.835 1.386 7.332 1.663 2.491.277 4.849.324 6.587.301a53.867 53.867 0 0 0 2.638-.101l.146-.01.036-.003.008-.001h.002l.062.747.062.748h-.004l-.011.001a54.48 54.48 0 0 1-2.919.119c-1.779.023-4.202-.024-6.773-.31-2.566-.285-5.31-.811-7.716-1.758-2.398-.945-4.538-2.34-5.781-4.414l1.286-.772ZM47.633 143.635c.665 0 1.207.091 1.627.273.428.182.802.419 1.12.711v1.354c-.2-.146-.428-.306-.683-.479a3.959 3.959 0 0 0-.875-.451c-.328-.137-.724-.205-1.19-.205-.683 0-1.293.155-1.831.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.272 1.285.538.31 1.148.465 1.832.465.702 0 1.299-.114 1.79-.342a6.756 6.756 0 0 0 1.231-.724v1.23c-.319.283-.738.529-1.258.738-.51.201-1.098.301-1.763.301-.693 0-1.33-.123-1.914-.369a4.952 4.952 0 0 1-1.532-1.039 4.798 4.798 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.355-1.859c0-.656.118-1.272.355-1.846a4.755 4.755 0 0 1 2.557-2.556 4.71 4.71 0 0 1 1.914-.383Zm8.217 2.392a2.6 2.6 0 0 1 1.271.315c.383.2.688.51.916.929.228.411.342.93.342 1.559V153h-1.121l-.014-4.061c0-.592-.132-1.043-.396-1.353-.256-.31-.652-.465-1.19-.465-.364 0-.729.137-1.093.41a4.8 4.8 0 0 0-.944.93V153H52.5v-9.844h1.121v4.088c.146-.182.333-.364.56-.547.229-.191.484-.351.766-.478.292-.128.593-.192.903-.192Zm7.465 0c.391 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.12V153h-1.12v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.326 3.326 0 0 1-1.163-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.14-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.681-.452Zm.205 1.094c-.493 0-.912.123-1.258.369a2.497 2.497 0 0 0-.807.957 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.42 0 .793-.109 1.12-.328.329-.219.589-.519.78-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.525 3.525 0 0 0-.916-.834 2.033 2.033 0 0 0-1.107-.301Zm6.603-.957v1.08c.146-.182.333-.364.56-.547.228-.191.484-.351.766-.478.292-.128.593-.192.903-.192a2.6 2.6 0 0 1 1.271.315c.383.2.688.51.916.929.228.411.342.93.342 1.559V153H73.76l-.014-4.061c0-.592-.132-1.043-.396-1.353-.256-.31-.652-.465-1.19-.465-.364 0-.729.137-1.094.41-.355.265-.67.574-.943.93V153h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.287.41.183.76.438 1.053.766v-.916h1.12v6.699c0 .811-.163 1.486-.492 2.024a3.092 3.092 0 0 1-1.312 1.203 4.065 4.065 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.73 2.73 0 0 1-.752-.356c-.21-.136-.401-.268-.574-.396v-1.203c.136.1.314.228.533.383.228.164.497.31.807.437a2.84 2.84 0 0 0 1.066.192c.447 0 .857-.082 1.23-.247.374-.164.675-.405.903-.724.228-.319.342-.702.342-1.149v-1.435c-.237.364-.561.683-.971.957-.401.273-.861.41-1.381.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.14-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.681-.452Zm.206 1.108c-.493 0-.912.123-1.258.369a2.39 2.39 0 0 0-.807.943 2.858 2.858 0 0 0-.273 1.244c0 .438.09.839.273 1.204.182.364.438.656.766.875.337.218.724.328 1.162.328.419 0 .793-.11 1.12-.328a2.29 2.29 0 0 0 .78-.903c.192-.383.283-.816.274-1.299l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.033 2.033 0 0 0-1.108-.301Zm8.298-1.108c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.236.502.355 1.067.355 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.163.273.492 0 .952-.123 1.38-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.583 3.583 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.312a3.045 3.045 0 0 1 1.71-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.382-1.093a1.873 1.873 0 0 0-.739-.629 2.02 2.02 0 0 0-.916-.219Zm7.028-1.094c.4 0 .774.06 1.12.178.347.109.598.223.753.342v1.203a3.562 3.562 0 0 0-.78-.424 2.602 2.602 0 0 0-1.011-.205c-.429 0-.752.1-.971.301-.21.2-.315.41-.315.629 0 .173.06.351.178.533.128.173.347.314.656.424l1.149.41c.447.155.78.378.998.67.219.292.328.633.328 1.025 0 .383-.11.734-.328 1.053a2.23 2.23 0 0 1-.889.766c-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.109a5.115 5.115 0 0 1-.765-.233 3.618 3.618 0 0 1-.506-.259V151.4c.128.092.305.196.533.315.237.109.488.205.752.287.264.073.51.109.739.109.428 0 .765-.095 1.011-.287.255-.191.383-.428.383-.711a.61.61 0 0 0-.26-.519c-.164-.128-.405-.251-.724-.369l-1.012-.37c-.529-.2-.88-.451-1.053-.751a2.122 2.122 0 0 1-.26-1.053c0-.584.22-1.067.657-1.449.437-.383 1.02-.575 1.75-.575Zm-49.26 17.129V173h-1.121v-1.162c-.237.364-.56.683-.97.957-.402.273-.862.41-1.382.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.76.438 1.052.766v-3.924h1.12Zm-3.158 3.992c-.492 0-.912.123-1.258.37a2.412 2.412 0 0 0-.807.929 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902a2.83 2.83 0 0 0 .273-1.313l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.105 2.105 0 0 0-1.107-.288Zm8.298-1.121c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.21.319.483.574.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.38-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.583 3.583 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.14-1.244.423-1.791.283-.547.67-.984 1.163-1.312a3.045 3.045 0 0 1 1.708-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.873 1.873 0 0 0-.739-.629 2.02 2.02 0 0 0-.916-.219Zm6.877-2.926v1.969h1.997v1.053h-1.996v4.006c0 .282.072.506.218.67.146.164.37.246.67.246.274 0 .501-.032.684-.096.182-.073.342-.15.478-.232v.916a2.268 2.268 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.447-.201.82-.529 1.121-.985.3-.465.565-1.034.793-1.709h.52Zm6.85 1.832c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.04 1.189c.236.502.355 1.067.355 1.696v.67h-5.25c.054.382.186.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.187 5.187 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.574.492 3.582 3.582 0 0 1-.862.41 2.87 2.87 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.656 3.656 0 0 1-.45-1.791c0-.647.14-1.244.423-1.791.282-.547.67-.984 1.162-1.312a3.045 3.045 0 0 1 1.71-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.045-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.02 2.02 0 0 0-.916-.219Zm8.08-1.094c.502 0 .934.082 1.299.246.365.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219a2.28 2.28 0 0 0-1.271.356 2.336 2.336 0 0 0-.848.916 2.654 2.654 0 0 0-.287 1.23c0 .438.096.848.287 1.231.2.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.365.155-.797.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm5.783-1.832v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.22.67.145.164.368.246.669.246.274 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.269 2.269 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.12-.985.302-.465.566-1.034.794-1.709h.52Zm6.85 1.832c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.186.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.184 5.184 0 0 0 1.08-.834l-.013 1.217a2.73 2.73 0 0 1-.575.492 3.584 3.584 0 0 1-.86.41 2.87 2.87 0 0 1-1.013.178c-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.656 3.656 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.02 2.02 0 0 0-.916-.219Zm11.17-3.965V173h-1.121v-1.162c-.237.364-.56.683-.97.957-.402.273-.862.41-1.382.41a3.042 3.042 0 0 1-1.6-.437 3.327 3.327 0 0 1-1.162-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.102 3.102 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.76.438 1.052.766v-3.924h1.12Zm-3.158 3.992c-.493 0-.912.123-1.258.37a2.412 2.412 0 0 0-.807.929 2.858 2.858 0 0 0-.273 1.244c0 .438.09.844.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902a2.83 2.83 0 0 0 .273-1.313l-.014-1.312a3.307 3.307 0 0 0-.916-.82 2.105 2.105 0 0 0-1.107-.288Z"}),p.createElement("circle",{cx:455,cy:158,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),p.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M455 157v-50"}),p.createElement("path",{fill:"#615BC2",d:"M371.349 64.813v5.564c0 .793-.169 1.477-.506 2.05a3.34 3.34 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.353-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.564h1.23v5.523c0 .62.114 1.121.342 1.504.237.383.547.66.93.834.392.164.815.246 1.271.246.456-.01.875-.096 1.258-.26.392-.173.702-.447.93-.82.237-.383.355-.884.355-1.504v-5.523h1.231Zm4.566 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.61 2.61 0 0 0-1.012-.205c-.428 0-.752.1-.971.3-.209.201-.314.411-.314.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.217 2.217 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V72.4c.128.091.306.196.534.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .765-.096 1.012-.288.255-.191.382-.428.382-.71a.611.611 0 0 0-.259-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.174-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm6.631 0c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367a3.53 3.53 0 0 1 .957-1.094c.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm17.322 0L403.587 74h-.697l-1.873-4.826L399.144 74h-.698l-2.392-6.836h1.34l1.517 4.799 1.791-4.799h.629l1.791 4.799 1.518-4.799h1.339Zm2.461-3.281c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V74h-1.121v-5.783h-1.08v-1.053h2.201Zm4.306-1.969v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246a2.1 2.1 0 0 0 .684-.096c.182-.073.341-.15.478-.233v.917c-.182.145-.378.26-.588.341-.2.091-.474.137-.82.137-.583 0-1.025-.173-1.326-.52-.292-.355-.438-.824-.438-1.408v-4.06h-1.312v-.328c.446-.2.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.383 1.832c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V74h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192Zm12.223 0a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm6.33-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.887-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.025-1.094c.702 0 1.285.146 1.75.438.465.291.812.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.382-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.094.373-.273.756-.41 1.148-.41.264 0 .501.046.711.137v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V74h-1.121v-6.836h1.121Zm11.826-.137a2.99 2.99 0 0 1 1.599.438c.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V67.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.025-1.094c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.19c.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.484.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.029.192-1.394.574-.365.374-.593.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.756-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V74h-1.121v-6.836h1.121Zm5.373 0v.875c.219-.246.497-.474.834-.683.346-.22.752-.329 1.217-.329.492 0 .952.119 1.38.356.429.228.757.574.985 1.039a5.844 5.844 0 0 1 1.039-.984c.374-.274.811-.41 1.312-.41.465 0 .898.104 1.299.314.41.2.739.51.985.93.255.41.382.93.382 1.558V74h-1.121l-.013-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.392 0-.734.123-1.025.37-.292.245-.57.532-.834.86V74h-1.121l-.014-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.373 0-.715.11-1.025.328a4.535 4.535 0 0 0-.834.793V74h-1.121v-6.836h1.121Zm12.646-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.121v-5.783h-1.081v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.656.424l1.149.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.264.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm5.851 0c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.999.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V72.4c.127.091.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm4.908-3.144c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.121v-5.783h-1.081v-1.053h2.202Zm5.509-.137c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094a2.28 2.28 0 0 0-1.271.356 2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.365.228.788.342 1.271.342.493 0 .916-.114 1.272-.342.364-.236.642-.542.834-.916.2-.382.301-.792.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V74h-1.121l-.013-4.06c0-.593-.133-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.575-.943.93V74h-1.122v-6.836h1.122ZM384.877 87.027c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V94h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.035 3.035 0 0 1-1.599-.437 3.32 3.32 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.106 3.106 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.912.123-1.258.37a2.506 2.506 0 0 0-.807.956 2.86 2.86 0 0 0-.273 1.244c0 .438.091.843.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.535 3.535 0 0 0-.916-.834c-.319-.2-.688-.3-1.107-.3Zm6.603-.957v1.08c.146-.182.333-.364.561-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192a2.6 2.6 0 0 1 1.271.315c.383.2.689.51.916.93.228.41.342.93.342 1.558V94h-1.121l-.014-4.06c0-.593-.132-1.044-.396-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.575-.944.93V94h-1.121v-6.836h1.121Zm14.848-2.324 4.279 9.16h-1.476l-.957-2.188h-4.293L409.828 94h-1.476l4.279-9.16h.615Zm-.287 2.078-1.654 3.732h3.281l-1.627-3.732Zm9.338.11c.592 0 1.126.145 1.599.437.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.089 3.089 0 0 1-1.681.464c-.392 0-.793-.105-1.204-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V87.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.093c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm8.682-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V87.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.315-.328.21-.588.5-.779.874-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984c.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.847c-.328-.21-.715-.315-1.162-.315Zm6.33-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.149-.41.264 0 .501.046.711.137v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V94h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm11.17-.957L452.252 94h-.697l-3.076-6.836h1.339l2.065 5.031 2.242-5.03h1.34Zm4.047-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm12.181-1.094c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094c-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.493 0 .916-.114 1.272-.342.364-.236.642-.542.834-.916.2-.382.301-.792.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.367c.264-.456.583-.82.957-1.094.373-.273.756-.41 1.148-.41.264 0 .501.046.711.137v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V94h-1.122v-6.836h1.122Zm12.701-2.53c.665 0 1.207.092 1.627.274.428.183.802.42 1.121.711v1.354a26.966 26.966 0 0 0-.684-.479 3.94 3.94 0 0 0-.875-.451c-.328-.137-.724-.205-1.189-.205-.684 0-1.295.155-1.832.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .683.155 1.294.465 1.832.31.538.734.966 1.272 1.285.537.31 1.148.465 1.832.465.702 0 1.299-.114 1.791-.342a6.754 6.754 0 0 0 1.23-.724v1.23c-.319.283-.738.529-1.258.738-.51.2-1.098.301-1.763.301a4.872 4.872 0 0 1-1.914-.37 4.95 4.95 0 0 1-1.532-1.038 4.805 4.805 0 0 1-1.025-1.518 4.892 4.892 0 0 1-.355-1.86c0-.655.118-1.27.355-1.845a4.76 4.76 0 0 1 2.557-2.557 4.72 4.72 0 0 1 1.914-.382Zm7.683 2.393c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.122V94h-1.122v-1.162c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.094c-.492 0-.911.123-1.257.37a2.489 2.489 0 0 0-.807.956 2.86 2.86 0 0 0-.274 1.244c0 .438.092.843.274 1.217.182.365.437.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834c-.319-.2-.688-.3-1.108-.3Zm6.604-.957v1.08c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V94h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-6.836h1.121Zm9.967-.137c.501 0 .934.082 1.299.246.364.155.615.297.751.424v1.135a4.018 4.018 0 0 0-.875-.492c-.328-.146-.72-.219-1.175-.219-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.288 1.23c0 .438.096.848.288 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.455 0 .847-.068 1.175-.205a4.46 4.46 0 0 0 .875-.506v1.135c-.136.137-.387.283-.751.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.151-1.244.451-1.791.31-.547.734-.984 1.272-1.313.538-.328 1.153-.492 1.846-.492Zm6.713 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-3.965V94h-1.121v-9.844h1.121Z"}),p.createElement("circle",{cx:652,cy:126,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),p.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M652 126V76"}),p.createElement("path",{fill:"#615BC2",d:"M568.349 33.813v5.564c0 .793-.169 1.476-.506 2.05a3.34 3.34 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.353-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.565h1.23v5.524c0 .62.114 1.121.342 1.504.237.383.547.66.93.834.392.164.815.246 1.271.246.456-.01.875-.096 1.258-.26.392-.173.702-.446.93-.82.237-.383.355-.884.355-1.504v-5.523h1.231Zm4.566 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.61 2.61 0 0 0-1.012-.205c-.428 0-.752.1-.971.3-.209.201-.314.411-.314.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.217 2.217 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V41.4c.128.092.306.196.534.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .765-.096 1.012-.288.255-.191.382-.428.382-.71a.611.611 0 0 0-.259-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.753-.174-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm6.631 0c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.81-.383-1.093a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367a3.53 3.53 0 0 1 .957-1.093c.374-.274.757-.41 1.149-.41.264 0 .501.045.711.136v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.283.328-.552.72-.807 1.176V43h-1.121v-6.836h1.121Zm17.322 0L600.587 43h-.697l-1.873-4.826L596.144 43h-.698l-2.392-6.836h1.34l1.517 4.799 1.791-4.799h.629l1.791 4.799 1.518-4.799h1.339Zm2.461-3.281c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V43h-1.121v-5.783h-1.08v-1.053h2.201Zm4.306-1.969v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246a2.1 2.1 0 0 0 .684-.096c.182-.073.341-.15.478-.233v.917c-.182.145-.378.26-.588.341-.2.092-.474.137-.82.137-.583 0-1.025-.173-1.326-.52-.292-.355-.438-.824-.438-1.408v-4.06h-1.312v-.328c.446-.2.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.383 1.832c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V43h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V43h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192Zm12.223 0a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm6.33-.957v1.367c.264-.456.583-.82.957-1.093.374-.274.757-.41 1.149-.41.264 0 .501.045.711.136v1.299a1.704 1.704 0 0 0-.875-.26c-.465 0-.844.164-1.135.492-.283.328-.552.72-.807 1.176V43h-1.121v-6.836h1.121Zm7.342-.137c.693 0 1.308.164 1.846.492.537.329.957.766 1.257 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.3.538-.72.97-1.257 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.733-.984 1.271-1.313.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.272.356a2.342 2.342 0 0 0-.847.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.847.916.365.228.789.342 1.272.342.492 0 .916-.114 1.271-.341.365-.237.643-.543.834-.917.201-.382.301-.793.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.887-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.025-1.094c.702 0 1.285.146 1.75.438.465.291.812.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.81-.382-1.093a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.093.373-.274.756-.41 1.148-.41.264 0 .501.045.711.136v1.299a1.701 1.701 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V43h-1.121v-6.836h1.121Zm11.826-.137a2.99 2.99 0 0 1 1.599.438c.484.282.866.683 1.149 1.203.292.51.437 1.112.437 1.805 0 .747-.145 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.391 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V36.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.493 0 .912-.127 1.258-.383.347-.255.611-.583.793-.984.192-.41.287-.834.287-1.271a2.52 2.52 0 0 0-.273-1.19 2.15 2.15 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.025-1.094c.702 0 1.286.146 1.75.438a2.69 2.69 0 0 1 1.04 1.19c.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.396 1.052.21.32.484.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.029.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.81-.383-1.093a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm6.112-.957v1.367c.264-.456.583-.82.957-1.093.374-.274.756-.41 1.148-.41.265 0 .502.045.711.136v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V43h-1.121v-6.836h1.121Zm5.373 0v.875c.219-.246.497-.474.834-.684.346-.218.752-.328 1.217-.328.492 0 .952.119 1.38.356.429.228.757.574.985 1.039a5.844 5.844 0 0 1 1.039-.984c.374-.274.811-.41 1.312-.41.465 0 .898.104 1.299.314.41.2.739.51.985.93.255.41.382.93.382 1.558V43h-1.121l-.013-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.392 0-.734.123-1.025.37-.292.245-.57.532-.834.86V43h-1.121l-.014-4.06c0-.593-.155-1.044-.465-1.354-.301-.31-.72-.465-1.258-.465-.373 0-.715.11-1.025.328a4.535 4.535 0 0 0-.834.793V43h-1.121v-6.836h1.121Zm12.646-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V43h-1.121v-5.783h-1.081v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.656.424l1.149.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V41.4c.128.092.305.196.533.315.237.11.488.205.752.287.264.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm5.851 0c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.999.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V41.4c.127.092.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm4.908-3.144c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V43h-1.121v-5.783h-1.081v-1.053h2.202Zm5.509-.137c.693 0 1.308.164 1.846.492.538.329.957.766 1.258 1.313a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.97-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm0 1.094a2.28 2.28 0 0 0-1.271.356 2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.365.228.788.342 1.271.342.493 0 .916-.114 1.272-.341.364-.237.642-.543.834-.917.2-.382.301-.793.301-1.23 0-.447-.101-.857-.301-1.23a2.253 2.253 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm6.536-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V43h-1.121l-.013-4.06c0-.593-.133-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.575-.943.93V43h-1.122v-6.836h1.122ZM595.2 56.027c.501 0 .934.082 1.299.246.365.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm6.713 0c.392 0 .788.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121V63h-1.121v-1.162c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.847 2.847 0 0 0-.274 1.244c0 .438.091.843.274 1.217.182.365.437.657.765.875a2.09 2.09 0 0 0 1.162.328c.42 0 .793-.109 1.122-.328.328-.218.587-.52.779-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834 2.04 2.04 0 0 0-1.108-.3Zm6.604-.957v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V63h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-6.836h1.121Zm13.795-.137c.392 0 .788.096 1.189.288.41.182.761.437 1.053.765v-.916h1.121V63h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.035 3.035 0 0 1-1.599-.437 3.32 3.32 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.106 3.106 0 0 1 1.189-1.258 3.205 3.205 0 0 1 1.682-.45Zm.205 1.094c-.493 0-.912.123-1.258.37a2.506 2.506 0 0 0-.807.956 2.86 2.86 0 0 0-.273 1.244c0 .438.091.843.273 1.217.183.365.438.657.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.218.588-.52.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.535 3.535 0 0 0-.916-.834c-.319-.2-.688-.3-1.107-.3Zm8.955-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V56.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.292.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm8.682-1.094a2.99 2.99 0 0 1 1.599.438 3.05 3.05 0 0 1 1.149 1.203c.291.51.437 1.112.437 1.805 0 .747-.146 1.403-.437 1.968a3.192 3.192 0 0 1-1.176 1.3 3.09 3.09 0 0 1-1.682.464c-.392 0-.793-.105-1.203-.314a3.624 3.624 0 0 1-1.039-.807v4.197h-1.121V56.164h1.121v1.162c.237-.364.556-.67.957-.916.41-.255.875-.383 1.395-.383Zm-.178 1.094c-.41 0-.784.105-1.121.314-.328.21-.588.502-.779.875-.183.365-.274.793-.274 1.286l.014 1.312c.291.356.597.647.916.875a1.91 1.91 0 0 0 1.107.328c.492 0 .912-.127 1.258-.383a2.47 2.47 0 0 0 .793-.984 2.98 2.98 0 0 0 .287-1.271 2.52 2.52 0 0 0-.273-1.19 2.157 2.157 0 0 0-.766-.848c-.328-.21-.715-.314-1.162-.314Zm6.33-3.965V63h-1.121v-9.844h1.121Zm2.707 3.008 2.393 5.031 2.324-5.03h1.34l-5.032 10.116h-1.298l1.955-3.691-3.022-6.426h1.34Zm14.615-.137c.502 0 .935.082 1.299.246.365.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.344 2.344 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.201.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.364.155-.797.232-1.299.232-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.272-1.313.537-.328 1.153-.492 1.845-.492Zm7.246 0c.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V63h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-9.844h1.121v4.088c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192Zm7.465 0c.392 0 .789.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121V63h-1.121v-1.162c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.86 2.86 0 0 0-.274 1.244c0 .438.092.843.274 1.217.182.365.437.657.765.875.338.219.725.328 1.163.328.419 0 .793-.109 1.121-.328.328-.218.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834c-.319-.2-.688-.3-1.108-.3Zm6.604-.957v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V63h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V63h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.288.41.182.761.437 1.052.765v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.087 3.087 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.726 2.726 0 0 1-.752-.355c-.21-.137-.401-.27-.575-.397v-1.203c.137.1.315.228.534.383.228.164.496.31.806.437.319.128.675.192 1.067.192.446 0 .857-.082 1.23-.246.374-.165.675-.406.903-.725.227-.32.341-.702.341-1.149v-1.435c-.237.364-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.876.338.218.725.328 1.163.328.419 0 .792-.11 1.121-.328.328-.22.588-.52.779-.903.191-.383.282-.816.273-1.299l-.013-1.312a3.334 3.334 0 0 0-.916-.82c-.319-.201-.688-.301-1.108-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.186.733.396 1.052.21.32.483.575.82.766a2.41 2.41 0 0 0 1.163.273c.492 0 .952-.123 1.38-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.752 2.752 0 0 1-.574.492c-.247.164-.534.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.81-.383-1.093a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm7.027-1.094c.401 0 .775.06 1.122.178.346.11.597.223.751.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.06.35.178.533.128.173.346.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V61.4c.127.092.305.196.533.315.237.11.488.205.752.287.264.073.51.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.011-.368c-.529-.201-.88-.452-1.053-.753-.173-.31-.26-.66-.26-1.052 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574ZM554.439 234.84l4.28 9.16h-1.477l-.957-2.188h-4.293l-.971 2.188h-1.476l4.279-9.16h.615Zm-.287 2.078-1.654 3.732h3.281l-1.627-3.732Zm11.457.246v4.047c0 .601-.127 1.121-.382 1.559a2.65 2.65 0 0 1-1.039 1.011c-.438.237-.93.356-1.477.356a3.052 3.052 0 0 1-1.477-.356 2.65 2.65 0 0 1-1.039-1.011c-.255-.438-.383-.958-.383-1.559v-4.047h1.163v4.047c0 .592.173 1.048.519 1.367a1.8 1.8 0 0 0 1.217.465c.456 0 .857-.155 1.203-.465.356-.319.533-.775.533-1.367v-4.047h1.162Zm4.006-1.969v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.146.164.369.246.67.246.273 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.26 2.26 0 0 1-.588.341c-.2.092-.474.137-.82.137-.584 0-1.026-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.123 1.832c.693 0 1.308.164 1.846.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.492 0 .916-.114 1.272-.341a2.38 2.38 0 0 0 .834-.916c.2-.383.301-.793.301-1.231 0-.447-.101-.857-.301-1.23a2.246 2.246 0 0 0-.834-.916c-.356-.237-.78-.356-1.272-.356Zm6.535-.957v.875c.219-.246.497-.474.834-.684.347-.218.752-.328 1.217-.328.492 0 .953.119 1.381.356.428.228.757.574.984 1.039a5.825 5.825 0 0 1 1.04-.984 2.157 2.157 0 0 1 1.312-.411c.465 0 .898.105 1.299.315.41.2.738.51.984.929.255.411.383.93.383 1.559V244h-1.121l-.014-4.061c0-.592-.155-1.043-.465-1.353-.3-.31-.72-.465-1.257-.465-.392 0-.734.123-1.026.369a6.287 6.287 0 0 0-.834.862V244h-1.121l-.014-4.061c0-.592-.154-1.043-.464-1.353-.301-.31-.72-.465-1.258-.465-.374 0-.716.109-1.026.328-.3.219-.578.483-.834.793V244h-1.121v-6.836h1.121Zm14.37-.137c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.04 3.04 0 0 1-1.599-.437 3.332 3.332 0 0 1-1.163-1.245c-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.107 3.107 0 0 1 1.19-1.257 3.204 3.204 0 0 1 1.682-.452Zm.205 1.094c-.493 0-.912.123-1.258.369a2.497 2.497 0 0 0-.807.957 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.517 3.517 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm7.369-2.926v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.145.164.369.246.669.246.274 0 .502-.032.684-.096.182-.073.342-.15.479-.232v.916a2.293 2.293 0 0 1-.588.341c-.201.092-.474.137-.821.137-.583 0-1.025-.173-1.326-.519-.291-.356-.437-.825-.437-1.409v-4.06h-1.313v-.328c.447-.201.821-.529 1.121-.985.301-.465.565-1.034.793-1.709h.52Zm5.127-1.312c.264 0 .483.096.656.287a.879.879 0 0 1 .273.642.91.91 0 0 1-.273.643.848.848 0 0 1-.656.287.89.89 0 0 1-.67-.287.936.936 0 0 1-.26-.643c0-.246.087-.46.26-.642a.89.89 0 0 1 .67-.287Zm.697 3.281V244h-1.121v-5.783h-1.08v-1.053h2.201Zm5.51-.137c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.091 4.091 0 0 0-.875-.492c-.329-.146-.72-.219-1.176-.219-.483 0-.907.119-1.272.356a2.335 2.335 0 0 0-.847.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.847.916.365.227.789.341 1.272.341.456 0 .847-.068 1.176-.205a4.5 4.5 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.603 3.603 0 0 1-1.271-1.299 3.655 3.655 0 0 1-.452-1.791c0-.647.151-1.244.452-1.791a3.57 3.57 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.04 3.04 0 0 1-1.599-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.204 3.204 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.912.123-1.258.369a2.505 2.505 0 0 0-.807.957 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.183.365.438.656.766.875.337.219.725.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.517 3.517 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.603-3.965V244h-1.121v-9.844h1.121Zm3.446 0V244h-1.122v-9.844h1.122Zm2.707 3.008 2.392 5.031 2.324-5.031h1.34l-5.031 10.117h-1.299l1.955-3.691-3.021-6.426h1.34Zm14.341-.137c.392 0 .789.096 1.19.287.41.183.761.438 1.053.766v-.916h1.121v6.699c0 .811-.164 1.486-.492 2.024a3.098 3.098 0 0 1-1.313 1.203 4.066 4.066 0 0 1-1.791.396c-.419 0-.779-.05-1.08-.15a2.731 2.731 0 0 1-.752-.356c-.21-.136-.401-.268-.574-.396v-1.203c.136.1.314.228.533.383.228.164.497.31.807.437.319.128.674.192 1.066.192.447 0 .857-.082 1.23-.247.374-.164.675-.405.903-.724.228-.319.342-.702.342-1.149v-1.435a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.203 3.203 0 0 1 1.681-.452Zm.205 1.108c-.492 0-.911.123-1.257.369a2.382 2.382 0 0 0-.807.943 2.862 2.862 0 0 0-.273 1.244c0 .438.091.839.273 1.204.182.364.438.656.766.875.337.218.724.328 1.162.328.419 0 .793-.11 1.121-.328.328-.219.588-.52.779-.903.192-.383.283-.816.274-1.299l-.014-1.312a3.316 3.316 0 0 0-.916-.82 2.033 2.033 0 0 0-1.108-.301Zm8.573-1.108c.692 0 1.308.164 1.845.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.537.328-1.153.492-1.845.492-.693 0-1.308-.164-1.846-.492a3.603 3.603 0 0 1-1.271-1.299 3.655 3.655 0 0 1-.452-1.791c0-.647.151-1.244.452-1.791a3.57 3.57 0 0 1 1.271-1.312c.538-.329 1.153-.493 1.846-.493Zm0 1.094c-.483 0-.907.119-1.272.356a2.335 2.335 0 0 0-.847.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.847.916.365.227.789.341 1.272.341.492 0 .916-.114 1.271-.341.365-.237.643-.543.834-.916.201-.383.301-.793.301-1.231 0-.447-.1-.857-.301-1.23a2.233 2.233 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm8.23-1.094c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.821.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.743 2.743 0 0 1-.574.492 3.57 3.57 0 0 1-.862.41 2.868 2.868 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791a3.45 3.45 0 0 1 1.162-1.312 3.046 3.046 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.382-1.093a1.876 1.876 0 0 0-.739-.629 2.019 2.019 0 0 0-.916-.219Zm7.028-1.094c.401 0 .774.06 1.121.178.346.109.597.223.752.342v1.203a3.586 3.586 0 0 0-.78-.424 2.599 2.599 0 0 0-1.011-.205c-.429 0-.752.1-.971.301-.21.2-.315.41-.315.629 0 .173.06.351.178.533.128.173.347.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.109a5.128 5.128 0 0 1-.765-.233 3.592 3.592 0 0 1-.506-.259V242.4c.128.092.305.196.533.315.237.109.488.205.752.287.264.073.511.109.738.109.429 0 .766-.095 1.012-.287.255-.191.383-.428.383-.711a.611.611 0 0 0-.26-.519c-.164-.128-.405-.251-.724-.369l-1.012-.37c-.529-.2-.88-.451-1.053-.751a2.124 2.124 0 0 1-.26-1.053c0-.584.219-1.067.657-1.449.437-.383 1.02-.575 1.75-.575Zm9.802-1.832v1.969h1.996v1.053h-1.996v4.006c0 .282.073.506.219.67.146.164.369.246.67.246.273 0 .501-.032.684-.096.182-.073.341-.15.478-.232v.916a2.26 2.26 0 0 1-.588.341c-.2.092-.474.137-.82.137-.583 0-1.026-.173-1.326-.519-.292-.356-.438-.825-.438-1.409v-4.06h-1.312v-.328c.446-.201.82-.529 1.121-.985.301-.465.565-1.034.793-1.709h.519Zm7.123 1.832c.693 0 1.308.164 1.846.493.538.328.957.765 1.258 1.312a3.57 3.57 0 0 1 .465 1.791 3.57 3.57 0 0 1-.465 1.791c-.301.538-.72.971-1.258 1.299-.538.328-1.153.492-1.846.492-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.493 0 .916-.114 1.272-.341a2.38 2.38 0 0 0 .834-.916c.2-.383.301-.793.301-1.231 0-.447-.101-.857-.301-1.23a2.246 2.246 0 0 0-.834-.916c-.356-.237-.779-.356-1.272-.356Zm13.864-3.486c.665 0 1.207.091 1.627.273a3.91 3.91 0 0 1 1.121.711v1.354a26.162 26.162 0 0 0-.684-.479 3.961 3.961 0 0 0-.875-.451c-.328-.137-.725-.205-1.189-.205-.684 0-1.295.155-1.832.465-.538.31-.962.738-1.272 1.285-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.272 1.285.537.31 1.148.465 1.832.465.701 0 1.298-.114 1.791-.342a6.76 6.76 0 0 0 1.23-.724v1.23c-.319.283-.738.529-1.258.738-.51.201-1.098.301-1.763.301a4.874 4.874 0 0 1-1.914-.369 4.954 4.954 0 0 1-1.532-1.039 4.804 4.804 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.356-1.859c0-.656.119-1.272.356-1.846a4.749 4.749 0 0 1 2.557-2.556 4.708 4.708 0 0 1 1.914-.383Zm7.683 2.392c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.122V244h-1.122v-1.162c-.237.364-.56.683-.97.957-.401.273-.862.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.2 3.2 0 0 1 1.681-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.863 2.863 0 0 0-.274 1.244c0 .438.092.844.274 1.217.182.365.437.656.765.875a2.09 2.09 0 0 0 1.163.328c.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.191-.392.283-.83.273-1.313l-.013-1.312a3.533 3.533 0 0 0-.916-.834 2.033 2.033 0 0 0-1.108-.301Zm6.604-.957v1.08a3.61 3.61 0 0 1 .56-.547c.228-.191.483-.351.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.929.228.411.342.93.342 1.559V244h-1.121l-.014-4.061c0-.592-.132-1.043-.397-1.353-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41-.355.265-.67.574-.943.93V244h-1.121v-6.836h1.121Zm9.967-.137c.501 0 .934.082 1.298.246.365.155.616.297.752.424v1.135a4.043 4.043 0 0 0-.875-.492c-.328-.146-.72-.219-1.175-.219-.483 0-.907.119-1.272.356a2.345 2.345 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.484.679.848.916.365.227.789.341 1.272.341.455 0 .847-.068 1.175-.205a4.44 4.44 0 0 0 .875-.506v1.135c-.136.137-.387.283-.752.438-.364.155-.797.232-1.298.232-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.151-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.538-.329 1.153-.493 1.846-.493Zm6.712 0c.702 0 1.286.146 1.75.438.465.292.812.688 1.04 1.189.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.874 2.874 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.611 3.611 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.312a3.04 3.04 0 0 1 1.708-.493Zm0 1.094c-.565 0-1.029.191-1.394.574-.365.374-.592.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.88 1.88 0 0 0-.738-.629 2.023 2.023 0 0 0-.917-.219Zm6.112-3.965V244h-1.121v-9.844h1.121Zm3.445 0V244h-1.121v-9.844h1.121Zm5.141 2.871c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.693 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.022 2.022 0 0 0-.916-.219Zm11.17-3.965V244h-1.121v-1.162a3.37 3.37 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.044 3.044 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.1 3.1 0 0 1 1.19-1.257 3.203 3.203 0 0 1 1.681-.452c.392 0 .789.096 1.19.287.41.183.761.438 1.053.766v-3.924h1.121Zm-3.159 3.992c-.492 0-.911.123-1.257.37a2.404 2.404 0 0 0-.807.929 2.862 2.862 0 0 0-.273 1.244c0 .438.091.844.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.519.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.316 3.316 0 0 0-.916-.82 2.106 2.106 0 0 0-1.108-.288Z"}),p.createElement("path",{fill:"#D11525",d:"M513.779 184.635c.666 0 1.208.091 1.627.273.429.182.802.419 1.121.711v1.354c-.2-.146-.428-.306-.683-.479a3.961 3.961 0 0 0-.875-.451c-.328-.137-.725-.205-1.19-.205-.683 0-1.294.155-1.832.465a3.38 3.38 0 0 0-1.271 1.285c-.31.538-.465 1.148-.465 1.832 0 .684.155 1.294.465 1.832.31.538.734.966 1.271 1.285.538.31 1.149.465 1.832.465.702 0 1.299-.114 1.791-.342a6.738 6.738 0 0 0 1.231-.724v1.23c-.319.283-.739.529-1.258.738-.51.201-1.098.301-1.764.301a4.88 4.88 0 0 1-1.914-.369 4.95 4.95 0 0 1-1.531-1.039 4.787 4.787 0 0 1-1.025-1.518 4.89 4.89 0 0 1-.356-1.859c0-.656.119-1.272.356-1.846a4.745 4.745 0 0 1 2.556-2.556 4.714 4.714 0 0 1 1.914-.383Zm8.217 2.392c.465 0 .889.105 1.272.315.382.2.688.51.916.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41-.356.265-.67.574-.943.93V194h-1.122v-9.844h1.122v4.088c.145-.182.332-.364.56-.547.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192Zm7.465 0c.392 0 .788.096 1.189.287.411.183.761.438 1.053.766v-.916h1.121V194h-1.121v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.105 3.105 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.329-.219.588-.519.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.501 3.501 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.604-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192c.465 0 .889.105 1.272.315.382.2.688.51.916.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.574-.943.93V194h-1.122v-6.836h1.122Zm9.693-.137c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121v6.699c0 .811-.164 1.486-.492 2.024a3.092 3.092 0 0 1-1.313 1.203 4.06 4.06 0 0 1-1.791.396c-.419 0-.779-.05-1.08-.15a2.745 2.745 0 0 1-.752-.356 11.684 11.684 0 0 1-.574-.396v-1.203c.137.1.315.228.533.383.228.164.497.31.807.437.319.128.675.192 1.066.192.447 0 .857-.082 1.231-.247a2.14 2.14 0 0 0 .902-.724c.228-.319.342-.702.342-1.149v-1.435c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.108c-.492 0-.911.123-1.258.369a2.388 2.388 0 0 0-.806.943 2.849 2.849 0 0 0-.274 1.244c0 .438.091.839.274 1.204.182.364.437.656.765.875.337.218.725.328 1.162.328.42 0 .793-.11 1.121-.328.328-.219.588-.52.78-.903.191-.383.282-.816.273-1.299l-.014-1.312a3.288 3.288 0 0 0-.916-.82 2.032 2.032 0 0 0-1.107-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.397 1.052.209.319.483.574.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.179 5.179 0 0 0 1.08-.834l-.013 1.217c-.128.155-.32.319-.575.492a3.58 3.58 0 0 1-.861.41 2.87 2.87 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.312a3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.395.574-.364.374-.592.83-.683 1.367h4.115c-.046-.446-.173-.811-.383-1.093a1.873 1.873 0 0 0-.738-.629 2.022 2.022 0 0 0-.916-.219Zm7.027-1.094c.401 0 .775.06 1.121.178.347.109.597.223.752.342v1.203a3.552 3.552 0 0 0-.779-.424 2.6 2.6 0 0 0-1.012-.205c-.428 0-.752.1-.971.301-.209.2-.314.41-.314.629 0 .173.059.351.178.533.127.173.346.314.656.424l1.148.41c.447.155.78.378.998.67.219.292.329.633.329 1.025 0 .383-.11.734-.329 1.053a2.222 2.222 0 0 1-.888.766c-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.109a5.106 5.106 0 0 1-.766-.233 3.626 3.626 0 0 1-.505-.259V192.4c.127.092.305.196.533.315.237.109.487.205.752.287.264.073.51.109.738.109.428 0 .766-.095 1.012-.287.255-.191.382-.428.382-.711a.61.61 0 0 0-.259-.519c-.164-.128-.406-.251-.725-.369l-1.012-.37c-.528-.2-.879-.451-1.052-.751a2.113 2.113 0 0 1-.26-1.053c0-.584.219-1.067.656-1.449.438-.383 1.021-.575 1.75-.575Zm11.006 0c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.33 2.33 0 0 0-.848.916 2.647 2.647 0 0 0-.287 1.23c0 .438.095.848.287 1.231.2.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.62 3.62 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791.31-.547.734-.984 1.271-1.312.538-.329 1.153-.493 1.846-.493Zm6.713 0c.392 0 .788.096 1.189.287.41.183.761.438 1.053.766v-.916h1.121V194h-1.121v-1.162c-.237.364-.56.683-.971.957-.401.273-.861.41-1.38.41a3.041 3.041 0 0 1-1.6-.437 3.322 3.322 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.099 3.099 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452Zm.205 1.094c-.492 0-.911.123-1.258.369a2.494 2.494 0 0 0-.806.957 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.337.219.725.328 1.162.328.42 0 .793-.109 1.121-.328.328-.219.588-.519.78-.902.191-.392.282-.83.273-1.313l-.014-1.312a3.501 3.501 0 0 0-.916-.834 2.032 2.032 0 0 0-1.107-.301Zm6.603-.957v1.08a3.62 3.62 0 0 1 .561-.547c.228-.191.483-.351.766-.478a2.22 2.22 0 0 1 .902-.192c.465 0 .889.105 1.271.315.383.2.689.51.917.929.227.411.341.93.341 1.559V194h-1.121l-.013-4.061c0-.592-.133-1.043-.397-1.353-.255-.31-.652-.465-1.189-.465-.365 0-.73.137-1.094.41-.356.265-.67.574-.944.93V194H584.9v-6.836h1.121Zm9.967-.137c.502 0 .935.082 1.299.246.365.155.615.297.752.424v1.135a4.067 4.067 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.66 2.66 0 0 0-.287 1.23c0 .438.096.848.287 1.231.201.373.483.679.848.916.364.227.788.341 1.271.341.456 0 .848-.068 1.176-.205a4.47 4.47 0 0 0 .875-.506v1.135c-.137.137-.387.283-.752.438-.364.155-.797.232-1.299.232-.692 0-1.308-.164-1.845-.492a3.614 3.614 0 0 1-1.272-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.58 3.58 0 0 1 1.272-1.312c.537-.329 1.153-.493 1.845-.493Zm6.713 0c.702 0 1.285.146 1.75.438a2.69 2.69 0 0 1 1.039 1.189c.237.502.356 1.067.356 1.696v.67h-5.25c.054.382.187.733.396 1.052.21.319.483.574.82.766.338.182.725.273 1.163.273.492 0 .952-.123 1.38-.369a5.186 5.186 0 0 0 1.081-.834l-.014 1.217a2.743 2.743 0 0 1-.574.492 3.588 3.588 0 0 1-.862.41 2.868 2.868 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.614 3.614 0 0 1-1.272-1.299 3.665 3.665 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791a3.45 3.45 0 0 1 1.162-1.312 3.044 3.044 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.115c-.045-.446-.173-.811-.383-1.093a1.867 1.867 0 0 0-.738-.629 2.019 2.019 0 0 0-.916-.219Zm6.111-3.965V194h-1.121v-9.844h1.121Zm3.446 0V194h-1.121v-9.844h1.121Zm5.14 2.871c.702 0 1.286.146 1.75.438.465.292.812.688 1.04 1.189.236.502.355 1.067.355 1.696v.67h-5.25c.055.382.187.733.396 1.052.21.319.484.574.821.766.337.182.724.273 1.162.273a2.73 2.73 0 0 0 1.381-.369 5.205 5.205 0 0 0 1.08-.834l-.014 1.217a2.717 2.717 0 0 1-.574.492 3.58 3.58 0 0 1-.861.41 2.874 2.874 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.611 3.611 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791a3.45 3.45 0 0 1 1.162-1.312 3.046 3.046 0 0 1 1.709-.493Zm0 1.094c-.565 0-1.03.191-1.394.574-.365.374-.593.83-.684 1.367h4.116c-.046-.446-.174-.811-.383-1.093a1.876 1.876 0 0 0-.739-.629 2.019 2.019 0 0 0-.916-.219Zm11.17-3.965V194h-1.121v-1.162c-.237.364-.56.683-.97.957-.401.273-.862.41-1.381.41a3.041 3.041 0 0 1-1.6-.437 3.33 3.33 0 0 1-1.162-1.245c-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.105 3.105 0 0 1 1.189-1.257 3.206 3.206 0 0 1 1.682-.452c.392 0 .788.096 1.19.287.41.183.761.438 1.052.766v-3.924h1.121Zm-3.158 3.992c-.492 0-.911.123-1.258.37a2.41 2.41 0 0 0-.806.929 2.849 2.849 0 0 0-.274 1.244c0 .438.091.844.274 1.217.182.365.437.656.765.875.338.219.725.328 1.162.328.42 0 .793-.109 1.122-.328.328-.219.587-.519.779-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.316 3.316 0 0 0-.916-.82 2.108 2.108 0 0 0-1.108-.288Z"}),p.createElement("circle",{cx:259,cy:158,r:5,fill:"#6C65E5",stroke:"#F2F2F5",strokeWidth:2}),p.createElement("path",{stroke:"#6C65E5",strokeLinecap:"round",strokeWidth:1.5,d:"M259 157v-50"}),p.createElement("path",{fill:"#615BC2",d:"M205.775 64.813v5.564c0 .793-.168 1.477-.505 2.05a3.345 3.345 0 0 1-1.34 1.3c-.565.3-1.208.45-1.928.45-.711 0-1.354-.15-1.928-.45a3.43 3.43 0 0 1-1.353-1.3c-.328-.574-.492-1.257-.492-2.05v-5.564h1.23v5.523c0 .62.114 1.121.342 1.504a2.1 2.1 0 0 0 .929.834 3.26 3.26 0 0 0 1.272.246c.456-.01.875-.096 1.258-.26.392-.173.702-.447.929-.82.237-.383.356-.884.356-1.504v-5.523h1.23Zm4.567 2.214c.401 0 .775.06 1.121.178.346.11.597.223.752.342v1.203a3.572 3.572 0 0 0-.779-.424 2.613 2.613 0 0 0-1.012-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.657.424l1.148.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053a2.22 2.22 0 0 1-.889.766c-.373.182-.806.273-1.298.273-.265 0-.543-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.571 3.571 0 0 1-.506-.26V72.4c.128.091.306.196.533.315.237.11.488.205.752.287.265.073.511.11.739.11.428 0 .765-.096 1.011-.288.256-.191.383-.428.383-.71a.61.61 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752a2.122 2.122 0 0 1-.259-1.053c0-.584.218-1.067.656-1.45.437-.382 1.021-.574 1.75-.574Zm6.631 0c.701 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791a3.438 3.438 0 0 1 1.162-1.313 3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.757-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.464 0-.843.164-1.134.492-.283.328-.552.72-.807 1.176V74h-1.121v-6.836h1.121Zm9.447-3.281c.265 0 .483.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.849.849 0 0 1-.657.287.891.891 0 0 1-.67-.287.934.934 0 0 1-.259-.642c0-.247.086-.46.259-.643a.891.891 0 0 1 .67-.287Zm.698 3.281V74h-1.122v-5.783h-1.08v-1.053h2.202Zm4.457-.137c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.582 3.582 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.315.411-.315.63 0 .173.06.35.178.533.128.173.347.314.656.424l1.149.41c.446.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.299.273-.264 0-.542-.036-.834-.11a5.095 5.095 0 0 1-.765-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.264.073.51.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.02-.574 1.75-.574Zm9.953 0c.401 0 .774.06 1.121.178.346.11.597.223.752.342v1.203a3.558 3.558 0 0 0-.78-.424 2.605 2.605 0 0 0-1.011-.205c-.429 0-.752.1-.971.3-.21.201-.314.411-.314.63 0 .173.059.35.177.533.128.173.347.314.657.424l1.148.41c.447.155.779.378.998.67.219.292.328.633.328 1.025 0 .383-.109.734-.328 1.053-.21.319-.506.574-.889.766-.373.182-.806.273-1.298.273-.265 0-.543-.036-.834-.11a5.073 5.073 0 0 1-.766-.232 3.516 3.516 0 0 1-.506-.26V72.4c.128.091.305.196.533.315.237.11.488.205.752.287.265.073.511.11.738.11.429 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.405-.25-.724-.37l-1.012-.368c-.529-.201-.88-.452-1.053-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.657-1.45.437-.382 1.021-.574 1.75-.574Zm6.631 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm6.111-.957v1.08c.146-.182.333-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.121l-.014-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-6.836h1.121Zm13.057-3.008V74h-1.122v-1.162c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.039 3.039 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.424-1.139-.424-1.832 0-.756.142-1.408.424-1.955a3.109 3.109 0 0 1 1.19-1.258 3.202 3.202 0 0 1 1.681-.45c.392 0 .789.095 1.19.286.41.183.761.438 1.052.766v-3.924h1.122Zm-3.159 3.992c-.492 0-.911.124-1.258.37a2.413 2.413 0 0 0-.806.93 2.86 2.86 0 0 0-.274 1.243c0 .438.092.843.274 1.217.182.365.437.656.765.875.338.219.725.328 1.163.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902a2.82 2.82 0 0 0 .273-1.313l-.013-1.312a3.334 3.334 0 0 0-.916-.82 2.11 2.11 0 0 0-1.108-.288Zm6.576-4.265c.265 0 .484.095.657.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.657.287.887.887 0 0 1-.669-.287.93.93 0 0 1-.26-.642.9.9 0 0 1 .26-.643.887.887 0 0 1 .669-.287Zm.698 3.281V74h-1.121v-5.783h-1.08v-1.053h2.201Zm3.541 0v1.08c.146-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192.465 0 .889.105 1.272.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.122l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V74h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .789.096 1.19.287.41.183.761.438 1.052.766v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.087 3.087 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.08-.15a2.726 2.726 0 0 1-.752-.355c-.21-.137-.401-.27-.575-.397v-1.203c.137.1.315.228.534.383.228.164.496.31.806.437.319.128.675.192 1.067.192a3.03 3.03 0 0 0 1.23-.246c.374-.165.675-.406.903-.725.227-.32.341-.702.341-1.149v-1.435c-.237.365-.56.684-.97.957-.401.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.875a2.09 2.09 0 0 0 1.162.329c.42 0 .793-.11 1.122-.329.328-.218.587-.519.779-.902.191-.383.282-.816.273-1.299l-.013-1.312a3.334 3.334 0 0 0-.916-.82 2.04 2.04 0 0 0-1.108-.301Zm11.471-2.94v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.145.164.369.246.67.246.273 0 .501-.032.683-.096a3.38 3.38 0 0 0 .479-.233v.917c-.183.145-.379.26-.588.341-.201.091-.474.137-.821.137-.583 0-1.025-.173-1.326-.52-.291-.355-.437-.824-.437-1.408v-4.06h-1.313v-.328c.447-.2.821-.529 1.121-.985.301-.465.565-1.034.793-1.709h.52Zm7.383 1.832c.465 0 .888.105 1.271.315.383.2.688.51.916.93.228.41.342.93.342 1.558V74h-1.121l-.014-4.06c0-.593-.132-1.044-.396-1.354-.255-.31-.652-.465-1.19-.465-.364 0-.729.137-1.093.41-.356.265-.67.575-.944.93V74h-1.121v-9.844h1.121v4.088c.146-.182.333-.364.561-.547.228-.191.483-.35.765-.478.292-.128.593-.192.903-.192Zm7.465 0c.701 0 1.285.146 1.75.438.464.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.726 2.726 0 0 1-.574.492c-.246.164-.533.301-.861.41a2.885 2.885 0 0 1-1.012.178c-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.423-1.791.283-.547.67-.984 1.163-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.566 0-1.03.192-1.395.574-.365.374-.592.83-.684 1.368h4.116c-.046-.447-.174-.812-.383-1.094a1.882 1.882 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218ZM185.288 87.027c.501 0 .934.082 1.299.246.364.155.615.297.752.424v1.135a4.042 4.042 0 0 0-.875-.492c-.328-.146-.72-.219-1.176-.219-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.664 2.664 0 0 0-.287 1.23c0 .438.096.848.287 1.23.2.374.483.68.848.916.364.228.788.342 1.271.342.456 0 .848-.068 1.176-.205a4.49 4.49 0 0 0 .875-.506v1.135c-.137.137-.388.283-.752.438-.365.155-.798.232-1.299.232-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm7.246 0c.465 0 .889.105 1.272.315.382.2.688.51.916.93.228.41.341.93.341 1.558V94h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.651-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-9.844h1.121v4.088c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.292-.128.592-.192.902-.192Zm7.465 0c.392 0 .788.096 1.189.287.411.183.762.438 1.053.766v-.916h1.121V94h-1.121v-1.162c-.237.365-.56.684-.97.957-.402.273-.862.41-1.381.41a3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.094c-.492 0-.911.123-1.258.37a2.495 2.495 0 0 0-.806.956 2.847 2.847 0 0 0-.274 1.244c0 .438.091.843.274 1.217.182.365.437.656.765.875a2.09 2.09 0 0 0 1.162.328c.42 0 .793-.109 1.121-.328.329-.219.588-.52.78-.902.191-.392.282-.83.273-1.313l-.013-1.312a3.55 3.55 0 0 0-.916-.834 2.04 2.04 0 0 0-1.108-.3Zm6.604-.957v1.08c.145-.182.332-.364.56-.547.228-.191.483-.35.766-.478.291-.128.592-.192.902-.192.465 0 .889.105 1.272.315.382.2.688.51.916.93.227.41.341.93.341 1.558V94h-1.121l-.013-4.06c0-.593-.132-1.044-.397-1.354-.255-.31-.652-.465-1.189-.465-.365 0-.729.137-1.094.41a4.8 4.8 0 0 0-.943.93V94h-1.121v-6.836h1.121Zm9.693-.137c.392 0 .788.096 1.189.287a3.04 3.04 0 0 1 1.053.766v-.916h1.121v6.7c0 .81-.164 1.485-.492 2.023a3.092 3.092 0 0 1-1.312 1.203 4.06 4.06 0 0 1-1.791.396c-.42 0-.78-.05-1.081-.15a2.733 2.733 0 0 1-.751-.355c-.21-.137-.402-.27-.575-.397v-1.203c.137.1.315.228.534.383.227.164.496.31.806.437.319.128.675.192 1.067.192a3.03 3.03 0 0 0 1.23-.246c.374-.165.675-.406.902-.725.228-.32.342-.702.342-1.149v-1.435c-.237.365-.56.684-.971.957a2.39 2.39 0 0 1-1.38.41 3.036 3.036 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.283-.528-.424-1.139-.424-1.832 0-.756.141-1.408.424-1.955a3.113 3.113 0 0 1 1.189-1.258 3.208 3.208 0 0 1 1.682-.45Zm.205 1.108c-.492 0-.911.123-1.258.369a2.39 2.39 0 0 0-.806.943 2.847 2.847 0 0 0-.274 1.244c0 .438.091.839.274 1.203.182.365.437.657.765.875.337.22.725.329 1.162.329.42 0 .793-.11 1.121-.329.329-.218.588-.519.78-.902.191-.383.282-.816.273-1.299l-.014-1.312a3.305 3.305 0 0 0-.916-.82c-.319-.201-.688-.301-1.107-.301Zm8.299-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.337.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm7.027-1.094c.401 0 .775.06 1.121.178.347.11.597.223.752.342v1.203a3.548 3.548 0 0 0-.779-.424 2.606 2.606 0 0 0-1.012-.205c-.428 0-.752.1-.97.3-.21.201-.315.411-.315.63 0 .173.059.35.178.533.127.173.346.314.656.424l1.149.41c.446.155.779.378.998.67.218.292.328.633.328 1.025 0 .383-.11.734-.328 1.053-.21.319-.506.574-.889.766-.374.182-.807.273-1.299.273-.264 0-.542-.036-.834-.11a5.109 5.109 0 0 1-.766-.232 3.548 3.548 0 0 1-.505-.26V92.4c.127.091.305.196.533.315.237.11.487.205.752.287.264.073.51.11.738.11.428 0 .766-.096 1.012-.288.255-.191.383-.428.383-.71a.612.612 0 0 0-.26-.52c-.164-.128-.406-.25-.725-.37l-1.012-.368c-.528-.201-.879-.452-1.052-.752-.173-.31-.26-.661-.26-1.053 0-.584.219-1.067.656-1.45.438-.382 1.021-.574 1.75-.574Zm9.803-1.832v1.97h1.996v1.052h-1.996v4.006c0 .282.073.505.219.67.146.164.369.246.67.246.273 0 .501-.032.683-.096.183-.073.342-.15.479-.233v.917c-.183.145-.379.26-.588.341-.201.091-.474.137-.82.137-.584 0-1.026-.173-1.327-.52-.291-.355-.437-.824-.437-1.408v-4.06h-1.313v-.328c.447-.2.821-.529 1.121-.985.301-.465.566-1.034.793-1.709h.52Zm7.123 1.832c.693 0 1.308.164 1.846.492.537.329.957.766 1.258 1.313a3.58 3.58 0 0 1 .464 1.791 3.58 3.58 0 0 1-.464 1.791c-.301.538-.721.97-1.258 1.299-.538.328-1.153.492-1.846.492-.693 0-1.308-.164-1.846-.492a3.622 3.622 0 0 1-1.271-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.15-1.244.451-1.791a3.59 3.59 0 0 1 1.271-1.313c.538-.328 1.153-.492 1.846-.492Zm0 1.094c-.483 0-.907.119-1.271.356a2.337 2.337 0 0 0-.848.916 2.652 2.652 0 0 0-.287 1.23c0 .438.095.848.287 1.23.2.374.483.68.848.916.364.228.788.342 1.271.342.492 0 .916-.114 1.271-.342.365-.236.643-.542.834-.916.201-.382.301-.792.301-1.23 0-.447-.1-.857-.301-1.23a2.239 2.239 0 0 0-.834-.916c-.355-.237-.779-.356-1.271-.356Zm12.879-1.094c.629 0 1.189.15 1.682.451.501.292.893.712 1.175 1.258.292.547.438 1.199.438 1.955 0 .693-.146 1.304-.438 1.832a3.217 3.217 0 0 1-1.148 1.245 2.991 2.991 0 0 1-1.6.437c-.519 0-.984-.137-1.394-.41a3.415 3.415 0 0 1-.957-.957V94h-1.121v-9.844h1.121v3.924a3.073 3.073 0 0 1 1.039-.766 2.83 2.83 0 0 1 1.203-.287Zm-.205 1.108c-.419 0-.789.1-1.108.3a3.611 3.611 0 0 0-.916.82l-.013 1.313c0 .483.091.916.273 1.3.192.382.451.683.779.901a2.02 2.02 0 0 0 1.122.329c.446 0 .834-.11 1.162-.329.328-.218.583-.51.765-.875.183-.364.274-.765.274-1.203 0-.446-.096-.86-.287-1.244a2.297 2.297 0 0 0-.793-.943c-.347-.246-.766-.37-1.258-.37Zm8.162-1.108c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.21.32.483.575.82.766.338.182.725.273 1.162.273.493 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm10.213-.957v1.367c.264-.456.583-.82.957-1.094.374-.273.756-.41 1.148-.41.265 0 .502.046.711.137v1.299a1.698 1.698 0 0 0-.875-.26c-.465 0-.843.164-1.135.492-.282.328-.551.72-.806 1.176V94h-1.121v-6.836h1.121Zm7.068-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.38-.369a5.2 5.2 0 0 0 1.081-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492 3.6 3.6 0 0 1-.862.41 2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.617 3.617 0 0 1-1.272-1.299 3.664 3.664 0 0 1-.451-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.021 2.021 0 0 0-.916-.218Zm11.02-.957L294.882 94h-.697l-3.077-6.836h1.34l2.065 5.031 2.242-5.03h1.34Zm2.461-3.281c.264 0 .483.096.656.287a.88.88 0 0 1 .273.642.91.91 0 0 1-.273.643.847.847 0 0 1-.656.287.888.888 0 0 1-.67-.287.935.935 0 0 1-.26-.642c0-.247.087-.46.26-.643a.888.888 0 0 1 .67-.287Zm.697 3.281V94h-1.121v-5.783h-1.08v-1.053h2.201Zm5.236-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.356 1.066.356 1.695v.67h-5.25c.054.382.187.733.396 1.052.21.32.483.575.821.766.337.182.724.273 1.162.273.492 0 .952-.123 1.381-.369a5.219 5.219 0 0 0 1.08-.834l-.014 1.217a2.752 2.752 0 0 1-.574.492c-.246.164-.533.301-.862.41a2.88 2.88 0 0 1-1.011.178c-.693 0-1.308-.164-1.846-.492a3.606 3.606 0 0 1-1.271-1.299 3.654 3.654 0 0 1-.452-1.791c0-.647.142-1.244.424-1.791.283-.547.67-.984 1.162-1.313a3.053 3.053 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.394.574-.365.374-.593.83-.684 1.368h4.115c-.045-.447-.173-.812-.382-1.094a1.878 1.878 0 0 0-.739-.63 2.021 2.021 0 0 0-.916-.218Zm13.959-.957L318.056 94h-.698l-1.873-4.826L313.612 94h-.697l-2.393-6.836h1.34l1.518 4.799 1.791-4.799h.629l1.791 4.799 1.517-4.799h1.34Zm4.184-.137c.702 0 1.285.146 1.75.438.465.291.811.688 1.039 1.19.237.5.355 1.066.355 1.695v.67h-5.25c.055.382.187.733.397 1.052.209.32.483.575.82.766.337.182.725.273 1.162.273.492 0 .953-.123 1.381-.369a5.166 5.166 0 0 0 1.08-.834l-.013 1.217a2.735 2.735 0 0 1-.575.492c-.246.164-.533.301-.861.41a2.881 2.881 0 0 1-1.012.178c-.692 0-1.308-.164-1.845-.492a3.617 3.617 0 0 1-1.272-1.299 3.653 3.653 0 0 1-.451-1.791c0-.647.141-1.244.424-1.791.282-.547.67-.984 1.162-1.313a3.05 3.05 0 0 1 1.709-.492Zm0 1.094c-.565 0-1.03.192-1.395.574-.364.374-.592.83-.683 1.368h4.115c-.046-.447-.173-.812-.383-1.094a1.868 1.868 0 0 0-.738-.63 2.024 2.024 0 0 0-.916-.218Zm11.17-3.965V94h-1.121v-1.162a3.355 3.355 0 0 1-.971.957c-.401.273-.861.41-1.381.41a3.041 3.041 0 0 1-1.6-.437c-.483-.301-.87-.716-1.162-1.245-.282-.528-.423-1.139-.423-1.832 0-.756.141-1.408.423-1.955a3.115 3.115 0 0 1 1.19-1.258 3.204 3.204 0 0 1 1.681-.45c.392 0 .789.095 1.19.286.41.183.761.438 1.053.766v-3.924h1.121Zm-3.158 3.992c-.493 0-.912.124-1.258.37a2.416 2.416 0 0 0-.807.93 2.86 2.86 0 0 0-.273 1.243c0 .438.091.843.273 1.217.182.365.438.656.766.875.337.219.724.328 1.162.328.419 0 .793-.109 1.121-.328.328-.219.588-.52.779-.902.192-.392.283-.83.274-1.313l-.014-1.312a3.334 3.334 0 0 0-.916-.82 2.11 2.11 0 0 0-1.107-.288Z"}),p.createElement("defs",null,p.createElement("clipPath",{id:"a"},p.createElement("path",{fill:"#fff",d:"M531 117h18v18h-18z"})))),it=()=>{const e=p.useRef(null),n=d1(),a=u1(n.breakpoints.down("md")),[r,o]=p.useState(!1);return s(J,{children:[t(S,{condition:!a,show:s(D,{variant:"body2",children:["Show change request process"," "]})}),t(B1,{title:"Change request process",ref:e,onClick:()=>o(!0),children:t(T0,{})}),t(N2,{open:r,anchorEl:e.current,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},onClose:()=>o(!1),children:s(w,{sx:{p:{xs:2,md:4},maxWidth:920},children:[t(D,{variant:"h3",children:"Change request process:"}),t(D,{variant:"body2",children:s("ol",{children:[t("li",{children:"When changes are detected they are added into a draft mode"}),t("li",{children:"The next step is for those changes to be sent for review"}),s("li",{children:["These changes can be seen by everyone but only who has ",t("strong",{children:"“Review change request”"})," ","permission can Approve them"]}),s("ul",{children:[s("li",{children:["If changes are Approved then someone who has"," ",t("strong",{children:"“Apply change request”"})," ","permission needs to apply these changes to be live on the feature toggles and request is Closed"]}),t("li",{children:"If changes are Cancelled by the author or admin then change request goes automatically to Cancelled and request is Closed."})]})]})}),t(w,{sx:{mt:3},children:t(J5,{style:{maxWidth:"calc(100vw - 4rem)"}})})]})})]})},N3=d(w)(({theme:e})=>({padding:e.spacing(1),display:"flex",justifyContent:"center","& .MuiInputBase-input":{fontSize:e.fontSizes.smallBody}})),Y5=()=>{const{trackEvent:e}=we(),[n,a]=p.useState({isOpen:!1,enableEnvironment:"",isEnabled:!1,requiredApprovals:1}),r=d1(),o=G("projectId"),{data:i,loading:c,refetchChangeRequestConfig:l}=P4(o),{updateChangeRequestEnvironmentConfig:h}=Y2(),{setToastData:u,setToastApiError:f}=m1(),g=(b,k,V)=>()=>{a({isOpen:!0,enableEnvironment:b,isEnabled:k,requiredApprovals:V})},y=async()=>{n.enableEnvironment&&await T(),a(b=>({...b,isOpen:!1}))};async function T(b){try{await h(b||{project:o,environment:n.enableEnvironment,enabled:!n.isEnabled,requiredApprovals:n.requiredApprovals}),u({type:"success",title:"Updated change request status",text:"Successfully updated change request status."}),await l()}catch(k){f(b1(k))}}const E=Array.from(Array(10).keys()).map(b=>String(b+1)).map(b=>({key:b,label:`${b} ${b==="1"?"approval":"approvals"}`,sx:{"font-size":r.fontSizes.smallBody}}));function P(b,k){T({project:o,environment:b.environment,enabled:b.changeRequestEnabled,requiredApprovals:Number(k)})}const $=p.useMemo(()=>[{Header:"Environment",accessor:"environment",disableSortBy:!0},{Header:"Type",accessor:"type",disableGlobalFilter:!0,disableSortBy:!0},{Header:"Required approvals",Cell:({row:{original:b}})=>{const{hasAccess:k}=p.useContext(ie);return t(S,{condition:b.changeRequestEnabled,show:t(N3,{"data-loading":!0,children:t(F0,{sx:{width:"140px",marginLeft:1},options:E,value:b.requiredApprovals||1,onChange:V=>{P(b,V)},disabled:!k(W3,o),IconComponent:_0,fullWidth:!0})})})},width:100,disableGlobalFilter:!0,disableSortBy:!0},{Header:"Status",accessor:"changeRequestEnabled",id:"changeRequestEnabled",align:"center",Cell:({value:b,row:{original:k}})=>t(N3,{"data-loading":!0,children:t(W2,{checked:b,projectId:o,permission:W3,inputProps:{"aria-label":k.environment},onClick:g(k.environment,k.changeRequestEnabled,k.requiredApprovals)})}),width:100,disableGlobalFilter:!0,disableSortBy:!0}],[]),{getTableProps:A,getTableBodyProps:B,headerGroups:H,rows:F,prepareRow:M}=Q.useTable({columns:$,data:i,sortTypes:Se,autoResetGlobalFilter:!1,disableSortRemove:!0,defaultColumn:{Cell:t1}},Q.useGlobalFilter);return s(c1,{header:t(o1,{titleElement:"Change request configuration",actions:t(it,{})}),isLoading:c,children:[t(F1,{severity:"info",sx:{mb:3},children:"If change request is enabled for an environment, then any change in that environment needs to be approved before it will be applied"}),s(Qe,{...A(),children:[t(Xe,{headerGroups:H}),t(e2,{...B(),children:F.map(b=>(M(b),t(t2,{hover:!0,...b.getRowProps(),children:b.cells.map(k=>t(n2,{...k.getCellProps(),children:k.render("Cell")}))})))})]}),s(a2,{onClick:()=>{e("change_request",{props:{eventType:`change request ${n.isEnabled?"disabled":"enabled"}`}}),y()},open:n.isOpen,onClose:()=>a(b=>({...b,isOpen:!1})),primaryButtonText:n.isEnabled?"Disable":"Enable",secondaryButtonText:"Cancel",title:`${n.isEnabled?"Disable":"Enable"} change requests`,children:[s(D,{sx:{mb:1},children:["You are about to"," ",n.isEnabled?"disable":"enable"," “Change request”",t(S,{condition:Boolean(n.enableEnvironment),show:s(J,{children:[" ","for"," ",t("strong",{children:n.enableEnvironment})]})}),"."]}),t(S,{condition:!n.isEnabled,show:t(D,{variant:"body2",color:"text.secondary",children:"When enabling change request for an environment, you need to be sure that your Unleash Admin already have created the custom project roles in your Unleash instance so you can assign your project members from the project access page."})})]})]})},Q5=()=>{const e=G("projectId"),n=k1(e),{hasAccess:a}=p.useContext(ie),{isOss:r,isPro:o}=l1();return E1(`Project change request configuration – ${n}`),r()||o()?t(c1,{header:t(o1,{titleElement:"Change request configuration",actions:t(it,{})}),sx:{justifyContent:"center"},children:t(e3,{feature:"change-requests"})}):a(A1,e)?t(Y5,{}):t(c1,{header:t(o1,{title:"Change request configuration"}),children:t(F1,{severity:"error",children:"You need project owner permissions to access this section."})})},st=()=>{const{makeRequest:e,createRequest:n,errors:a,loading:r}=a3({propagateErrors:!0});return{deleteToken:async(c,l)=>{const h=`api/admin/projects/${l}/api-tokens/${c}`,u=n(h,{method:"DELETE"});try{return await e(u.caller,u.id)}catch(f){throw f}},createToken:async(c,l)=>{const h=`api/admin/projects/${l}/api-tokens`,u=n(h,{method:"POST",body:JSON.stringify(c)});try{return await e(u.caller,u.id)}catch(f){throw f}},errors:a,loading:r}},ct=(e,n={})=>{const a=_1(`api/admin/projects/${e}/api-tokens`),{data:r,error:o,mutate:i}=K1(a,X5,n),c=p.useMemo(()=>r??[],[r]),l=p.useCallback(()=>{i().catch(console.warn)},[i]);return{tokens:c,error:o,loading:!o&&!r,refetch:l}},X5=async e=>(await(await fetch(e).then(V1("Project Api tokens"))).json()).tokens,U3="Create project API token",e6=()=>{const e=G("projectId"),{setToastApiError:n}=m1(),{uiConfig:a}=l1(),r=L1(),[o,i]=p.useState(!1),[c,l]=p.useState(""),{getApiTokenPayload:h,username:u,type:f,environment:g,setUsername:y,setTokenType:T,setEnvironment:E,isValid:P,errors:$,clearErrors:A}=en(e),{createToken:B,loading:H}=st(),{refetch:F}=ct(e),{trackEvent:M}=we();E1(U3);const b=`api/admin/project/${e}/api-tokens`;return s(B0,{loading:H,title:U3,modal:!0,description:"Unleash SDKs use API tokens to authenticate to the Unleash API. Client SDKs need a token with 'client privileges', which allows them to fetch feature toggle configurations and post usage metrics.",documentationLink:"https://docs.getunleash.io/reference/api-tokens-and-client-keys",documentationLinkLabel:"API tokens documentation",formatApiCode:()=>`curl --location --request POST '${a.unleashUrl}/${b}' \\
|
|
7
7
|
--header 'Authorization: INSERT_API_KEY' \\
|
|
8
8
|
--header 'Content-Type: application/json' \\
|
|
9
|
-
--data-raw '${JSON.stringify(h(),void 0,2)}'`,children:[s(X4,{handleSubmit:async n1=>{if(n1.preventDefault(),!!P())try{const K=h();await B(K,e).then(v=>v.json()).then(v=>{k4(),l(v.secret),i(!0),M("project_api_tokens",{props:{eventType:"api_key_created"}}),F()})}catch(K){n(C1(K))}},handleCancel:()=>{r(N1)},mode:"Create",actions:t(R4,{name:"token",permission:P4,projectId:e}),children:[t(en,{username:u,setUsername:y,errors:$,clearErrors:A}),t(tn,{type:f,setType:T}),t(nn,{type:f,environment:g,setEnvironment:E})]}),t(an,{open:o,closeConfirm:()=>{i(!1),r(N1)},token:c,type:f})]})},n6=()=>{const e=L1();return t(d2,{open:!0,onClose:()=>e(N1),label:"Create API token",children:t(t6,{})})},a6=()=>{const e=G("projectId"),n=I1(e),{hasAccess:a}=p.useContext(se),{tokens:r,loading:o,refetch:i}=ct(e),{trackEvent:c}=ne(),{deleteToken:l}=st();E1(`Project api access – ${n}`);const{getTableProps:h,getTableBodyProps:u,headerGroups:f,rows:g,prepareRow:y,state:{globalFilter:T},setGlobalFilter:E,setHiddenColumns:P,columns:$}=rn(r,A=>s(H2,{children:[t(on,{token:A.row.original,permission:C3,project:e,track:()=>c("project_api_tokens",{props:{eventType:"api_key_copied"}})}),t(sn,{token:A.row.original,permission:J5,project:e,onRemove:async()=>{await l(A.row.original.secret,e),c("project_api_tokens",{props:{eventType:"api_key_deleted"}}),i()}})]}));return a(C3,e)?s("div",{style:{width:"100%",overflow:"hidden"},children:[t(l1,{header:t(o1,{title:`API access (${g.length})`,actions:s(J,{children:[t(S1,{initialValue:T,onChange:E}),t(o1.Divider,{}),t(cn,{permission:K5,path:"create"})]})}),children:t(ln,{compact:!0,loading:o,headerGroups:f,setHiddenColumns:P,prepareRow:y,getTableBodyProps:u,getTableProps:h,rows:g,columns:$,globalFilter:T})}),t(p2,{children:t(r1,{path:"create",element:t(n6,{})})})]}):t(l1,{header:t(o1,{title:"Api access"}),children:t(F1,{severity:"error",children:"You need to be a member of the project or admin to access this section."})})},r6=()=>{var c;const e=V0(),n=L1(),{uiConfig:a}=s1(),{showProjectApiAccess:r}=a.flags,o=[{id:"environments",label:"Environments"},{id:"access",label:"Access"},{id:"change-requests",label:"Change request configuration"}];Boolean(r)&&o.push({id:"api-access",label:"API access"});const i=l=>{n(l.id)};return t(Z4,{tabs:o,value:((c=o.find(({id:l})=>{var h;return l&&((h=e.pathname)==null?void 0:h.includes(`/${l}`))}))==null?void 0:c.id)||o[0].id,onChange:i,children:s(p2,{children:[t(r1,{path:"environments/*",element:t(M0,{})}),t(r1,{path:"access/*",element:t(G5,{})}),t(r1,{path:"change-requests/*",element:t(X5,{})}),Boolean(r)&&t(r1,{path:"api-access/*",element:t(a6,{})}),t(r1,{path:"*",element:t(L0,{replace:!0,to:o[0].id})})]})})},o6=d(Q0)(()=>({[`& .${et.root}:before`]:{flex:0,padding:0}})),q3=d(p3)(({theme:e})=>({width:"1px",backgroundColor:e.palette.neutral.border})),A2=d(tt,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:n})=>({color:n?e.palette.primary.main:e.palette.neutral.border,backgroundColor:n?e.palette.text.tertiaryContrast:"initial",fontWeight:n?e.fontWeight.bold:e.fontWeight.medium,borderColor:e.palette.neutral.border,width:"40px",height:"40px",borderWidth:"1px",display:"flex",alignItems:"center",justifyContent:"center"})),E2=d(X0,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:n})=>({marginBottom:e.spacing(6),color:n?e.palette.text.tertiaryContrast:e.palette.neutral.border,marginTop:e.spacing(2)})),R2=d(w)(({theme:e})=>({fontWeight:e.fontWeight.bold,fontSize:e.fontSizes.bodySize})),P2=d(w)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),i6=({stage:e})=>s(o6,{children:[s(He,{children:[s(We,{children:[t(A2,{variant:"outlined",active:e==="configure",children:"1"}),t(q3,{})]}),s(E2,{active:e==="configure",children:[t(R2,{children:"Import file"}),t(P2,{children:"Import previously exported toggle configuration from another Unleash instance as a JSON file"})]})]}),s(He,{children:[s(We,{children:[t(A2,{variant:"outlined",active:e==="validate",children:"2"}),t(q3,{})]}),s(E2,{active:e==="validate",children:[t(R2,{children:"Validate configuration"}),t(P2,{children:"Check the errors and warnings from the import process"})]})]}),s(He,{children:[t(We,{children:t(A2,{variant:"outlined",active:e==="import",children:"3"})}),s(E2,{active:e==="import",children:[t(R2,{children:"Finish import"}),t(P2,{children:"Feature toggle configuration will be imported to your new Unleash instance"})]})]})]});function pe(e,n,a,r){function o(i){return i instanceof a?i:new a(function(c){c(i)})}return new(a||(a=Promise))(function(i,c){function l(f){try{u(r.next(f))}catch(g){c(g)}}function h(f){try{u(r.throw(f))}catch(g){c(g)}}function u(f){f.done?i(f.value):o(f.value).then(l,h)}u((r=r.apply(e,n||[])).next())})}function ue(e,n){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(u){return function(f){return h([u,f])}}function h(u){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(a=0)),a;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,o=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){a=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(u[0]===6&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=n.call(e,a)}catch(f){u=[6,f],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function G3(e,n){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),o,i=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){c={error:l}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(c)throw c.error}}return i}function K3(e,n,a){if(a||arguments.length===2)for(var r=0,o=n.length,i;r<o;r++)(i||!(r in n))&&(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))}var s6=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Ee(e,n){var a=c6(e);if(typeof a.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(a,"path",{value:typeof n=="string"?n:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return a}function c6(e){var n=e.name,a=n&&n.lastIndexOf(".")!==-1;if(a&&!e.type){var r=n.split(".").pop().toLowerCase(),o=s6.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var l6=[".DS_Store","Thumbs.db"];function d6(e){return pe(this,void 0,void 0,function(){return ue(this,function(n){return Je(e)&&p6(e.dataTransfer)?[2,g6(e.dataTransfer,e.type)]:u6(e)?[2,h6(e)]:Array.isArray(e)&&e.every(function(a){return"getFile"in a&&typeof a.getFile=="function"})?[2,m6(e)]:[2,[]]})})}function p6(e){return Je(e)}function u6(e){return Je(e)&&Je(e.target)}function Je(e){return typeof e=="object"&&e!==null}function h6(e){return F2(e.target.files).map(function(n){return Ee(n)})}function m6(e){return pe(this,void 0,void 0,function(){var n;return ue(this,function(a){switch(a.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return n=a.sent(),[2,n.map(function(r){return Ee(r)})]}})})}function g6(e,n){return pe(this,void 0,void 0,function(){var a,r;return ue(this,function(o){switch(o.label){case 0:return e.items?(a=F2(e.items).filter(function(i){return i.kind==="file"}),n!=="drop"?[2,a]:[4,Promise.all(a.map(f6))]):[3,2];case 1:return r=o.sent(),[2,J3(lt(r))];case 2:return[2,J3(F2(e.files).map(function(i){return Ee(i)}))]}})})}function J3(e){return e.filter(function(n){return l6.indexOf(n.name)===-1})}function F2(e){if(e===null)return[];for(var n=[],a=0;a<e.length;a++){var r=e[a];n.push(r)}return n}function f6(e){if(typeof e.webkitGetAsEntry!="function")return Y3(e);var n=e.webkitGetAsEntry();return n&&n.isDirectory?dt(n):Y3(e)}function lt(e){return e.reduce(function(n,a){return K3(K3([],G3(n),!1),G3(Array.isArray(a)?lt(a):[a]),!1)},[])}function Y3(e){var n=e.getAsFile();if(!n)return Promise.reject("".concat(e," is not a File"));var a=Ee(n);return Promise.resolve(a)}function v6(e){return pe(this,void 0,void 0,function(){return ue(this,function(n){return[2,e.isDirectory?dt(e):y6(e)]})})}function dt(e){var n=e.createReader();return new Promise(function(a,r){var o=[];function i(){var c=this;n.readEntries(function(l){return pe(c,void 0,void 0,function(){var h,u,f;return ue(this,function(g){switch(g.label){case 0:if(l.length)return[3,5];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return h=g.sent(),a(h),[3,4];case 3:return u=g.sent(),r(u),[3,4];case 4:return[3,6];case 5:f=Promise.all(l.map(v6)),o.push(f),i(),g.label=6;case 6:return[2]}})})},function(l){r(l)})}i()})}function y6(e){return pe(this,void 0,void 0,function(){return ue(this,function(n){return[2,new Promise(function(a,r){e.file(function(o){var i=Ee(o,e.fullPath);a(i)},function(o){r(o)})})]})})}var b6=function(e,n){if(e&&n){var a=Array.isArray(n)?n:n.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return a.some(function(c){var l=c.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0};function Q3(e){return x6(e)||S6(e)||ut(e)||C6()}function C6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
10
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ut(e,n){if(e){if(typeof e=="string")return _2(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _2(e,n)}}function _2(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=new Array(n);a<n;a++)r[a]=e[a];return r}function
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vt(e,n){if(e){if(typeof e=="string")return V2(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return V2(e,n)}}function V2(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=new Array(n);a<n;a++)r[a]=e[a];return r}function J6(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],o=!0,i=!1,c,l;try{for(a=a.call(e);!(o=(c=a.next()).done)&&(r.push(c.value),!(n&&r.length===n));o=!0);}catch(h){i=!0,l=h}finally{try{!o&&a.return!=null&&a.return()}finally{if(i)throw l}}return r}}function Y6(e){if(Array.isArray(e))return e}function r0(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,r)}return a}function Y(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?r0(Object(a),!0).forEach(function(r){L2(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r0(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function L2(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function Qe(e,n){if(e==null)return{};var a=Q6(e,n),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Q6(e,n){if(e==null)return{};var a={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(n.indexOf(o)>=0)&&(a[o]=e[o]);return a}var f3=p.forwardRef(function(e,n){var a=e.children,r=Qe(e,z6),o=bt(r),i=o.open,c=Qe(o,M6);return p.useImperativeHandle(n,function(){return{open:i}},[i]),ye.createElement(p.Fragment,null,a(Y(Y({},c),{},{open:i})))});f3.displayName="Dropzone";var yt={disabled:!1,getFilesFromEvent:d6,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};f3.defaultProps=yt;f3.propTypes={children:N.func,accept:N.objectOf(N.arrayOf(N.string)),multiple:N.bool,preventDropOnDocument:N.bool,noClick:N.bool,noKeyboard:N.bool,noDrag:N.bool,noDragEventsBubbling:N.bool,minSize:N.number,maxSize:N.number,maxFiles:N.number,disabled:N.bool,getFilesFromEvent:N.func,onFileDialogCancel:N.func,onFileDialogOpen:N.func,useFsAccessApi:N.bool,autoFocus:N.bool,onDragEnter:N.func,onDragLeave:N.func,onDragOver:N.func,onDrop:N.func,onDropAccepted:N.func,onDropRejected:N.func,onError:N.func,validator:N.func};var z2={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function bt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Y(Y({},yt),e),a=n.accept,r=n.disabled,o=n.getFilesFromEvent,i=n.maxSize,c=n.minSize,l=n.multiple,h=n.maxFiles,u=n.onDragEnter,f=n.onDragLeave,g=n.onDragOver,y=n.onDrop,T=n.onDropAccepted,E=n.onDropRejected,P=n.onFileDialogCancel,$=n.onFileDialogOpen,A=n.useFsAccessApi,B=n.autoFocus,H=n.preventDropOnDocument,F=n.noClick,M=n.noKeyboard,b=n.noDrag,Z=n.noDragEventsBubbling,V=n.onError,W=n.validator,_=p.useMemo(function(){return _6(a)},[a]),c1=p.useMemo(function(){return F6(a)},[a]),n1=p.useMemo(function(){return typeof $=="function"?$:o0},[$]),K=p.useMemo(function(){return typeof P=="function"?P:o0},[P]),v=p.useRef(null),x=p.useRef(null),O=p.useReducer(X6,z2),k=k2(O,2),L=k[0],R=k[1],q=L.isFocused,i1=L.isFileDialogActive,a1=p.useRef(typeof window<"u"&&window.isSecureContext&&A&&B6()),p1=function(){!a1.current&&i1&&setTimeout(function(){if(x.current){var C=x.current.files;C.length||(R({type:"closeDialog"}),K())}},300)};p.useEffect(function(){return window.addEventListener("focus",p1,!1),function(){window.removeEventListener("focus",p1,!1)}},[x,i1,K,a1]);var k1=p.useRef([]),j1=function(C){v.current&&v.current.contains(C.target)||(C.preventDefault(),k1.current=[])};p.useEffect(function(){return H&&(document.addEventListener("dragover",a0,!1),document.addEventListener("drop",j1,!1)),function(){H&&(document.removeEventListener("dragover",a0),document.removeEventListener("drop",j1))}},[v,H]),p.useEffect(function(){return!r&&B&&v.current&&v.current.focus(),function(){}},[v,B,r]);var X=p.useCallback(function(m){V?V(m):console.error(m)},[V]),he=p.useCallback(function(m){m.preventDefault(),m.persist(),H1(m),k1.current=[].concat(N6(k1.current),[m.target]),Ve(m)&&Promise.resolve(o(m)).then(function(C){if(!(Ye(m)&&!Z)){var I=C.length,j=I>0&&j6({files:C,accept:_,minSize:c,maxSize:i,multiple:l,maxFiles:h,validator:W}),U=I>0&&!j;R({isDragAccept:j,isDragReject:U,isDragActive:!0,type:"setDraggedFiles"}),u&&u(m)}}).catch(function(C){return X(C)})},[o,u,X,Z,_,c,i,l,h,W]),Re=p.useCallback(function(m){m.preventDefault(),m.persist(),H1(m);var C=Ve(m);if(C&&m.dataTransfer)try{m.dataTransfer.dropEffect="copy"}catch{}return C&&g&&g(m),!1},[g,Z]),me=p.useCallback(function(m){m.preventDefault(),m.persist(),H1(m);var C=k1.current.filter(function(j){return v.current&&v.current.contains(j)}),I=C.indexOf(m.target);I!==-1&&C.splice(I,1),k1.current=C,!(C.length>0)&&(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ve(m)&&f&&f(m))},[v,f,Z]),M1=p.useCallback(function(m,C){var I=[],j=[];m.forEach(function(U){var y1=ht(U,_),W1=k2(y1,2),h2=W1[0],m2=W1[1],g2=mt(U,c,i),Oe=k2(g2,2),f2=Oe[0],v2=Oe[1],y2=W?W(U):null;if(h2&&f2&&!y2)I.push(U);else{var b2=[m2,v2];y2&&(b2=b2.concat(y2)),j.push({file:U,errors:b2.filter(function(St){return St})})}}),(!l&&I.length>1||l&&h>=1&&I.length>h)&&(I.forEach(function(U){j.push({file:U,errors:[I6]})}),I.splice(0)),R({acceptedFiles:I,fileRejections:j,type:"setFiles"}),y&&y(I,j,C),j.length>0&&E&&E(j,C),I.length>0&&T&&T(I,C)},[R,l,_,c,i,h,y,T,E,W]),D1=p.useCallback(function(m){m.preventDefault(),m.persist(),H1(m),k1.current=[],Ve(m)&&Promise.resolve(o(m)).then(function(C){Ye(m)&&!Z||M1(C,m)}).catch(function(C){return X(C)}),R({type:"reset"})},[o,M1,X,Z]),x1=p.useCallback(function(){if(a1.current){R({type:"openDialog"}),n1();var m={multiple:l,types:c1};window.showOpenFilePicker(m).then(function(C){return o(C)}).then(function(C){M1(C,null),R({type:"closeDialog"})}).catch(function(C){V6(C)?(K(C),R({type:"closeDialog"})):L6(C)?(a1.current=!1,x.current?(x.current.value=null,x.current.click()):X(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):X(C)});return}x.current&&(R({type:"openDialog"}),n1(),x.current.value=null,x.current.click())},[R,n1,K,A,M1,X,c1,l]),Pe=p.useCallback(function(m){!v.current||!v.current.isEqualNode(m.target)||(m.key===" "||m.key==="Enter"||m.keyCode===32||m.keyCode===13)&&(m.preventDefault(),x1())},[v,x1]),ke=p.useCallback(function(){R({type:"focus"})},[]),ge=p.useCallback(function(){R({type:"blur"})},[]),Ze=p.useCallback(function(){F||($6()?setTimeout(x1,0):x1())},[F,x1]),v1=function(C){return r?null:C},w1=function(C){return M?null:v1(C)},T1=function(C){return b?null:v1(C)},H1=function(C){Z&&C.stopPropagation()},Ie=p.useMemo(function(){return function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=m.refKey,I=C===void 0?"ref":C,j=m.role,U=m.onKeyDown,y1=m.onFocus,W1=m.onBlur,h2=m.onClick,m2=m.onDragEnter,g2=m.onDragOver,Oe=m.onDragLeave,f2=m.onDrop,v2=Qe(m,H6);return Y(Y(L2({onKeyDown:w1(b1(U,Pe)),onFocus:w1(b1(y1,ke)),onBlur:w1(b1(W1,ge)),onClick:v1(b1(h2,Ze)),onDragEnter:T1(b1(m2,he)),onDragOver:T1(b1(g2,Re)),onDragLeave:T1(b1(Oe,me)),onDrop:T1(b1(f2,D1)),role:typeof j=="string"&&j!==""?j:"presentation"},I,v),!r&&!M?{tabIndex:0}:{}),v2)}},[v,Pe,ke,ge,Ze,he,Re,me,D1,M,b,r]),je=p.useCallback(function(m){m.stopPropagation()},[]),De=p.useMemo(function(){return function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=m.refKey,I=C===void 0?"ref":C,j=m.onChange,U=m.onClick,y1=Qe(m,W6),W1=L2({accept:_,multiple:l,type:"file",style:{display:"none"},onChange:v1(b1(j,D1)),onClick:v1(b1(U,je)),tabIndex:-1},I,x);return Y(Y({},W1),y1)}},[x,a,l,D1,r]);return Y(Y({},L),{},{isFocused:q&&!r,getRootProps:Ie,getInputProps:De,rootRef:v,inputRef:x,open:v1(x1)})}function X6(e,n){switch(n.type){case"focus":return Y(Y({},e),{},{isFocused:!0});case"blur":return Y(Y({},e),{},{isFocused:!1});case"openDialog":return Y(Y({},z2),{},{isFileDialogActive:!0});case"closeDialog":return Y(Y({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Y(Y({},e),{},{isDragActive:n.isDragActive,isDragAccept:n.isDragAccept,isDragReject:n.isDragReject});case"setFiles":return Y(Y({},e),{},{acceptedFiles:n.acceptedFiles,fileRejections:n.fileRejections});case"reset":return Y({},z2);default:return e}}function o0(){}const e7=e=>JSON.stringify(JSON.parse(e),null,4),t7=({onSuccess:e,onError:n})=>a=>{var o;const r=(o=a==null?void 0:a.target)==null?void 0:o.result;if(typeof r=="string")try{const i=e7(r);e(i)}catch{n("Cannot format as valid JSON")}else n("Unsupported format")},n7=({onSuccess:e,onError:n,children:a,onDragStatusChange:r,...o})=>{const i=p.useCallback(([u])=>{const f=new FileReader;f.onload=t7({onSuccess:e,onError:n}),f.readAsText(u)},[]),{getRootProps:c,getInputProps:l,isDragActive:h}=bt({onDrop:i,accept:{"application/json":[".json"]},maxFiles:1});return p.useEffect(()=>{r(h)},[h]),s(w,{...c(),...o,children:[t("input",{...l()}),a]})},a7=d(n7)(({theme:e})=>({padding:e.spacing(4,2,2,2),border:`1px dashed ${e.palette.secondary.border}`,borderRadius:e.shape.borderRadiusLarge,display:"flex",flexDirection:"column",alignItems:"center"})),Ct=d(Te,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:n})=>({transition:"background-color 0.5s ease",backgroundColor:n?e.palette.primary.main:e.palette.tertiary.main,"@keyframes pulse":{"0%":{boxShadow:`0 0 0 0px ${S3(e.palette.primary.main,.7)}`},"100%":{boxShadow:`0 0 0 20px ${S3(e.palette.primary.main,0)}`}},animation:n?"pulse 2s infinite":""})),r7=d(w)(({theme:e})=>({backgroundColor:e.palette.secondaryContainer,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),Z2=d(D)(({theme:e})=>({marginBottom:e.spacing(.5)})),I2=d(w)(({theme:e})=>({marginBottom:e.spacing(3),color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody})),o7=()=>s(r7,{children:[t(Z2,{children:"What is being imported?"}),s(I2,{children:["Feature toggles will be imported with full configuration:",s("ul",{children:[t("li",{children:"strategies"}),t("li",{children:"context fields"}),t("li",{children:"variants"}),t("li",{children:"tags"}),t("li",{children:"feature toggle status"})]})]}),t(Z2,{children:"Exceptions?"}),t(I2,{children:"If the feature toggle already exists in the new instance, it will be overwritten"}),t(Z2,{children:"What is not imported?"}),t(I2,{sx:{marginBottom:0},children:"If we detect segments or custom strategies in your imported file, we will stop the import. You need to create them first in the new instance and run the import again"})]}),v3=d("div")(({theme:e})=>({backgroundColor:"#fff",padding:e.spacing(5,8,3,8),display:"flex",flexDirection:"column",gap:e.spacing(3),flexBasis:"70%"})),y3=d(w)(({theme:e})=>({width:"100%",borderTop:`1px solid ${e.palette.dividerAlternative}`,marginTop:"auto",paddingTop:e.spacing(3),display:"flex",justifyContent:"flex-end"})),i7=d(qe)(({theme:e})=>({width:"100%"})),s7=d(D)(({theme:e})=>({marginTop:e.spacing(4),fontSize:e.fontSizes.mainHeader})),c7=d(D)(({theme:e})=>({marginTop:e.spacing(2),marginBottom:e.spacing(1.5),color:e.palette.text.secondary})),l7=d(D)(({theme:e})=>({marginTop:e.spacing(4),color:e.palette.text.secondary})),d7=({activeTab:e,setActiveTab:n})=>t(w,{sx:{borderBottom:1,borderColor:"divider"},children:s(X2,{value:e,children:[t(Ue,{label:"Upload file",value:"file",onClick:()=>n("file")}),t(Ue,{label:"Code editor",value:"code","data-testid":I4,onClick:()=>n("code")})]})}),p7=({activeTab:e,setActiveTab:n,importPayload:a,setImportPayload:r})=>{const[o,i]=p.useState(!1),{setToastData:c}=g1();return t(S,{condition:e==="file",show:s(a7,{onSuccess:l=>{r(l),n("code"),c({type:"success",title:"File uploaded"})},onError:l=>{r(""),c({type:"error",title:l})},onDragStatusChange:i,children:[t(Ct,{sx:{width:80,height:80},active:o,children:t(pn,{fontSize:"large"})}),t(s7,{children:o?"Drop your file to upload":"Drop your file here"}),t(c7,{children:"or select a file from your device"}),t(m1,{variant:"outlined",children:"Select file"}),t(l7,{children:"JSON format: max 500 kB"})]}),elseShow:t(i7,{label:"Exported toggles",variant:"outlined",onChange:l=>r(l.target.value),value:a,"data-testid":j4,multiline:!0,minRows:13,maxRows:13})})},u7=({onSubmit:e,onClose:n,disabled:a})=>s(y3,{children:[t(m1,{sx:{position:"static"},variant:"contained",type:"submit",onClick:e,"data-testid":D4,disabled:a,children:"Validate"}),t(m1,{sx:{position:"static",ml:2},variant:"outlined",type:"submit",onClick:n,children:"Cancel import"})]}),h7=({tabs:e,importOptions:n,importArea:a,actions:r})=>s(v3,{children:[e,n,a,t(o7,{}),r]}),m7=()=>{const{makeRequest:e,createRequest:n,errors:a,loading:r}=a3({propagateErrors:!0});return{loading:r,errors:a,validateImport:async i=>{const l=n("api/admin/features-batch/validate",{method:"POST",body:JSON.stringify(i)});try{return(await e(l.caller,l.id)).json()}catch(h){throw h}}}},g7=d(w)(({theme:e})=>({backgroundColor:e.palette.secondaryContainer,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),i0=d("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary})),s0=d("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.primary,fontWeight:e.fontWeight.bold})),c0=d(w)(({theme:e})=>({border:`1px solid ${e.palette.error.border}`,borderRadius:e.shape.borderRadiusLarge,paddingBottom:e.spacing(2)})),f7=d(w)(({theme:e})=>({border:`1px solid ${e.palette.warning.border}`,borderRadius:e.shape.borderRadiusLarge,paddingBottom:e.spacing(2)})),l0=d(w)(({theme:e})=>({color:e.palette.error.dark,backgroundColor:e.palette.error.light,fontSize:e.fontSizes.smallBody,borderBottom:`1px solid ${e.palette.error.border}`,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge,padding:e.spacing(2)})),v7=d(w)(({theme:e})=>({color:e.palette.warning.dark,backgroundColor:e.palette.warning.light,fontSize:e.fontSizes.smallBody,borderBottom:`1px solid ${e.palette.warning.border}`,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge,padding:e.spacing(2)})),d0=d(w)(({theme:e})=>({color:e.palette.error.dark,fontSize:e.fontSizes.smallBody})),y7=d(w)(({theme:e})=>({color:e.palette.warning.dark,fontSize:e.fontSizes.smallBody})),j2=d("ul")(({theme:e})=>({marginTop:e.spacing(1),marginBottom:e.spacing(0),paddingLeft:e.spacing(3),paddingBottom:e.spacing(3),borderBottom:`1px dashed ${e.palette.neutral.border}`})),D2=d("li")(({theme:e})=>({fontSize:e.fontSizes.smallBody})),b7=({environment:e,project:n,payload:a,onClose:r,onBack:o,onSubmit:i})=>{const{validateImport:c}=m7(),{setToastData:l}=g1(),{trackEvent:h}=ne(),[u,f]=p.useState({errors:[],warnings:[],permissions:[]}),[g,y]=p.useState(!0),T=E=>{E.errors.length>0||E.permissions.length>0?h("export_import",{props:{eventType:"validation fail"}}):h("export_import",{props:{eventType:"validation success"}}),f(E)};return p.useEffect(()=>{c({environment:e,project:n,data:JSON.parse(a)}).then(T).catch(E=>{y(!1),l({type:"error",title:C1(E)})})},[]),s(v3,{children:[s(g7,{children:[t(D,{sx:{mb:1.5},children:"You are importing this configuration in:"}),s(w,{sx:{display:"flex",gap:3},children:[s("span",{children:[t(i0,{children:"Environment: "}),t(s0,{children:e})]}),s("span",{children:[t(i0,{children:"Project: "}),t(s0,{children:n})]})]})]}),t(S,{condition:u.permissions.length>0,show:s(c0,{children:[s(l0,{children:[t("strong",{children:"Missing permissions!"})," There are some permissions that you need to be granted before importing this configuration"]}),u.permissions.map(E=>s(w,{sx:{p:2},children:[t(d0,{children:E.message}),t(j2,{children:E.affectedItems.map(P=>t(D2,{children:P},P))})]},E.message))]})}),t(S,{condition:u.errors.length>0,show:s(c0,{children:[s(l0,{children:[t("strong",{children:"Conflict!"})," There are some errors that need to be fixed before the import."]}),u.errors.map(E=>s(w,{sx:{p:2},children:[t(d0,{children:E.message}),t(j2,{children:E.affectedItems.map(P=>t(D2,{children:P},P))})]},E.message))]})}),t(S,{condition:u.warnings.length>0,show:s(f7,{children:[s(v7,{children:[t("strong",{children:"Warning!"})," It is recommended to verify the following information before importing."]}),u.warnings.map(E=>s(w,{sx:{p:2},children:[t(y7,{children:E.message}),t(j2,{children:E.affectedItems.map(P=>t(D2,{children:P},P))})]},E.message))]})}),s(y3,{children:[t(m1,{sx:{position:"static",mr:"auto"},variant:"outlined",type:"submit",onClick:o,children:"Back"}),t(Q2,{permission:q2,projectId:n,sx:{position:"static"},variant:"contained",type:"submit",onClick:i,"data-testid":O4,disabled:u.errors.length>0||u.permissions.length>0||!g,children:"Import configuration"}),t(m1,{sx:{position:"static",ml:2},variant:"outlined",type:"submit",onClick:r,children:"Cancel import"})]})]})},C7=()=>{const{makeRequest:e,createRequest:n,errors:a,loading:r}=a3({propagateErrors:!0}),{trackEvent:o}=ne();return{loading:r,errors:a,createImport:async c=>{const h=n("api/admin/features-batch/import",{method:"POST",body:JSON.stringify(c)});try{const u=await e(h.caller,h.id);return o("export_import",{props:{eventType:"features imported"}}),u}catch(u){throw u}}}},S7=d(z0)(({theme:e})=>({padding:e.spacing(4,2,2,2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(8)})),x7=d(D)(({theme:e})=>({fontSize:e.fontSizes.mainHeader})),w7=d(Te)(({theme:e})=>({backgroundColor:e.palette.primary.main})),T7=d(Te)(({theme:e})=>({backgroundColor:e.palette.error.main})),A7=d(z0)(({theme:e})=>({border:`1px solid ${e.palette.info.border}`,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(2),color:e.palette.info.dark,backgroundColor:e.palette.info.light,fontSize:e.fontSizes.smallBody})),E7=(e,n)=>e?{status:"loading"}:Object.keys(n).length>0?{status:"error",errors:n}:{status:"success"},R7=({environment:e,project:n,payload:a,onClose:r})=>{const{createImport:o,loading:i,errors:c}=C7(),{refetch:l}=J1(n),{refetch:h}=J2(n),{setToastData:u}=g1(),{isChangeRequestConfigured:f}=o2(n);p.useEffect(()=>{o({environment:e,project:n,data:JSON.parse(a)}).then(()=>{l(),h()}).catch(T=>{u({type:"error",title:C1(T)})})},[]);const g=E7(i,c),y=f(e)&&g.status==="success";return s(v3,{children:[s(S7,{children:[t(S,{condition:g.status==="loading",show:t(Ct,{sx:{width:80,height:80},active:!0,children:t(mn,{fontSize:"large"})})}),t(S,{condition:g.status==="success",show:t(w7,{sx:{width:80,height:80},children:t(P0,{fontSize:"large"})})}),t(S,{condition:g.status==="error",show:t(T7,{sx:{width:80,height:80},children:t(dn,{fontSize:"large"})})}),s(x7,{children:[t(S,{condition:g.status==="loading",show:"Importing..."}),t(S,{condition:g.status==="success",show:"Import completed"}),t(S,{condition:g.status==="error",show:"Import failed"})]})]}),t(S,{condition:y,show:s(A7,{children:["For this environment ",t("strong",{children:"Change request"})," is enabled. This means that the import was generating a change request and it needs to be approved before the configuration will be visible in the instance."]})}),t(y3,{children:t(m1,{sx:{position:"static"},variant:"contained",type:"submit",onClick:r,children:"Close"})})]})},P7=d(w)(({theme:e})=>({backgroundColor:e.palette.secondaryContainer,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),k7=d(D)(({theme:e})=>({marginBottom:e.spacing(3),fontWeight:e.fontWeight.bold})),Z7=d(D)(({theme:e})=>({marginBottom:e.spacing(1.5)})),I7=({project:e,environment:n,onChange:a})=>{const{project:r}=J1(e),o=r.environments.map(i=>({key:i,label:i,title:i}));return p.useEffect(()=>{n===""&&o[0]&&a(o[0].key)},[JSON.stringify(o)]),s(P7,{children:[t(k7,{children:"Import options"}),t(Z7,{children:"Choose the environment to import the configuration for"}),t(F0,{sx:{width:"180px"},options:o,onChange:a,label:"Environment",value:n,"data-testid":$4,IconComponent:_0,fullWidth:!0})]})},j7=d("div")(({theme:e})=>({minHeight:"100vh",display:"flex"})),D7=d("div")(({theme:e})=>({backgroundColor:e.palette.primary.main,padding:e.spacing(6,8,3,4),flexBasis:"30%"})),O7=d("div")(({theme:e})=>({textTransform:"uppercase",fontSize:e.fontSizes.smallBody,color:e.palette.text.tertiaryContrast,fontWeight:e.typography.fontWeightBold,paddingLeft:e.spacing(2),marginBottom:e.spacing(4)})),$7=e=>{try{return JSON.parse(e),!0}catch{return!1}},B7=({open:e,setOpen:n,project:a})=>{const[r,o]=p.useState("configure"),[i,c]=p.useState(""),[l,h]=p.useState(""),[u,f]=p.useState("file"),g=()=>{n(!1)};p.useEffect(()=>{e===!0&&y()},[e]);const y=()=>{o("configure"),c(""),h(""),f("file")};return t(d2,{open:e,onClose:g,label:"Import toggles",children:s(j7,{children:[s(D7,{children:[t(O7,{children:"Process"}),t(i6,{stage:r})]}),t(S,{condition:r==="configure",show:t(h7,{tabs:t(d7,{activeTab:u,setActiveTab:f}),importOptions:t(I7,{project:a,environment:i,onChange:c}),importArea:t(p7,{activeTab:u,setActiveTab:f,importPayload:l,setImportPayload:h}),actions:t(u7,{disabled:!$7(l),onSubmit:()=>o("validate"),onClose:g})})}),t(S,{condition:r==="validate",show:t(b7,{project:a,environment:i,payload:l,onBack:()=>o("configure"),onSubmit:()=>o("import"),onClose:g})}),t(S,{condition:r==="import",show:t(R7,{project:a,environment:i,payload:l,onClose:g})})]})})},M7=()=>{var b,Z;const e=G("projectId"),n=B4(),{project:a,loading:r,refetch:o}=J1(e),i=w0(r),{setToastData:c}=g1(),[l,h]=p.useState(!1),u=L1(),{pathname:f}=V0(),{isOss:g,uiConfig:y}=s1(),T=`/projects/${e}`,E=(a==null?void 0:a.name)||e,{favorite:P,unfavorite:$}=F4(),[A,B]=p.useState(!1),H=[{title:"Overview",path:T,name:"overview"},{title:"Health",path:`${T}/health`,name:"health"},{title:"Archive",path:`${T}/archive`,name:"archive"},{title:"Change requests",path:`${T}/change-requests`,name:"change-request"},{title:"Project settings",path:`${T}/settings`,name:"settings"},{title:"Event log",path:`${T}/logs`,name:"logs"}],F=[...H].reverse().find(V=>f.startsWith(V.path));return p.useEffect(()=>{const V=n.get("created"),W=n.get("edited");(V||W)&&c({type:"success",title:V?"Project created":"Project updated"})},[]),s("div",{ref:i,children:[s(xn,{children:[s(wn,{children:[s(yn,{children:[s(Be,{children:[t(Sn,{onClick:async()=>{a!=null&&a.favorite?await $(e):await P(e),o()},isFavorite:a==null?void 0:a.favorite}),t(w3,{children:t(Cn,{"data-loading":!0,children:E})})]}),s(Be,{children:[t(S,{condition:Boolean((b=y==null?void 0:y.flags)==null?void 0:b.featuresExportImport),show:t($1,{permission:u0,projectId:e,onClick:()=>h(!0),tooltipProps:{title:"Import"},"data-testid":_4,"data-loading":!0,children:t(hn,{})})}),t(S,{condition:!g(),show:t($1,{permission:A1,projectId:e,onClick:()=>u(`/projects/${e}/edit`),tooltipProps:{title:"Edit project"},"data-loading":!0,children:t(t3,{})})}),t(S,{condition:!g(),show:t($1,{permission:V4,projectId:e,onClick:()=>{B(!0)},tooltipProps:{title:"Delete project"},"data-loading":!0,children:t(n3,{})})})]})]}),t(S,{condition:!Boolean((Z=y==null?void 0:y.flags)==null?void 0:Z.newProjectOverview),show:()=>t(bn,{children:t(w3,{children:s("div",{children:[t(S,{condition:Boolean(a.description),show:s(Be,{children:[t(O2,{"data-loading":!0,children:"Description: "}),t(x3,{"data-loading":!0,children:a.description})]})}),s(Be,{children:[t(O2,{"data-loading":!0,children:"projectId: "}),t(x3,{"data-loading":!0,children:e})]})]})})})})]}),t(Tn,{}),t(An,{children:t(X2,{value:F==null?void 0:F.path,indicatorColor:"primary",textColor:"primary",variant:"scrollable",allowScrollButtonsMobile:!0,children:H.map(V=>t(En,{label:V.title,value:V.path,onClick:()=>u(V.path)},V.title))})})]}),t(L4,{project:e,open:A,onClose:()=>{B(!1)},onSuccess:()=>{u("/projects")}}),s(p2,{children:[t(r1,{path:"health",element:t(Ir,{})}),t(r1,{path:"access/*",element:t(L0,{replace:!0,to:`/projects/${e}/settings/access`})}),t(r1,{path:"environments",element:t(M0,{})}),t(r1,{path:"archive",element:t(zn,{})}),t(r1,{path:"logs",element:t(Dr,{})}),t(r1,{path:"change-requests",element:t(C5,{})}),t(r1,{path:"change-requests/:id",element:t(d5,{})}),t(r1,{path:"settings/*",element:t(r6,{})}),t(r1,{path:"*",element:t(pr,{})})]}),t(B7,{open:l,setOpen:h,project:e})]})};export{M7 as default};
|
|
9
|
+
--data-raw '${JSON.stringify(h(),void 0,2)}'`,children:[s(tn,{handleSubmit:async n1=>{if(n1.preventDefault(),!!P())try{const K=h();await B(K,e).then(v=>v.json()).then(v=>{I4(),l(v.secret),i(!0),M("project_api_tokens",{props:{eventType:"api_key_created"}}),F()})}catch(K){n(b1(K))}},handleCancel:()=>{r(N1)},mode:"Create",actions:t(Z4,{name:"token",permission:k4,projectId:e}),children:[t(nn,{username:u,setUsername:y,errors:$,clearErrors:A}),t(an,{type:f,setType:T}),t(rn,{type:f,environment:g,setEnvironment:E})]}),t(on,{open:o,closeConfirm:()=>{i(!1),r(N1)},token:c,type:f})]})},t6=()=>{const e=L1();return t(d2,{open:!0,onClose:()=>e(N1),label:"Create API token",children:t(e6,{})})},n6=()=>{const e=G("projectId"),n=k1(e),{hasAccess:a}=p.useContext(ie),{tokens:r,loading:o,refetch:i}=ct(e),{trackEvent:c}=we(),{deleteToken:l}=st();E1(`Project api access – ${n}`);const{getTableProps:h,getTableBodyProps:u,headerGroups:f,rows:g,prepareRow:y,state:{globalFilter:T},setGlobalFilter:E,setHiddenColumns:P,columns:$}=sn(r,A=>s(H2,{children:[t(cn,{token:A.row.original,permission:C3,project:e,track:()=>c("project_api_tokens",{props:{eventType:"api_key_copied"}})}),t(ln,{token:A.row.original,permission:K5,project:e,onRemove:async()=>{await l(A.row.original.secret,e),c("project_api_tokens",{props:{eventType:"api_key_deleted"}}),i()}})]}));return a(C3,e)?s("div",{style:{width:"100%",overflow:"hidden"},children:[t(c1,{header:t(o1,{title:`API access (${g.length})`,actions:s(J,{children:[t(C1,{initialValue:T,onChange:E}),t(o1.Divider,{}),t(dn,{permission:G5,path:"create"})]})}),children:t(pn,{compact:!0,loading:o,headerGroups:f,setHiddenColumns:P,prepareRow:y,getTableBodyProps:u,getTableProps:h,rows:g,columns:$,globalFilter:T})}),t(p2,{children:t(r1,{path:"create",element:t(t6,{})})})]}):t(c1,{header:t(o1,{title:"Api access"}),children:t(F1,{severity:"error",children:"You need to be a member of the project or admin to access this section."})})},a6=()=>{var c;const e=V0(),n=L1(),{uiConfig:a}=l1(),{showProjectApiAccess:r}=a.flags,o=[{id:"environments",label:"Environments"},{id:"access",label:"Access"},{id:"change-requests",label:"Change request configuration"}];Boolean(r)&&o.push({id:"api-access",label:"API access"});const i=l=>{n(l.id)};return t(j4,{tabs:o,value:((c=o.find(({id:l})=>{var h;return l&&((h=e.pathname)==null?void 0:h.includes(`/${l}`))}))==null?void 0:c.id)||o[0].id,onChange:i,children:s(p2,{children:[t(r1,{path:"environments/*",element:t(M0,{})}),t(r1,{path:"access/*",element:t(q5,{})}),t(r1,{path:"change-requests/*",element:t(Q5,{})}),Boolean(r)&&t(r1,{path:"api-access/*",element:t(n6,{})}),t(r1,{path:"*",element:t(L0,{replace:!0,to:o[0].id})})]})})},r6=d(Q0)(()=>({[`& .${et.root}:before`]:{flex:0,padding:0}})),q3=d(p3)(({theme:e})=>({width:"1px",backgroundColor:e.palette.neutral.border})),A2=d(tt,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:n})=>({color:n?e.palette.primary.main:e.palette.neutral.border,backgroundColor:n?e.palette.text.tertiaryContrast:"initial",fontWeight:n?e.fontWeight.bold:e.fontWeight.medium,borderColor:e.palette.neutral.border,width:"40px",height:"40px",borderWidth:"1px",display:"flex",alignItems:"center",justifyContent:"center"})),E2=d(X0,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:n})=>({marginBottom:e.spacing(6),color:n?e.palette.text.tertiaryContrast:e.palette.neutral.border,marginTop:e.spacing(2)})),R2=d(w)(({theme:e})=>({fontWeight:e.fontWeight.bold,fontSize:e.fontSizes.bodySize})),P2=d(w)(({theme:e})=>({fontSize:e.fontSizes.smallerBody})),o6=({stage:e})=>s(r6,{children:[s(Me,{children:[s(He,{children:[t(A2,{variant:"outlined",active:e==="configure",children:"1"}),t(q3,{})]}),s(E2,{active:e==="configure",children:[t(R2,{children:"Import file"}),t(P2,{children:"Import previously exported toggle configuration from another Unleash instance as a JSON file"})]})]}),s(Me,{children:[s(He,{children:[t(A2,{variant:"outlined",active:e==="validate",children:"2"}),t(q3,{})]}),s(E2,{active:e==="validate",children:[t(R2,{children:"Validate configuration"}),t(P2,{children:"Check the errors and warnings from the import process"})]})]}),s(Me,{children:[t(He,{children:t(A2,{variant:"outlined",active:e==="import",children:"3"})}),s(E2,{active:e==="import",children:[t(R2,{children:"Finish import"}),t(P2,{children:"Feature toggle configuration will be imported to your new Unleash instance"})]})]})]});function de(e,n,a,r){function o(i){return i instanceof a?i:new a(function(c){c(i)})}return new(a||(a=Promise))(function(i,c){function l(f){try{u(r.next(f))}catch(g){c(g)}}function h(f){try{u(r.throw(f))}catch(g){c(g)}}function u(f){f.done?i(f.value):o(f.value).then(l,h)}u((r=r.apply(e,n||[])).next())})}function pe(e,n){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,c;return c={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function l(u){return function(f){return h([u,f])}}function h(u){if(r)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(a=0)),a;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,o=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){a=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(u[0]===6&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=n.call(e,a)}catch(f){u=[6,f],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function G3(e,n){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),o,i=[],c;try{for(;(n===void 0||n-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){c={error:l}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(c)throw c.error}}return i}function K3(e,n,a){if(a||arguments.length===2)for(var r=0,o=n.length,i;r<o;r++)(i||!(r in n))&&(i||(i=Array.prototype.slice.call(n,0,r)),i[r]=n[r]);return e.concat(i||Array.prototype.slice.call(n))}var i6=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Ae(e,n){var a=s6(e);if(typeof a.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(a,"path",{value:typeof n=="string"?n:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return a}function s6(e){var n=e.name,a=n&&n.lastIndexOf(".")!==-1;if(a&&!e.type){var r=n.split(".").pop().toLowerCase(),o=i6.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var c6=[".DS_Store","Thumbs.db"];function l6(e){return de(this,void 0,void 0,function(){return pe(this,function(n){return Ke(e)&&d6(e.dataTransfer)?[2,m6(e.dataTransfer,e.type)]:p6(e)?[2,u6(e)]:Array.isArray(e)&&e.every(function(a){return"getFile"in a&&typeof a.getFile=="function"})?[2,h6(e)]:[2,[]]})})}function d6(e){return Ke(e)}function p6(e){return Ke(e)&&Ke(e.target)}function Ke(e){return typeof e=="object"&&e!==null}function u6(e){return F2(e.target.files).map(function(n){return Ae(n)})}function h6(e){return de(this,void 0,void 0,function(){var n;return pe(this,function(a){switch(a.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return n=a.sent(),[2,n.map(function(r){return Ae(r)})]}})})}function m6(e,n){return de(this,void 0,void 0,function(){var a,r;return pe(this,function(o){switch(o.label){case 0:return e.items?(a=F2(e.items).filter(function(i){return i.kind==="file"}),n!=="drop"?[2,a]:[4,Promise.all(a.map(g6))]):[3,2];case 1:return r=o.sent(),[2,J3(lt(r))];case 2:return[2,J3(F2(e.files).map(function(i){return Ae(i)}))]}})})}function J3(e){return e.filter(function(n){return c6.indexOf(n.name)===-1})}function F2(e){if(e===null)return[];for(var n=[],a=0;a<e.length;a++){var r=e[a];n.push(r)}return n}function g6(e){if(typeof e.webkitGetAsEntry!="function")return Y3(e);var n=e.webkitGetAsEntry();return n&&n.isDirectory?dt(n):Y3(e)}function lt(e){return e.reduce(function(n,a){return K3(K3([],G3(n),!1),G3(Array.isArray(a)?lt(a):[a]),!1)},[])}function Y3(e){var n=e.getAsFile();if(!n)return Promise.reject("".concat(e," is not a File"));var a=Ae(n);return Promise.resolve(a)}function f6(e){return de(this,void 0,void 0,function(){return pe(this,function(n){return[2,e.isDirectory?dt(e):v6(e)]})})}function dt(e){var n=e.createReader();return new Promise(function(a,r){var o=[];function i(){var c=this;n.readEntries(function(l){return de(c,void 0,void 0,function(){var h,u,f;return pe(this,function(g){switch(g.label){case 0:if(l.length)return[3,5];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return h=g.sent(),a(h),[3,4];case 3:return u=g.sent(),r(u),[3,4];case 4:return[3,6];case 5:f=Promise.all(l.map(f6)),o.push(f),i(),g.label=6;case 6:return[2]}})})},function(l){r(l)})}i()})}function v6(e){return de(this,void 0,void 0,function(){return pe(this,function(n){return[2,new Promise(function(a,r){e.file(function(o){var i=Ae(o,e.fullPath);a(i)},function(o){r(o)})})]})})}var y6=function(e,n){if(e&&n){var a=Array.isArray(n)?n:n.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return a.some(function(c){var l=c.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0};function Q3(e){return S6(e)||C6(e)||ut(e)||b6()}function b6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
10
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function S6(e){if(Array.isArray(e))return _2(e)}function X3(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,r)}return a}function e0(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?X3(Object(a),!0).forEach(function(r){pt(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):X3(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function pt(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function be(e,n){return T6(e)||w6(e,n)||ut(e,n)||x6()}function x6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ut(e,n){if(e){if(typeof e=="string")return _2(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _2(e,n)}}function _2(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=new Array(n);a<n;a++)r[a]=e[a];return r}function w6(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],o=!0,i=!1,c,l;try{for(a=a.call(e);!(o=(c=a.next()).done)&&(r.push(c.value),!(n&&r.length===n));o=!0);}catch(h){i=!0,l=h}finally{try{!o&&a.return!=null&&a.return()}finally{if(i)throw l}}return r}}function T6(e){if(Array.isArray(e))return e}var A6="file-invalid-type",E6="file-too-large",R6="file-too-small",P6="too-many-files",Z6=function(n){n=Array.isArray(n)&&n.length===1?n[0]:n;var a=Array.isArray(n)?"one of ".concat(n.join(", ")):n;return{code:A6,message:"File type must be ".concat(a)}},t0=function(n){return{code:E6,message:"File is larger than ".concat(n," ").concat(n===1?"byte":"bytes")}},n0=function(n){return{code:R6,message:"File is smaller than ".concat(n," ").concat(n===1?"byte":"bytes")}},k6={code:P6,message:"Too many files"};function ht(e,n){var a=e.type==="application/x-moz-file"||y6(e,n);return[a,a?null:Z6(n)]}function mt(e,n,a){if(O1(e.size))if(O1(n)&&O1(a)){if(e.size>a)return[!1,t0(a)];if(e.size<n)return[!1,n0(n)]}else{if(O1(n)&&e.size<n)return[!1,n0(n)];if(O1(a)&&e.size>a)return[!1,t0(a)]}return[!0,null]}function O1(e){return e!=null}function I6(e){var n=e.files,a=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,c=e.maxFiles,l=e.validator;return!i&&n.length>1||i&&c>=1&&n.length>c?!1:n.every(function(h){var u=ht(h,a),f=be(u,1),g=f[0],y=mt(h,r,o),T=be(y,1),E=T[0],P=l?l(h):null;return g&&E&&!P})}function Je(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function _e(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(n){return n==="Files"||n==="application/x-moz-file"}):!!e.target&&!!e.target.files}function a0(e){e.preventDefault()}function j6(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function D6(e){return e.indexOf("Edge/")!==-1}function O6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return j6(e)||D6(e)}function y1(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),c=1;c<o;c++)i[c-1]=arguments[c];return n.some(function(l){return!Je(r)&&l&&l.apply(void 0,[r].concat(i)),Je(r)})}}function $6(){return"showOpenFilePicker"in window}function B6(e){if(O1(e)){var n=Object.entries(e).filter(function(a){var r=be(a,2),o=r[0],i=r[1],c=!0;return gt(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),c=!1),(!Array.isArray(i)||!i.every(ft))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),c=!1),c}).reduce(function(a,r){var o=be(r,2),i=o[0],c=o[1];return e0(e0({},a),{},pt({},i,c))},{});return[{description:"Files",accept:n}]}return e}function F6(e){if(O1(e))return Object.entries(e).reduce(function(n,a){var r=be(a,2),o=r[0],i=r[1];return[].concat(Q3(n),[o],Q3(i))},[]).filter(function(n){return gt(n)||ft(n)}).join(",")}function _6(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function V6(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function gt(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function ft(e){return/^.*\.[\w]+$/.test(e)}var L6=["children"],z6=["open"],M6=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],H6=["refKey","onChange","onClick"];function W6(e){return q6(e)||U6(e)||vt(e)||N6()}function N6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q6(e){if(Array.isArray(e))return V2(e)}function Z2(e,n){return J6(e)||K6(e,n)||vt(e,n)||G6()}function G6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vt(e,n){if(e){if(typeof e=="string")return V2(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return V2(e,n)}}function V2(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=new Array(n);a<n;a++)r[a]=e[a];return r}function K6(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],o=!0,i=!1,c,l;try{for(a=a.call(e);!(o=(c=a.next()).done)&&(r.push(c.value),!(n&&r.length===n));o=!0);}catch(h){i=!0,l=h}finally{try{!o&&a.return!=null&&a.return()}finally{if(i)throw l}}return r}}function J6(e){if(Array.isArray(e))return e}function r0(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,r)}return a}function Y(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?r0(Object(a),!0).forEach(function(r){L2(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r0(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function L2(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function Ye(e,n){if(e==null)return{};var a=Y6(e,n),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Y6(e,n){if(e==null)return{};var a={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(n.indexOf(o)>=0)&&(a[o]=e[o]);return a}var f3=p.forwardRef(function(e,n){var a=e.children,r=Ye(e,L6),o=bt(r),i=o.open,c=Ye(o,z6);return p.useImperativeHandle(n,function(){return{open:i}},[i]),ve.createElement(p.Fragment,null,a(Y(Y({},c),{},{open:i})))});f3.displayName="Dropzone";var yt={disabled:!1,getFilesFromEvent:l6,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};f3.defaultProps=yt;f3.propTypes={children:N.func,accept:N.objectOf(N.arrayOf(N.string)),multiple:N.bool,preventDropOnDocument:N.bool,noClick:N.bool,noKeyboard:N.bool,noDrag:N.bool,noDragEventsBubbling:N.bool,minSize:N.number,maxSize:N.number,maxFiles:N.number,disabled:N.bool,getFilesFromEvent:N.func,onFileDialogCancel:N.func,onFileDialogOpen:N.func,useFsAccessApi:N.bool,autoFocus:N.bool,onDragEnter:N.func,onDragLeave:N.func,onDragOver:N.func,onDrop:N.func,onDropAccepted:N.func,onDropRejected:N.func,onError:N.func,validator:N.func};var z2={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function bt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Y(Y({},yt),e),a=n.accept,r=n.disabled,o=n.getFilesFromEvent,i=n.maxSize,c=n.minSize,l=n.multiple,h=n.maxFiles,u=n.onDragEnter,f=n.onDragLeave,g=n.onDragOver,y=n.onDrop,T=n.onDropAccepted,E=n.onDropRejected,P=n.onFileDialogCancel,$=n.onFileDialogOpen,A=n.useFsAccessApi,B=n.autoFocus,H=n.preventDropOnDocument,F=n.noClick,M=n.noKeyboard,b=n.noDrag,k=n.noDragEventsBubbling,V=n.onError,W=n.validator,_=p.useMemo(function(){return F6(a)},[a]),s1=p.useMemo(function(){return B6(a)},[a]),n1=p.useMemo(function(){return typeof $=="function"?$:o0},[$]),K=p.useMemo(function(){return typeof P=="function"?P:o0},[P]),v=p.useRef(null),x=p.useRef(null),O=p.useReducer(Q6,z2),Z=Z2(O,2),L=Z[0],R=Z[1],q=L.isFocused,i1=L.isFileDialogActive,a1=p.useRef(typeof window<"u"&&window.isSecureContext&&A&&$6()),p1=function(){!a1.current&&i1&&setTimeout(function(){if(x.current){var C=x.current.files;C.length||(R({type:"closeDialog"}),K())}},300)};p.useEffect(function(){return window.addEventListener("focus",p1,!1),function(){window.removeEventListener("focus",p1,!1)}},[x,i1,K,a1]);var P1=p.useRef([]),j1=function(C){v.current&&v.current.contains(C.target)||(C.preventDefault(),P1.current=[])};p.useEffect(function(){return H&&(document.addEventListener("dragover",a0,!1),document.addEventListener("drop",j1,!1)),function(){H&&(document.removeEventListener("dragover",a0),document.removeEventListener("drop",j1))}},[v,H]),p.useEffect(function(){return!r&&B&&v.current&&v.current.focus(),function(){}},[v,B,r]);var X=p.useCallback(function(m){V?V(m):console.error(m)},[V]),ue=p.useCallback(function(m){m.preventDefault(),m.persist(),H1(m),P1.current=[].concat(W6(P1.current),[m.target]),_e(m)&&Promise.resolve(o(m)).then(function(C){if(!(Je(m)&&!k)){var I=C.length,j=I>0&&I6({files:C,accept:_,minSize:c,maxSize:i,multiple:l,maxFiles:h,validator:W}),U=I>0&&!j;R({isDragAccept:j,isDragReject:U,isDragActive:!0,type:"setDraggedFiles"}),u&&u(m)}}).catch(function(C){return X(C)})},[o,u,X,k,_,c,i,l,h,W]),Ee=p.useCallback(function(m){m.preventDefault(),m.persist(),H1(m);var C=_e(m);if(C&&m.dataTransfer)try{m.dataTransfer.dropEffect="copy"}catch{}return C&&g&&g(m),!1},[g,k]),he=p.useCallback(function(m){m.preventDefault(),m.persist(),H1(m);var C=P1.current.filter(function(j){return v.current&&v.current.contains(j)}),I=C.indexOf(m.target);I!==-1&&C.splice(I,1),P1.current=C,!(C.length>0)&&(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),_e(m)&&f&&f(m))},[v,f,k]),M1=p.useCallback(function(m,C){var I=[],j=[];m.forEach(function(U){var v1=ht(U,_),W1=Z2(v1,2),h2=W1[0],m2=W1[1],g2=mt(U,c,i),De=Z2(g2,2),f2=De[0],v2=De[1],y2=W?W(U):null;if(h2&&f2&&!y2)I.push(U);else{var b2=[m2,v2];y2&&(b2=b2.concat(y2)),j.push({file:U,errors:b2.filter(function(St){return St})})}}),(!l&&I.length>1||l&&h>=1&&I.length>h)&&(I.forEach(function(U){j.push({file:U,errors:[k6]})}),I.splice(0)),R({acceptedFiles:I,fileRejections:j,type:"setFiles"}),y&&y(I,j,C),j.length>0&&E&&E(j,C),I.length>0&&T&&T(I,C)},[R,l,_,c,i,h,y,T,E,W]),D1=p.useCallback(function(m){m.preventDefault(),m.persist(),H1(m),P1.current=[],_e(m)&&Promise.resolve(o(m)).then(function(C){Je(m)&&!k||M1(C,m)}).catch(function(C){return X(C)}),R({type:"reset"})},[o,M1,X,k]),x1=p.useCallback(function(){if(a1.current){R({type:"openDialog"}),n1();var m={multiple:l,types:s1};window.showOpenFilePicker(m).then(function(C){return o(C)}).then(function(C){M1(C,null),R({type:"closeDialog"})}).catch(function(C){_6(C)?(K(C),R({type:"closeDialog"})):V6(C)?(a1.current=!1,x.current?(x.current.value=null,x.current.click()):X(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):X(C)});return}x.current&&(R({type:"openDialog"}),n1(),x.current.value=null,x.current.click())},[R,n1,K,A,M1,X,s1,l]),Re=p.useCallback(function(m){!v.current||!v.current.isEqualNode(m.target)||(m.key===" "||m.key==="Enter"||m.keyCode===32||m.keyCode===13)&&(m.preventDefault(),x1())},[v,x1]),Pe=p.useCallback(function(){R({type:"focus"})},[]),me=p.useCallback(function(){R({type:"blur"})},[]),Ze=p.useCallback(function(){F||(O6()?setTimeout(x1,0):x1())},[F,x1]),f1=function(C){return r?null:C},w1=function(C){return M?null:f1(C)},T1=function(C){return b?null:f1(C)},H1=function(C){k&&C.stopPropagation()},ke=p.useMemo(function(){return function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=m.refKey,I=C===void 0?"ref":C,j=m.role,U=m.onKeyDown,v1=m.onFocus,W1=m.onBlur,h2=m.onClick,m2=m.onDragEnter,g2=m.onDragOver,De=m.onDragLeave,f2=m.onDrop,v2=Ye(m,M6);return Y(Y(L2({onKeyDown:w1(y1(U,Re)),onFocus:w1(y1(v1,Pe)),onBlur:w1(y1(W1,me)),onClick:f1(y1(h2,Ze)),onDragEnter:T1(y1(m2,ue)),onDragOver:T1(y1(g2,Ee)),onDragLeave:T1(y1(De,he)),onDrop:T1(y1(f2,D1)),role:typeof j=="string"&&j!==""?j:"presentation"},I,v),!r&&!M?{tabIndex:0}:{}),v2)}},[v,Re,Pe,me,Ze,ue,Ee,he,D1,M,b,r]),Ie=p.useCallback(function(m){m.stopPropagation()},[]),je=p.useMemo(function(){return function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=m.refKey,I=C===void 0?"ref":C,j=m.onChange,U=m.onClick,v1=Ye(m,H6),W1=L2({accept:_,multiple:l,type:"file",style:{display:"none"},onChange:f1(y1(j,D1)),onClick:f1(y1(U,Ie)),tabIndex:-1},I,x);return Y(Y({},W1),v1)}},[x,a,l,D1,r]);return Y(Y({},L),{},{isFocused:q&&!r,getRootProps:ke,getInputProps:je,rootRef:v,inputRef:x,open:f1(x1)})}function Q6(e,n){switch(n.type){case"focus":return Y(Y({},e),{},{isFocused:!0});case"blur":return Y(Y({},e),{},{isFocused:!1});case"openDialog":return Y(Y({},z2),{},{isFileDialogActive:!0});case"closeDialog":return Y(Y({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Y(Y({},e),{},{isDragActive:n.isDragActive,isDragAccept:n.isDragAccept,isDragReject:n.isDragReject});case"setFiles":return Y(Y({},e),{},{acceptedFiles:n.acceptedFiles,fileRejections:n.fileRejections});case"reset":return Y({},z2);default:return e}}function o0(){}const X6=e=>JSON.stringify(JSON.parse(e),null,4),e7=({onSuccess:e,onError:n})=>a=>{var o;const r=(o=a==null?void 0:a.target)==null?void 0:o.result;if(typeof r=="string")try{const i=X6(r);e(i)}catch{n("Cannot format as valid JSON")}else n("Unsupported format")},t7=({onSuccess:e,onError:n,children:a,onDragStatusChange:r,...o})=>{const i=p.useCallback(([u])=>{const f=new FileReader;f.onload=e7({onSuccess:e,onError:n}),f.readAsText(u)},[]),{getRootProps:c,getInputProps:l,isDragActive:h}=bt({onDrop:i,accept:{"application/json":[".json"]},maxFiles:1});return p.useEffect(()=>{r(h)},[h]),s(w,{...c(),...o,children:[t("input",{...l()}),a]})},n7=d(t7)(({theme:e})=>({padding:e.spacing(4,2,2,2),border:`1px dashed ${e.palette.secondary.border}`,borderRadius:e.shape.borderRadiusLarge,display:"flex",flexDirection:"column",alignItems:"center"})),Ct=d(xe,{shouldForwardProp:e=>e!=="active"})(({theme:e,active:n})=>({transition:"background-color 0.5s ease",backgroundColor:n?e.palette.primary.main:e.palette.tertiary.main,"@keyframes pulse":{"0%":{boxShadow:`0 0 0 0px ${S3(e.palette.primary.main,.7)}`},"100%":{boxShadow:`0 0 0 20px ${S3(e.palette.primary.main,0)}`}},animation:n?"pulse 2s infinite":""})),a7=d(w)(({theme:e})=>({backgroundColor:e.palette.secondaryContainer,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),k2=d(D)(({theme:e})=>({marginBottom:e.spacing(.5)})),I2=d(w)(({theme:e})=>({marginBottom:e.spacing(3),color:e.palette.text.secondary,fontSize:e.fontSizes.smallBody})),r7=()=>s(a7,{children:[t(k2,{children:"What is being imported?"}),s(I2,{children:["Feature toggles will be imported with full configuration:",s("ul",{children:[t("li",{children:"strategies"}),t("li",{children:"context fields"}),t("li",{children:"variants"}),t("li",{children:"tags"}),t("li",{children:"feature toggle status"})]})]}),t(k2,{children:"Exceptions?"}),t(I2,{children:"If the feature toggle already exists in the new instance, it will be overwritten"}),t(k2,{children:"What is not imported?"}),t(I2,{sx:{marginBottom:0},children:"If we detect segments or custom strategies in your imported file, we will stop the import. You need to create them first in the new instance and run the import again"})]}),v3=d("div")(({theme:e})=>({backgroundColor:"#fff",padding:e.spacing(5,8,3,8),display:"flex",flexDirection:"column",gap:e.spacing(3),flexBasis:"70%"})),y3=d(w)(({theme:e})=>({width:"100%",borderTop:`1px solid ${e.palette.dividerAlternative}`,marginTop:"auto",paddingTop:e.spacing(3),display:"flex",justifyContent:"flex-end"})),o7=d(Ue)(({theme:e})=>({width:"100%"})),i7=d(D)(({theme:e})=>({marginTop:e.spacing(4),fontSize:e.fontSizes.mainHeader})),s7=d(D)(({theme:e})=>({marginTop:e.spacing(2),marginBottom:e.spacing(1.5),color:e.palette.text.secondary})),c7=d(D)(({theme:e})=>({marginTop:e.spacing(4),color:e.palette.text.secondary})),l7=({activeTab:e,setActiveTab:n})=>t(w,{sx:{borderBottom:1,borderColor:"divider"},children:s(X2,{value:e,children:[t(Ne,{label:"Upload file",value:"file",onClick:()=>n("file")}),t(Ne,{label:"Code editor",value:"code","data-testid":D4,onClick:()=>n("code")})]})}),d7=({activeTab:e,setActiveTab:n,importPayload:a,setImportPayload:r})=>{const[o,i]=p.useState(!1),{setToastData:c}=m1();return t(S,{condition:e==="file",show:s(n7,{onSuccess:l=>{r(l),n("code"),c({type:"success",title:"File uploaded"})},onError:l=>{r(""),c({type:"error",title:l})},onDragStatusChange:i,children:[t(Ct,{sx:{width:80,height:80},active:o,children:t(hn,{fontSize:"large"})}),t(i7,{children:o?"Drop your file to upload":"Drop your file here"}),t(s7,{children:"or select a file from your device"}),t(S1,{variant:"outlined",children:"Select file"}),t(c7,{children:"JSON format: max 500 kB"})]}),elseShow:t(o7,{label:"Exported toggles",variant:"outlined",onChange:l=>r(l.target.value),value:a,"data-testid":O4,multiline:!0,minRows:13,maxRows:13})})},p7=({onSubmit:e,onClose:n,disabled:a})=>s(y3,{children:[t(S1,{sx:{position:"static"},variant:"contained",type:"submit",onClick:e,"data-testid":$4,disabled:a,children:"Validate"}),t(S1,{sx:{position:"static",ml:2},variant:"outlined",type:"submit",onClick:n,children:"Cancel import"})]}),u7=({tabs:e,importOptions:n,importArea:a,actions:r})=>s(v3,{children:[e,n,a,t(r7,{}),r]}),h7=()=>{const{makeRequest:e,createRequest:n,errors:a,loading:r}=a3({propagateErrors:!0});return{loading:r,errors:a,validateImport:async i=>{const l=n("api/admin/features-batch/validate",{method:"POST",body:JSON.stringify(i)});try{return(await e(l.caller,l.id)).json()}catch(h){throw h}}}},m7=d(w)(({theme:e})=>({backgroundColor:e.palette.secondaryContainer,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),i0=d("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.secondary})),s0=d("span")(({theme:e})=>({fontSize:e.fontSizes.smallBody,color:e.palette.text.primary,fontWeight:e.fontWeight.bold})),c0=d(w)(({theme:e})=>({border:`1px solid ${e.palette.error.border}`,borderRadius:e.shape.borderRadiusLarge,paddingBottom:e.spacing(2)})),g7=d(w)(({theme:e})=>({border:`1px solid ${e.palette.warning.border}`,borderRadius:e.shape.borderRadiusLarge,paddingBottom:e.spacing(2)})),l0=d(w)(({theme:e})=>({color:e.palette.error.dark,backgroundColor:e.palette.error.light,fontSize:e.fontSizes.smallBody,borderBottom:`1px solid ${e.palette.error.border}`,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge,padding:e.spacing(2)})),f7=d(w)(({theme:e})=>({color:e.palette.warning.dark,backgroundColor:e.palette.warning.light,fontSize:e.fontSizes.smallBody,borderBottom:`1px solid ${e.palette.warning.border}`,borderTopLeftRadius:e.shape.borderRadiusLarge,borderTopRightRadius:e.shape.borderRadiusLarge,padding:e.spacing(2)})),d0=d(w)(({theme:e})=>({color:e.palette.error.dark,fontSize:e.fontSizes.smallBody})),v7=d(w)(({theme:e})=>({color:e.palette.warning.dark,fontSize:e.fontSizes.smallBody})),j2=d("ul")(({theme:e})=>({marginTop:e.spacing(1),marginBottom:e.spacing(0),paddingLeft:e.spacing(3),paddingBottom:e.spacing(3),borderBottom:`1px dashed ${e.palette.neutral.border}`})),D2=d("li")(({theme:e})=>({fontSize:e.fontSizes.smallBody})),y7=({environment:e,project:n,payload:a,onClose:r,onBack:o,onSubmit:i})=>{const{validateImport:c}=h7(),{setToastData:l}=m1(),{trackEvent:h}=we(),[u,f]=p.useState({errors:[],warnings:[],permissions:[]}),[g,y]=p.useState(!0),T=E=>{E.errors.length>0||E.permissions.length>0?h("export_import",{props:{eventType:"validation fail"}}):h("export_import",{props:{eventType:"validation success"}}),f(E)};return p.useEffect(()=>{c({environment:e,project:n,data:JSON.parse(a)}).then(T).catch(E=>{y(!1),l({type:"error",title:b1(E)})})},[]),s(v3,{children:[s(m7,{children:[t(D,{sx:{mb:1.5},children:"You are importing this configuration in:"}),s(w,{sx:{display:"flex",gap:3},children:[s("span",{children:[t(i0,{children:"Environment: "}),t(s0,{children:e})]}),s("span",{children:[t(i0,{children:"Project: "}),t(s0,{children:n})]})]})]}),t(S,{condition:u.permissions.length>0,show:s(c0,{children:[s(l0,{children:[t("strong",{children:"Missing permissions!"})," There are some permissions that you need to be granted before importing this configuration"]}),u.permissions.map(E=>s(w,{sx:{p:2},children:[t(d0,{children:E.message}),t(j2,{children:E.affectedItems.map(P=>t(D2,{children:P},P))})]},E.message))]})}),t(S,{condition:u.errors.length>0,show:s(c0,{children:[s(l0,{children:[t("strong",{children:"Conflict!"})," There are some errors that need to be fixed before the import."]}),u.errors.map(E=>s(w,{sx:{p:2},children:[t(d0,{children:E.message}),t(j2,{children:E.affectedItems.map(P=>t(D2,{children:P},P))})]},E.message))]})}),t(S,{condition:u.warnings.length>0,show:s(g7,{children:[s(f7,{children:[t("strong",{children:"Warning!"})," It is recommended to verify the following information before importing."]}),u.warnings.map(E=>s(w,{sx:{p:2},children:[t(v7,{children:E.message}),t(j2,{children:E.affectedItems.map(P=>t(D2,{children:P},P))})]},E.message))]})}),s(y3,{children:[t(S1,{sx:{position:"static",mr:"auto"},variant:"outlined",type:"submit",onClick:o,children:"Back"}),t(Q2,{permission:q2,projectId:n,sx:{position:"static"},variant:"contained",type:"submit",onClick:i,"data-testid":B4,disabled:u.errors.length>0||u.permissions.length>0||!g,children:"Import configuration"}),t(S1,{sx:{position:"static",ml:2},variant:"outlined",type:"submit",onClick:r,children:"Cancel import"})]})]})},b7=()=>{const{makeRequest:e,createRequest:n,errors:a,loading:r}=a3({propagateErrors:!0}),{trackEvent:o}=we();return{loading:r,errors:a,createImport:async c=>{const h=n("api/admin/features-batch/import",{method:"POST",body:JSON.stringify(c)});try{const u=await e(h.caller,h.id);return o("export_import",{props:{eventType:"features imported"}}),u}catch(u){throw u}}}},C7=d(z0)(({theme:e})=>({padding:e.spacing(4,2,2,2),display:"flex",flexDirection:"column",alignItems:"center",gap:e.spacing(8)})),S7=d(D)(({theme:e})=>({fontSize:e.fontSizes.mainHeader})),x7=d(xe)(({theme:e})=>({backgroundColor:e.palette.primary.main})),w7=d(xe)(({theme:e})=>({backgroundColor:e.palette.error.main})),T7=d(z0)(({theme:e})=>({border:`1px solid ${e.palette.info.border}`,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(2),color:e.palette.info.dark,backgroundColor:e.palette.info.light,fontSize:e.fontSizes.smallBody})),A7=(e,n)=>e?{status:"loading"}:Object.keys(n).length>0?{status:"error",errors:n}:{status:"success"},E7=({environment:e,project:n,payload:a,onClose:r})=>{const{createImport:o,loading:i,errors:c}=b7(),{refetch:l}=J1(n),{refetch:h}=J2(n),{setToastData:u}=m1(),{isChangeRequestConfigured:f}=o2(n);p.useEffect(()=>{o({environment:e,project:n,data:JSON.parse(a)}).then(()=>{l(),h()}).catch(T=>{u({type:"error",title:b1(T)})})},[]);const g=A7(i,c),y=f(e)&&g.status==="success";return s(v3,{children:[s(C7,{children:[t(S,{condition:g.status==="loading",show:t(Ct,{sx:{width:80,height:80},active:!0,children:t(fn,{fontSize:"large"})})}),t(S,{condition:g.status==="success",show:t(x7,{sx:{width:80,height:80},children:t(P0,{fontSize:"large"})})}),t(S,{condition:g.status==="error",show:t(w7,{sx:{width:80,height:80},children:t(un,{fontSize:"large"})})}),s(S7,{children:[t(S,{condition:g.status==="loading",show:"Importing..."}),t(S,{condition:g.status==="success",show:"Import completed"}),t(S,{condition:g.status==="error",show:"Import failed"})]})]}),t(S,{condition:y,show:s(T7,{children:["For this environment ",t("strong",{children:"Change request"})," is enabled. This means that the import has generated a change request which needs to be approved before the configuration will be visible in the instance."]})}),t(y3,{children:t(S1,{sx:{position:"static"},variant:"contained",type:"submit",onClick:r,children:"Close"})})]})},R7=d(w)(({theme:e})=>({backgroundColor:e.palette.secondaryContainer,borderRadius:e.shape.borderRadiusLarge,padding:e.spacing(3)})),P7=d(D)(({theme:e})=>({marginBottom:e.spacing(3),fontWeight:e.fontWeight.bold})),Z7=d(D)(({theme:e})=>({marginBottom:e.spacing(1.5)})),k7=({project:e,environment:n,onChange:a})=>{const{project:r}=J1(e),o=r.environments.map(i=>({key:i,label:i,title:i}));return p.useEffect(()=>{n===""&&o[0]&&a(o[0].key)},[JSON.stringify(o)]),s(R7,{children:[t(P7,{children:"Import options"}),t(Z7,{children:"Choose the environment to import the configuration for"}),t(F0,{sx:{width:"180px"},options:o,onChange:a,label:"Environment",value:n,"data-testid":F4,IconComponent:_0,fullWidth:!0})]})},I7=d("div")(({theme:e})=>({minHeight:"100vh",display:"flex"})),j7=d("div")(({theme:e})=>({backgroundColor:e.palette.primary.main,padding:e.spacing(6,8,3,4),flexBasis:"30%"})),D7=d("div")(({theme:e})=>({textTransform:"uppercase",fontSize:e.fontSizes.smallBody,color:e.palette.text.tertiaryContrast,fontWeight:e.typography.fontWeightBold,paddingLeft:e.spacing(2),marginBottom:e.spacing(4)})),O7=e=>{try{return JSON.parse(e),!0}catch{return!1}},$7=({open:e,setOpen:n,project:a})=>{const[r,o]=p.useState("configure"),[i,c]=p.useState(""),[l,h]=p.useState(""),[u,f]=p.useState("file"),g=()=>{n(!1)};p.useEffect(()=>{e===!0&&y()},[e]);const y=()=>{o("configure"),c(""),h(""),f("file")};return t(d2,{open:e,onClose:g,label:"Import toggles",children:s(I7,{children:[s(j7,{children:[t(D7,{children:"Process"}),t(o6,{stage:r})]}),t(S,{condition:r==="configure",show:t(u7,{tabs:t(l7,{activeTab:u,setActiveTab:f}),importOptions:t(k7,{project:a,environment:i,onChange:c}),importArea:t(d7,{activeTab:u,setActiveTab:f,importPayload:l,setImportPayload:h}),actions:t(p7,{disabled:!O7(l),onSubmit:()=>o("validate"),onClose:g})})}),t(S,{condition:r==="validate",show:t(y7,{project:a,environment:i,payload:l,onBack:()=>o("configure"),onSubmit:()=>o("import"),onClose:g})}),t(S,{condition:r==="import",show:t(E7,{project:a,environment:i,payload:l,onClose:g})})]})})},z7=()=>{var b,k;const e=G("projectId"),n=_4(),{project:a,loading:r,refetch:o}=J1(e),i=w0(r),{setToastData:c}=m1(),[l,h]=p.useState(!1),u=L1(),{pathname:f}=V0(),{isOss:g,uiConfig:y}=l1(),T=`/projects/${e}`,E=(a==null?void 0:a.name)||e,{favorite:P,unfavorite:$}=V4(),[A,B]=p.useState(!1),H=[{title:"Overview",path:T,name:"overview"},{title:"Health",path:`${T}/health`,name:"health"},{title:"Archive",path:`${T}/archive`,name:"archive"},{title:"Change requests",path:`${T}/change-requests`,name:"change-request"},{title:"Project settings",path:`${T}/settings`,name:"settings"},{title:"Event log",path:`${T}/logs`,name:"logs"}],F=[...H].reverse().find(V=>f.startsWith(V.path));return p.useEffect(()=>{const V=n.get("created"),W=n.get("edited");(V||W)&&c({type:"success",title:V?"Project created":"Project updated"})},[]),s("div",{ref:i,children:[s(Tn,{children:[s(An,{children:[s(Cn,{children:[s($e,{children:[t(wn,{onClick:async()=>{a!=null&&a.favorite?await $(e):await P(e),o()},isFavorite:a==null?void 0:a.favorite}),t(w3,{children:t(xn,{"data-loading":!0,children:E})})]}),s($e,{children:[t(S,{condition:Boolean((b=y==null?void 0:y.flags)==null?void 0:b.featuresExportImport),show:t($1,{permission:u0,projectId:e,onClick:()=>h(!0),tooltipProps:{title:"Import"},"data-testid":L4,"data-loading":!0,children:t(gn,{})})}),t(S,{condition:!g(),show:t($1,{permission:A1,projectId:e,onClick:()=>u(`/projects/${e}/edit`),tooltipProps:{title:"Edit project"},"data-loading":!0,children:t(t3,{})})}),t(S,{condition:!g(),show:t($1,{permission:z4,projectId:e,onClick:()=>{B(!0)},tooltipProps:{title:"Delete project"},"data-loading":!0,children:t(n3,{})})})]})]}),t(S,{condition:!Boolean((k=y==null?void 0:y.flags)==null?void 0:k.newProjectOverview),show:()=>t(Sn,{children:t(w3,{children:s("div",{children:[t(S,{condition:Boolean(a.description),show:s($e,{children:[t(O2,{"data-loading":!0,children:"Description: "}),t(x3,{"data-loading":!0,children:a.description})]})}),s($e,{children:[t(O2,{"data-loading":!0,children:"projectId: "}),t(x3,{"data-loading":!0,children:e})]})]})})})})]}),t(En,{}),t(Rn,{children:t(X2,{value:F==null?void 0:F.path,indicatorColor:"primary",textColor:"primary",variant:"scrollable",allowScrollButtonsMobile:!0,children:H.map(V=>t(Pn,{label:V.title,value:V.path,onClick:()=>u(V.path)},V.title))})})]}),t(M4,{project:e,open:A,onClose:()=>{B(!1)},onSuccess:()=>{u("/projects")}}),s(p2,{children:[t(r1,{path:"health",element:t(Ir,{})}),t(r1,{path:"access/*",element:t(L0,{replace:!0,to:`/projects/${e}/settings/access`})}),t(r1,{path:"environments",element:t(M0,{})}),t(r1,{path:"archive",element:t(Hn,{})}),t(r1,{path:"logs",element:t(Dr,{})}),t(r1,{path:"change-requests",element:t(b5,{})}),t(r1,{path:"change-requests/:id",element:t(l5,{})}),t(r1,{path:"settings/*",element:t(a6,{})}),t(r1,{path:"*",element:t(pr,{})})]}),t($7,{open:l,setOpen:h,project:e})]})};export{z7 as default};
|